:root {
    --bg: #0B1220;
    --bg-deep: #070B14;
    --panel: #141C2E;
    --panel-2: #1C2740;
    --title: #E8F0FF;
    --text: #C9D6EC;
    --muted: #8FA3C4;
    --soft: #6B7F9E;
    --brand: #7BA3E8;
    --star: #A8C4F0;
    --deep-space: #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);
    --radius: 12px;
    --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg-deep); }
body {
    margin: 0;
    min-width: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 15% 8%, rgba(123,163,232,0.10), transparent 22rem),
        radial-gradient(circle at 92% 22%, rgba(26,58,110,0.18), transparent 28rem),
        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; }
a, button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.shell { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 120; }
.starline { height: 22px; background: var(--bg-deep); border-bottom: 1px solid var(--line); }
.starline-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--title); }
.text-button { border: 0; background: transparent; padding: 0 4px; cursor: pointer; font-size: 12px; min-height: 22px; }
.orbitbar { height: 60px; background: rgba(11,18,32,0.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.orbitbar-inner { height: 60px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.brand-link { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; }
.brand-logo { height: 28px; width: auto; max-width: 180px; object-fit: contain; object-position: center; }
.brand-text { color: var(--title); font-weight: 700; font-size: 16px; letter-spacing: .04em; }
.drawer-open, .app-link, .panel-close {
    min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; padding: 0 14px; cursor: pointer;
}
.drawer-open { justify-self: center; border: 1px solid var(--line-strong); background: var(--bg-deep); color: var(--title); }
.app-link { justify-self: end; border: 1px solid var(--line-strong); background: linear-gradient(135deg,#A8C4F0 0%,#7BA3E8 55%,#1A3A6E 100%); color: var(--bg-deep); font-weight: 700; }
.seatnav { height: 40px; background: var(--deep-space); border-bottom: 1px solid var(--line); }
.seatnav-inner { height: 40px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.seat-item { min-height: 32px; padding: 4px 18px; display: inline-flex; align-items: center; border-radius: 8px; color: var(--title); font-size: 13px; }
.seat-item.is-active { background: var(--brand); color: var(--bg-deep); font-weight: 700; }
.site-main { min-height: 70vh; padding-top: 142px; padding-bottom: 56px; }
.hero, .page-hero { padding: 28px 0 14px; }
.hero-brand { margin-top: 18px; text-align: center; }
.eyebrow { display: inline-block; color: var(--star); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 12px; color: var(--title); font-size: 24px; line-height: 1.3; }
h2 { color: var(--title); font-size: 20px; line-height: 1.35; }
h3 { color: var(--title); font-size: 16px; line-height: 1.4; }
p { margin-bottom: 14px; }
.lead { max-width: 820px; margin: 0 auto 18px; color: var(--text); }
.page-lead { max-width: 820px; color: var(--text); }
.section { padding: 24px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-head p { margin-bottom: 0; color: var(--muted); max-width: 620px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.card, .content-card, .shelf-item, .timeline-item, .note-block, .policy-section, .faq-item {
    background: linear-gradient(180deg, rgba(28,39,64,0.72), rgba(20,28,46,0.94));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card, .content-card, .note-block, .policy-section, .faq-item { padding: 18px; }
.card p, .content-card p, .note-block p, .policy-section p, .faq-item p { color: var(--text); }
.card a.more, .text-link { color: var(--star); text-decoration: underline; text-underline-offset: 4px; }
.media-slot {
    width: 100%; height: 180px; display: flex; align-items: center; justify-content: center;
    overflow: hidden; border-radius: 12px; background: var(--bg-deep); border: 1px solid var(--line); margin-bottom: 14px;
}
.media-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.media-slot.banner-slot { height: 260px; margin-bottom: 0; }
.media-slot.medium-slot { height: 200px; }
.media-slot.app-slot { height: 360px; max-width: 520px; margin-inline: auto; }
.media-placeholder { width: 52px; height: 52px; border: 1px solid var(--line-strong); border-radius: 50%; position: relative; opacity: .62; }
.media-placeholder::before, .media-placeholder::after { content: ""; position: absolute; background: var(--line-strong); }
.media-placeholder::before { width: 30px; height: 1px; left: 10px; top: 25px; }
.media-placeholder::after { width: 1px; height: 30px; left: 25px; top: 10px; }
.button-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.btn {
    min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; font-size: 14px; white-space: nowrap; border: 1px solid var(--line-strong);
}
.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); color: var(--title); }
.btn:hover, .drawer-open:hover, .app-link:hover, .seat-item:hover, .dock-item:hover { transform: translateY(-1px); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--star); outline-offset: 3px; }
.numbered-list { display: grid; gap: 12px; }
.number-row { display: grid; grid-template-columns: 54px 1fr; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.number-row:last-child { border-bottom: 0; }
.big-number { color: var(--star); font-weight: 800; font-size: 26px; line-height: 1; }
.shelf { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.shelf-item { min-height: 158px; padding: 16px; border-top: 3px solid var(--brand); }
.shelf-item span { color: var(--muted); font-size: 13px; }
.timeline { position: relative; display: grid; gap: 14px; }
.timeline::before { content: ""; position: absolute; left: 18px; top: 16px; bottom: 16px; width: 1px; background: var(--line-strong); }
.timeline-item { position: relative; margin-left: 44px; padding: 16px 18px; }
.timeline-item::before { content: ""; position: absolute; left: -34px; top: 22px; width: 11px; height: 11px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px var(--bg); }
.status { display: inline-flex; min-height: 28px; align-items: center; padding: 2px 10px; border-radius: 999px; background: var(--brand); color: var(--bg-deep); font-size: 12px; font-weight: 700; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 13px; }
.article-stack { display: grid; gap: 16px; }
.kicker { color: var(--star); font-weight: 700; }
.check-list { margin: 0; padding-left: 1.2em; }
.check-list li { margin-bottom: 8px; }
.index-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.index-link { display: block; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.index-link strong { display: block; color: var(--title); margin-bottom: 4px; }
.index-link span { color: var(--muted); font-size: 13px; }
.app-summary { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 22px; align-items: center; }
.app-icon { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; }
.icon-fallback { width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 10px; display: inline-block; }
.notice { border-left: 3px solid var(--brand); padding: 12px 14px; background: var(--panel); color: var(--text); border-radius: 0 10px 10px 0; }
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); color: var(--text); padding: 30px 0 74px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4,1fr); gap: 24px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.footer-logo-wrap { min-height: 44px; display: inline-flex; align-items: center; }
.footer-brand strong { color: var(--title); font-size: 15px; }
.footer-brand span { color: var(--muted); }
.footer-col h2 { font-size: 13px; color: var(--title); margin-bottom: 8px; }
.footer-col a { display: block; color: var(--text); padding: 4px 0; }
.footer-note { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; color: var(--muted); }
.footer-note p:last-child { margin-bottom: 0; }
.backdrop { position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.58); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.backdrop.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.star-drawer {
    position: fixed; z-index: 170; top: 0; right: 0; width: 400px; max-width: 86vw; height: 100dvh;
    background: var(--bg-deep); border-left: 1px solid var(--line-strong); box-shadow: var(--shadow);
    transform: translateX(104%); visibility: hidden; pointer-events: none; transition: transform .24s ease, visibility .24s ease;
}
body.drawer-active .star-drawer { 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 18px; border-bottom: 1px solid var(--line); }
.drawer-brand { display: flex; align-items: center; gap: 10px; color: var(--title); font-weight: 700; }
.panel-close { background: var(--panel); border: 1px solid var(--line); color: var(--title); }
.drawer-scroll { height: calc(100dvh - 72px); overflow-y: auto; padding: 16px 18px 28px; }
.drawer-group { margin-bottom: 22px; }
.drawer-group h2 { margin-bottom: 8px; font-size: 13px; color: var(--star); }
.drawer-group a { display: block; padding: 11px 0; border-bottom: 1px solid var(--line); }
.drawer-group strong { display: block; color: var(--title); font-size: 14px; }
.drawer-group span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.search-layer { position: fixed; z-index: 165; top: 82px; left: 0; right: 0; visibility: hidden; pointer-events: none; opacity: 0; transition: opacity .18s ease, visibility .18s ease; }
body.search-active .search-layer { visibility: visible; pointer-events: auto; opacity: 1; }
.search-card { width: min(calc(100% - 32px), 760px); margin: 10px auto 0; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow); padding: 20px; }
.search-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.search-head h2 { margin: 4px 0 14px; }
.search-label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.search-input { width: 100%; min-height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg-deep); color: var(--title); padding: 0 12px; }
.search-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.search-presets a { min-height: 40px; padding: 8px 14px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--title); }
.search-empty { color: var(--muted); margin: 14px 0 0; }
.mobile-dock { display: none; }
@media (max-width: 860px) {
    .grid-3, .grid-2, .shelf, .index-grid, .app-summary, .footer-grid { grid-template-columns: 1fr; }
    .shelf { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .footer-grid { gap: 14px; }
    .footer-col { padding-top: 12px; border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
    .shell { width: min(calc(100% - 32px), var(--max)); }
    .seatnav { display: none; }
    .site-main { padding-top: 98px; padding-bottom: 74px; }
    .orbitbar-inner { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 8px; }
    .brand-logo { max-width: 132px; }
    .brand-text { font-size: 15px; }
    .drawer-open, .app-link { padding: 0 10px; min-height: 44px; }
    .hero, .page-hero { padding-top: 20px; }
    .media-slot.banner-slot { height: 260px; }
    .media-slot.app-slot { height: 320px; }
    .number-row { grid-template-columns: 44px 1fr; }
    .shelf { grid-template-columns: 1fr; }
    .section-head { align-items: flex-start; flex-direction: column; gap: 6px; }
    .search-layer { top: 0; bottom: 0; background: var(--bg-deep); }
    .search-card { width: 100%; height: 100%; margin: 0; border-radius: 0; border: 0; padding: max(18px, env(safe-area-inset-top)) 16px 76px; overflow-y: auto; }
    .mobile-dock {
        display: grid; grid-template-columns: repeat(5,1fr); position: fixed; z-index: 130; left: 0; right: 0; bottom: 0;
        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(--line-strong);
    }
    .dock-item { min-height: 48px; display: flex; align-items: center; justify-content: center; color: var(--text); font-size: 12px; }
    .dock-item.is-active { background: var(--brand); color: var(--bg-deep); font-weight: 800; }
    .site-footer { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
}
@media (max-width: 430px) {
    .starline-inner span { max-width: 75%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .brand-logo { max-width: 106px; }
    .app-link { font-size: 13px; }
    .drawer-open { font-size: 13px; }
    .card, .content-card, .note-block, .policy-section, .faq-item { padding: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
