: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);
    --max: 1120px;
}

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

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; }
.star-line { height: 22px; background: var(--bg-deep); border-bottom: 1px solid var(--border); color: var(--title); font-size: 12px; }
.bar-inner { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.star-line-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.star-line-brand { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.star-line-search { min-width: 44px; height: 22px; padding: 0 6px; border: 0; background: transparent; color: var(--bright); cursor: pointer; }
.orbit-bar { height: 60px; background: var(--bg); border-bottom: 1px solid var(--border); }
.orbit-inner { height: 60px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.orbit-brand { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; font-size: 16px; font-weight: 700; color: var(--title); }
.orbit-brand img, .footer-brand-mark img, .drawer-brand img { height: 28px; width: auto; object-fit: contain; object-position: center; }
.drawer-trigger { justify-self: center; height: 44px; min-width: 76px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--title); cursor: pointer; }
.app-entry { justify-self: end; min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 12px; color: var(--bg-deep); background: linear-gradient(135deg, #A8C4F0 0%, #7BA3E8 55%, #1A3A6E 100%); font-size: 14px; font-weight: 700; white-space: nowrap; }
.seat-nav { height: 40px; background: var(--space); border-bottom: 1px solid var(--border); }
.seat-inner { width: min(var(--max), calc(100% - 32px)); height: 40px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 8px; }
.seat-link { min-width: 76px; min-height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: 9px; font-size: 13px; color: var(--title); }
.seat-link.is-current { background: var(--brand); color: var(--bg-deep); font-weight: 700; }

.site-main { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; padding: 146px 0 72px; }
.page-shell { display: grid; gap: 24px; }
.hero-block, .section-block, .content-card, .policy-section, .faq-item, .index-card, .timeline-item, .shelf-item, .note-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }
.hero-block { padding: 24px; }
.eyebrow { margin: 0 0 8px; color: var(--bright); font-size: 13px; letter-spacing: .08em; }
h1 { margin: 0 0 14px; color: var(--title); font-size: 24px; line-height: 1.3; }
h2 { margin: 0 0 12px; color: var(--title); font-size: 20px; line-height: 1.4; }
h3 { margin: 0 0 8px; color: var(--title); font-size: 16px; line-height: 1.45; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
.lead { max-width: 860px; color: var(--text); }
.meta-note { color: var(--muted); font-size: 13px; }
.section-block { padding: 24px; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 16px; }
.section-head p { color: var(--muted); margin: 0; }
.text-link { color: var(--bright); text-decoration: underline; text-underline-offset: 4px; }

.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border-radius: 11px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.btn-primary { color: var(--bg-deep); background: linear-gradient(135deg, #A8C4F0 0%, #7BA3E8 55%, #1A3A6E 100%); }
.btn-secondary { color: var(--title); background: var(--bg-deep); border: 1px solid var(--bright); }

.media-slot { width: 100%; background: var(--bg-deep); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.media-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.banner-slot { height: 260px; margin-bottom: 20px; }
.card-slot { height: 180px; margin-bottom: 14px; }
.feature-slot { height: 200px; margin-bottom: 16px; }
.app-slot { height: 340px; margin-bottom: 16px; }
.page-media { height: 220px; margin-bottom: 18px; }
.brand-media { height: 200px; margin-bottom: 16px; }
.app-icon { width: 48px; height: 48px; object-fit: contain; object-position: center; margin-top: 16px; }

.three-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.two-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.four-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.content-card { padding: 18px; min-width: 0; }
.content-card p { color: var(--text); }
.card-number { display: inline-flex; min-width: 34px; height: 28px; align-items: center; justify-content: center; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--bright); font-weight: 700; margin-bottom: 10px; }

.number-list { display: grid; gap: 12px; }
.number-row { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.number-row:last-child { border-bottom: 0; padding-bottom: 0; }
.number-row .num { color: var(--bright); font-size: 18px; font-weight: 800; letter-spacing: .05em; }
.number-row p { color: var(--muted); }

.shelf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.shelf-item { padding: 18px; box-shadow: none; }
.shelf-label { color: var(--bright); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.shelf-item p { color: var(--muted); }

.timeline { position: relative; display: grid; gap: 14px; padding-left: 24px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--border-strong); }
.timeline-item { position: relative; padding: 17px 18px; box-shadow: none; }
.timeline-item::before { content: ""; position: absolute; left: -22px; top: 24px; width: 9px; height: 9px; border-radius: 50%; background: var(--bright); box-shadow: 0 0 0 4px var(--bg); }
.status { display: inline-flex; min-height: 28px; align-items: center; padding: 0 10px; border-radius: 999px; background: var(--surface-2); color: var(--bright); font-size: 12px; margin-bottom: 8px; }

.index-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.index-card { padding: 18px; box-shadow: none; }
.index-card a { color: var(--bright); text-decoration: underline; text-underline-offset: 4px; }
.policy-stack, .faq-list { display: grid; gap: 14px; }
.policy-section, .faq-item { padding: 20px; box-shadow: none; }
.policy-section p, .faq-item p { color: var(--text); }
.faq-item h2, .faq-item h3 { margin-bottom: 8px; }
.callout { padding: 18px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface-2); }
.callout strong { color: var(--title); }
.callout p { color: var(--text); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pill { display: inline-flex; min-height: 32px; align-items: center; padding: 0 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-size: 13px; }

.site-footer { background: var(--bg-deep); border-top: 1px solid var(--border); color: var(--text); }
.footer-inner { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; padding: 32px 0 28px; }
.footer-brand-row { display: flex; align-items: center; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.footer-brand-row div:last-child { display: grid; }
.footer-brand-row strong { color: var(--title); }
.footer-brand-row span { color: var(--muted); font-size: 12px; }
.footer-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 24px 0; }
.footer-group { display: grid; gap: 8px; align-content: start; font-size: 13px; }
.footer-group h2 { font-size: 13px; margin: 0 0 4px; color: var(--bright); }
.footer-group a { color: var(--text); min-height: 28px; display: inline-flex; align-items: center; }
.footer-note, .footer-copy { font-size: 13px; color: var(--muted); }
.footer-note { border-top: 1px solid var(--border); padding-top: 18px; }

.star-drawer { position: fixed; top: 0; right: 0; z-index: 80; width: min(400px, 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; }
.star-drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--border); background: var(--bg-deep); }
.drawer-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.drawer-brand span { color: var(--title); white-space: nowrap; }
.icon-button { min-width: 56px; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--title); cursor: pointer; }
.drawer-scroll { height: calc(100dvh - 72px); overflow-y: auto; padding: 16px; }
.drawer-group { display: grid; gap: 8px; padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.drawer-group:last-child { border-bottom: 0; }
.drawer-group h2 { font-size: 13px; color: var(--bright); margin: 0 0 4px; }
.drawer-group a { display: grid; gap: 2px; min-height: 58px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.drawer-group a strong { color: var(--title); font-size: 14px; }
.drawer-group a span { color: var(--muted); font-size: 12px; line-height: 1.5; }

.search-panel { position: fixed; z-index: 75; top: 82px; left: 50%; width: min(760px, calc(100% - 32px)); transform: translate(-50%, -14px); visibility: hidden; pointer-events: none; opacity: 0; transition: opacity .2s ease, transform .2s ease, visibility .2s ease; }
.search-panel.is-open { transform: translate(-50%, 0); visibility: visible; pointer-events: auto; opacity: 1; }
.search-card { background: var(--bg); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow); padding: 20px; }
.search-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.search-head strong { color: var(--title); font-size: 18px; }
.search-head p { color: var(--muted); margin: 2px 0 0; }
.search-label { display: block; margin: 16px 0 6px; color: var(--muted); font-size: 13px; }
.search-input { width: 100%; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg-deep); color: var(--title); }
.search-input::placeholder { color: var(--soft); }
.search-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.search-links a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--title); }
.search-empty { color: var(--muted); margin-top: 12px; }
.site-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.64); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.site-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-bottom { display: none; }

@media (hover: hover) {
    a:hover { color: var(--bright); }
    .btn-primary:hover, .app-entry:hover { filter: brightness(1.08); color: var(--bg-deep); }
    .btn-secondary:hover, .drawer-trigger:hover, .icon-button:hover { border-color: var(--bright); color: var(--title); }
    .content-card:hover, .shelf-item:hover, .index-card:hover { border-color: var(--border-strong); }
}
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--bright); outline-offset: 2px; }

