/* ==========================================================================
   VDVD 影音 · pc.vdvd.net  —— 落地页 + 接入文档 共用样式
   深空星空风：近黑深蓝底 + 蓝 / 青蓝主色（与播放器蓝绿界面一致）
   无外部依赖：不用 CDN、不用字体文件、不用位图
   ========================================================================== */

:root {
    --bg: #05070f;
    --bg2: #0a1020;
    --card: rgba(255, 255, 255, 0.045);
    --card-hi: rgba(255, 255, 255, 0.075);
    --line: rgba(255, 255, 255, 0.09);
    --line-hi: rgba(255, 255, 255, 0.18);
    --txt: #e9eefb;
    --txt2: #a3b0cc;
    --txt3: #6a7793;
    --brand: #2f6bff;
    --brand2: #4dd8ff;
    --brand-soft: rgba(47, 107, 255, 0.15);
    --brand-glow: rgba(47, 107, 255, 0.40);
    --accent: #4dd8ff;
    --ok: #3ddc97;
    --r: 16px;
    --r-sm: 10px;
    --max: 1180px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
            "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--txt);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* 背景：两团光晕 + 极淡网格，纯 CSS */
body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(90px);
}
body::before {
    width: 760px; height: 760px;
    top: -320px; left: -220px;
    background: radial-gradient(circle, rgba(47,107,255,.32), transparent 62%);
    animation: drift 22s ease-in-out infinite alternate;
}
body::after {
    width: 680px; height: 680px;
    top: -240px; right: -200px;
    background: radial-gradient(circle, rgba(77,216,255,.22), transparent 62%);
    animation: drift 26s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(40px, 50px, 0) scale(1.12); }
}
/* 星空：网格 + 两层星点，只在顶部亮起 */
.grid-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 18% 12%, rgba(255,255,255,.75), transparent),
        radial-gradient(1px 1px at 63% 26%, rgba(180,220,255,.6), transparent),
        radial-gradient(1.4px 1.4px at 82% 9%, rgba(255,255,255,.7), transparent),
        radial-gradient(1px 1px at 37% 40%, rgba(160,205,255,.45), transparent),
        radial-gradient(1px 1px at 91% 52%, rgba(255,255,255,.4), transparent),
        radial-gradient(1px 1px at 8% 63%, rgba(160,205,255,.35), transparent),
        linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 56px 56px, 56px 56px;
    mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 30%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 30%, transparent 78%);
}

/* 银河：一条斜向弥漫的星云光带，压在星野之上 */
.grid-bg::before {
    content: "";
    position: absolute;
    left: -30%; top: -12%;
    width: 160%; height: 118%;
    background: linear-gradient(104deg,
        transparent 32%,
        rgba(110,165,255,.09) 44%,
        rgba(190,222,255,.17) 50%,
        rgba(110,165,255,.09) 56%,
        transparent 68%);
    filter: blur(28px);
    animation: galaxy 44s ease-in-out infinite alternate;
}
@keyframes galaxy {
    from { transform: rotate(-17deg) translate3d(-2%, 0, 0); opacity: .72; }
    to   { transform: rotate(-17deg) translate3d(2%, 1.6%, 0); opacity: 1; }
}

/* 璀璨星点：更高一层的亮星，缓慢闪烁 */
.grid-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.6px 1.6px at 22% 16%, #fff, transparent),
        radial-gradient(1.3px 1.3px at 44% 7%,  rgba(214,232,255,.95), transparent),
        radial-gradient(1.9px 1.9px at 71% 20%, #fff, transparent),
        radial-gradient(1.3px 1.3px at 88% 33%, rgba(190,220,255,.9), transparent),
        radial-gradient(1.5px 1.5px at 12% 42%, rgba(255,255,255,.9), transparent),
        radial-gradient(1.3px 1.3px at 57% 49%, rgba(200,226,255,.8), transparent),
        radial-gradient(1.7px 1.7px at 33% 64%, rgba(255,255,255,.85), transparent),
        radial-gradient(1.3px 1.3px at 79% 70%, rgba(190,220,255,.7), transparent);
    animation: twinkle 6.5s ease-in-out infinite;
}
@keyframes twinkle {
    0%, 100% { opacity: .42; }
    50%      { opacity: 1; }
}

