/* ============================================
   百抖AI官网 · 首页独有样式 index.css
   覆盖：Banner 轮播 / Hero / 五步闭环 / 核心能力 /
         应用商店 / 全域分发 / 数据监测 / 响应式
   ============================================ */

/* ====== Banner ====== */
.banner {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    background: #0a1535;
    padding: 0; /* 覆盖全局 section 的 88px 上下内边距 */
    margin-top: -1px; /* 吃掉 Edge 中导航毛玻璃与 banner 之间可能出现的 1px 缝隙 */
}

.banner-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity .8s ease;
    display: flex;
    align-items: center;
}

.banner-slide.active {
    opacity: 1;
    z-index: 2;
}

.banner-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 21, 53, .55) 0%, rgba(10, 21, 53, .15) 45%, transparent 70%);
    pointer-events: none;
}

/* Banner 背景：图片层用 cover+右对齐（1920x520 设计图，小屏裁掉左侧留白保住右侧主体），渐变兜底 */
.bs-1 {
    background:
        url("../../ai.png") no-repeat right center / cover,
        radial-gradient(900px 420px at 85% 20%, rgba(96, 165, 250, .35), transparent 60%),
        radial-gradient(600px 380px at 15% 85%, rgba(37, 99, 235, .4), transparent 65%),
        radial-gradient(240px 240px at 68% 62%, rgba(59, 130, 246, .22), transparent 70%),
        linear-gradient(120deg, #0a1535 0%, #123a8f 55%, #1e56c8 100%);
}

.bs-2 {
    background:
        url("../../geo.png") no-repeat right center / cover,
        radial-gradient(700px 420px at 80% 30%, rgba(168, 85, 247, .4), transparent 60%),
        repeating-radial-gradient(circle at 84% 38%, rgba(196, 181, 253, .1) 0 1px, transparent 1px 46px),
        radial-gradient(560px 380px at 12% 80%, rgba(91, 33, 182, .45), transparent 65%),
        linear-gradient(125deg, #14063d 0%, #3b1d8f 55%, #6d28d9 100%);
}

.bs-3 {
    background:
        url("../../gw.png") no-repeat right center / cover,
        radial-gradient(800px 400px at 80% 25%, rgba(45, 212, 191, .35), transparent 60%),
        conic-gradient(from 200deg at 92% 8%, rgba(153, 246, 228, .16), transparent 28%),
        radial-gradient(520px 360px at 10% 85%, rgba(13, 148, 136, .4), transparent 65%),
        linear-gradient(120deg, #04202b 0%, #0f2b6c 55%, #0e7490 100%);
}

.bs-4 {
    background:
        url("../../sp.png") no-repeat right center / cover,
        radial-gradient(760px 420px at 82% 28%, rgba(244, 114, 182, .38), transparent 60%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 26px),
        radial-gradient(560px 380px at 12% 82%, rgba(234, 88, 12, .42), transparent 65%),
        linear-gradient(120deg, #2a0a3d 0%, #321c64 55%, #ea580c 100%);
}

.bs-5 {
    background:
        url("../../sj.png") no-repeat right center / cover,
        radial-gradient(760px 400px at 85% 22%, rgba(16, 185, 129, .32), transparent 60%),
        repeating-linear-gradient(0deg, rgba(148, 233, 194, .07) 0 1px, transparent 1px 54px),
        repeating-linear-gradient(90deg, rgba(148, 233, 194, .07) 0 1px, transparent 1px 54px),
        radial-gradient(520px 360px at 12% 84%, rgba(8, 88, 120, .45), transparent 65%),
        linear-gradient(125deg, #051726 0%, #064e5b 55%, #0f766e 100%);
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: var(--maxw);
    width: 100%;
    margin: 0 auto;
    padding: 0px 24px 110px;
    color: #fff;
}

.banner-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b35, #ff9558);
    color: #fff;
    margin-bottom: 18px;
    box-shadow: 0 4px 14px rgba(255, 107, 53, .35);
}

.banner-title {
    font-size: clamp(28px, 3.6vw, 44px);
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 14px;
    text-shadow: 0 4px 24px rgba(10, 21, 53, .25);
}

.banner-title strong {
    color: #ffd66b;
}

.banner-title em {
    font-style: normal;
    background: linear-gradient(135deg, #ffd66b, #ff9a3c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.banner-sub {
    font-size: 17px;
    color: rgba(255, 255, 255, .88);
    line-height: 1.7;
    max-width: 700px;
    margin-bottom: 22px;
    text-shadow: 0 2px 12px rgba(10, 21, 53, .25);
}

.banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    border-radius: 999px;
    background: #fff;
    color: var(--blue);
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    transition: all .25s;
}

.banner-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .24);
}

.banner-cta svg {
    width: 14px;
    height: 14px;
    transition: transform .25s;
}

.banner-cta:hover svg {
    transform: translateX(3px);
}

/* Banner 平台图标墙（首屏，替代 CTA 按钮） */
.banner-logos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    max-width: 700px;
}

.banner-logos img {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    transition: transform .25s, box-shadow .25s;
}

.banner-logos img:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
}

