:root {
    --bg: #F5FAFE;
    --bg-deep: #E7F2FA;
    --surface: #FFFFFF;
    --surface-2: #D7EAF6;
    --title: #16324A;
    --text: #2A4156;
    --muted: #4E6A80;
    --soft: #6E8899;
    --blue: #4AA3E0;
    --blue-light: #6BB8EC;
    --blue-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;
    --shell: 1120px;
}
* { 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: 15px; line-height: 1.7; padding-top: 122px; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(74,163,224,0.45); outline-offset: 2px; }
.shell { width: min(calc(100% - 32px), var(--shell)); margin: 0 auto; }
.thinbar { position: fixed; inset: 0 0 auto 0; height: 22px; z-index: 900; background: var(--blue-deep); color: #fff; font-size: 12px; }
.thinbar-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; }
.thinbar-brand { white-space: nowrap; }
.text-button { min-width: 44px; height: 22px; padding: 0 2px; border: 0; background: transparent; color: #fff; font-size: 12px; }
.masthead { position: fixed; top: 22px; left: 0; right: 0; height: 60px; z-index: 900; background: #fff; border-bottom: 1px solid var(--border); }
.masthead-inner { height: 60px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.mast-logo { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; color: var(--blue-deep); font-size: 16px; font-weight: 800; }
.mast-logo img { height: 28px; width: auto; object-fit: contain; }
.drawer-button { justify-self: center; min-width: 64px; height: 44px; padding: 0 15px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--mist); color: var(--blue-deep); font-weight: 700; }
.app-link { justify-self: end; min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; color: #fff; background: linear-gradient(135deg,#6BB8EC 0%,#4AA3E0 55%,#1B4A6E 100%); font-size: 14px; font-weight: 700; }
.section-tabs { position: fixed; top: 82px; left: 0; right: 0; height: 40px; z-index: 880; background: var(--mist); border-bottom: 1px solid var(--border); }
.tab-row { height: 40px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.tab-row a { height: 32px; min-width: 80px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: var(--blue-deep); font-size: 13px; }
.tab-row a.is-current { background: var(--blue); color: #fff; }
.site-main { min-height: 60vh; }
.page { padding: 34px 0 58px; }
.page-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 28px; }
.kicker { color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1,h2,h3,p { margin-top: 0; }
h1 { margin-bottom: 12px; color: var(--title); font-size: 24px; line-height: 1.3; letter-spacing: -.02em; }
h2 { margin-bottom: 10px; color: var(--title); font-size: 20px; line-height: 1.4; }
h3 { margin-bottom: 8px; color: var(--title); font-size: 16px; line-height: 1.45; }
p { margin-bottom: 14px; }
.lead { max-width: 820px; color: var(--muted); font-size: 16px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn { min-height: 42px; padding: 0 18px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; white-space: nowrap; }
.btn-primary { color: #fff; background: linear-gradient(135deg,#6BB8EC 0%,#4AA3E0 55%,#1B4A6E 100%); box-shadow: var(--shadow); }
.btn-secondary { color: var(--blue-deep); background: #fff; border: 1px solid var(--border-strong); }
.btn:hover, .app-link:hover { transform: translateY(-1px); }
.cover-slot, .media-slot, .media-slot-short, .media-slot-tall { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); background: var(--mist); overflow: hidden; }
.cover-slot { height: 260px; }
.media-slot { height: 200px; }
.media-slot-short { height: 180px; }
.media-slot-tall { height: min(360px, 58vw); }
.cover-slot img, .media-slot img, .media-slot-short img, .media-slot-tall img { width: 100%; height: 100%; object-fit: contain; object-position: center; background: #fff; }
.is-empty { background: linear-gradient(145deg, #fff, var(--mist)); position: relative; }
.is-empty::after { content: "91 KAN"; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(27,74,110,.18); font-weight: 900; letter-spacing: .14em; }
.section-block { margin-top: 28px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.section-head p { margin: 0; color: var(--muted); max-width: 620px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.two-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.card { min-width: 0; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.card .media-slot, .card .media-slot-short { margin-bottom: 14px; }
.numbered-card { position: relative; padding-left: 64px; }
.big-number { position: absolute; left: 18px; top: 16px; color: var(--blue); font-size: 26px; line-height: 1; font-weight: 900; }
.issue-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 18px; align-items: stretch; }
.issue-list { display: grid; gap: 10px; }
.issue-list a { min-height: 62px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; display: grid; grid-template-columns: 42px 1fr; gap: 10px; align-items: center; }
.issue-list b { color: var(--blue); font-size: 16px; }
.shelf { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
.shelf a, .shelf-card { min-height: 150px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.shelf small { color: var(--soft); }
.timeline { position: relative; display: grid; gap: 16px; padding-left: 24px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--surface-2); }
.timeline article { position: relative; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.timeline article::before { content: ""; position: absolute; left: -23px; top: 20px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px var(--mist); }
.status { display: inline-flex; min-height: 28px; padding: 0 10px; align-items: center; border-radius: 999px; background: var(--mist); color: var(--blue-deep); font-size: 12px; font-weight: 700; }
.prose { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.prose h2 { margin-top: 28px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.note-strip { padding: 14px 16px; border-left: 4px solid var(--blue); border-radius: 8px; background: var(--mist); color: var(--blue-deep); }
.app-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px; align-items: center; }
.icon-mark { width: 48px; height: 48px; border-radius: 12px; object-fit: contain; background: #fff; border: 1px solid var(--border); }
.faq-list { display: grid; gap: 12px; }
.faq-item { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.faq-item h2 { font-size: 16px; }
.faq-item p { margin-bottom: 0; }
.definition-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.definition-grid article { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.site-footer { background: var(--blue-deep); color: #E7F2FA; border-top: 1px solid rgba(234,245,252,.35); font-size: 13px; }
.footer-inner { padding: 30px 0 28px; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.footer-brand img { height: 28px; width: auto; object-fit: contain; filter: brightness(0) invert(1); }
.footer-brand div { display: flex; flex-direction: column; line-height: 1.2; }
.footer-brand span { opacity: .8; font-size: 12px; }
.footer-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.footer-grid h2 { color: #fff; font-size: 13px; margin-bottom: 8px; }
.footer-grid a { display: block; min-height: 30px; color: #E7F2FA; opacity: .9; }
.footer-note { margin: 22px 0 6px; max-width: 900px; color: #E7F2FA; opacity: .9; }
.footer-copy { margin: 0; opacity: .7; }
.overlay { position: fixed; inset: 0; z-index: 1050; background: rgba(22,50,74,.42); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.overlay.is-open { opacity: 1; pointer-events: auto; }
.issue-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1150; width: min(400px,86vw); background: #fff; color: var(--text); transform: translateX(104%); visibility: hidden; pointer-events: none; transition: transform .22s ease, visibility .22s step-end; box-shadow: -18px 0 42px rgba(27,74,110,.15); overflow-y: auto; }
.issue-drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; transition: transform .22s ease, visibility 0s; }
.drawer-head { position: sticky; top: 0; z-index: 2; min-height: 64px; padding: 10px 16px; border-bottom: 1px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer-brand { display: flex; align-items: center; gap: 10px; color: var(--blue-deep); }
.drawer-brand img { height: 28px; width: auto; object-fit: contain; }
.icon-button { min-height: 44px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 999px; background: #fff; color: var(--blue-deep); }
.drawer-groups { padding: 14px 16px 30px; }
.drawer-groups section + section { margin-top: 20px; }
.drawer-groups h2 { font-size: 13px; color: var(--blue); margin: 0 0 8px; }
.drawer-groups a { min-height: 58px; padding: 9px 10px; display: grid; gap: 2px; border-radius: 10px; }
.drawer-groups a:hover { background: var(--mist); }
.drawer-groups strong { color: var(--title); }
.drawer-groups span { color: var(--muted); font-size: 12px; }
.search-layer { position: fixed; top: 82px; left: 0; right: 0; z-index: 1100; padding: 14px 16px 22px; background: rgba(22,50,74,.26); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
.search-layer.is-open { opacity: 1; pointer-events: auto; }
.search-card { width: min(760px,100%); margin: 0 auto; padding: 18px; border: 1px solid var(--border-strong); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.search-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.search-head h2 { margin: 0; }
.search-label { display: block; margin: 10px 0 8px; color: var(--muted); }
.search-card input { width: 100%; height: 44px; padding: 0 13px; border: 1px solid var(--border-strong); border-radius: 10px; color: var(--title); background: var(--bg); }
.preset-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.preset-links a { min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--mist); color: var(--blue-deep); }
.search-empty { margin: 12px 0 0; color: var(--muted); }
.mobile-bottom { display: none; }
@media (max-width: 820px) {
    body { padding-top: 82px; padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
    .section-tabs { display: none; }
    .masthead-inner { gap: 8px; }
    .drawer-button { min-width: 58px; padding: 0 12px; }
    .app-link { padding: 0 12px; }
    .page { padding-top: 24px; }
    .card-grid, .shelf { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .issue-grid, .app-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .mobile-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 600; height: calc(48px + 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(--border); }
    .mobile-bottom a { min-width: 0; min-height: 48px; display: flex; align-items: center; justify-content: center; color: var(--blue-deep); font-size: 12px; }
    .mobile-bottom a.is-current { background: var(--blue); color: #fff; }
    .search-layer { top: 0; bottom: 0; padding: 0; background: var(--blue-deep); }
    .search-card { width: 100%; min-height: 100%; margin: 0; padding: 28px 16px; border: 0; border-radius: 0; background: var(--blue-deep); color: #fff; box-shadow: none; }
    .search-card h2, .search-card .search-label { color: #fff; }
    .search-card .icon-button { border-color: rgba(255,255,255,.45); background: transparent; color: #fff; }
    .search-card input { border-color: rgba(255,255,255,.35); background: #fff; }
    .preset-links a { background: #fff; color: var(--blue-deep); }
    .search-empty { color: #fff; }
}
@media (max-width: 620px) {
    .shell { width: min(calc(100% - 32px), var(--shell)); }
    .card-grid, .two-grid, .definition-grid, .shelf { grid-template-columns: 1fr; }
    .section-head { align-items: flex-start; flex-direction: column; gap: 6px; }
    .cover-slot { height: 260px; }
    .media-slot { height: 200px; }
    .media-slot-short { height: 180px; }
    .prose { padding: 18px; }
    .issue-list a { grid-template-columns: 36px 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
