:root {
    --bg: #0B1220;
    --bg-deep: #070B14;
    --panel: #141C2E;
    --panel-2: #1C2740;
    --title: #E8F0FF;
    --text: #C9D6EC;
    --muted: #8FA3C4;
    --soft: #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;
    --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--bright); outline-offset: 3px; }
img { max-width: 100%; display: block; }
.starline, .orbital-bar, .seatbar { position: fixed; left: 0; right: 0; z-index: 80; }
.starline { top: 0; height: 22px; background: var(--bg-deep); border-bottom: 1px solid var(--line); font-size: 12px; }
.orbital-bar { top: 22px; height: 60px; background: rgba(11,18,32,0.97); border-bottom: 1px solid var(--line); }
.seatbar { top: 82px; height: 40px; background: var(--space); border-bottom: 1px solid var(--line-strong); }
.bar-inner, .seatbar-inner, .section-inner, .footer-inner { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.starline-inner, .orbital-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.starline-brand { color: var(--title); white-space: nowrap; }
.text-control, .starbox-toggle, .close-control {
    border: 1px solid var(--line-strong); background: var(--bg-deep); color: var(--title); border-radius: 10px; min-height: 36px; padding: 0 14px; cursor: pointer;
}
.starline .text-control { min-height: 22px; padding: 0 8px; border: 0; background: transparent; font-size: 12px; }
.orbital-inner { position: relative; }
.orbital-brand, .app-link, .starbox-toggle { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.orbital-brand { min-width: 140px; justify-content: flex-start; }
.brand-logo { height: 28px; width: auto; object-fit: contain; object-position: center; }
.brand-fallback { font-size: 16px; font-weight: 700; color: var(--title); letter-spacing: .05em; }
.starbox-toggle { position: absolute; left: 50%; transform: translateX(-50%); min-width: 76px; }
.app-link { min-width: 92px; padding: 0 16px; color: var(--title); border: 1px solid var(--line-strong); border-radius: 10px; }
.seatbar-inner { height: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; }
.seatbar a { min-width: 92px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; color: var(--title); font-size: 13px; }
.seatbar a.active { background: var(--brand); color: var(--bg-deep); font-weight: 700; }
.site-main { padding-top: 146px; min-height: 65vh; }
.section { padding: 30px 0; }
.section.compact { padding: 22px 0; }
.section-heading { margin-bottom: 18px; }
.eyebrow { margin: 0 0 6px; color: var(--bright); font-size: 12px; letter-spacing: .12em; }
h1, h2, h3 { color: var(--title); line-height: 1.3; margin-top: 0; }
h1 { font-size: 24px; margin-bottom: 12px; }
h2 { font-size: 20px; margin-bottom: 10px; }
h3 { font-size: 16px; margin-bottom: 8px; }
p { margin: 0 0 12px; }
.lead { color: var(--text); max-width: 880px; }
.subtle { color: var(--muted); }
.hero-card, .content-card, .feature-card, .shelf-card, .timeline-item, .legal-block, .faq-item, .index-card {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-card { padding: 18px; }
.media-slot { width: 100%; background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.media-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.banner-slot { height: 260px; }
.trio-slot { height: 180px; }
.section-slot { height: 200px; }
.app-slot { height: 340px; }
.brand-slot { height: 220px; }
.hero-copy { padding-top: 18px; }
.hero-copy h1 { margin-bottom: 8px; }
.brand-line { color: var(--bright); font-size: 13px; letter-spacing: .12em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn { height: 42px; min-width: 118px; 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); }
.btn:hover, .app-link:hover, .seatbar a:hover, .footer-grid a:hover, .starbox-panel a:hover { filter: brightness(1.08); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature-card, .content-card, .index-card { padding: 16px; }
.feature-card .media-slot { margin-bottom: 14px; }
.number-list { display: grid; gap: 10px; margin-top: 14px; }
.number-row { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.number-row:first-child { border-top: 0; }
.number-row b { color: var(--bright); font-size: 18px; letter-spacing: .08em; }
.shelf { display: grid; gap: 12px; }
.shelf-card { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; padding: 14px; }
.shelf-no { color: var(--bright); font-weight: 700; letter-spacing: .08em; }
.shelf-meta { color: var(--muted); font-size: 13px; }
.inline-link { color: var(--bright); font-weight: 600; }
.timeline { position: relative; margin-left: 10px; padding-left: 24px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--line-strong); }
.timeline-item { position: relative; padding: 16px; margin-bottom: 14px; }
.timeline-item::before { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); left: -25px; top: 24px; box-shadow: 0 0 0 4px var(--bg); }
.status { display: inline-flex; min-height: 28px; align-items: center; padding: 0 9px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line-strong); color: var(--title); font-size: 12px; }
.big-index { counter-reset: observatory; display: grid; gap: 14px; }
.big-index .index-card { position: relative; padding-left: 84px; min-height: 116px; }
.big-index .index-card::before { counter-increment: observatory; content: "0" counter(observatory); position: absolute; left: 18px; top: 18px; color: var(--bright); font-size: 26px; font-weight: 800; }
.article-body { display: grid; gap: 16px; }
.article-body .content-card h2, .legal-block h2 { margin-bottom: 8px; }
.legal-stack { display: grid; gap: 14px; }
.legal-block { padding: 18px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { padding: 16px; }
.faq-item h2 { font-size: 16px; }
.callout { border-left: 3px solid var(--brand); padding: 14px 16px; background: var(--panel-2); border-radius: 0 10px 10px 0; color: var(--text); }
.app-intro { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: stretch; }
.app-copy { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.app-icon-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.app-icon-row .media-slot { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; }
.app-icon-row strong { color: var(--title); font-size: 16px; }
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); margin-top: 34px; }
.footer-inner { padding: 28px 0 34px; }
.footer-brand { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.footer-brand strong { color: var(--title); display: block; }
.footer-brand span { color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.footer-logo { min-width: 112px; min-height: 44px; display: inline-flex; align-items: center; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 22px 0; }
.footer-grid h2 { font-size: 13px; color: var(--bright); margin-bottom: 9px; }
.footer-grid a { display: block; color: var(--text); font-size: 13px; padding: 4px 0; }
.footer-note, .copyright { font-size: 13px; color: var(--muted); }
.copyright { margin-top: 10px; margin-bottom: 0; }
.overlay { position: fixed; inset: 0; z-index: 98; background: rgba(0,0,0,.55); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.overlay.visible { opacity: 1; visibility: visible; pointer-events: auto; }
.starbox-panel { position: fixed; z-index: 100; top: 0; right: 0; width: 400px; max-width: 86vw; height: 100dvh; background: var(--bg-deep); border-left: 1px solid var(--line-strong); transform: translateX(100%); visibility: hidden; pointer-events: none; transition: transform .24s ease, visibility .24s ease; box-shadow: var(--shadow); }
.starbox-open .starbox-panel { transform: translateX(0); visibility: visible; pointer-events: auto; }
.starbox-head { height: 68px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.starbox-brand { display: flex; align-items: center; gap: 10px; color: var(--title); font-weight: 700; }
.starbox-scroll { height: calc(100dvh - 68px); overflow-y: auto; padding: 14px 16px 28px; }
.starbox-scroll section + section { margin-top: 18px; }
.starbox-scroll h2 { font-size: 13px; color: var(--bright); margin-bottom: 8px; }
.starbox-scroll a { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.starbox-scroll strong { font-size: 14px; color: var(--title); }
.starbox-scroll span { font-size: 12px; color: var(--muted); }
.search-panel { position: fixed; z-index: 99; top: 82px; left: 0; right: 0; visibility: hidden; pointer-events: none; opacity: 0; transition: opacity .2s ease, visibility .2s ease; }
.search-open .search-panel { visibility: visible; pointer-events: auto; opacity: 1; }
.search-card { width: min(calc(100% - 32px), 720px); margin: 12px auto 0; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.search-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.search-head strong { color: var(--title); }
.search-card label { display: block; color: var(--muted); margin-bottom: 7px; }
.search-card input { width: 100%; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg-deep); color: var(--title); padding: 0 12px; }
.search-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.search-presets a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; color: var(--title); }
.search-empty { margin-top: 12px; color: var(--muted); }
.panel-lock { overflow: hidden; }
.mobile-bottom { display: none; }
@media (max-width: 760px) {
    .seatbar { display: none; }
    .site-main { padding-top: 102px; padding-bottom: 70px; }
    .bar-inner, .section-inner, .footer-inner { width: calc(100% - 32px); }
    .orbital-brand { min-width: 90px; max-width: 112px; overflow: hidden; }
    .orbital-brand .brand-fallback { font-size: 15px; white-space: nowrap; }
    .app-link { min-width: 82px; padding: 0 10px; font-size: 13px; }
    .starbox-toggle { min-width: 68px; }
    .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
    .banner-slot { height: 260px; }
    .trio-slot { height: 180px; }
    .section-slot { height: 200px; }
    .app-intro { grid-template-columns: 1fr; }
    .app-slot { height: 320px; }
    .shelf-card { grid-template-columns: 54px 1fr; }
    .shelf-card .inline-link { grid-column: 2; justify-self: start; }
    .search-panel { top: 0; bottom: 0; background: var(--bg-deep); }
    .search-card { width: 100%; height: 100%; margin: 0; border: 0; border-radius: 0; padding: 18px 16px; box-shadow: none; }
    .search-presets { grid-template-columns: 1fr 1fr; }
    .mobile-bottom { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; min-height: 48px; padding-bottom: env(safe-area-inset-bottom); background: rgba(7,11,20,.98); border-top: 1px solid var(--line-strong); display: grid; grid-template-columns: repeat(5, 1fr); }
    .mobile-bottom a { min-height: 48px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text); }
    .mobile-bottom a.active { background: var(--brand); color: var(--bg-deep); font-weight: 700; }
    .footer-inner { padding-bottom: 82px; }
    .footer-grid { gap: 12px; }
    .big-index .index-card { padding-left: 68px; }
    .big-index .index-card::before { left: 16px; font-size: 22px; }
}
@media (max-width: 430px) {
    .starline-brand { max-width: calc(100vw - 86px); overflow: hidden; text-overflow: ellipsis; }
    .banner-slot { height: 220px; }
    .search-presets { grid-template-columns: 1fr; }
    .actions .btn { flex: 1 1 150px; }
}

.section-gap { margin-top: 18px; }
