:root {
    --bg: #0B1220;
    --deep: #070B14;
    --panel: #141C2E;
    --panel-2: #1C2740;
    --title: #E8F0FF;
    --text: #C9D6EC;
    --muted: #8FA3C4;
    --faint: #6B7F9E;
    --brand: #7BA3E8;
    --bright: #A8C4F0;
    --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;
    --content: 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: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    padding-top: 122px;
}
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible {
    outline: 2px solid var(--bright);
    outline-offset: 3px;
}
[hidden] { display: none !important; }

.starline {
    position: fixed;
    inset: 0 0 auto 0;
    height: 22px;
    z-index: 80;
    background: var(--deep);
    border-bottom: 1px solid var(--line);
    color: var(--title);
    font-size: 12px;
}
.top-inner {
    width: min(var(--content), calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.text-button {
    min-width: 44px;
    height: 22px;
    padding: 0 4px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
}
.text-button:hover { color: var(--bright); }

.trackbar {
    position: fixed;
    top: 22px;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 78;
    background: rgba(11, 18, 32, 0.98);
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 max(16px, calc((100vw - var(--content)) / 2));
}
.brand-link {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--title);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .04em;
}
.brand-link img, .drawer-brand img, .footer-logo img {
    height: 28px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    object-position: center;
}
.drawer-open {
    justify-self: center;
    height: 44px;
    min-width: 88px;
    padding: 0 20px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--deep);
    color: var(--title);
    cursor: pointer;
    font-size: 14px;
}
.drawer-open:hover { border-color: var(--bright); }
.app-link {
    justify-self: end;
    min-height: 44px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #A8C4F0 0%, #7BA3E8 55%, #1A3A6E 100%);
    color: var(--deep);
    font-weight: 700;
    font-size: 14px;
}
.app-link:hover { filter: brightness(1.06); }

.seatbar {
    position: fixed;
    top: 82px;
    left: 0;
    right: 0;
    height: 40px;
    z-index: 76;
    background: var(--space);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    font-size: 13px;
}
.seatbar a {
    min-width: 88px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--title);
}
.seatbar a:hover { background: rgba(232,240,255,.08); }
.seatbar a.is-current { background: var(--brand); color: var(--deep); font-weight: 700; }

.site-main { min-height: 55vh; }
.page-shell {
    width: min(var(--content), calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 70px;
}
.hero-copy { max-width: 850px; margin: 0 auto 30px; text-align: center; }
.eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--bright);
    font-size: 12px;
    letter-spacing: .12em;
}
h1, h2, h3 { margin-top: 0; color: var(--title); }
h1 { font-size: 24px; line-height: 1.3; margin-bottom: 14px; }
h2 { font-size: 20px; line-height: 1.4; margin-bottom: 12px; }
h3 { font-size: 16px; line-height: 1.45; margin-bottom: 8px; }
p { margin: 0 0 14px; }
.lead { color: var(--text); font-size: 15px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

.media-slot {
    width: 100%;
    background: var(--deep);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.media-slot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.cover-slot { height: 260px; }
.card-slot { height: 180px; }
.section-slot { height: 200px; }
.app-slot { height: 360px; max-width: 520px; margin: 0 auto; }
.article-slot { height: 220px; margin: 18px 0 24px; }

.cover-block {
    padding: 0 0 36px;
    border-bottom: 1px solid var(--line);
}
.cover-copy {
    max-width: 820px;
    margin: 22px auto 0;
    text-align: center;
}
.cover-brand { display: block; color: var(--muted); font-size: 13px; letter-spacing: .12em; margin-bottom: 6px; }
.cover-copy h1 { margin-bottom: 12px; }
.button-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.btn {
    height: 44px;
    min-width: 118px;
    padding: 0 18px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, #A8C4F0 0%, #7BA3E8 55%, #1A3A6E 100%);
    color: var(--deep);
    font-weight: 700;
}
.btn-secondary { background: var(--deep); color: var(--title); border: 1px solid var(--line-strong); }
.btn:hover { transform: translateY(-1px); }

.home-section { padding: 42px 0; border-bottom: 1px solid var(--line); }
.section-head { max-width: 780px; margin-bottom: 20px; }
.section-head p { color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}
.card > .media-slot { margin-bottom: 16px; box-shadow: none; }
.card p:last-child { margin-bottom: 0; }
.card-link { color: var(--bright); min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; }
.card-link:hover { color: var(--title); }

.issue-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.35fr); gap: 22px; align-items: stretch; }
.issue-copy { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.number-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 20px 0; }
.number-item { display: flex; gap: 10px; align-items: baseline; padding: 12px; background: var(--panel-2); border-radius: 10px; }
.number-item b { color: var(--bright); font-size: 18px; }

