/* 静态 CMS 页 — 对齐设计稿 .static-band / .legal-*（按需加载） */
.static-band {
    background: linear-gradient(180deg, var(--color-brand-soft, #fff3f1) 0%, color-mix(in srgb, var(--color-brand-soft, #fff4f2) 25%, var(--color-card, #fff)) 260px, var(--color-background, #f6f7f9) 520px);
    padding: 0 0 4rem;
}

.static-wrap {
    width: 100%;
    max-width: var(--max-width-mall, 1440px);
    margin-inline: auto;
    padding-inline: var(--spacing-gutter, clamp(0.875rem, 2.5vw, 1.5rem));
}

/* ---------- hero：仅 kicker + h1（无导语 / legal-meta） ---------- */
.static-hero {
    padding: 3.625rem 0 2.625rem;
    text-align: center;
}

.static-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--color-brand, #e23a2e);
}

.static-kicker::before,
.static-kicker::after {
    content: "";
    width: 1.375rem;
    height: 2px;
    border-radius: 2px;
    background: var(--color-brand, #e23a2e);
}

.static-hero h1 {
    max-width: 55rem;
    margin: 0 auto;
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.08rem;
    color: var(--color-foreground, #111214);
}

/* ---------- legal grid + TOC ---------- */
.static-legal {
    display: grid;
    grid-template-columns: 16.25rem minmax(0, 1fr);
    gap: 1.75rem;
    align-items: stretch;
    position: relative;
}

.static-legal.is-solo {
    grid-template-columns: minmax(0, 1fr);
}

.static-nav-slot {
    position: relative;
    min-width: 0;
}

.static-nav {
    position: relative;
    z-index: 20;
    width: 100%;
    max-height: calc(100vh - 6.75rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1.125rem;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 0.875rem;
    background: var(--color-card, #fff);
    box-shadow: 0 10px 28px color-mix(in srgb, var(--color-foreground, #111214) 6%, transparent);
    scrollbar-width: thin;
    scrollbar-color: var(--color-border, #d5d8dd) transparent;
}

.static-nav.is-fixed {
    position: fixed;
    top: var(--legal-top, 5.5rem);
    left: var(--legal-left, 0);
    width: var(--legal-width, 16.25rem);
    z-index: 59;
    max-height: calc(100vh - var(--legal-top, 5.5rem) - 1.25rem);
}

.static-nav.is-bottom {
    position: absolute;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: calc(100vh - var(--legal-top, 5.5rem) - 1.25rem);
}

.static-nav h2 {
    margin: 0 0 0.625rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-muted-foreground, #6b7280);
}

.static-nav a {
    display: block;
    padding: 0.5rem 0.625rem;
    border-left: 2px solid transparent;
    border-radius: 0.4375rem;
    font-size: 0.84375rem;
    line-height: 1.45;
    color: var(--color-ink-2, #3c4043);
}

.static-nav a:hover,
.static-nav a.is-on {
    border-left-color: var(--color-brand, #e23a2e);
    background: var(--color-brand-soft, #fff7f6);
    color: var(--color-brand, #e23a2e);
}

.static-nav a.is-on {
    font-weight: 700;
}

/* ---------- document ---------- */
.static-doc {
    min-width: 0;
    padding: 2.375rem;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 1rem;
    background: var(--color-card, #fff);
    color: var(--color-foreground, #111214);
}

.static-doc h1 {
    margin: 0 0 1rem;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.25;
}

.static-doc h2 {
    margin: 2.125rem 0 0.75rem;
    font-size: 1.375rem;
    font-weight: 800;
    line-height: 1.35;
    scroll-margin-top: 6.25rem;
}

.static-doc h2:first-child {
    margin-top: 0;
}

.static-doc h3 {
    margin: 1.375rem 0 0.5rem;
    font-size: 1rem;
    font-weight: 700;
}

.static-doc h4 {
    margin: 1rem 0 0.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
}

.static-doc p {
    margin: 0 0 0.8125rem;
    font-size: 0.9375rem;
    line-height: 1.82;
    color: var(--color-ink-2, #3c4043);
}

.static-doc ul,
.static-doc ol {
    margin: 0 0 0.875rem;
    padding-left: 1.375rem;
    font-size: 0.9375rem;
    line-height: 1.78;
    color: var(--color-ink-2, #3c4043);
}

.static-doc li {
    margin-bottom: 0.4375rem;
}

.static-doc a {
    color: var(--color-brand, #e23a2e);
    text-decoration: underline;
}

.static-doc img {
    max-width: 100%;
    height: auto;
}

.static-doc table {
    width: 100%;
    margin: 0 0 1rem;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.static-doc th,
.static-doc td {
    border: 1px solid var(--color-border, #e5e7eb);
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.static-doc .policy-note,
.static-doc .legal-alert {
    margin: 0 0 1.625rem;
    padding: 1rem 1.125rem;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 0.75rem;
    background: var(--color-muted, #f7f8fa);
    font-size: 0.84375rem;
    line-height: 1.7;
    color: var(--color-ink-2, #3c4043);
}

.static-doc .policy-note strong,
.static-doc .legal-alert strong {
    color: var(--color-foreground, #111214);
}

@media (max-width: 1000px) {
    .static-legal {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .static-nav,
    .static-nav.is-fixed,
    .static-nav.is-bottom {
        position: static;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 100%;
        max-height: none;
        overflow: visible;
        box-shadow: none;
    }
}

@media (max-width: 680px) {
    .static-hero {
        padding: 2.375rem 0 1.75rem;
    }

    .static-hero h1 {
        font-size: 1.9375rem;
        letter-spacing: -0.04rem;
    }

    .static-doc {
        padding: 1.5rem;
    }

    .static-doc h2 {
        font-size: 1.25rem;
    }
}

@media print {
    .static-nav-slot {
        display: none !important;
    }

    .static-band {
        background: var(--color-card, #fff);
    }

    .static-legal {
        display: block;
    }

    .static-doc {
        border: 0;
        padding: 0;
    }
}

/* FAQ 正文列表只作用在卡片内，避免 CMS 全局 ul/li 打到页脚 */
.faq-body {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-ink-2, #3c4043);
}

.faq-body p {
    margin: 0 0 0.75rem;
}

.faq-body ul {
    list-style: disc;
    margin: 0 0 1em;
    padding-left: 1.5em;
}

.faq-body li {
    margin-bottom: 0.5em;
}
