:root {
    --bg: #FFFFFF;
    --deep-bg: #F5F7FA;
    --content-bg: #FFFFFF;
    --soft-bg: #EEF1F6;
    --title: #0A1628;
    --text: #1E2A3A;
    --muted: #4A5568;
    --assist: #718096;
    --brand: #0033A0;
    --bright: #0052CC;
    --deep-blue: #002066;
    --line: rgba(0, 51, 160, 0.14);
    --shadow: 0 12px 36px rgba(0, 33, 102, 0.08);
    --max: 1220px;
    --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    margin: 0;
    min-width: 0;
    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.75;
    overflow-x: hidden;
}
html.layer-lock, body.layer-lock { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible {
    outline: 3px solid rgba(0, 82, 204, 0.28);
    outline-offset: 2px;
}

.site-header { position: fixed; inset: 0 0 auto; z-index: 1000; }
.spine-line { height: 18px; background: var(--deep-blue); color: #fff; }
.top-inner, .cover-inner, .tab-inner, .section-inner, .footer-inner {
    width: min(calc(100% - 32px), var(--max));
    margin: 0 auto;
}
.top-inner {
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    line-height: 1;
}
.spine-brand { letter-spacing: .06em; font-weight: 700; }
.top-search-button {
    position: relative;
    height: 18px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 11px;
}
.top-search-button::after { content: ""; position: absolute; inset: -13px -8px; }
.cover-bar { height: 60px; background: #fff; border-bottom: 1px solid var(--line); }
.cover-inner {
    height: 60px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
}
.logo-link { justify-self: start; min-width: 72px; display: inline-flex; align-items: center; height: 44px; }
.brand-logo, .footer-logo, .catalog-logo { display: block; object-fit: contain; object-position: left center; width: auto; max-width: 132px; }
.brand-logo { height: 34px; }
.brand-logo-fallback { font-size: 25px; line-height: 1; font-weight: 900; letter-spacing: -.04em; color: var(--deep-blue); }
.catalog-button, .app-entry {
    min-height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.catalog-button {
    border: 1px solid var(--brand);
    background: #fff;
    color: var(--brand);
    padding: 0 20px;
}
.app-entry {
    justify-self: end;
    padding: 0 18px;
    color: #fff;
    background: linear-gradient(135deg, #0052CC 0%, #0033A0 50%, #002066 100%);
}
.tab-strip { height: 40px; background: var(--deep-bg); border-bottom: 1px solid var(--line); }
.tab-inner { height: 40px; display: flex; align-items: center; gap: 6px; }
.tab-inner a { min-height: 32px; padding: 4px 14px; display: inline-flex; align-items: center; border-radius: 8px; color: var(--muted); font-weight: 700; }
.tab-inner a:hover { color: var(--brand); background: #fff; }
.tab-inner a.active { color: #fff; background: var(--brand); }

.site-main { padding-top: 118px; min-height: 70vh; }
.section { padding: 64px 0; }
.section.compact { padding: 44px 0; }
.section.soft { background: var(--deep-bg); }
.section.blue-soft { background: var(--soft-bg); }
.section-title-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.eyebrow { color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
h1, h2, h3 { color: var(--title); line-height: 1.25; margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(28px, 4vw, 32px); letter-spacing: -.02em; }
h2 { margin-bottom: 14px; font-size: clamp(22px, 3vw, 27px); }
h3 { margin-bottom: 8px; font-size: 18px; }
p { margin: 0 0 16px; }
.lead { max-width: 820px; color: var(--muted); font-size: 17px; }
.muted { color: var(--muted); }
.small-note { color: var(--assist); font-size: 14px; }

.hero { padding: 34px 0 58px; }
.hero-media, .media-slot {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #F8FAFD 0%, #EEF3FA 100%);
    overflow: hidden;
}
.hero-media { min-height: 220px; max-height: 300px; display: flex; align-items: center; justify-content: center; }
.hero-media img { width: 100%; height: 100%; max-height: 300px; object-fit: contain; object-position: center; }
.hero-fallback { min-height: 240px; width: 100%; display: flex; align-items: center; justify-content: center; padding: 28px; text-align: center; }
.hero-fallback strong { color: var(--deep-blue); font-size: clamp(28px, 5vw, 52px); }
.hero-copy { padding-top: 24px; max-width: 920px; }
.hero-copy .kicker { display: block; margin-bottom: 6px; color: var(--brand); font-weight: 800; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button-primary, .button-secondary, .text-link {
    min-height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}
.button-primary { padding: 10px 18px; color: #fff; background: linear-gradient(135deg, #0052CC 0%, #0033A0 50%, #002066 100%); }
.button-secondary { padding: 10px 18px; color: var(--brand); border: 1px solid var(--brand); background: #fff; }
.text-link { padding: 8px 0; color: var(--brand); }

.card-grid { display: grid; gap: 18px; }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
    background: var(--content-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: 0 8px 24px rgba(0, 33, 102, 0.045);
    min-width: 0;
}
.card:hover { border-color: rgba(0, 82, 204, .28); }
.card p:last-child { margin-bottom: 0; }
.card .tag { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 9px; border-radius: 7px; color: #fff; background: var(--bright); font-size: 12px; font-weight: 800; margin-bottom: 12px; }
.card .tag.deep { background: var(--deep-blue); }

.page-card-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.page-mini-card { border-left: 4px solid var(--bright); padding: 18px 20px; background: #fff; border-radius: 10px; box-shadow: var(--shadow); }
.page-mini-card:nth-child(even) { border-left-color: var(--deep-blue); }
.page-mini-card p { color: var(--muted); margin-bottom: 8px; }
.page-mini-card a { color: var(--brand); font-weight: 800; }

.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: 32px; align-items: center; }
.split.reverse { grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr); }
.media-slot { min-height: 220px; display: flex; align-items: center; justify-content: center; padding: 10px; }
.media-slot img { width: 100%; height: 100%; max-height: 240px; object-fit: contain; object-position: center; }
.media-slot.tall { min-height: 330px; }
.media-slot.tall img { max-height: 420px; }
.media-slot::before { content: "17C"; color: rgba(0, 51, 160, .18); font-size: 42px; font-weight: 900; letter-spacing: -.06em; }
.media-slot:has(img)::before { display: none; }

.number-list { display: grid; gap: 12px; counter-reset: item; }
.number-item { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.number-item:last-child { border-bottom: 0; }
.big-number { color: var(--brand); font-size: 34px; line-height: 1; font-weight: 900; letter-spacing: -.04em; }
.number-item p { color: var(--muted); margin-bottom: 6px; }
.number-item a { color: var(--brand); font-weight: 800; }

.shelf-list { display: grid; border-top: 1px solid var(--line); }
.shelf-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.shelf-row .label { color: var(--brand); font-weight: 900; }
.shelf-row p { color: var(--muted); margin: 0; }
.shelf-row a { color: var(--brand); font-weight: 800; min-height: 44px; display: inline-flex; align-items: center; }

.status-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.status-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.status-card .status { display: inline-block; margin-bottom: 10px; color: var(--brand); font-weight: 900; }
.status-card p { color: var(--muted); margin-bottom: 0; }

.article-wrap { width: min(calc(100% - 32px), 920px); margin: 0 auto; padding: 54px 0 72px; }
.article-wrap .intro { color: var(--muted); font-size: 17px; margin-bottom: 32px; }
.article-section { padding: 28px 0; border-top: 1px solid var(--line); }
.article-section:first-of-type { border-top: 0; }
.article-section p { color: var(--text); }
.article-section ul { margin: 12px 0 0; padding-left: 1.2em; }
.article-section li { margin-bottom: 8px; }
.callout { margin: 22px 0; padding: 18px 20px; border-left: 4px solid var(--brand); background: var(--deep-bg); border-radius: 0 10px 10px 0; color: var(--muted); }
.editor-view { border-left: 4px solid var(--bright); background: var(--deep-bg); border-radius: 0 var(--radius) var(--radius) 0; padding: 22px; }
.editor-view strong { color: var(--brand); }

.faq-list { display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.faq-item h2 { font-size: 19px; margin-bottom: 10px; }
.faq-item p { color: var(--muted); margin: 0; }

.site-footer { background: var(--title); color: #A0AEC0; padding: 50px 0 26px; }
.footer-brand-row { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.footer-logo { height: 32px; filter: brightness(0) invert(1); }
.footer-brand-row strong { display: block; color: #fff; font-size: 20px; }
.footer-brand-row span { display: block; color: #A0AEC0; font-size: 12px; }
.footer-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding: 26px 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-groups h2 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.footer-groups a { display: block; min-height: 36px; color: #A0AEC0; }
.footer-groups a:hover { color: #fff; }
.footer-note { margin: 24px 0 6px; max-width: 820px; }
.copyright { margin: 0; color: #7F8EA3; font-size: 13px; }

.screen-mask {
    position: fixed;
    inset: 0;
    z-index: 1080;
    background: rgba(10, 22, 40, .42);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
}
.screen-mask.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.catalog-panel, .search-layer {
    position: fixed;
    z-index: 1100;
    top: 78px;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    width: min(calc(100% - 32px), var(--max));
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 18px 50px rgba(0, 33, 102, .18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.catalog-panel.is-open, .search-layer.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.catalog-panel { max-height: 50vh; overflow: auto; }
.catalog-head, .search-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.catalog-brand { display: flex; align-items: center; gap: 10px; }
.catalog-logo { height: 28px; }
.catalog-brand strong { color: var(--deep-blue); font-size: 18px; }
.layer-close { min-width: 56px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--brand); font-weight: 800; }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 20px; }
.catalog-grid h2 { font-size: 15px; margin-bottom: 8px; color: var(--brand); }
.catalog-grid a { display: block; padding: 10px 0; border-bottom: 1px solid rgba(0,51,160,.08); }
.catalog-grid a:last-child { border-bottom: 0; }
.catalog-grid strong { display: block; color: var(--title); font-size: 15px; }
.catalog-grid span { display: block; color: var(--assist); font-size: 12px; line-height: 1.5; margin-top: 2px; }

.search-layer { max-width: 900px; }
.search-card { padding-bottom: 20px; }
.search-head h2 { font-size: 20px; margin: 2px 0 0; }
.search-appearance { display: block; padding: 20px; }
.search-appearance span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.search-appearance input { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; color: var(--text); background: var(--deep-bg); }
.preset-links { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 20px; }
.preset-links a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--brand); font-weight: 800; background: #fff; }
.preset-links a[hidden] { display: none; }

.mobile-bottom-nav { display: none; }

@media (max-width: 980px) {
    .card-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split, .split.reverse { grid-template-columns: 1fr; }
    .split.reverse .media-slot { order: 2; }
}

@media (max-width: 760px) {
    body { padding-bottom: calc(50px + env(safe-area-inset-bottom)); }
    .site-main { padding-top: 78px; }
    .tab-strip { display: none; }
    .cover-inner { width: 100%; padding: 0 12px; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; }
    .logo-link { min-width: 0; }
    .brand-logo { height: 30px; max-width: 98px; }
    .brand-logo-fallback { font-size: 22px; }
    .catalog-button { padding: 0 12px; white-space: nowrap; }
    .app-entry { padding: 0 10px; white-space: nowrap; font-size: 14px; }
    .section { padding: 46px 0; }
    .hero { padding: 24px 0 44px; }
    .hero-media { min-height: 180px; max-height: 300px; }
    .hero-fallback { min-height: 200px; }
    .section-title-row { align-items: start; flex-direction: column; gap: 8px; }
    .page-card-row, .card-grid.three, .card-grid.four, .card-grid.six, .status-grid { grid-template-columns: 1fr; }
    .media-slot { min-height: 190px; }
    .shelf-row { grid-template-columns: 1fr; gap: 6px; }
    .footer-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
    .site-footer { padding-bottom: 72px; }
    .catalog-panel, .search-layer { top: 78px; width: 100%; border-radius: 0 0 14px 14px; }
    .catalog-panel { max-height: 66vh; }
    .catalog-grid { grid-template-columns: 1fr; padding: 16px; }
    .catalog-grid section { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
    .catalog-grid section:last-child { border-bottom: 0; }
    .search-layer { background: var(--deep-bg); }
    .mobile-bottom-nav {
        position: fixed;
        z-index: 900;
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(50px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        background: #fff;
        border-top: 1px solid var(--line);
        box-shadow: 0 -8px 28px rgba(0, 33, 102, .08);
    }
    .mobile-bottom-nav a { min-width: 0; height: 50px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; font-weight: 800; }
    .mobile-bottom-nav a.active { color: #fff; background: var(--brand); }
    .screen-mask { z-index: 1080; }
}

@media (max-width: 430px) {
    .top-inner, .section-inner, .footer-inner, .article-wrap { width: min(calc(100% - 32px), var(--max)); }
    .top-inner { width: calc(100% - 24px); }
    .catalog-button { font-size: 13px; }
    .app-entry { font-size: 13px; padding-inline: 8px; }
    .footer-groups { grid-template-columns: 1fr 1fr; }
    .number-item { grid-template-columns: 48px minmax(0, 1fr); }
}