.shelf { display: grid; gap: 10px; }
.shelf-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 15px 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
}
.shelf-row span:first-child { color: var(--bright); font-weight: 700; }
.shelf-row small { color: var(--muted); font-size: 13px; }
.shelf-row a { min-height: 44px; display: inline-flex; align-items: center; color: var(--bright); }

.big-number-list { display: grid; gap: 12px; }
.big-number-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.big-number-item .num { color: var(--bright); font-size: 30px; line-height: 1; font-weight: 800; }
.big-number-item p:last-child { margin-bottom: 0; }

.timeline { position: relative; margin-left: 7px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
.timeline-item { position: relative; padding: 0 0 26px; }
.timeline-item::before { content: ""; position: absolute; left: -28px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--bright); border: 3px solid var(--bg); }
.status { display: inline-flex; min-height: 30px; padding: 2px 10px; align-items: center; border-radius: 999px; background: var(--panel-2); color: var(--bright); font-size: 12px; margin-bottom: 7px; }

.notebook { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.note-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.note-card .index { display: block; color: var(--bright); font-size: 13px; margin-bottom: 8px; }

.app-feature { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px; align-items: center; }
.app-icon-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.app-icon-row img { width: 48px; height: 48px; object-fit: contain; object-position: center; border-radius: 10px; }
.app-icon-fallback { width: 48px; height: 48px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--space); color: var(--title); font-weight: 800; }

.info-band { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--deep); }
.faq-mini { display: grid; gap: 10px; }
.faq-mini details, .faq-list details {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 16px;
}
.faq-mini summary, .faq-list summary { min-height: 50px; display: flex; align-items: center; cursor: pointer; color: var(--title); font-weight: 700; }
.faq-mini details p, .faq-list details p { padding: 0 0 16px; color: var(--text); }

.inner-hero { padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.inner-hero .meta-line { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.prose { max-width: 880px; }
.prose-wide { max-width: none; }
.prose section { margin: 0 0 30px; }
.prose section:last-child { margin-bottom: 0; }
.prose h2 { padding-top: 4px; }
.prose p { color: var(--text); }
.prose ul { margin: 0; padding-left: 20px; }
.prose li { margin: 7px 0; }

.issue-list { display: grid; gap: 16px; }
.issue-card { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 18px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.issue-card .issue-no { color: var(--bright); font-size: 26px; font-weight: 800; line-height: 1.1; }
.issue-card p:last-child { margin-bottom: 0; }

.directory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.directory-card { padding: 20px; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); }
.directory-card p:last-child { margin-bottom: 0; }

.cinema-list { display: grid; gap: 12px; }
.cinema-item { padding: 20px; border-left: 3px solid var(--brand); background: var(--panel); border-radius: 0 var(--radius) var(--radius) 0; }
.cinema-item p:last-child { margin-bottom: 0; }

.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.story-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.story-card p:last-child { margin-bottom: 0; }

.river-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.river-item { padding: 18px 20px; background: var(--panel); display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; }
.river-item strong { color: var(--title); }

.index-block { display: grid; gap: 14px; }
.index-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.index-row dt { color: var(--bright); font-weight: 800; }
.index-row dd { margin: 0; }
.index-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.index-links a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--bright); }