@media (max-width: 860px) {
    .three-grid, .four-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    body { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
    .bar-inner, .site-main, .footer-inner { width: calc(100% - 32px); }
    .seat-nav { display: none; }
    .site-main { padding-top: 102px; padding-bottom: 44px; }
    .orbit-inner { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; }
    .orbit-brand { min-width: 0; }
    .orbit-brand img { max-width: 118px; }
    .drawer-trigger { min-width: 64px; padding: 0 12px; }
    .app-entry { padding: 0 10px; }
    .hero-block, .section-block { padding: 18px; }
    .three-grid, .two-grid, .four-grid, .shelf-grid, .index-grid { grid-template-columns: 1fr; }
    .section-head { align-items: start; flex-direction: column; }
    .banner-slot { height: 260px; }
    .card-slot { height: 180px; }
    .feature-slot, .page-media, .brand-media { height: 200px; }
    .app-slot { height: 320px; }
    .search-panel { inset: 0; width: 100%; height: 100dvh; transform: none; background: var(--bg-deep); overflow-y: auto; }
    .search-panel.is-open { transform: none; }
    .search-card { min-height: 100dvh; border: 0; border-radius: 0; box-shadow: none; background: var(--bg-deep); padding: max(24px, env(safe-area-inset-top)) 16px calc(72px + env(safe-area-inset-bottom)); }
    .search-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mobile-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; 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); }
    .mobile-bottom-link { min-width: 0; min-height: 48px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text); }
    .mobile-bottom-link.is-current { background: var(--brand); color: var(--bg-deep); font-weight: 800; }
    .footer-inner { padding-bottom: 26px; }
}

@media (max-width: 460px) {
    .star-line-brand { max-width: calc(100vw - 86px); }
    .orbit-brand img { max-width: 102px; }
    .orbit-brand span { font-size: 14px; }
    .drawer-trigger { min-width: 58px; }
    .app-entry { font-size: 13px; padding: 0 8px; }
    .footer-groups { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
}
