:root {
    --bg: #FFFBF3;
    --bg-soft: #FFF6E4;
    --gold-soft: #F8E7B8;
    --title: #1C1608;
    --text: #3A3120;
    --muted: #6B5E43;
    --note: #8A7B5E;
    --gold: #D4A017;
    --gold-bright: #E8C547;
    --gold-warm: #F0C94A;
    --gold-deep: #B8860B;
    --border: rgba(212,160,23,0.18);
    --shadow: 0 16px 42px rgba(80,55,10,0.10);
    --footer: #1A1508;
    --max: 1280px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 16px; line-height: 1.72; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(184,134,11,.35); outline-offset: 3px; }
body.panel-open { overflow: hidden; }
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 1000; }
.gold-line { height: 22px; background: var(--footer); color: #F8E7B8; border-bottom: 1px solid rgba(232,197,71,.35); }
.top-shell, .bar-shell, .tab-shell, .footer-shell, .content-shell, .home-shell { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.top-shell { height: 22px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; letter-spacing: .06em; }
.text-button { border: 0; background: transparent; color: #FFF6E4; min-height: 22px; padding: 0 4px; cursor: pointer; }
.concierge-bar { height: 70px; background: rgba(255,251,243,.98); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.bar-shell { height: 100%; display: grid; grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr); align-items: center; gap: 18px; }
.brand-lockup { justify-self: start; min-height: 44px; display: flex; align-items: center; }
.site-logo { max-height: 38px; width: auto; object-fit: contain; }
.brand-text { color: var(--title); font-size: 22px; font-weight: 750; letter-spacing: .06em; }
.menu-trigger { justify-self: center; min-width: 96px; min-height: 44px; padding: 8px 22px; border: 1px solid rgba(184,134,11,.38); border-radius: 10px; color: var(--title); background: var(--bg-soft); cursor: pointer; font-weight: 700; }
.entry-link { justify-self: end; min-height: 44px; padding: 9px 17px; display: inline-flex; align-items: center; background: linear-gradient(135deg,#F0C94A 0%,#D4A017 55%,#B8860B 100%); color: var(--title); border-radius: 10px; font-weight: 800; }
.field-tabs { height: 44px; background: var(--gold-soft); border-bottom: 1px solid rgba(184,134,11,.24); }
.tab-shell { height: 44px; display: flex; align-items: center; justify-content: flex-start; gap: 6px; overflow: hidden; }
.tab-shell a { min-height: 34px; padding: 6px 13px; display: inline-flex; align-items: center; border-radius: 8px; color: var(--text); white-space: nowrap; font-size: 14px; }
.tab-shell a:hover { background: rgba(255,255,255,.55); }
.tab-shell a.is-current { background: var(--gold-warm); color: var(--title); font-weight: 800; }
.site-main { padding-top: 136px; min-height: 65vh; }

.page-hero, .home-hero { padding: 36px 0 20px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 34px; }
.eyebrow { margin: 0 0 8px; color: var(--gold-deep); font-weight: 800; letter-spacing: .12em; font-size: 13px; }
h1 { margin: 0; color: var(--title); font-size: clamp(28px, 3vw, 32px); line-height: 1.25; letter-spacing: -.02em; }
h2 { color: var(--title); line-height: 1.35; }
.lead { margin: 18px 0 0; max-width: 780px; color: var(--text); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn-primary, .btn-secondary { min-height: 44px; padding: 10px 18px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.btn-primary { background: linear-gradient(135deg,#F0C94A 0%,#D4A017 55%,#B8860B 100%); color: var(--title); }
.btn-secondary { border: 1px solid rgba(184,134,11,.42); background: #fffdf8; color: var(--title); }
.btn-primary:hover, .btn-secondary:hover, .entry-link:hover, .menu-trigger:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(80,55,10,.10); }
.media-slot { min-height: 210px; position: relative; overflow: hidden; background: linear-gradient(135deg, #FFF6E4, #F8E7B8); border: 1px solid var(--border); border-radius: 14px; }
.media-slot::before, .media-slot::after { content: ""; position: absolute; border: 1px solid rgba(184,134,11,.25); transform: rotate(-8deg); }
.media-slot::before { width: 44%; height: 58%; right: 8%; top: 20%; }
.media-slot::after { width: 28%; height: 35%; right: 31%; top: 35%; }
.content-image { width: 100%; max-height: 320px; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow); }
.hero-media { max-height: 320px; }
.hero-media.media-slot { min-height: 250px; box-shadow: var(--shadow); }

.section-block { padding: 30px 0; }
.section-block + .section-block { border-top: 1px solid var(--border); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-size: 24px; }
.section-heading p { margin: 0; color: var(--muted); max-width: 640px; }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.info-card { background: #fffdf8; border: 1px solid var(--border); border-radius: 12px; padding: 20px; min-width: 0; }
.info-card h2, .info-card h3 { margin: 0 0 10px; color: var(--title); font-size: 18px; }
.info-card p { margin: 0; color: var(--text); }
.info-card .small-link, .inline-link { display: inline-flex; margin-top: 14px; color: #6A4B00; font-weight: 800; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.number-card { position: relative; padding-top: 54px; }
.number-card .num { position: absolute; top: 18px; left: 20px; font-size: 25px; font-weight: 850; color: var(--gold-deep); line-height: 1; }
.status-chip { display: inline-flex; padding: 5px 9px; border: 1px solid rgba(184,134,11,.30); background: var(--gold-soft); color: var(--title); border-radius: 8px; font-size: 13px; font-weight: 800; }
.notice-box { margin-top: 22px; padding: 22px; border-left: 4px solid var(--gold); background: var(--bg-soft); color: var(--text); border-radius: 0 12px 12px 0; }
.notice-box strong { color: var(--title); }
.article-flow { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(260px,.75fr); gap: 28px; }
.article-flow .main-copy { min-width: 0; }
.article-flow aside { align-self: start; position: sticky; top: 162px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.article-flow aside h2 { margin-top: 0; font-size: 18px; }
.article-flow aside a { display: block; padding: 8px 0; border-bottom: 1px solid var(--border); color: var(--muted); }
.article-flow aside a:last-child { border-bottom: 0; }
.long-sections section { padding: 22px 0; border-bottom: 1px solid var(--border); }
.long-sections section:last-child { border-bottom: 0; }
.long-sections h2 { margin: 0 0 10px; font-size: 21px; }
.long-sections p { margin: 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.gallery-card { padding: 22px; border: 1px solid var(--border); border-radius: 12px; background: #fffdf8; }
.gallery-card h2 { margin: 0 0 10px; font-size: 20px; }
.magazine-flow section:nth-child(even) { margin-left: 7%; }
.magazine-flow section:nth-child(odd) { margin-right: 7%; }
.stage-index { counter-reset: stage; }
.stage-index section { position: relative; padding-left: 78px; }
.stage-index section::before { counter-increment: stage; content: counter(stage, decimal-leading-zero); position: absolute; left: 0; top: 20px; color: var(--gold-deep); font-size: 28px; font-weight: 850; }
.program-list { border-top: 1px solid var(--border); }
.program-row { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.program-row strong { color: var(--title); }
.step-line { display: grid; gap: 14px; }
.step-item { display: grid; grid-template-columns: 66px 1fr; gap: 18px; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: #fffdf8; }
.step-item .step-no { font-size: 26px; font-weight: 850; color: var(--gold-deep); }
.policy-list { display: grid; gap: 18px; }
.policy-item { padding: 22px; border-top: 1px solid var(--border); background: linear-gradient(90deg,rgba(248,231,184,.42),transparent 70%); }
.policy-item h2 { margin: 0 0 10px; font-size: 20px; }

.home-hero .hero-media { width: 100%; }
.home-cover { max-height: 320px; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow); }
.home-cover.media-slot { min-height: 300px; }
.home-title-copy { margin-top: 20px; max-width: 820px; }
.home-title-copy h1 { margin-top: 5px; }
.home-title-copy .lead { margin-top: 14px; }
.sign-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.sign-card { min-height: 160px; padding: 20px; border-radius: 12px; border: 1px solid var(--border); background: #fffdf8; }
.sign-card:nth-child(2n) { border-top: 4px solid var(--gold-deep); }
.sign-card:nth-child(2n+1) { border-top: 4px solid var(--gold-warm); }
.sign-card h2 { font-size: 18px; margin: 0 0 8px; }
.sign-card p { margin: 0; }
.home-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: center; }
.home-number-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.home-number-list article { padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: #fffdf8; }
.home-number-list strong { color: var(--gold-deep); display: block; margin-bottom: 8px; }
.three-board { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.board { background: #fffdf8; border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.board .content-image, .board .media-slot { min-height: 180px; max-height: 220px; margin-bottom: 16px; box-shadow: none; }
.board h2 { margin: 0 0 8px; font-size: 20px; }
.board p { margin: 0; }
.status-table { display: grid; gap: 10px; }
.status-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 14px 16px; background: #fffdf8; border: 1px solid var(--border); border-radius: 10px; }
.app-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; align-items: center; padding: 26px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px; }
.app-icon { width: 64px; height: 64px; object-fit: cover; border-radius: 14px; margin-bottom: 14px; }
.app-icon.media-slot { min-height: 64px; width: 64px; box-shadow: none; }
.home-long { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.home-long article { padding: 24px; background: #fffdf8; border: 1px solid var(--border); border-radius: 12px; }
.home-long article h2 { margin-top: 0; font-size: 22px; }
.home-long article p { margin-bottom: 0; }

.site-footer { background: var(--footer); color: #FFF6E4; border-top: 1px solid rgba(232,197,71,.28); padding: 42px 0 76px; }
.footer-brand-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid rgba(232,197,71,.18); }
.footer-brand-mark { display: flex; align-items: center; gap: 14px; }
.footer-logo { max-height: 34px; width: auto; }
.footer-brand-mark strong { color: #FFF6E4; }
.footer-brand-mark span { color: #F8E7B8; font-size: 13px; letter-spacing: .12em; }
.back-top { color: #F8E7B8; text-decoration: underline; text-underline-offset: 4px; }
.footer-groups { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; padding: 28px 0; }
.footer-groups h2 { color: #FFF6E4; margin: 0 0 12px; font-size: 15px; }
.footer-groups a { display: block; min-height: 36px; color: #F8E7B8; font-size: 14px; }
.footer-note { margin: 0; color: #E7D8B4; max-width: 980px; }
.copyright { margin: 14px 0 0; color: #CDBD98; font-size: 13px; }

.overlay { position: fixed; inset: 0; z-index: 1090; background: rgba(26,21,8,.42); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.field-book { position: fixed; z-index: 1100; top: 92px; left: 0; right: 0; max-height: calc(100vh - 92px); overflow-y: auto; background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); transform: translateY(-18px); opacity: 0; visibility: hidden; pointer-events: none; transition: .2s ease; }
.field-book.is-open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
.field-book-inner { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 22px 0 30px; }
.field-book-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.field-book-brand { display: flex; align-items: center; gap: 14px; }
.field-book-brand img { max-height: 34px; width: auto; }
.field-book-brand div { display: grid; }
.field-book-brand span { color: var(--muted); font-size: 12px; letter-spacing: .1em; }
.panel-close { min-height: 44px; min-width: 70px; border: 1px solid var(--border); border-radius: 10px; color: var(--title); background: #fffdf8; cursor: pointer; }
.field-book-groups { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; padding-top: 20px; }
.field-book-groups h2 { margin: 0 0 8px; font-size: 16px; color: var(--gold-deep); }
.field-book-groups a { display: block; padding: 11px 0; border-bottom: 1px solid var(--border); }
.field-book-groups strong { display: block; color: var(--title); }
.field-book-groups span { display: block; color: var(--muted); font-size: 13px; line-height: 1.55; margin-top: 3px; }
.search-layer { position: fixed; z-index: 1110; left: 0; right: 0; top: 92px; opacity: 0; visibility: hidden; pointer-events: none; transition: .2s ease; }
.search-layer.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.search-card { width: min(760px, calc(100% - 40px)); margin: 0 auto; background: var(--bg); border: 1px solid var(--border); border-radius: 0; box-shadow: var(--shadow); padding: 24px; }
.search-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.search-card label { display: block; margin: 18px 0 8px; color: var(--muted); }
.search-card input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid rgba(184,134,11,.38); background: #fffdf8; color: var(--title); border-radius: 8px; }
.search-presets { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 16px; }
.search-presets a { min-height: 44px; display: flex; align-items: center; padding: 10px 12px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px; font-weight: 700; }
.search-note { color: var(--muted); margin-bottom: 0; }
.mobile-bottom-nav { display: none; }

@media (max-width: 980px) {
    .card-grid { grid-template-columns: repeat(2,1fr); }
    .hero-grid, .home-split, .app-panel, .article-flow { grid-template-columns: 1fr; }
    .article-flow aside { position: static; }
    .field-book-groups { grid-template-columns: repeat(2,1fr); }
    .three-board { grid-template-columns: 1fr; }
    .home-long { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .top-shell, .bar-shell, .footer-shell, .content-shell, .home-shell, .field-book-inner { width: min(100% - 32px, var(--max)); }
    .field-tabs { display: none; }
    .site-main { padding-top: 92px; }
    .bar-shell { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 8px; }
    .brand-lockup { min-width: 0; overflow: hidden; }
    .site-logo { max-width: 125px; max-height: 34px; }
    .brand-text { font-size: 18px; white-space: nowrap; }
    .menu-trigger { min-width: 70px; padding: 8px 12px; }
    .entry-link { padding: 9px 12px; white-space: nowrap; }
    .page-hero, .home-hero { padding-top: 24px; }
    .lead { font-size: 16px; }
    .card-grid, .sign-grid, .gallery-grid, .home-number-list { grid-template-columns: 1fr; }
    .field-book { top: 92px; max-height: calc(100vh - 92px); }
    .field-book-groups { grid-template-columns: 1fr; }
    .field-book-groups section { padding-bottom: 10px; border-bottom: 1px solid var(--border); }
    .search-layer { inset: 0; top: 0; background: var(--bg); overflow-y: auto; }
    .search-card { width: 100%; min-height: 100vh; margin: 0; border: 0; box-shadow: none; padding: max(18px, env(safe-area-inset-top)) 16px calc(76px + env(safe-area-inset-bottom)); }
    .search-presets { grid-template-columns: 1fr; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
    .program-row { grid-template-columns: 1fr; gap: 6px; }
    .magazine-flow section:nth-child(n) { margin-left: 0; margin-right: 0; }
    .stage-index section { padding-left: 56px; }
    .stage-index section::before { font-size: 22px; }
    .mobile-bottom-nav { position: fixed; z-index: 980; left: 0; right: 0; bottom: 0; min-height: calc(50px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5,1fr); background: rgba(255,251,243,.98); border-top: 1px solid var(--border); }
    .mobile-bottom-nav a { min-height: 50px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
    .mobile-bottom-nav a.is-current { background: var(--gold-warm); color: var(--title); font-weight: 800; }
    .site-footer { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
    .footer-groups { grid-template-columns: repeat(2,1fr); }
    .footer-brand-row { align-items: flex-start; }
    .hero-actions { display: grid; grid-template-columns: 1fr; }
    .hero-actions a { width: 100%; }
}
@media (max-width: 420px) {
    .gold-brand { max-width: 245px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .footer-groups { grid-template-columns: 1fr; }
    .footer-brand-row { flex-direction: column; }
    .status-row { grid-template-columns: 1fr; }
}