.legal-sections { display: grid; gap: 16px; }
.legal-card { padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.legal-card p:last-child { margin-bottom: 0; }

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.contact-card { padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card p:last-child { margin-bottom: 0; }

.site-footer { background: var(--deep); border-top: 1px solid var(--line); color: var(--text); font-size: 13px; }
.footer-inner { width: min(var(--content), calc(100% - 32px)); margin: 0 auto; padding: 34px 0 30px; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 24px; }
.footer-brand strong { color: var(--title); font-size: 15px; }
.footer-brand > span { color: var(--muted); letter-spacing: .08em; }
.footer-logo { display: inline-flex; min-height: 44px; align-items: center; }
.footer-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.footer-links h2 { font-size: 13px; margin-bottom: 10px; color: var(--bright); }
.footer-links a { min-height: 32px; display: block; color: var(--text); padding: 4px 0; }
.footer-links a:hover { color: var(--bright); }
.footer-note { max-width: 880px; margin: 22px 0 8px; color: var(--muted); }
.copyright { color: var(--faint); margin: 0; }

.site-overlay {
    position: fixed;
    inset: 0;
    z-index: 88;
    background: rgba(0, 0, 0, .62);
    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; }
.site-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 400px;
    max-width: 86vw;
    z-index: 92;
    background: var(--deep);
    border-left: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
    transform: translateX(103%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .24s ease, visibility .24s ease;
    overflow-y: auto;
}
.site-drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer-brand { min-width: 0; display: flex; align-items: center; gap: 10px; }
.drawer-brand > span:last-child { display: grid; min-width: 0; }
.drawer-brand strong { color: var(--title); }
.drawer-brand small { color: var(--muted); font-size: 11px; letter-spacing: .07em; }
.drawer-logo-text { color: var(--title); font-weight: 800; }
.drawer-close, .search-close {
    min-width: 58px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: var(--panel);
    cursor: pointer;
}
.drawer-groups { padding: 6px 16px 28px; }
.drawer-groups section { padding: 14px 0; border-bottom: 1px solid var(--line); }
.drawer-groups section:last-child { border-bottom: 0; }
.drawer-groups h2 { font-size: 13px; color: var(--bright); margin-bottom: 7px; }
.drawer-groups a { display: grid; gap: 2px; min-height: 58px; padding: 9px 10px; border-radius: 9px; }
.drawer-groups a:hover { background: var(--panel); }
.drawer-groups strong { color: var(--title); font-size: 14px; }
.drawer-groups span { color: var(--muted); font-size: 12px; line-height: 1.5; }

.search-layer {
    position: fixed;
    top: 82px;
    left: 0;
    right: 0;
    z-index: 91;
    padding: 18px 16px;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.search-layer.is-open { visibility: visible; pointer-events: auto; opacity: 1; transform: translateY(0); }
.search-card { width: min(760px, 100%); margin: 0 auto; padding: 20px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--bg); box-shadow: var(--shadow); }
.search-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.search-head h2 { margin-bottom: 12px; }
.search-label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 7px; }
#search-input { width: 100%; height: 46px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--deep); color: var(--title); padding: 0 14px; }
#search-input::placeholder { color: var(--faint); }
.search-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.search-presets a { min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; display: inline-flex; align-items: center; color: var(--bright); background: var(--panel); }
.search-help { color: var(--faint); font-size: 12px; margin: 14px 0 0; }

.mobile-bar { display: none; }

@media (max-width: 820px) {
    body { padding-top: 82px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    .seatbar { display: none; }
    .trackbar { padding: 0 16px; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; }
    .brand-link { max-width: 100%; overflow: hidden; font-size: 14px; }
    .brand-link img { max-width: 112px; }
    .drawer-open { min-width: 68px; padding: 0 14px; }
    .app-link { padding: 0 12px; font-size: 13px; }
    .grid-3, .grid-2, .notebook, .directory-grid, .story-grid, .contact-grid { grid-template-columns: 1fr; }
    .issue-layout, .app-feature { grid-template-columns: 1fr; }
    .app-slot { height: 320px; }
    .shelf-row { grid-template-columns: 86px minmax(0, 1fr); gap: 10px; }
    .shelf-row a { grid-column: 2; }
    .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .river-item { grid-template-columns: 1fr; gap: 6px; }
    .index-row { grid-template-columns: 1fr; gap: 8px; }
    .search-layer { inset: 0; padding: 0; background: var(--deep); }
    .search-card { width: 100%; min-height: 100%; border: 0; border-radius: 0; padding: calc(22px + env(safe-area-inset-top)) 16px 30px; background: var(--deep); box-shadow: none; }
    .mobile-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 70;
        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(--line);
    }
    .mobile-bar a { min-width: 0; min-height: 48px; display: flex; align-items: center; justify-content: center; color: var(--text); font-size: 12px; }
    .mobile-bar a.is-current { background: var(--brand); color: var(--deep); font-weight: 800; }
    .site-drawer { max-width: 86vw; }
    .cover-slot { height: 230px; }
    .card-slot { height: 170px; }
    .section-slot { height: 190px; }
}

@media (max-width: 560px) {
    .top-inner, .page-shell, .footer-inner { width: calc(100% - 32px); }
    .top-inner > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .trackbar { gap: 6px; }
    .brand-link img { max-width: 92px; }
    .drawer-open { min-width: 60px; padding: 0 10px; }
    .app-link { padding: 0 9px; }
    .page-shell { padding-top: 26px; }
    .hero-copy { text-align: left; }
    .cover-copy { text-align: left; }
    .button-row { justify-content: flex-start; }
    .number-grid { grid-template-columns: 1fr; }
    .big-number-item { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; }
    .big-number-item .num { font-size: 24px; }
    .issue-card { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 16px; }
    .issue-card .issue-no { font-size: 22px; }
    .footer-links { gap: 18px 14px; }
    .shelf-row { grid-template-columns: 1fr; }
    .shelf-row a { grid-column: 1; }
    .cover-slot { height: 200px; }
    .article-slot { height: 190px; }
    .app-slot { height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
.button-row.is-left { justify-content: flex-start; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-30 { margin-top: 30px; }
.heading-tight { margin-bottom: 0; }
.no-border-bottom { border-bottom: 0; }
