:root {
    --bg: #0B1220;
    --deep: #070B14;
    --panel: #141C2E;
    --panel-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;
    --top-desktop: 122px;
    --top-mobile: 82px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--deep); }
body {
    margin: 0;
    min-width: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }

.skip-link {
    position: fixed;
    left: 12px;
    top: -64px;
    z-index: 999;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--bright);
    color: var(--deep);
    transition: top .18s ease;
}
.skip-link:focus { top: 10px; }

.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header { position: relative; z-index: 60; }
.star-line {
    position: fixed;
    inset: 0 0 auto 0;
    height: 22px;
    z-index: 62;
    background: var(--deep);
    border-bottom: 1px solid var(--border);
    color: var(--title);
    font-size: 12px;
}
.star-line-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.text-button {
    position: relative;
    border: 0;
    background: transparent;
    padding: 0 4px;
    min-height: 22px;
    cursor: pointer;
    color: var(--bright);
}
.text-button::after { content: ""; position: absolute; inset: -11px -8px; }
.orbit-bar {
    position: fixed;
    inset: 22px 0 auto 0;
    height: 60px;
    z-index: 61;
    background: rgba(11, 18, 32, .98);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}
.orbit-inner {
    height: 60px;
    display: grid;
    grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
    align-items: center;
    gap: 18px;
}
.brand-link { display: inline-flex; align-items: center; min-height: 44px; justify-self: start; min-width: 0; }
.brand-logo { height: 28px; width: auto; max-width: 190px; object-fit: contain; object-position: left center; }
.brand-text { color: var(--title); font-size: 16px; font-weight: 700; letter-spacing: .04em; }
.starbox-button, .app-link, .btn {
    min-height: 42px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-size: 14px;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.starbox-button {
    min-width: 92px;
    padding: 0 18px;
    cursor: pointer;
    border: 1px solid var(--border-strong);
    background: var(--deep);
    color: var(--title);
}
.app-link {
    justify-self: end;
    min-width: 98px;
    padding: 0 18px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, #A8C4F0 0%, #7BA3E8 55%, #1A3A6E 100%);
    color: var(--deep);
    font-weight: 700;
}
.seat-nav {
    position: fixed;
    inset: 82px 0 auto 0;
    height: 40px;
    z-index: 60;
    background: var(--space);
    border-bottom: 1px solid var(--border-strong);
}
.seat-inner { height: 40px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.seat-item {
    min-width: 92px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: var(--title);
    font-size: 13px;
}
.seat-item.is-current { background: var(--brand); color: var(--deep); font-weight: 700; }

.page-main { min-height: 70vh; padding-top: calc(var(--top-desktop) + 26px); }
.page-hero, .section { padding: 26px 0 34px; }
.page-hero { padding-top: 34px; }
.hero-eyebrow, .section-kicker, .card-kicker {
    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 { margin-bottom: 14px; font-size: 24px; line-height: 1.3; letter-spacing: .01em; }
h2 { margin-bottom: 12px; font-size: 20px; line-height: 1.4; }
h3 { margin-bottom: 8px; font-size: 16px; line-height: 1.45; }
p { margin-top: 0; margin-bottom: 14px; }
.lead { max-width: 840px; color: var(--text); font-size: 16px; }
.muted { color: var(--muted); }
.soft { color: var(--soft); }

.hero-panel, .card, .paper, .timeline-item, .shelf-item, .index-row, .notice-box, .faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}
.hero-panel { padding: 26px; }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn { min-width: 120px; padding: 0 18px; border: 1px solid transparent; }
.btn-primary { background: linear-gradient(135deg, #A8C4F0 0%, #7BA3E8 55%, #1A3A6E 100%); color: var(--deep); font-weight: 700; }
.btn-secondary { background: var(--deep); border-color: var(--border-strong); color: var(--title); }

.btn:hover, .starbox-button:hover, .app-link:hover, .seat-item:hover, .search-presets a:hover, .mobile-bottom a:hover { transform: translateY(-1px); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--bright); outline-offset: 3px; }

.media-slot {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--deep);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.media-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.media-slot.banner { height: 260px; }
.media-slot.card-image { height: 180px; }
.media-slot.feature { height: 200px; }
.media-slot.app-shot { height: min(360px, 62vw); }
.media-slot.brand-shot { height: 220px; }

.cover-copy { padding-top: 22px; }
.cover-copy .brand-name { margin-bottom: 6px; color: var(--bright); font-size: 13px; letter-spacing: .14em; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 18px; }
.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 { padding: 18px; min-width: 0; }
.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; }

.section-head { margin-bottom: 18px; max-width: 780px; }
.section-head p { color: var(--muted); }
.number-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.number-card { padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel-2); }
.number-card b { display: block; color: var(--bright); font-size: 22px; line-height: 1; margin-bottom: 10px; }
.number-card span { color: var(--title); font-weight: 700; }

.shelf { display: grid; gap: 12px; }
.shelf-gap { margin-top: 16px; }
.shelf-item { padding: 16px 18px; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.shelf-code { color: var(--bright); font-size: 13px; letter-spacing: .08em; }
.shelf-item h3 { margin-bottom: 4px; }
.shelf-item p { margin: 0; color: var(--muted); }
.shelf-item a { min-height: 44px; display: inline-flex; align-items: center; color: var(--bright); }

.timeline { position: relative; display: grid; gap: 14px; margin-top: 18px; }
.timeline::before { content: ""; position: absolute; left: 20px; top: 14px; bottom: 14px; width: 1px; background: var(--border-strong); }
.timeline-item { position: relative; margin-left: 42px; padding: 16px 18px; }
.timeline-item::before { content: ""; position: absolute; left: -29px; top: 21px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); border: 3px solid var(--bg); }
.status { display: inline-flex; min-height: 30px; align-items: center; padding: 0 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border); color: var(--bright); font-size: 12px; }

