:root {
    color-scheme: light;
    --gx-paper-background: #fdf9f4;
    --gx-paper-editorial: #faf7f1;
    --gx-paper-surface: #fffefc;
    --gx-paper-raised: #ffffff;
    --gx-ink-primary: #20231f;
    --gx-ink-secondary: #6d6a62;
    --gx-ink-tertiary: #99958b;
    --gx-jade-primary: #234b3b;
    --gx-jade-deep: #18362c;
    --gx-celadon: #afc2b3;
    --gx-celadon-soft: #dce4da;
    --gx-gold-primary: #a88a4b;
    --gx-gold-soft: #d4bf86;
    --gx-gold-background: #f1e8d5;
    --gx-cinnabar: #a74838;
    --gx-border: #e9ded0;
    --gx-success: #3f765b;
    --gx-warning: #a87832;
    --gx-error: #a84438;
    --gx-info: #4d6f78;
    --gx-shadow-subtle: 0 3px 8px rgba(32, 35, 31, 0.07);
    --gx-radius-small: 8px;
    --gx-radius-card: 10px;
    --gx-radius-emphasized: 12px;
    --gx-space-1: 4px;
    --gx-space-2: 8px;
    --gx-space-3: 12px;
    --gx-space-4: 16px;
    --gx-space-5: 20px;
    --gx-space-6: 24px;
    --gx-space-7: 32px;
    --gx-space-8: 40px;
    --gx-content-regular: 720px;
    --gx-content-report: 680px;
    --gx-serif: "Songti SC", STSong, "Noto Serif CJK SC", "Source Han Serif SC", serif;
    --gx-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--gx-paper-background);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gx-ink-primary);
    background:
        radial-gradient(circle at 14% 4%, rgba(220, 228, 218, 0.66), transparent 29rem),
        radial-gradient(circle at 88% 16%, rgba(241, 232, 213, 0.76), transparent 25rem),
        repeating-linear-gradient(0deg, rgba(35, 75, 59, 0.015) 0, rgba(35, 75, 59, 0.015) 1px, transparent 1px, transparent 5px),
        var(--gx-paper-background);
    font-family: var(--gx-sans);
    font-size: 16px;
    line-height: 1.78;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--gx-jade-primary);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--gx-jade-deep);
}

a:focus-visible,
button:focus-visible {
    border-radius: var(--gx-radius-small);
    outline: 3px solid rgba(168, 138, 75, 0.44);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: var(--gx-space-3);
    left: var(--gx-space-3);
    min-height: 44px;
    padding: 9px var(--gx-space-4);
    border-radius: var(--gx-radius-small);
    background: var(--gx-jade-deep);
    color: var(--gx-paper-surface);
    transform: translateY(-180%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.page {
    width: min(100%, calc(var(--gx-content-regular) + 48px));
    margin: 0 auto;
    padding: var(--gx-space-6) 24px var(--gx-space-8);
}

.page.report-page {
    width: min(100%, calc(var(--gx-content-report) + 48px));
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gx-space-5);
    padding: var(--gx-space-2) 0 var(--gx-space-6);
}

.brand {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    min-height: 44px;
    justify-content: center;
    color: var(--gx-jade-deep);
    text-decoration: none;
}

.brand strong {
    font-family: var(--gx-serif);
    font-size: 27px;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.25;
}

.brand small {
    color: var(--gx-ink-secondary);
    font-size: 12px;
    letter-spacing: 0.08em;
}

.nav,
.footer-links,
.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--gx-space-3);
}

.nav a,
.footer-links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: var(--gx-ink-secondary);
    font-size: 14px;
    text-decoration: none;
}

.nav a:hover,
.footer-links a:hover {
    color: var(--gx-jade-primary);
}

.hero,
.gx-card,
.doc {
    border: 1px solid var(--gx-border);
    background: rgba(255, 254, 252, 0.96);
    box-shadow: var(--gx-shadow-subtle);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 6vw, 48px);
    border-radius: var(--gx-radius-emphasized);
}

.hero::after {
    position: absolute;
    right: -68px;
    bottom: -84px;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(168, 138, 75, 0.22);
    border-radius: 50%;
    box-shadow:
        0 0 0 24px rgba(168, 138, 75, 0.05),
        0 0 0 48px rgba(35, 75, 59, 0.035);
    content: "";
    pointer-events: none;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: var(--gx-space-3);
    margin: 0 0 var(--gx-space-3);
    color: var(--gx-gold-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.eyebrow::before {
    width: 7px;
    height: 7px;
    border: 1px solid var(--gx-gold-primary);
    content: "";
    transform: rotate(45deg);
}

.hero h1,
.doc h1 {
    margin: 0;
    color: var(--gx-ink-primary);
    font-family: var(--gx-serif);
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.32;
}

.hero h1 {
    max-width: 620px;
    font-size: clamp(29px, 6vw, 46px);
}

.hero .lead {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: var(--gx-space-4) 0 0;
    color: var(--gx-ink-secondary);
    font-family: var(--gx-serif);
    font-size: clamp(14px, 2.4vw, 17px);
}

.actions {
    position: relative;
    z-index: 1;
    margin-top: var(--gx-space-6);
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 var(--gx-space-5);
    border: 1px solid var(--gx-jade-primary);
    border-radius: var(--gx-radius-emphasized);
    background: var(--gx-jade-primary);
    color: var(--gx-paper-surface);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.button:hover {
    background: var(--gx-jade-deep);
    color: var(--gx-paper-surface);
}

.button.secondary {
    border-color: var(--gx-gold-soft);
    background: var(--gx-gold-background);
    color: var(--gx-jade-deep);
}

.section-heading {
    display: flex;
    align-items: center;
    gap: var(--gx-space-3);
    margin: var(--gx-space-8) 0 var(--gx-space-4);
    color: var(--gx-jade-primary);
    font-family: var(--gx-serif);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.section-heading::before,
.section-heading::after {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gx-gold-soft));
    content: "";
    flex: 1;
}

.section-heading::after {
    background: linear-gradient(90deg, var(--gx-gold-soft), transparent);
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gx-space-4);
}

.grid.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gx-card {
    padding: var(--gx-space-5);
    border-radius: var(--gx-radius-card);
}

.gx-card h2,
.gx-card h3 {
    margin: 0 0 var(--gx-space-2);
    color: var(--gx-jade-deep);
    font-family: var(--gx-serif);
    font-weight: 600;
    line-height: 1.45;
}

.gx-card h2 {
    font-size: 17px;
}

.gx-card h3 {
    font-size: 15px;
}

.gx-card p {
    margin: 0;
    color: var(--gx-ink-secondary);
    font-size: 14px;
}

.gx-card .card-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    margin-top: var(--gx-space-3);
    font-size: 14px;
    font-weight: 650;
}

