:root {
    --page: #F5FAFE;
    --deep: #E7F2FA;
    --surface: #FFFFFF;
    --secondary: #D7EAF6;
    --title: #16324A;
    --text: #2A4156;
    --muted: #4E6A80;
    --soft: #6E8899;
    --brand: #4AA3E0;
    --bright: #6BB8EC;
    --navy: #1B4A6E;
    --mist: #EAF5FC;
    --border: rgba(74, 163, 224, 0.16);
    --border-strong: rgba(74, 163, 224, 0.42);
    --shadow: 0 12px 28px rgba(27, 74, 110, 0.08);
    --radius: 12px;
    --max: 1120px;
    --top-height: 122px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    margin: 0;
    min-width: 0;
    background: var(--page);
    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;
    overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { max-width: 100%; display: block; }
.shell { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 120; background: var(--surface); color: var(--navy); padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border-strong); }
.skip-link:focus { top: 10px; }
.top-stack { position: fixed; inset: 0 0 auto 0; z-index: 60; }
.thinbar { height: 22px; background: var(--navy); color: #fff; font-size: 12px; }
.thinbar-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; }
.text-button { min-width: 52px; height: 22px; border: 0; background: transparent; color: #fff; cursor: pointer; padding: 0 6px; }
.masthead { height: 60px; background: var(--surface); border-bottom: 1px solid var(--border); }
.masthead-inner { height: 60px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.brand-link { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; }
.brand-image-slot { min-width: 48px; display: inline-flex; align-items: center; min-height: 44px; color: var(--title); font-size: 16px; }
.brand-logo, .drawer-logo, .footer-logo { height: 28px; width: auto; object-fit: contain; object-position: center; }
.drawer-toggle { justify-self: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--mist); color: var(--navy); cursor: pointer; font-weight: 700; }
.app-link { justify-self: end; min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; background: linear-gradient(135deg,#6BB8EC 0%,#4AA3E0 55%,#1B4A6E 100%); color: #fff; font-size: 14px; font-weight: 700; }
.section-tabs { height: 40px; background: var(--mist); border-bottom: 1px solid var(--border); }
.tabs-inner { height: 40px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.tab-link { min-height: 32px; padding: 5px 16px; border-radius: 9px; color: var(--navy); font-size: 13px; display: inline-flex; align-items: center; }
.tab-link.is-current { background: var(--brand); color: #fff; }
.page-main { padding-top: calc(var(--top-height) + 28px); min-height: 70vh; }
.page-hero { padding: 24px 0 10px; }
.eyebrow { margin: 0 0 8px; color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { color: var(--title); line-height: 1.3; margin-top: 0; }
h1 { font-size: 24px; margin-bottom: 12px; }
h2 { font-size: 20px; margin-bottom: 12px; }
h3 { font-size: 16px; margin-bottom: 8px; }
p { margin-top: 0; }
.lead { max-width: 820px; color: var(--muted); font-size: 16px; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; 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; font-weight: 800; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg,#6BB8EC 0%,#4AA3E0 55%,#1B4A6E 100%); color: #fff; }
.btn-secondary { background: #fff; color: var(--navy); border: 1px solid var(--border-strong); }
.btn:hover, .tab-link:hover, .publication-drawer a:hover, .mobile-bar a:hover, .app-link:hover { filter: brightness(.98); transform: translateY(-1px); }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(74,163,224,.34); outline-offset: 3px; }
.section { padding: 26px 0; }
.section.alt { background: var(--deep); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head p { max-width: 680px; color: var(--muted); margin-bottom: 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.card-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.card, .prose-card, .issue-card, .note-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; min-width: 0; }
.card p, .note-card p, .issue-card p { color: var(--muted); }
.card a.inline-link, .prose-card a.inline-link { color: var(--navy); font-weight: 800; border-bottom: 1px solid var(--border-strong); }
.image-slot { width: 100%; min-height: 160px; background: var(--mist); border: 1px solid var(--border); border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 14px; }
.image-slot.hero { height: 260px; }
.image-slot.medium { height: 200px; }
.image-slot.short { height: 180px; }
.image-slot.app-shot { max-height: 360px; min-height: 260px; }
.image-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.cover-copy { text-align: center; max-width: 760px; margin: 18px auto 0; }
.cover-copy .button-row { justify-content: center; }
.numbered-list, .shelf-list, .timeline, .plain-list { list-style: none; padding: 0; margin: 0; }
.numbered-list li { display: grid; grid-template-columns: 46px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); }
.numbered-list li:first-child { border-top: 0; }
.numbered-list strong.num { color: var(--brand); font-size: 18px; }
.shelf-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.shelf-list li { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.timeline { border-left: 2px solid var(--border-strong); margin-left: 10px; padding-left: 22px; }
.timeline li { position: relative; padding: 0 0 22px; }
.timeline li::before { content: ""; position: absolute; left: -29px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--mist); }
.status { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 9px; border-radius: 999px; background: var(--mist); color: var(--navy); border: 1px solid var(--border); font-size: 12px; font-weight: 800; }
.kicker-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.kicker { display: inline-flex; padding: 4px 9px; border-radius: 999px; background: var(--mist); color: var(--navy); font-size: 12px; border: 1px solid var(--border); }
.prose-card { max-width: 900px; }
.prose-card + .prose-card { margin-top: 16px; }
.prose-card p:last-child { margin-bottom: 0; }
.split { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(260px,.85fr); gap: 18px; align-items: start; }
.app-intro { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,.55fr); gap: 18px; align-items: center; }
.icon-row { display: flex; gap: 12px; align-items: center; }
.icon-slot { width: 48px; height: 48px; border-radius: 12px; background: var(--mist); border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; }
.icon-slot img { width: 48px; height: 48px; object-fit: contain; }
.faq-list details { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 0 16px; margin-bottom: 10px; }
.faq-list summary { cursor: pointer; min-height: 52px; display: flex; align-items: center; color: var(--title); font-weight: 800; }
.faq-list p { color: var(--muted); padding-bottom: 14px; }
.meta-note { padding: 12px 14px; background: var(--mist); border-left: 3px solid var(--brand); color: var(--muted); border-radius: 8px; }
.index-links { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.index-links a { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px; min-height: 64px; display: flex; align-items: center; color: var(--navy); font-weight: 800; }
.site-footer { background: var(--navy); color: var(--deep); border-top: 1px solid rgba(234,245,252,.25); margin-top: 36px; padding: 34px 0 calc(22px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4,1fr); gap: 22px; }
.footer-brand p { color: #E7F2FA; max-width: 440px; }
.footer-logo-row { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; font-size: 16px; font-weight: 800; }
.site-footer h2 { color: #fff; font-size: 13px; margin-bottom: 10px; }
.site-footer a { display: block; color: #E7F2FA; font-size: 13px; min-height: 30px; }
.footer-bottom { border-top: 1px solid rgba(234,245,252,.18); margin-top: 22px; padding-top: 18px; font-size: 13px; }
.overlay { position: fixed; inset: 0; z-index: 70; background: rgba(22,50,74,.36); opacity: 0; visibility: hidden; pointer-events: none; transition: .2s ease; }
.overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.publication-drawer { position: fixed; z-index: 80; top: 0; right: 0; width: min(400px, 86vw); height: 100dvh; background: #fff; box-shadow: -18px 0 50px rgba(22,50,74,.16); transform: translateX(104%); visibility: hidden; pointer-events: none; transition: .24s ease; overflow-y: auto; padding: 18px; }
.publication-drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #fff; z-index: 2; }
.drawer-brand { display: flex; align-items: center; gap: 10px; color: var(--title); }
.close-button { min-width: 44px; min-height: 44px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--mist); color: var(--navy); cursor: pointer; }
.drawer-group { padding: 16px 0; border-bottom: 1px solid var(--border); }
.drawer-group h2 { font-size: 13px; color: var(--soft); margin-bottom: 8px; }
.drawer-group a { display: block; padding: 10px 9px; border-radius: 10px; }
.drawer-group a span { display: block; font-weight: 800; color: var(--title); }
.drawer-group a small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.search-layer { position: fixed; z-index: 82; top: 82px; left: 50%; width: min(calc(100% - 32px), 760px); transform: translate(-50%, -16px); opacity: 0; visibility: hidden; pointer-events: none; transition: .2s ease; }
.search-layer.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.search-card { background: #fff; border: 1px solid var(--border-strong); box-shadow: var(--shadow); border-radius: 14px; padding: 18px; }
.search-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.search-presets { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.search-presets a { min-height: 44px; background: var(--mist); border: 1px solid var(--border); border-radius: 10px; display: grid; place-items: center; color: var(--navy); font-weight: 800; }
.search-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.mobile-bar { display: none; }
@media (max-width: 860px) {
    :root { --top-height: 82px; }
    .section-tabs { display: none; }
    .card-grid { grid-template-columns: 1fr; }
    .card-grid.two, .shelf-list, .split, .app-intro { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2,1fr); }
    .footer-brand { grid-column: 1 / -1; }
    .index-links { grid-template-columns: repeat(2,1fr); }
    .page-main { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    .site-footer { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
    .mobile-bar { position: fixed; z-index: 58; left: 0; right: 0; bottom: 0; height: calc(48px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--border-strong); display: grid; grid-template-columns: repeat(5,1fr); }
    .mobile-bar a { min-width: 0; height: 48px; display: grid; place-items: center; color: var(--navy); font-size: 13px; }
    .mobile-bar a.is-current { background: var(--brand); color: #fff; }
}
@media (max-width: 640px) {
    .shell { width: calc(100% - 32px); }
    .masthead-inner { grid-template-columns: 1fr auto 1fr; gap: 8px; }
    .drawer-toggle, .app-link { padding: 0 12px; }
    .image-slot.hero { height: 260px; }
    .section { padding: 22px 0; }
    .section-head { display: block; }
    .section-head p { margin-top: -4px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
    .search-layer { inset: 0; width: 100%; height: 100dvh; transform: none; background: var(--navy); padding: 18px 16px; }
    .search-layer.is-open { transform: none; }
    .search-card { background: var(--navy); border: 0; box-shadow: none; color: #fff; min-height: 100%; padding: 8px 0; }
    .search-card h2, .search-card .eyebrow, .search-note { color: #fff; }
    .search-presets { grid-template-columns: repeat(2,1fr); }
    .search-presets a { background: #fff; color: var(--navy); }
    .search-card .close-button { background: #fff; }
    .index-links { grid-template-columns: 1fr; }
}
