/* ============================================================
   柚田科技官网首页样式（P4，site.css 之上）
   规范：N7（100svh）/ C3（动画降级）/ C5（触摸目标 ≥44px）/
        断点 1200/992/768/576
   ============================================================ */

/* ---------- Hero：全屏 + 渐变 + 粒子画布 ---------- */
.yt-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;      /* N7 fallback */
    min-height: 100svh;     /* iOS Safari 地址栏伸缩更稳 */
    background:
        radial-gradient(ellipse at 75% 20%, rgba(79, 110, 242, .35), transparent 55%),
        linear-gradient(135deg, #16192f 0%, #232946 45%, #3d56c9 100%);
    color: #fff;
    overflow: hidden;
    padding: 6rem 0 3.5rem;
}
.yt-hero #ytHeroParticles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.yt-hero-inner { padding-top: 8vh; }
.yt-hero-eyebrow {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 2rem;
    padding: .35rem 1.1rem;
    font-size: .88rem;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 1.4rem;
}
.yt-hero-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1rem;
    text-shadow: 0 4px 24px rgba(10, 14, 40, .4);
}
.yt-hero-accent {
    background: linear-gradient(90deg, #8fa4ff, #62d6ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.yt-hero-sub {
    color: rgba(255, 255, 255, .78);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
}
.yt-hero-btn { min-height: 48px; }   /* C5 触摸目标 */

/* 数字亮点条 */
.yt-hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 3rem;
    margin-top: 4rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, .18);
}
.yt-hero-stat { text-align: center; min-height: 44px; }
.yt-hero-stat-value {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.15;
}
.yt-hero-stat-label {
    color: rgba(255, 255, 255, .7);
    font-size: .88rem;
    letter-spacing: .05em;
}

/* ---------- 区块通用 ---------- */
.yt-section { padding: 4.5rem 0; }
.yt-section-soft { background: var(--yts-bg-soft); }
.yt-section-eyebrow {
    color: var(--yts-accent);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .22em;
    margin-bottom: .35rem;
}
.yt-section-heading {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--yts-primary);
    margin: 0;
}
.yt-more-btn { min-height: 44px; }   /* C5 */

/* 产品分类 Tab */
.yt-product-tabs .nav-link {
    color: var(--yts-text);
    font-weight: 500;
    border-radius: 2rem;
    padding: .5rem 1.4rem;
    min-height: 44px;                /* C5 */
    display: inline-flex;
    align-items: center;
}
.yt-product-tabs .nav-link.active {
    background: var(--yts-accent);
    color: #fff;
}

/* ---------- 技术能力矩阵 ---------- */
.yt-cap-card {
    background: #fff;
    border: 1px solid var(--yts-border);
    border-radius: .9rem;
    padding: 1.75rem 1.5rem;
    height: 100%;
    transition: transform .18s ease, box-shadow .18s ease;
}
.yt-cap-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(35, 41, 70, .1);
}
.yt-cap-icon {
    width: 48px;
    height: 48px;
    border-radius: .8rem;
    background: rgba(79, 110, 242, .1);
    color: var(--yts-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.yt-cap-icon svg { width: 26px; height: 26px; }
.yt-cap-title { font-size: 1.08rem; font-weight: 700; color: var(--yts-primary); }
.yt-cap-desc { color: var(--yts-muted); font-size: .9rem; margin: .5rem 0 0; }

/* 案例成果徽章 */
.yt-case-badge {
    border: 1px solid var(--yts-border);
    color: var(--yts-text);
    font-weight: 400;
}
.yt-case-badge strong { color: var(--yts-accent); }

/* ---------- 历程缩影 ---------- */
.yt-milestone-item {
    background: #fff;
    border: 1px solid var(--yts-border);
    border-radius: .9rem;
    padding: 1.4rem 1.5rem;
    height: 100%;
}
.yt-milestone-date {
    color: var(--yts-accent);
    font-weight: 800;
    font-size: 1.2rem;
}
.yt-milestone-title { font-weight: 700; color: var(--yts-primary); margin-top: .3rem; }
.yt-milestone-desc { color: var(--yts-muted); font-size: .88rem; margin-top: .35rem; }

/* ---------- 新闻动态 ---------- */
.yt-news-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: #fff;
    border: 1px solid var(--yts-border);
    border-radius: .7rem;
    padding: .9rem 1.25rem;
    min-height: 52px;                /* C5 */
    text-decoration: none;
    color: var(--yts-text);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.yt-news-item:hover {
    border-color: var(--yts-accent);
    box-shadow: 0 4px 14px rgba(35, 41, 70, .08);
    color: var(--yts-text);
}
.yt-news-date {
    color: var(--yts-accent);
    font-weight: 700;
    font-size: .88rem;
    white-space: nowrap;
    flex: 0 0 auto;
}
.yt-news-title {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- CTA ---------- */
.yt-cta-title { font-size: 1.35rem; font-weight: 800; }
.yt-cta-sub { color: rgba(255, 255, 255, .8); font-size: .95rem; margin-top: .3rem; }
.yt-cta-card .btn { min-height: 44px; }   /* C5 */

/* ---------- 搜索页 ---------- */
.yt-search-form { max-width: 640px; margin-top: 1.25rem; }
.yt-search-form .form-control { border: none; }
.yt-salary-badge { background: rgba(79, 110, 242, .12); color: var(--yts-accent); }

/* ---------- 响应式断点（1200/992/768/576） ---------- */
@media (max-width: 1199.98px) {
    .yt-hero-stat-value { font-size: 1.8rem; }
    .yt-hero-stats { gap: 1rem 2.2rem; }
}
@media (max-width: 991.98px) {
    .yt-hero { padding: 5rem 0 3rem; }
    .yt-hero-inner { padding-top: 6vh; }
    .yt-hero-stats { margin-top: 3rem; }
    .yt-section { padding: 3.5rem 0; }
    .yt-section-heading { font-size: 1.6rem; }
}
@media (max-width: 767.98px) {
    .yt-hero-stats { gap: .8rem 1.6rem; }
    .yt-hero-stat-value { font-size: 1.5rem; }
    .yt-news-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
@media (max-width: 575.98px) {
    .yt-hero { min-height: 92svh; padding: 4rem 0 2.5rem; }
    .yt-hero-title { font-size: 1.75rem; }
    .yt-hero-sub { font-size: .95rem; }
    .yt-hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* ---------- C3：偏好减少动画时全部降级 ---------- */
@media (prefers-reduced-motion: reduce) {
    .yt-cap-card, .yt-news-item, .yt-product-card { transition: none; }
    .yt-cap-card:hover, .yt-product-card:hover { transform: none; box-shadow: none; }
    .yt-hero #ytHeroParticles { display: none; }
}
