/* ============================================================
   platform-silver — 银灰极简平台控制台 设计系统
   银灰底 #f4f6f8 / 墨黑 #111827 / 克制蓝 #3b82f6
   细边框 · 小圆角 8px · 产品界面截图感 · SaaS 控制台气质
   ============================================================ */

/* ---------- 1. 设计令牌 ---------- */
:root {
    --bg: #f4f6f8;            /* 页面银灰底 */
    --bg-deep: #eef1f5;       /* 次级银灰 */
    --surface: #ffffff;       /* 卡片面 */
    --ink: #111827;           /* 主文字墨黑 */
    --muted: #4b5563;         /* 次级文字 */
    --faint: #8a94a3;         /* 弱说明文字 */
    --line: #e2e8f0;          /* 细边框 */
    --line-soft: #eef2f6;     /* 浅分隔 */
    --brand: #3b82f6;         /* 品牌蓝 */
    --brand-deep: #2563eb;    /* 蓝 hover */
    --brand-soft: #eff6ff;    /* 蓝极浅底 */
    --radius: 8px;
    --radius-sm: 6px;
    --shadow-card: 0 1px 2px rgba(17, 24, 39, 0.04);
    --shadow-pop: 0 8px 24px -12px rgba(17, 24, 39, 0.14);
    --wrap: 1180px;
}

/* ---------- 2. 基础 ---------- */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        linear-gradient(rgba(226, 232, 240, 0.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(226, 232, 240, 0.35) 1px, transparent 1px),
        var(--bg);
    background-size: 32px 32px, 32px 32px, auto;
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
}

a {
    color: var(--brand-deep);
    text-decoration: none;
}

h1, h2, h3, h4 {
    margin: 0;
    font-weight: 700;
    line-height: 1.35;
}

p {
    margin: 0 0 12px;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 主体列宽与呼吸 */
.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ---------- 3. 顶栏：白底、细边框、sticky 淡影 ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(17, 24, 39, 0.02);
}

.site-header.is-scrolled {
    box-shadow: 0 10px 24px -18px rgba(17, 24, 39, 0.28);
}

.header-in {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 64px;
    gap: 18px;
}

/* 品牌 */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.brand-mark {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: linear-gradient(135deg, var(--brand), #60a5fa);
    box-shadow: 0 0 0 4px var(--brand-soft);
}

/* 中部导航 */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a {
    display: inline-block;
    padding: 8px 13px;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 15px;
    white-space: nowrap;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.main-nav a:hover {
    color: var(--ink);
    background: var(--bg-deep);
}

.main-nav a.is-active {
    color: var(--brand-deep);
    background: var(--brand-soft);
    font-weight: 600;
}

/* 右侧动作区 */
.header-act {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ---------- 4. 按钮体系 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: var(--radius);
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.2;
    transition: background-color 0.15s ease, transform 0.1s ease,
        border-color 0.15s ease;
    white-space: nowrap;
}

.btn:active {
    transform: translateY(1px);
}

.btn--primary {
    background: var(--brand);
    color: #ffffff;
}

.btn--primary:hover {
    background: var(--brand-deep);
    color: #ffffff;
}

/* 浅灰次按钮 */
.btn--ghost {
    background: #e9edf2;
    color: var(--ink);
    border: 1px solid transparent;
}

.btn--ghost:hover {
    background: var(--line);
}

.btn--sm {
    padding: 9px 16px;
    font-size: 14px;
}

/* 移动菜单按钮 */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    font-size: 17px;
    cursor: pointer;
}

/* ---------- 5. 区块通用结构（overline + h2 + 说明） ---------- */
.sec {
    padding: 64px 0 20px;
}

.sec-head {
    margin-bottom: 30px;
}

.overline {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--brand-deep);
    text-transform: uppercase;
}

.overline::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 2px;
    margin-right: 8px;
    vertical-align: middle;
    background: var(--brand);
    border-radius: 2px;
}

.sec-title {
    font-size: clamp(22px, 3vw, 30px);
    color: var(--ink);
    letter-spacing: -0.01em;
}

.sec-desc {
    margin: 12px 0 0;
    max-width: 680px;
    color: var(--muted);
}

/* 平台网格背景上的分隔线 */
.sec + .sec {
    border-top: 1px solid var(--line-soft);
}

/* ---------- 6. Hero：左文右图 ---------- */
.hero {
    padding: 54px 0 10px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 40px;
    align-items: center;
}

.hero-title {
    font-size: clamp(26px, 3.6vw, 40px);
    letter-spacing: -0.02em;
}

.hero-copy > p {
    color: var(--muted);
    max-width: 560px;
}

.hero-note {
    font-size: 14px;
    color: var(--faint);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0 18px;
}

