/* ============================================================
 * FASIV 首页专属样式 v3.1 —— JD Solution 风格
 * 签名元素：手风琴式全屏大屏 + Our brand 式全宽产品横幅卡
 * 基调：白底 + 靛蓝点缀，区块沿用 site.css 体系
 * 作用域：仅 .home 容器内生效
 * ============================================================ */

/* ============================================================
 * Hero：全宽大图轮播（jdsol 式 swiper）
 * 左侧大标题 + 描述 + 胶囊按钮；底部进度条；两侧圆形箭头
 * ============================================================ */
.hero-slider {
    position: relative;
    height: max(84vh, 640px);
    padding-top: var(--header-h);
    background: #000;
    overflow: hidden;
}
.hs-stage { position: relative; height: 100%; }
.hs-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.05);
    transition: opacity 1.1s ease, transform 6.5s linear, visibility 0s linear 1.1s;
}
.hs-slide.on {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition: opacity 1.1s ease, transform 6.5s linear;
    z-index: 1;
}
.hs-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.28) 48%, rgba(0, 0, 0, 0.08) 100%);
}
.hs-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
    padding-bottom: 120px;
    opacity: 0;
    transform: translateY(34px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.22, .8, .3, 1);
}
.hs-slide.on .hs-inner { opacity: 1; transform: none; transition-delay: .45s; }
.hs-title {
    max-width: 13em;
    font-size: clamp(38px, 5vw, 72px);
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: .01em;
    color: #fff;
    text-shadow: 0 2px 26px rgba(0, 0, 0, 0.35);
}
.hs-sub {
    max-width: 36em;
    margin: 26px 0 40px;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}
.hs-btn i { transition: transform .3s ease; }
.hs-btn:hover i { transform: translateX(4px); }

/* 两侧圆形箭头 */
.hs-arrow {
    position: absolute;
    left: 28px; top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    border: 1px solid #fff;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
    transition: all .3s ease;
}
.hs-arrow svg { width: 20px; height: 20px; }
.hs-arrow:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.hs-next { left: auto; right: 28px; }

/* 底部进度条 */
.hs-progress {
    position: absolute;
    left: 0; right: 0; bottom: 44px;
    z-index: 3;
    display: flex;
    gap: 32px;
}
.hs-bar {
    flex: 1;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: center;
    cursor: pointer;
}
.hs-bar em {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
    font-style: normal;
    color: rgba(255, 255, 255, 0.55);
    transition: color .3s ease;
}
.hs-bar.on em { color: rgba(255, 255, 255, 0.92); }
.hs-bar-track {
    display: block;
    height: 2px;
    background: rgba(255, 255, 255, 0.28);
    border-radius: 100px;
    overflow: hidden;
}
.hs-bar-fill {
    display: block;
    width: 0;
    height: 100%;
    background: #fff;
}
.hs-bar.on .hs-bar-fill.run { transition: width var(--hs-interval, 6000ms) linear; width: 100%; }

/* ============================================================
 * 数据带（白底 · 靛蓝大数字）
 * ============================================================ */
.home-stats { border-bottom: 1px solid var(--strk-2); }
.stats-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.stat {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 16px;
    padding: 10px 8px;
}
.stat + .stat { border-left: 1px solid var(--strk-2); }
.stat strong {
    font-size: clamp(32px, 3.2vw, 46px);
    font-weight: 700;
    line-height: 1;
    color: var(--brand);
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.stat strong i { font-style: normal; font-size: .6em; font-weight: 600; }
.stat p {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--gray);
    max-width: 9em;
}

/* ============================================================
 * 产品系列（jdsol Our brand 式马赛克产品卡）
 * 浅灰卡底 + 产品图 multiply 融底；1 张大卡 + 标准卡 + 收尾全宽卡
 * ============================================================ */
