:root {
    --page: #0F0E0A;
    --deep: #080706;
    --panel: #1A1810;
    --panel-2: #242010;
    --title: #F5E6A8;
    --text: #E8DCB0;
    --muted: #B8A46A;
    --soft: #8A7A48;
    --yellow: #E8B923;
    --bright: #F3D056;
    --dark-yellow: #A88212;
    --cream: #FFF6D8;
    --border: rgba(232,185,35,.18);
    --border-strong: rgba(232,185,35,.46);
    --shadow: 0 12px 28px rgba(0,0,0,.40);
    --radius: 12px;
    --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--page); }
body { margin: 0; min-width: 0; overflow-x: hidden; background: var(--page); color: var(--text); font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 15px; line-height: 1.7; }
body.panel-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; object-fit: contain; object-position: center; }
:focus-visible { outline: 2px solid var(--bright); outline-offset: 3px; }
.site-top { position: fixed; z-index: 90; inset: 0 0 auto 0; background: var(--deep); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.now-line { height: 22px; background: var(--deep); color: var(--muted); border-bottom: 1px solid rgba(232,185,35,.08); font-size: 12px; line-height: 22px; }
.now-line-inner, .race-bar-inner, .day-tabs-inner { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.now-line-inner { display: flex; align-items: center; justify-content: space-between; height: 22px; gap: 16px; white-space: nowrap; }
.text-button { position: relative; border: 0; background: transparent; color: var(--title); padding: 0 8px; height: 22px; cursor: pointer; }
.text-button::before { content: ""; position: absolute; inset: -11px -8px; }
.race-bar { height: 60px; background: #11100B; border-bottom: 1px solid var(--border); }
.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; min-height: 44px; align-items: center; min-width: 126px; }
.brand-image-slot { display: inline-flex; align-items: center; min-height: 28px; }
.brand-image-slot img { height: 28px; width: auto; max-width: 180px; }
.brand-fallback { color: var(--title); font-size: 16px; font-weight: 700; letter-spacing: .05em; }
.box-trigger { justify-self: center; height: 44px; min-width: 96px; padding: 0 16px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--panel); color: var(--title); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.box-trigger:hover { border-color: var(--bright); background: var(--panel-2); }
.box-lines { font-size: 17px; line-height: 1; }
.app-link { justify-self: end; display: inline-flex; align-items: center; justify-content: center; min-width: 90px; height: 44px; padding: 0 16px; border-radius: 12px; background: linear-gradient(135deg,#F3D056 0%,#E8B923 55%,#A88212 100%); color: #0F0E0A; font-weight: 700; }
.app-link:hover { filter: brightness(1.06); }
.day-tabs { height: 40px; background: #0C0B08; border-bottom: 1px solid var(--border); }
.day-tabs-inner { height: 40px; display: flex; justify-content: center; align-items: stretch; gap: 8px; }
.day-tabs a { min-width: 92px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); border-left: 1px solid transparent; border-right: 1px solid transparent; }
.day-tabs a:hover { color: var(--cream); background: rgba(232,185,35,.06); }
.day-tabs a.is-current { color: #0F0E0A; background: var(--yellow); font-weight: 700; }
.site-main { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; padding: 154px 0 72px; min-height: 70vh; }
.page-header { padding: 30px 0 22px; border-bottom: 1px solid var(--border); margin-bottom: 26px; }
.eyebrow { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 12px; letter-spacing: .08em; }
h1, h2, h3 { color: var(--title); margin-top: 0; }
h1 { margin-bottom: 12px; font-size: 24px; line-height: 1.3; }
h2 { font-size: 20px; line-height: 1.4; }
h3 { font-size: 16px; line-height: 1.5; }
p { margin: 0 0 1em; }
.lead { max-width: 840px; color: var(--text); font-size: 15px; }
.meta-line { color: var(--soft); font-size: 13px; }
.cover-slot, .image-slot, .portrait-slot { width: 100%; background: #090806; border: 1px solid var(--border); border-radius: 14px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cover-slot { height: 260px; }
.cover-slot img { width: 100%; height: 100%; object-fit: contain; }
.image-slot { height: 180px; }
.image-slot img { width: 100%; height: 100%; object-fit: contain; }
.image-slot.tall { height: 200px; }
.portrait-slot { height: 360px; }
.portrait-slot img { width: 100%; height: 100%; object-fit: contain; }
.home-cover { display: grid; gap: 18px; margin-bottom: 34px; }
.cover-copy { padding: 4px 0 0; max-width: 840px; }
.cover-copy h1 { margin-bottom: 8px; }
.cover-copy .brand-kicker { color: var(--yellow); font-weight: 700; letter-spacing: .08em; margin-bottom: 6px; }
.cover-copy .cover-slogan { font-size: 20px; line-height: 1.45; color: var(--cream); margin-bottom: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn { display: inline-flex; height: 44px; min-width: 112px; padding: 0 18px; align-items: center; justify-content: center; border-radius: 11px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg,#F3D056 0%,#E8B923 55%,#A88212 100%); color: #0F0E0A; }
.btn-secondary { background: #12100B; border: 1px solid var(--border-strong); color: var(--title); }
.btn:hover { transform: translateY(-1px); }
.section { padding: 28px 0; border-top: 1px solid rgba(232,185,35,.11); }
.section:first-child { border-top: 0; }
.section-head { display: flex; gap: 18px; align-items: end; justify-content: space-between; margin-bottom: 16px; }
.section-head p { margin: 0; max-width: 640px; color: var(--muted); }
.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: 18px; }
.card { min-width: 0; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-body { padding: 18px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.number-list, .shelf-list, .note-list, .method-list { display: grid; gap: 12px; }
.number-row, .shelf-row, .note-row, .method-row { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.number { font-size: 22px; font-weight: 800; line-height: 1; color: var(--bright); font-variant-numeric: tabular-nums; }
.number-row h3, .shelf-row h3, .note-row h3, .method-row h3 { margin-bottom: 4px; }
.shelf-row { grid-template-columns: 120px 1fr; }
.shelf-label { color: var(--yellow); font-weight: 700; }
.timeline { position: relative; margin-left: 6px; padding-left: 28px; display: grid; gap: 16px; }
.timeline:before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: var(--border-strong); }
.timeline-item { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.timeline-item:before { content: ""; position: absolute; left: -28px; top: 22px; width: 13px; height: 13px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(232,185,35,.12); }
.status { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; margin-bottom: 8px; border-radius: 999px; background: rgba(232,185,35,.10); border: 1px solid var(--border); color: var(--bright); font-size: 12px; }
.prose { max-width: 900px; }
.prose h2 { margin-top: 30px; margin-bottom: 10px; }
.prose h3 { margin-top: 22px; margin-bottom: 8px; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .5em; }
.notice { padding: 18px; border: 1px solid var(--border-strong); border-radius: 12px; background: linear-gradient(180deg,rgba(232,185,35,.08),rgba(232,185,35,.025)); color: var(--text); }
.app-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 22px; align-items: start; }
.icon-chip { display: inline-grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; }
.icon-slot { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--deep); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.icon-slot img { width: 48px; height: 48px; object-fit: contain; }
.faq-list { display: grid; gap: 12px; }
.faq-item { padding: 18px 20px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; }
.faq-item h2, .faq-item h3 { margin-bottom: 8px; }
.faq-item p:last-child { margin-bottom: 0; }
.link-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.link-card { display: block; padding: 18px; min-height: 124px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; }
.link-card:hover { border-color: var(--border-strong); background: var(--panel-2); }
.link-card strong { display: block; color: var(--title); font-size: 16px; margin-bottom: 6px; }
.link-card span { color: var(--muted); }
.site-footer { background: var(--deep); border-top: 1px solid var(--border-strong); color: var(--text); font-size: 13px; padding: 34px 0 28px; }
.footer-inner { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.footer-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.footer-logo-slot img { height: 28px; width: auto; max-width: 180px; }
.footer-brand strong { color: var(--title); font-size: 16px; }
.footer-brand span { color: var(--soft); }
.footer-groups { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.footer-groups h2 { font-size: 13px; color: var(--yellow); margin-bottom: 9px; }
.footer-groups a { display: block; color: var(--muted); padding: 4px 0; }
.footer-groups a:hover { color: var(--cream); }
.footer-note { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); }
.footer-copy { margin-bottom: 0; color: var(--soft); }
.overlay { position: fixed; z-index: 100; inset: 0; background: rgba(0,0,0,.68); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.overlay.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.race-box { position: fixed; z-index: 110; top: 0; right: 0; width: min(400px,86vw); height: 100vh; height: 100dvh; background: #0C0B08; border-left: 1px solid var(--border-strong); box-shadow: -18px 0 48px rgba(0,0,0,.52); transform: translateX(102%); visibility: hidden; pointer-events: none; transition: transform .24s ease, visibility .24s ease; }
.race-box.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.race-box-head { height: 74px; padding: 0 16px 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); }
.race-box-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.race-box-logo img { height: 28px; width: auto; max-width: 120px; }
.race-box-brand strong, .race-box-brand small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.race-box-brand strong { color: var(--title); font-size: 14px; }
.race-box-brand small { color: var(--soft); font-size: 11px; }
.panel-close { min-width: 64px; height: 40px; border: 1px solid var(--border); border-radius: 10px; background: #15130D; color: var(--title); cursor: pointer; }
.race-box-scroll { height: calc(100% - 74px); overflow-y: auto; padding: 16px; }
.box-group { margin-bottom: 20px; }
.box-group h2 { font-size: 13px; color: var(--yellow); margin-bottom: 8px; }
.box-group a { display: grid; gap: 2px; padding: 10px 12px; margin-bottom: 6px; border: 1px solid transparent; border-radius: 10px; background: rgba(255,255,255,.015); }
.box-group a:hover { border-color: var(--border); background: rgba(232,185,35,.05); }
.box-group strong { color: var(--title); font-size: 14px; }
.box-group span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.search-layer { position: fixed; z-index: 115; left: 0; right: 0; top: 82px; visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(-10px); transition: .2s ease; }
.search-layer.is-open { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); }
.search-card { width: min(calc(100% - 32px), 760px); margin: 0 auto; padding: 22px; background: #11100B; border: 1px solid var(--border-strong); border-radius: 0 0 14px 14px; box-shadow: var(--shadow); }
.search-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.search-head h2 { margin: 8px 0 6px; }
.search-card p { color: var(--muted); }
.search-presets { display: flex; flex-wrap: wrap; gap: 10px; }
.search-presets a { min-height: 42px; min-width: 82px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--title); }
.search-presets a:hover { border-color: var(--bright); }
.mobile-bottom { display: none; }
@media (max-width: 820px) {
    .day-tabs { display: none; }
    .site-main { padding-top: 106px; padding-bottom: 86px; }
    .race-bar-inner { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 8px; }
    .brand-link { min-width: 0; overflow: hidden; }
    .brand-image-slot img { max-width: 118px; }
    .brand-fallback { font-size: 14px; white-space: nowrap; }
    .box-trigger { min-width: 84px; padding: 0 12px; }
    .app-link { min-width: 78px; padding: 0 12px; }
    .grid-3, .grid-2, .link-cards, .footer-groups, .app-layout { grid-template-columns: 1fr; }
    .section-head { display: block; }
    .section-head p { margin-top: 6px; }
    .cover-slot { height: 260px; }
    .shelf-row { grid-template-columns: 92px 1fr; }
    .search-layer { top: 0; bottom: 0; background: #080706; overflow-y: auto; }
    .search-card { width: 100%; min-height: 100%; margin: 0; border: 0; border-radius: 0; padding: calc(22px + env(safe-area-inset-top)) 16px calc(80px + env(safe-area-inset-bottom)); }
    .mobile-bottom { position: fixed; z-index: 95; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5,1fr); height: calc(48px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #0B0A07; border-top: 1px solid var(--border-strong); }
    .mobile-bottom a { display: flex; align-items: center; justify-content: center; min-width: 0; height: 48px; font-size: 12px; color: var(--muted); }
    .mobile-bottom a.is-current { background: var(--yellow); color: #0F0E0A; font-weight: 700; }
    .page-header { padding-top: 18px; }
    .footer-inner { padding-bottom: 42px; }
}
@media (max-width: 520px) {
    .now-line-inner, .race-bar-inner, .day-tabs-inner, .site-main, .footer-inner { width: calc(100% - 32px); }
    .cover-slot { height: 220px; }
    .image-slot { height: 180px; }
    .portrait-slot { height: 340px; }
    .number-row, .note-row, .method-row { grid-template-columns: 44px 1fr; gap: 12px; padding: 14px; }
    .shelf-row { grid-template-columns: 1fr; gap: 5px; }
    .footer-brand { align-items: flex-start; flex-direction: column; }
}