/* 流星：一条斜掠而过的光尾 */
.shoot {
    position: absolute;
    width: 2px; height: 2px; border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px 2px rgba(150,195,255,.75);
    opacity: 0;
}
.shoot::after {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    width: 150px; height: 1.5px; border-radius: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,.9), rgba(255,255,255,0));
    transform-origin: 0 50%;
    transform: translateY(-50%) rotate(-30deg);
}
.shoot.s1 { top: 13%; left: 74%; animation: shoot 9s linear infinite; }
.shoot.s2 { top: 7%;  left: 47%; animation: shoot 13s linear infinite 4.5s; }
@keyframes shoot {
    0%   { opacity: 0; transform: translate3d(0, 0, 0); }
    6%   { opacity: 1; }
    36%  { opacity: 1; }
    50%  { opacity: 0; transform: translate3d(-520px, 300px, 0); }
    100% { opacity: 0; transform: translate3d(-520px, 300px, 0); }
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* ---------- 顶栏 ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    background: rgba(8, 9, 13, 0.72);
    border-bottom: 1px solid var(--line);
}
.nav-in {
    display: flex; align-items: center; gap: 26px;
    height: 62px;
    max-width: var(--max); margin: 0 auto; padding: 0 22px;
}
.brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; letter-spacing: .3px; color: var(--txt);
    font-size: 17px; white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-mark {
    width: 30px; height: 30px; flex: 0 0 30px;
    border-radius: 9px;
    background: linear-gradient(140deg, var(--brand2), var(--brand) 62%);
    box-shadow: 0 4px 16px var(--brand-glow);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 900; color: #fff;
}
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--txt2); font-size: 14.5px; }
.nav-links a:hover { color: var(--txt); text-decoration: none; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 11px 20px;
    border-radius: 11px;
    border: 1px solid var(--line-hi);
    background: var(--card-hi);
    color: var(--txt);
    font-size: 15px; font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .22s ease, background .2s ease, border-color .2s ease;
    text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); border-color: rgba(255,255,255,.3); }
.btn-primary {
    background: linear-gradient(135deg, var(--brand2), var(--brand) 66%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 26px -6px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,.24);
}
.btn-primary:hover { box-shadow: 0 14px 34px -6px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 9px; }
.btn-lg { padding: 15px 28px; font-size: 16.5px; border-radius: 13px; }
.btn svg { width: 17px; height: 17px; flex: 0 0 17px; }

/* ---------- 通用块 ---------- */
section { padding: 74px 0; position: relative; }
.sec-head { text-align: center; margin-bottom: 44px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 13px; margin-bottom: 16px;
    border: 1px solid var(--line-hi); border-radius: 999px;
    background: var(--card);
    font-size: 12.5px; letter-spacing: .06em; color: var(--txt2);
}
.eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--ok); box-shadow: 0 0 0 3px rgba(61,220,151,.16);
}
h1, h2, h3 { line-height: 1.28; margin: 0; font-weight: 800; letter-spacing: -.2px; }
h2 { font-size: clamp(24px, 3.4vw, 34px); }
.sec-head p { color: var(--txt2); margin: 14px auto 0; max-width: 640px; font-size: 15.5px; }
.grad {
    background: linear-gradient(100deg, #fff 12%, var(--brand2) 58%, var(--brand) 92%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}

/* ---------- Hero ---------- */
.hero { padding: 76px 0 66px; }
.hero-in {
    display: grid; grid-template-columns: 1.05fr .95fr;
    gap: 54px; align-items: center;
}
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); font-weight: 900; }
.hero .lead {
    color: var(--txt2); font-size: 17px; margin: 20px 0 0;
    max-width: 540px;
}
.hero .lead b { color: var(--txt); font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
/* #download 就是这行按钮：锚点跳转默认把顶端对齐到视口 0，会被 62px 吸顶导航整块盖住 */
#download { scroll-margin-top: 84px; }
.hero-note {
    display: flex; align-items: flex-start; gap: 9px;
    margin-top: 22px; color: var(--txt3); font-size: 13.5px;
}
.hero-note svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 3px; color: var(--txt3); }
.spec {
    display: flex; flex-wrap: wrap; gap: 10px 26px;
    margin-top: 26px; padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--txt2); font-size: 13.5px;
}
.spec i { font-style: normal; color: var(--txt3); margin-right: 6px; }
.spec b { color: var(--txt); font-weight: 700; }

