:root {
    --bg: #F3F6F9;
    --surface: #FFFFFF;
    --surface-soft: #E8EEF5;
    --title: #0B1220;
    --text: #1E293B;
    --muted: #475569;
    --subtle: #64748B;
    --blue: #2563EB;
    --blue-bright: #60A5FA;
    --blue-deep: #1D4ED8;
    --lime: #65A30D;
    --slate: #334155;
    --line: rgba(37, 99, 235, 0.16);
    --shadow: 0 14px 36px rgba(11, 18, 32, 0.08);
    --radius: 18px;
    --header-desktop: 136px;
    --header-mobile: 92px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
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", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.menu-open,
body.search-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 3px;
}

.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.skip-link {
    position: fixed;
    left: 16px;
    top: 8px;
    z-index: 300;
    transform: translateY(-160%);
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--title);
    color: #fff;
}
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; }
.status-bar { height: 32px; background: var(--slate); color: #fff; }
.status-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.status-brand { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; letter-spacing: .05em; }
.status-brand span { color: #D6E4FF; font-weight: 600; }
.status-search {
    min-height: 32px;
    border: 0;
    background: transparent;
    color: #fff;
    padding: 0 4px 0 18px;
    cursor: pointer;
    font-size: 13px;
}
.command-bar { height: 60px; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.command-inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.command-square {
    width: 44px;
    height: 44px;
    display: grid;
    grid-template-columns: repeat(2, 7px);
    grid-template-rows: repeat(2, 7px);
    gap: 5px;
    align-content: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    cursor: pointer;
}
.command-square span { width: 7px; height: 7px; background: var(--blue); border-radius: 2px; }
.command-logo { min-width: 120px; height: 44px; display: flex; align-items: center; justify-content: center; font-weight: 900; color: var(--title); letter-spacing: -.03em; }
.command-logo img { max-height: 32px; width: auto; max-width: 190px; }
.command-app {
    justify-self: end;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #60A5FA 0%, #2563EB 52%, #1D4ED8 100%);
    color: #fff;
    font-weight: 800;
}
.desktop-tabs { height: 44px; background: #fff; border-bottom: 1px solid var(--line); }
.tab-inner { height: 100%; display: grid; grid-template-columns: repeat(6, 1fr); }
.tab-inner a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}
.tab-inner a:hover { color: var(--blue); }
.tab-inner a.is-current { color: var(--blue); }
.tab-inner a.is-current::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: -1px; height: 3px; background: var(--blue); border-radius: 3px 3px 0 0; }

.site-main { padding-top: calc(var(--header-desktop) + 28px); min-height: 70vh; }
.page-hero, .home-cover { padding: 22px 0 44px; }
.eyebrow { display: inline-block; color: var(--blue); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { color: var(--title); line-height: 1.2; margin-top: 0; }
h1 { font-size: clamp(28px, 4vw, 32px); letter-spacing: -.04em; margin-bottom: 18px; }
h2 { font-size: clamp(23px, 3vw, 28px); letter-spacing: -.03em; }
h3 { font-size: 19px; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.lead { max-width: 820px; color: var(--muted); font-size: 17px; }
.muted { color: var(--subtle); }
.section { padding: 34px 0; }
.section + .section { border-top: 1px solid rgba(37,99,235,.08); }
.space-top { margin-top: 16px; }
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 24px; }
.section-head p { max-width: 620px; color: var(--muted); margin: 0; }

.home-cover-card,
.hero-card,
.surface-card,
.long-card,
.policy-card,
.app-panel,
.faq-item,
.info-strip,
.step-card,
.author-card,
.index-card,
.number-card {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}
.home-cover-card { padding: clamp(22px, 4vw, 42px); }
.cover-copy { max-width: 820px; }
.cover-copy p { color: var(--muted); font-size: 17px; }
.action-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 28px; }
.btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid var(--blue);
}
.btn.primary { color: #fff; background: linear-gradient(135deg, #60A5FA 0%, #2563EB 52%, #1D4ED8 100%); }
.btn.secondary { color: var(--blue); background: #fff; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37,99,235,.12); }

.media-slot { width: 100%; min-height: 220px; aspect-ratio: 16 / 7; border-radius: 16px; background: linear-gradient(135deg, #E8EEF5, #F8FAFC); border: 1px dashed rgba(37,99,235,.22); display: grid; place-items: center; color: var(--subtle); overflow: hidden; }
.media-slot span { padding: 16px; text-align: center; }
.cover-media { max-height: 340px; object-fit: contain; width: 100%; border-radius: 16px; }
.hero-media { max-height: 340px; object-fit: cover; width: 100%; border-radius: 16px; }
.card-media { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 15px; }
.phone-media { max-height: 520px; object-fit: contain; margin: 0 auto; }
.badge-media { max-width: 120px; aspect-ratio: 1; object-fit: contain; border-radius: 24px; }

.topic-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.topic-item { display: grid; grid-template-columns: 22px minmax(150px, .65fr) 2fr auto; gap: 16px; align-items: center; min-height: 74px; border-bottom: 1px solid var(--line); padding: 12px 4px; }
.topic-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px rgba(37,99,235,.08); }
.topic-item strong { color: var(--title); }
.topic-item span { color: var(--muted); }
.topic-item a { color: var(--blue); font-weight: 800; min-height: 44px; display: inline-flex; align-items: center; }

.pulse-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: stretch; }
.pulse-list { display: grid; gap: 14px; }
.pulse-entry { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.pulse-no, .big-no { color: var(--blue); font-weight: 900; font-size: 38px; line-height: 1; letter-spacing: -.05em; display: block; margin-bottom: 14px; }
.pulse-entry p { color: var(--muted); margin-bottom: 0; }

.three-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.two-stack { display: grid; gap: 18px; }
.content-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.content-card h3 { margin: 16px 0 10px; }
.content-card p { color: var(--muted); }
.text-link { color: var(--blue); font-weight: 800; display: inline-flex; min-height: 44px; align-items: center; }

.mural-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.mural-grid article { min-height: 180px; padding: 24px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.mural-grid p { color: var(--muted); }

.file-list { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); overflow: hidden; }
.file-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 18px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.file-row:last-child { border-bottom: 0; }
.file-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-soft); color: var(--blue); display: grid; place-items: center; font-weight: 900; }
.file-row strong { display: block; color: var(--title); }
.file-row span { color: var(--muted); font-size: 14px; }
.file-row a { color: var(--blue); font-weight: 800; min-height: 44px; display: inline-flex; align-items: center; }

.number-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.number-card { padding: 22px; min-height: 190px; box-shadow: none; }
.number-card .big-no { font-size: 46px; }
.number-card p { color: var(--muted); }

.timeline { position: relative; display: grid; gap: 18px; margin-left: 12px; }
.timeline::before { content: ""; position: absolute; left: 12px; top: 8px; bottom: 8px; width: 2px; background: rgba(37,99,235,.2); }
.timeline-item { position: relative; padding-left: 48px; }
.timeline-item::before { content: ""; position: absolute; left: 5px; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 6px var(--bg); }
.timeline-item article { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.status-tag { display: inline-flex; min-height: 28px; align-items: center; padding: 0 10px; border-radius: 999px; background: var(--surface-soft); color: var(--blue); font-size: 13px; font-weight: 800; margin-bottom: 10px; }

.hero-card { padding: 24px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
.hero-card p { color: var(--muted); }
.directory-list { display: grid; gap: 12px; }
.directory-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 18px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 18px; }
.directory-row .index { color: var(--blue); font-weight: 900; }
.directory-row p { margin: 4px 0 0; color: var(--muted); }
.directory-row a { color: var(--blue); font-weight: 800; min-height: 44px; display: inline-flex; align-items: center; }

.genre-index { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.genre-index span { min-height: 38px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; background: var(--surface-soft); color: var(--slate); font-weight: 700; }

.episode-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.episode-row { display: grid; grid-template-columns: 82px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.episode-row strong { color: var(--blue); }
.episode-row p { margin: 0; color: var(--muted); }

.slice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.slice-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.slice-card .big-no { font-size: 34px; }
.slice-card p { color: var(--muted); }

.prose { max-width: 860px; }
.prose p { color: var(--text); margin-bottom: 1.25em; }
.prose h2 { margin-top: 1.8em; margin-bottom: .65em; }
.editor-note { border-left: 4px solid var(--blue); background: #fff; border-radius: 0 14px 14px 0; padding: 18px 20px; margin: 24px 0; color: var(--muted); }
.editor-note strong { color: var(--title); }

.author-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.author-card { padding: 22px; box-shadow: none; }
.author-card span { color: var(--blue); font-size: 13px; font-weight: 800; }
.author-card p { color: var(--muted); }

.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card { padding: 22px; box-shadow: none; }
.step-card p { color: var(--muted); }

.index-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.index-card { padding: 22px; box-shadow: none; }
.index-card p { color: var(--muted); }

.app-panel { padding: clamp(22px, 4vw, 38px); display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: center; }
.app-copy p { color: var(--muted); }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 22px 0; }
.feature-list div { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.feature-list strong { color: var(--title); display: block; }
.feature-list span { color: var(--muted); font-size: 14px; }

.policy-stack { display: grid; gap: 16px; }
.policy-card { padding: 24px; box-shadow: none; }
.policy-card p, .policy-card li { color: var(--muted); }
.policy-card ul { margin: 10px 0 0; padding-left: 20px; }

.faq-list { display: grid; gap: 14px; }
.faq-item { padding: 22px; box-shadow: none; }
.faq-item h2 { font-size: 19px; margin-bottom: 10px; }
.faq-item p { color: var(--muted); margin: 0; }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-card p { color: var(--muted); }

.site-footer { background: var(--title); color: #D6E4FF; margin-top: 64px; }
.footer-shell { padding: 48px 0 calc(34px + env(safe-area-inset-bottom)); }
.footer-brand { display: flex; align-items: center; gap: 14px; padding-bottom: 28px; border-bottom: 1px solid rgba(214,228,255,.12); }
.footer-logo { min-width: 64px; min-height: 44px; display: inline-flex; align-items: center; }
.footer-logo img { max-height: 32px; width: auto; max-width: 180px; }
.footer-brand strong { color: #fff; display: block; }
.footer-brand span { color: #9FB7DD; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 30px 0; }
.footer-grid h2 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-grid a { display: flex; min-height: 36px; align-items: center; color: #D6E4FF; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-note { color: #9FB7DD; max-width: 820px; font-size: 14px; }
.footer-copy { margin: 16px 0 0; color: #7F98C2; font-size: 13px; }

.page-overlay {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(11,18,32,.44);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}
body.menu-open .page-overlay,
body.search-open .page-overlay { opacity: 1; visibility: visible; pointer-events: auto; }

.mosaic-menu {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: #F3F6F9;
    overflow-y: auto;
    transform: translateY(-101%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .32s ease, visibility .32s ease;
}
body.menu-open .mosaic-menu { transform: translateY(0); visibility: visible; pointer-events: auto; }
.mosaic-shell { padding: 28px 0 48px; }
.mosaic-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; position: sticky; top: 0; padding: 12px 0 18px; background: rgba(243,246,249,.96); backdrop-filter: blur(10px); z-index: 2; }
.mosaic-brand { min-height: 44px; display: flex; align-items: center; gap: 12px; font-weight: 900; color: var(--title); }
.mosaic-brand img { max-height: 30px; max-width: 170px; width: auto; }
.layer-close { min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--blue); font-weight: 800; cursor: pointer; }
.mosaic-groups { display: grid; gap: 30px; }
.mosaic-group h2 { font-size: 18px; margin-bottom: 14px; }
.mosaic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mosaic-item { min-height: 120px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.mosaic-item strong { color: var(--title); }
.mosaic-item span { color: var(--muted); font-size: 14px; line-height: 1.6; }
.mosaic-item:hover { border-color: rgba(37,99,235,.38); transform: translateY(-1px); }

.search-layer { position: fixed; z-index: 125; inset: 0; visibility: hidden; pointer-events: none; }
.search-card { width: min(760px, calc(100% - 32px)); margin: 100px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 80px rgba(11,18,32,.22); padding: 24px; opacity: 0; transform: translateY(-18px); transition: opacity .22s ease, transform .22s ease; }
body.search-open .search-layer { visibility: visible; pointer-events: auto; }
body.search-open .search-card { opacity: 1; transform: translateY(0); }
.search-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.search-head h2 { margin: 6px 0 18px; }
.search-box { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; min-height: 54px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.search-box span { color: var(--blue); font-weight: 800; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--title); }
.search-presets { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 16px; }
.search-presets a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--blue); font-weight: 800; background: #fff; }
.search-presets a[hidden] { display: none; }
.search-hint { color: var(--subtle); font-size: 13px; margin: 14px 0 0; }

.mobile-nav { display: none; }

@media (max-width: 900px) {
    .pulse-layout, .hero-card, .app-panel { grid-template-columns: 1fr; }
    .three-grid, .author-grid, .step-grid { grid-template-columns: 1fr 1fr; }
    .number-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .desktop-tabs { display: none; }
    .site-main { padding-top: calc(var(--header-mobile) + 22px); padding-bottom: 70px; }
    .command-inner { gap: 10px; }
    .command-logo { min-width: 0; max-width: 150px; overflow: hidden; }
    .command-logo img { max-width: 150px; }
    .command-app { padding: 0 14px; font-size: 14px; }
    .status-brand span { display: none; }
    .page-hero, .home-cover { padding-top: 12px; }
    .section { padding: 28px 0; }
    .section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
    .topic-item { grid-template-columns: 18px 1fr; gap: 8px 12px; padding: 16px 0; }
    .topic-item span, .topic-item a { grid-column: 2; }
    .topic-item a { min-height: 32px; }
    .three-grid, .slice-grid, .author-grid, .step-grid, .index-grid, .contact-grid { grid-template-columns: 1fr; }
    .mural-grid { grid-template-columns: 1fr; }
    .number-grid { grid-template-columns: 1fr 1fr; }
    .number-card { min-height: 160px; }
    .directory-row { grid-template-columns: 54px 1fr; }
    .directory-row a { grid-column: 2; }
    .file-row { grid-template-columns: 44px 1fr; gap: 12px; }
    .file-row a { grid-column: 2; }
    .feature-list { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
    .mosaic-grid { grid-template-columns: repeat(2, 1fr); }
    .mosaic-item { min-height: 132px; padding: 16px; }
    .search-layer { background: var(--bg); overflow-y: auto; }
    .search-card { width: 100%; min-height: 100%; margin: 0; border: 0; border-radius: 0; box-shadow: none; padding: 24px 16px 90px; }
    .search-head { padding-top: env(safe-area-inset-top); }
    .mobile-nav {
        position: fixed;
        z-index: 95;
        left: 0; right: 0; bottom: 0;
        min-height: calc(50px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        background: rgba(255,255,255,.98);
        border-top: 1px solid var(--line);
        box-shadow: 0 -8px 24px rgba(11,18,32,.06);
    }
    .mobile-nav a { min-height: 50px; display: flex; align-items: center; justify-content: center; color: var(--subtle); font-size: 13px; font-weight: 800; }
    .mobile-nav a.is-current { color: var(--blue); }
    body.menu-open .mobile-nav,
    body.search-open .mobile-nav { z-index: 90; }
    .footer-shell { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
}

@media (max-width: 480px) {
    .shell { width: min(100% - 32px, 1180px); }
    .home-cover-card, .hero-card, .content-card, .policy-card, .app-panel { padding: 18px; }
    .number-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .mosaic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mosaic-item { min-height: 138px; }
    .mosaic-item span { font-size: 13px; }
    .episode-row { grid-template-columns: 62px 1fr; }
}

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