/* 13 图标场景：略缩保证单行放下（13x42+12x12=690px < 700px） */
.banner-logos.dense {
    gap: 12px;
}

.banner-logos.dense img {
    width: 42px;
    height: 42px;
}

/* Banner arrow controls */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .25);
    display: grid;
    place-items: center;
    color: #fff;
    cursor: pointer;
    z-index: 5;
    transition: all .25s;
}

.banner-arrow:hover {
    background: rgba(255, 255, 255, .32);
    transform: translateY(-50%) scale(1.06);
}

.banner-arrow.prev {
    left: 24px;
}

.banner-arrow.next {
    right: 24px;
}

/* Banner tab strip (5 toggle buttons) */
.banner-tabs {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 21, 53, .55) 50%, rgba(10, 21, 53, .85) 100%);
    padding: 24px 0 50px;
}

.banner-tabs-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.banner-tab {
    position: relative;
    padding: 30px 16px 30px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .75);
    cursor: pointer;
    text-align: left;
    transition: all .25s;
    font-family: inherit;
}

.banner-tab:hover {
    background: rgba(255, 255, 255, .16);
    color: #fff;
    border-color: rgba(255, 255, 255, .25);
}

.banner-tab.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, .92), rgba(29, 78, 216, .92));
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, .35);
}

.banner-tab.active::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -1px;
    transform: translateX(-50%);
    width: 38px;
    height: 2px;
    background: #ffd66b;
    border-radius: 0 0 2px 2px;
}

.banner-tab .tab-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.banner-tab .tab-sub {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, .65);
    line-height: 1.4;
}

.banner-tab.active .tab-sub {
    color: rgba(255, 255, 255, .85);
}

/* ====== Hero ====== */
.hero {
    padding: 70px 0 80px;
    position: relative;
    overflow: hidden
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(37, 99, 235, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(37, 99, 235, .04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 30% 20%, #000 18%, transparent 70%);
    pointer-events: none
}

.hero::after {
    content: "";
    position: absolute;
    right: -180px;
    top: 50%;
    transform: translateY(-55%);
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 246, .07) 0%, transparent 70%);
    pointer-events: none
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center
}

.hero-text h1 {
    font-size: clamp(32px, 4.2vw, 50px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--gray-900);
    margin-bottom: 18px
}

.hero-text h1 strong {
    color: var(--blue)
}

.hero-text h1 span {
    color: var(--gray-500);
    font-size: .65em;
    font-weight: 500;
    display: block;
    margin-top: 4px
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--blue);
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
    margin-bottom: 14px
}

.hero-text .lead {
    font-size: 17px;
    color: var(--gray-500);
    line-height: 1.7;
    max-width: 100%;
    margin: 0 auto 28px
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%
}

.hero-visual::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(59, 130, 246, .04));
    filter: blur(50px)
}

.hero-visual img {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 16px 36px rgba(37, 99, 235, .16));
    position: relative;
    z-index: 1
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 40px
}

.hstat {
    background: linear-gradient(180deg, #fff 0%, rgba(239, 246, 255, .6) 100%);
    border-radius: 12px;
    padding: 38px 14px;
    text-align: center;
    border: 1px solid rgba(37, 99, 235, .12);
    box-shadow: 0 2px 12px rgba(37, 99, 235, .04);
    transition: all .3s
}

.hstat:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, .1);
    border-color: rgba(37, 99, 235, .2)
}

.hstat b {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--blue)
}

.hstat span {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 2px;
    display: block
}

/* ====== Steps - 五步闭环 ====== */
.steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    position: relative
}

.steps::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 38px;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #60a5fa, #3b82f6, #1d4ed8, #2563eb);
    opacity: .15;
    z-index: 0
}

.step {
    position: relative;
    z-index: 1;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    transition: all .3s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04)
}

.step:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, .1);
    border-color: #93c5fd
}

.step-num {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    margin: 0 auto 16px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12)
}

.step:nth-child(1) .step-num {
    background: #2563eb
}

.step:nth-child(2) .step-num {
    background: #3b82f6
}

.step:nth-child(3) .step-num {
    background: #60a5fa
}

.step:nth-child(4) .step-num {
    background: #1d4ed8
}

.step:nth-child(5) .step-num {
    background: #1e40af
}

.step h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gray-900)
}

.step p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.6
}

/* ====== Module Cards - 五大核心能力 ====== */
.modules {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.module {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 30px 24px;
    transition: all .3s;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04)
}

.module:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(37, 99, 235, .1);
    border-color: #93c5fd
}

.module::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), #60a5fa);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s
}

.module:hover::before {
    transform: scaleX(1)
}

.module::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(37, 99, 235, .03);
    pointer-events: none
}

.module .m-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 22px;
    flex-shrink: 0
}