/* 功能小标签（hero 下方 command-tags） */
.command-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.command-tags span {
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

/* ---------- 7. 截图感图框 ---------- */
.figure-frame {
    padding: 10px 10px 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.frame-bar {
    height: 16px;
    margin: 0 4px 10px;
    border-radius: 4px;
    background-color: var(--bg-deep);
    background-image:
        radial-gradient(circle 4px at 12px 8px, #cbd5e1 96%, transparent),
        radial-gradient(circle 4px at 26px 8px, #cbd5e1 96%, transparent),
        radial-gradient(circle 4px at 40px 8px, #cbd5e1 96%, transparent);
}

.figure-frame img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
}

/* 不同比例的框内图 */
.figure-frame img.fr-portrait {
    aspect-ratio: 2 / 3;
}

.figure-frame img.fr-wide {
    aspect-ratio: 21 / 9;
}

.figure-frame figcaption {
    padding: 10px 4px 14px;
    color: var(--faint);
    font-size: 12px;
}

/* ---------- 8. 核心入口：dashboard 卡 ---------- */
.dock-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.dash-card {
    display: flex;
    flex-direction: column;
    padding: 20px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    transition: border-color 0.15s ease, transform 0.15s ease,
        box-shadow 0.15s ease;
}

.dash-card:hover {
    border-color: #c9d8ea;
    transform: translateY(-2px);
    box-shadow: var(--shadow-pop);
}

.card-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 12px;
    border-radius: var(--radius-sm);
    background: var(--brand-soft);
    color: var(--brand-deep);
    font-size: 17px;
}

.dash-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.dash-card p {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 13.5px;
    flex: 1;
}

.card-link {
    font-size: 13.5px;
    font-weight: 600;
}

.card-link i {
    margin-left: 4px;
    font-size: 12px;
}

/* ---------- 9. 功能矩阵 ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.feat-card {
    display: flex;
    gap: 14px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.feat-card .card-ic {
    flex: 0 0 auto;
    margin: 2px 0 0;
}

.feat-card h3 {
    font-size: 15.5px;
    margin-bottom: 5px;
}

.feat-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
}

/* ---------- 10. 左右分栏区（体育 / 娱乐） ---------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
}

.split-media {
    min-width: 0;
}

.split-copy h3 {
    font-size: 21px;
    margin-bottom: 10px;
}

.tick-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--muted);
}

.tick-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--line);
}

.tick-list li strong {
    color: var(--ink);
}

/* ---------- 11. 多端三小卡 ---------- */
.mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.mini-card {
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.mini-card h3 {
    font-size: 15.5px;
    margin-bottom: 6px;
}

.mini-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
}

/* ---------- 12. 产品向评价 ---------- */
.voice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.voice-card {
    margin: 0;
    padding: 20px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
}

.voice-card p {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 14.5px;
}

.voice-card cite {
    color: var(--faint);
    font-size: 12.5px;
    font-style: normal;
}

/* ---------- 13. FAQ 双列折叠 ---------- */
.faq-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
}

.faq-item {
    margin: 0 0 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.faq-item + .faq-item {
    border-top: 1px solid var(--line);
}

.faq-item summary {
    padding: 13px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--ink);
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    float: right;
    color: var(--faint);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.2;
    transition: transform 0.15s ease;
}

.faq-item[open] summary::after {
    content: "\2212";
}

.faq-item .faq-a {
    padding: 0 16px 14px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    border-top: 1px dashed var(--line-soft);
    padding-top: 10px;
    margin-top: 0;
}

/* ---------- 14. 收尾蓝条 ---------- */
.final-panel {
    padding: 40px 34px;
    border-radius: 14px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 14px 34px -16px rgba(37, 99, 235, 0.55);
    text-align: center;
}

.final-panel h2 {
    font-size: clamp(21px, 2.6vw, 28px);
    margin-bottom: 8px;
}

.final-panel p {
    margin: 0 auto 20px;
    max-width: 520px;
    color: #dbeafe;
    font-size: 14.5px;
}

.btn--light {
    background: #ffffff;
    color: var(--brand-deep);
}

.btn--light:hover {
    background: #eaf1fd;
    color: var(--brand-deep);
}

/* ---------- 15. 页脚：银白四列 ---------- */
.site-footer {
    margin-top: 72px;
    background: #fbfcfd;
    border-top: 1px solid var(--line);
}

.foot-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1.6fr;
    gap: 28px;
    padding: 44px 0 30px;
}

.foot-col h3 {
    margin-bottom: 14px;
    font-size: 14px;
    color: var(--ink);
}

.foot-col ul li {
    margin-bottom: 8px;
}

.foot-col a {
    color: var(--muted);
    font-size: 13.5px;
    transition: color 0.15s ease;
}

.foot-col a:hover {
    color: var(--brand-deep);
}

.foot-brand {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
}

.foot-slogan {
    color: var(--faint);
    font-size: 13px;
    max-width: 300px;
}

.foot-note {
    padding: 18px 0;
    border-top: 1px solid var(--line-soft);
    color: var(--faint);
    font-size: 12.5px;
    text-align: center;
}

/* ---------- 16. 内页共用：页头大标题 ---------- */
.page-head {
    padding: 52px 0 18px;
}

.page-head .sec-desc {
    margin-bottom: 6px;
}

.anchor-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 0;
}

.anchor-nav a {
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 13.5px;
}

.anchor-nav a:hover {
    border-color: var(--brand);
    color: var(--brand-deep);
}

