* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: #0B1220;
    color: #C9D6EC;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", 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%; }
:focus-visible { outline: 2px solid #A8C4F0; outline-offset: 3px; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 1200; background: #E8F0FF; color: #070B14; padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { top: 8px; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 900; }
.starline { height: 22px; background: #070B14; border-bottom: 1px solid rgba(123,163,232,.18); color: #E8F0FF; font-size: 12px; }
.railbar { height: 60px; background: #0B1220; border-bottom: 1px solid rgba(123,163,232,.18); }
.seatnav { height: 40px; background: #141C2E; border-bottom: 1px solid rgba(123,163,232,.18); }
.bar-inner, .site-main, .footer-inner { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.starline-inner, .railbar-inner, .seatnav-inner { height: 100%; display: flex; align-items: center; }
.starline-inner { justify-content: space-between; gap: 16px; }
.railbar-inner { justify-content: space-between; gap: 16px; }
.seatnav-inner { justify-content: center; gap: 10px; }
.starline-brand { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.text-button, .starbox-button, .icon-button { border: 0; background: transparent; cursor: pointer; min-height: 44px; min-width: 44px; }
.text-button { min-height: 22px; padding: 0 6px; color: #A8C4F0; }
.brand-mark { display: inline-flex; align-items: center; min-height: 44px; min-width: 108px; }
.brand-mark img { height: 28px; width: auto; object-fit: contain; object-position: center; }
.logo-fallback { color: #E8F0FF; font-size: 16px; font-weight: 700; letter-spacing: .04em; }
.starbox-button { color: #E8F0FF; border: 1px solid rgba(123,163,232,.46); border-radius: 10px; padding: 0 18px; background: #141C2E; }
.rail-app-link { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid rgba(123,163,232,.46); border-radius: 10px; color: #E8F0FF; }
.rail-app-link:hover, .rail-app-link.is-current { background: #1C2740; }
.seat-link { min-height: 32px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 8px; font-size: 13px; color: #C9D6EC; }
.seat-link:hover { background: #1C2740; }
.seat-link.is-current { background: #7BA3E8; color: #070B14; font-weight: 700; }
.site-main { padding-top: 150px; padding-bottom: 72px; min-height: 70vh; }
.page-head { margin: 0 0 28px; padding: 26px; border: 1px solid rgba(123,163,232,.18); border-radius: 14px; background: #141C2E; box-shadow: 0 12px 28px rgba(0,0,0,.35); }
.page-head .eyebrow, .section-kicker { margin: 0 0 7px; color: #A8C4F0; font-size: 12px; letter-spacing: .12em; }
h1, h2, h3 { color: #E8F0FF; margin-top: 0; }
h1 { font-size: 24px; line-height: 1.3; margin-bottom: 12px; }
h2 { font-size: 20px; line-height: 1.4; }
h3 { font-size: 16px; line-height: 1.45; }
p { margin: 0 0 14px; }
.muted { color: #8FA3C4; }
.soft { color: #6B7F9E; }
.content-section { margin: 0 0 26px; padding: 24px; background: #141C2E; border: 1px solid rgba(123,163,232,.18); border-radius: 12px; }
.content-section > :last-child { margin-bottom: 0; }
.section-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.two-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.card { background: #141C2E; border: 1px solid rgba(123,163,232,.18); border-radius: 12px; padding: 18px; min-width: 0; }
.card h2, .card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.media-slot { width: 100%; min-height: 130px; display: flex; align-items: center; justify-content: center; background: #070B14; border: 1px solid rgba(123,163,232,.18); border-radius: 12px; overflow: hidden; }
.media-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.media-180 { height: 180px; }
.media-200 { height: 200px; }
.media-260 { height: 260px; }
.media-app { height: min(360px, 72vw); }
.hero { margin-bottom: 28px; }
.hero .media-slot { margin-bottom: 18px; }
.hero-copy { text-align: center; max-width: 780px; margin: 0 auto; }
.hero-copy .brand-line { margin-bottom: 4px; color: #8FA3C4; font-size: 13px; }
.hero-copy h1 { margin-bottom: 10px; }
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.button-primary, .button-secondary { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border-radius: 10px; font-size: 14px; white-space: nowrap; }
.button-primary { background: linear-gradient(135deg,#A8C4F0 0%,#7BA3E8 55%,#1A3A6E 100%); color: #070B14; font-weight: 700; }
.button-secondary { background: #070B14; color: #E8F0FF; border: 1px solid rgba(123,163,232,.46); }
.button-primary:hover, .button-secondary:hover { transform: translateY(-1px); }
.feature-image { margin-bottom: 14px; }
.numbered-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.numbered-list li { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid rgba(123,163,232,.18); }
.numbered-list li:last-child { border-bottom: 0; }
.num { color: #A8C4F0; font-weight: 700; letter-spacing: .08em; }
.shelf { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.shelf-item { min-height: 132px; padding: 16px; border: 1px solid rgba(123,163,232,.18); border-radius: 10px; background: #1C2740; }
.shelf-item strong { display: block; color: #E8F0FF; margin-bottom: 6px; }
.timeline { position: relative; margin-left: 7px; padding-left: 24px; border-left: 1px solid rgba(123,163,232,.46); }
.timeline-item { position: relative; padding: 0 0 24px 0; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -30px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: #7BA3E8; box-shadow: 0 0 0 4px #141C2E; }
.status { display: inline-flex; min-height: 28px; align-items: center; padding: 0 10px; border: 1px solid rgba(123,163,232,.46); border-radius: 999px; color: #A8C4F0; font-size: 12px; margin-bottom: 8px; }
.index-list { display: grid; gap: 12px; }
.index-list a { display: block; padding: 16px; border: 1px solid rgba(123,163,232,.18); border-radius: 10px; background: #1C2740; }
.index-list a:hover { border-color: rgba(123,163,232,.46); transform: translateY(-1px); }
.index-list strong { color: #E8F0FF; display: block; margin-bottom: 4px; }
.article-list { display: grid; gap: 16px; }
.article-entry { padding: 18px; background: #141C2E; border: 1px solid rgba(123,163,232,.18); border-radius: 12px; }
.article-entry h2 { margin-bottom: 8px; }
.note-box { padding: 16px; border-left: 3px solid #7BA3E8; background: #1C2740; border-radius: 0 10px 10px 0; }
.faq-list { display: grid; gap: 14px; }
.faq-item { padding: 18px; background: #141C2E; border: 1px solid rgba(123,163,232,.18); border-radius: 12px; }
.faq-item h2 { margin-bottom: 8px; font-size: 16px; }
.site-footer { background: #070B14; color: #C9D6EC; border-top: 1px solid rgba(123,163,232,.18); }
.footer-inner { padding: 34px 0 78px; }
.footer-brand-row { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.footer-brand-row .brand-mark { min-width: auto; }
.footer-brand-row strong, .footer-brand-row span { display: block; }
.footer-brand-row span { color: #8FA3C4; font-size: 12px; }
.footer-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px; padding-bottom: 24px; border-bottom: 1px solid rgba(123,163,232,.18); }
.footer-grid h2 { font-size: 13px; margin-bottom: 10px; color: #8FA3C4; }
.footer-grid a { display: block; min-height: 34px; line-height: 34px; font-size: 13px; }
.footer-grid a:hover { color: #A8C4F0; }
.footer-note, .footer-copy { font-size: 13px; color: #8FA3C4; }
.footer-note { margin-top: 20px; }
.screen-overlay { position: fixed; inset: 0; z-index: 960; background: rgba(0,0,0,.56); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.screen-overlay.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.star-drawer { position: fixed; top: 0; right: 0; z-index: 990; width: min(400px,86vw); height: 100dvh; padding: 18px; background: #0B1220; border-left: 1px solid rgba(123,163,232,.46); box-shadow: 0 12px 28px rgba(0,0,0,.35); transform: translateX(104%); visibility: hidden; pointer-events: none; overflow-y: auto; transition: transform .22s ease, visibility .22s ease; }
.star-drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(123,163,232,.18); }
.drawer-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.drawer-brand .brand-mark { min-width: auto; }
.drawer-brand strong, .drawer-brand span { display: block; }
.drawer-brand span { color: #8FA3C4; font-size: 11px; }
.icon-button { border: 1px solid rgba(123,163,232,.46); border-radius: 9px; padding: 0 12px; background: #141C2E; }
.drawer-group { margin-top: 18px; }
.drawer-group h2 { margin-bottom: 8px; color: #8FA3C4; font-size: 13px; }
.drawer-group a { display: block; padding: 11px 0; border-bottom: 1px solid rgba(123,163,232,.18); }
.drawer-group strong { display: block; color: #E8F0FF; margin-bottom: 2px; }
.drawer-group span { display: block; color: #8FA3C4; font-size: 12px; line-height: 1.55; }
.search-layer { position: fixed; left: 0; right: 0; top: 82px; z-index: 980; visibility: hidden; pointer-events: none; opacity: 0; transition: opacity .18s ease, visibility .18s ease; }
.search-layer.is-open { visibility: visible; pointer-events: auto; opacity: 1; }
.search-card { width: min(780px, calc(100% - 32px)); margin: 16px auto; padding: 20px; border: 1px solid rgba(123,163,232,.46); border-radius: 14px; background: #0B1220; box-shadow: 0 12px 28px rgba(0,0,0,.35); }
.search-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.search-head strong { color: #E8F0FF; font-size: 20px; }
.search-head p { color: #8FA3C4; margin: 2px 0 0; }
.search-label { display: block; color: #8FA3C4; font-size: 13px; margin-bottom: 6px; }
.search-input { width: 100%; min-height: 44px; border: 1px solid rgba(123,163,232,.46); border-radius: 10px; background: #141C2E; color: #E8F0FF; padding: 0 12px; }
.search-presets { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.search-presets a { padding: 12px; border: 1px solid rgba(123,163,232,.18); border-radius: 10px; background: #141C2E; }
.search-presets a[hidden] { display: none; }
.search-presets a:hover { border-color: rgba(123,163,232,.46); }
.search-presets span { display: block; color: #8FA3C4; font-size: 12px; }
.search-empty { color: #8FA3C4; margin-top: 14px; }
.mobile-bottom-nav { display: none; }
@media (max-width: 820px) {
    .section-grid, .two-grid, .shelf, .footer-grid { grid-template-columns: 1fr; }
    .site-main { padding-top: 102px; padding-bottom: 88px; }
    .seatnav { display: none; }
    .starline-brand { max-width: 72vw; }
    .railbar-inner { gap: 8px; }
    .brand-mark { min-width: 92px; }
    .rail-app-link, .starbox-button { padding: 0 12px; }
    .hero-copy { text-align: left; }
    .hero-actions { justify-content: flex-start; }
    .page-head, .content-section { padding: 18px; }
    .search-layer { inset: 0; top: 0; background: #070B14; }
    .search-card { width: 100%; min-height: 100dvh; margin: 0; border: 0; border-radius: 0; padding: 20px 16px 84px; background: #070B14; }
    .search-presets { grid-template-columns: 1fr; }
    .mobile-bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 920; display: grid; grid-template-columns: repeat(5,1fr); height: calc(48px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #070B14; border-top: 1px solid rgba(123,163,232,.18); }
    .mobile-bottom-nav a { display: flex; align-items: center; justify-content: center; min-width: 0; font-size: 12px; }
    .mobile-bottom-nav a.is-current { background: #7BA3E8; color: #070B14; font-weight: 700; }
    .footer-inner { padding-bottom: 92px; }
}
@media (max-width: 420px) {
    .bar-inner, .site-main, .footer-inner { width: calc(100% - 32px); }
    .railbar-inner .brand-mark { flex: 1 1 0; min-width: 0; }
    .railbar-inner .starbox-button, .railbar-inner .rail-app-link { flex: 0 0 auto; }
    .railbar-inner .logo-fallback { font-size: 14px; }
    .rail-app-link { padding: 0 10px; }
    .starbox-button { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}

.app-icon { width: 48px; height: 48px; object-fit: contain; object-position: center; flex: 0 0 auto; }
.text-button { min-height: 44px; margin-top: -11px; margin-bottom: -11px; position: relative; z-index: 1; }
.seat-link { min-height: 44px; margin-top: -2px; margin-bottom: -2px; }
.footer-grid a { min-height: 44px; line-height: 44px; }
