:root {
    --bg: #F5FAFE;
    --deep-bg: #E7F2FA;
    --surface: #FFFFFF;
    --secondary: #D7EAF6;
    --title: #16324A;
    --text: #2A4156;
    --muted: #4E6A80;
    --soft: #6E8899;
    --brand: #4AA3E0;
    --bright: #6BB8EC;
    --deep: #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;
}
* { 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", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    padding-top: 122px;
}
body.overlay-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--deep); }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid rgba(74,163,224,0.34); outline-offset: 3px; }
.skip-link {
    position: fixed; left: 16px; top: -60px; z-index: 200;
    background: var(--surface); color: var(--deep); padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { top: 8px; }
.topline {
    position: fixed; inset: 0 0 auto 0; height: 22px; z-index: 90;
    background: var(--deep); color: #FFFFFF; font-size: 12px;
}
.topline-inner, .magbar-inner, .section-tabs-inner, .footer-inner, .page-shell {
    width: min(var(--max), calc(100% - 32px)); margin: 0 auto;
}
.topline-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; }
.text-button {
    min-height: 22px; border: 0; background: transparent; color: #FFFFFF; padding: 0 8px; border-radius: 5px;
}
.magbar {
    position: fixed; top: 22px; left: 0; right: 0; height: 60px; z-index: 88;
    background: var(--surface); border-bottom: 1px solid var(--border);
}
.magbar-inner {
    height: 60px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
}
.brand-home { justify-self: start; min-width: 52px; min-height: 44px; display: inline-flex; align-items: center; }
.brand-logo { height: 28px; width: auto; object-fit: contain; object-position: center; }
.brand-fallback { font-size: 16px; font-weight: 800; letter-spacing: .04em; color: var(--deep); }
.drawer-toggle, .app-link, .icon-button {
    min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px;
}
.drawer-toggle {
    min-width: 80px; border: 1px solid var(--border-strong); background: var(--mist); color: var(--deep); font-size: 14px; font-weight: 700;
}
.app-link { justify-self: end; min-width: 82px; padding: 0 14px; background: linear-gradient(135deg,#6BB8EC 0%,#4AA3E0 55%,#1B4A6E 100%); color: #FFFFFF; font-size: 14px; font-weight: 700; }
.app-link:hover { color: #FFFFFF; filter: brightness(.98); }
.section-tabs {
    position: fixed; top: 82px; left: 0; right: 0; height: 40px; z-index: 84;
    background: var(--mist); border-bottom: 1px solid var(--border);
}
.section-tabs-inner { height: 40px; display: flex; align-items: stretch; justify-content: center; gap: 8px; }
.tab-link { min-width: 92px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; font-size: 13px; color: var(--deep); }
.tab-link.is-active { background: var(--brand); color: #FFFFFF; }
.site-main { min-height: 60vh; }
.page-shell { padding: 36px 0 64px; }
.page-hero { margin-bottom: 28px; }
.eyebrow { margin: 0 0 8px; color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
h1, h2, h3 { color: var(--title); margin-top: 0; }
h1 { font-size: 24px; line-height: 1.3; margin-bottom: 12px; }
h2 { font-size: 20px; line-height: 1.4; margin-bottom: 12px; }
h3 { font-size: 16px; line-height: 1.5; margin-bottom: 8px; }
p { margin: 0 0 14px; }
.lead { max-width: 840px; color: var(--muted); font-size: 16px; }
.section-block { margin-top: 26px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card, .content-card, .policy-section, .method-card, .faq-item, .index-card, .note-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.card, .content-card, .policy-section, .method-card, .faq-item, .index-card, .note-card { padding: 20px; }
.card p:last-child, .content-card p:last-child, .policy-section p:last-child, .method-card p:last-child, .faq-item p:last-child, .index-card p:last-child, .note-card p:last-child { margin-bottom: 0; }
.media-slot { width: 100%; background: var(--mist); border: 1px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.media-slot .media-image { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.cover-slot { height: 260px; }
.card-slot { height: 180px; margin-bottom: 14px; }
.feature-slot { height: 200px; margin-bottom: 18px; }
.app-slot { height: min(360px, 70vw); max-height: 360px; }
.icon-slot { width: 64px; height: 64px; border-radius: 14px; background: var(--mist); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.icon-slot img { width: 48px; height: 48px; object-fit: contain; }
.cover-copy { text-align: center; max-width: 820px; margin: 22px auto 0; }
.cover-copy h1 { margin-bottom: 8px; }
.brand-subtitle { color: var(--brand); font-weight: 800; letter-spacing: .08em; font-size: 13px; margin-bottom: 6px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.btn { min-height: 44px; padding: 0 18px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg,#6BB8EC 0%,#4AA3E0 55%,#1B4A6E 100%); color: #FFFFFF; }
.btn-primary:hover { color: #FFFFFF; filter: brightness(.98); }
.btn-secondary { background: #FFFFFF; border: 1px solid var(--border-strong); color: var(--deep); }
.feature-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: 20px; align-items: start; }
.issue-list, .number-list, .shelf-list, .timeline, .simple-list { margin: 0; padding: 0; list-style: none; }
.issue-list { display: grid; gap: 10px; }
.issue-list li { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--border); }
.issue-list li:last-child { border-bottom: 0; }
.issue-no, .big-no { color: var(--brand); font-weight: 800; letter-spacing: .08em; }
.shelf-list { display: grid; gap: 10px; }
.shelf-list a { display: flex; justify-content: space-between; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); min-height: 44px; }
.shelf-list span { color: var(--muted); }
.number-list { display: grid; gap: 12px; }
.number-list li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.big-no { font-size: 20px; line-height: 1.2; }
.timeline { position: relative; margin-left: 12px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 1px; background: var(--border-strong); }
.timeline li { position: relative; padding: 0 0 22px 34px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px var(--mist); }
.status { display: inline-flex; min-height: 28px; align-items: center; padding: 0 10px; border-radius: 999px; background: var(--mist); color: var(--deep); font-size: 12px; font-weight: 800; }
.note-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.note-card { border-top: 3px solid var(--brand); }
.app-panel { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); gap: 24px; align-items: center; }
.app-heading { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.app-heading h2 { margin-bottom: 2px; }
.faq-list { display: grid; gap: 12px; }
.faq-item h2, .faq-item h3 { margin-bottom: 8px; }
.index-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.index-card a { color: var(--deep); font-weight: 800; }
.policy-stack, .method-stack { display: grid; gap: 16px; }
.policy-section, .method-card { box-shadow: none; }
.callout { padding: 18px; background: var(--mist); border: 1px solid var(--border-strong); border-radius: var(--radius); }
.meta-line { color: var(--soft); font-size: 13px; }
.simple-list { display: grid; gap: 8px; }
.simple-list li { padding-left: 18px; position: relative; }
.simple-list li::before { content: "•"; color: var(--brand); position: absolute; left: 0; font-weight: 900; }
.site-footer { background: var(--deep); color: #E7F2FA; border-top: 1px solid rgba(234,245,252,.24); }
.footer-inner { padding: 34px 0 24px; }
.footer-brand { padding-bottom: 22px; border-bottom: 1px solid rgba(234,245,252,.18); }
.footer-brand-line { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-brand-line strong { font-size: 16px; color: #FFFFFF; }
.footer-brand-line span { font-size: 13px; }
.footer-brand p { max-width: 820px; font-size: 13px; color: #E7F2FA; }
.footer-logo { filter: brightness(0) invert(1); }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 22px 0; }
.footer-grid h2 { color: #FFFFFF; font-size: 13px; margin-bottom: 10px; }
.footer-grid a { display: block; min-height: 32px; padding: 4px 0; font-size: 13px; color: #E7F2FA; }
.footer-grid a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-legal { padding-top: 14px; border-top: 1px solid rgba(234,245,252,.18); font-size: 13px; }
.page-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(22,50,74,.32); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.page-overlay.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.drawer-panel { position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 86vw; z-index: 110; background: var(--surface); box-shadow: -18px 0 40px rgba(22,50,74,.18); transform: translateX(102%); visibility: hidden; pointer-events: none; transition: transform .24s ease, visibility .24s ease; overflow-y: auto; }
.drawer-panel.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { position: sticky; top: 0; z-index: 2; min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
.drawer-brand { display: flex; align-items: center; gap: 10px; color: var(--deep); }
.icon-button { border: 1px solid var(--border-strong); background: var(--mist); color: var(--deep); padding: 0 14px; }
.drawer-groups { padding: 12px 16px 28px; }
.drawer-groups section { padding: 14px 0; border-bottom: 1px solid var(--border); }
.drawer-groups section:last-child { border-bottom: 0; }
.drawer-groups h2 { font-size: 13px; color: var(--soft); margin-bottom: 8px; }
.drawer-groups a { display: grid; grid-template-columns: 72px 1fr; gap: 10px; align-items: start; min-height: 52px; padding: 10px 8px; border-radius: 8px; }
.drawer-groups a:hover { background: var(--mist); }
.drawer-groups a strong { color: var(--deep); font-size: 14px; }
.drawer-groups a span { color: var(--muted); font-size: 13px; line-height: 1.55; }
.search-layer { position: fixed; top: 82px; left: 0; right: 0; z-index: 112; visibility: hidden; pointer-events: none; transform: translateY(-12px); opacity: 0; transition: .2s ease; }
.search-layer.is-open { visibility: visible; pointer-events: auto; transform: translateY(0); opacity: 1; }
.search-card { width: min(760px, calc(100% - 32px)); margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 0 0 14px 14px; box-shadow: var(--shadow); padding: 20px; }
.search-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.search-head strong { color: var(--title); font-size: 18px; }
.search-head p { color: var(--muted); margin: 2px 0 0; }
.search-field-label { display: block; color: var(--soft); font-size: 13px; margin: 14px 0 6px; }
.search-field { width: 100%; min-height: 44px; border: 1px solid var(--border-strong); border-radius: 10px; padding: 0 12px; background: #FFFFFF; color: var(--text); }
.search-presets { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.search-presets a { min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 10px; color: var(--deep); background: var(--mist); }
.search-empty { color: var(--muted); margin: 12px 0 0; }
.mobile-bottom { display: none; }
@media (max-width: 820px) {
    body { padding-top: 82px; padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
    .section-tabs { display: none; }
    .page-shell, .topline-inner, .magbar-inner, .footer-inner { width: calc(100% - 32px); }
    .magbar-inner { grid-template-columns: minmax(56px,1fr) auto minmax(56px,1fr); gap: 8px; }
    .app-link { min-width: 0; padding: 0 10px; }
    .drawer-toggle { min-width: 72px; }
    .card-grid, .card-grid.two, .note-grid, .index-grid, .footer-grid { grid-template-columns: 1fr; }
    .feature-layout, .app-panel { grid-template-columns: 1fr; }
    .cover-slot { height: 220px; }
    .card-slot { height: 170px; }
    .feature-slot { height: 190px; }
    .site-footer { padding-bottom: 48px; }
    .footer-grid { gap: 8px; }
    .footer-grid section { padding-bottom: 12px; border-bottom: 1px solid rgba(234,245,252,.12); }
    .mobile-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 86; min-height: calc(48px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--border); }
    .mobile-bottom a { min-width: 0; min-height: 48px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--deep); }
    .mobile-bottom a.is-active { background: var(--brand); color: #FFFFFF; }
    .search-layer { inset: 0; top: 0; background: var(--deep); color: #FFFFFF; overflow-y: auto; }
    .search-card { width: 100%; min-height: 100%; border: 0; border-radius: 0; box-shadow: none; margin: 0; background: var(--deep); color: #FFFFFF; padding: 28px 16px 80px; }
    .search-head strong, .search-head p, .search-field-label { color: #FFFFFF; }
    .search-head .icon-button { background: rgba(255,255,255,.12); color: #FFFFFF; border-color: rgba(255,255,255,.32); }
    .search-field { background: #FFFFFF; }
    .search-presets a { background: #FFFFFF; color: var(--deep); border-color: rgba(255,255,255,.2); }
    .search-empty { color: #E7F2FA; }
}
@media (max-width: 520px) {
    .page-shell { padding-top: 26px; }
    .cover-slot { height: 190px; }
    .card, .content-card, .policy-section, .method-card, .faq-item, .index-card, .note-card { padding: 16px; }
    .drawer-groups a { grid-template-columns: 64px 1fr; }
    .issue-list li { grid-template-columns: 36px 1fr; }
    .number-list li { grid-template-columns: 44px 1fr; }
}
