:root {
    --bg: #F6F1E8;
    --bg-deep: #EBE4D6;
    --card: #FFFBF4;
    --card-alt: #E8E0D2;
    --title: #0E2A4A;
    --text: #2A3B4A;
    --muted: #5C6B78;
    --soft: #8A8074;
    --blue: #12324F;
    --midnight: #0A1E33;
    --copper: #C4A574;
    --green: #6A9A8B;
    --orange: #C17B5A;
    --border: rgba(18,50,79,.16);
    --accent-border: rgba(196,165,116,.45);
    --shadow: 0 16px 36px rgba(10,30,51,.10);
    --radius: 14px;
    --top-h: 130px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.75 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(196,165,116,.75); outline-offset: 3px; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.shell { width: min(1200px, calc(100% - 32px)); margin-inline: auto; }
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; }
.tide-line { height: 22px; background: var(--midnight); color: var(--bg); font-size: 12px; }
.tide-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plain-button { border: 0; background: transparent; color: var(--bg); cursor: pointer; min-height: 22px; padding: 0 4px; }
.harbor-bar { height: 64px; background: var(--bg); border-bottom: 1px solid var(--border); }
.harbor-inner { height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.brand { justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--title); font-weight: 800; }
.brand-image:empty { display:none; }
.brand-logo,.drawer-logo,.footer-logo { height: 34px; width: auto; object-fit: contain; }
.brand-text { white-space: nowrap; }
.manifest-button { min-height: 44px; padding: 8px 18px; border: 1px solid var(--accent-border); border-radius: 10px; background: var(--card); color: var(--title); cursor: pointer; font-weight: 700; }
.app-link { justify-self: end; min-height: 44px; display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 10px; background: linear-gradient(135deg,#1A4A72 0%,#12324F 55%,#0A1E33 100%); color: var(--bg); font-weight: 700; }
.app-link:hover { color: #fff; }
.stack-nav { height: 44px; background: var(--bg-deep); border-bottom: 1px solid var(--accent-border); }
.stack-inner { height: 44px; display: flex; align-items: center; gap: 8px; overflow: hidden; }
.stack-inner a { display: inline-flex; align-items: center; min-height: 30px; padding: 2px 12px; border-radius: 8px; color: var(--title); font-size: 14px; white-space: nowrap; }
.stack-inner a.active { background: var(--blue); color: var(--bg); }
.main-content { padding-top: calc(var(--top-h) + 28px); min-height: 70vh; }
.hero,.section-card,.content-section,.article-card,.notice-card,.status-card,.ticket-card,.topic-card,.clause-card,.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero { padding: 20px; margin-bottom: 26px; }
.hero-media,.image-slot { background: var(--midnight); border-radius: 12px; border: 1px solid var(--accent-border); display: grid; place-items: center; overflow: hidden; }
.hero-media { max-height: 300px; min-height: 210px; }
.hero-media img { width: 100%; max-height: 300px; object-fit: contain; object-position: center; }
.hero-fallback { color: var(--bg); text-align: center; padding: 60px 24px; }
.eyebrow { display: inline-block; margin-top: 18px; color: var(--orange); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
h1,h2,h3 { color: var(--title); line-height: 1.3; margin-top: 0; }
h1 { font-size: clamp(28px, 4vw, 32px); margin: 8px 0 12px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
.lead { font-size: 17px; color: var(--muted); max-width: 860px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 10px; font-weight: 800; }
.btn-primary { background: linear-gradient(135deg,#1A4A72 0%,#12324F 55%,#0A1E33 100%); color: var(--bg); }
.btn-secondary { background: var(--bg); color: var(--title); border: 1px solid var(--accent-border); }
.section-wrap { margin: 26px auto; }
.section-head { display:flex; justify-content:space-between; gap:16px; align-items:end; margin-bottom:14px; }
.section-head p { margin: 0; color: var(--muted); }
.ticket-grid,.card-grid-4,.card-grid-3,.card-grid-2,.step-grid,.footer-grid { display: grid; gap: 16px; }
.ticket-grid,.card-grid-4 { grid-template-columns: repeat(4,1fr); }
.card-grid-3 { grid-template-columns: repeat(3,1fr); }
.card-grid-2 { grid-template-columns: repeat(2,1fr); }
.ticket-card,.topic-card,.article-card,.notice-card,.status-card,.clause-card { padding: 16px; }
.ticket-card img,.topic-card img,.article-card img,.image-slot img { width: 100%; height: 200px; object-fit: contain; object-position:center; background: var(--bg-deep); border-radius: 10px; }
.ticket-card p,.topic-card p,.article-card p { color: var(--muted); }
.numbered-list { list-style:none; padding:0; margin:0; display:grid; gap:12px; }
.numbered-list li { display:grid; grid-template-columns:58px 1fr; gap:14px; align-items:start; padding:14px 0; border-top:1px solid var(--border); }
.numbered-list li:first-child { border-top:0; }
.numbered-list b,.big-number { color: var(--copper); font-size: 28px; line-height:1; }
.content-section { padding: 22px; }
.content-section + .content-section { margin-top: 18px; }
.four-vertical { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.four-vertical article { border-left: 4px solid var(--green); padding: 12px 14px; background: var(--bg); border-radius: 10px; }
.pass-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.pass-grid article { background:var(--card); border:1px solid var(--accent-border); border-radius:12px; padding:18px; }
.status-card strong { display:block; color:var(--title); margin-bottom:6px; }
.status-card .status-dot { display:inline-block; width:10px; height:10px; border-radius:50%; background:var(--green); margin-right:8px; }
.step-grid { grid-template-columns:repeat(5,1fr); counter-reset:steps; }
.step-grid article { position:relative; background:var(--card); border:1px solid var(--border); border-radius:12px; padding:18px 14px; }
.step-grid article::before { counter-increment:steps; content:"0" counter(steps); display:block; color:var(--copper); font-size:24px; font-weight:800; margin-bottom:8px; }
.quote-note { border-left:4px solid var(--orange); padding:14px 16px; background:var(--bg-deep); border-radius:0 10px 10px 0; }
.quote-note strong { display:block; margin-bottom:6px; color:var(--title); }
.app-panel { display:grid; grid-template-columns:minmax(220px, .7fr) 1.3fr; gap:28px; align-items:center; }
.app-visual { min-height:320px; background:var(--bg-deep); border-radius:14px; display:grid; place-items:center; padding:20px; }
.app-visual img { max-height:420px; object-fit:contain; }
.icon-mark img { width:64px; height:64px; object-fit:contain; }
.page-header { margin-bottom:20px; }
.page-header .image-slot { min-height:190px; max-height:240px; margin-bottom:18px; background:var(--bg-deep); }
.page-header .image-slot img { height:220px; object-fit:contain; }
.page-header p { max-width:900px; color:var(--muted); }
.index-list,.directory-list,.clause-list,.help-list { display:grid; gap:14px; }
.index-list article,.directory-list article,.help-list article { background:var(--card); border:1px solid var(--border); border-radius:12px; padding:18px; }
.index-list .meta,.directory-list .meta { font-size:13px; color:var(--soft); }
.content-prose { max-width: 900px; }
.content-prose h2 { margin-top:30px; }
.content-prose h3 { margin-top:22px; }
.content-prose ul { padding-left:20px; }
.content-prose li + li { margin-top:8px; }
.editor-note { margin:18px 0; padding:16px 18px; border:1px solid var(--accent-border); border-radius:12px; background:var(--bg-deep); }
.editor-note strong { color:var(--orange); }
.faq-list { display:grid; gap:14px; }
.faq-item { padding:18px; }
.faq-item h2 { font-size:19px; margin-bottom:8px; }
.faq-item p { margin:0; color:var(--muted); }
.contact-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.contact-grid article { background:var(--card); border:1px solid var(--border); border-radius:12px; padding:20px; }
.site-footer { margin-top:56px; background:var(--midnight); color:var(--bg); padding:38px 0 calc(28px + env(safe-area-inset-bottom)); }
.footer-brand-row { display:flex; justify-content:space-between; gap:30px; align-items:flex-start; padding-bottom:24px; border-bottom:1px solid rgba(246,241,232,.16); }
.footer-brand { display:flex; align-items:center; gap:10px; color:var(--bg); }
.footer-brand:hover { color:#fff; }
.footer-brand strong { font-size:18px; }
.footer-brand em { font-style:normal; color:var(--copper); font-size:12px; }
.footer-brand-row p { max-width:620px; color:rgba(246,241,232,.78); margin:0; }
.footer-grid { grid-template-columns:repeat(4,1fr); padding:26px 0; }
.footer-grid h2 { color:var(--bg); font-size:15px; margin-bottom:10px; }
.footer-grid ul { list-style:none; padding:0; margin:0; display:grid; gap:8px; }
.footer-grid a { color:rgba(246,241,232,.78); }
.footer-grid a:hover { color:#fff; }
.footer-bottom { border-top:1px solid rgba(246,241,232,.12); padding-top:20px; color:rgba(246,241,232,.62); font-size:13px; }
.site-overlay { position:fixed; inset:0; z-index:80; background:rgba(10,30,51,.48); opacity:0; pointer-events:none; transition:opacity .25s ease; }
.site-overlay.show { opacity:1; pointer-events:auto; }
.ui-locked { overflow:hidden; }
.manifest-drawer { position:fixed; top:0; right:0; z-index:90; width:min(420px,86vw); height:100dvh; background:var(--card); box-shadow:-18px 0 50px rgba(10,30,51,.18); transform:translateX(105%); visibility:hidden; pointer-events:none; transition:transform .25s ease,visibility .25s ease; display:flex; flex-direction:column; }
.manifest-drawer.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 18px; border-bottom:1px solid var(--border); }
.drawer-brand { display:flex; align-items:center; gap:9px; color:var(--title); }
.drawer-close,.search-close { min-height:44px; border:1px solid var(--accent-border); border-radius:10px; padding:8px 14px; background:var(--bg); color:var(--title); cursor:pointer; }
.drawer-body { overflow:auto; padding:16px 18px 28px; }
.drawer-group + .drawer-group { margin-top:20px; }
.drawer-group h2 { font-size:14px; color:var(--orange); margin-bottom:8px; }
.drawer-group ul { list-style:none; padding:0; margin:0; display:grid; gap:8px; }
.drawer-group a { display:block; padding:10px 12px; border:1px solid var(--border); border-radius:10px; background:var(--bg); }
.drawer-group strong { display:block; color:var(--title); }
.drawer-group span { display:block; color:var(--muted); font-size:13px; margin-top:2px; }
.search-layer { position:fixed; top:86px; left:50%; z-index:95; width:min(760px,calc(100% - 32px)); transform:translate(-50%,-16px); opacity:0; visibility:hidden; pointer-events:none; transition:.22s ease; }
.search-layer.open { opacity:1; visibility:visible; pointer-events:auto; transform:translate(-50%,0); }
.search-card { background:var(--card); border:1px solid var(--accent-border); border-radius:14px; box-shadow:var(--shadow); padding:18px; }
.search-head { display:flex; justify-content:space-between; gap:16px; align-items:start; }
.search-head small { color:var(--orange); font-weight:800; }
.search-head h2 { font-size:22px; margin:4px 0 0; }
.search-look { margin:16px 0; min-height:48px; border:1px solid var(--border); border-radius:10px; background:var(--bg); display:flex; align-items:center; justify-content:space-between; padding:0 14px; color:var(--soft); }
.search-presets { display:flex; flex-wrap:wrap; gap:10px; }
.search-presets a { min-height:42px; display:inline-flex; align-items:center; padding:8px 12px; border-radius:9px; background:var(--bg-deep); color:var(--title); }
.mobile-bottom-nav { display:none; }
.kicker-row { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.kicker-row span { font-size:13px; padding:4px 9px; border-radius:8px; background:var(--bg-deep); color:var(--title); border:1px solid var(--border); }
.route-table { width:100%; border-collapse:collapse; background:var(--card); border-radius:12px; overflow:hidden; border:1px solid var(--border); }
.route-table th,.route-table td { padding:14px; border-bottom:1px solid var(--border); text-align:left; vertical-align:top; }
.route-table th { color:var(--title); background:var(--bg-deep); }
.route-table tr:last-child td { border-bottom:0; }
@media (max-width: 900px) {
    .ticket-grid,.card-grid-4,.four-vertical,.pass-grid { grid-template-columns:repeat(2,1fr); }
    .card-grid-3,.step-grid { grid-template-columns:repeat(2,1fr); }
    .app-panel { grid-template-columns:1fr; }
    .footer-brand-row { flex-direction:column; }
}
@media (max-width: 700px) {
    :root { --top-h: 86px; }
    .shell { width:min(100% - 32px,1200px); }
    .stack-nav { display:none; }
    .harbor-inner { grid-template-columns:1fr auto 1fr; gap:6px; }
    .brand { max-width:100%; overflow:hidden; }
    .brand-logo { height:30px; }
    .brand-text { font-size:15px; }
    .manifest-button { padding:8px 11px; }
    .app-link { padding:8px 10px; font-size:14px; }
    .main-content { padding-top:calc(var(--top-h) + 22px); padding-bottom:64px; }
    .hero { padding:14px; }
    .hero-media { min-height:170px; }
    .ticket-grid,.card-grid-4,.card-grid-3,.card-grid-2,.four-vertical,.pass-grid,.step-grid,.contact-grid,.footer-grid { grid-template-columns:1fr; }
    .ticket-card img,.topic-card img,.article-card img { height:190px; }
    .section-head { align-items:start; flex-direction:column; }
    .numbered-list li { grid-template-columns:46px 1fr; }
    .footer-grid { gap:22px; }
    .site-footer { padding-bottom:calc(76px + env(safe-area-inset-bottom)); }
    .search-layer { top:94px; width:calc(100% - 24px); }
    .search-card { padding:14px; }
    .mobile-bottom-nav { position:fixed; inset:auto 0 0; z-index:60; display:grid; grid-template-columns:repeat(5,1fr); min-height:50px; padding-bottom:env(safe-area-inset-bottom); background:var(--card); border-top:1px solid var(--border); box-shadow:0 -8px 24px rgba(10,30,51,.08); }
    .mobile-bottom-nav a { min-height:50px; display:flex; align-items:center; justify-content:center; color:var(--title); font-size:13px; }
    .mobile-bottom-nav a.active { background:var(--blue); color:var(--bg); }
    .route-table { display:block; overflow-x:auto; }
}
