:root {
    --paper: #F6F1E8;
    --paper-deep: #EBE4D6;
    --content: #FFFBF4;
    --sand: #E8E0D2;
    --title: #0E2A4A;
    --text: #2A3B4A;
    --muted: #5C6B78;
    --quiet: #8A8074;
    --blue: #12324F;
    --midnight: #0A1E33;
    --gold: #C4A574;
    --green: #6A9A8B;
    --orange: #C17B5A;
    --border: rgba(18,50,79,0.16);
    --gold-border: rgba(196,165,116,0.45);
    --shadow: 0 16px 36px rgba(10,30,51,0.10);
    --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif; font-size: 16px; line-height: 1.75; overflow-x: hidden; }
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.shell { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.site-main { min-height: 60vh; }
.tide-line, .port-bar, .stack-strip { position: fixed; left: 0; right: 0; z-index: 80; }
.tide-line { top: 0; height: 22px; background: var(--midnight); color: var(--paper); font-size: 12px; }
.tide-line-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; }
.plain-action { min-width: 44px; height: 22px; padding: 0 4px; background: transparent; border: 0; color: var(--paper); }
.plain-action:focus-visible, .manifest-button:focus-visible, .icon-close:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(196,165,116,.7); outline-offset: 3px; }
.port-bar { top: 22px; height: 64px; background: var(--paper); border-bottom: 1px solid var(--border); }
.port-bar-inner { height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.brand-link { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; }
.brand-logo, .drawer-logo, .footer-logo { width: auto; object-fit: contain; object-position: left center; }
.brand-logo { height: 34px; max-width: 190px; }
.brand-text { font-size: 24px; font-weight: 800; color: var(--title); letter-spacing: .06em; }
.manifest-button { min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--gold-border); background: var(--content); color: var(--title); font-weight: 700; }
.app-link { justify-self: end; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; background: linear-gradient(135deg,#1A4A72 0%,#12324F 55%,#0A1E33 100%); color: var(--paper); font-weight: 700; }
.stack-strip { top: 86px; height: 44px; background: var(--sand); border-bottom: 1px solid var(--gold-border); }
.stack-strip-inner { height: 44px; display: flex; align-items: center; justify-content: flex-start; gap: 8px; overflow: hidden; }
.stack-strip a { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 8px; color: var(--title); white-space: nowrap; }
.stack-strip a:hover { background: rgba(196,165,116,.18); }
.stack-strip a.is-active { background: var(--blue); color: var(--paper); }
.header-spacer { height: 130px; }
.section-block { padding: 54px 0; }
.alt-bg { background: var(--paper-deep); }
.eyebrow { display: inline-block; margin-bottom: 8px; color: var(--orange); font-weight: 800; letter-spacing: .08em; font-size: 13px; }
h1,h2,h3 { color: var(--title); line-height: 1.25; margin-top: 0; }
h1 { font-size: clamp(28px, 4vw, 32px); margin-bottom: 18px; }
h2 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 14px; }
h3 { font-size: 20px; margin-bottom: 10px; }
p { margin-top: 0; margin-bottom: 16px; }
.hero-media { max-height: 300px; }
.media-slot { width: 100%; border-radius: var(--radius); background: var(--content); border: 1px solid var(--border); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.media-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.media-slot.no-image { background: linear-gradient(135deg,var(--midnight),var(--blue)); min-height: 210px; }
.media-fallback { width: 100%; height: 100%; min-height: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--paper); padding: 24px; }
.media-fallback strong { font-size: 28px; letter-spacing: .08em; }
.media-fallback span { font-size: 12px; margin-top: 8px; letter-spacing: .18em; opacity: .78; }
.hero-media { aspect-ratio: 16 / 6; background: var(--midnight); }
.hero-media img { max-height: 300px; }
.hero-copy { padding: 28px 0 0; max-width: 860px; }
.hero-copy p { font-size: 17px; color: var(--muted); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 10px; font-weight: 800; }
.btn-primary { color: var(--paper); background: linear-gradient(135deg,#1A4A72 0%,#12324F 55%,#0A1E33 100%); border: 1px solid var(--blue); }
.btn-secondary { background: var(--content); color: var(--title); border: 1px solid var(--gold); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(10,30,51,.12); }
.section-heading { max-width: 780px; margin-bottom: 26px; }
.section-heading p { color: var(--muted); }
.ticket-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.ticket-card { background: var(--content); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: 0 8px 24px rgba(10,30,51,.05); }
.card-media { height: 200px; margin-bottom: 18px; }
.ticket-card p { color: var(--muted); font-size: 15px; }
.ticket-card > a, .text-link, .info-panel a { color: var(--blue); font-weight: 800; display: inline-flex; min-height: 44px; align-items: center; }
.ticket-card > a::after, .text-link::after, .info-panel a::after { content: " →"; margin-left: 4px; }
.split-section { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: 42px; align-items: center; }
.feature-media { min-height: 320px; max-height: 400px; }
.number-list { display: grid; gap: 10px; margin-top: 20px; }
.number-list a { display: grid; grid-template-columns: 54px 1fr; align-items: center; min-height: 62px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--content); }
.number-list b, .big-number-grid b, .step-list b, .section-index { color: var(--gold); font-size: 26px; line-height: 1; }
.number-list span { color: var(--muted); }
.number-list strong { display: block; color: var(--title); }
.vertical-notes { display: grid; gap: 12px; margin-top: 22px; }
.vertical-notes > div { padding: 16px 18px; background: var(--content); border-left: 4px solid var(--green); border-radius: 0 10px 10px 0; }
.vertical-notes strong { color: var(--title); }
.vertical-notes p { margin: 5px 0 0; color: var(--muted); }
.big-number-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.big-number-grid > div { padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--content); }
.big-number-grid b { display: block; margin-bottom: 8px; font-size: 34px; }
.big-number-grid strong { color: var(--title); }
.big-number-grid p { color: var(--muted); margin: 5px 0 0; }
.wide-media { min-height: 240px; max-height: 340px; margin-bottom: 22px; }
.status-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.status-grid article { background: var(--content); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.status { display: inline-flex; min-height: 32px; align-items: center; padding: 0 10px; border-radius: 8px; color: var(--title); font-weight: 800; margin-bottom: 12px; }
.status.done { background: rgba(106,154,139,.22); border: 1px solid rgba(106,154,139,.5); }
.status.making { background: rgba(196,165,116,.24); border: 1px solid rgba(196,165,116,.55); }
.status.sorting { background: rgba(193,123,90,.14); border: 1px solid rgba(193,123,90,.35); }
.status.pending { background: var(--sand); border: 1px solid var(--border); }
.step-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.step-list li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.step-list strong { color: var(--title); }
.step-list p { margin: 3px 0 0; color: var(--muted); }
.quote-note { padding: 18px 20px; margin: 0 0 14px; background: var(--content); border: 1px solid var(--gold-border); border-radius: 12px; }
.quote-note p { margin: 0; }
.app-grid { display: grid; grid-template-columns: minmax(260px,.7fr) minmax(0,1.3fr); gap: 50px; align-items: center; }
.app-media { min-height: 360px; max-height: 420px; }
.app-art { max-width: 430px; margin: 0 auto; width: 100%; }
.app-title-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.app-icon { width: 60px; height: 60px; object-fit: contain; border-radius: 14px; background: var(--content); border: 1px solid var(--border); padding: 5px; flex: 0 0 auto; }
.app-icon.large { width: 72px; height: 72px; }
.app-title-row h2, .app-title-row h1 { margin-bottom: 0; }
.trio-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.info-panel { background: var(--content); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.info-panel p { color: var(--muted); }
.info-panel a { margin-right: 14px; }
.page-hero { padding: 44px 0; background: var(--paper-deep); border-bottom: 1px solid var(--border); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(300px,.88fr); gap: 40px; align-items: center; }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 17px; }
.page-media { min-height: 260px; max-height: 320px; }
.content-stack { display: grid; gap: 14px; }
.content-section { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 16px; padding: 24px; background: var(--content); border: 1px solid var(--border); border-radius: var(--radius); }
.content-section h2 { font-size: 22px; margin-bottom: 10px; }
.content-section p { margin: 0; color: var(--text); }
.section-index { padding-top: 4px; font-weight: 800; }
.app-product-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(280px,.8fr); gap: 46px; align-items: center; }
.page-app-media { max-width: 430px; margin: 0 auto; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: var(--content); border: 1px solid var(--border); border-radius: 12px; padding: 0 18px; }
.faq-list summary { list-style: none; cursor: pointer; color: var(--title); font-weight: 800; min-height: 58px; display: flex; align-items: center; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; margin-left: auto; color: var(--gold); font-size: 22px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 0 18px; margin: 0; color: var(--muted); }
.site-footer { background: var(--midnight); color: var(--paper); padding: 44px 0 calc(24px + env(safe-area-inset-bottom)); }
.footer-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid rgba(246,241,232,.18); }
.footer-brand { display: flex; align-items: center; gap: 12px; min-width: 180px; }
.footer-logo { height: 32px; max-width: 150px; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand span { font-size: 11px; letter-spacing: .12em; opacity: .72; }
.footer-brand-row p { max-width: 720px; margin: 0; color: rgba(246,241,232,.78); }
.footer-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; padding: 30px 0; }
.footer-grid h2 { color: var(--paper); font-size: 16px; margin-bottom: 12px; }
.footer-grid a { display: block; color: rgba(246,241,232,.78); min-height: 34px; }
.footer-grid a:hover { color: var(--paper); }
.footer-bottom { padding-top: 18px; border-top: 1px solid rgba(246,241,232,.18); color: rgba(246,241,232,.68); font-size: 13px; }
.page-overlay { position: fixed; inset: 0; background: rgba(10,30,51,.46); z-index: 110; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.page-overlay.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.manifest-drawer { position: fixed; z-index: 120; top: 0; right: 0; width: min(400px,86vw); height: 100dvh; background: var(--content); color: var(--text); transform: translateX(102%); visibility: hidden; pointer-events: none; box-shadow: -16px 0 40px rgba(10,30,51,.18); transition: transform .24s ease, visibility .24s ease; display: flex; flex-direction: column; }
.manifest-drawer.is-open { 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: 12px 18px; border-bottom: 1px solid var(--border); }
.drawer-brand { display: flex; align-items: center; gap: 10px; color: var(--title); }
.drawer-logo { height: 30px; max-width: 150px; }
.icon-close { min-height: 44px; padding: 0 12px; border-radius: 9px; background: var(--paper); border: 1px solid var(--border); color: var(--title); }
.drawer-scroll { overflow-y: auto; padding: 16px 18px 28px; }
.drawer-group { margin-bottom: 22px; }
.drawer-group h2 { font-size: 14px; color: var(--orange); margin-bottom: 8px; }
.drawer-group a { display: block; padding: 11px 12px; border-radius: 10px; }
.drawer-group a:hover { background: var(--paper); }
.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; z-index: 125; top: 86px; left: 0; right: 0; visibility: hidden; pointer-events: none; opacity: 0; transform: translateY(-8px); transition: .2s ease; }
.search-layer.is-open { visibility: visible; pointer-events: auto; opacity: 1; transform: translateY(0); }
.search-card { width: min(720px,calc(100% - 32px)); margin: 12px auto 0; background: var(--content); border: 1px solid var(--gold-border); box-shadow: var(--shadow); border-radius: 14px; padding: 18px; }
.search-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: var(--title); }
.search-card label { display: block; margin-bottom: 8px; color: var(--muted); }
.search-card input { width: 100%; min-height: 48px; border: 1px solid var(--border); border-radius: 10px; background: var(--paper); color: var(--text); padding: 0 13px; }
.search-presets { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.search-presets a { min-height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 9px; color: var(--title); background: var(--paper); font-weight: 700; }
.mobile-bottom-nav { display: none; }
@media (max-width: 920px) {
    .ticket-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .status-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .split-section, .app-grid, .page-hero-grid, .app-product-grid { grid-template-columns: 1fr; gap: 26px; }
    .reverse-mobile > :first-child { order: 2; }
    .reverse-mobile > :last-child { order: 1; }
    .feature-media, .page-media { min-height: 250px; }
    .trio-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .stack-strip { display: none; }
    .header-spacer { height: 86px; }
    .port-bar-inner { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 6px; }
    .brand-logo { height: 30px; max-width: 120px; }
    .brand-text { font-size: 21px; }
    .manifest-button { padding: 0 10px; }
    .app-link { padding: 0 10px; font-size: 14px; }
    .hero-media { aspect-ratio: 16 / 9; min-height: 180px; }
    .section-block { padding: 40px 0; }
    .ticket-grid { grid-template-columns: 1fr; }
    .card-media { height: 210px; }
    .big-number-grid, .status-grid { grid-template-columns: 1fr; }
    .content-section { grid-template-columns: 1fr; gap: 8px; padding: 20px; }
    .section-index { font-size: 22px; }
    .footer-brand-row { align-items: flex-start; flex-direction: column; }
    .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .search-layer { top: 86px; }
    .search-card { width: calc(100% - 24px); margin-top: 8px; }
    .search-presets { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .site-footer { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
    .mobile-bottom-nav { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; min-height: calc(50px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--content); border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); 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; font-size: 13px; color: var(--title); }
    .mobile-bottom-nav a.is-active { background: var(--blue); color: var(--paper); }
}
@media (max-width: 420px) {
    .shell { width: min(1200px, calc(100% - 32px)); }
    .manifest-button, .app-link { font-size: 13px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .search-presets { grid-template-columns: 1fr 1fr; }
}
