:root {
    --bg: #0F0E0A;
    --bg-deep: #080706;
    --surface: #1A1810;
    --surface-2: #242010;
    --title: #F5E6A8;
    --text: #E8DCB0;
    --muted: #B8A46A;
    --quiet: #8A7A48;
    --brand: #E8B923;
    --bright: #F3D056;
    --brand-deep: #A88212;
    --cream: #FFF6D8;
    --border: rgba(232,185,35,0.18);
    --border-strong: rgba(232,185,35,0.46);
    --shadow: 0 12px 28px rgba(0,0,0,0.40);
    --radius: 12px;
    --max: 1120px;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 15px; line-height: 1.7; overflow-x: hidden; }
body.ui-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { max-width: 100%; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 1000; background: var(--bright); color: #0F0E0A; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 10px; }
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; }
.top-line { height: 22px; background: #0A0907; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.top-line-inner, .race-bar-inner, .day-tabs-inner { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.top-line-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.text-button { min-height: 22px; position: relative; border: 0; padding: 0 2px; background: transparent; color: var(--title); cursor: pointer; }
.text-button::after { content: ""; position: absolute; inset: -11px -10px; }
.race-bar { height: 60px; background: var(--bg-deep); border-bottom: 1px solid var(--border-strong); }
.race-bar-inner { height: 60px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.brand-link { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; }
.brand-link img, .footer-brand img, .drawer-brand img { display: block; height: 28px; width: auto; max-width: 190px; object-fit: contain; object-position: left center; }
.brand-text { color: var(--title); font-weight: 700; font-size: 16px; letter-spacing: .04em; }
.drawer-trigger, .app-link, .button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; padding: 0 16px; font-size: 14px; white-space: nowrap; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.drawer-trigger { border: 1px solid var(--border-strong); background: var(--surface); color: var(--title); cursor: pointer; }
.app-link { justify-self: end; background: linear-gradient(135deg,#F3D056 0%,#E8B923 55%,#A88212 100%); color: #0F0E0A; font-weight: 700; }
.day-tabs { height: 40px; background: #0B0A07; border-bottom: 1px solid var(--border); }
.day-tabs-inner { height: 40px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.day-tabs a { height: 30px; min-width: 88px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--muted); font-size: 13px; }
.day-tabs a.is-active { background: var(--brand); color: #0F0E0A; font-weight: 700; }
.site-main { padding: 146px 0 56px; min-height: 70vh; }
.page-shell { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.page-head { margin-bottom: 26px; }
.eyebrow { display: inline-block; color: var(--brand); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
h1, h2, h3 { color: var(--title); margin-top: 0; }
h1 { font-size: 24px; line-height: 1.3; margin-bottom: 12px; }
h2 { font-size: 20px; line-height: 1.35; margin-bottom: 10px; }
h3 { font-size: 16px; line-height: 1.45; margin-bottom: 8px; }
p { margin: 0 0 14px; }
.lead { max-width: 820px; color: var(--text); font-size: 16px; }
.hero-banner { background: var(--bg-deep); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.hero-copy { padding: 24px; }
.hero-copy h1 { margin-bottom: 10px; }
.hero-copy p { max-width: 820px; }
.media-slot { width: 100%; height: 220px; background: #0A0907; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; }
.media-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.media-slot.banner { height: 260px; border: 0; border-radius: 0; }
.media-slot.card-image { height: 180px; }
.media-slot.article-image { height: 200px; }
.media-slot.app-image { height: 360px; max-width: 420px; margin: 0 auto; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.button.primary { background: linear-gradient(135deg,#F3D056 0%,#E8B923 55%,#A88212 100%); color: #0F0E0A; font-weight: 700; border: 1px solid transparent; }
.button.secondary { background: #11100B; color: var(--title); border: 1px solid var(--border-strong); }
.button:hover, .drawer-trigger:hover, .app-link:hover { transform: translateY(-1px); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--bright); outline-offset: 3px; }
.section { margin-top: 28px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.card, .panel, .content-block, .faq-item, .shelf-row, .note-card, .term-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 10px 24px rgba(0,0,0,.22); }
.card { overflow: hidden; }
.card-body { padding: 18px; }
.card p, .panel p, .content-block p, .term-block p { color: var(--text); }
.card .mini-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--bright); font-weight: 700; }
.feature-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; align-items: start; }
.content-block { padding: 22px; }
.number-list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 16px 0 0; }
.number-list a, .number-list div { background: #12100A; border: 1px solid var(--border); border-radius: 10px; padding: 14px; min-height: 80px; }
.number-list strong { display: block; color: var(--brand); font-size: 12px; letter-spacing: .08em; }
.number-list span { color: var(--title); }
.shelf { display: grid; gap: 10px; }
.shelf-row { padding: 15px 17px; display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; }
.shelf-row .tag { color: #0F0E0A; background: var(--bright); border-radius: 8px; min-height: 32px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.shelf-row small { color: var(--muted); }
.vertical-list { display: grid; gap: 14px; margin-left: 8px; }
.vertical-item { position: relative; padding: 0 0 0 28px; }
.vertical-item::before { content: ''; position: absolute; left: 2px; top: 9px; width: 11px; height: 11px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px rgba(232,185,35,.10); }
.vertical-item::after { content: ''; position: absolute; left: 7px; top: 25px; bottom: -18px; width: 1px; background: var(--border-strong); }
.vertical-item:last-child::after { display: none; }
.status { display: inline-flex; min-height: 28px; align-items: center; padding: 0 9px; border-radius: 999px; background: #11100B; border: 1px solid var(--border-strong); color: var(--title); font-size: 12px; }
.notes-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.note-card { padding: 18px; }
.note-card strong { color: var(--brand); display: block; margin-bottom: 6px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, .7fr); gap: 22px; align-items: start; }
.article-flow { display: grid; gap: 16px; }
.article-flow .content-block:nth-child(even) { background: var(--surface-2); }
.side-index { position: sticky; top: 138px; background: #11100B; border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.side-index a { display: flex; min-height: 42px; align-items: center; border-bottom: 1px solid var(--border); color: var(--muted); }
.side-index a:last-child { border-bottom: 0; }
.big-number-list { display: grid; gap: 16px; }
.big-number { display: grid; grid-template-columns: 90px 1fr; gap: 18px; align-items: start; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.big-number .num { color: var(--brand); font-size: 42px; line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.method-steps { counter-reset: method; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.method-steps .content-block { position: relative; padding-top: 52px; }
.method-steps .content-block::before { counter-increment: method; content: counter(method, decimal-leading-zero); position: absolute; top: 16px; left: 20px; color: var(--brand); font-weight: 800; letter-spacing: .12em; }
.term-stack { display: grid; gap: 14px; }
.term-block { padding: 20px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { padding: 18px 20px; }
.faq-item h2 { font-size: 16px; margin-bottom: 8px; }
.callout { background: linear-gradient(135deg, rgba(243,208,86,.16), rgba(168,130,18,.08)); border: 1px solid var(--border-strong); border-radius: 12px; padding: 20px; }
.icon-row { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: center; }
.icon-48 { width: 48px; height: 48px; object-fit: contain; }
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--border-strong); color: var(--text); }
.footer-inner { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; padding: 34px 0 82px; }
.footer-brand { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.footer-brand span { color: var(--muted); letter-spacing: .12em; font-size: 12px; }
.footer-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; padding: 22px 0; }
.footer-grid h2 { font-size: 13px; color: var(--brand); margin-bottom: 8px; }
.footer-grid a { display: block; min-height: 34px; color: var(--text); font-size: 13px; }
.footer-note, .copyright { font-size: 13px; color: var(--muted); }
.page-mask { position: fixed; inset: 0; background: rgba(0,0,0,.70); z-index: 180; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.page-mask.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.race-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 86vw; z-index: 200; background: #0B0A07; border-left: 1px solid var(--border-strong); transform: translateX(102%); visibility: hidden; pointer-events: none; transition: transform .22s ease, visibility .22s ease; box-shadow: -20px 0 50px rgba(0,0,0,.35); }
.race-drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--border); }
.drawer-brand { display: flex; align-items: center; gap: 10px; color: var(--title); font-weight: 700; }
.drawer-brand img { max-width: 140px; }
.icon-button { min-width: 58px; min-height: 42px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--surface); color: var(--title); cursor: pointer; }
.drawer-scroll { height: calc(100% - 74px); overflow-y: auto; padding: 10px 16px 28px; }
.drawer-group { padding: 10px 0; }
.drawer-group h2 { font-size: 13px; color: var(--brand); margin: 0 0 6px; }
.drawer-group a { display: block; padding: 10px 8px; border-bottom: 1px solid var(--border); border-radius: 8px; }
.drawer-group a:hover { background: var(--surface); }
.drawer-group b { display: block; color: var(--title); font-size: 14px; }
.drawer-group span { display: block; color: var(--muted); font-size: 12px; line-height: 1.55; margin-top: 2px; }
.search-layer { position: fixed; z-index: 210; top: 82px; left: 50%; width: min(760px, calc(100% - 32px)); transform: translate(-50%, -16px); opacity: 0; visibility: hidden; pointer-events: none; transition: .2s ease; }
.search-layer.is-open { transform: translate(-50%, 0); opacity: 1; visibility: visible; pointer-events: auto; }
.search-card { background: #0B0A07; border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow); padding: 20px; }
.search-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.search-head h2 { margin: 2px 0 12px; }
.search-field { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.search-field input { width: 100%; min-height: 44px; border: 1px solid var(--border-strong); border-radius: 10px; background: #11100B; color: var(--cream); padding: 0 13px; }
.search-presets { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.search-presets a { min-height: 44px; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; color: var(--title); }
.mobile-bottom { display: none; }
@media (max-width: 820px) {
    .day-tabs { display: none; }
    .site-main { padding-top: 106px; padding-bottom: 74px; }
    .race-bar-inner { width: calc(100% - 24px); grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; }
    .brand-link img { max-width: 135px; }
    .brand-text { font-size: 14px; }
    .drawer-trigger, .app-link { min-height: 44px; padding: 0 12px; }
    .top-line-inner { width: calc(100% - 24px); }
    .cards-3, .notes-grid, .footer-grid, .method-steps { grid-template-columns: 1fr; }
    .feature-grid, .article-layout { grid-template-columns: 1fr; }
    .side-index { position: static; }
    .number-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .shelf-row { grid-template-columns: 56px 1fr; }
    .shelf-row small { grid-column: 2; }
    .big-number { grid-template-columns: 62px 1fr; gap: 12px; }
    .big-number .num { font-size: 34px; }
    .search-layer { inset: 0; width: 100%; transform: none; background: #090806; padding: 18px 16px calc(70px + env(safe-area-inset-bottom)); overflow-y: auto; }
    .search-layer.is-open { transform: none; }
    .search-card { min-height: 100%; border: 0; box-shadow: none; padding: 8px 0; }
    .search-presets { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .mobile-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; height: calc(48px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5,1fr); background: #0A0907; border-top: 1px solid var(--border-strong); }
    .mobile-bottom a { min-width: 0; min-height: 48px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); }
    .mobile-bottom a.is-active { background: var(--brand); color: #0F0E0A; font-weight: 700; }
    .media-slot.banner { height: 260px; }
    .media-slot.app-image { height: 320px; }
    .footer-inner { padding-bottom: 90px; }
}
@media (max-width: 480px) {
    .page-shell, .footer-inner { width: calc(100% - 32px); }
    .top-line-inner, .race-bar-inner { width: calc(100% - 24px); }
    .top-line-inner > span { max-width: 72%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .brand-link { min-width: 0; overflow: hidden; }
    .brand-link img { max-width: 112px; }
    .brand-text { font-size: 13px; max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .drawer-trigger, .app-link { padding: 0 10px; font-size: 13px; }
    .hero-copy { padding: 18px; }
    .content-block, .term-block { padding: 18px; }
    .number-list { grid-template-columns: 1fr 1fr; }
}