/* ---------- Hero 右侧：纯 CSS 画出来的播放器窗口 ---------- */
.mock {
    position: relative;
    border-radius: 18px;
    border: 1px solid var(--line-hi);
    background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
    box-shadow: 0 40px 80px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(0,0,0,.4) inset;
    overflow: hidden;
    animation: float 7s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
.mock-bar {
    display: flex; align-items: center; gap: 9px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(0,0,0,.28);
}
.mock-bar .pill {
    font-size: 11.5px; color: var(--txt2);
    border: 1px solid var(--line); border-radius: 999px;
    padding: 3px 10px;
}
.mock-bar .title {
    font-size: 12.5px; color: var(--txt2); margin-left: auto;
    max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); display: block; }
.mock-dots i:first-child { background: rgba(90,150,255,.7); }
.mock-dots i:nth-child(2) { background: rgba(255,200,80,.5); }
.mock-dots i:nth-child(3) { background: rgba(90,220,140,.5); }

.mock-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(47,107,255,.34), transparent 58%),
        radial-gradient(ellipse at 78% 78%, rgba(77,216,255,.26), transparent 58%),
        #04060e;
    overflow: hidden;
}
.mock-stage::after {
    content: "";
    position: absolute; left: 0; right: 0; height: 42%;
    top: -42%;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,.055), transparent);
    animation: scan 5.5s linear infinite;
}
@keyframes scan {
    0%   { top: -42%; }
    100% { top: 118%; }
}
.mock-play {
    position: absolute; inset: 0; margin: auto;
    width: 62px; height: 62px; border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.3);
    backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 46px rgba(47,107,255,.42);
}
.mock-play::before {
    content: "";
    border-left: 19px solid rgba(255,255,255,.92);
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 6px;
}
.mock-prog {
    position: absolute; left: 14px; right: 14px; bottom: 14px;
    height: 4px; border-radius: 3px; background: rgba(255,255,255,.16);
}
.mock-prog i {
    display: block; width: 38%; height: 100%; border-radius: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand2));
    position: relative;
}
.mock-prog i::after {
    content: ""; position: absolute; right: -5px; top: -3px;
    width: 10px; height: 10px; border-radius: 50%; background: #fff;
    box-shadow: 0 0 12px rgba(255,255,255,.8);
}
.mock-eps {
    padding: 13px 14px 15px;
    border-top: 1px solid var(--line);
    background: rgba(0,0,0,.22);
}
.mock-eps .cap {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--txt2); margin-bottom: 10px;
}
.mock-eps .cap em { font-style: normal; color: var(--txt3); }
.mock-eps .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }
.mock-eps .grid span {
    display: block; text-align: center;
    font-size: 11.5px; color: var(--txt2);
    padding: 6px 0; border-radius: 7px;
    background: rgba(255,255,255,.05);
    border: 1px solid transparent;
}
.mock-eps .grid span.on {
    color: #fff; font-weight: 700;
    background: linear-gradient(135deg, var(--brand2), var(--brand));
    box-shadow: 0 4px 14px -3px var(--brand-glow);
    border-color: rgba(255,255,255,.18);
}

/* ---------- 卡片网格 ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
    position: relative;
    padding: 22px 20px;
    border-radius: var(--r);
    border: 1px solid var(--line);
    background: var(--card);
    transition: transform .22s ease, border-color .22s ease, background .22s ease;
    overflow: hidden;
}
.card::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(47,107,255,.14), transparent 42%);
    opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-hi); background: var(--card-hi); }
.card:hover::after { opacity: 1; }
.card .ico {
    width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
    background: linear-gradient(140deg, rgba(47,107,255,.24), rgba(77,216,255,.15));
    border: 1px solid var(--line-hi);
    color: var(--brand2);
}
.card .ico svg { width: 21px; height: 21px; }
.card h3 { font-size: 16.5px; margin-bottom: 7px; }
.card p { margin: 0; color: var(--txt2); font-size: 14px; }

/* ---------- 两种接入方式对比 ---------- */
.compare {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    margin-bottom: 26px;
}
.way {
    padding: 24px 22px;
    border-radius: var(--r);
    border: 1px solid var(--line);
    background: var(--card);
    position: relative;
}
.way.hot { border-color: rgba(47,107,255,.5); background: linear-gradient(180deg, rgba(47,107,255,.13), var(--card) 44%); }
.way .tag {
    position: absolute; top: -11px; right: 18px;
    font-size: 11.5px; font-weight: 700; color: #fff;
    padding: 3px 11px; border-radius: 999px;
    background: linear-gradient(135deg, var(--brand2), var(--brand));
    box-shadow: 0 6px 18px -6px var(--brand-glow);
}
.way h3 { font-size: 18px; margin-bottom: 4px; }
.way code.api { color: var(--brand2); background: none; padding: 0; font-size: 14px; }
.way ul { margin: 14px 0 0; padding: 0; list-style: none; }
.way li {
    position: relative; padding-left: 22px; margin-bottom: 8px;
    color: var(--txt2); font-size: 14px;
}
.way li::before {
    content: ""; position: absolute; left: 2px; top: 9px;
    width: 7px; height: 7px; border-radius: 2px;
    background: linear-gradient(135deg, var(--brand2), var(--brand));
}

