/* ============================================================
 * PVQ-UI 官网（pvq-ui.pvq.ink）框架样式
 * 页面自身框架（不依赖库令牌，保持中性，避免与预览混淆）
 * 组件预览区直接复用 COS CDN 上的库真实样式
 * ============================================================ */

:root {
    --sc-bg: #fbfcfb;
    --sc-bg-soft: #f1f3f1;
    --sc-sidebar: #ffffff;
    --sc-border: #e6e9e5;
    --sc-text: #1e2a1f;
    --sc-text-2: #5c6b5e;
    --sc-text-muted: #9aa39c;
    --sc-accent: #608062;
    --sc-accent-soft: rgba(96, 128, 98, 0.1);
    --sc-code-bg: #1c241d;
    --sc-code-text: #d6e0d7;
    --sc-radius: 12px;
    --sc-shadow: 0 2px 12px rgba(30, 42, 31, 0.06);
    --sc-shadow-lg: 0 22px 60px rgba(30, 42, 31, 0.14);
    --sc-accent-2: #7a9e7c;
    --sc-accent-ring: rgba(96, 128, 98, 0.18);
    --sc-sidebar-w: 268px;
    --sc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
    --sc-mono: "SF Mono", "Fira Code", "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sc-font);
    color: var(--sc-text);
    background: var(--sc-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ===== 顶部条 ===== */
.sc-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 14px;
    height: 60px;
    padding: 0 24px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--sc-border);
}
.sc-topbar__brand {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: inherit;
}
.sc-topbar__logo {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, #608062, #7a9e7c);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 15px;
    box-shadow: 0 4px 12px rgba(96, 128, 98, 0.3);
}
.sc-topbar__title { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.sc-topbar__ver {
    font-size: 11px; font-weight: 600; color: var(--sc-accent);
    background: var(--sc-accent-soft); border: 1px solid rgba(96, 128, 98, 0.15);
    padding: 2px 9px; border-radius: 999px;
}
.sc-topbar__spacer { flex: 1; }
.sc-topnav { display: flex; align-items: center; gap: 4px; }
.sc-topnav a {
    padding: 7px 12px; border-radius: 8px;
    font-size: 14px; color: var(--sc-text-2); text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.sc-topnav a:hover { background: var(--sc-bg-soft); color: var(--sc-text); }
.sc-topnav a.is-active { background: var(--sc-accent-soft); color: var(--sc-accent); font-weight: 600; }
.sc-topbar__gh {
    font-size: 13px; color: var(--sc-text-2); text-decoration: none;
    padding: 6px 10px; border: 1px solid var(--sc-border); border-radius: 8px;
    display: inline-flex; align-items: center; gap: 6px;
    transition: all 0.15s;
}
.sc-topbar__gh:hover { color: var(--sc-accent); border-color: rgba(96, 128, 98, 0.3); }
.sc-topbar__search { position: relative; }
.sc-topbar__search input {
    width: 220px;
    height: 36px;
    padding: 0 12px 0 34px;
    border: 1px solid var(--sc-border);
    border-radius: 9px;
    font-size: 13px;
    font-family: inherit;
    background: var(--sc-bg-soft);
    color: var(--sc-text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.sc-topbar__search input:focus {
    border-color: var(--sc-accent);
    box-shadow: 0 0 0 3px rgba(96, 128, 98, 0.15);
    background: #fff;
}
.sc-topbar__search i {
    position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
    color: var(--sc-text-muted); font-size: 13px; pointer-events: none;
}
@media (max-width: 860px) {
    .sc-topbar__search { display: none; }
    .sc-topnav a { padding: 7px 8px; }
}

/* ===== 布局 ===== */
.sc-layout { display: flex; align-items: flex-start; }

/* ===== 侧边栏 ===== */
.sc-sidebar {
    position: sticky;
    top: 60px;
    flex-shrink: 0;
    width: var(--sc-sidebar-w);
    height: calc(100vh - 60px);
    overflow-y: auto;
    padding: 22px 14px 40px;
    background: var(--sc-sidebar);
    border-right: 1px solid var(--sc-border);
}
.sc-nav-group { margin-bottom: 18px; }
.sc-nav-group__title {
    font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--sc-text-muted);
    padding: 0 10px; margin-bottom: 6px;
}
.sc-nav-link {
    display: flex; align-items: center; gap: 9px;
    padding: 7px 10px;
    margin: 1px 0;
    border-radius: 8px;
    font-size: 13px; color: var(--sc-text-2);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.sc-nav-link:hover { background: var(--sc-bg-soft); color: var(--sc-text); }
.sc-nav-link.is-active { background: var(--sc-accent-soft); color: var(--sc-accent); font-weight: 600; }
.sc-nav-link i { width: 16px; text-align: center; font-size: 13px; opacity: 0.8; }
.sc-nav-link mark { background: rgba(196, 154, 46, 0.35); color: inherit; border-radius: 3px; padding: 0 2px; }

/* ===== 主内容 ===== */
.sc-main {
    flex: 1;
    min-width: 0;
    padding: 36px 48px 96px;
    max-width: 1000px;
    margin: 0 auto;
}
@media (max-width: 720px) { .sc-main { padding: 24px 18px 80px; } }

.sc-hero { margin-bottom: 12px; }
.sc-hero h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; }
.sc-hero p { font-size: 15px; color: var(--sc-text-2); margin: 0; max-width: 640px; }

.sc-section { margin-top: 56px; scroll-margin-top: 76px; }
.sc-section__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.sc-section__head h2 { font-size: 21px; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.sc-section__tag {
    font-size: 11px; font-weight: 600; color: var(--sc-accent);
    background: var(--sc-accent-soft); border-radius: 999px; padding: 2px 9px;
}
.sc-section__desc { font-size: 14px; color: var(--sc-text-2); margin: 0 0 20px; max-width: 680px; }

.sc-subsection { margin-top: 30px; }
.sc-subsection__title {
    font-size: 14px; font-weight: 700; color: var(--sc-text);
    display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
}
.sc-subsection__title .sc-anchor {
    opacity: 0; color: var(--sc-accent); text-decoration: none; transition: opacity 0.15s;
    font-weight: 400;
}
.sc-subsection:hover .sc-anchor { opacity: 1; }
.sc-subsection__note { font-size: 12.5px; color: var(--sc-text-muted); margin: 0 0 14px; }

/* ===== 预览 + 代码 ===== */
.sc-demo { border: 1px solid var(--sc-border); border-radius: var(--sc-radius); overflow: hidden; background: #fff; }
.sc-demo__preview {
    padding: 28px 24px;
    background:
        linear-gradient(45deg, #f6f8f6 25%, transparent 25%),
        linear-gradient(-45deg, #f6f8f6 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f6f8f6 75%),
        linear-gradient(-45deg, transparent 75%, #f6f8f6 75%);
    background-size: 18px 18px;
    background-position: 0 0, 0 9px, 9px -9px, -9px 0;
    background-color: #fcfdfc;
}
.sc-demo__preview > *:last-child { margin-bottom: 0; }

.sc-demo__code { position: relative; border-top: 1px solid var(--sc-border); }
.sc-demo__code pre {
    margin: 0; padding: 16px 18px; overflow-x: auto;
    background: var(--sc-code-bg); color: var(--sc-code-text);
    font-family: var(--sc-mono); font-size: 12.5px; line-height: 1.7;
    tab-size: 4;
}
.sc-demo__code code { font-family: inherit; white-space: pre; }
.sc-copy {
    position: absolute; top: 10px; right: 10px;
    font-size: 12px; color: #c3ccc3; background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 6px;
    padding: 4px 10px; cursor: pointer; transition: all 0.15s;
    display: inline-flex; align-items: center; gap: 5px; z-index: 2;
}
.sc-copy:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.sc-copy.is-done { color: #7ee29a; border-color: rgba(126, 226, 154, 0.4); }

/* ===== 令牌可视化 ===== */
.sc-tokens { display: grid; gap: 24px; }
.sc-token-group__title { font-size: 13px; font-weight: 700; color: var(--sc-text-2); margin-bottom: 12px; }
.sc-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.sc-swatch {
    border: 1px solid var(--sc-border); border-radius: 10px; overflow: hidden; background: #fff;
}
.sc-swatch__color { height: 56px; }
.sc-swatch__meta { padding: 9px 11px; }
.sc-swatch__name { font-size: 12px; font-weight: 600; color: var(--sc-text); font-family: var(--sc-mono); }
.sc-swatch__val { font-size: 11px; color: var(--sc-text-muted); font-family: var(--sc-mono); margin-top: 2px; word-break: break-all; }

.sc-radius-row, .sc-shadow-row { display: flex; flex-wrap: wrap; gap: 18px; }
.sc-radius-item, .sc-shadow-item { text-align: center; }
.sc-radius-box {
    background: var(--sc-accent-soft); border: 1px solid rgba(96, 128, 98, 0.18);
    width: 64px; height: 64px; margin: 0 auto 8px;
}
.sc-shadow-box {
    background: #fff; border: 1px solid var(--sc-border);
    width: 88px; height: 64px; margin: 0 auto 8px; border-radius: 8px;
}
.sc-token-label { font-size: 12px; font-family: var(--sc-mono); color: var(--sc-text-2); }

/* ===== 首页视觉升级（.hp-* 专属，不污染组件/文档页） ===== */
.hp-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 80;
    background: linear-gradient(90deg, var(--sc-accent), var(--sc-accent-2));
    transition: width 0.08s linear;
}

/* Hero */
.hp-hero {
    position: relative; overflow: hidden; border-bottom: 1px solid var(--sc-border);
    padding: 92px 24px 80px; background: linear-gradient(180deg, #fff, var(--sc-bg));
}
.hp-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hp-hero__bg::after {
    content: ""; position: absolute; inset: 0; opacity: 0.03; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hp-hero__grid {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(30, 42, 31, 0.05) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 75%);
    mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 75%);
}
.hp-blob {
    position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5;
    animation: hp-float 14s ease-in-out infinite;
}
.hp-blob--1 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(96, 128, 98, 0.45), transparent 70%); top: -120px; right: -60px; }
.hp-blob--2 { width: 340px; height: 340px; background: radial-gradient(circle, rgba(122, 158, 124, 0.4), transparent 70%); bottom: -100px; left: -40px; animation-delay: -6s; }
.hp-blob--3 { width: 260px; height: 260px; background: radial-gradient(circle, rgba(170, 200, 150, 0.35), transparent 70%); top: 40px; left: 42%; animation-delay: -3s; }
@keyframes hp-float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(0, 26px) scale(1.06); } }

.hp-hero__inner { position: relative; max-width: 900px; margin: 0 auto; text-align: center; }
.hp-badge {
    display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--sc-accent);
    background: var(--sc-accent-soft); border: 1px solid rgba(96, 128, 98, 0.18);
    padding: 6px 15px; border-radius: 999px; margin-bottom: 24px;
}
.hp-hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 18px; }
.hp-grad {
    background: linear-gradient(110deg, var(--sc-accent), #9bc08a, #cfe3b0, var(--sc-accent-2));
    background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: hp-shine 7s linear infinite;
}
@keyframes hp-shine { to { background-position: 220% center; } }
.hp-hero__lead { font-size: clamp(15px, 2.4vw, 18px); color: var(--sc-text-2); max-width: 620px; margin: 0 auto 30px; }
.hp-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hp-pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.hp-pill {
    font-size: 12.5px; color: var(--sc-text-2); background: #fff; border: 1px solid var(--sc-border);
    border-radius: 999px; padding: 6px 14px; display: inline-flex; gap: 7px; align-items: center; box-shadow: var(--sc-shadow);
}
.hp-pill i { color: var(--sc-accent); }

/* 实时预览窗（真实库组件） */
.hp-preview {
    position: relative; margin: 44px auto 0; max-width: 600px; background: #fff; border: 1px solid var(--sc-border);
    border-radius: 16px; box-shadow: var(--sc-shadow-lg); overflow: hidden; text-align: left;
    animation: hp-floaty 7s ease-in-out infinite;
}
@keyframes hp-floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hp-preview__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--sc-border); background: var(--sc-bg-soft); }
.hp-dot { width: 10px; height: 10px; border-radius: 50%; }
.hp-dot--r { background: #ff5f57; } .hp-dot--y { background: #febc2e; } .hp-dot--g { background: #28c840; }
.hp-preview__bar span { margin-left: 8px; font-size: 11.5px; color: var(--sc-text-muted); font-family: var(--sc-mono); }
.hp-preview__body { padding: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }

/* 容器 / 区块 */
.hp-wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }
.hp-block { margin-top: 80px; scroll-margin-top: 80px; }
.hp-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sc-accent); margin-bottom: 8px; }
.hp-sec-head { text-align: center; margin-bottom: 30px; }
.hp-sec-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; }
.hp-sec-head p { font-size: 14.5px; color: var(--sc-text-2); margin: 0; }