.feature-mark {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--gx-space-3);
    border: 1px solid var(--gx-gold-soft);
    border-radius: 50%;
    background: var(--gx-gold-background);
    color: var(--gx-jade-primary);
    font-family: var(--gx-serif);
    font-size: 13px;
}

.doc {
    padding: clamp(24px, 5vw, 40px);
    border-radius: var(--gx-radius-card);
}

.doc h1 {
    font-size: clamp(26px, 5vw, 36px);
}

.doc h2 {
    margin: var(--gx-space-8) 0 var(--gx-space-3);
    padding-top: var(--gx-space-6);
    border-top: 1px solid var(--gx-border);
    color: var(--gx-jade-deep);
    font-family: var(--gx-serif);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.45;
}

.doc h3 {
    margin: var(--gx-space-6) 0 var(--gx-space-2);
    color: var(--gx-jade-primary);
    font-size: 15px;
}

.doc p,
.doc li {
    color: #353933;
    font-size: 14px;
}

.doc ul,
.doc ol {
    padding-left: 1.35rem;
}

.doc li + li {
    margin-top: var(--gx-space-2);
}

.doc .meta {
    margin: var(--gx-space-2) 0 var(--gx-space-6);
    color: var(--gx-ink-tertiary);
    font-size: 12px;
}

.notice {
    margin: var(--gx-space-6) 0;
    padding: var(--gx-space-4) var(--gx-space-5);
    border: 1px solid var(--gx-celadon);
    border-left: 4px solid var(--gx-jade-primary);
    border-radius: var(--gx-radius-small);
    background: rgba(220, 228, 218, 0.46);
    color: var(--gx-jade-deep);
    font-size: 14px;
}

.notice.warning {
    border-color: var(--gx-gold-soft);
    border-left-color: var(--gx-warning);
    background: rgba(241, 232, 213, 0.68);
    color: #684b20;
}

.notice.important {
    border-color: rgba(167, 72, 56, 0.38);
    border-left-color: var(--gx-cinnabar);
    background: rgba(167, 72, 56, 0.07);
    color: #692f27;
}

.fact-list {
    display: grid;
    gap: var(--gx-space-3);
    margin: var(--gx-space-5) 0;
    padding: 0;
    list-style: none;
}

.fact-list li {
    padding: var(--gx-space-3) var(--gx-space-4);
    border-left: 2px solid var(--gx-gold-soft);
    background: rgba(250, 247, 241, 0.88);
}

.table-wrap {
    overflow-x: auto;
    margin: var(--gx-space-5) 0;
    border: 1px solid var(--gx-border);
    border-radius: var(--gx-radius-card);
}

table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    background: var(--gx-paper-surface);
}

th,
td {
    padding: var(--gx-space-3) var(--gx-space-4);
    border-bottom: 1px solid var(--gx-border);
    font-size: 14px;
    text-align: left;
    vertical-align: top;
}

th {
    background: rgba(220, 228, 218, 0.56);
    color: var(--gx-jade-deep);
}

tr:last-child td {
    border-bottom: 0;
}

.footer {
    margin-top: var(--gx-space-7);
    padding-top: var(--gx-space-5);
    border-top: 1px solid var(--gx-border);
    color: var(--gx-ink-tertiary);
    font-size: 13px;
}

.footer-links {
    margin-bottom: var(--gx-space-2);
}

@media (max-width: 720px) {
    .page,
    .page.report-page {
        padding: var(--gx-space-5) 20px var(--gx-space-7);
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: var(--gx-space-3);
    }

    .nav {
        gap: var(--gx-space-2) var(--gx-space-3);
    }

    .grid,
    .grid.two-columns {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: var(--gx-space-6);
    }

    .hero::after {
        opacity: 0.62;
    }

    .section-heading::before,
    .section-heading::after {
        min-width: 18px;
    }

    .doc {
        padding: var(--gx-space-6) var(--gx-space-5);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}

@media print {
    body {
        background: #ffffff;
    }

    .page,
    .page.report-page {
        width: 100%;
        padding: 0;
    }

    .topbar,
    .actions,
    .footer-links,
    .skip-link {
        display: none;
    }

    .hero,
    .gx-card,
    .doc {
        border-color: #cccccc;
        box-shadow: none;
    }
}
