:root {
    --bg: #F6EDE0;
    --deep-bg: #EAD7C0;
    --surface: #FFFFFF;
    --secondary: #E8D2B4;
    --title: #3A2414;
    --text: #4A3220;
    --muted: #7A5634;
    --soft: #9A7450;
    --gold: #C4843C;
    --bright-gold: #D9A05A;
    --deep-gold: #8B5A2B;
    --cream: #FFF6EA;
    --border: rgba(196,132,60,0.18);
    --border-strong: rgba(196,132,60,0.46);
    --shadow: 0 12px 28px rgba(58,36,20,0.08);
    --max: 1120px;
    --crown-h: 22px;
    --hall-h: 60px;
    --seat-h: 40px;
    --mobile-h: 48px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; color: var(--text); background: var(--bg); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, 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 { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid rgba(196,132,60,.55); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 120; left: 16px; top: -80px; background: var(--surface); color: var(--title); padding: 10px 14px; border: 1px solid var(--gold); border-radius: 8px; }
.skip-link:focus { top: 8px; }
.site-chrome { position: fixed; inset: 0 0 auto 0; z-index: 80; }
.crown-line { height: var(--crown-h); background: var(--deep-gold); color: var(--cream); font-size: 12px; line-height: var(--crown-h); }
.top-inner, .hall-inner, .seat-inner, .footer-inner { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.top-search-button { min-width: 44px; height: 22px; border: 0; background: transparent; color: var(--cream); cursor: pointer; padding: 0 8px; }
.hall-bar { height: var(--hall-h); background: var(--surface); border-bottom: 1px solid var(--border-strong); }
.hall-inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.brand-link { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; color: var(--title); font-weight: 800; font-size: 16px; }
.brand-logo, .drawer-logo, .footer-logo { height: 28px; width: auto; object-fit: contain; object-position: center; }
.brand-text-fallback { white-space: nowrap; font-weight: 800; letter-spacing: .04em; }
.drawer-trigger { justify-self: center; min-width: 78px; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--cream); color: var(--title); cursor: pointer; font-weight: 700; }
.app-entry { justify-self: end; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border-radius: 10px; background: linear-gradient(135deg,#D9A05A 0%,#C4843C 55%,#8B5A2B 100%); color: var(--cream); font-size: 14px; font-weight: 800; }
.seat-tabs { height: var(--seat-h); background: var(--cream); border-bottom: 1px solid var(--border); }
.seat-inner { height: 100%; display: flex; justify-content: center; align-items: center; gap: 10px; }
.seat-inner a { min-width: 88px; height: 30px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 700; }
.seat-inner a:hover, .seat-inner a.is-current { background: var(--gold); color: var(--cream); }
.noscript-nav { margin: calc(var(--crown-h) + var(--hall-h) + var(--seat-h) + 12px) auto 0; width: min(var(--max), calc(100% - 32px)); display: flex; flex-wrap: wrap; gap: 8px; }
.noscript-nav a { padding: 6px 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); }
.site-main { min-height: 70vh; padding-top: calc(var(--crown-h) + var(--hall-h) + var(--seat-h)); padding-bottom: 42px; }
.page-wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.page-hero { padding: 36px 0 26px; border-bottom: 1px solid var(--border); }
.page-kicker { margin: 0 0 8px; color: var(--deep-gold); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
h1, h2, h3 { margin-top: 0; color: var(--title); letter-spacing: -.01em; }
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: 820px; margin: 0; color: var(--muted); }
.section { padding: 30px 0; border-bottom: 1px solid var(--border); }
.section:last-child { border-bottom: 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 16px; }
.section-head p { max-width: 580px; margin: 0; color: var(--muted); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn { min-height: 42px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 14px; font-weight: 800; line-height: 1; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg,#D9A05A 0%,#C4843C 55%,#8B5A2B 100%); color: var(--cream); }
.btn-secondary { background: var(--surface); color: var(--title); border: 1px solid var(--border-strong); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.panel, .card, .shelf-item, .note-card, .policy-block, .faq-item, .timeline-item, .rank-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { padding: 16px; }
.card p:last-child { margin-bottom: 0; }
.media-slot, .media-slot-small, .media-slot-tall, .cover-slot { width: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--cream); border: 1px solid var(--border); border-radius: 12px; }
.media-slot { min-height: 200px; }
.media-slot-small { height: 180px; }
.media-slot-tall { height: 360px; max-height: 360px; }
.cover-slot { height: 260px; }
.media-slot img, .media-slot-small img, .media-slot-tall img, .cover-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.cover-block { padding: 24px 0 30px; }
.cover-copy { max-width: 820px; padding-top: 18px; }
.cover-copy .brand-line { margin: 0 0 4px; font-weight: 800; color: var(--deep-gold); }
.cover-copy h1 { margin-bottom: 8px; }
.cover-copy .cover-slogan { font-size: 20px; font-weight: 800; color: var(--title); margin-bottom: 10px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.feature-card { padding: 0 0 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.feature-card .media-slot-small { border: 0; border-radius: 0; border-bottom: 1px solid var(--border); }
.feature-card .feature-copy { padding: 16px 16px 0; }
.number-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin: 16px 0; }
.number-card { padding: 16px; border-radius: 12px; background: var(--secondary); border: 1px solid var(--border-strong); }
.number-card strong, .rank-no { display: block; color: var(--deep-gold); font-size: 22px; line-height: 1; margin-bottom: 8px; }
.shelf { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.shelf-item { padding: 16px; display: grid; grid-template-columns: 54px 1fr; gap: 12px; }
.shelf-tag { width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; background: var(--secondary); color: var(--title); font-weight: 900; }
.rank-list { display: grid; gap: 10px; }
.rank-item { padding: 15px 16px; display: grid; grid-template-columns: 60px 1fr; gap: 12px; align-items: start; }
.timeline { position: relative; display: grid; gap: 14px; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--border-strong); }
.timeline-item { position: relative; padding: 16px 16px 16px 20px; }
.timeline-item::before { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); left: -18px; top: 22px; box-shadow: 0 0 0 4px var(--bg); }
.status { display: inline-flex; min-height: 28px; align-items: center; padding: 0 10px; border-radius: 999px; background: var(--secondary); color: var(--title); font-size: 12px; font-weight: 800; margin-bottom: 8px; }
.note-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.note-card { padding: 16px; }
.two-column { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(280px,.85fr); gap: 22px; align-items: start; }
.policy-list, .method-list, .directory-list { display: grid; gap: 12px; }
.policy-block { padding: 18px; }
.policy-block p:last-child { margin-bottom: 0; }
.faq-list { display: grid; gap: 12px; }
.faq-item { padding: 18px; }
.faq-item h2, .faq-item h3 { margin-bottom: 8px; }
.app-showcase { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0,1.2fr); gap: 22px; align-items: center; }
.app-icon-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.app-icon-row img { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; }
.mini-links { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-links a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--surface); font-weight: 700; }
.site-footer { background: var(--deep-gold); color: var(--cream); border-top: 1px solid rgba(255,246,234,.55); font-size: 13px; padding: 34px 0 calc(28px + env(safe-area-inset-bottom)); }
.footer-brand { display: grid; grid-template-columns: 1fr 1.4fr; gap: 26px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,246,234,.24); }
.footer-brand-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.footer-brand-row strong { color: var(--cream); font-size: 16px; }
.footer-brand-row span { color: #F0D5B5; font-size: 12px; }
.footer-brand p { margin: 0; color: #F7E7D2; }
.footer-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px; padding: 24px 0; }
.footer-grid h2 { margin-bottom: 9px; color: var(--cream); font-size: 13px; }
.footer-grid a { display: block; color: var(--cream); padding: 3px 0; }
.footer-grid a:hover { color: #F7E7D2; }
.footer-bottom { padding-top: 16px; border-top: 1px solid rgba(255,246,234,.24); display: flex; flex-wrap: wrap; gap: 14px; color: #F0D5B5; }
.footer-bottom a { color: var(--cream); }
.site-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(58,36,20,.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; z-index: 100; inset: 0 0 0 auto; width: min(400px, 86vw); background: var(--cream); border-left: 1px solid var(--border-strong); box-shadow: -18px 0 40px rgba(58,36,20,.16); transform: translateX(102%); visibility: hidden; pointer-events: none; transition: transform .22s ease, visibility .22s ease; display: grid; grid-template-rows: auto 1fr; }
.site-drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { height: 76px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); background: var(--surface); }
.drawer-brand { display: flex; align-items: center; gap: 10px; }
.drawer-brand span { display: grid; line-height: 1.25; }
.drawer-brand small { color: var(--muted); font-size: 10px; }
.icon-button, .search-head button { min-width: 56px; min-height: 44px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--cream); cursor: pointer; }
.drawer-scroll { overflow-y: auto; padding: 16px; }
.drawer-group { margin-bottom: 20px; }
.drawer-group h2 { margin-bottom: 8px; font-size: 13px; color: var(--deep-gold); }
.drawer-group a { display: grid; gap: 2px; padding: 10px 12px; margin-bottom: 6px; border-radius: 10px; border: 1px solid transparent; }
.drawer-group a:hover { background: var(--surface); border-color: var(--border); }
.drawer-group strong { color: var(--title); font-size: 14px; }
.drawer-group span { color: var(--muted); font-size: 12px; line-height: 1.55; }
.search-layer { position: fixed; z-index: 101; top: calc(var(--crown-h) + var(--hall-h)); left: 50%; width: min(760px, calc(100% - 32px)); transform: translate(-50%, -18px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, transform .2s ease, visibility .2s ease; }
.search-layer.is-open { opacity: 1; transform: translate(-50%, 12px); visibility: visible; pointer-events: auto; }
.search-card { background: var(--cream); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: 0 22px 60px rgba(58,36,20,.2); padding: 20px; color: var(--text); }
.search-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.search-head small { color: var(--deep-gold); font-weight: 800; }
.search-head h2 { margin: 3px 0 0; }
.search-card label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.search-card input { width: 100%; min-height: 46px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--title); padding: 0 13px; }
.search-results { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.search-results a { min-height: 58px; padding: 10px 12px; display: grid; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
.search-results strong { color: var(--title); }
.search-results span { color: var(--muted); font-size: 12px; }
.search-empty { margin: 14px 0 0; color: var(--muted); }
.mobile-bar { display: none; }
.prose p { max-width: 880px; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: .55em; }

.compact-panel { padding: 18px; }
.block-gap-top { margin-top: 16px; }
.tight-title { margin-bottom: 2px; }

.callout { padding: 16px 18px; border-left: 4px solid var(--gold); background: var(--cream); border-radius: 0 10px 10px 0; }
.definition-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.definition-list div { padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.definition-list dt { color: var(--title); font-weight: 800; }
.definition-list dd { margin: 4px 0 0; color: var(--muted); }
.contact-paths { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.contact-paths article { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }

@media (max-width: 840px) {
    .card-grid, .feature-grid, .note-grid, .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .number-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .two-column, .app-showcase { grid-template-columns: 1fr; }
    .footer-brand { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    :root { --seat-h: 0px; }
    body { padding-bottom: calc(var(--mobile-h) + env(safe-area-inset-bottom)); }
    .top-inner, .hall-inner, .seat-inner, .footer-inner, .page-wrap { width: calc(100% - 32px); }
    .seat-tabs { display: none; }
    .site-main { padding-top: calc(var(--crown-h) + var(--hall-h)); padding-bottom: 30px; }
    .crown-line { font-size: 12px; }
    .hall-inner { grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; }
    .brand-link { min-width: 0; max-width: 42vw; overflow: hidden; }
    .brand-logo { max-width: 130px; }
    .drawer-trigger { min-width: 68px; padding: 0 12px; }
    .app-entry { padding: 0 10px; }
    .cover-block { padding-top: 18px; }
    .cover-slot { height: 260px; }
    .card-grid, .feature-grid, .shelf, .note-grid, .definition-list, .contact-paths { grid-template-columns: 1fr; }
    .number-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .section { padding: 24px 0; }
    .section-head { display: block; }
    .section-head p { margin-top: -6px; }
    .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .footer-bottom { padding-bottom: 12px; }
    .search-layer { inset: 0; width: 100%; transform: none; background: var(--deep-gold); color: var(--cream); }
    .search-layer.is-open { transform: none; }
    .search-card { min-height: 100%; border: 0; border-radius: 0; box-shadow: none; background: var(--deep-gold); color: var(--cream); padding: calc(18px + env(safe-area-inset-top)) 16px 24px; }
    .search-head h2 { color: var(--cream); }
    .search-head small, .search-card label { color: #F0D5B5; }
    .search-head button { background: transparent; color: var(--cream); border-color: rgba(255,246,234,.42); }
    .search-card input { background: var(--cream); color: var(--title); }
    .search-results { grid-template-columns: 1fr; }
    .search-empty { color: #F0D5B5; }
    .mobile-bar { position: fixed; z-index: 79; left: 0; right: 0; bottom: 0; height: calc(var(--mobile-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); background: var(--surface); border-top: 1px solid var(--border-strong); box-shadow: 0 -8px 20px rgba(58,42,16,.08); }
    .mobile-bar a { min-width: 0; min-height: 48px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); }
    .mobile-bar a.is-current { background: var(--gold); color: var(--cream); font-weight: 800; }
    .site-drawer { width: 86vw; }
    .page-hero { padding-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
