* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: #FBF6EA; color: #4A3A1A; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif; font-size: 15px; line-height: 1.7; }
body.ui-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 300; background: #FFFFFF; color: #3A2A10; padding: 10px 14px; border: 1px solid rgba(201,162,39,.46); border-radius: 8px; }
.skip-link:focus { top: 10px; }
.crown-line { position: fixed; z-index: 120; top: 0; left: 0; right: 0; height: 22px; background: #3A2A10; color: #FFF8E8; font-size: 12px; }
.top-inner { max-width: 1120px; height: 22px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.text-action { min-height: 22px; border: 0; background: transparent; color: #FFF8E8; padding: 0 4px; }
.palace-bar { position: fixed; z-index: 120; top: 22px; left: 0; right: 0; height: 60px; background: #FFFFFF; border-bottom: 1px solid rgba(201,162,39,.18); }
.palace-inner { max-width: 1120px; height: 60px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.brand-link { justify-self: start; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; }
.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: #3A2A10; letter-spacing: .08em; white-space: nowrap; }
.drawer-trigger, .app-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border-radius: 10px; font-size: 14px; }
.drawer-trigger { border: 1px solid rgba(201,162,39,.46); color: #3A2A10; background: #FFF8E8; }
.app-link { justify-self: end; background: linear-gradient(135deg,#E0BC4A 0%,#C9A227 55%,#8C6A12 100%); color: #3A2A10; font-weight: 800; }
.seat-tabs { position: fixed; z-index: 110; top: 82px; left: 0; right: 0; height: 40px; background: #FFF8E8; border-bottom: 1px solid rgba(201,162,39,.18); }
.seat-inner { max-width: 1120px; height: 40px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.seat-inner a { min-width: 74px; min-height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; padding: 0 14px; font-size: 13px; color: #7A6232; }
.seat-inner a.is-active { background: #C9A227; color: #3A2A10; font-weight: 800; }
.site-main { min-height: 70vh; padding: 154px 16px 72px; }
.container { width: min(1120px, 100%); margin: 0 auto; }
.page-head { margin-bottom: 22px; }
.eyebrow { margin: 0 0 8px; font-size: 13px; color: #8C6A12; font-weight: 800; letter-spacing: .08em; }
h1, h2, h3 { margin-top: 0; color: #3A2A10; }
h1 { margin-bottom: 12px; font-size: 24px; line-height: 1.3; letter-spacing: .01em; }
h2 { font-size: 20px; line-height: 1.4; }
h3 { font-size: 16px; line-height: 1.5; }
p { margin-top: 0; }
.lede { max-width: 830px; color: #7A6232; }
.section { margin-top: 26px; }
.section-card, .content-card, .term-card, .faq-card, .shelf-card, .timeline-card, .note-card { background: #FFFFFF; border: 1px solid rgba(201,162,39,.18); border-radius: 12px; box-shadow: 0 12px 28px rgba(58,42,16,.08); }
.section-card, .content-card, .term-card, .note-card { padding: 22px; }
.gold-panel { background: #F0E2BE; border-color: rgba(201,162,39,.46); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stack { display: grid; gap: 14px; }
.pill { display: inline-flex; align-items: center; min-height: 30px; padding: 3px 10px; border-radius: 999px; background: #FFF8E8; color: #8C6A12; border: 1px solid rgba(201,162,39,.18); font-size: 12px; font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.button-primary, .button-secondary { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border-radius: 10px; font-size: 14px; font-weight: 800; white-space: nowrap; }
.button-primary { background: linear-gradient(135deg,#E0BC4A 0%,#C9A227 55%,#8C6A12 100%); color: #3A2A10; border: 1px solid transparent; }
.button-secondary { background: #FFFFFF; color: #3A2A10; border: 1px solid #C9A227; }
a:hover, button:hover { filter: brightness(.985); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(201,162,39,.36); outline-offset: 2px; }
.media-slot { width: 100%; min-height: 180px; background: #FFF8E8; border: 1px solid rgba(201,162,39,.18); border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.media-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.media-slot.banner { height: 260px; }
.media-slot.feature { height: 200px; }
.media-slot.card-image { height: 180px; }
.media-slot.app-art { height: 360px; }
.hero-copy { padding: 24px 0 6px; max-width: 850px; }
.hero-copy .brand-display { margin: 0 0 4px; font-size: 13px; color: #8C6A12; font-weight: 900; letter-spacing: .16em; }
.hero-copy h1 { font-size: 24px; }
.feature-card { display: flex; flex-direction: column; min-width: 0; }
.feature-card .card-body { padding: 18px 4px 0; }
.number-list { counter-reset: item; display: grid; gap: 12px; }
.number-item { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid rgba(201,162,39,.18); }
.number-item:last-child { border-bottom: 0; }
.number-mark { color: #C9A227; font-size: 28px; font-weight: 900; line-height: 1; }
.shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.shelf-card { padding: 16px; min-height: 150px; }
.shelf-card small { color: #9A7A44; }
.timeline { position: relative; margin-left: 10px; padding-left: 26px; border-left: 2px solid rgba(201,162,39,.36); display: grid; gap: 14px; }
.timeline-card { position: relative; padding: 16px 18px; }
.timeline-card::before { content: ""; position: absolute; left: -34px; top: 23px; width: 12px; height: 12px; border-radius: 50%; background: #C9A227; box-shadow: 0 0 0 5px #FBF6EA; }
.status { display: inline-flex; padding: 2px 9px; border-radius: 999px; background: #F0E2BE; color: #3A2A10; border: 1px solid rgba(201,162,39,.46); font-size: 12px; font-weight: 800; }
.definition-list { display: grid; gap: 12px; }
.definition-list > div { padding: 16px 0; border-bottom: 1px solid rgba(201,162,39,.18); }
.definition-list > div:last-child { border-bottom: 0; }
.definition-list dt { color: #3A2A10; font-weight: 800; }
.definition-list dd { margin: 6px 0 0; color: #7A6232; }
.inline-links { display: flex; flex-wrap: wrap; gap: 10px; }
.inline-links a { min-height: 40px; padding: 8px 13px; display: inline-flex; align-items: center; border: 1px solid rgba(201,162,39,.46); background: #FFFFFF; border-radius: 10px; color: #3A2A10; }
.app-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: 24px; align-items: start; }
.app-icon { width: 48px; height: 48px; border-radius: 12px; background: #FFF8E8; border: 1px solid rgba(201,162,39,.18); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.app-icon img { width: 48px; height: 48px; object-fit: contain; }
.faq-list { display: grid; gap: 12px; }
.faq-card { padding: 18px 20px; }
.faq-card h2, .faq-card h3 { margin-bottom: 8px; }
.notice { padding: 16px 18px; border-left: 4px solid #C9A227; background: #FFF8E8; border-radius: 0 10px 10px 0; }
.list-clean { margin: 0; padding-left: 20px; }
.list-clean li + li { margin-top: 7px; }
.site-footer { background: #3A2A10; color: #F3E6C8; border-top: 1px solid rgba(201,162,39,.46); font-size: 13px; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 30px 16px 84px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong { color: #FFF8E8; font-size: 16px; }
.footer-brand span { color: #D9C99F; font-size: 12px; letter-spacing: .12em; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.footer-grid h2 { color: #E0BC4A; font-size: 13px; margin-bottom: 8px; }
.footer-grid a { display: block; width: fit-content; min-height: 30px; padding: 4px 0; color: #F3E6C8; }
.footer-notice { margin: 22px 0 8px; color: #D9C99F; max-width: 900px; }
.copyright { margin: 0; color: #BCA97D; }
.palace-drawer { position: fixed; z-index: 220; top: 0; bottom: 0; left: 0; width: 400px; max-width: 86vw; background: #FFFFFF; transform: translateX(-104%); visibility: hidden; pointer-events: none; transition: transform .24s ease, visibility .24s ease; box-shadow: 16px 0 34px rgba(58,42,16,.16); display: flex; flex-direction: column; }
body.drawer-open .palace-drawer { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid rgba(201,162,39,.18); }
.drawer-brand { display: flex; align-items: center; gap: 10px; }
.drawer-brand strong, .drawer-brand span { display: block; }
.drawer-brand strong { color: #3A2A10; }
.drawer-brand span { font-size: 11px; color: #9A7A44; }
.close-button { min-width: 44px; min-height: 44px; border: 1px solid rgba(201,162,39,.46); border-radius: 10px; background: #FFF8E8; color: #3A2A10; }
.drawer-scroll { overflow-y: auto; padding: 10px 16px 24px; }
.drawer-group { padding: 12px 0; }
.drawer-group + .drawer-group { border-top: 1px solid rgba(201,162,39,.18); }
.drawer-group h2 { margin-bottom: 8px; color: #8C6A12; font-size: 13px; }
.drawer-group a { display: grid; gap: 2px; padding: 9px 10px; border-radius: 10px; }
.drawer-group a:hover, .drawer-group a:focus-visible { background: #FFF8E8; }
.drawer-group strong { color: #3A2A10; }
.drawer-group span { color: #7A6232; font-size: 12px; line-height: 1.5; }
.site-overlay { position: fixed; z-index: 190; inset: 0; background: rgba(58,42,16,.34); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.site-overlay.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.search-layer { position: fixed; z-index: 230; top: 82px; left: 50%; width: min(880px, calc(100% - 32px)); transform: translate(-50%, -16px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, transform .2s ease, visibility .2s ease; }
body.search-open .search-layer { opacity: 1; transform: translate(-50%, 0); visibility: visible; pointer-events: auto; }
.search-card { background: #FFFFFF; border: 1px solid rgba(201,162,39,.46); border-radius: 0 0 14px 14px; box-shadow: 0 18px 42px rgba(58,42,16,.14); padding: 20px; }
.search-head { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 12px; }
.search-head strong, .search-head span { display: block; }
.search-head strong { color: #3A2A10; font-size: 18px; }
.search-head span { color: #7A6232; font-size: 13px; }
.search-label { display: block; margin-bottom: 6px; color: #7A6232; font-size: 13px; }
.search-input { width: 100%; min-height: 46px; border: 1px solid rgba(201,162,39,.46); border-radius: 10px; background: #FFF8E8; color: #3A2A10; padding: 0 13px; }
.search-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.search-presets a { min-height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(201,162,39,.18); border-radius: 10px; background: #FFFFFF; color: #3A2A10; }
.search-empty { color: #7A6232; margin: 12px 0 0; }
.mobile-bottom { display: none; }

@media (max-width: 820px) {
    .seat-tabs { display: none; }
    .site-main { padding-top: 112px; padding-bottom: 80px; }
    .grid-3, .grid-4, .shelf, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .app-layout { grid-template-columns: 1fr; }
    .media-slot.app-art { height: 320px; }
    .search-layer { inset: 0; width: 100%; transform: none; background: #3A2A10; }
    body.search-open .search-layer { transform: none; }
    .search-card { min-height: 100%; border: 0; border-radius: 0; box-shadow: none; background: #3A2A10; color: #FFF8E8; padding: max(26px, env(safe-area-inset-top)) 16px 80px; }
    .search-head strong, .search-head span, .search-label { color: #FFF8E8; }
    .search-input { background: #FFF8E8; color: #3A2A10; }
    .search-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .search-presets a { background: #FFF8E8; color: #3A2A10; }
    .search-empty { color: #F3E6C8; }
    .mobile-bottom { position: fixed; z-index: 160; left: 0; right: 0; bottom: 0; min-height: calc(48px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #FFFFFF; border-top: 1px solid rgba(201,162,39,.46); display: grid; grid-template-columns: repeat(5, 1fr); }
    .mobile-bottom a { min-height: 48px; display: flex; align-items: center; justify-content: center; color: #7A6232; font-size: 12px; }
    .mobile-bottom a.is-active { background: #C9A227; color: #3A2A10; font-weight: 800; }
    .footer-inner { padding-bottom: 92px; }
}

@media (max-width: 620px) {
    .palace-inner { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 6px; }
    .brand-logo { max-width: 118px; }
    .brand-fallback { font-size: 15px; }
    .drawer-trigger, .app-link { padding: 0 10px; min-width: 56px; }
    .grid-2, .grid-3, .grid-4, .shelf, .footer-grid { grid-template-columns: 1fr; }
    .section-card, .content-card, .term-card, .note-card { padding: 18px; }
    .media-slot.banner { height: 230px; }
    .media-slot.feature { height: 190px; }
    .number-item { grid-template-columns: 44px 1fr; }
    .search-presets { grid-template-columns: 1fr 1fr; }
}
