:root {
    --bg: #0B1220;
    --bg-deep: #070B14;
    --panel: #141C2E;
    --panel-soft: #1C2740;
    --title: #E8F0FF;
    --text: #C9D6EC;
    --muted: #8FA3C4;
    --subtle: #6B7F9E;
    --brand: #7BA3E8;
    --bright: #A8C4F0;
    --deep-blue: #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);
    --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg-deep); }
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;
}
body.panel-lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.skip-link {
    position: fixed;
    left: 12px;
    top: -80px;
    z-index: 120;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--bright);
    color: var(--bg-deep);
}
.skip-link:focus { top: 10px; }

.bar-inner, .content-wrap {
    width: min(calc(100% - 32px), var(--max));
    margin: 0 auto;
}

.starline {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 80;
    height: 22px;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--line);
    color: var(--title);
    font-size: 12px;
}
.starline-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.starline-brand { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.starline-search {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--bright);
    min-width: 52px;
    height: 22px;
    padding: 0 8px;
    cursor: pointer;
}

.orbitbar {
    position: fixed;
    inset: 22px 0 auto 0;
    z-index: 79;
    height: 60px;
    background: rgba(11, 18, 32, 0.98);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}
.orbitbar-inner {
    height: 60px;
    display: grid;
    grid-template-columns: minmax(140px, 1fr) auto minmax(140px, 1fr);
    align-items: center;
    gap: 14px;
}
.brand-link { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; }
.brand-logo, .starbox-logo, .footer-logo { height: 28px; width: auto; object-fit: contain; }
.brand-fallback { color: var(--title); font-size: 16px; font-weight: 700; letter-spacing: 0.05em; }
.starbox-trigger, .app-link, .panel-close {
    min-height: 44px;
    border-radius: 11px;
    border: 1px solid var(--line-strong);
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-deep);
    color: var(--title);
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}
.starbox-trigger { justify-self: center; }
.app-link { justify-self: end; background: linear-gradient(135deg,#A8C4F0 0%,#7BA3E8 55%,#1A3A6E 100%); color: var(--bg-deep); border-color: transparent; font-weight: 700; }

.seatbar {
    position: fixed;
    inset: 82px 0 auto 0;
    z-index: 78;
    height: 40px;
    background: var(--deep-blue);
    border-bottom: 1px solid var(--line);
}
.seatbar-inner { height: 40px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.seat-link { min-height: 32px; min-width: 96px; padding: 4px 18px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: var(--title); font-size: 13px; }
.seat-link.is-current { background: var(--brand); color: var(--bg-deep); font-weight: 700; }

.site-main { min-height: 70vh; padding-top: 146px; padding-bottom: 56px; }
.content-wrap { position: relative; }

.page-head { margin-bottom: 28px; }
.eyebrow { margin: 0 0 8px; color: var(--bright); font-size: 13px; letter-spacing: 0.12em; }
h1, h2, h3 { color: var(--title); margin-top: 0; }
h1 { margin-bottom: 12px; font-size: 24px; line-height: 1.3; }
h2 { font-size: 20px; line-height: 1.4; }
h3 { font-size: 16px; line-height: 1.45; }
p { margin: 0 0 1em; }
.lead { max-width: 780px; color: var(--text); font-size: 16px; }
.meta-note { color: var(--muted); font-size: 13px; }

.section-block { margin: 34px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head p { margin: 0; color: var(--muted); }
.card, .note-card, .shelf-card, .timeline-card, .index-card, .feature-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.card, .note-card, .feature-card { padding: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.media-slot {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-deep);
    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; }
.standard-slot { height: 200px; }
.compact-slot { height: 180px; }
.app-slot { min-height: 280px; max-height: 360px; height: 360px; }

.hero-brand { margin-top: 18px; color: var(--bright); font-size: 13px; letter-spacing: 0.12em; }
.hero-title { margin: 6px 0 10px; font-size: 24px; line-height: 1.3; color: var(--title); }
.hero-copy { max-width: 800px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid transparent;
}
.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-color: var(--line-strong); color: var(--title); }
.btn:hover, .starbox-trigger:hover, .app-link:hover, .panel-close:hover, .seat-link:hover, .dock-link:hover { transform: translateY(-1px); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--bright); outline-offset: 3px; }

.numbered-list, .shelf-list, .timeline, .star-list { list-style: none; padding: 0; margin: 0; }
.numbered-list { display: grid; gap: 12px; counter-reset: item; }
.numbered-list li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; padding: 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.numbered-list li::before { counter-increment: item; content: counter(item, decimal-leading-zero); color: var(--bright); font-weight: 800; letter-spacing: 0.08em; }
.numbered-list h3 { margin-bottom: 6px; }
.numbered-list p { margin: 0; }

.shelf-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.shelf-card { padding: 18px; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: start; }
.shelf-mark { min-height: 72px; border-radius: 10px; background: var(--panel-soft); color: var(--bright); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; }
.shelf-card p { margin-bottom: 0; }

.timeline { position: relative; display: grid; gap: 14px; }
.timeline::before { content: ""; position: absolute; left: 18px; top: 10px; bottom: 10px; width: 1px; background: var(--line-strong); }
.timeline-card { position: relative; margin-left: 44px; padding: 18px 20px; }
.timeline-card::before { content: ""; position: absolute; left: -32px; top: 24px; width: 11px; height: 11px; 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 10px; margin-bottom: 8px; border-radius: 999px; background: var(--panel-soft); color: var(--bright); font-size: 12px; }

.index-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.index-card { padding: 18px; }
.index-card a { color: var(--bright); font-weight: 700; }
.index-card p { margin: 8px 0 0; }

.article-stack { display: grid; gap: 18px; }
.article-section { padding: 22px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.article-section p:last-child { margin-bottom: 0; }
.bullet-clean { margin: 0; padding-left: 1.2em; }
.bullet-clean li { margin: 8px 0; }
.notice { padding: 16px 18px; border-left: 3px solid var(--brand); background: var(--panel-soft); border-radius: 0 10px 10px 0; }

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

.site-footer { position: relative; z-index: 1; background: var(--bg-deep); border-top: 1px solid var(--line); color: var(--text); font-size: 13px; padding: 34px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 2fr; gap: 32px; }
.footer-brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand-row strong, .footer-brand-row span { display: block; }
.footer-brand-row strong { color: var(--title); font-size: 15px; }
.footer-brand-row span { color: var(--muted); font-size: 11px; letter-spacing: 0.1em; }
.footer-brand p { color: var(--muted); margin-bottom: 0; }
.footer-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.footer-links h2 { font-size: 13px; margin-bottom: 8px; color: var(--bright); }
.footer-links a { display: block; min-height: 30px; padding: 3px 0; color: var(--text); }
.footer-bottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 18px; color: var(--subtle); }
.footer-bottom div { display: flex; gap: 14px; }

.page-overlay {
    position: fixed;
    inset: 0;
    z-index: 89;
    background: rgba(0, 0, 0, 0.62);
    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; }

.starbox-panel {
    position: fixed;
    z-index: 92;
    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;
}
.starbox-panel.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.starbox-head { height: 74px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); }
.starbox-brand { display: flex; align-items: center; gap: 10px; }
.starbox-scroll { height: calc(100dvh - 74px); overflow-y: auto; padding: 14px 16px 28px; }
.starbox-group { margin-bottom: 22px; }
.starbox-group h2 { margin-bottom: 8px; color: var(--bright); font-size: 13px; letter-spacing: .08em; }
.starbox-group a { display: grid; gap: 2px; min-height: 58px; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; }
.starbox-group a:hover { background: var(--panel); border-color: var(--line); }
.starbox-group b { color: var(--title); font-size: 14px; }
.starbox-group span { color: var(--muted); font-size: 12px; line-height: 1.5; }

.search-layer {
    position: fixed;
    z-index: 91;
    left: 0;
    right: 0;
    top: 82px;
    padding: 14px 16px;
    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, 100%); margin: 0 auto; padding: 20px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow); }