.module:nth-child(1) .m-icon {
    background: linear-gradient(135deg, #2563eb, #3b82f6)
}

.module:nth-child(2) .m-icon {
    background: linear-gradient(135deg, #1d4ed8, #2563eb)
}

.module:nth-child(3) .m-icon {
    background: linear-gradient(135deg, #3b82f6, #60a5fa)
}

.module:nth-child(4) .m-icon {
    background: linear-gradient(135deg, #1e40af, #3b82f6)
}

.module:nth-child(5) .m-icon {
    background: linear-gradient(135deg, #2563eb, #1d4ed8)
}

.module:nth-child(6) .m-icon {
    background: linear-gradient(135deg, #1d4ed8, #1e40af)
}

.module h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900)
}

.module p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6
}

.module .m-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto
}

.module .m-tags span {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--blue-light);
    color: var(--blue);
    font-weight: 600
}

/* ====== App Store - 应用商店 ====== */
.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px
}

.app-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 22px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all .3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .03)
}

.app-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, .08);
    border-color: #93c5fd
}

.app-card .a-img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--gray-50);
    flex-shrink: 0;
    overflow: hidden
}

.app-card .a-img img {
    width: 36px;
    height: 36px;
    object-fit: contain
}

.app-card .a-img .placeholder {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 16px
}

.app-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2px
}

.app-card p {
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.4
}

/* ====== Channels - 全域分发 ====== */
.ch-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px
}

.ch {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 28px 18px;
    text-align: center;
    transition: all .3s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .03)
}

.ch:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(37, 99, 235, .08);
    border-color: #93c5fd
}

.ch .ch-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    font-size: 24px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe)
}

.ch:hover .ch-icon {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe)
}

.ch h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px
}

.ch p {
    font-size: 12px;
    color: var(--gray-500)
}

/* ====== Dashboard - 数据监测 ====== */
.db-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px
}

.db-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 28px 24px;
    transition: all .3s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .03)
}

.db-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 8px 28px rgba(37, 99, 235, .06)
}

.db-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px
}

.db-card .db-sub {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 16px
}

.db-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px
}

.db-metric {
    padding: 14px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8fafc, #eff6ff);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all .2s
}

.db-metric:hover {
    background: linear-gradient(135deg, #eff6ff, #dbeafe)
}

.db-metric .dm-label {
    font-size: 13px;
    color: var(--gray-500)
}

.db-metric .dm-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900)
}

.db-metric .dm-up {
    color: #16a34a
}

.db-metric .dm-down {
    color: #dc2626
}

/* ====== 首页响应式 ====== */
@media(max-width:1024px) {
    .banner {
        height: 460px;
    }

    .banner-content {
        padding: 0 36px 96px;
    }

    .banner-tab .tab-label {
        font-size: 13px;
    }

    .banner-logos {
        gap: 12px;
    }

    .banner-logos img {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .banner-tab .tab-sub {
        font-size: 10px;
    }

    .hero-inner {
        gap: 28px
    }

    .hero-visual {
        order: -1
    }

    .hero-visual img {
        max-width: 200px
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr)
    }

    .steps {
        grid-template-columns: repeat(3, 1fr)
    }

    .steps::before {
        display: none
    }

    .modules {
        grid-template-columns: repeat(2, 1fr)
    }

    .ch-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .app-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .db-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:860px) {
    .banner-slide::before {
        background: linear-gradient(90deg, rgba(10, 21, 53, .78) 0%, rgba(10, 21, 53, .5) 55%, rgba(10, 21, 53, .25) 100%);
    }

    .banner {
        height: 420px;
    }

    .banner-tabs-inner {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }

    .banner-tab {
        padding: 10px 8px;
        text-align: center;
    }

    .banner-tab .tab-sub {
        display: none;
    }

    .banner-tab.active::after {
        width: 24px;
    }
}

@media(max-width:720px) {
    .banner {
        height: 430px; /* 图标墙手机端换两行，加高避免与底部按钮区重叠 */
    }

    .banner-tabs {
        padding: 16px 0 14px;
    }

    .banner-content {
        padding: 0 20px 74px;
    }

    .banner-title {
        font-size: 24px;
    }

    .banner-sub {
        font-size: 14px;
    }

    .banner-cta {
        padding: 9px 18px;
        font-size: 13px;
    }

    .banner-logos {
        gap: 8px;
    }

    .banner-logos img {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .banner-arrow {
        display: none;
    }

    .banner-tabs-inner {
        padding: 0 16px;
        gap: 4px;
    }

    .banner-tab {
        padding: 8px 4px;
    }

    .banner-tab .tab-label {
        font-size: 11px;
    }

    .hero {
        padding: 48px 0 56px
    }

    .steps {
        grid-template-columns: 1fr
    }

    .modules {
        grid-template-columns: 1fr
    }

    .ch-grid {
        grid-template-columns: 1fr
    }

    .app-grid {
        grid-template-columns: 1fr
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr)
    }

    .hero-text h1 {
        font-size: 28px
    }
}
