:root {
    --bg: #FBF6EA;
    --bg-deep: #F3E6C8;
    --surface: #FFFFFF;
    --surface-soft: #F0E2BE;
    --title: #3A2A10;
    --text: #4A3A1A;
    --muted: #7A6232;
    --soft-text: #9A7A44;
    --gold: #C9A227;
    --gold-bright: #E0BC4A;
    --gold-deep: #8C6A12;
    --cream: #FFF8E8;
    --line: rgba(201,162,39,0.18);
    --line-strong: rgba(201,162,39,0.46);
    --shadow: 0 12px 28px rgba(58,42,16,0.08);
    --radius: 12px;
    --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", Arial, sans-serif; font-size: 15px; line-height: 1.7; overflow-x: hidden; }
body.panel-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.shell { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 3000; background: var(--surface); color: var(--title); border: 1px solid var(--gold); padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { top: 8px; }

.crown-line { position: fixed; inset: 0 0 auto 0; z-index: 1000; height: 22px; background: var(--title); color: var(--cream); border-bottom: 1px solid rgba(255,255,255,.08); }
.crown-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; letter-spacing: .02em; }
.crown-search { appearance: none; border: 0; background: transparent; color: var(--cream); height: 22px; padding: 0 10px; cursor: pointer; position: relative; }
.crown-search::after { content: ""; position: absolute; inset: -11px -4px; }
.crown-search:hover { color: var(--gold-bright); }
.crown-search:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 1px; }