/* ---------- 代码块 ---------- */
.code {
    border-radius: var(--r);
    border: 1px solid var(--line);
    background: #06070b;
    overflow: hidden;
    margin: 18px 0;
}
.code-bar {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.032);
}
.code-bar .lang {
    font-size: 12px; color: var(--txt2); font-family: var(--mono);
    letter-spacing: .04em;
}
.code-bar .copy {
    margin-left: auto;
    font-size: 12px; color: var(--txt2);
    background: transparent; border: 1px solid var(--line);
    border-radius: 7px; padding: 3px 10px; cursor: pointer;
    font-family: inherit;
    transition: color .18s ease, border-color .18s ease;
}
.code-bar .copy:hover { color: var(--txt); border-color: var(--line-hi); }
.code-bar .copy.done { color: var(--ok); border-color: rgba(61,220,151,.4); }
pre {
    margin: 0; padding: 16px 18px;
    overflow-x: auto;
    font-family: var(--mono);
    font-size: 13.2px; line-height: 1.75;
    color: #cfd6e6;
    tab-size: 2;
}
pre::-webkit-scrollbar { height: 8px; }
pre::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 4px; }
code { font-family: var(--mono); font-size: 13.4px; }
p code, li code, td code, th code {
    background: rgba(255,255,255,.07);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1px 6px;
    color: var(--brand2);
    white-space: nowrap;
    font-size: 12.8px;
}
.tok-key { color: #7fb6ff; }
.tok-str { color: #9ce49c; }
.tok-com { color: #5c6478; font-style: italic; }
.tok-num { color: #ffcf7a; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details {
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--card);
    margin-bottom: 11px;
    overflow: hidden;
    transition: border-color .2s ease, background .2s ease;
}
.faq details[open] { border-color: var(--line-hi); background: var(--card-hi); }
.faq summary {
    cursor: pointer; list-style: none;
    padding: 16px 20px;
    font-weight: 600; font-size: 15.5px;
    display: flex; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
    content: ""; flex: 0 0 8px; width: 8px; height: 8px;
    border-right: 2px solid var(--brand2);
    border-bottom: 2px solid var(--brand2);
    transform: rotate(-45deg);
    transition: transform .22s ease;
    margin-left: 3px;
}
.faq details[open] summary::before { transform: rotate(45deg); }
.faq .ans { padding: 0 20px 17px 43px; color: var(--txt2); font-size: 14.3px; }
.faq .ans p { margin: 0 0 8px; }
.faq .ans p:last-child { margin-bottom: 0; }

/* ---------- 页脚 ---------- */
footer {
    border-top: 1px solid var(--line);
    padding: 40px 0 46px;
    color: var(--txt3);
    font-size: 13.5px;
}
.foot-in { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: flex-start; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--txt2); font-weight: 700; }
.foot-note { flex: 1 1 420px; }
.foot-note p { margin: 0 0 8px; }
.foot-note b { color: var(--txt2); font-weight: 600; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- 进屏动效 ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .62s cubic-bezier(.22,.68,.32,1), transform .62s cubic-bezier(.22,.68,.32,1); }
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
    .mock, body::before, body::after, .grid-bg::before, .grid-bg::after { animation: none; }
    .grid-bg::after { opacity: 1; }
    .shoot { display: none; }
    html { scroll-behavior: auto; }
}