.big-list { display: grid; gap: 14px; counter-reset: item; }
.big-item { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.big-num { color: var(--bright); font-size: 34px; line-height: 1; font-weight: 700; letter-spacing: .04em; }
.big-item p:last-child { margin-bottom: 0; }

.note-list { display: grid; gap: 14px; }
.note-row { padding: 18px 0; border-bottom: 1px solid var(--border); }
.note-row:last-child { border-bottom: 0; }
.note-row h3 { display: flex; gap: 10px; align-items: baseline; }
.note-row h3 span { color: var(--bright); font-size: 12px; font-weight: 400; }

.index-list { display: grid; gap: 12px; }
.index-row { padding: 16px 18px; display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.index-row strong { color: var(--title); }
.index-row p { margin: 0; color: var(--muted); }
.index-row a { min-height: 44px; display: inline-flex; align-items: center; color: var(--bright); }

.paper { padding: 22px; }
.paper + .paper { margin-top: 16px; }
.paper ul, .paper ol { padding-left: 1.3em; margin-bottom: 0; }
.paper li + li { margin-top: 8px; }
.notice-box { padding: 18px 20px; background: var(--panel-2); }
.notice-box strong { color: var(--title); }

.faq-list { display: grid; gap: 12px; }
.faq-item { padding: 18px 20px; }
.faq-item h2, .faq-item h3 { margin-bottom: 9px; }
.faq-item p:last-child { margin-bottom: 0; }

.app-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 28px; align-items: start; }
.app-icon { width: 48px; height: 48px; object-fit: contain; object-position: center; border-radius: 12px; margin-bottom: 14px; }

.site-footer { margin-top: 48px; padding: 34px 0 calc(28px + env(safe-area-inset-bottom)); background: var(--deep); border-top: 1px solid var(--border); color: var(--text); font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 24px; }
.footer-grid section { min-width: 0; }
.footer-grid h2 { margin: 0 0 9px; color: var(--muted); font-size: 13px; }
.footer-grid a { display: block; min-height: 30px; padding: 3px 0; color: var(--text); }
.footer-grid a:hover { color: var(--bright); }
.footer-brand { display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.footer-logo-link { min-height: 32px !important; display: inline-flex !important; align-items: center; }
.footer-logo { height: 28px; width: auto; max-width: 180px; object-fit: contain; object-position: left center; }
.footer-notice { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); }
.footer-notice p:last-child { margin-bottom: 0; }

.page-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .62); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.page-overlay.is-visible { opacity: 1; pointer-events: auto; }
.star-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 100;
    width: min(400px, 86vw);
    background: var(--bg);
    border-left: 1px solid var(--border-strong);
    box-shadow: var(--shadow);
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .22s ease, visibility .22s step-end;
}
.star-drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; transition: transform .22s ease, visibility 0s; }
.drawer-head { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 18px; border-bottom: 1px solid var(--border); }
.drawer-brand { display: flex; align-items: center; min-width: 0; gap: 10px; }
.drawer-logo { height: 28px; width: auto; max-width: 130px; object-fit: contain; object-position: left center; }
.drawer-brand strong, .drawer-brand span { display: block; }
.drawer-brand span { color: var(--muted); font-size: 11px; }
.icon-button { min-width: 54px; min-height: 44px; border: 1px solid var(--border); border-radius: 10px; background: var(--deep); color: var(--title); cursor: pointer; }
.drawer-scroll { height: calc(100vh - 76px); overflow-y: auto; padding: 16px 18px 26px; }
.drawer-group + .drawer-group { margin-top: 20px; }
.drawer-group h2 { margin-bottom: 8px; color: var(--muted); font-size: 12px; letter-spacing: .12em; }
.drawer-group a { display: block; padding: 11px 0; border-bottom: 1px solid var(--border); }
.drawer-group a strong { display: block; color: var(--title); }
.drawer-group a span { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.55; }

