:root {
    --page:#FBF6EA; --deep:#F3E6C8; --surface:#FFFFFF; --soft:#F0E2BE;
    --title:#3A2A10; --text:#4A3A1A; --muted:#7A6232; --aux:#9A7A44;
    --gold:#C9A227; --gold-bright:#E0BC4A; --gold-deep:#8C6A12; --ivory:#FFF8E8;
    --line:rgba(201,162,39,.18); --line-strong:rgba(201,162,39,.46);
    --shadow:0 12px 28px rgba(58,42,16,.08); --radius:12px; --max:1120px;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--page); color:var(--text); font:15px/1.7 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",Arial,sans-serif; overflow-x:hidden; }
a { color:inherit; text-decoration:none; }
button, a { -webkit-tap-highlight-color:transparent; }
button { font:inherit; }
img { display:block; max-width:100%; }
.site-wrap { width:min(var(--max), calc(100% - 32px)); margin:0 auto; }
.site-top { position:fixed; inset:0 0 auto 0; z-index:900; }
.crown-line { height:22px; background:var(--title); color:var(--ivory); font-size:12px; }
.crown-inner { height:22px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.crown-search { min-width:44px; height:22px; padding:0 10px; border:0; background:transparent; color:var(--ivory); cursor:pointer; }
.palace-bar { height:60px; background:#fff; border-bottom:1px solid var(--line); }
.palace-inner { height:60px; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:12px; }
.brand-link { justify-self:start; min-height:44px; display:inline-flex; align-items:center; gap:9px; color:var(--title); font-weight:800; font-size:16px; }
.brand-logo-slot { min-width:28px; min-height:28px; display:flex; align-items:center; }
.brand-logo-slot img, .footer-logo-slot img, .drawer-logo-slot img { height:28px; width:auto; object-fit:contain; object-position:center; }
.brand-logo-slot:has(img) + .brand-fallback { display:none; }
.drawer-trigger { height:44px; min-width:78px; border:1px solid var(--line-strong); border-radius:10px; background:var(--ivory); color:var(--title); cursor:pointer; font-weight:700; }
.app-link { justify-self:end; height:44px; display:inline-flex; align-items:center; padding:0 16px; border-radius:10px; color:var(--title); background:linear-gradient(135deg,#E0BC4A 0%,#C9A227 55%,#8C6A12 100%); font-weight:800; white-space:nowrap; }
.seat-tabs { height:40px; background:var(--ivory); border-bottom:1px solid var(--line); }
.seat-tabs-inner { height:40px; display:flex; justify-content:center; align-items:center; gap:8px; }
.seat-tabs a { min-width:74px; height:32px; display:inline-flex; align-items:center; justify-content:center; border-radius:9px; font-size:13px; color:var(--muted); }
.seat-tabs a.is-current { background:var(--gold); color:var(--title); font-weight:800; }
.site-main { padding-top:146px; min-height:70vh; }
.hero, .page-hero { padding:18px 0 8px; }
.hero-media, .media-slot { width:100%; background:var(--ivory); border:1px solid var(--line); border-radius:14px; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.hero-media { height:260px; }
.hero-media img { width:100%; height:100%; object-fit:contain; object-position:center; }
.hero-copy { text-align:center; padding:20px 0 10px; }
.eyebrow { display:inline-block; margin-bottom:5px; color:var(--gold-deep); font-size:13px; font-weight:800; letter-spacing:.08em; }
h1,h2,h3,p { margin-top:0; }
h1 { margin-bottom:10px; color:var(--title); font-size:24px; line-height:1.3; }
h2 { color:var(--title); font-size:20px; line-height:1.4; }
h3 { color:var(--title); font-size:16px; line-height:1.5; }
p { margin-bottom:12px; }
.lead { max-width:820px; margin:0 auto 18px; color:var(--muted); }
.actions { display:flex; justify-content:center; gap:10px; flex-wrap:wrap; }
.btn { height:42px; min-width:120px; padding:0 18px; display:inline-flex; align-items:center; justify-content:center; border-radius:10px; font-size:14px; font-weight:800; white-space:nowrap; }
.btn-primary { background:linear-gradient(135deg,#E0BC4A 0%,#C9A227 55%,#8C6A12 100%); color:var(--title); }
.btn-secondary { background:#fff; color:var(--title); border:1px solid var(--line-strong); }
a:hover, button:hover { filter:brightness(.98); }
a:focus-visible, button:focus-visible { outline:3px solid rgba(201,162,39,.5); outline-offset:3px; }
.section { padding:24px 0; }
.section-head { display:flex; justify-content:space-between; align-items:end; gap:18px; margin-bottom:14px; }
.section-head p { max-width:720px; margin-bottom:0; color:var(--muted); }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.grid-2 { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.card { background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow); padding:18px; }
.card .media-slot { height:180px; margin:-2px 0 14px; }
.card .media-slot img { width:100%; height:100%; object-fit:contain; object-position:center; }
.feature-media { height:200px; margin-bottom:16px; }
.feature-media img, .app-media img { width:100%; height:100%; object-fit:contain; object-position:center; }
.number-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:16px; }
.number-tile { background:var(--soft); border:1px solid var(--line); border-radius:11px; padding:14px; }
.number-tile b { display:block; color:var(--gold-deep); font-size:22px; line-height:1; margin-bottom:8px; }
.shelf { display:grid; gap:10px; }
.shelf-row { display:grid; grid-template-columns:90px 1fr auto; gap:14px; align-items:center; min-height:74px; padding:13px 15px; background:#fff; border:1px solid var(--line); border-left:4px solid var(--gold); border-radius:10px; }
.shelf-row strong { color:var(--title); }
.shelf-row span { color:var(--muted); }
.shelf-row small { color:var(--aux); }
.rank-list { display:grid; gap:10px; counter-reset:item; }
.rank-item { display:grid; grid-template-columns:68px 1fr; gap:14px; padding:16px; background:#fff; border:1px solid var(--line); border-radius:12px; }
.rank-no { font-size:28px; line-height:1; font-weight:900; color:var(--gold); }
.timeline { position:relative; display:grid; gap:14px; padding-left:28px; }
.timeline::before { content:""; position:absolute; left:8px; top:6px; bottom:6px; width:2px; background:var(--line-strong); }
.timeline-item { position:relative; background:#fff; border:1px solid var(--line); border-radius:12px; padding:16px; }
.timeline-item::before { content:""; position:absolute; left:-25px; top:23px; width:11px; height:11px; border-radius:50%; background:var(--gold); border:3px solid var(--page); }
.status { display:inline-flex; min-height:28px; align-items:center; padding:0 10px; border-radius:999px; background:var(--soft); color:var(--title); font-size:12px; font-weight:800; }
.note-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.note-card { background:var(--ivory); border:1px solid var(--line); border-radius:12px; padding:16px; }
.page-intro { max-width:900px; color:var(--muted); }
.content-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; margin:18px 0; }
.article-card, .term-card { background:#fff; border:1px solid var(--line); border-radius:12px; padding:18px; box-shadow:var(--shadow); }
.article-card p:last-child, .term-card p:last-child { margin-bottom:0; }
.app-block { display:grid; grid-template-columns:minmax(240px,.8fr) 1.2fr; gap:18px; align-items:stretch; }
.app-media { height:360px; background:var(--ivory); border:1px solid var(--line); border-radius:14px; display:flex; align-items:center; justify-content:center; }
.app-icon { width:48px; height:48px; margin-bottom:12px; object-fit:contain; }
.faq-list { display:grid; gap:12px; }
.faq-item { background:#fff; border:1px solid var(--line); border-radius:12px; padding:17px; }
.faq-item h2 { font-size:16px; margin-bottom:8px; }
.callout { background:var(--soft); border:1px solid var(--line-strong); border-radius:12px; padding:18px; }
.site-footer { background:var(--title); color:var(--deep); border-top:1px solid var(--gold-deep); margin-top:34px; font-size:13px; }
.footer-inner { padding:28px 0 80px; }
.footer-brand { display:flex; align-items:center; gap:12px; margin-bottom:20px; }
.footer-brand strong { display:block; color:#fff; font-size:16px; }
.footer-brand span { color:var(--deep); font-size:12px; letter-spacing:.08em; }
.footer-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; padding:20px 0; border-top:1px solid rgba(224,188,74,.25); border-bottom:1px solid rgba(224,188,74,.25); }
.footer-grid h2 { color:#fff; font-size:14px; margin-bottom:8px; }
.footer-grid a { display:block; padding:4px 0; color:var(--deep); }
.footer-note { margin:16px 0 8px; max-width:920px; }
.copyright { margin-bottom:0; color:#fff; }
.site-overlay { position:fixed; inset:0; z-index:1100; background:rgba(58,42,16,.42); opacity:0; visibility:hidden; pointer-events:none; transition:.2s ease; }
.site-overlay.is-open { opacity:1; visibility:visible; pointer-events:auto; }
.drawer-panel { position:fixed; z-index:1200; top:0; left:0; width:min(400px,86vw); height:100dvh; background:#fff; transform:translateX(-102%); visibility:hidden; pointer-events:none; transition:transform .22s ease, visibility .22s; box-shadow:18px 0 40px rgba(58,42,16,.16); }
.drawer-panel.is-open { transform:translateX(0); visibility:visible; pointer-events:auto; }
.drawer-head { height:70px; padding:0 16px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); }
.drawer-brand { display:flex; align-items:center; gap:10px; color:var(--title); }
.drawer-head button, .search-head button { min-width:56px; height:44px; border:1px solid var(--line-strong); border-radius:10px; background:var(--ivory); color:var(--title); cursor:pointer; }
.drawer-scroll { height:calc(100dvh - 70px); overflow:auto; padding:12px 14px 28px; }
.drawer-group { padding:10px 0; border-bottom:1px solid var(--line); }
.drawer-group h2 { font-size:13px; color:var(--gold-deep); margin:0 0 7px 7px; }
.drawer-group a { display:block; padding:10px 9px; border-radius:10px; }
.drawer-group a:hover { background:var(--ivory); }
.drawer-group strong { display:block; color:var(--title); }
.drawer-group span { display:block; color:var(--muted); font-size:13px; line-height:1.55; margin-top:2px; }
.search-panel { position:fixed; z-index:1200; top:88px; left:50%; width:min(760px,calc(100% - 32px)); transform:translate(-50%,-18px); background:#fff; border:1px solid var(--line-strong); border-radius:14px; box-shadow:0 20px 50px rgba(58,42,16,.18); padding:18px; opacity:0; visibility:hidden; pointer-events:none; transition:.2s ease; }
.search-panel.is-open { transform:translate(-50%,0); opacity:1; visibility:visible; pointer-events:auto; }
.search-head { display:flex; justify-content:space-between; align-items:start; gap:18px; }
.search-head strong { color:var(--title); font-size:18px; }
.search-head p { margin:2px 0 0; color:var(--muted); }
.search-presets { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:14px; }
.search-presets a { min-height:44px; display:flex; align-items:center; justify-content:center; border:1px solid var(--line); background:var(--ivory); border-radius:10px; color:var(--title); font-weight:700; }
.mobile-dock { display:none; }
.modal-open { overflow:hidden; }

@media (max-width:760px) {
    .site-wrap { width:calc(100% - 32px); }
    .seat-tabs { display:none; }
    .site-main { padding-top:94px; }
    .palace-inner { grid-template-columns:minmax(0,1fr) auto auto; gap:8px; }
    .brand-link { min-width:0; }
    .brand-fallback { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .drawer-trigger { min-width:64px; padding:0 10px; }
    .app-link { padding:0 10px; }
    .hero-media { height:260px; }
    .grid-3, .grid-2, .content-grid, .note-grid, .number-grid { grid-template-columns:1fr; }
    .shelf-row { grid-template-columns:1fr; gap:4px; }
    .section { padding:20px 0; }
    .section-head { display:block; }
    .app-block { grid-template-columns:1fr; }
    .app-media { height:340px; }
    .footer-grid { grid-template-columns:repeat(2,1fr); }
    .footer-inner { padding-bottom:86px; }
    .search-panel { inset:0; width:100%; height:100dvh; border-radius:0; transform:none; padding:22px 16px; background:var(--title); color:var(--ivory); }
    .search-panel.is-open { transform:none; }
    .search-head strong, .search-head p { color:var(--ivory); }
    .search-head button { background:var(--gold); }
    .search-presets { grid-template-columns:repeat(2,1fr); }
    .search-presets a { background:var(--ivory); }
    .mobile-dock { position:fixed; z-index:900; left:0; right:0; bottom:0; height:calc(48px + env(safe-area-inset-bottom)); padding-bottom:env(safe-area-inset-bottom); background:#fff; border-top:1px solid var(--line-strong); display:grid; grid-template-columns:repeat(5,1fr); }
    .mobile-dock a { min-width:0; height:48px; display:flex; align-items:center; justify-content:center; font-size:12px; color:var(--muted); }
    .mobile-dock a.is-current { background:var(--gold); color:var(--title); font-weight:800; }
}