/* ==========================================================================
   接入文档页 /api
   ========================================================================== */
.doc-hero { padding: 48px 0 34px; border-bottom: 1px solid var(--line); }
.doc-hero h1 { font-size: clamp(28px, 4vw, 40px); }
.doc-hero .lead { color: var(--txt2); margin-top: 14px; max-width: 720px; font-size: 16px; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.doc-meta span {
    font-size: 12.5px; color: var(--txt2);
    border: 1px solid var(--line); border-radius: 999px;
    padding: 4px 12px; background: var(--card);
}
.doc-meta span b { color: var(--brand2); font-weight: 700; }

.doc-layout {
    display: grid; grid-template-columns: 232px 1fr;
    gap: 46px; align-items: start;
    padding: 40px 0 80px;
}
/* grid 子项默认 min-width:auto，会被宽表格/代码块撑破容器导致整页横向滚动 */
.doc { min-width: 0; }
.toc {
    position: sticky; top: 82px;
    border-left: 1px solid var(--line);
    padding-left: 18px;
    font-size: 14px;
}
.toc strong {
    display: block; font-size: 12px; letter-spacing: .1em;
    color: var(--txt3); text-transform: uppercase; margin-bottom: 12px;
    font-weight: 700;
}
.toc a { display: block; color: var(--txt2); padding: 5px 0; }
.toc a:hover { color: var(--brand2); text-decoration: none; }
.toc a.on { color: var(--brand2); font-weight: 600; }

.doc h2 {
    font-size: 24px; margin: 46px 0 6px;
    padding-top: 22px; border-top: 1px solid var(--line);
    scroll-margin-top: 84px;
}
.doc > h2:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
.doc h3 { font-size: 17.5px; margin: 28px 0 8px; scroll-margin-top: 84px; }
.doc p { color: var(--txt2); }
.doc ul, .doc ol { color: var(--txt2); padding-left: 22px; }
.doc li { margin-bottom: 7px; }
.doc li b, .doc p b { color: var(--txt); }
.doc .note {
    border-left: 3px solid var(--brand);
    background: var(--brand-soft);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    padding: 13px 17px;
    margin: 16px 0;
    color: var(--txt2); font-size: 14.3px;
}
.doc .note b { color: var(--txt); }
.doc .note.warn { border-left-color: #ffb020; background: rgba(255,176,32,.1); }

table {
    width: 100%; border-collapse: collapse; margin: 16px 0;
    font-size: 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    overflow: hidden;
}
thead th {
    text-align: left; font-weight: 700; color: var(--txt);
    background: rgba(255,255,255,.055);
    padding: 11px 14px; font-size: 13.5px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
tbody td {
    padding: 11px 14px; color: var(--txt2);
    border-bottom: 1px solid rgba(255,255,255,.05);
    vertical-align: top;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255,255,255,.026); }
.tbl-scroll { overflow-x: auto; margin: 16px 0; }
.tbl-scroll table { margin: 0; min-width: 520px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1040px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .hero-in { grid-template-columns: 1fr; gap: 40px; }
    .mock { max-width: 620px; }
}
@media (max-width: 900px) {
    .doc-layout { grid-template-columns: 1fr; gap: 0; }
    .toc {
        position: static; border-left: 0; border: 1px solid var(--line);
        border-radius: var(--r-sm); padding: 16px 18px; margin-bottom: 30px;
        background: var(--card);
    }
    .toc a { display: inline-block; margin-right: 16px; }
}
@media (max-width: 720px) {
    .nav-links { gap: 15px; }
    .nav-links a.hide-sm { display: none; }
    section { padding: 54px 0; }
    .hero { padding: 48px 0 40px; }
    .compare { grid-template-columns: 1fr; }
    .cards { grid-template-columns: 1fr; }
    .mock-eps .grid { grid-template-columns: repeat(5, 1fr); }
    .foot-in { flex-direction: column; }
}
@media (max-width: 460px) {
    .wrap { padding: 0 16px; }
    .nav-in { padding: 0 16px; gap: 14px; }
    .brand span.full { display: none; }
    .btn-lg { width: 100%; }
    .hero-cta { gap: 10px; }
    .mock-eps .grid { grid-template-columns: repeat(4, 1fr); }
}