.brand-mosaic { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.bm-card {
    position: relative;
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 330px;
    padding: 30px;
    border-radius: var(--radius);
    background: #edeff3;
    overflow: hidden;
    transition: transform .35s ease, box-shadow .35s ease;
}
.bm-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.brand-mosaic .bm-card:nth-child(1) { grid-column: span 4; }
.brand-mosaic .bm-card:nth-child(6) { grid-column: span 6; min-height: 270px; }
.bm-fig {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 26px;
    pointer-events: none;
}
/* 大卡/全宽卡：图靠右垂直居中，底部加大内边距使图整体上移，避免压住左下角产品描述 */
.brand-mosaic .bm-card:nth-child(1) .bm-fig,
.brand-mosaic .bm-card:nth-child(6) .bm-fig { justify-content: flex-end; padding: 26px 9% 130px 26px; }
/* 标准卡：图严格限制在上部 50% 卡面内，下方净区留给名称简介（两行标题也放得下） */
.brand-mosaic .bm-card:not(:nth-child(1)):not(:nth-child(6)) { min-height: 400px; }
.brand-mosaic .bm-card:not(:nth-child(1)):not(:nth-child(6)) .bm-fig {
    inset: 0 0 auto 0;
    height: 50%;
    padding: 26px 26px 0;
}
.brand-mosaic .bm-card:not(:nth-child(1)):not(:nth-child(6)) .bm-fig img { max-width: 100%; max-height: 100%; }
.brand-mosaic .bm-card:not(:nth-child(1)):not(:nth-child(6))::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 55%;
    background: linear-gradient(180deg, rgba(237, 239, 243, 0) 0%, #edeff3 55%);
    pointer-events: none;
}
.bm-fig img {
    max-width: 76%;
    max-height: 74%;
    width: auto; height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 20px 22px rgba(17, 20, 30, 0.12));
    transition: transform .45s ease;
}
.brand-mosaic .bm-card:nth-child(1) .bm-fig img,
.brand-mosaic .bm-card:nth-child(6) .bm-fig img { max-width: 58%; max-height: 88%; }
.bm-card:hover .bm-fig img { transform: scale(1.04); }
.bm-info { position: relative; z-index: 1; max-width: 78%; }
.brand-mosaic .bm-card:nth-child(1) .bm-info,
.brand-mosaic .bm-card:nth-child(6) .bm-info { max-width: 52%; }
.bm-info h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 600; color: var(--ink); line-height: 1.3; }
.bm-info p {
    margin: 10px 0 0;
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--gray-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bm-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink);
}
.bm-more i { font-style: normal; transition: transform .3s ease; }
.bm-card:hover .bm-more { color: var(--brand); }
.bm-card:hover .bm-more i { transform: translateX(4px); }

/* ============================================================
 * 应用场景（jdsol System 式全宽图 banner：标题+居中 tabs 叠顶，文案按钮沉底）
 * 注意：.scene-tabs / .scene-pane 的切换逻辑由 site.js 依赖类名驱动，勿改名
 * ============================================================ */
