:root {
    --bg: #0F0E0A;
    --deep: #080706;
    --panel: #1A1810;
    --panel-2: #242010;
    --title: #F5E6A8;
    --text: #E8DCB0;
    --muted: #B8A46A;
    --soft: #8A7A48;
    --brand: #E8B923;
    --bright: #F3D056;
    --dark-gold: #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);
    --max: 1120px;
    --top-h: 122px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
    margin: 0;
    min-width: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.7;
}
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a, button, input { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.skip-link {
    position: fixed; left: 16px; top: -60px; z-index: 300;
    background: var(--bright); color: var(--bg); padding: 8px 12px; border-radius: 8px;
}
.skip-link:focus { top: 8px; }
.top-shell { position: fixed; inset: 0 0 auto 0; z-index: 120; box-shadow: 0 5px 18px rgba(0,0,0,.22); }
.bar-inner { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.now-line { height: 22px; background: var(--deep); color: var(--muted); border-bottom: 1px solid var(--border); font-size: 12px; }
.now-line-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.text-button { border: 0; background: transparent; color: var(--title); min-height: 22px; padding: 0 4px; }
.race-bar { height: 60px; background: var(--panel); 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; min-height: 44px; display: inline-flex; align-items: center; }
.brand-logo, .drawer-logo, .footer-logo { height: 28px; width: auto; max-width: 210px; object-fit: contain; object-position: center; }
.brand-fallback { font-size: 16px; font-weight: 800; color: var(--title); letter-spacing: .04em; }
.drawer-button, .app-link, .button-primary, .button-secondary {
    min-height: 42px; padding: 0 16px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    white-space: nowrap; font-size: 14px; font-weight: 800;
}
.drawer-button { justify-self: center; border: 1px solid var(--border-strong); background: var(--deep); color: var(--title); }
.app-link { justify-self: end; background: linear-gradient(135deg,#F3D056 0%,#E8B923 55%,#A88212 100%); color: var(--bg); }
.day-tabs { height: 40px; background: var(--deep); border-bottom: 1px solid var(--border); }
.day-tabs-inner { height: 40px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.day-tab { min-height: 32px; min-width: 84px; padding: 4px 16px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.day-tab.is-active { background: var(--brand); color: var(--bg); font-weight: 800; }
.site-main { padding-top: calc(var(--top-h) + 32px); min-height: 70vh; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.page-hero { padding: 24px 0 20px; }
.eyebrow { margin: 0 0 6px; color: var(--brand); font-size: 12px; letter-spacing: .12em; font-weight: 800; }
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.4; }
h3 { font-size: 16px; line-height: 1.45; }
p { margin: 0 0 14px; }
.lead { max-width: 820px; color: var(--cream); font-size: 16px; }
.section { padding: 28px 0; border-top: 1px solid var(--border); }
.section-heading { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.section-heading .index { color: var(--brand); font-size: 13px; font-weight: 800; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: block; transition: transform .18s ease, border-color .18s ease; }
.card-link:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.media-slot { width: 100%; background: var(--deep); border: 1px solid var(--border); border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.media-slot img, .media-image { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.media-180 { height: 180px; }
.media-200 { height: 200px; }
.media-260 { height: 260px; }
.media-app { height: min(360px, 58vw); }
.cover-caption { padding: 18px 0 0; max-width: 840px; }
.cover-caption .brand-title { color: var(--muted); font-size: 13px; letter-spacing: .08em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.button-primary { background: linear-gradient(135deg,#F3D056 0%,#E8B923 55%,#A88212 100%); color: var(--bg); border: 1px solid transparent; }
.button-secondary { background: var(--deep); color: var(--title); border: 1px solid var(--border-strong); }
.button-primary:hover, .app-link:hover { filter: brightness(1.06); }
.button-secondary:hover, .drawer-button:hover { background: var(--panel-2); }
.number-list { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin: 16px 0; }
.number-item { border: 1px solid var(--border); border-radius: 10px; padding: 14px; background: var(--deep); }
.number-item strong { color: var(--brand); display: block; font-size: 18px; }
.rack-list { display: grid; gap: 10px; }
.rack-row { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.rack-no { color: var(--brand); font-weight: 900; font-size: 18px; }
.rack-meta { color: var(--muted); font-size: 13px; }
.rack-row a { min-height: 40px; display: inline-flex; align-items: center; color: var(--title); font-weight: 800; }
.big-number-list { display: grid; gap: 16px; counter-reset: big; }
.big-number { display: grid; grid-template-columns: 82px minmax(0,1fr); gap: 18px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.big-number .num { color: var(--brand); font-size: 34px; font-weight: 900; line-height: 1; }
.timeline { position: relative; margin-left: 10px; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 8px; width: 1px; background: var(--border-strong); }
.timeline-item { position: relative; padding: 0 0 24px; }
.timeline-item::before { content: ""; position: absolute; left: -30px; top: 7px; width: 13px; height: 13px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px rgba(232,185,35,.09); }
.status { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 9px; border-radius: 999px; background: var(--panel-2); color: var(--title); border: 1px solid var(--border); font-size: 12px; font-weight: 800; }
.note-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.note { border-left: 3px solid var(--brand); background: var(--panel); padding: 16px 18px; border-radius: 0 12px 12px 0; }
.prose { max-width: 900px; }
.prose h2 { margin-top: 28px; }
.prose h3 { margin-top: 20px; }
.prose ul { margin: 0 0 16px; padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.definition-list { display: grid; gap: 12px; }
.definition-item { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.definition-item h2 { margin-bottom: 8px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.faq-item h2 { font-size: 16px; margin-bottom: 8px; }
.faq-item p { margin-bottom: 0; }
.brand-block { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 18px; align-items: stretch; }
.icon-wrap { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 12px; background: var(--deep); border: 1px solid var(--border); overflow: hidden; }
.icon-wrap img { width: 48px; height: 48px; object-fit: contain; }
.site-footer { margin-top: 40px; background: var(--deep); border-top: 1px solid var(--border-strong); color: var(--text); font-size: 13px; }
.footer-inner { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; padding: 30px 0 24px; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 22px; }
.footer-brand-link { min-height: 44px; display: inline-flex; align-items: center; }
.footer-brand strong { color: var(--title); }
.footer-brand span { color: var(--muted); }
.footer-groups { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.footer-group h2 { font-size: 13px; margin-bottom: 8px; color: var(--brand); }
.footer-group a { display: block; min-height: 34px; padding: 5px 0; color: var(--text); }
.footer-group a:hover { color: var(--bright); }
.footer-notice { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); }
.copyright { margin-bottom: 0; color: var(--soft); }
.site-drawer {
    position: fixed; z-index: 210; top: 0; right: 0; width: min(400px, 86vw); height: 100dvh; background: var(--panel);
    border-left: 1px solid var(--border-strong); box-shadow: var(--shadow); transform: translateX(105%); visibility: hidden; pointer-events: none;
    transition: transform .22s ease, visibility .22s ease; display: flex; flex-direction: column;
}
.site-drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { min-height: 66px; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--border); }
.drawer-brand { min-width: 0; display: flex; align-items: center; gap: 10px; }
.drawer-brand strong { color: var(--title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-button { min-height: 44px; min-width: 54px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--deep); color: var(--title); }
.drawer-scroll { overflow-y: auto; padding: 8px 16px 28px; }
.drawer-section { padding: 12px 0; border-bottom: 1px solid var(--border); }
.drawer-section h2 { font-size: 13px; color: var(--brand); margin-bottom: 6px; }
.drawer-section a { display: block; padding: 10px; border-radius: 10px; min-height: 58px; }
.drawer-section a:hover { background: var(--panel-2); }
.drawer-section strong { display: block; color: var(--title); font-size: 14px; }
.drawer-section span { display: block; color: var(--muted); font-size: 12px; line-height: 1.55; }
.site-search {
    position: fixed; z-index: 205; left: 0; right: 0; top: 82px; visibility: hidden; pointer-events: none; opacity: 0; transform: translateY(-12px); transition: .18s ease;
}
.site-search.is-open { visibility: visible; pointer-events: auto; opacity: 1; transform: translateY(0); }
.search-card { width: min(720px, calc(100% - 32px)); margin: 0 auto; padding: 18px; border-radius: 0 0 14px 14px; background: var(--panel); border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.search-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.search-head strong { color: var(--title); font-size: 18px; }
.search-head p { color: var(--muted); margin: 2px 0 12px; font-size: 13px; }
.search-label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.search-input { width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--deep); color: var(--cream); outline: none; }
.search-input:focus { border-color: var(--bright); box-shadow: 0 0 0 3px rgba(243,208,86,.12); }
.search-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.search-presets a { min-height: 40px; padding: 7px 12px; display: inline-flex; align-items: center; border-radius: 9px; border: 1px solid var(--border); color: var(--title); background: var(--deep); }
.page-overlay { position: fixed; inset: 0; z-index: 190; background: rgba(0,0,0,.72); opacity: 0; visibility: hidden; pointer-events: none; transition: .18s ease; }
.page-overlay.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-bottom { display: none; }
:focus-visible { outline: 2px solid var(--bright); outline-offset: 3px; }
@media (max-width: 820px) {
    :root { --top-h: 82px; }
    .day-tabs { display: none; }
    .site-main { padding-top: calc(var(--top-h) + 22px); padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    .bar-inner, .container, .footer-inner { width: calc(100% - 32px); }
    .race-bar-inner { grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; }
    .brand-logo { max-width: 128px; }
    .brand-fallback { font-size: 14px; max-width: 128px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .drawer-button, .app-link { min-height: 44px; padding: 0 11px; }
    .grid-3, .grid-2, .footer-groups, .note-grid, .brand-block { grid-template-columns: 1fr; }
    .number-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .big-number { grid-template-columns: 58px minmax(0,1fr); gap: 12px; }
    .big-number .num { font-size: 28px; }
    .rack-row { grid-template-columns: 48px minmax(0,1fr); }
    .rack-row .rack-meta { grid-column: 2; }
    .media-260 { height: 220px; }
    .media-app { height: 340px; }
    .site-search { inset: 0; top: 0; background: var(--deep); transform: none; }
    .search-card { width: 100%; min-height: 100dvh; margin: 0; border: 0; border-radius: 0; padding: max(18px, env(safe-area-inset-top)) 16px calc(70px + env(safe-area-inset-bottom)); background: var(--deep); }
    .search-input, .search-presets a { background: var(--panel); }
    .mobile-bottom { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); position: fixed; z-index: 130; left: 0; right: 0; bottom: 0; height: calc(48px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--deep); border-top: 1px solid var(--border-strong); }
    .mobile-bottom a { 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: var(--bg); font-weight: 900; }
    .footer-inner { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
}
@media (max-width: 430px) {
    h1 { font-size: 22px; }
    h2 { font-size: 19px; }
    .now-line-inner { gap: 8px; }
    .now-line-inner > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .app-link { font-size: 13px; }
    .media-180 { height: 166px; }
    .media-200 { height: 184px; }
    .media-260 { height: 200px; }
    .media-app { height: 320px; }
}
