:root {
    --cream: #F6F1E8;
    --sand: #EBE4D6;
    --paper: #FFFBF4;
    --soft: #E8E0D2;
    --title: #0E2A4A;
    --text: #2A3B4A;
    --muted: #5C6B78;
    --quiet: #8A8074;
    --blue: #12324F;
    --midnight: #0A1E33;
    --copper: #C4A574;
    --mist: #6A9A8B;
    --terra: #C17B5A;
    --border: rgba(18,50,79,0.16);
    --accent-border: rgba(196,165,116,0.45);
    --shadow: 0 16px 36px rgba(10,30,51,0.10);
    --radius: 14px;
    --header-h: 130px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--cream); }
body { margin: 0; color: var(--text); background: var(--cream); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif; font-size: 16px; line-height: 1.8; overflow-x: hidden; padding-top: var(--header-h); }
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid rgba(196,165,116,.75); outline-offset: 3px; }
.content-shell, .header-shell { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 70; box-shadow: 0 3px 12px rgba(10,30,51,.04); }
.tide-line { height: 22px; background: var(--midnight); color: var(--cream); font-size: 12px; line-height: 22px; }
.tide-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.tide-search { height: 22px; border: 0; background: transparent; color: var(--cream); padding: 0 2px 0 12px; }
.harbor-bar { height: 64px; background: var(--cream); border-bottom: 1px solid var(--border); }
.harbor-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 100%; gap: 16px; }
.brand-link { justify-self: start; display: flex; align-items: center; min-height: 44px; }
.brand-logo, .drawer-logo, .footer-logo { width: auto; max-width: 150px; height: 34px; object-fit: contain; object-position: left center; }
.brand-text-logo { display: inline-flex; align-items: center; height: 34px; color: var(--title); font-size: 24px; font-weight: 800; letter-spacing: .03em; }
.manifest-button, .app-entry, .primary-button, .secondary-button { min-height: 44px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; font-weight: 700; }
.manifest-button { border: 1px solid var(--accent-border); background: var(--paper); color: var(--title); min-width: 112px; }
.app-entry { justify-self: end; color: var(--cream); background: linear-gradient(135deg,#1A4A72 0%,#12324F 55%,#0A1E33 100%); min-width: 100px; }
.stack-strip { height: 44px; background: var(--soft); border-bottom: 1px solid var(--accent-border); }
.stack-inner { height: 100%; display: flex; align-items: center; gap: 4px; overflow: hidden; }
.stack-inner a { min-height: 34px; padding: 4px 13px; display: inline-flex; align-items: center; border-radius: 8px; color: var(--title); font-size: 14px; white-space: nowrap; }
.stack-inner a:hover { background: rgba(18,50,79,.08); }
.stack-inner a.is-current { background: var(--blue); color: var(--cream); }
.screen-mask { position: fixed; inset: 0; z-index: 79; background: rgba(10,30,51,.45); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .22s ease, visibility .22s ease; }
.screen-mask.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.manifest-drawer { position: fixed; z-index: 90; top: 0; right: 0; width: min(410px, 86vw); height: 100dvh; background: var(--paper); box-shadow: -20px 0 44px rgba(10,30,51,.18); transform: translateX(105%); visibility: hidden; pointer-events: none; transition: transform .25s ease, visibility .25s ease; overflow-y: auto; overscroll-behavior: contain; }
.manifest-drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { position: sticky; top: 0; z-index: 2; min-height: 74px; background: rgba(255,251,244,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.drawer-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.drawer-brand span, .footer-brand span { display: flex; flex-direction: column; line-height: 1.2; }
.drawer-brand strong, .footer-brand strong { color: var(--title); }
.drawer-brand small, .footer-brand small { color: var(--muted); font-size: 11px; margin-top: 4px; letter-spacing: .12em; }
.drawer-close, .search-close { min-height: 44px; border: 1px solid var(--border); background: var(--cream); color: var(--title); border-radius: 10px; padding: 8px 12px; }
.drawer-groups { padding: 6px 18px 28px; }
.drawer-groups section { padding: 16px 0 12px; border-bottom: 1px solid var(--border); }
.drawer-groups section:last-child { border-bottom: 0; }
.drawer-groups h2 { margin: 0 0 8px; color: var(--quiet); font-size: 13px; letter-spacing: .12em; }
.drawer-groups a { display: grid; gap: 2px; padding: 9px 8px; margin: 2px -8px; border-radius: 9px; }
.drawer-groups a:hover { background: var(--sand); }
.drawer-groups strong { color: var(--title); font-size: 15px; }
.drawer-groups span { color: var(--muted); font-size: 13px; line-height: 1.55; }
.search-panel { position: fixed; z-index: 88; left: 0; right: 0; top: 86px; visibility: hidden; pointer-events: none; opacity: 0; transform: translateY(-8px); transition: .2s ease; }
.search-panel.is-open { visibility: visible; pointer-events: auto; opacity: 1; transform: translateY(0); }
.search-card { width: min(760px, calc(100% - 32px)); margin: 0 auto; background: var(--paper); border: 1px solid var(--accent-border); border-radius: 0 0 14px 14px; box-shadow: var(--shadow); padding: 22px; }
.search-head { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; }
.search-head h2 { margin: 2px 0 12px; color: var(--title); font-size: 24px; line-height: 1.3; }
.eyebrow { color: var(--terra); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.search-field { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.search-field input { width: 100%; min-height: 48px; border: 1px solid var(--border); border-radius: 10px; background: var(--cream); color: var(--text); padding: 10px 12px; }
.preset-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.preset-links a { min-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--accent-border); color: var(--title); background: var(--paper); }
.search-note { margin: 12px 0 0; color: var(--quiet); font-size: 13px; }
.site-main { min-height: 60vh; }
.section { padding: 54px 0; }
.section--soft { background: var(--sand); }
.section--paper { background: var(--paper); }
.section--midnight { background: var(--midnight); color: var(--cream); }
.section-header { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 22px; }
.section-header h2 { margin: 0; color: var(--title); font-size: 26px; line-height: 1.35; }
.section-header p { max-width: 640px; margin: 0; color: var(--muted); }
.section--midnight .section-header h2, .section--midnight .section-header p { color: var(--cream); }
.page-hero { padding: 44px 0 32px; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(320px,.85fr); align-items: center; gap: 30px; }
.page-hero h1, .home-copy h1 { color: var(--title); font-size: clamp(28px, 3vw, 32px); line-height: 1.28; margin: 7px 0 14px; }
.page-hero p, .home-copy p { margin: 0; color: var(--muted); }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--terra); font-weight: 800; font-size: 13px; letter-spacing: .08em; }
.kicker::before { content: ''; width: 24px; height: 2px; background: var(--copper); }
.hero-media, .content-media { background: var(--soft); border: 1px solid var(--accent-border); border-radius: var(--radius); min-height: 220px; display: flex; align-items: center; justify-content: center; padding: 16px; overflow: hidden; }
.hero-media img, .content-media img, .ticket-card img, .app-visual img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.hero-media img { max-height: 280px; }
.placeholder-title { color: var(--cream); background: var(--midnight); width: 100%; min-height: 220px; border-radius: 10px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 28px; font-size: 28px; font-weight: 800; }
.home-cover { padding: 28px 0 44px; }
.home-banner-slot { width: 100%; max-height: 300px; min-height: 220px; background: var(--midnight); border-radius: 14px; border: 1px solid var(--accent-border); display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 14px; }
.home-banner-slot img { width: 100%; max-height: 272px; object-fit: contain; object-position: center; }
.home-banner-fallback { color: var(--cream); text-align: center; padding: 32px; }
.home-banner-fallback strong { display: block; font-size: 34px; letter-spacing: .05em; }
.home-banner-fallback span { display: block; margin-top: 6px; color: #d8c8ad; }
.home-copy { max-width: 860px; padding-top: 26px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.primary-button { color: var(--cream); background: linear-gradient(135deg,#1A4A72 0%,#12324F 55%,#0A1E33 100%); border: 1px solid transparent; }
.secondary-button { color: var(--title); background: var(--cream); border: 1px solid var(--copper); }
.primary-button:hover, .app-entry:hover { filter: brightness(1.06); }
.secondary-button:hover, .manifest-button:hover { background: var(--sand); }
.ticket-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ticket-card, .status-card, .content-card, .number-card, .list-card, .faq-item, .article-panel { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 10px 24px rgba(10,30,51,.05); }
.ticket-card { padding: 14px; display: flex; flex-direction: column; min-width: 0; }
.ticket-card .media-slot { height: 195px; background: var(--soft); border-radius: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 14px; }
.ticket-card h3, .content-card h3, .status-card h3, .list-card h3, .article-panel h3 { color: var(--title); margin: 0 0 8px; font-size: 19px; }
.ticket-card p, .content-card p, .status-card p, .number-card p, .list-card p, .article-panel p { margin: 0; color: var(--muted); }
.ticket-card .text-link, .text-link { margin-top: auto; padding-top: 14px; color: var(--blue); font-weight: 800; }
.split-layout { display: grid; grid-template-columns: minmax(280px,.8fr) minmax(0,1.2fr); gap: 28px; align-items: start; }
.content-media { min-height: 260px; }
.content-media img { max-height: 340px; }
.number-list { display: grid; gap: 12px; }
.number-item { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.number-item:last-child { border-bottom: 0; }
.number-item .num, .number-card .num { color: var(--copper); font-size: 30px; font-weight: 800; line-height: 1; }
.number-item h3 { margin: 0 0 4px; color: var(--title); font-size: 18px; }
.number-item p { margin: 0; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.content-card, .status-card, .number-card, .list-card, .article-panel { padding: 20px; }
.content-card--mist { border-top: 4px solid var(--mist); }
.content-card--terra { border-top: 4px solid var(--terra); }
.content-card--copper { border-top: 4px solid var(--copper); }
.status-card { min-height: 170px; }
.status-dot { width: 12px; height: 12px; border-radius: 3px; background: var(--mist); margin-bottom: 16px; }
.status-card:nth-child(2) .status-dot { background: var(--terra); }
.status-card:nth-child(3) .status-dot { background: var(--copper); }
.status-card:nth-child(4) .status-dot { background: var(--blue); }
.step-line { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: step; }
.step { position: relative; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 16px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; color: var(--copper); font-size: 26px; font-weight: 800; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; color: var(--title); font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }
.quote-note { border-left: 4px solid var(--copper); padding: 6px 0 6px 18px; margin: 18px 0; color: var(--text); }
.quote-note small { display: block; color: var(--terra); font-weight: 800; margin-top: 8px; }
.app-layout { display: grid; grid-template-columns: minmax(240px,.7fr) minmax(0,1.3fr); gap: 32px; align-items: center; }
.app-visual { background: var(--soft); border: 1px solid var(--accent-border); border-radius: var(--radius); min-height: 360px; padding: 16px; display: flex; align-items: center; justify-content: center; }
.app-visual img { max-height: 420px; width: auto; }
.app-icon { width: 68px; height: 68px; border-radius: 14px; object-fit: contain; background: var(--paper); border: 1px solid var(--border); padding: 4px; margin-bottom: 14px; }
.page-copy { max-width: 900px; }
.page-copy p { margin: 0 0 18px; }
.page-copy h2 { color: var(--title); font-size: 24px; margin: 34px 0 10px; }
.page-copy h3 { color: var(--title); font-size: 19px; margin: 24px 0 8px; }
.index-row { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--border); }
.index-row:last-child { border-bottom: 0; }
.index-row .index-no { color: var(--copper); font-size: 24px; font-weight: 800; }
.index-row h3 { margin: 0 0 3px; color: var(--title); }
.index-row p { margin: 0; color: var(--muted); }
.index-row a { color: var(--blue); font-weight: 800; white-space: nowrap; }
.article-stack { display: grid; gap: 16px; }
.article-panel h2 { margin: 0 0 10px; color: var(--title); font-size: 22px; }
.article-panel p + p { margin-top: 12px; }
.policy-list { display: grid; gap: 14px; }
.policy-item { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.policy-item h2 { margin: 0 0 8px; color: var(--title); font-size: 21px; }
.policy-item p { margin: 0; }
.faq-list { display: grid; gap: 12px; }
.faq-item { padding: 20px; }
.faq-item h2 { margin: 0 0 8px; color: var(--title); font-size: 19px; }
.faq-item p { margin: 0; color: var(--text); }
.info-banner { background: var(--midnight); color: var(--cream); border-radius: var(--radius); padding: 24px; }
.info-banner h2 { margin: 0 0 8px; color: var(--cream); }
.info-banner p { margin: 0; color: #e6dfd3; }
.site-footer { background: var(--midnight); color: var(--cream); padding: 46px 0 20px; }
.footer-top { display: grid; grid-template-columns: 1.1fr 1.9fr; gap: 44px; }
.footer-brand { display: flex; align-items: center; gap: 10px; width: fit-content; }
.footer-brand .footer-logo { filter: brightness(0) invert(1); }
.footer-brand .brand-text-logo, .footer-brand strong { color: var(--cream); }
.footer-brand small { color: #c7baa8; }
.footer-brand-block p { color: #d8d0c4; max-width: 460px; margin: 18px 0 0; }
.footer-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.footer-groups h2 { color: #d6b984; margin: 0 0 10px; font-size: 14px; letter-spacing: .08em; }
.footer-groups a { display: block; color: #f2eadf; padding: 3px 0; font-size: 14px; }
.footer-groups a:hover { text-decoration: underline; text-decoration-color: var(--copper); }
.footer-bottom { border-top: 1px solid rgba(246,241,232,.16); margin-top: 32px; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #bfb7aa; font-size: 13px; }
.footer-bottom a { color: var(--cream); }
.mobile-bottom-nav { display: none; }
@media (max-width: 960px) {
    .ticket-grid, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .step-line { grid-template-columns: repeat(2, 1fr); }
    .page-hero-grid, .split-layout, .app-layout { grid-template-columns: 1fr; }
    .hero-media { order: -1; min-height: 200px; }
    .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    :root { --header-h: 86px; }
    body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
    .content-shell, .header-shell { width: calc(100% - 32px); }
    .stack-strip { display: none; }
    .harbor-inner { grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; }
    .brand-logo { max-width: 106px; height: 30px; }
    .brand-text-logo { font-size: 20px; }
    .manifest-button { min-width: 86px; padding: 8px 10px; }
    .app-entry { min-width: 74px; padding: 8px 10px; }
    .search-panel { top: 86px; }
    .search-card { width: calc(100% - 24px); border-radius: 0 0 12px 12px; padding: 16px; }
    .preset-links { grid-template-columns: repeat(2, 1fr); }
    .home-cover { padding-top: 20px; }
    .home-banner-slot { min-height: 190px; max-height: 300px; }
    .home-banner-fallback strong { font-size: 28px; }
    .section { padding: 40px 0; }
    .section-header { align-items: flex-start; flex-direction: column; gap: 8px; }
    .ticket-grid, .grid-2, .grid-3, .grid-4, .step-line { grid-template-columns: 1fr; }
    .ticket-card .media-slot { height: 190px; }
    .page-hero { padding-top: 30px; }
    .index-row { grid-template-columns: 42px minmax(0,1fr); }
    .index-row a { grid-column: 2; justify-self: start; }
    .footer-groups { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .mobile-bottom-nav { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); min-height: calc(50px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--paper); border-top: 1px solid var(--border); box-shadow: 0 -8px 22px 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.is-current { background: var(--blue); color: var(--cream); }
}
@media (max-width: 420px) {
    .harbor-inner { gap: 6px; }
    .manifest-button, .app-entry { font-size: 13px; }
    .brand-logo { max-width: 88px; }
    .preset-links { grid-template-columns: 1fr; }
    .footer-groups { grid-template-columns: 1fr 1fr; gap: 18px 10px; }
}
