:root {
    --bg: #0B1220;
    --bg-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;
    --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
}
body.ui-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { max-width: 100%; }
.starline {
    position: fixed;
    inset: 0 0 auto 0;
    height: 22px;
    z-index: 120;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    line-height: 22px;
}
.top-inner, .track-inner, .seat-inner, .footer-inner, .page-shell {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
}
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 22px; }
.starline-brand { color: var(--text); letter-spacing: .03em; }
.text-button, .drawer-trigger, .icon-button {
    border: 0;
    background: transparent;
    cursor: pointer;
}
.text-button {
    min-height: 22px;
    padding: 0 4px;
    color: var(--bright);
}

.trackbar {
    position: fixed;
    top: 22px;
    inset-inline: 0;
    height: 60px;
    z-index: 115;
    background: rgba(11,18,32,.97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
}
.track-inner {
    height: 60px;
    display: grid;
    grid-template-columns: minmax(150px,1fr) auto minmax(150px,1fr);
    align-items: center;
    gap: 18px;
}
.brand-home { display: inline-flex; align-items: center; justify-self: start; min-height: 44px; }
.brand-logo-img { display: block; height: 28px; width: auto; max-width: 180px; object-fit: contain; object-position: center; }
.brand-logo-text { color: var(--title); font-size: 16px; font-weight: 800; letter-spacing: .08em; }
.drawer-trigger, .app-entry {
    min-width: 88px;
    height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.drawer-trigger {
    justify-self: center;
    background: var(--panel-2);
    border: 1px solid var(--border-strong);
    color: var(--title);
}
.app-entry {
    justify-self: end;
    background: linear-gradient(135deg,#A8C4F0 0%,#7BA3E8 55%,#1A3A6E 100%);
    color: var(--bg-deep);
    font-weight: 800;
}

.seatbar {
    position: fixed;
    top: 82px;
    inset-inline: 0;
    height: 40px;
    z-index: 110;
    background: var(--space);
    border-bottom: 1px solid var(--border-strong);
}
.seat-inner { height: 40px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.seat-link {
    min-width: 92px;
    height: 30px;
    padding: 0 18px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--title);
    font-size: 13px;
}
.seat-link.is-current { background: var(--brand); color: var(--bg-deep); font-weight: 800; }

.site-main {
    min-height: 70vh;
    padding-top: 122px;
    padding-bottom: 40px;
}
.page-shell { padding-top: 36px; }
.page-head { margin-bottom: 24px; }
.page-head .eyebrow, .eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--bright);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
}
h1, h2, h3 { margin: 0; color: var(--title); font-weight: 800; letter-spacing: .01em; }
h1 { font-size: 24px; line-height: 1.3; }
h2 { font-size: 20px; line-height: 1.4; }
h3 { font-size: 16px; line-height: 1.45; }
p { margin: 0 0 14px; }
.page-lead { max-width: 820px; margin-top: 12px; color: var(--text); }
.section { margin-top: 34px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head p { max-width: 620px; margin: 0; color: var(--muted); }

.cover-card {
    background: linear-gradient(180deg, rgba(28,39,64,.58), rgba(20,28,46,.88));
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.cover-copy { padding: 24px; }
.cover-copy h1 { margin-top: 2px; }
.cover-copy .brand-kicker { display: block; color: var(--bright); font-size: 13px; margin-bottom: 8px; }
.cover-copy p { max-width: 860px; color: var(--text); }
.cover-actions, .button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    white-space: nowrap;
    border: 1px solid transparent;
}
.btn-primary {
    background: linear-gradient(135deg,#A8C4F0 0%,#7BA3E8 55%,#1A3A6E 100%);
    color: var(--bg-deep);
    font-weight: 800;
}
.btn-secondary { background: var(--bg-deep); border-color: var(--border-strong); color: var(--title); }

.media-slot {
    width: 100%;
    min-height: 140px;
    background:
        radial-gradient(circle at 18% 22%, rgba(168,196,240,.10) 0 1px, transparent 2px),
        radial-gradient(circle at 76% 34%, rgba(123,163,232,.14) 0 1px, transparent 2px),
        radial-gradient(circle at 54% 78%, rgba(168,196,240,.08) 0 1px, transparent 2px),
        var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.media-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.banner-slot { height: 260px; border: 0; border-radius: 0; }
.feature-slot { height: 180px; }
.section-slot { height: 200px; }
.app-slot { height: 340px; }
.icon-slot { width: 72px; height: 72px; min-height: 72px; }
.icon-slot img { width: 48px; height: 48px; object-fit: contain; }

.three-grid, .four-grid, .two-grid, .info-grid, .faq-grid, .index-grid {
    display: grid;
    gap: 16px;
}
.three-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.four-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.two-grid, .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.faq-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.index-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card, .text-panel, .faq-card, .legal-section, .shelf-item, .index-card, .notebook-item, .timeline-item, .big-index-item {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.card { overflow: hidden; }
.card-body { padding: 18px; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { color: var(--text); }
.card-link { color: var(--bright); font-weight: 700; }
.text-panel, .legal-section { padding: 20px; }
.text-panel h2, .legal-section h2 { margin-bottom: 10px; }
.text-panel h3, .legal-section h3 { margin: 18px 0 8px; }
.muted { color: var(--muted); }
.soft { color: var(--soft); }
.number-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin: 16px 0; }
.number-strip span { padding: 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--border); color: var(--title); }
.number-strip b { display: block; color: var(--bright); font-size: 20px; }

.shelf-list { display: grid; gap: 12px; }
.shelf-item { padding: 16px 18px; display: grid; grid-template-columns: 110px minmax(0,1fr) auto; align-items: center; gap: 16px; }
.shelf-tag { color: var(--bright); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.shelf-item h3 { margin-bottom: 4px; }
.shelf-item p { margin: 0; color: var(--muted); }
.shelf-item a { color: var(--bright); font-weight: 700; white-space: nowrap; }

.timeline { position: relative; display: grid; gap: 14px; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 16px; bottom: 16px; width: 1px; background: var(--border-strong); }
.timeline-item { position: relative; padding: 18px 18px 18px 60px; }
.timeline-dot { position: absolute; left: 15px; top: 24px; width: 13px; height: 13px; border-radius: 50%; background: var(--bright); box-shadow: 0 0 0 5px rgba(123,163,232,.12); }
.status-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border); color: var(--bright); font-size: 12px; margin-bottom: 8px; }

.notebook-list { display: grid; gap: 14px; }
.notebook-item { padding: 18px; display: grid; grid-template-columns: 84px minmax(0,1fr); gap: 18px; }
.note-label { color: var(--bright); font-weight: 800; letter-spacing: .06em; }
.notebook-item h3 { margin-bottom: 6px; }
.notebook-item p { margin: 0; color: var(--text); }

.big-index { display: grid; gap: 14px; }
.big-index-item { padding: 20px; display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 18px; align-items: start; }
.big-number { font-size: 34px; line-height: 1; color: var(--bright); font-weight: 900; letter-spacing: -.04em; }
.big-index-item h3 { margin-bottom: 8px; }

.index-card { padding: 18px; }
.index-card h3 { margin-bottom: 8px; }
.index-card p { color: var(--muted); }
.index-card a { color: var(--bright); font-weight: 700; }

.notice {
    padding: 14px 16px;
    border-left: 3px solid var(--brand);
    background: var(--panel-2);
    border-radius: 8px;
    color: var(--text);
}
.prose { max-width: 900px; }
.prose h2 { margin: 28px 0 10px; }
.prose h3 { margin: 20px 0 8px; }
.prose p { color: var(--text); }
.prose ul { margin: 10px 0 16px 20px; padding: 0; }
.prose li { margin: 6px 0; }

.faq-card { padding: 18px; }
.faq-card h3 { margin-bottom: 8px; }
.faq-card p { margin: 0; color: var(--text); }

.app-intro { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,360px); gap: 22px; align-items: stretch; }
.app-copy { padding: 22px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.app-badge { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.app-badge strong { color: var(--title); display: block; }
.app-badge span { color: var(--muted); font-size: 13px; }

.site-footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    padding: 36px 0 78px;
}
.footer-brand-block { display: grid; gap: 5px; margin-bottom: 24px; }
.footer-brand-mark { height: 28px; margin-bottom: 4px; }
.footer-brand-block strong { color: var(--title); font-size: 15px; }
.footer-brand-block span { color: var(--muted); letter-spacing: .08em; }
.footer-groups { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px; padding: 22px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.footer-group h2 { font-size: 13px; margin-bottom: 10px; color: var(--bright); }
.footer-group a { display: block; padding: 4px 0; color: var(--text); }
.footer-note { max-width: 900px; margin-top: 20px; color: var(--muted); }
.footer-copy { margin: 8px 0 0; color: var(--soft); }

.ui-overlay {
    position: fixed;
    inset: 0;
    z-index: 170;
    background: rgba(0,0,0,.58);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}
.ui-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.star-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(400px,86vw);
    z-index: 190;
    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: 74px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); background: var(--bg-deep); }
.drawer-brand { display: flex; align-items: center; gap: 10px; }
.drawer-brand strong { display: block; color: var(--title); font-size: 14px; }
.drawer-brand span { display: block; color: var(--muted); font-size: 11px; letter-spacing: .06em; }
.icon-button { min-width: 56px; min-height: 44px; border-radius: 9px; border: 1px solid var(--border); background: var(--panel); }
.drawer-scroll { height: calc(100% - 74px); overflow-y: auto; padding: 12px 16px 26px; }
.drawer-section { padding: 12px 0; border-bottom: 1px solid var(--border); }
.drawer-section:last-child { border-bottom: 0; }
.drawer-section h2 { font-size: 13px; color: var(--bright); margin-bottom: 6px; }
.drawer-section a { display: block; padding: 10px; border-radius: 9px; }
.drawer-section a:hover { background: var(--panel); }
.drawer-section strong { display: block; color: var(--title); font-size: 14px; }
.drawer-section span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.55; }

.search-layer {
    position: fixed;
    left: 50%;
    top: 82px;
    width: min(760px,calc(100% - 32px));
    z-index: 185;
    transform: translate(-50%,-14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease, visibility .2s ease;
}
.search-layer.is-open { transform: translate(-50%,0); opacity: 1; visibility: visible; pointer-events: auto; }
.search-card { background: var(--bg-deep); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow); padding: 20px; }
.search-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.search-card p { color: var(--muted); margin-top: 12px; }
.preset-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.preset-grid a { min-height: 72px; padding: 12px; border: 1px solid var(--border); background: var(--panel); border-radius: 10px; color: var(--title); font-weight: 700; }
.preset-grid span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 400; }