.anchor-nav a i {
    margin-right: 6px;
    font-size: 12px;
}

/* 返回顶部 */
.to-top {
    position: fixed;
    right: 22px;
    bottom: 24px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--muted);
    box-shadow: var(--shadow-pop);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.to-top.show {
    opacity: 1;
    pointer-events: auto;
}

.to-top:hover {
    color: var(--brand-deep);
}

/* ========== 17. 响应式 ========== */
@media (max-width: 1079px) {
    .main-nav {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-header.nav-open .main-nav {
        display: block;
        position: absolute;
        top: 100%;
        left: -20px;
        right: -20px;
        padding: 10px 20px 16px;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-pop);
    }

    .site-header.nav-open .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .site-header.nav-open .main-nav a {
        display: block;
        padding: 11px 12px;
    }

    .dock-grid,
    .mini-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-grid,
    .voice-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1079px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .split {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

@media (max-width: 767px) {
    .sec {
        padding-top: 44px;
    }

    .hero-grid,
    .split,
    .faq-cols {
        grid-template-columns: 1fr;
    }

    .dock-grid,
    .mini-grid,
    .feature-grid,
    .voice-grid {
        grid-template-columns: 1fr;
    }

    .foot-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        padding-top: 32px;
    }

    .foot-col--brand {
        grid-column: 1 / -1;
    }

    .hero {
        padding-top: 36px;
    }

    .final-panel {
        padding: 30px 20px;
    }

    .frame-bar {
        margin-bottom: 8px;
    }
}

@media (max-width: 419px) {
    .wrap {
        padding: 0 14px;
    }

    .btn {
        padding: 11px 16px;
    }

    .foot-grid {
        grid-template-columns: 1fr;
    }

    .foot-col--brand {
        grid-column: auto;
    }
}

/* 动效偏好 */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}

/* ========== 18. 内页组件补充 ========== */
.figure-frame {
    margin: 0;
}

.figure-frame img.fr-card {
    aspect-ratio: 6 / 7;
}

.figure-frame img.fr-169 {
    aspect-ratio: 16 / 9;
}

/* 小卡内按钮：底部对齐 */
.mini-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mini-card .card-ic {
    margin-bottom: 10px;
}

.mini-card .btn {
    margin-top: auto;
}

/* ---------- 更新资讯页：左右布局 ---------- */
.news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 34px;
    align-items: start;
}

.news-posts {
    min-width: 0;
}

.post-card {
    padding: 20px 20px 18px;
    margin-bottom: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.post-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.post-meta {
    margin-bottom: 10px;
}

.post-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: #eef1f5;
    color: #5b6572;
    font-size: 12px;
    font-weight: 600;
}

.post-tag--ui {
    background: var(--brand-soft);
    color: var(--brand-deep);
}

.post-tag--ux {
    background: #e8eef4;
    color: #475569;
}

.post-summary {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 14px;
}

.post-reason {
    margin: 0;
    padding: 12px 14px;
    border-left: 2px solid var(--brand);
    background: var(--bg-deep);
    color: var(--muted);
    font-size: 13px;
}

.news-aside {
    min-width: 0;
}

/* 侧栏盒子 */
.side-box {
    padding: 18px;
    margin-top: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.news-aside > .side-box:last-child {
    margin-bottom: 0;
}

.side-box h3 {
    font-size: 14px;
    margin-bottom: 12px;
}

.side-box p {
    color: var(--muted);
    font-size: 13.5px;
}

.side-index li {
    border-bottom: 1px dashed var(--line-soft);
}

.side-index a {
    display: block;
    padding: 8px 0 8px 16px;
    position: relative;
    color: var(--muted);
    font-size: 13.5px;
}

.side-index a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 15px;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--line);
}

.side-index a:hover {
    color: var(--brand-deep);
}

.side-index a:hover::before {
    background: var(--brand);
}

.legend-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 9px 0 0;
}

/* ---------- 客服中心：双列矩阵 ---------- */
.contact-cols {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 36px;
    align-items: start;
}

.contact-left,
.contact-right {
    min-width: 0;
}

.contact-right .figure-frame {
    margin-bottom: 16px;
}

/* 反馈三步流程 */
.proc-list {
    counter-reset: step;
    margin-top: 14px;
}

.proc-list li {
    counter-increment: step;
    position: relative;
    padding: 0 0 14px 34px;
    color: var(--muted);
    font-size: 14px;
}

.proc-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: -2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand-deep);
    font-weight: 700;
    font-size: 13px;
    line-height: 24px;
    text-align: center;
}

/* 内页收尾图居中 */
figure.alone {
    margin: 0 auto;
}

/* ========== 19. 内页布局的窄屏响应 ========== */
@media (max-width: 1023px) {
    .news-layout,
    .contact-cols {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .news-aside .figure-frame {
        max-width: 420px;
    }
}

@media (max-width: 767px) {
    .side-box {
        margin-top: 12px;
    }

    .post-card {
        padding: 16px 14px;
    }

    .proc-list li {
        padding-left: 32px;
    }
}
