:root {
    --bg: #FBF6EA;
    --bg-deep: #F3E6C8;
    --surface: #FFFFFF;
    --surface-alt: #F0E2BE;
    --title: #3A2A10;
    --text: #4A3A1A;
    --muted: #7A6232;
    --soft: #9A7A44;
    --gold: #C9A227;
    --gold-light: #E0BC4A;
    --gold-dark: #8C6A12;
    --cream: #FFF8E8;
    --border: rgba(201,162,39,0.18);
    --border-strong: rgba(201,162,39,0.46);
    --shadow: 0 12px 28px rgba(58,42,16,0.08);
    --max: 1120px;
    --crown-h: 22px;
    --palace-h: 60px;
    --seat-h: 40px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 0;
    background: var(--bg);
    color: var(--text);
    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;
}
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(201,162,39,0.55); outline-offset: 3px; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 1000; background: var(--surface); color: var(--title); border: 1px solid var(--gold); padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { top: 8px; }
.top-shell, .content-shell { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.crown-bar { position: fixed; z-index: 200; top: 0; left: 0; right: 0; height: var(--crown-h); background: var(--title); color: var(--cream); font-size: 12px; }
.crown-bar .top-shell { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.crown-brand { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.text-button { border: 0; background: transparent; color: inherit; min-height: 22px; padding: 0 6px; cursor: pointer; }
.crown-search { position: relative; }
.crown-search::after { content: ""; position: absolute; left: -10px; right: -10px; top: 50%; height: 44px; transform: translateY(-50%); }
.palace-bar { position: fixed; z-index: 190; top: var(--crown-h); left: 0; right: 0; height: var(--palace-h); background: var(--surface); border-bottom: 1px solid var(--border-strong); }
.palace-inner { height: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 12px; }
.palace-logo { justify-self: start; min-width: 0; display: inline-flex; align-items: center; min-height: 44px; }
.brand-logo, .drawer-logo, .footer-logo { height: 28px; width: auto; object-fit: contain; object-position: center; }
.brand-fallback { font-size: 16px; font-weight: 800; color: var(--title); letter-spacing: .04em; white-space: nowrap; }
.palace-menu-button { min-width: 88px; min-height: 44px; font-size: 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--cream); color: var(--title); font-weight: 700; cursor: pointer; }
.palace-app-link { justify-self: end; min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; background: linear-gradient(135deg,#E0BC4A 0%,#C9A227 55%,#8C6A12 100%); color: var(--title); font-weight: 800; font-size: 14px; }
.seat-tabs { position: fixed; z-index: 180; top: calc(var(--crown-h) + var(--palace-h)); left: 0; right: 0; height: var(--seat-h); background: var(--cream); border-bottom: 1px solid var(--border); }
.seat-tabs-inner { height: 100%; display: flex; justify-content: center; align-items: center; gap: 10px; }
.seat-link { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 84px; min-height: 40px; border-radius: 999px; padding: 0 14px; color: var(--muted); font-size: 13px; }
.seat-link::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
.seat-link:hover, .seat-link.is-active { background: var(--gold); color: var(--title); }
.site-main { padding-top: calc(var(--crown-h) + var(--palace-h) + var(--seat-h)); min-height: 70vh; }
.page-hero { padding: 34px 0 12px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-dark); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
h1, h2, h3 { color: var(--title); margin-top: 0; }
h1 { font-size: 24px; line-height: 1.3; margin-bottom: 14px; }
h2 { font-size: 20px; line-height: 1.4; margin-bottom: 12px; }
h3 { font-size: 16px; line-height: 1.5; margin-bottom: 8px; }
p { margin: 0 0 14px; }
.lead { max-width: 820px; color: var(--muted); font-size: 16px; }
.section-block { padding: 26px 0; }
.section-block + .section-block { border-top: 1px solid var(--border); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-head p { color: var(--muted); max-width: 640px; margin: 0; }
.cover-shell { padding-top: 26px; }
.media-slot { width: 100%; background: var(--cream); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display: grid; place-items: center; }
.media-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.media-placeholder { width: 72%; height: 58%; border-radius: 28px 8px 28px 8px; border: 1px solid rgba(201,162,39,.24); background: linear-gradient(135deg, rgba(224,188,74,.16), rgba(201,162,39,.06)); position: relative; }
.media-placeholder::after { content: ""; position: absolute; inset: 18%; border: 1px solid rgba(140,106,18,.18); border-radius: 50%; }
.cover-media { height: 260px; }
.section-media { height: 200px; }
.card-media { height: 180px; border-radius: 10px 10px 0 0; border-left: 0; border-right: 0; border-top: 0; }
.app-media { height: 360px; }
.icon-slot { width: 64px; height: 64px; border-radius: 14px; flex: 0 0 auto; }
.cover-copy { text-align: center; max-width: 860px; margin: 22px auto 0; }
.cover-copy .brand-line { font-weight: 800; color: var(--gold-dark); letter-spacing: .1em; margin-bottom: 6px; }
.cover-copy h1 { margin-bottom: 12px; }
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border-radius: 999px; 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: var(--surface); color: var(--title); border: 1px solid var(--border-strong); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.feature-card, .info-card, .note-card, .shelf-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.feature-card .card-body, .info-card, .note-card, .shelf-card { padding: 18px; }
.feature-card p, .info-card p, .note-card p, .shelf-card p { color: var(--muted); }
.feature-card a, .shelf-card a, .text-link { color: var(--gold-dark); font-weight: 800; }
.feature-card .card-body > a, .shelf-card a, .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.split-section { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 24px; align-items: start; }
.numbered-list { display: grid; gap: 10px; counter-reset: tm; }
.numbered-item { display: grid; grid-template-columns: 54px 1fr; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.numbered-item .num { color: var(--gold-dark); font-weight: 900; font-size: 22px; letter-spacing: .06em; }
.numbered-item p { color: var(--muted); margin: 4px 0 0; }
.shelf-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.shelf-item { background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--gold); border-radius: 10px; padding: 16px; }
.shelf-item small { color: var(--soft); display: block; margin-bottom: 4px; }
.shelf-item p { color: var(--muted); margin-bottom: 0; }
.timeline { position: relative; display: grid; gap: 18px; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border-strong); }
.timeline-item { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.timeline-item::before { content: ""; position: absolute; left: -25px; top: 20px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px var(--bg); }
.status { display: inline-flex; min-height: 28px; align-items: center; padding: 0 10px; border-radius: 999px; background: var(--surface-alt); color: var(--title); font-size: 12px; font-weight: 800; }
.memo-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.memo-card { background: var(--cream); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.memo-card strong { color: var(--gold-dark); display: block; margin-bottom: 6px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.faq-item h2, .faq-item h3 { margin-bottom: 8px; }
.faq-item p { color: var(--muted); margin: 0; }
.article-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 24px; }
.article-panel + .article-panel { margin-top: 16px; }
.article-panel p:last-child { margin-bottom: 0; }
.policy-list { margin: 0; padding-left: 1.2em; }
.policy-list li { margin-bottom: 8px; color: var(--muted); }
.callout { background: var(--cream); border: 1px solid var(--border-strong); border-radius: 12px; padding: 18px; color: var(--text); }
.app-feature { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center; }
.site-footer { background: var(--title); color: var(--bg-deep); border-top: 1px solid var(--gold-dark); margin-top: 42px; padding: 34px 0 calc(30px + env(safe-area-inset-bottom)); font-size: 13px; }
.footer-brand-block { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; }
.footer-logo-link { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
.site-footer .brand-fallback { color: var(--cream); }
.footer-brand-block strong { display: block; color: var(--cream); font-size: 16px; }
.footer-brand-block span { display: block; color: #d8c79d; letter-spacing: .08em; font-size: 12px; }
.footer-columns { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px; }
.footer-columns h2 { color: var(--cream); font-size: 13px; margin-bottom: 8px; }
.footer-columns a { display: flex; align-items: center; color: var(--bg-deep); min-height: 44px; line-height: 1.4; }
.footer-columns a:hover { color: var(--gold-light); }
.footer-notice { margin-top: 24px; color: #d8c79d; }
.footer-copy { color: #bfae83; margin-bottom: 0; }
.site-drawer { position: fixed; z-index: 410; left: 0; top: 0; bottom: 0; width: min(400px,86vw); background: var(--surface); transform: translateX(-104%); transition: transform .24s ease; visibility: hidden; pointer-events: none; box-shadow: 18px 0 40px rgba(58,42,16,.18); }
.site-drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--border); }
.drawer-brand { display: flex; gap: 10px; align-items: center; font-weight: 800; color: var(--title); }
.drawer-close, .search-close { min-height: 44px; min-width: 60px; border: 1px solid var(--border-strong); background: var(--cream); color: var(--title); border-radius: 999px; cursor: pointer; }
.drawer-scroll { height: calc(100vh - 68px); overflow-y: auto; padding: 14px 18px 30px; }
.drawer-group + .drawer-group { margin-top: 20px; }
.drawer-group h2 { font-size: 13px; color: var(--gold-dark); letter-spacing: .08em; margin-bottom: 8px; }
.drawer-group a { display: block; padding: 11px 0; border-bottom: 1px solid var(--border); }
.drawer-group strong { display: block; color: var(--title); }
.drawer-group span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; line-height: 1.5; }
.ui-overlay { position: fixed; z-index: 390; inset: 0; background: rgba(58,42,16,.42); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease; }
.ui-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.site-search { position: fixed; z-index: 420; top: calc(var(--crown-h) + var(--palace-h)); left: 50%; width: min(760px, calc(100% - 32px)); transform: translate(-50%,-18px); opacity: 0; visibility: hidden; pointer-events: none; transition: .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(--border-strong); border-radius: 0 0 14px 14px; padding: 22px; box-shadow: var(--shadow); }
.search-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.search-head strong { color: var(--title); font-size: 18px; }
.search-head p { color: var(--muted); margin: 2px 0 0; }
.search-label { display: block; color: var(--muted); font-size: 13px; margin: 18px 0 6px; }
.search-input { width: 100%; height: 44px; border-radius: 10px; border: 1px solid var(--border-strong); padding: 0 12px; color: var(--title); background: var(--cream); }
.search-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.search-links a { min-height: 54px; border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; background: var(--bg); font-weight: 800; color: var(--title); }
.search-links span { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.search-empty { color: var(--muted); margin: 12px 0 0; }
.ui-locked { overflow: hidden; }
.mobile-bottom-nav { display: none; }
@media (max-width: 760px) {
    :root { --seat-h: 0px; }
    .top-shell, .content-shell { width: calc(100% - 32px); }
    .seat-tabs { display: none; }
    .palace-inner { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 6px; }
    .palace-logo { max-width: 132px; overflow: hidden; }
    .palace-menu-button { min-width: 74px; padding: 0 12px; }
    .palace-app-link { padding: 0 12px; font-size: 13px; }
    .site-main { padding-top: calc(var(--crown-h) + var(--palace-h)); }
    .card-grid, .memo-grid, .footer-columns, .shelf-list, .split-section { grid-template-columns: 1fr; }
    .section-head { align-items: start; flex-direction: column; gap: 6px; }
    .cover-media { height: 220px; }
    .app-media { height: 320px; }
    .article-panel { padding: 18px; }
    .numbered-item { grid-template-columns: 44px 1fr; }
    .site-footer { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
    .mobile-bottom-nav { display: grid; position: fixed; z-index: 175; left: 0; right: 0; bottom: 0; grid-template-columns: repeat(5,1fr); min-height: 48px; padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--border-strong); }
    .mobile-nav-link { min-height: 48px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }
    .mobile-nav-link.is-active { background: var(--gold); color: var(--title); font-weight: 800; }
    .site-search { inset: 0; top: 0; width: 100%; transform: none; background: var(--title); color: var(--cream); }
    .site-search.is-open { transform: none; }
    .search-card { min-height: 100vh; border: 0; border-radius: 0; background: var(--title); padding: 28px 16px calc(30px + env(safe-area-inset-bottom)); }
    .search-head strong, .search-head p, .search-label, .search-empty { color: var(--cream); }
    .search-close { background: var(--gold); border-color: var(--gold); color: var(--title); }
    .search-input { background: var(--cream); }
    .search-links { grid-template-columns: 1fr; }
    .search-links a { background: #4a3614; border-color: rgba(255,248,232,.18); color: var(--cream); }
    .search-links span { color: #dbcda7; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