.palace-bar { position: fixed; top: 22px; inset-inline: 0; z-index: 990; height: 60px; background: var(--surface); border-bottom: 1px solid var(--line-strong); }
.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; max-width: 180px; }
.brand-logo { height: 28px; width: auto; object-fit: contain; }
.brand-text { font-size: 16px; font-weight: 800; color: var(--title); letter-spacing: .06em; }
.drawer-trigger, .app-entry, .btn, .icon-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 14px; transition: transform .18s ease, border-color .18s ease, background-color .18s ease; }
.drawer-trigger { justify-self: center; min-width: 84px; border: 1px solid var(--line-strong); background: var(--cream); color: var(--title); cursor: pointer; }
.app-entry { justify-self: end; min-width: 92px; padding: 0 16px; background: linear-gradient(135deg,#E0BC4A 0%,#C9A227 55%,#8C6A12 100%); color: var(--title); font-weight: 800; }
.drawer-trigger:hover, .app-entry:hover, .btn:hover, .icon-button:hover { transform: translateY(-1px); }
.drawer-trigger:focus-visible, .app-entry:focus-visible, .btn:focus-visible, .icon-button:focus-visible, .seat-link:focus-visible, .footer-grid a:focus-visible, .mobile-dock a:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

.seat-tabs { position: fixed; top: 82px; inset-inline: 0; z-index: 970; height: 40px; background: var(--cream); border-bottom: 1px solid var(--line); }
.seat-tabs-inner { display: flex; height: 40px; align-items: center; justify-content: center; gap: 8px; }
.seat-link { height: 32px; min-width: 92px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 13px; color: var(--muted); }
.seat-link:hover { background: rgba(201,162,39,.08); color: var(--title); }
.seat-link.is-current { background: var(--gold); color: var(--title); font-weight: 800; }

.site-main { padding-top: 122px; min-height: 70vh; }
.page-hero, .section, .home-cover { padding: 34px 0; }
.page-hero { background: linear-gradient(180deg, rgba(243,230,200,.72), rgba(251,246,234,0)); border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 7px; color: var(--gold-deep); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 12px; color: var(--title); font-size: 24px; line-height: 1.3; }
h2 { color: var(--title); font-size: 20px; line-height: 1.38; margin-bottom: 12px; }
h3 { color: var(--title); font-size: 16px; line-height: 1.45; margin-bottom: 8px; }
p { margin-bottom: 14px; }
.lede { max-width: 820px; color: var(--muted); font-size: 16px; }
.muted { color: var(--muted); }
.small-note { color: var(--soft-text); font-size: 13px; }
.mt-10 { margin-top: 10px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.actions-start { justify-content: flex-start; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-head p { margin: 0; color: var(--muted); max-width: 600px; }
.section:nth-of-type(even) { background: rgba(243,230,200,.26); }

.media-slot { width: 100%; min-height: 180px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.media-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.media-hero { height: 260px; background: var(--cream); }
.media-card { height: 180px; }
.media-wide { height: 200px; }
.media-app { height: 360px; max-width: 420px; margin-inline: auto; }
.icon-slot { width: 48px; height: 48px; flex: 0 0 48px; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.icon-slot img { width: 48px; height: 48px; object-fit: contain; }

.cover-copy { text-align: center; max-width: 830px; margin: 20px auto 0; }
.cover-brand { color: var(--gold-deep); font-size: 13px; font-weight: 800; letter-spacing: .12em; margin-bottom: 5px; }
.cover-copy h1 { font-size: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.btn { min-width: 120px; padding: 0 18px; border: 1px solid transparent; font-weight: 800; line-height: 1; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg,#E0BC4A 0%,#C9A227 55%,#8C6A12 100%); color: var(--title); }
.btn-secondary { background: var(--surface); border-color: var(--gold); color: var(--title); }

.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 { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-body { padding: 18px; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--gold-deep); font-weight: 800; }

.numbered-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 22px; align-items: start; }
.number-list { display: grid; gap: 10px; }
.number-item { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.number { color: var(--gold); font-size: 28px; font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.number-item p { margin-bottom: 0; color: var(--muted); }

.shelf { display: grid; gap: 10px; }
.shelf-row { display: grid; grid-template-columns: 128px 1fr auto; gap: 16px; align-items: center; min-height: 76px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 10px; }
.shelf-row strong { color: var(--title); }
.shelf-row p { margin: 0; color: var(--muted); }
.shelf-row a { min-height: 44px; padding: 0 12px; display: inline-flex; align-items: center; color: var(--gold-deep); font-weight: 800; }

.rank-list { display: grid; gap: 10px; }
.rank-row { display: grid; grid-template-columns: 68px 1fr; gap: 14px; align-items: start; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.rank-row .big-no { color: var(--gold); font-size: 34px; line-height: 1; font-weight: 900; }
.rank-row p { margin-bottom: 0; color: var(--muted); }

.timeline { position: relative; display: grid; gap: 16px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 7px; bottom: 8px; width: 2px; background: var(--line-strong); }
.timeline-item { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.timeline-item::before { content: ""; position: absolute; left: -26px; top: 21px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 3px solid var(--cream); box-shadow: 0 0 0 1px var(--gold); }
.status { display: inline-flex; min-height: 30px; align-items: center; padding: 0 10px; border-radius: 999px; background: var(--surface-soft); color: var(--title); font-size: 12px; font-weight: 800; }

.note-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.note-card { background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.note-card p:last-child { margin-bottom: 0; }

.prose { max-width: 880px; }
.prose h2 { margin-top: 28px; }
.prose h3 { margin-top: 20px; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin: 8px 0; }
.term-block { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 14px; }
.term-block h2, .term-block h3 { margin-top: 0; }

.app-layout { display: grid; grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr); gap: 28px; align-items: center; }
.app-title-row { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.app-title-row h2 { margin: 0; }
.feature-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.feature { padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.feature p { margin: 5px 0 0; color: var(--muted); }

.faq-list { display: grid; gap: 10px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; }
summary { min-height: 52px; cursor: pointer; display: flex; align-items: center; color: var(--title); font-weight: 800; }
details p { padding: 0 0 14px; margin: 0; color: var(--muted); }

.cta-band { margin: 20px 0 0; padding: 20px; background: var(--surface-soft); border: 1px solid var(--line-strong); border-radius: 14px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.cta-band p { margin-bottom: 0; }

.site-footer { background: var(--title); color: var(--bg-deep); border-top: 1px solid var(--gold-deep); font-size: 13px; padding: 30px 0 80px; }
.footer-brand { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid rgba(224,188,74,.18); }
.footer-brand-mark { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.footer-logo { height: 28px; width: auto; object-fit: contain; filter: none; }
.footer-brand-mark strong { font-size: 16px; color: var(--cream); }
.footer-brand-mark span { color: var(--gold-bright); letter-spacing: .1em; }
.footer-brand p { margin: 0; color: var(--bg-deep); }
.footer-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; padding: 24px 0; }
.footer-grid h2 { color: var(--gold-bright); font-size: 13px; margin-bottom: 10px; }
.footer-grid a { display: block; min-height: 34px; color: var(--bg-deep); }
.footer-grid a:hover, .footer-bottom a:hover { color: var(--gold-bright); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 16px; border-top: 1px solid rgba(224,188,74,.18); }
.footer-bottom p { margin: 0; }
.footer-bottom div { display: flex; gap: 18px; }

.site-overlay { position: fixed; inset: 0; z-index: 1100; background: rgba(58,42,16,.38); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.site-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.site-drawer { position: fixed; inset: 0 auto 0 0; z-index: 1300; width: min(400px,86vw); background: var(--cream); color: var(--text); transform: translateX(-103%); visibility: hidden; pointer-events: none; transition: transform .24s ease, visibility .24s ease; box-shadow: 18px 0 42px rgba(58,42,16,.18); display: flex; flex-direction: column; }
.site-drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-strong); background: var(--surface); }
.drawer-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.drawer-logo { width: auto; height: 28px; object-fit: contain; max-width: 130px; }
.drawer-brand div { display: flex; flex-direction: column; min-width: 0; }
.drawer-brand strong { color: var(--title); }
.drawer-brand span { color: var(--soft-text); font-size: 11px; letter-spacing: .08em; }
.icon-button { border: 1px solid var(--line-strong); background: var(--surface); padding: 0 14px; cursor: pointer; }
.drawer-scroll { overflow-y: auto; padding: 14px 16px 30px; }
.drawer-group { margin-bottom: 18px; }
.drawer-group h2 { font-size: 13px; color: var(--gold-deep); margin: 0 0 6px; }
.drawer-group a { display: grid; grid-template-columns: 74px 1fr; gap: 10px; align-items: center; min-height: 54px; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.drawer-group a:hover { background: rgba(201,162,39,.07); }
.drawer-group strong { color: var(--title); }
.drawer-group span { color: var(--muted); font-size: 12px; line-height: 1.55; }

.site-search { position: fixed; top: 82px; left: 50%; z-index: 1250; width: min(calc(100% - 32px), 760px); transform: translate(-50%,-18px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, transform .2s ease, visibility .2s ease; }
.site-search.is-open { transform: translate(-50%,0); opacity: 1; visibility: visible; pointer-events: auto; }
.search-card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 0 0 14px 14px; box-shadow: var(--shadow); padding: 18px; }
.search-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 12px; }
.search-head strong { color: var(--title); font-size: 18px; }
.search-head p { margin: 2px 0 0; color: var(--muted); }
.search-card label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.search-card input { width: 100%; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 12px; color: var(--title); background: var(--cream); outline: none; }
.search-card input:focus { border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(201,162,39,.12); }
.search-presets { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.search-presets a { min-height: 58px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--title); display: flex; flex-direction: column; justify-content: center; }
.search-presets a:hover { border-color: var(--gold); background: var(--cream); }
.search-presets span { color: var(--muted); font-size: 12px; }
.search-empty { margin: 12px 0 0; color: var(--muted); }
.mobile-dock { display: none; }

@media (max-width: 860px) {
    .grid-3, .note-grid { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .numbered-layout, .app-layout { grid-template-columns: 1fr; }
    .feature-list { grid-template-columns: 1fr; }
    .footer-brand { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 720px) {
    .shell { width: calc(100% - 32px); }
    .seat-tabs { display: none; }
    .site-main { padding-top: 82px; padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
    .palace-inner { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 6px; }
    .brand-link { max-width: 110px; overflow: hidden; }
    .brand-logo { max-width: 108px; }
    .brand-text { font-size: 15px; white-space: nowrap; }
    .drawer-trigger { min-width: 70px; padding: 0 10px; }
    .app-entry { min-width: 74px; padding: 0 10px; white-space: nowrap; }
    .page-hero, .section, .home-cover { padding: 26px 0; }
    .media-hero { height: 260px; }
    .media-app { height: 330px; }
    .cover-copy h1 { font-size: 24px; }
    .section-head { align-items: start; flex-direction: column; gap: 6px; }
    .shelf-row { grid-template-columns: 1fr; gap: 5px; }
    .shelf-row a { padding: 0; width: max-content; }
    .cta-band { flex-direction: column; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .site-footer { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
    .mobile-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: grid; grid-template-columns: repeat(5,1fr); height: calc(48px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--line-strong); }
    .mobile-dock a { min-width: 0; min-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; }
    .site-search { inset: 0; width: 100%; height: 100dvh; transform: none; background: var(--title); color: var(--cream); }
    .site-search.is-open { transform: none; }
    .search-card { height: 100%; overflow-y: auto; border: 0; border-radius: 0; background: var(--title); color: var(--cream); padding: calc(20px + env(safe-area-inset-top)) 16px 30px; }
    .search-head strong { color: var(--cream); }
    .search-head p, .search-card label, .search-empty { color: var(--bg-deep); }
    .search-card input { background: var(--cream); color: var(--title); border-color: var(--gold); }
    .search-presets { grid-template-columns: 1fr; }
    .search-presets a { background: rgba(255,248,232,.07); color: var(--cream); border-color: rgba(224,188,74,.28); }
    .search-presets a:hover { background: rgba(255,248,232,.12); }
    .search-presets span { color: var(--bg-deep); }
    .search-card .icon-button { color: var(--cream); background: transparent; border-color: var(--gold); }
}

@media (max-width: 420px) {
    .crown-inner span { max-width: 72vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .footer-grid { grid-template-columns: 1fr; }
    .rank-row { grid-template-columns: 54px 1fr; }
    .rank-row .big-no { font-size: 30px; }
}