.search-layer {
    position: fixed;
    z-index: 95;
    top: 82px;
    left: 0;
    right: 0;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s step-end;
}
.search-layer.is-open { visibility: visible; pointer-events: auto; opacity: 1; transform: translateY(0); transition: opacity .18s ease, transform .18s ease, visibility 0s; }
.search-card { width: min(760px, calc(100% - 32px)); margin: 14px auto 0; padding: 20px; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--bg); 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: 3px 0 0; color: var(--muted); }
.search-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.search-presets a { min-height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--title); }

.mobile-bottom { display: none; }

@media (max-width: 900px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .number-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; }
    .app-layout { grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); }
}

@media (max-width: 720px) {
    body { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
    .shell { width: calc(100% - 32px); }
    .orbit-inner { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
    .brand-logo { max-width: 130px; }
    .brand-text { font-size: 15px; }
    .starbox-button { min-width: 72px; padding: 0 12px; }
    .app-link { min-width: 76px; padding: 0 12px; }
    .seat-nav { display: none; }
    .page-main { padding-top: calc(var(--top-mobile) + 20px); }
    .page-hero { padding-top: 26px; }
    .hero-panel { padding: 20px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .number-grid { grid-template-columns: 1fr 1fr; }
    .media-slot.banner { height: 260px; }
    .shelf-item { grid-template-columns: 58px minmax(0, 1fr); }
    .shelf-item > a { grid-column: 2; justify-self: start; }
    .index-row { grid-template-columns: 1fr; gap: 7px; }
    .index-row a { justify-self: start; }
    .big-item { grid-template-columns: 58px minmax(0, 1fr); gap: 12px; }
    .big-num { font-size: 26px; }
    .app-layout { grid-template-columns: 1fr; }
    .app-layout .media-slot { max-width: 360px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .site-footer { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
    .search-layer { inset: 0; top: 0; background: var(--deep); overflow-y: auto; }
    .search-card { width: 100%; min-height: 100vh; margin: 0; border: 0; border-radius: 0; padding: calc(30px + env(safe-area-inset-top)) 16px 28px; box-shadow: none; }
    .search-presets { grid-template-columns: 1fr 1fr; }
    .mobile-bottom {
        position: fixed;
        inset: auto 0 0 0;
        z-index: 70;
        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: 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; padding: 0 4px; color: var(--muted); font-size: 12px; }
    .mobile-bottom a.is-current { background: var(--brand); color: var(--deep); font-weight: 700; }
}

@media (max-width: 420px) {
    .star-line-inner > span { max-width: 74%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .brand-link { max-width: 120px; }
    .brand-logo { max-width: 110px; }
    .brand-text { font-size: 14px; }
    .starbox-button { min-width: 64px; }
    .app-link { min-width: 70px; padding: 0 9px; }
    .number-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
}

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