.mobile-bottom { display: none; }

.btn:hover, .drawer-trigger:hover, .app-entry:hover, .seat-link:hover, .card-link:hover, .footer-group a:hover, .shelf-item a:hover, .index-card a:hover { filter: brightness(1.08); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--bright); outline-offset: 3px; }

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

@media (max-width: 640px) {
    body { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
    .top-inner, .track-inner, .footer-inner, .page-shell { width: min(100% - 32px, var(--max)); }
    .track-inner { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 8px; }
    .brand-home { width: 100%; min-width: 0; overflow: hidden; }
    .brand-logo-img { max-width: 100%; height: 26px; }
    .brand-logo-text { font-size: 15px; letter-spacing: .04em; }
    .drawer-trigger, .app-entry { min-width: 68px; padding: 0 10px; }
    .seatbar { display: none; }
    .site-main { padding-top: 82px; padding-bottom: 26px; }
    .page-shell { padding-top: 24px; }
    .banner-slot { height: 260px; }
    .cover-copy { padding: 18px; }
    .three-grid, .four-grid, .two-grid, .info-grid, .faq-grid, .index-grid { grid-template-columns: 1fr; }
    .number-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .shelf-item { grid-template-columns: 1fr; gap: 8px; }
    .notebook-item { grid-template-columns: 1fr; gap: 8px; }
    .big-index-item { grid-template-columns: 58px minmax(0,1fr); gap: 12px; }
    .footer-groups { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 12px; }
    .site-footer { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
    .search-layer {
        inset: 0;
        width: 100%;
        height: 100%;
        transform: translateY(-12px);
        background: var(--bg-deep);
    }
    .search-layer.is-open { transform: translateY(0); }
    .search-card { width: 100%; min-height: 100%; border: 0; border-radius: 0; padding: 24px 16px 80px; box-shadow: none; }
    .preset-grid { grid-template-columns: 1fr; }
    .mobile-bottom {
        position: fixed;
        inset: auto 0 0 0;
        z-index: 140;
        height: calc(48px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        display: grid;
        grid-template-columns: repeat(5,minmax(0,1fr));
        background: var(--bg-deep);
        border-top: 1px solid var(--border-strong);
    }
    .mobile-bottom a { min-height: 48px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text); }
    .mobile-bottom a.is-current { background: var(--brand); color: var(--bg-deep); font-weight: 800; }
    .star-drawer { width: min(86vw,400px); }
}

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