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

* { 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", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { color: inherit; }

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

.site-header { position: fixed; inset: 0 0 auto 0; z-index: 300; }
.star-line {
    height: 22px;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    color: var(--title);
}
.top-inner, .orbit-inner, .seat-inner, .footer-inner, .content-wrap {
    width: min(calc(100% - 32px), var(--max));
    margin: 0 auto;
}
.top-inner {
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.plain-button {
    border: 0;
    background: transparent;
    padding: 0 4px;
    cursor: pointer;
}
.top-search { color: var(--bright); min-width: 44px; height: 22px; }

.orbit-bar {
    height: 60px;
    background: rgba(11, 18, 32, 0.98);
    border-bottom: 1px solid var(--border);
}
.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; }
.brand-logo { height: 28px; width: auto; max-width: 170px; object-fit: contain; object-position: center; }
.brand-text { font-size: 16px; font-weight: 700; color: var(--title); letter-spacing: .06em; }
.starbox-trigger, .app-link, .button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.starbox-trigger {
    justify-self: center;
    min-width: 76px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--title);
    cursor: pointer;
}
.app-link {
    justify-self: end;
    padding: 0 16px;
    background: linear-gradient(135deg, #A8C4F0 0%, #7BA3E8 55%, #1A3A6E 100%);
    color: var(--bg-deep);
    font-weight: 700;
}
.starbox-trigger:hover, .app-link:hover, .button:hover { transform: translateY(-1px); }

.seat-nav {
    height: 40px;
    background: var(--deep-blue);
    border-bottom: 1px solid var(--border-strong);
}
.seat-inner { height: 40px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.seat-link {
    min-width: 84px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 13px;
    color: var(--title);
}
.seat-link:hover, .seat-link:focus-visible { background: rgba(232, 240, 255, .10); }
.seat-link.is-active { background: var(--brand); color: var(--bg-deep); font-weight: 700; }

.site-main { min-height: 72vh; padding-top: 122px; }
.content-wrap { padding: 32px 0 56px; }
.page-head { max-width: 780px; margin-bottom: 28px; }
.eyebrow { display: inline-block; color: var(--bright); font-size: 12px; letter-spacing: .12em; margin-bottom: 6px; }
h1, h2, h3 { color: var(--title); margin: 0; font-weight: 700; }
h1 { font-size: 24px; line-height: 1.3; letter-spacing: .01em; }
h2 { font-size: 20px; line-height: 1.4; }
h3 { font-size: 16px; line-height: 1.45; }
p { margin: 0 0 14px; }
.lead { margin-top: 12px; color: var(--text); max-width: 760px; }
.muted { color: var(--muted); }
.soft { color: var(--soft); }

.hero-slot, .media-slot {
    width: 100%;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-slot { height: 260px; }
.media-slot { height: 180px; }
.media-slot.tall { height: 200px; }
.media-slot.app-visual { height: min(360px, 62vw); }
.hero-slot img, .media-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.empty-slot-mark {
    width: 56px;
    height: 56px;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    position: relative;
    opacity: .65;
}
.empty-slot-mark::before, .empty-slot-mark::after {
    content: "";
    position: absolute;
    background: var(--brand);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.empty-slot-mark::before { width: 1px; height: 34px; }
.empty-slot-mark::after { width: 34px; height: 1px; }

.home-cover { padding: 24px 0 36px; }
.cover-copy { max-width: 790px; margin-top: 20px; }
.cover-copy .brand-kicker { color: var(--bright); font-size: 13px; letter-spacing: .10em; margin-bottom: 4px; }
.cover-copy h1 { margin-bottom: 10px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.button { padding: 0 18px; border: 1px solid transparent; }
.button.primary { background: linear-gradient(135deg, #A8C4F0 0%, #7BA3E8 55%, #1A3A6E 100%); color: var(--bg-deep); font-weight: 700; }
.button.secondary { background: var(--bg-deep); border-color: var(--border-strong); color: var(--title); }
.button:focus-visible, .starbox-trigger:focus-visible, .app-link:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--bright);
    outline-offset: 2px;
}

.section-block { padding: 28px 0; border-top: 1px solid var(--border); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.section-head p { margin: 0; max-width: 620px; color: var(--muted); }
.card-grid { display: grid; gap: 16px; }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}
.card .media-slot { margin: -18px -18px 16px; width: calc(100% + 36px); border-width: 0 0 1px; border-radius: var(--radius) var(--radius) 0 0; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.number { color: var(--bright); font-size: 12px; letter-spacing: .10em; font-weight: 700; }

.feature-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: 22px; align-items: start; }
.feature-layout.reverse { grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr); }
.feature-copy { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feature-copy h2 { margin-bottom: 10px; }

.shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.shelf-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    min-height: 138px;
}
.shelf-item strong { color: var(--title); display: block; margin: 4px 0 7px; }
.shelf-item span { color: var(--muted); font-size: 13px; }

.timeline { position: relative; margin: 6px 0 0 10px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 8px; width: 1px; background: var(--border-strong); }
.timeline-item { position: relative; padding: 0 0 24px; }
.timeline-item::before { content: ""; position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--brand); left: -28px; top: 5px; box-shadow: 0 0 0 5px rgba(123,163,232,.12); }
.timeline-item:last-child { padding-bottom: 0; }
.status { display: inline-flex; padding: 3px 8px; margin: 6px 0 8px; border-radius: 999px; background: rgba(123,163,232,.13); border: 1px solid var(--border); color: var(--bright); font-size: 12px; }

.page-section { padding: 22px 0; border-top: 1px solid var(--border); }
.page-section:first-of-type { border-top: 0; }
.page-section h2 { margin-bottom: 10px; }
.page-section h3 { margin-bottom: 8px; }
.prose { max-width: 850px; }
.prose p { color: var(--text); }
.prose ul, .prose ol { padding-left: 20px; margin: 10px 0 16px; }
.prose li { margin-bottom: 8px; }

.number-list { display: grid; gap: 14px; }
.number-row { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.number-row .big-number { font-size: 28px; line-height: 1; color: var(--bright); font-weight: 700; }
.number-row h2, .number-row h3 { margin-bottom: 7px; }

.directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.directory article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.directory .tag { color: var(--bright); font-size: 12px; }
.directory h2, .directory h3 { margin: 4px 0 8px; }

.index-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.index-link { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; min-height: 128px; transition: border-color .18s ease, transform .18s ease; }
.index-link:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.index-link strong { color: var(--title); display: block; margin-bottom: 6px; }
.index-link span { color: var(--muted); font-size: 13px; }

.note-box { background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 18px; margin: 18px 0; }
.note-box h2, .note-box h3 { margin-bottom: 8px; }

.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.faq-item h2 { font-size: 16px; margin-bottom: 8px; }

.site-footer { background: var(--bg-deep); border-top: 1px solid var(--border); color: var(--text); font-size: 13px; }
.footer-inner { padding: 30px 0 84px; }
.footer-brand { margin-bottom: 20px; }
.footer-brand-link { display: inline-flex; align-items: center; gap: 12px; }
.footer-brand-link strong { color: var(--title); font-size: 15px; display: block; }
.footer-brand-link small { color: var(--muted); display: block; letter-spacing: .08em; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 18px 0 22px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.footer-grid h2 { font-size: 13px; color: var(--bright); margin-bottom: 8px; }
.footer-grid a { display: block; color: var(--text); padding: 3px 0; }
.footer-grid a:hover { color: var(--title); }
.footer-note { color: var(--muted); margin-top: 18px; max-width: 900px; }
.copyright { color: var(--soft); margin-bottom: 0; }

.global-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(3, 6, 12, .66);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}
.global-overlay.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }

.starbox-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 520;
    width: min(400px, 86vw);
    background: var(--bg);
    border-left: 1px solid var(--border-strong);
    box-shadow: var(--shadow);
    transform: translateX(104%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .22s ease, visibility .22s ease;
}
.starbox-panel.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.starbox-head { height: 66px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); background: var(--bg-deep); }
.starbox-brand { display: flex; align-items: center; gap: 10px; color: var(--title); font-weight: 700; }
.icon-button { min-width: 52px; min-height: 40px; border: 1px solid var(--border-strong); background: var(--surface); border-radius: 9px; cursor: pointer; }
.starbox-scroll { height: calc(100% - 66px); overflow-y: auto; padding: 10px 16px 28px; }
.starbox-group { padding: 15px 0; border-bottom: 1px solid var(--border); }
.starbox-group:last-child { border-bottom: 0; }
.starbox-group h2 { font-size: 12px; color: var(--bright); margin-bottom: 8px; letter-spacing: .08em; }
.starbox-group a { display: block; padding: 10px; border-radius: 9px; }
.starbox-group a:hover { background: var(--surface); }
.starbox-group strong { color: var(--title); display: block; font-size: 14px; }
.starbox-group span { color: var(--muted); font-size: 12px; line-height: 1.55; display: block; margin-top: 2px; }

.search-panel {
    position: fixed;
    left: 0;
    right: 0;
    top: 82px;
    z-index: 530;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.search-panel.is-open { visibility: visible; pointer-events: auto; opacity: 1; transform: translateY(0); }
.search-card { width: min(calc(100% - 32px), 720px); margin: 0 auto; background: var(--bg); border: 1px solid var(--border-strong); border-radius: 0 0 14px 14px; box-shadow: var(--shadow); padding: 20px; }
.search-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.search-head h2 { font-size: 18px; }
.search-label { display: block; color: var(--muted); font-size: 12px; margin: 16px 0 6px; }
.search-input { width: 100%; min-height: 44px; background: var(--bg-deep); border: 1px solid var(--border-strong); border-radius: 9px; color: var(--title); padding: 10px 12px; }
.search-input::placeholder { color: var(--soft); }
.search-presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.search-presets a { background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 11px; color: var(--title); }
.search-presets a span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.search-empty { color: var(--muted); margin-top: 12px; }

.mobile-bottom { display: none; }

@media (max-width: 900px) {
    .card-grid.three { grid-template-columns: 1fr; }
    .card-grid.two, .directory { grid-template-columns: 1fr; }
    .feature-layout, .feature-layout.reverse { grid-template-columns: 1fr; }
    .shelf, .index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    body { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
    .top-inner, .orbit-inner, .footer-inner, .content-wrap { width: calc(100% - 32px); }
    .seat-nav { display: none; }
    .site-main { padding-top: 82px; }
    .orbit-inner { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
    .brand-link { min-width: 0; overflow: hidden; }
    .brand-logo { max-width: 118px; height: 28px; }
    .brand-text { font-size: 15px; white-space: nowrap; }
    .starbox-trigger { min-width: 64px; height: 44px; }
    .app-link { padding: 0 10px; min-height: 44px; }
    .content-wrap { padding-top: 24px; padding-bottom: 40px; }
    .home-cover { padding-top: 16px; }
    .hero-slot { height: 220px; }
    .media-slot { height: 170px; }
    .media-slot.tall { height: 190px; }
    .section-head { align-items: start; flex-direction: column; gap: 8px; }
    .shelf, .index-grid { grid-template-columns: 1fr; }
    .number-row { grid-template-columns: 48px 1fr; padding: 15px; }
    .number-row .big-number { font-size: 23px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .footer-inner { padding-bottom: 28px; }
    .search-panel { top: 0; bottom: 0; background: var(--bg-deep); }
    .search-panel.is-open { overflow-y: auto; }
    .search-card { min-height: 100%; width: 100%; margin: 0; border: 0; border-radius: 0; padding: 24px 16px 88px; box-shadow: none; background: var(--bg-deep); }
    .search-presets { grid-template-columns: 1fr; }
    .mobile-bottom {
        position: fixed;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 320;
        min-height: calc(48px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        background: rgba(7, 11, 20, .98);
        border-top: 1px solid var(--border-strong);
    }
    .mobile-bottom a { min-width: 0; min-height: 48px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text); }
    .mobile-bottom a.is-active { background: var(--brand); color: var(--bg-deep); font-weight: 700; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

.app-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.app-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
}
.section-media { margin-bottom: 18px; }
.compact-faq article { min-height: 0; }
.compact-faq h3 { margin-bottom: 6px; }
.brand-statement { max-width: 860px; }

/* Expand small fixed-bar controls to accessible pointer targets without changing bar height. */
.top-search,
.seat-link { position: relative; }
.top-search::before {
    content: "";
    position: absolute;
    inset: -11px 0;
}
.seat-link::before {
    content: "";
    position: absolute;
    inset: -6px 0;
}
.starbox-trigger,
.app-link,
.icon-button { min-height: 44px; }
