:root {
    --bg: #0B1220;
    --bg-deep: #070B14;
    --surface: #141C2E;
    --surface-2: #1C2740;
    --title: #E8F0FF;
    --text: #C9D6EC;
    --muted: #8FA3C4;
    --soft: #6B7F9E;
    --brand: #7BA3E8;
    --bright: #A8C4F0;
    --space: #1A3A6E;
    --border: rgba(123,163,232,0.18);
    --border-strong: rgba(123,163,232,0.46);
    --shadow: 0 12px 28px rgba(0,0,0,0.35);
    --radius: 12px;
    --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg-deep); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif; font-size: 15px; line-height: 1.7; overflow-x: hidden; }
body.ui-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a, button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 1000; padding: 10px 14px; border-radius: 8px; background: var(--bright); color: var(--bg-deep); }
.skip-link:focus { top: 8px; }
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; }
.starline { height: 22px; background: var(--bg-deep); border-bottom: 1px solid var(--border); font-size: 12px; color: var(--title); }
.starline-inner, .trackbar-inner, .seatbar-inner { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.starline-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plain-button { border: 0; background: transparent; padding: 0 4px; min-height: 22px; cursor: pointer; color: var(--bright); }
.trackbar { height: 60px; background: var(--bg); border-bottom: 1px solid var(--border); }
.trackbar-inner { height: 60px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.brand-home { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; max-width: 210px; }
.brand-logo, .footer-logo { height: 28px; width: auto; object-fit: contain; object-position: center; }
.app-icon { width: 48px; height: 48px; object-fit: contain; object-position: center; }
.brand-text { font-size: 16px; color: var(--title); font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
.starbox-open, .app-link { min-height: 44px; padding: 0 18px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; white-space: nowrap; }
.starbox-open { justify-self: center; border: 1px solid var(--border-strong); background: var(--bg-deep); color: var(--title); cursor: pointer; }
.app-link { justify-self: end; background: linear-gradient(135deg,#A8C4F0 0%,#7BA3E8 55%,#1A3A6E 100%); color: var(--bg-deep); font-weight: 700; }
.seatbar { height: 40px; background: var(--space); border-bottom: 1px solid var(--border); }
.seatbar-inner { height: 40px; display: flex; align-items: stretch; justify-content: center; gap: 8px; }
.seatbar a { min-width: 100px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; font-size: 13px; color: var(--title); }
.seatbar a.is-active { background: var(--brand); color: var(--bg-deep); font-weight: 700; }
.site-main { min-height: 70vh; padding: 146px 0 56px; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.page-head { padding: 28px 0 12px; }
.eyebrow { margin: 0 0 8px; color: var(--bright); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { color: var(--title); margin-top: 0; }
h1 { font-size: 24px; line-height: 1.3; margin-bottom: 12px; }
h2 { font-size: 20px; line-height: 1.4; margin-bottom: 12px; }
h3 { font-size: 16px; line-height: 1.5; margin-bottom: 8px; }
p { margin: 0 0 14px; }
.lead { max-width: 820px; color: var(--text); font-size: 16px; }
.muted { color: var(--muted); }
.soft { color: var(--soft); }
.section { padding: 26px 0; }
.section + .section { border-top: 1px solid var(--border); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 16px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.card p:last-child, .panel p:last-child { margin-bottom: 0; }
.media-slot { width: 100%; min-height: 160px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--bg-deep); border: 1px solid var(--border); border-radius: var(--radius); }
.media-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.banner-slot { height: 260px; }
.card-slot { height: 180px; margin-bottom: 16px; }
.feature-slot { height: 200px; margin-bottom: 18px; }
.app-slot { height: 360px; }
.cover-copy { max-width: 820px; margin: 20px auto 0; text-align: center; }
.cover-copy h1 { margin-bottom: 8px; }
.cover-copy .brand-kicker { color: var(--bright); font-weight: 700; letter-spacing: .08em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cover-copy .actions { justify-content: center; }
.btn { min-height: 42px; padding: 0 18px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; 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 { border: 1px solid var(--border-strong); background: var(--bg-deep); color: var(--title); }
a:hover, button:hover { filter: brightness(1.08); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--bright); outline-offset: 3px; }
.numbered { counter-reset: xkitem; display: grid; gap: 12px; }
.numbered > article { counter-increment: xkitem; position: relative; padding: 18px 18px 18px 72px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.numbered > article::before { content: counter(xkitem, decimal-leading-zero); position: absolute; left: 18px; top: 16px; color: var(--bright); font-size: 20px; font-weight: 800; letter-spacing: .06em; }
.shelf { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.shelf article { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: 10px; padding: 16px; }
.tagline { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 5px 9px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: var(--bg-deep); font-size: 12px; }
.timeline { position: relative; margin-left: 8px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: var(--border-strong); }
.timeline article { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.timeline article::before { content: ""; position: absolute; left: -27px; top: 24px; width: 12px; height: 12px; 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: 0 9px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--title); font-size: 12px; margin-bottom: 8px; }
.index-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.index-list a { display: block; min-height: 92px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.index-list span { display: block; color: var(--muted); margin-top: 4px; }
.notice { background: var(--space); color: var(--title); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 16px 18px; }
.notice strong { color: var(--bright); }
.faq-list { display: grid; gap: 12px; }
.faq-list article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.definition-list { display: grid; gap: 10px; }
.definition-list div { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.definition-list dt { color: var(--title); font-weight: 700; }
.definition-list dd { margin: 0; color: var(--text); }
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--border); padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); color: var(--text); }
.footer-inner { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong { color: var(--title); font-size: 16px; }
.footer-brand span { color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
.footer-grid h2 { font-size: 13px; margin-bottom: 8px; color: var(--bright); }
.footer-grid a { display: block; min-height: 34px; padding: 5px 0; font-size: 13px; color: var(--text); }
.footer-note, .copyright { font-size: 13px; color: var(--muted); }
.footer-note { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.copyright { margin-bottom: 0; }
.overlay { position: fixed; inset: 0; z-index: 200; background: rgba(3,7,15,.68); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .22s ease, visibility .22s ease; }
.overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.starbox { position: fixed; z-index: 220; top: 0; right: 0; width: 400px; max-width: 86vw; height: 100dvh; background: var(--bg); border-left: 1px solid var(--border-strong); box-shadow: var(--shadow); transform: translateX(102%); visibility: hidden; pointer-events: none; transition: transform .24s ease, visibility .24s ease; overflow-y: auto; }
.starbox.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.starbox-head { position: sticky; top: 0; z-index: 2; min-height: 66px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg-deep); border-bottom: 1px solid var(--border); }
.starbox-brand { display: flex; align-items: center; gap: 10px; }
.starbox-brand img { height: 28px; width: auto; object-fit: contain; }
.starbox-brand strong { color: var(--title); }
.panel-close { min-height: 44px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--bg-deep); color: var(--title); cursor: pointer; }
.starbox-body { padding: 14px; }
.starbox-body section { padding: 10px 0 16px; border-bottom: 1px solid var(--border); }
.starbox-body h2 { font-size: 13px; color: var(--bright); margin-bottom: 8px; }
.starbox-body a { display: block; padding: 10px 12px; margin-bottom: 6px; border-radius: 10px; background: var(--surface); border: 1px solid transparent; }
.starbox-body a:hover { border-color: var(--border-strong); }
.starbox-body strong { display: block; color: var(--title); font-size: 14px; }
.starbox-body span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.search-layer { position: fixed; z-index: 230; left: 0; right: 0; top: 82px; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-12px); transition: opacity .2s ease, transform .2s ease, visibility .2s ease; }
.search-layer.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.search-card { width: min(760px, calc(100% - 32px)); margin: 12px auto 0; background: var(--bg-deep); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow); padding: 18px; }
.search-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.search-head strong { color: var(--title); }
.search-card label { display: block; color: var(--muted); margin-bottom: 8px; }
.search-card input { width: 100%; min-height: 46px; padding: 0 14px; color: var(--title); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; }
.search-presets { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.search-presets a { padding: 12px; min-height: 72px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; color: var(--title); }
.search-presets span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.search-empty { color: var(--muted); margin-top: 12px; }
.mobile-dock { display: none; }
.big-number { font-size: 34px; line-height: 1; font-weight: 800; color: var(--bright); letter-spacing: .05em; }
.split-note { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: start; }
.rule-list { margin: 0; padding-left: 1.2em; }
.rule-list li { margin-bottom: 8px; }
@media (max-width: 840px) {
    .grid-3, .grid-4, .shelf { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .search-presets { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
    body { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
    .starline-inner, .trackbar-inner, .footer-inner, .container { width: calc(100% - 32px); }
    .seatbar { display: none; }
    .trackbar-inner { grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; }
    .brand-home { min-width: 0; max-width: 132px; overflow: hidden; }
    .brand-logo { max-width: 124px; }
    .starbox-open, .app-link { padding: 0 12px; }
    .site-main { padding-top: 104px; padding-bottom: 36px; }
    .page-head { padding-top: 16px; }
    .banner-slot { height: 220px; }
    .app-slot { height: 320px; }
    .grid-2, .grid-3, .grid-4, .shelf, .index-list, .footer-grid, .search-presets { grid-template-columns: 1fr; }
    .panel { padding: 18px; }
    .definition-list div, .split-note { grid-template-columns: 1fr; gap: 6px; }
    .starbox { max-width: 86vw; }
    .search-layer { inset: 0; top: 0; background: var(--bg-deep); }
    .search-card { width: 100%; min-height: 100dvh; margin: 0; border: 0; border-radius: 0; padding: 18px 16px 78px; box-shadow: none; overflow-y: auto; }
    .mobile-dock { position: fixed; z-index: 150; left: 0; right: 0; bottom: 0; min-height: calc(48px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5,1fr); background: var(--bg-deep); border-top: 1px solid var(--border-strong); }
    .mobile-dock a { min-height: 48px; display: flex; align-items: center; justify-content: center; color: var(--title); font-size: 12px; }
    .mobile-dock a.is-active { background: var(--brand); color: var(--bg-deep); font-weight: 800; }
    .cover-copy { text-align: left; }
    .cover-copy .actions { justify-content: flex-start; }
    .numbered > article { padding-left: 62px; }
}
@media (max-width: 420px) {
    .starline-inner span { max-width: calc(100% - 58px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .brand-text { font-size: 15px; }
    .app-link { padding: 0 10px; }
}