.sys-banner {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 620px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #0b0e15;
}
.sys-head { position: relative; z-index: 3; padding: 46px 20px 0; text-align: center; }
.sys-kicker {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}
.sys-head h2 { margin-top: 12px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; color: #fff; }
.scene-tabs {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 24px 16px 0;
}
.scene-tabs button {
    height: 42px;
    padding: 0 24px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(4px);
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
    transition: all .3s ease;
}
.scene-tabs button:hover { border-color: #fff; color: #fff; }
.scene-tabs button.on { background: #fff; border-color: #fff; color: #111; }
.scene-pane {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease, visibility 0s linear .6s;
}
.scene-pane.on { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.scene-pane::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 10, 16, 0.7) 0%, rgba(8, 10, 16, 0.2) 34%, rgba(8, 10, 16, 0.06) 56%, rgba(8, 10, 16, 0.68) 100%);
}
.sys-inner {
    position: relative;
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 24px 58px;
}
.scene-no {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3em;
    color: rgba(255, 255, 255, 0.6);
}
.sys-inner h3 { margin-top: 12px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; color: #fff; text-shadow: 0 2px 22px rgba(0, 0, 0, 0.4); }
.sys-inner p {
    margin: 14px 0 30px;
    max-width: 640px;
    font-size: 15px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

/* ============================================================
 * 新闻（公告板行式列表）
 * ============================================================ */
.hn-rows { border-top: 1px solid var(--strk); }
.hn-row {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 24px 6px;
    border-bottom: 1px solid var(--strk-2);
    transition: background .25s ease;
}
.hn-row:hover { background: #fff; }
.hn-row time { flex: none; width: 92px; font-size: 14px; font-weight: 600; color: var(--brand); }
.hn-row-txt { flex: 1; min-width: 0; }
.hn-row-txt h3 {
    font-size: 15.5px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hn-row-txt p {
    margin-top: 4px;
    font-size: 13px;
    color: var(--gray-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hn-row > i { flex: none; font-style: normal; color: var(--strk); transition: all .25s ease; }
.hn-row:hover > i { color: var(--brand); transform: translateX(4px); }

/* ============================================================
 * CTA（靛蓝渐变横幅）
 * ============================================================ */
.home-cta {
    position: relative;
    padding: clamp(64px, 8vw, 104px) clamp(28px, 6vw, 96px);
    border-radius: 16px;
    background: var(--grad-1);
    text-align: center;
    color: #fff;
    overflow: hidden;
}
.home-cta::before, .home-cta::after {
    content: '';
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    pointer-events: none;
}
.home-cta::before { width: 420px; height: 420px; left: -140px; top: -180px; }
.home-cta::after { width: 520px; height: 520px; right: -180px; bottom: -260px; }
.home-cta-kicker {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}
.home-cta-title { margin-top: 18px; font-size: clamp(26px, 3.4vw, 42px); font-weight: 700; line-height: 1.3; }
.home-cta-sub {
    max-width: 560px;
    margin: 18px auto 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.82);
}
.home-cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

/* ============================================================
 * 响应式
 * ============================================================ */
@media (max-width: 960px) {
    .hero-slider { height: auto; min-height: 0; }
    .hs-stage { height: auto; }
    .hs-slide { position: relative; inset: auto; display: none; opacity: 1; visibility: visible; transform: none; }
    .hs-slide.on { display: block; }
    .hs-slide::before { background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.24) 60%); }
    .hs-inner { padding: 88px 0 96px; min-height: clamp(430px, 62vh, 600px); }
    .hs-title { font-size: 32px; }
    .hs-sub { font-size: 14px; margin: 16px 0 28px; }
    .hs-arrow { display: none; }
    .hs-progress { position: relative; bottom: auto; padding-bottom: 28px; gap: 16px; }
    .stats-band { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
    .stat + .stat { border-left: 0; }
    .brand-mosaic { grid-template-columns: 1fr; gap: 16px; }
    /* 大卡/全宽卡窄屏与标准卡同高（400px），保证重点产品图与下方卡片同尺寸、留足空间 */
    .brand-mosaic .bm-card:nth-child(1),
    .brand-mosaic .bm-card:nth-child(6) { grid-column: auto; min-height: 400px; }
    .bm-card { min-height: 300px; padding: 26px 24px; }
    .bm-info, .brand-mosaic .bm-card:nth-child(1) .bm-info,
    .brand-mosaic .bm-card:nth-child(6) .bm-info { max-width: 100%; }
    /* 产品图与桌面端一致全不透明；大卡/全宽卡窄屏同样收为上图下文，渐变融底保文字可读 */
    .brand-mosaic .bm-card:nth-child(1) .bm-fig,
    .brand-mosaic .bm-card:nth-child(6) .bm-fig {
        inset: 0 0 auto 0;
        height: 50%;
        justify-content: center;
        padding: 26px 26px 0;
    }
    .brand-mosaic .bm-card:nth-child(1) .bm-fig img,
    .brand-mosaic .bm-card:nth-child(6) .bm-fig img { max-width: 100%; max-height: 100%; }
    .brand-mosaic .bm-card:nth-child(1)::after,
    .brand-mosaic .bm-card:nth-child(6)::after {
        content: '';
        position: absolute;
        left: 0; right: 0; bottom: 0;
        height: 55%;
        background: linear-gradient(180deg, rgba(237, 239, 243, 0) 0%, #edeff3 55%);
        pointer-events: none;
    }
    .sys-banner { min-height: 540px; }
    .sys-head { padding-top: 38px; }
    .sys-inner { padding-bottom: 44px; }
}

@media (max-width: 640px) {
    .stats-band { grid-template-columns: repeat(2, 1fr); }
    .stat { flex-direction: column; align-items: center; gap: 8px; text-align: center; }
    .hn-row p { display: none; }
    .scene-tabs button { height: 38px; padding: 0 16px; font-size: 13px; }
    .bm-card { min-height: 270px; padding: 24px 20px; }
}
