:root {
    --bg: #0B1220;
    --bg-deep: #070B14;
    --surface: #141C2E;
    --surface-2: #1C2740;
    --title: #E8F0FF;
    --text: #C9D6EC;
    --muted: #8FA3C4;
    --aux: #6B7F9E;
    --brand: #7BA3E8;
    --bright: #A8C4F0;
    --space: #1A3A6E;
    --line: rgba(123, 163, 232, 0.18);
    --line-strong: rgba(123, 163, 232, 0.46);
    --shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    --radius: 12px;
    --header-h: 122px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.skip-link {
    position: fixed; left: 16px; top: -60px; z-index: 2000;
    background: var(--bright); color: var(--bg-deep); padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { top: 10px; }

.site-header { position: fixed; inset: 0 0 auto 0; z-index: 1000; box-shadow: 0 8px 28px rgba(0,0,0,.22); }
.star-line { height: 22px; background: var(--bg-deep); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--title); }
.star-line-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.plain-button { border: 0; background: transparent; color: var(--title); min-width: 44px; height: 22px; padding: 0 2px; cursor: pointer; }
.orbit-bar { height: 60px; background: var(--bg); border-bottom: 1px solid var(--line); }
.orbit-inner { height: 60px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.brand-link { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; max-width: 190px; }
.brand-media { display: inline-flex; align-items: center; min-height: 28px; }
.brand-logo, .drawer-logo, .footer-logo { height: 28px; width: auto; object-fit: contain; object-position: center; }
.brand-fallback { color: var(--title); font-weight: 700; font-size: 16px; letter-spacing: .04em; }
.box-button, .app-link {
    min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; padding: 0 18px; font-size: 14px; cursor: pointer;
}
.box-button { justify-self: center; border: 1px solid var(--line-strong); background: var(--bg-deep); color: var(--title); }
.app-link { justify-self: end; background: linear-gradient(135deg,#A8C4F0 0%,#7BA3E8 55%,#1A3A6E 100%); color: var(--bg-deep); font-weight: 700; }
.seat-strip { height: 40px; background: var(--space); border-bottom: 1px solid var(--line); }
.seat-inner { height: 40px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.seat-link { min-height: 32px; min-width: 86px; padding: 4px 18px; border-radius: 8px; text-align: center; font-size: 13px; color: var(--title); }
.seat-link.is-active { background: var(--brand); color: var(--bg-deep); font-weight: 700; }

.site-main { padding-top: calc(var(--header-h) + 26px); min-height: 70vh; }
.page-section { padding: 32px 0; }
.page-section.compact { padding: 24px 0; }
.page-hero { padding: 38px 0 24px; }
.eyebrow { margin: 0 0 8px; color: var(--bright); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; color: var(--title); line-height: 1.3; }
h1 { font-size: 24px; margin-bottom: 14px; }
h2 { font-size: 20px; margin-bottom: 12px; }
h3 { font-size: 16px; margin-bottom: 8px; }
p { margin: 0 0 14px; }
.lead { max-width: 840px; font-size: 16px; color: var(--text); }
.muted { color: var(--muted); }
.aux { color: var(--aux); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-head p { margin: 0; color: var(--muted); max-width: 620px; }

.cover-slot, .media-slot, .app-slot {
    width: 100%; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
    display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
}
.cover-slot { height: 260px; }
.media-slot { height: 180px; }
.media-slot.medium { height: 200px; }
.media-gap { margin-bottom: 18px; }
.app-slot { height: min(360px, 72vw); }
.cover-slot img, .media-slot img, .app-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }

.cover-copy { max-width: 840px; margin: 22px auto 0; text-align: center; }
.cover-copy .brand-kicker { color: var(--bright); font-weight: 700; letter-spacing: .08em; margin-bottom: 6px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cover-copy .button-row { justify-content: center; }
.btn { min-height: 42px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 14px; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg,#A8C4F0 0%,#7BA3E8 55%,#1A3A6E 100%); color: var(--bg-deep); font-weight: 700; }
.btn-secondary { background: var(--bg-deep); border: 1px solid var(--line-strong); color: var(--title); }

.card-grid { display: grid; gap: 16px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
    min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: 0 8px 20px rgba(0,0,0,.16);
}
.card .media-slot { margin-bottom: 16px; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--bright); font-weight: 700; }
.number { color: var(--bright); font-size: 13px; letter-spacing: .12em; font-weight: 700; }

.feature-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 22px; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.feature-copy { align-self: center; }
.issue-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin: 16px 0; }
.issue-item { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }

.shelf-list { display: grid; gap: 10px; }
.shelf-row { display: grid; grid-template-columns: 62px 1fr auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.shelf-row .shelf-no { color: var(--bright); font-weight: 700; letter-spacing: .08em; }
.shelf-row h3 { margin: 0 0 3px; }
.shelf-row p { margin: 0; color: var(--muted); }
.shelf-row a { min-height: 44px; display: inline-flex; align-items: center; color: var(--bright); font-weight: 700; }

.big-number-list { display: grid; gap: 12px; }
.big-number-item { display: grid; grid-template-columns: 72px 1fr; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.big-number-item .big-no { font-size: 26px; color: var(--bright); line-height: 1; font-weight: 700; }
.big-number-item p:last-child { margin-bottom: 0; }

.timeline { position: relative; display: grid; gap: 12px; }
.timeline::before { content: ""; position: absolute; left: 17px; top: 10px; bottom: 10px; width: 1px; background: var(--line-strong); }
.timeline-item { position: relative; padding: 16px 16px 16px 48px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.timeline-item::before { content: ""; position: absolute; left: 11px; top: 21px; width: 13px; height: 13px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px var(--bg); }
.status { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--bright); font-size: 12px; }

.note-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.note-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.note-card .note-label { color: var(--bright); font-size: 12px; letter-spacing: .12em; }

.prose { max-width: 900px; }
.prose h2 { margin-top: 30px; }
.prose h3 { margin-top: 20px; }
.prose ul { margin: 8px 0 18px; padding-left: 20px; }
.prose li { margin-bottom: 7px; }

.notice { background: var(--surface-2); border-left: 3px solid var(--brand); border-radius: 0 10px 10px 0; padding: 16px 18px; color: var(--text); }

.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.faq-item h2, .faq-item h3 { margin-bottom: 8px; }
.faq-item p:last-child { margin-bottom: 0; }

.app-panel { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); gap: 22px; align-items: stretch; }
.app-copy { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.app-icon-line { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.app-icon-box { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--bg-deep); border: 1px solid var(--line); overflow: hidden; }
.app-icon-box img { width: 48px; height: 48px; object-fit: contain; }

.site-footer { margin-top: 36px; background: var(--bg-deep); border-top: 1px solid var(--line); color: var(--text); font-size: 13px; padding: 34px 0 calc(24px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 22px; }
.footer-brand-link { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand-link span { display: grid; line-height: 1.25; }
.footer-brand-link strong { color: var(--title); font-size: 15px; }
.footer-brand-link small { color: var(--muted); font-size: 10px; letter-spacing: .1em; }
.footer-brand p { color: var(--muted); max-width: 420px; }
.footer-group { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.footer-group h2 { font-size: 13px; margin-bottom: 3px; }
.footer-group a { min-height: 24px; color: var(--muted); }
.footer-bottom { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; color: var(--aux); }
.footer-bottom a { color: var(--muted); }

.star-drawer {
    position: fixed; z-index: 1300; top: 0; right: 0; width: min(400px, 86vw); height: 100dvh;
    background: var(--bg-deep); border-left: 1px solid var(--line-strong); box-shadow: var(--shadow);
    transform: translateX(102%); visibility: hidden; pointer-events: none; transition: transform .24s ease, visibility .24s ease;
    display: flex; flex-direction: column;
}
.star-drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { height: 66px; flex: 0 0 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.drawer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--title); }
.icon-button { min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--title); cursor: pointer; }
.drawer-scroll { overflow-y: auto; padding: 16px; }
.drawer-section { margin-bottom: 18px; }
.drawer-section h2 { font-size: 13px; color: var(--bright); margin: 0 0 8px; }
.drawer-section a { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.drawer-section strong { color: var(--title); font-size: 14px; }
.drawer-section span { color: var(--muted); font-size: 12px; line-height: 1.5; }

.search-panel {
    position: fixed; z-index: 1250; left: 0; right: 0; top: 82px; 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 { background: var(--bg); border: 1px solid var(--line-strong); border-radius: 0 0 14px 14px; box-shadow: var(--shadow); padding-top: 18px; padding-bottom: 20px; }
.search-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.search-heading h2 { margin-bottom: 0; }
.search-presets { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.search-presets a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--title); }
.search-note { color: var(--muted); margin: 14px 0 0; }
.page-overlay { position: fixed; inset: 0; z-index: 1200; background: rgba(3,6,12,.72); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.page-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

.mobile-bottom { display: none; }

a:hover, button:hover { filter: brightness(1.08); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--bright); outline-offset: 3px; }

@media (max-width: 860px) {
    :root { --header-h: 82px; }
    .seat-strip { display: none; }
    .site-main { padding-top: calc(var(--header-h) + 18px); }
    .card-grid.cols-3, .card-grid.cols-2, .note-grid { grid-template-columns: 1fr; }
    .feature-panel, .app-panel { grid-template-columns: 1fr; }
    .issue-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .footer-brand { grid-column: 1 / -1; }
    .site-footer { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
    .mobile-bottom {
        position: fixed; z-index: 900; left: 0; right: 0; bottom: 0; height: calc(48px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
        background: var(--bg-deep); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr);
    }
    .mobile-bottom a { min-width: 0; height: 48px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); }
    .mobile-bottom a.is-active { background: var(--brand); color: var(--bg-deep); font-weight: 700; }
    .search-panel { top: 0; bottom: 0; background: var(--bg-deep); transform: none; }
    .search-card { width: 100%; height: 100%; border: 0; border-radius: 0; padding: 24px 16px calc(72px + env(safe-area-inset-bottom)); overflow-y: auto; }
}

@media (max-width: 640px) {
    .shell { width: calc(100% - 32px); }
    .orbit-inner { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 8px; }
    .brand-link { min-width: 0; max-width: 116px; overflow: hidden; }
    .brand-logo { max-width: 112px; }
    .box-button, .app-link { padding: 0 11px; min-width: 0; }
    .app-link { font-size: 13px; }
    .cover-slot { height: 260px; }
    .media-slot { height: 180px; }
    .shelf-row { grid-template-columns: 48px 1fr; gap: 10px; }
    .shelf-row a { grid-column: 2; justify-self: start; }
    .big-number-item { grid-template-columns: 52px 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 18px 14px; }
    .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