/* 数据条 */
.hp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 64px; }
.hp-stat {
    background: var(--sc-sidebar); border: 1px solid var(--sc-border); border-radius: var(--sc-radius);
    padding: 24px 18px; text-align: center; transition: 0.2s; position: relative; overflow: hidden;
}
.hp-stat::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--sc-accent), var(--sc-accent-2)); transform: scaleX(0); transition: transform 0.3s;
}
.hp-stat:hover { transform: translateY(-4px); box-shadow: var(--sc-shadow-lg); border-color: var(--sc-accent-ring); }
.hp-stat:hover::before { transform: scaleX(1); }
.hp-stat__n { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; color: var(--sc-accent); font-family: var(--sc-mono); }
.hp-stat__l { font-size: 12.5px; color: var(--sc-text-2); margin-top: 4px; }

/* 价值卡 */
.hp-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.hp-card {
    background: var(--sc-sidebar); border: 1px solid var(--sc-border); border-radius: 16px; padding: 24px;
    transition: 0.22s; position: relative; overflow: hidden;
}
.hp-card::after {
    content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
    background: linear-gradient(90deg, var(--sc-accent), var(--sc-accent-2)); transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.hp-card:hover { transform: translateY(-5px); box-shadow: var(--sc-shadow-lg); border-color: var(--sc-accent-ring); }
.hp-card:hover::after { transform: scaleX(1); }
.hp-card__ic {
    width: 44px; height: 44px; border-radius: 12px; background: var(--sc-accent-soft); color: var(--sc-accent);
    display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 14px; transition: 0.22s;
}
.hp-card:hover .hp-card__ic { background: linear-gradient(135deg, var(--sc-accent), var(--sc-accent-2)); color: #fff; }
.hp-card__title { font-size: 16px; margin: 0 0 6px; }
.hp-card__desc { font-size: 13.5px; color: var(--sc-text-2); margin: 0; }

/* 快速开始标签页 */
.hp-tabs { display: flex; gap: 6px; justify-content: center; margin-bottom: 14px; flex-wrap: wrap; }
.hp-tab {
    padding: 7px 15px; border: 1px solid var(--sc-border); border-radius: 9px; background: #fff;
    font-size: 13px; color: var(--sc-text-2); cursor: pointer; transition: 0.15s;
}
.hp-tab:hover { border-color: var(--sc-accent-ring); color: var(--sc-accent); }
.hp-tab--active { background: var(--sc-accent-soft); color: var(--sc-accent); border-color: var(--sc-accent-ring); font-weight: 600; }
.hp-pane { display: none; }
.hp-pane--active { display: block; animation: hp-fade 0.35s ease; }
@keyframes hp-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.site-code {
    position: relative; border: 1px solid var(--sc-border); border-radius: var(--sc-radius);
    overflow: hidden; background: var(--sc-code-bg);
}
.site-code pre { margin: 0; padding: 18px; overflow-x: auto; }
.site-code code { font-family: var(--sc-mono); font-size: 13px; line-height: 1.7; color: var(--sc-code-text); white-space: pre; }

/* CTA 带 */
.hp-cta {
    margin: 84px auto 0; padding: 52px 24px; text-align: center;
    background: linear-gradient(135deg, rgba(96, 128, 98, 0.12), rgba(96, 128, 98, 0.03));
    border-top: 1px solid var(--sc-accent-ring);
}
.hp-cta h2 { font-size: 24px; margin: 0 0 8px; }
.hp-cta p { font-size: 14.5px; color: var(--sc-text-2); margin: 0 0 22px; }
.hp-cta .hp-actions { display: flex; justify-content: center; }

/* 入场动画 */
.hp-reveal {
    opacity: 0; transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hp-reveal.hp-in { opacity: 1; transform: none; }
.hp-reveal[data-d="1"] { transition-delay: 0.08s; }
.hp-reveal[data-d="2"] { transition-delay: 0.16s; }
.hp-reveal[data-d="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
    .hp-reveal, .hp-blob, .hp-preview, .hp-grad { animation: none !important; opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}
@media (max-width: 760px) {
    .hp-stats { grid-template-columns: repeat(2, 1fr); }
    .hp-cards { grid-template-columns: 1fr; }
    .hp-hero h1 { font-size: 30px; }
}

/* ===== 文档页 ===== */
.doc-hero {
    max-width: 1100px; margin: 0 auto; padding: 40px 24px 8px;
}
.doc-hero h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; }
.doc-hero p { font-size: 15px; color: var(--sc-text-2); margin: 0; max-width: 680px; }

.doc-layout {
    display: flex; align-items: flex-start; gap: 0;
    max-width: 1100px; margin: 0 auto; padding: 24px;
}
.doc-sidebar {
    position: sticky; top: 76px;
    flex-shrink: 0; width: 260px;
    max-height: calc(100vh - 96px); overflow-y: auto;
    padding-right: 18px;
    border-right: 1px solid var(--sc-border);
}
.doc-nav-link {
    display: block; padding: 10px 12px; margin: 2px 0;
    border-radius: 9px; text-decoration: none; color: var(--sc-text-2);
    transition: background 0.15s, color 0.15s;
}
.doc-nav-link:hover { background: var(--sc-bg-soft); color: var(--sc-text); }
.doc-nav-link.is-active { background: var(--sc-accent-soft); color: var(--sc-accent); }
.doc-nav-link__title { display: block; font-size: 14px; font-weight: 600; }
.doc-nav-link__desc { display: block; font-size: 12px; color: var(--sc-text-muted); margin-top: 2px; }
.doc-nav-link.is-active .doc-nav-link__desc { color: var(--sc-accent); opacity: 0.8; }

.doc-main { flex: 1; min-width: 0; padding-left: 32px; }
.doc-content { max-width: 760px; }
.doc-content__crumb {
    font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--sc-text-muted); margin-bottom: 14px;
}
.doc-missing { color: #c45454; }

/* Markdown 正文排版 */
.doc-content h1 { font-size: 26px; margin: 32px 0 14px; letter-spacing: -0.01em; }
.doc-content h2 { font-size: 21px; margin: 30px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--sc-border); }
.doc-content h3 { font-size: 17px; margin: 22px 0 10px; }
.doc-content p { font-size: 14.5px; color: var(--sc-text); margin: 0 0 14px; }
.doc-content ul, .doc-content ol { padding-left: 22px; margin: 0 0 14px; }
.doc-content li { font-size: 14.5px; margin: 4px 0; }
.doc-content a { color: var(--sc-accent); text-decoration: none; border-bottom: 1px solid rgba(96,128,98,0.3); }
.doc-content a:hover { border-bottom-color: var(--sc-accent); }
.doc-content code {
    font-family: var(--sc-mono); font-size: 12.5px;
    background: var(--sc-bg-soft); border: 1px solid var(--sc-border);
    padding: 1px 6px; border-radius: 5px; color: #9a5b2f;
}
.doc-content pre {
    background: var(--sc-code-bg); color: var(--sc-code-text);
    padding: 16px 18px; border-radius: 10px; overflow-x: auto; margin: 0 0 16px;
}
.doc-content pre code {
    background: none; border: none; padding: 0; color: inherit; font-size: 12.5px; line-height: 1.7;
}
.doc-content blockquote {
    margin: 0 0 16px; padding: 10px 16px;
    border-left: 3px solid var(--sc-accent); background: var(--sc-accent-soft);
    border-radius: 0 8px 8px 0; color: var(--sc-text-2);
}
.doc-content table {
    width: 100%; border-collapse: collapse; margin: 0 0 16px;
    font-size: 13.5px; border: 1px solid var(--sc-border); border-radius: 8px; overflow: hidden;
}
.doc-content th, .doc-content td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--sc-border); }
.doc-content th { background: var(--sc-bg-soft); font-weight: 700; }
.doc-content tr:last-child td { border-bottom: none; }
.doc-content hr { border: none; border-top: 1px solid var(--sc-border); margin: 24px 0; }

/* ===== 概览网格 ===== */
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

.sc-hide { display: none !important; }
.sc-empty {
    text-align: center; color: var(--sc-text-muted); font-size: 14px;
    padding: 60px 0;
}

@media (max-width: 860px) {
    .doc-sidebar { display: none; }
    .doc-main { padding-left: 0; }
    .sc-sidebar { display: none; }
    .site-hero h1 { font-size: 30px; }
}