.search-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.search-head strong { color: var(--title); font-size: 18px; }
.search-head p { margin: 2px 0 0; color: var(--muted); }
.search-label { display: block; margin: 16px 0 6px; color: var(--muted); font-size: 13px; }
.search-input { width: 100%; min-height: 46px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg-deep); color: var(--title); padding: 10px 12px; }
.search-presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.search-presets a { min-height: 62px; padding: 10px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); color: var(--title); font-weight: 700; }
.search-presets span { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.search-empty { margin: 14px 0 0; color: var(--muted); }

.mobile-dock { display: none; }

@media (max-width: 860px) {
    .seatbar { display: none; }
    .site-main { padding-top: 102px; padding-bottom: 82px; }
    .footer-grid { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .search-layer { top: 0; bottom: 0; padding: 0; background: var(--bg-deep); }
    .search-card { width: 100%; min-height: 100dvh; margin: 0; border: 0; border-radius: 0; padding: 28px 16px 86px; background: var(--bg-deep); overflow-y: auto; }
    .mobile-dock {
        position: fixed;
        z-index: 76;
        left: 0;
        right: 0;
        bottom: 0;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        min-height: 48px;
        padding-bottom: env(safe-area-inset-bottom);
        background: rgba(7, 11, 20, .98);
        border-top: 1px solid var(--line);
    }
    .dock-link { min-height: 48px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }
    .dock-link.is-current { background: var(--bright); color: var(--bg-deep); font-weight: 800; }
    .site-footer { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

@media (max-width: 680px) {
    .bar-inner, .content-wrap { width: calc(100% - 32px); }
    .starline-brand { max-width: 68vw; }
    .orbitbar-inner { grid-template-columns: minmax(86px, 1fr) auto minmax(86px, 1fr); gap: 8px; }
    .brand-logo { max-width: 118px; }
    .brand-fallback { font-size: 15px; }
    .starbox-trigger, .app-link { min-width: 70px; padding: 0 10px; }
    .grid-2, .grid-3, .shelf-list, .index-grid { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }
    .banner-slot { height: 220px; }
    .compact-slot, .standard-slot { height: 180px; }
    .app-slot { height: 320px; }
    .shelf-card { grid-template-columns: 58px minmax(0, 1fr); }
    .shelf-mark { min-height: 58px; }
    .footer-bottom { flex-direction: column; }
    .search-presets { grid-template-columns: 1fr; }
    .actions .btn { flex: 1 1 140px; }
}

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

.top-gap { margin-top: 14px; }
.app-icon { width: 48px; height: 48px; object-fit: contain; object-position: center; margin-bottom: 14px; }
