/* 少年科技通识系列 · 互动网站样式（原创卡通风：蓝紫橙渐变、圆角卡片） */
:root {
  --blue: #2F6FED; --purple: #7B4DFF; --orange: #FF8A3D; --navy: #1B2140;
  --bg: #F4F7FF; --green: #22B07D; --yellow: #FFC83D; --gray: #E6EAF5; --white: #fff;
  --text: #1B2140; --muted: #4A5374; --line: #D5DBEE;
  --blue-d: #1F58C9; --purple-d: #5F33D6; --orange-d: #B85412; --green-d: #13774F; --red: #C62F45;
  --grad: linear-gradient(120deg, #2F6FED 0%, #7B4DFF 55%, #FF8A3D 100%);
  --grad-dark: linear-gradient(120deg, #1F58C9 0%, #5F33D6 55%, #B85412 100%);
  --radius: 18px; --radius-s: 12px;
  --shadow: 0 6px 20px rgba(27, 33, 64, .10);
  --shadow-l: 0 14px 40px rgba(27, 33, 64, .16);
  --focus: 0 0 0 3px #fff, 0 0 0 6px #FF8A3D;
  --top-h: 64px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 12px); }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.7; color: var(--text); background: var(--bg); overflow-x: hidden; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h2 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 .8em; }
a { color: var(--blue-d); }
a:hover { color: var(--purple-d); }
button { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
svg :focus-visible, svg g:focus-visible { box-shadow: none; outline: 3px solid var(--orange); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 10px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.noscript { padding: 20px; }

/* ---------- 顶栏 ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--grad); }
.topbar-inner { display: flex; align-items: center; gap: 10px; height: var(--top-h); padding: 0 14px; max-width: 1500px; margin: 0 auto; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; position: relative; min-width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; color: var(--navy); text-decoration: none; }
.icon-btn:hover { background: var(--gray); }
.icon-btn svg { width: 24px; height: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); min-width: 0; }
.brand-bot { width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--grad); position: relative; }
.brand-bot::before { content: ""; position: absolute; left: 9px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 14px 0 0 #fff; }
.brand-bot::after { content: ""; position: absolute; left: 12px; bottom: 9px; width: 14px; height: 4px; border-radius: 3px; background: #FFC83D; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-series { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.brand-title { font-weight: 800; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-form { flex: 1; display: flex; align-items: center; max-width: 380px; margin-left: auto; background: var(--bg); border: 2px solid var(--line); border-radius: 999px; padding-left: 14px; }
.search-form:focus-within { border-color: var(--blue); }
.search-form input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; padding: 8px 0; color: var(--text); }
.search-form input:focus { outline: none; }
.age-switch { display: flex; background: var(--gray); border-radius: 999px; padding: 3px; flex: none; }
.age-switch button { border: 0; background: transparent; border-radius: 999px; padding: 6px 12px; cursor: pointer; font-weight: 700; font-size: .88rem; white-space: nowrap; display: flex; align-items: center; gap: 6px; min-height: 38px; }
.age-switch button[aria-pressed="true"] { background: #fff; box-shadow: var(--shadow); color: var(--purple-d); }
.age-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.age-dot.young { background: var(--orange); } .age-dot.teen { background: var(--purple); }
.badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; border-radius: 9px; background: var(--orange-d); color: #fff; font-size: .7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.fav-link { color: var(--orange-d); }
.settings-panel { position: fixed; z-index: 60; right: 12px; top: calc(var(--top-h) + 6px); width: min(340px, calc(100vw - 24px)); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-l); padding: 16px 18px; border: 1px solid var(--line); }
.settings-title { font-size: 1.1rem; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.btn-group { display: flex; align-items: center; gap: 6px; }
.btn-group button { min-width: 44px; height: 40px; border-radius: 10px; border: 2px solid var(--line); background: #fff; cursor: pointer; font-weight: 800; }
.btn-group output { min-width: 48px; text-align: center; font-weight: 700; }
.settings-note { font-size: .82rem; color: var(--muted); margin: 10px 0 0; }
.switch { appearance: none; -webkit-appearance: none; width: 50px; height: 28px; background: #B7BED6; border-radius: 999px; position: relative; cursor: pointer; transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch:checked { background: var(--green-d); }
.switch:checked::after { transform: translateX(22px); }

/* ---------- 侧边导航 ---------- */
.sidenav { position: fixed; z-index: 60; top: 0; left: 0; bottom: 0; width: 290px; max-width: 86vw; background: #fff; box-shadow: var(--shadow-l); transform: translateX(-105%); transition: transform .25s ease; overflow-y: auto; padding: 0 12px 24px; visibility: hidden; }
.nav-open .sidenav { transform: none; visibility: visible; }
.sidenav-head { display: flex; align-items: center; justify-content: space-between; height: var(--top-h); font-weight: 800; padding-left: 8px; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list.extra { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 10px; }
.nav-list a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; text-decoration: none; color: var(--text); font-weight: 600; min-height: 44px; }
.nav-list a:hover { background: var(--bg); }
.nav-list a[aria-current="page"] { background: var(--grad-dark); color: #fff; }
.nav-list .ico { width: 22px; height: 22px; flex: none; }
.nav-no { font-size: .75rem; min-width: 22px; height: 22px; border-radius: 6px; background: var(--gray); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
[aria-current="page"] .nav-no { background: rgba(255, 255, 255, .25); color: #fff; }
.nav-txt { flex: 1; }
.nav-done { color: var(--green-d); font-weight: 900; }
[aria-current="page"] .nav-done { color: #fff; }
.scrim { position: fixed; inset: 0; background: rgba(27, 33, 64, .4); z-index: 55; }
@media (min-width: 1200px) {
  .menu-btn, .close-nav, .scrim { display: none !important; }
  .sidenav { transform: none; visibility: visible; top: calc(var(--top-h) + 3px); box-shadow: none; border-right: 1px solid var(--line); width: 250px; background: #fbfcff; transition: none; }
  .sidenav-head { height: 52px; }
  main, .site-footer { margin-left: 250px; }
}

/* ---------- 主体 ---------- */
main { display: block; min-height: 70vh; }
main:focus { outline: none; }
#view h1:focus { outline: none; box-shadow: none; }
#view { max-width: 1180px; margin: 0 auto; padding: 18px 16px 30px; }
.page-head { background: #fff; border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); margin-bottom: 18px; position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--grad); }
.eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .06em; color: var(--purple-d); margin-bottom: .3em; }
.eyebrow.light { color: #FFE2CC; }
.lead { font-size: 1.05rem; color: var(--muted); margin: 0; }
.block { background: #fff; border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); margin: 18px 0; }
.big-text { font-size: 1.12rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 2px solid transparent; background: var(--blue-d); color: #fff; font-weight: 800; cursor: pointer; text-decoration: none; transition: transform .12s, box-shadow .12s, background .12s; }
.btn:hover { background: var(--purple-d); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.small { min-height: 38px; padding: 5px 14px; font-size: .9rem; }
.btn.big { min-height: 54px; padding: 10px 26px; font-size: 1.12rem; }
.btn.ghost { background: #fff; color: var(--blue-d); border-color: var(--blue); }
.btn.ghost:hover { background: var(--bg); color: var(--purple-d); }
.btn.orange { background: var(--orange); color: var(--navy); }
.btn.orange:hover { background: #ffa463; color: var(--navy); }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .8); }
.btn.ghost-light:hover { background: rgba(255, 255, 255, .15); }
.btn.danger { background: var(--red); }
.btn.danger:hover { background: #a3172d; }
.linklike { background: none; border: 0; padding: 0; color: var(--blue-d); cursor: pointer; text-align: left; font-weight: inherit; text-decoration: underline; text-decoration-color: rgba(47, 111, 237, .35); text-underline-offset: 3px; }
.linklike:hover { color: var(--purple-d); }

.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--line); background: #fff; cursor: pointer; text-decoration: none; color: var(--text); font-weight: 600; }
.chip:hover { border-color: var(--blue); color: var(--blue-d); }
.chip.on, .chip[aria-pressed="true"] { background: var(--purple-d); border-color: var(--purple-d); color: #fff; }
.chip.big { min-height: 46px; font-size: 1rem; }
.chip b { background: var(--gray); border-radius: 999px; padding: 0 8px; font-size: .8rem; color: var(--navy); }

/* 比特讲解 */
.bit-says { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0; }
.bit { width: 70px; flex: none; }
.bit-says .bubble { position: relative; background: #fff; border: 3px solid var(--navy); border-radius: 18px; padding: 12px 16px; box-shadow: 4px 4px 0 var(--navy); flex: 1; }
.bit-says .bubble::before { content: ""; position: absolute; left: -14px; top: 22px; border: 8px solid transparent; border-right: 10px solid var(--navy); }
.bit-eye { animation: blink 4s infinite; transform-origin: center; transform-box: fill-box; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }

/* ---------- 首页 ---------- */
.series-nav { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; }
.series-title { font-size: 1rem; margin-bottom: 10px; color: #fff; }
.series-title .muted { color: #B9C0DC; }
.series-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.series-item a, .series-item .vol-disabled { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .07); color: #DDE2F5; text-decoration: none; font-size: .8rem; line-height: 1.35; }
.series-item.current a { background: var(--grad-dark); color: #fff; }
.vol-no { font-weight: 800; font-size: .75rem; }
.vol-title { flex: 1; }
.vol-status { font-size: .7rem; align-self: flex-start; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.vol-status.ok { background: #fff; color: var(--purple-d); font-weight: 800; }
.vol-disabled { cursor: not-allowed; }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: center; background: var(--grad-dark); color: #fff; border-radius: 26px; padding: 30px; box-shadow: var(--shadow-l); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
.hero h1 small { display: block; font-size: .5em; font-weight: 700; margin-top: 6px; opacity: .95; }
.hero-theme { font-size: 1.15rem; font-weight: 700; }
.hero-tag { opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 10px; }
.hero-age { font-size: .9rem; opacity: .95; }
.hero-art { position: relative; z-index: 1; }
.time-machine { width: 100%; max-width: 380px; display: block; margin: 0 auto; }
.tm-body { animation: hover 3.5s ease-in-out infinite; }
.tm-flame { animation: flame .5s ease-in-out infinite alternate; transform-origin: 60px 130px; }
.tm-hand { animation: spin 6s linear infinite; transform-origin: 225px 120px; }
@keyframes hover { 50% { transform: translateY(-8px); } }
@keyframes flame { to { transform: scaleX(1.25); } }
@keyframes spin { to { transform: rotate(360deg); } }
.era-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.era-tile { display: flex; flex-direction: column; justify-content: space-between; min-height: 92px; padding: 14px; border-radius: var(--radius-s); color: #fff; text-decoration: none; font-weight: 800; box-shadow: var(--shadow); transition: transform .15s; }
.era-tile:hover { transform: translateY(-3px) rotate(-1deg); color: #fff; }
.era-label { font-size: 1.15rem; }
.era-count { font-size: .85rem; font-weight: 600; opacity: .95; }
.q-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.q-card { background: var(--bg); border-radius: var(--radius-s); padding: 16px; border: 2px dashed #B9C4EA; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.q-card p { font-weight: 700; font-size: 1.05rem; flex: 1; }
.q-no { font-size: .78rem; font-weight: 800; color: #fff; background: var(--orange-d); border-radius: 999px; padding: 1px 10px; }
.route { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; counter-reset: r; }
.route a { display: flex; gap: 10px; align-items: center; height: 100%; padding: 12px; border-radius: var(--radius-s); background: var(--bg); text-decoration: none; color: var(--text); border: 2px solid transparent; }
.route a:hover { border-color: var(--purple); }
.route a strong { display: block; }
.route a .muted { font-size: .82rem; display: block; }
.route-no { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--grad-dark); color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.progress-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.meter { flex: 1; min-width: 180px; height: 16px; background: var(--gray); border-radius: 999px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
.chapter-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.chapter-list li { background: var(--bg); border-radius: var(--radius-s); padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.ch-no { font-size: .75rem; font-weight: 800; color: var(--purple-d); }
.ch-q { font-size: .9rem; }
.ch-key { font-size: .82rem; color: var(--muted); }

/* 年代配色 */
.era-i0 { --era: #8D5A2B; } .era-i1 { --era: #B0601C; } .era-i2 { --era: #A2412F; } .era-i3 { --era: #8E3A8C; }
.era-i4 { --era: #5F33D6; } .era-i5 { --era: #2F55D4; } .era-i6 { --era: #127A8A; } .era-i7 { --era: #13774F; }
.era-outlook { --era: #6B4FB8; }
.era-tile.era-outlook, .tl-seg.era-outlook:not(.on), .era-head.era-outlook { background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.0) 0 10px, rgba(255,255,255,.18) 10px 20px); }
.tl-seg.era-outlook:not(.on) { border-style: dashed; background-color: #F4EFFF; }
.ev-card.era-outlook { border-top-style: dashed; background: linear-gradient(#fff, #FAF7FF); }
.era-tile { background: linear-gradient(135deg, var(--era), color-mix(in srgb, var(--era) 70%, #1B2140)); }
@supports not (background: color-mix(in srgb, red 50%, blue)) { .era-tile { background: var(--era); } }

/* ---------- 时间轴 ---------- */
.tl-overview { display: grid; grid-template-columns: 70px repeat(8, minmax(0, 1fr)); gap: 6px; background: #fff; padding: 12px; border-radius: var(--radius); box-shadow: var(--shadow); }
.tl-seg { display: flex; flex-direction: column; gap: 4px; align-items: stretch; padding: 8px; border-radius: 12px; border: 2px solid var(--line); background: #fff; cursor: pointer; min-height: 84px; text-align: left; }
.tl-seg:hover { border-color: var(--era, var(--blue)); }
.tl-seg.on { background: var(--era, var(--navy)); border-color: var(--era, var(--navy)); color: #fff; }
.tl-seg.all { --era: var(--navy); justify-content: center; text-align: center; }
.seg-label { font-weight: 800; font-size: .86rem; line-height: 1.2; }
.seg-count { font-size: .75rem; opacity: .85; }
.seg-dots { position: relative; height: 14px; border-bottom: 2px solid currentColor; opacity: .7; }
.seg-dots i { position: absolute; bottom: -5px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--era, var(--blue)); border: 1.5px solid #fff; }
.tl-seg.on .seg-dots i { background: #fff; border-color: var(--era); }
.tl-axis-wrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px 12px; margin-top: 14px; }
.tl-axis-title { font-size: 1.05rem; }
.tl-axis { position: relative; height: calc(64px + var(--rows) * 36px); margin: 8px 6px 4px; }
.tl-line { position: absolute; left: 0; right: 0; top: 30px; height: 6px; border-radius: 3px; background: var(--era); }
.tl-tick { position: absolute; top: 0; transform: translateX(-50%); font-size: .75rem; color: var(--muted); white-space: nowrap; }
.tl-tick::after { content: ""; position: absolute; left: 50%; top: 22px; width: 2px; height: 16px; background: var(--line); }
.tl-dot { position: absolute; top: calc(48px + var(--row) * 36px); transform: translateX(-9px); display: flex; align-items: center; gap: 4px; border: 0; background: none; cursor: pointer; padding: 0; max-width: 160px; }
.tl-dot::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: #fff; border: 4px solid var(--era); transition: transform .15s; }
.tl-dot:hover::before, .tl-dot:focus-visible::before { transform: scale(1.3); background: var(--orange); }
.tl-dot.flip { flex-direction: row-reverse; transform: translateX(calc(-100% + 9px)); }
.tl-axis-wrap { overflow: hidden; }
.tl-dot-label { font-size: .75rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--navy); background: rgba(255, 255, 255, .9); border-radius: 6px; padding: 0 4px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; background: #fff; border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); margin: 14px 0; }
.fld { display: flex; flex-direction: column; gap: 3px; font-size: .82rem; font-weight: 700; color: var(--muted); min-width: 0; }
.fld select, .fld input[type="search"] { font: inherit; font-size: .95rem; color: var(--text); min-height: 42px; border: 2px solid var(--line); border-radius: 10px; padding: 6px 10px; background: #fff; max-width: 100%; }
.fld select { max-width: 200px; }
.fld.grow { flex: 1; min-width: 160px; }
.fld.check { flex-direction: row; align-items: center; gap: 8px; min-height: 42px; color: var(--text); font-size: .95rem; cursor: pointer; }
.fld.check input { width: 22px; height: 22px; accent-color: var(--purple-d); }
.fld-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.result-count { font-weight: 700; color: var(--muted); }
.era-group { margin-bottom: 18px; }
.era-head { display: inline-block; color: #fff; background: var(--era, var(--navy)); padding: 4px 16px; border-radius: 999px; font-size: 1.05rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.mini-list { display: grid; gap: 10px; }

/* 事件卡 */
.ev-card { background: #fff; border-radius: var(--radius); padding: 14px 16px 12px; box-shadow: var(--shadow); border-top: 6px solid var(--era, var(--blue)); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ev-card.compact { box-shadow: none; border: 2px solid var(--line); border-top: 5px solid var(--era, var(--blue)); padding: 10px 12px; }
.ev-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.date-chip { font-weight: 800; background: var(--era, var(--blue)); color: #fff; padding: 1px 10px; border-radius: 999px; font-size: .85rem; }
.cat-chip, .contro-chip, .outlook-chip, .kind-chip { font-size: .75rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--gray); color: var(--navy); }
.contro-chip { background: #FFF1D6; color: #7A4A00; }
.outlook-chip { background: #EEE6FF; color: var(--purple-d); }
.outlook-chip.big { display: block; font-size: .9rem; padding: 6px 12px; border-radius: 12px; }
.ev-title { font-size: 1.05rem; margin: 0; }
.ev-title .linklike { color: var(--navy); text-decoration: none; }
.ev-title .linklike:hover { color: var(--blue-d); text-decoration: underline; }
.ev-sum { margin: 0; }
.first-note { font-size: .85rem; background: #FFF6E5; border-left: 4px solid var(--orange); padding: 6px 10px; border-radius: 8px; margin: 0; }
.ev-meta { font-size: .82rem; color: var(--muted); margin: 0; display: flex; flex-direction: column; gap: 2px; }
.ev-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.fav-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 38px; padding: 4px 12px; border-radius: 999px; border: 2px solid var(--line); background: #fff; cursor: pointer; font-size: .85rem; font-weight: 700; color: var(--muted); }
.fav-btn .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.fav-btn.on { color: var(--orange-d); border-color: var(--orange); background: #FFF4EC; }
.fav-btn.on .ico { fill: var(--orange); stroke: var(--orange-d); }

/* 弹窗 */
.modal { border: 0; padding: 0; border-radius: 22px; width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 40px); box-shadow: var(--shadow-l); color: var(--text); background: #fff; }
.modal::backdrop { background: rgba(27, 33, 64, .55); }
.modal-inner { position: relative; padding: 26px 26px 20px; max-height: calc(100vh - 40px); overflow-y: auto; }
.modal-close { position: sticky; float: right; top: 0; background: var(--gray); z-index: 2; }
.modal h2 { padding-right: 40px; }
.modal h2:focus { outline: none; box-shadow: none; }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin: 10px 0 14px; }
.kv { background: var(--bg); border-radius: 12px; padding: 8px 12px; }
.kv dt { font-size: .75rem; font-weight: 800; color: var(--purple-d); }
.kv dd { margin: 0; }
.ev-sec { margin: 12px 0; }
.ev-sec h3 { font-size: 1rem; color: var(--navy); border-left: 5px solid var(--era, var(--blue)); padding-left: 8px; }
.ev-sec.contro { background: #FFF6E5; border-radius: 12px; padding: 10px 14px; }
.ev-sec.contro h3 { border-color: var(--orange); }
.src-list { padding-left: 1.2em; margin: 0 0 6px; }
.modal-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 12px; flex-wrap: wrap; }
.en { font-size: .8em; font-weight: 600; color: var(--muted); }
details.more summary, details.fig-drawer summary, details.text-alt summary, .block details summary { cursor: pointer; font-weight: 700; color: var(--blue-d); min-height: 36px; display: flex; align-items: center; }
details.more { background: var(--bg); border-radius: 12px; padding: 4px 12px; margin-top: 8px; }
.metaphor { background: #FFF4EC; border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; }
.metaphor.big { font-size: 1.1rem; }
.definition { background: #EEF3FF; border-radius: 12px; padding: 10px 14px; }

/* 插图 */
.fig-drawer { margin-top: 6px; }
.fig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 10px; }
.figure { margin: 0; background: var(--bg); border-radius: var(--radius-s); padding: 10px; }
.img-wrap { background: #fff; border-radius: 10px; overflow: hidden; }
.figure img { display: block; width: 100%; height: auto; }
.figure figcaption { font-size: .85rem; margin-top: 6px; font-weight: 700; }
.fig-label { font-weight: 500; color: var(--muted); }
.img-ph { display: flex; align-items: center; justify-content: center; min-height: 160px; border: 3px dashed #B9C4EA; border-radius: 10px; color: var(--muted); background: repeating-linear-gradient(45deg, #F4F7FF, #F4F7FF 10px, #EAF0FF 10px, #EAF0FF 20px); padding: 12px; text-align: center; }

/* ---------- 地图 ---------- */
.map-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.map-note { margin-left: auto; background: var(--yellow); color: var(--navy); font-weight: 800; padding: 2px 12px; border-radius: 999px; font-size: .85rem; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.map-box { background: #fff; border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.world-map { display: block; width: 100%; height: auto; aspect-ratio: 1750 / 700; border-radius: 12px; }
.world-map .sea { fill: #CFE2FF; }
.world-map .grid line { stroke: #B6CDF3; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 4 6; }
.world-map .land path { fill: #FFE7B8; stroke: #C9A15E; stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.world-map .water path { fill: #CFE2FF; stroke: #C9A15E; stroke-width: 1; vector-effect: non-scaling-stroke; }
.pin { cursor: pointer; outline: none; }
.pin-dot { fill: var(--orange); stroke: var(--navy); stroke-width: 2; vector-effect: non-scaling-stroke; }
.pin-halo { fill: rgba(255, 138, 61, .25); }
.pin:hover .pin-dot, .pin:focus-visible .pin-dot, .pin.on .pin-dot { fill: var(--purple); }
.pin.on .pin-halo, .pin:focus-visible .pin-halo { fill: rgba(123, 77, 255, .35); }
.pin:focus-visible .pin-dot { stroke: var(--orange-d); stroke-width: 4; }
.pin-label { fill: var(--navy); font-weight: 800; paint-order: stroke; stroke: #fff; stroke-width: 3px; vector-effect: non-scaling-stroke; pointer-events: none; }
.map-caption { font-size: .82rem; color: var(--muted); margin: 6px 4px 0; }
.map-panel { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); max-height: 640px; overflow-y: auto; }
.chip-list.wrap { gap: 8px; }

/* ---------- 博物馆 ---------- */
.dev-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.dev-tile { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border-radius: var(--radius-s); border: 3px solid transparent; background: #fff; box-shadow: var(--shadow); cursor: pointer; text-align: center; }
.dev-tile:hover { transform: translateY(-2px); }
.dev-tile.on { border-color: var(--purple); background: #F4EFFF; }
.dev-ico { width: 72px; height: 56px; }
.dev-name { font-weight: 800; font-size: .95rem; }
.dev-era { font-size: .75rem; color: var(--muted); }
.dev-detail { background: #fff; border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.dev-detail-head { display: flex; gap: 16px; align-items: center; margin-bottom: 10px; }
.dev-detail-head .dev-ico { width: 110px; height: 86px; flex: none; background: var(--bg); border-radius: 16px; padding: 8px; }
.dev-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cutaway { display: flex; flex-direction: column; gap: 4px; background: repeating-linear-gradient(-45deg, #EEF3FF, #EEF3FF 8px, #E4EBFF 8px, #E4EBFF 16px); border: 3px solid var(--navy); border-radius: 16px; padding: 10px; margin-bottom: 10px; }
.cut-part { background: #fff; border-radius: 8px; padding: 4px 10px; font-weight: 700; font-size: .9rem; border-left: 6px solid hsl(calc(220 + var(--i) * 30) 75% 55%); }
.compare-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; }
.compare-grid > div:not(.arrow) { background: var(--bg); border-radius: 12px; padding: 10px 14px; }
.compare-grid .now { background: #EAFBF3; }
.compare-grid .arrow { align-self: center; font-size: 1.8rem; font-weight: 900; color: var(--orange-d); }
.tag { display: inline-block; font-size: .75rem; font-weight: 800; padding: 1px 10px; border-radius: 999px; background: var(--navy); color: #fff; margin-bottom: 4px; }
.tag.now { background: var(--green-d); }
.tag.then { background: #7A5530; }
.term-inline { background: var(--bg); border-radius: var(--radius-s); padding: 12px 14px; margin: 10px 0; }
.term-inline h4 { font-size: 1.02rem; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* 人物 / 词典 */
.person-card, .term-card, .career-card, .act-card, .challenge-card, .skill-card { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); min-width: 0; }
.person-card { display: flex; gap: 12px; }
.avatar { width: 52px; height: 52px; flex: none; border-radius: 16px; background: var(--grad-dark); color: #fff; font-weight: 900; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; }
.person-card h3 { margin-bottom: 0; }

/* ---------- OS 家族树 ---------- */
.layer-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 14px; align-items: start; }
.layers { display: flex; flex-direction: column; gap: 6px; }
.layer { text-align: left; border: 3px solid transparent; border-radius: 14px; padding: 10px 14px; cursor: pointer; display: flex; flex-direction: column; color: #fff; }
.layer span { font-size: .85rem; opacity: .95; }
.layer-app { background: #E06A1B; } .layer-os { background: var(--purple-d); } .layer-kernel { background: var(--blue-d); } .layer-hw { background: var(--navy); }
.layer.on { border-color: var(--yellow); box-shadow: 0 0 0 3px var(--navy); transform: translateX(6px); }
.legend { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .85rem; }
.legend li { display: flex; align-items: center; gap: 6px; }
.sw { width: 16px; height: 16px; border-radius: 4px; display: inline-block; }
.os-layout { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
.scroll-x { overflow-x: auto; background: #FAFBFF; border: 2px solid var(--line); border-radius: var(--radius-s); padding: 6px; }
.os-tree { display: block; min-width: 720px; width: 100%; height: auto; }
.os-edge path { fill: none; stroke: #1B2140; stroke-width: 2.5; }
.os-edge.t-inspire path, .os-edge.t-replace path, .os-edge.t-part path { stroke: #8A93B2; }
.edge-label { font-size: 11px; fill: var(--muted); paint-order: stroke; stroke: #FAFBFF; stroke-width: 4px; display: none; }
.edge-label.always { display: block; }
.os-edge.on path { stroke: var(--orange-d); stroke-width: 4; }
.os-edge.on .edge-label { display: block; fill: var(--orange-d); font-weight: 700; }
.has-sel .os-edge:not(.on) { opacity: .35; }
.os-node { cursor: pointer; }
.os-node .node-title { font-size: 15px; font-weight: 800; fill: var(--navy); }
.os-node .node-year { font-size: 11.5px; fill: var(--muted); }
.os-node:hover rect:first-child, .os-node.on rect:first-child { fill: #FFF4EC; }
.os-node.on rect:first-child { stroke-width: 5; }
.os-panel { background: #fff; border: 2px solid var(--line); border-radius: var(--radius-s); padding: 14px; }
.os-panel-title:focus { outline: none; box-shadow: none; }
.rel-list { padding-left: 1.1em; font-size: .92rem; }
.text-alt { margin-top: 10px; }

/* ---------- 网络探险 ---------- */
.scenario-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.net-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.net-stage-wrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; }
.net-stage { display: block; width: 100%; height: auto; }
.net-link { fill: none; stroke: #C5CDE6; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 2 12; }
.net-link.done { stroke: var(--blue); stroke-dasharray: none; }
.net-node-bg { fill: #F4F7FF; stroke: #C5CDE6; stroke-width: 3; }
.net-node.done .net-node-bg { stroke: var(--blue); }
.net-node.on .net-node-bg { fill: #FFF4EC; stroke: var(--orange); stroke-width: 5; }
.net-label { font-size: 15px; font-weight: 800; fill: var(--navy); }
.net-box { fill: rgba(255, 138, 61, .08); stroke: var(--orange); stroke-width: 3; stroke-dasharray: 10 6; }
.net-box-label { font-size: 15px; font-weight: 800; fill: #9A4510; }
.packet { filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .25)); }
.net-info { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; min-height: 260px; }
.net-step-title:focus { outline: none; box-shadow: none; }
.net-controls { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.done-box { background: #EAFBF3; border-radius: 12px; padding: 10px 14px; font-weight: 700; margin-top: 10px; }
.myth-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.myth { background: var(--bg); border-radius: var(--radius-s); padding: 14px; }
.myth-wrong { font-weight: 800; color: var(--red); }
.myth-right { margin-top: 10px; background: #EAFBF3; padding: 8px 12px; border-radius: 10px; }

/* ---------- 计算机内部 ---------- */
.inside-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; align-items: start; margin: 18px 0; }
.case-wrap { background: #fff; border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.pc-case { display: block; width: 100%; height: auto; }
.part { cursor: pointer; }
.part-rect { stroke: var(--navy); stroke-width: 3; transition: filter .15s; }
.part.board .part-rect { stroke-width: 4; }
.part:hover .part-rect, .part:focus-visible .part-rect { filter: brightness(1.15); }
.part.on > .part-rect { stroke: var(--orange); stroke-width: 6; }
.part-label { font-size: 16px; font-weight: 800; fill: var(--navy); paint-order: stroke; stroke: #E6EAF5; stroke-width: 4px; pointer-events: none; }
.part-label.on-board { fill: #fff; stroke: #2E7D5B; }
.part-chip-txt { font-size: 18px; font-weight: 900; fill: var(--navy); }
.part-panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.part-title:focus { outline: none; box-shadow: none; }
.flow-list { padding-left: 1.4em; }
.flow-list li { padding: 6px 10px; border-radius: 10px; margin-bottom: 4px; transition: background .2s; }
.flow-list li.on { background: #FFF1D6; font-weight: 700; }
.flow-part { display: inline-block; font-weight: 800; color: #fff; background: var(--blue-d); border-radius: 999px; padding: 0 10px; margin-right: 8px; font-size: .85rem; }

/* ---------- 改变世界 / 职业 / 学院 ---------- */
.impact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.impact-card { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; border-top: 6px solid #7A5530; transition: border-color .2s; }
.impact-card.flipped { border-top-color: var(--green-d); }
.impact-face { min-height: 96px; }
.challenge { font-size: .9rem; background: #FFF6E5; border-radius: 10px; padding: 6px 10px; margin: 0; }
.challenge-card h3 { color: var(--red); }
.tip { background: #EAFBF3; border-radius: 10px; padding: 6px 10px; font-size: .92rem; }
.career-card { border-top: 6px solid var(--blue); transition: opacity .2s; }
.career-card.hl { border-top-color: var(--orange); box-shadow: 0 0 0 3px var(--orange), var(--shadow); }
.career-card.dim { opacity: .55; }
.career-card h2 { font-size: 1.12rem; }
.career-card dl { margin: 0; }
.career-card dt { font-size: .78rem; font-weight: 800; color: var(--purple-d); margin-top: 8px; }
.career-card dd { margin: 0; }
.skill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 4px 0 0; }
.skill-list li { background: var(--bg); border-radius: 999px; padding: 1px 10px; font-size: .85rem; }
.match { font-size: .72rem; background: var(--orange); color: var(--navy); border-radius: 999px; padding: 1px 8px; vertical-align: middle; }
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.skill-card { box-shadow: none; background: var(--bg); border-left: 6px solid var(--purple); }
.try { font-size: .9rem; background: #fff; border-radius: 10px; padding: 6px 10px; margin: 0; }
.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.path { background: var(--bg); border-radius: var(--radius-s); padding: 14px; border: 3px solid transparent; }
.path.mine { border-color: var(--purple); }
.act-card { border-top: 6px solid var(--green); display: flex; flex-direction: column; gap: 4px; }
.act-card.done { border-top-color: var(--green-d); background: #F3FCF8; }
.act-card.hl, .career-card.hl { scroll-margin-top: 90px; }
.steps { border: 2px dashed var(--line); border-radius: 12px; padding: 8px 12px; margin: 6px 0; }
.steps legend { font-size: .8rem; font-weight: 800; color: var(--muted); padding: 0 6px; }
.steps label { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; cursor: pointer; }
.steps input { width: 20px; height: 20px; margin-top: 4px; flex: none; accent-color: var(--green-d); }
.safety { background: #FFF1D6; border-radius: 10px; padding: 6px 10px; font-size: .9rem; }

/* ---------- 知识挑战 ---------- */
.score-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; background: #fff; border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow); margin-bottom: 12px; }
.stars { color: var(--orange); font-size: 1.3rem; letter-spacing: 2px; }
.stars .off { color: #CED4E6; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: -2px; }
.tabs [role="tab"] { border: 2px solid var(--line); border-bottom: 0; background: var(--gray); border-radius: 14px 14px 0 0; padding: 10px 16px; font-weight: 800; cursor: pointer; min-height: 44px; }
.tabs [role="tab"][aria-selected="true"] { background: #fff; color: var(--purple-d); }
.q-panel { background: #fff; border-radius: 0 var(--radius) var(--radius) var(--radius); padding: 18px; box-shadow: var(--shadow); border: 2px solid var(--line); }
.q-panel .filters { box-shadow: none; padding: 0; margin: 0 0 10px; }
.q-dots { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.q-dot { width: 38px; height: 38px; border-radius: 10px; border: 2px solid var(--line); background: #fff; font-weight: 800; cursor: pointer; }
.q-dot.ok { background: #DDF7EB; border-color: var(--green-d); color: var(--green-d); }
.q-dot.bad { background: #FFE5E9; border-color: var(--red); color: var(--red); }
.q-dot.cur { box-shadow: 0 0 0 3px var(--purple); }
.q-card-big { background: var(--bg); border-radius: var(--radius); padding: 18px; }
.q-text { font-size: 1.25rem; }
.q-text:focus { outline: none; box-shadow: none; }
.opts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.opt { display: flex; align-items: center; gap: 10px; text-align: left; min-height: 52px; padding: 10px 14px; border-radius: 14px; border: 3px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; font-size: 1rem; }
.opt:hover:not(:disabled) { border-color: var(--blue); }
.opt-key { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--gray); display: flex; align-items: center; justify-content: center; font-weight: 900; }
.opt.correct { border-color: var(--green-d); background: #DDF7EB; }
.opt.wrong { border-color: var(--red); background: #FFE5E9; }
.opt:disabled { cursor: default; color: var(--text); }
.fb { margin-top: 12px; border-radius: 14px; padding: 12px 16px; }
.fb.ok { background: #DDF7EB; border: 2px solid var(--green-d); }
.fb.bad { background: #FFF1D6; border: 2px solid #C57A00; }
.fb ul, .fb ol { margin: 4px 0 8px; }
.q-nav, .q-actions { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.q-actions { justify-content: flex-start; }
.hint { color: var(--muted); font-size: .9rem; }
.match { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.match-col { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.m-item { width: 100%; text-align: left; min-height: 48px; padding: 8px 12px; border-radius: 12px; border: 3px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; box-shadow: inset 8px 0 0 var(--pc, transparent); padding-left: 18px; }
.m-item.sel { border-color: var(--purple); background: #F4EFFF; }
.m-item.paired { border-color: var(--pc); }
.m-item.correct { background: #DDF7EB; }
.m-item.wrong { background: #FFE5E9; }
.m-item:disabled { cursor: default; color: var(--text); }
.order-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.order-item { display: flex; align-items: center; gap: 10px; background: #fff; border: 3px solid var(--line); border-radius: 12px; padding: 6px 8px; }
.order-item.dragging { border-color: var(--purple); box-shadow: var(--shadow-l); opacity: .9; }
.order-item.correct { border-color: var(--green-d); background: #DDF7EB; }
.order-item.wrong { border-color: var(--red); background: #FFE5E9; }
.handle { cursor: grab; touch-action: none; user-select: none; font-size: 1.3rem; padding: 4px 8px; color: var(--muted); }
.pos { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .85rem; }
.otext { flex: 1; font-weight: 700; border-radius: 6px; min-width: 0; }
.order-btns { display: flex; gap: 4px; }
.mini { width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--line); background: var(--bg); cursor: pointer; font-weight: 900; }
.mini:disabled { opacity: .35; cursor: default; }
.topo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.topo-fixed { background: var(--navy); color: #fff; border-radius: 14px; padding: 10px 14px; font-weight: 800; }
.topo-arrow { font-size: 1.4rem; font-weight: 900; color: var(--orange-d); }
.topo-slot { min-width: 140px; min-height: 64px; border: 3px dashed var(--purple); border-radius: 14px; background: #F4EFFF; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 10px; }
.topo-slot.filled { border-style: solid; background: #fff; }
.topo-slot.correct { border-color: var(--green-d); background: #DDF7EB; }
.topo-slot.wrong { border-color: var(--red); background: #FFE5E9; }
.slot-hint { font-size: .75rem; color: var(--muted); }
.slot-val { font-weight: 800; }
.topo-pieces { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.topo-piece { min-height: 46px; padding: 8px 16px; border-radius: 999px; border: 3px solid var(--blue); background: #fff; font-weight: 800; cursor: grab; touch-action: none; }
.topo-piece.sel { background: var(--blue-d); color: #fff; }
.topo-piece.used { opacity: .45; }
.drag-ghost { position: fixed; z-index: 300; pointer-events: none; transform: translate(-50%, -50%); background: var(--blue-d); color: #fff; padding: 8px 14px; border-radius: 999px; font-weight: 800; box-shadow: var(--shadow-l); }

/* ---------- 参考资料 ---------- */
.table-scroll { overflow-x: auto; position: relative; }
.ref-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ref-table th, .ref-table td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid var(--line); }
.ref-table th { background: var(--bg); position: sticky; top: 0; }
.ref-table td { overflow-wrap: anywhere; }
.ref-table.src-tbl td:last-child { white-space: nowrap; }
.src-full li { margin-bottom: 6px; overflow-wrap: anywhere; }
.rules li { margin-bottom: 4px; }
a.ext { overflow-wrap: anywhere; position: relative; }

/* ---------- 上一步/下一步、页脚、提示 ---------- */
.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin: 26px 0 6px; }
.pager-btn { display: flex; flex-direction: column; padding: 12px 18px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); text-decoration: none; color: var(--text); border: 3px solid transparent; min-width: 0; }
.pager-btn:hover { border-color: var(--purple); color: var(--text); }
.pager-btn.next { text-align: right; }
.pager-btn strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pager-pos { font-weight: 800; color: var(--muted); }
.site-footer { padding: 20px 16px 30px; text-align: center; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); background: #fff; }
.site-footer p { max-width: 900px; margin: 0 auto 6px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); background: var(--navy); color: #fff; padding: 10px 20px; border-radius: 999px; font-weight: 700; z-index: 400; transition: transform .25s; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); }
.inline-search { display: flex; gap: 8px; margin: 10px 0; }
.inline-search input { flex: 1; min-width: 0; font: inherit; border: 2px solid var(--line); border-radius: 999px; padding: 8px 16px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .series-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; padding: 22px; }
  .hero-art { max-width: 320px; margin: 0 auto; }
  .map-layout, .os-layout, .net-layout, .inside-layout, .layer-wrap { grid-template-columns: 1fr; }
  .dev-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .tl-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tl-seg.all { grid-column: span 3; min-height: 50px; flex-direction: row; justify-content: center; gap: 10px; }
  .map-panel { max-height: none; }
}
@media (max-width: 760px) {
  :root { --top-h: 58px; }
  .brand-text { display: none; }
  .search-form { max-width: none; }
  .search-form { min-width: 0; padding-left: 10px; }
  .search-form input { width: 100%; }
  .search-form .icon-btn { min-width: 34px; }
  .age-switch button { padding: 4px 8px; font-size: .78rem; }
  .age-switch .age-dot { display: none; }
  .q-grid, .path-grid, .dev-cols { grid-template-columns: 1fr; }
  .series-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .series-item { flex: 0 0 150px; scroll-snap-align: start; }
  .era-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-grid .arrow { transform: rotate(90deg); justify-self: center; }
  .page-head, .block { padding: 16px; }
  .match { grid-template-columns: 1fr; }
  .match-col.right { border-top: 3px dashed var(--line); padding-top: 10px; }
  .pager { grid-template-columns: 1fr 1fr; }
  .pager-pos { display: none; }
  .tl-dot.flip { flex-direction: row-reverse; transform: translateX(calc(-100% + 9px)); }
.tl-axis-wrap { overflow: hidden; }
.tl-dot-label { display: none; }
  .tl-axis { height: calc(60px + var(--rows) * 26px); }
  .tl-dot { top: calc(46px + var(--row) * 26px); }
  .fld select { max-width: 100%; }
  .filters .fld { flex: 1 1 140px; }
  .card-grid { grid-template-columns: 1fr; }
  #view { padding: 14px 12px 24px; }
  .topbar-inner { gap: 4px; padding: 0 6px; }
  .icon-btn { min-width: 40px; }
}
@media (max-width: 420px) {
  .brand { display: none; }
  .age-switch button { padding: 4px 7px; }

  .tl-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-seg.all { grid-column: span 2; }
  .series-item a, .series-item .vol-disabled { font-size: .74rem; }
}

/* ---------- 减少动画 ---------- */
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- 打印 ---------- */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 11pt; color: #000; }
  .topbar, .sidenav, .scrim, .pager, .toast, .skip-link, .fav-btn, .ev-actions .btn, .net-controls, .scenario-pick, .map-tools, .filters, .tabs .btn, .q-actions, .q-nav, .q-dots, .series-nav, .hero-actions, .modal-close, #qClear, .fld-btns { display: none !important; }
  main, .site-footer { margin-left: 0 !important; }
  #view { max-width: none; padding: 0; }
  .block { box-shadow: none !important; border: 1px solid #999; }
  :focus, :focus-visible { box-shadow: none !important; outline: none !important; }
  .page-head, .ev-card, .dev-detail, .person-card, .term-card, .career-card, .act-card, .impact-card, .challenge-card, .skill-card, .map-panel, .os-panel, .net-info, .part-panel, .q-panel, .tl-axis-wrap, .tl-overview, .map-box, .case-wrap, .net-stage-wrap { box-shadow: none !important; border: 1px solid #999; break-inside: avoid; }
  .hero { background: #fff !important; color: #000; border: 2px solid #000; box-shadow: none; }
  .hero .eyebrow.light { color: #000; }
  .card-grid, .impact-grid, .career-grid { grid-template-columns: 1fr 1fr; }
  details > *:not(summary) { display: block !important; }
  details summary { display: none !important; }
  a.ext::after { content: " (" attr(href) ")"; font-size: 8pt; color: #333; word-break: break-all; }
  .scroll-x { overflow: visible; }
  .os-tree { min-width: 0; }
  .modal[open] { position: static; width: auto; max-height: none; box-shadow: none; }
}

/* =================== 第2部起：证据等级、预测、AI实验室 =================== */
.evd { display: inline-flex; align-items: center; gap: 3px; font-size: .75rem; font-weight: 800; padding: 1px 9px; border-radius: 999px; border: 1.5px solid transparent; white-space: nowrap; }
.evd.big { font-size: .92rem; padding: 3px 12px; }
.evd-done { background: #DDF7EB; color: #0F6B45; border-color: #9BDDBF; }
.evd-pilot { background: #E3EEFF; color: #1F4FB5; border-color: #A9C4F5; }
.evd-research { background: #FFF1D6; color: #7A4A00; border-color: #F2CF8A; }
.evd-outlook { background: #EEE6FF; color: #5126C2; border-color: #C7B4F7; border-style: dashed; }
.evd-line { margin: 4px 0 8px; }
.ev-legend { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.ev-legend li { display: flex; gap: 12px; align-items: center; background: var(--bg); border-radius: 12px; padding: 8px 12px; flex-wrap: wrap; }
.imagined { display: inline-block; background: #FFF6E5; border: 2px dashed #F2B66B; color: #6B4300; border-radius: 10px; padding: 4px 12px; font-size: .88rem; font-weight: 700; }
.fc-card { background: #fff; border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); border-top: 6px solid var(--blue); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fc-card.fc-outlook { border-top: 6px dashed var(--purple); background: linear-gradient(#fff, #FAF7FF); }
.fc-card.compact { box-shadow: none; border: 2px solid var(--line); border-top-width: 5px; }
.fc-card.flash { box-shadow: 0 0 0 4px var(--orange); }
.fc-kind { font-size: .75rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--navy); color: #fff; }
.fc-metric { font-size: 1rem; margin: 0; }
.fc-value { font-size: 1.08rem; font-weight: 800; color: var(--blue-d); margin: 0; }
.fc-meta { margin: 0; display: grid; gap: 4px; font-size: .85rem; }
.fc-meta dt { display: inline; font-weight: 800; color: var(--purple-d); }
.fc-meta dt::after { content: "："; }
.fc-meta dd { display: inline; margin: 0; }
.fc-caveat { font-size: .85rem; background: #FFF6E5; border-radius: 8px; padding: 6px 10px; margin: 0; }
.outlook-zone { margin: 22px 0; padding: 18px; border-radius: var(--radius); border: 3px dashed #B9A3F2; background: repeating-linear-gradient(-45deg, #FBF9FF, #FBF9FF 14px, #F4EFFF 14px, #F4EFFF 28px); }
.outlook-zone h2 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.group-tag { display: inline-block; font-size: .78rem; font-weight: 800; color: var(--purple-d); background: #F4EFFF; border-radius: 999px; padding: 1px 10px; margin: 0 0 4px; }
.no-ai { font-size: .85rem; font-weight: 700; color: var(--green-d); background: #EAFBF3; border-radius: 8px; padding: 3px 10px; margin: 0; }
.vol-status.go { background: #FFC83D; color: var(--navy); font-weight: 800; }
.series-item .vol-link:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.sr-table { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* AI怎样学习 */
.pipe { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pipe li { display: flex; align-items: center; }
.pipe li + li::before { content: "→"; font-weight: 900; color: var(--orange-d); margin-right: 6px; }
.pipe-step { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 6px 16px; border-radius: 999px; border: 3px solid var(--line); background: #fff; font-weight: 800; cursor: pointer; }
.pipe-step.on { border-color: var(--purple); background: #F4EFFF; color: var(--purple-d); }
.pipe-no { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }
.pipe-panel { background: var(--bg); border-radius: var(--radius-s); padding: 12px 16px; margin-bottom: 10px; }
.step-title:focus { outline: none; box-shadow: none; }
.lab-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 10px; }
.tomato-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.tomato-item { display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--bg); border-radius: 12px; padding: 6px; border: 2px solid transparent; }
.tomato-item.labeled { border-color: #C7B4F7; background: #FAF7FF; }
.tl-btns { display: flex; gap: 4px; }
.mini-lab { min-height: 34px; padding: 2px 8px; border-radius: 8px; border: 2px solid var(--line); background: #fff; font-size: .8rem; font-weight: 800; cursor: pointer; }
.mini-lab.on { background: var(--purple-d); color: #fff; border-color: var(--purple-d); }
.knob-bar { position: relative; height: 26px; margin: 8px 4px 6px; }
.knob-grad { position: absolute; inset: 6px 0; border-radius: 999px; background: linear-gradient(90deg, #3FA34D, #E8C22B, #D7332A); }
.knob { position: absolute; top: 0; width: 8px; height: 26px; margin-left: -4px; border-radius: 4px; background: var(--navy); box-shadow: 0 0 0 3px #fff; transition: left .5s ease; }
.test-row { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.test-row li { position: relative; padding: 2px; border-radius: 8px; }
.test-row li.ok { background: #DDF7EB; } .test-row li.bad { background: #FFE5E9; }
.tr-mark { position: absolute; right: 0; bottom: 0; font-weight: 900; font-size: .8rem; }
.acc { font-size: 1.1rem; margin: 8px 0 4px; }
.acc-meter { height: 14px; background: var(--gray); border-radius: 999px; overflow: hidden; }
.acc-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--green)); transition: width .4s; }
.spark { width: 100%; max-width: 300px; height: auto; display: block; }
.probe { display: flex; flex-direction: column; gap: 4px; font-weight: 700; }
.probe input { width: 100%; accent-color: var(--purple-d); min-height: 32px; }
.probe-out { display: flex; gap: 10px; align-items: center; }
.role-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.scatter-wrap { margin: 0; }
.scatter { width: 100%; max-width: 380px; height: auto; display: block; background: #fff; border-radius: 12px; }
.scatter .ax { font-size: 11px; fill: var(--muted); }
.scatter .pt.extra circle { stroke: var(--purple); stroke-width: 2.5; }
.probe-pt.ok circle { stroke: var(--green-d); } .probe-pt.bad circle { stroke: var(--red); }
.probe-pt text { font-size: 14px; font-weight: 900; }
.probe-pt.ok text { fill: var(--green-d); } .probe-pt.bad text { fill: var(--red); }
tr.warn td { background: #FFF1D6; }

/* AI系统全景 */
.stack-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
.stack-col { display: flex; flex-direction: column; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 4px; }
.stack-layer { text-align: left; border: 3px solid transparent; border-radius: 16px; padding: 14px 16px; cursor: pointer; display: flex; flex-direction: column; color: #fff; min-height: 70px; }
.stack-layer span { font-size: .85rem; opacity: .95; }
.sl-app { background: #C2571A; } .sl-model { background: var(--purple-d); } .sl-data { background: var(--blue-d); } .sl-compute { background: var(--navy); }
.stack-layer.on, .stack-edge.on { border-color: var(--yellow); box-shadow: 0 0 0 3px var(--navy); }
.stack-arrow { text-align: center; font-size: .8rem; font-weight: 800; color: var(--muted); }
.stack-edge { text-align: left; border: 3px dashed var(--green-d); border-radius: 16px; padding: 10px 14px; background: #EAFBF3; cursor: pointer; font-weight: 800; display: flex; flex-direction: column; }
.stack-edge span { font-weight: 500; font-size: .85rem; }
.stack-panel { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.layer-title:focus { outline: none; box-shadow: none; }
.chart { margin: 0; }
.chart svg { width: 100%; max-width: 560px; height: auto; display: block; }
.bar-val { font-size: 15px; font-weight: 800; fill: var(--navy); }
.bar-year { font-size: 15px; font-weight: 800; fill: var(--navy); }
.bar-kind { font-size: 12px; fill: var(--muted); }
.chart figcaption { font-size: .85rem; color: var(--muted); }

/* 领域馆 */
.dom-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.dom-detail { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.dom-detail h2:focus { outline: none; box-shadow: none; }
.dom-step { border-left: 6px solid var(--blue); padding: 4px 0 4px 14px; margin: 16px 0; }
.dom-step.future { border-left: 6px dashed var(--purple); }
.dom-step.cr { border-left-color: var(--orange); }
.step-no { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; align-items: center; justify-content: center; font-size: .85rem; margin-right: 4px; }
.scen-table { width: 100%; border-collapse: separate; border-spacing: 6px; min-width: 640px; }
.scen-table th { text-align: left; font-size: .9rem; }
.scen-table td { vertical-align: top; border-radius: 12px; padding: 10px; font-size: .92rem; }
.sc-fast { background: #FFF1E6; } .sc-base { background: #EEF3FF; } .sc-slow { background: #F1F1F5; }
.who { font-size: .82rem; color: var(--muted); margin: 6px 0; }
.who ul { margin: 2px 0; padding-left: 1.1em; }
.who.none { font-style: italic; }
.cr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cr-grid > div { border-radius: 12px; padding: 10px 14px; }
.chance { background: #EAFBF3; } .risk { background: #FFF1D6; }
.dom-fig { max-width: 640px; }

/* 未来情景机 */
.machine { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 16px; align-items: start; background: linear-gradient(135deg, #1B2140, #2C2F6B); border-radius: 26px; padding: 18px; box-shadow: var(--shadow-l); }
.machine-dials { display: flex; flex-direction: column; gap: 10px; }
.dial { border: 2px solid rgba(255, 255, 255, .25); border-radius: 16px; padding: 8px 12px 12px; color: #fff; margin: 0; }
.dial legend { font-weight: 800; padding: 0 6px; }
.dial-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.dial-opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dial-opts label { cursor: pointer; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-weight: 700; font-size: .9rem; min-height: 38px; display: inline-flex; align-items: center; }
.dial-opts input:checked + label { background: var(--orange); color: var(--navy); }
.dial-opts input:focus-visible + label { box-shadow: var(--focus); }
.dial-opts input:disabled + label { opacity: .35; cursor: not-allowed; }
.machine-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: #fff; }
.machine-btns .fld.check { color: #fff; }
.machine-screen { background: #F4F7FF; border-radius: 18px; padding: 16px; border: 6px solid #4B4F8C; min-height: 260px; }
.machine-screen.flicker { animation: flick .6s; }
@keyframes flick { 0%, 40%, 80% { opacity: .3; } 20%, 60%, 100% { opacity: 1; } }
.screen-tag { font-weight: 900; color: var(--purple-d); }
.screen-text { font-size: 1.12rem; font-weight: 700; }
.screen-grid { display: grid; gap: 12px; }
.screen-grid.compare { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.screen-card { border-radius: 14px; padding: 12px; }
.sc-name { font-weight: 900; margin-bottom: 4px; }
.warn-line { font-size: .88rem; background: #FFF6E5; border-radius: 10px; padding: 8px 12px; margin-top: 12px; }

/* 真假信息侦探 */
.check-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; counter-reset: c; }
.check-list li { counter-increment: c; background: var(--bg); border-radius: 999px; padding: 4px 14px; font-weight: 700; }
.check-list li::before { content: counter(c) ". "; color: var(--orange-d); }
.case-list { display: grid; gap: 16px; }
.case-card { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.case-body { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 16px; align-items: start; }
.post { border: 3px solid var(--navy); border-radius: 22px; padding: 12px; background: #fff; box-shadow: 4px 4px 0 var(--navy); }
.post-head { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.post-head > div { display: flex; flex-direction: column; line-height: 1.3; font-size: .88rem; }
.post-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--gray); display: flex; align-items: center; justify-content: center; font-weight: 900; }
.post-text { font-size: .95rem; }
.post-art { width: 100%; height: auto; border-radius: 10px; display: block; }
.clues, .verdicts { border: 2px dashed var(--line); border-radius: 12px; padding: 8px 12px; margin: 0 0 10px; }
.clues legend, .verdicts legend { font-weight: 800; padding: 0 6px; }
.clue, .verdicts label { display: flex; gap: 8px; align-items: flex-start; padding: 4px 6px; border-radius: 8px; cursor: pointer; flex-wrap: wrap; }
.clue input, .verdicts input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--purple-d); flex: none; }
.clue.hit { background: #DDF7EB; } .clue.miss { background: #FFF1D6; } .clue.wrong { background: #FFE5E9; }
.clue-mark { font-weight: 800; font-size: .85rem; }
.route-item { display: flex; gap: 10px; align-items: center; height: 100%; padding: 12px; border-radius: var(--radius-s); background: var(--bg); }

/* 规则与伦理 */
.rule-tl { list-style: none; padding: 0 0 0 18px; margin: 10px 0 0; border-left: 4px solid var(--blue); }
.rule-tl li { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 10px 0; }
.rule-tl li::before { content: ""; position: absolute; left: -29px; top: 16px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--blue); }
.rule-tl li.future::before { border-style: dashed; border-color: var(--purple); }
.rt-date { font-weight: 800; color: var(--blue-d); }
.rt-title { font-weight: 800; }
.rt-body p { margin: 2px 0; }
.talk-card { background: var(--bg); border-radius: var(--radius); padding: 16px; }
.talk-q { font-weight: 800; font-size: 1.02rem; }
.pledge-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.pledge-form fieldset { border: 2px dashed var(--line); border-radius: 12px; padding: 6px 12px; margin: 0 0 8px; }
.pledge-form legend { font-weight: 800; padding: 0 6px; }
.pledge-form label:not(.fld) { display: flex; gap: 8px; align-items: flex-start; padding: 3px 0; cursor: pointer; }
.pledge-form input[type=checkbox] { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--purple-d); flex: none; }
.pledge-form input[type=text] { font: inherit; min-height: 42px; border: 2px solid var(--line); border-radius: 10px; padding: 6px 10px; width: 100%; }
.pledge-card { background: #FFFDF6; border: 4px double #C9A15E; border-radius: 18px; padding: 18px 22px; }
.pledge-card h3 { text-align: center; font-size: 1.3rem; }
.pledge-sign { margin-top: 14px; font-weight: 700; }
.fav-scen { padding-left: 1.1em; }
.fav-scen li { margin-bottom: 8px; }
.ev-quote { background: var(--bg); border-left: 6px solid var(--purple); border-radius: 12px; padding: 12px 16px; margin: 10px 0; font-size: 1.05rem; font-weight: 700; }
.ev-quote:focus { outline: none; }

@media (max-width: 1000px) {
  .lab-grid, .stack-layout, .machine, .pledge-layout, .case-body { grid-template-columns: 1fr; }
  .screen-grid.compare { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .cr-grid { grid-template-columns: 1fr; }
  .rule-tl li { grid-template-columns: 1fr; gap: 2px; }
  .machine { padding: 12px; border-radius: 18px; }
}
@media print {
  .print-pledge .topbar, .print-pledge .sidenav, .print-pledge .site-footer, .print-pledge #view > .view-body > .page > *:not(.pledge-block), .print-pledge .pledge-form, .print-pledge .pledge-block > h2, .print-pledge .pager { display: none !important; }
  .print-pledge .pledge-layout { display: block; }
  .print-pledge .pledge-block { border: 0 !important; }
  .machine { background: #fff !important; }
  .dial { color: #000; }
  .outlook-zone { background: #fff; }
}

/* =================== 第3部起：机器人工作坊 =================== */
.need-buy { font-size: .85rem; font-weight: 700; color: #7A4A00; background: #FFF1D6; border-radius: 8px; padding: 3px 10px; margin: 0; }
.rq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.robot-q { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; border-top: 6px solid var(--blue); }
.robot-q.done { border-top-color: var(--green-d); }
.rq-icon { font-size: 2.4rem; line-height: 1; }
.rq-checks { border: 2px dashed var(--line); border-radius: 12px; padding: 6px 10px; margin: 0; }
.rq-checks legend { font-weight: 800; padding: 0 6px; font-size: .9rem; }
.rq-check { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 8px; cursor: pointer; flex-wrap: wrap; }
.rq-check input { width: 22px; height: 22px; accent-color: var(--purple-d); }
.rq-check.right { background: #DDF7EB; } .rq-check.wrong { background: #FFE5E9; }
.rq-mark { margin-left: auto; font-weight: 800; font-size: .85rem; }
.robot-body { display: block; width: 100%; height: auto; }
.rb-cap { font-size: 11px; fill: var(--muted); }
.rb-part { cursor: pointer; }
.rb-part .rb-ring { opacity: 0; }
.rb-part.on .rb-ring, .rb-part:hover .rb-ring, .rb-part:focus-visible .rb-ring { opacity: 1; }
.rb-part.dim { opacity: .25; }
.rb-no { font-size: 12px; font-weight: 900; fill: #fff; pointer-events: none; }
.grp-tag { display: inline-block; color: #fff; font-weight: 800; font-size: .8rem; padding: 2px 12px; border-radius: 999px; margin: 0 0 6px; }
.ana-list { columns: 2; padding-left: 1.4em; }
.level-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.code-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; align-items: start; background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.h3 { font-size: 1.05rem; }
.palette { display: flex; flex-direction: column; gap: 6px; }
.blk-btn { text-align: left; min-height: 44px; border: 0; border-radius: 12px; padding: 8px 12px; color: #fff; font-weight: 800; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.blk-btn kbd { margin-left: auto; background: rgba(255, 255, 255, .25); border-radius: 6px; padding: 0 6px; font-size: .75rem; font-family: inherit; }
.blk-F, .blk-btn.blk-F { background: var(--blue-d); } .blk-L, .blk-R, .blk-btn.blk-L, .blk-btn.blk-R { background: var(--purple-d); }
.blk-U, .blk-btn.blk-U { background: var(--green-d); } .blk-IR, .blk-IL, .blk-btn.blk-IR, .blk-btn.blk-IL { background: #B85412; }
.toggles { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.grid-wrap { background: #F4F7FF; border-radius: 14px; padding: 8px; }
.grid-map { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto; }
.cell { fill: #fff; stroke: #D5DBEE; }
.cell.wall { fill: #E8D3B0; stroke: #B08A4E; }
.cell.surprise { fill: #FFE5E9; stroke: var(--red); stroke-dasharray: 4 3; }
.cell-ico { font-size: 22px; }
.goal { font-size: 28px; }
.trail { fill: #A9C4F5; }
.bot { transition: transform .35s ease; }
.reduce-motion .bot { transition: none; }
.bot.crash rect { fill: var(--red); }
.sense-wave { animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .2; } }
.run-log { list-style: none; padding: 0; margin: 8px 0 0; font-size: .88rem; min-height: 120px; }
.run-log li { padding: 3px 8px; border-radius: 6px; }
.run-log li.ok { background: #DDF7EB; font-weight: 800; } .run-log li.bad { background: #FFE5E9; font-weight: 700; } .run-log li.warn { background: #FFF1D6; }
.prog-list { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 5px; counter-reset: b; }
.blk { display: flex; align-items: center; gap: 6px; color: #fff; border-radius: 10px; padding: 4px 6px 4px 10px; counter-increment: b; }
.blk::before { content: counter(b); font-weight: 900; font-size: .75rem; background: rgba(255, 255, 255, .3); border-radius: 6px; padding: 0 6px; }
.blk .blk-txt { flex: 1; font-weight: 700; font-size: .9rem; }
.blk.cur { box-shadow: 0 0 0 3px var(--yellow); }
.blk .mini { width: 32px; height: 32px; }
.lab3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lab3 .block { margin: 0; }
.lab-svg { display: block; width: 100%; height: auto; background: #FAFBFF; border-radius: 12px; }
.lab-svg.small { max-width: 220px; }
.lab-lbl { font-size: 11px; fill: var(--muted); }
.reading { font-size: 1.05rem; margin: 8px 0 2px; }
.action { font-weight: 800; border-radius: 10px; padding: 6px 10px; background: var(--bg); }
.act-stop { background: #FFE5E9; } .act-slow { background: #FFF1D6; } .act-go { background: #DDF7EB; }
.color-demo, .touch-demo { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.surface { width: 70px; height: 70px; border-radius: 14px; border: 3px solid var(--navy); flex: none; }
.bad-txt { color: var(--red); font-weight: 800; }
.limits li { margin-bottom: 4px; }
.safe-wrap { background: #fff; border-radius: 12px; }
.safe-svg { display: block; width: 100%; height: auto; touch-action: none; }
.z-slow { fill: #FFF1D6; stroke: #E0A33A; stroke-width: 2; stroke-dasharray: 8 5; }
.z-stop { fill: #FFE5E9; stroke: var(--red); stroke-width: 2; stroke-dasharray: 6 4; }
.z-lbl { font-size: 13px; font-weight: 800; fill: var(--navy); }
.z-lbl.small { font-size: 11px; font-weight: 600; fill: var(--muted); }
.person { cursor: grab; touch-action: none; }
.arm .arm-link { transform-origin: 220px 170px; animation: armMove 1.2s ease-in-out infinite alternate; }
.arm.z-slow .arm-link { animation-duration: 3.6s; }
.arm.z-stop .arm-link, .arm.z-estop .arm-link { animation: none; }
@keyframes armMove { to { transform: rotate(-35deg); } }
.safe-status { font-size: 1.2rem; font-weight: 900; border-radius: 12px; padding: 10px 14px; }
.st-go { background: #DDF7EB; } .st-slow { background: #FFF1D6; } .st-stop, .st-estop { background: #FFE5E9; }
.court-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.court-card { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); border-top: 6px solid var(--purple); }
.topic { font-weight: 900; color: var(--purple-d); }
.story { background: var(--bg); border-radius: 10px; padding: 8px 12px; }
.vote-opts { display: flex; flex-direction: column; gap: 6px; }
.vote { text-align: left; border: 3px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 12px; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: center; min-height: 46px; }
.vote.mine { border-color: var(--purple); background: #F4EFFF; }
.vote-txt { font-weight: 700; }
.vote-bar { grid-column: 1 / -1; height: 8px; background: var(--gray); border-radius: 999px; overflow: hidden; }
.vote-bar span { display: block; height: 100%; background: var(--purple); }
.vote-n { font-size: .8rem; color: var(--muted); grid-row: 1; grid-column: 2; }
.court-points { margin-top: 10px; background: #EAFBF3; border-radius: 10px; padding: 8px 12px; }
@media (max-width: 1100px) { .code-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .code-right { grid-column: 1 / -1; } .lab3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .code-layout { grid-template-columns: 1fr; } .ana-list { columns: 1; } }
.blk .mini { color: var(--navy); }
.nature-chip { font-size: .75rem; font-weight: 800; padding: 1px 6px; border-radius: 999px; background: #FFE9D6; color: #8A3D00; }

/* =================== 第4部起：计算极限实验室 =================== */
.limit-box { background: #FFF6E5; border: 2px dashed #F2B66B; border-radius: 12px; padding: 8px 12px; margin: 10px 0; font-size: .92rem; }
.big-probe span { font-size: 1.1rem; }
.scale-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; align-items: end; margin-top: 12px; }
.ladder { display: flex; align-items: flex-end; gap: 4px; height: 160px; }
.rung { flex: 1; background: var(--gray); border-radius: 8px 8px 0 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 4px 2px; font-size: .72rem; font-weight: 800; color: var(--muted); transition: background .2s; }
.rung em { font-style: normal; font-weight: 600; }
.rung.on { background: linear-gradient(#7B4DFF, #2F6FED); color: #fff; }
.rung.cur { box-shadow: 0 0 0 3px var(--orange); }
.scale-big { background: var(--navy); color: #fff; border-radius: 16px; padding: 14px 18px; }
.scale-num { font-family: ui-monospace, Menlo, monospace; font-size: clamp(1rem, 3vw, 1.6rem); font-weight: 800; color: #7CFFB2; overflow-wrap: anywhere; margin: 0 0 4px; }
.scale-name { font-size: 1.2rem; margin: 0; } .scale-zero { margin: 0; color: #FFC83D; font-weight: 800; }
.scale-facts { padding-left: 1.1em; }
.procs { display: grid; grid-template-columns: repeat(auto-fill, minmax(14px, 1fr)); gap: 3px; margin: 10px 0 4px; max-width: 320px; }
.proc { aspect-ratio: 1; background: var(--gray); border-radius: 3px; position: relative; overflow: hidden; }
.proc.busy { background: #BFD6FF; animation: pulse .8s infinite; }
.proc.done { background: var(--green); }
.run-bar { height: 14px; background: var(--gray); border-radius: 999px; overflow: hidden; margin: 8px 0; }
.run-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--purple)); }
.par-big { font-size: 1.1rem; }
.stackbar { display: flex; height: 22px; border-radius: 8px; overflow: hidden; border: 2px solid var(--navy); }
.sb0 { background: #E06A1B; } .sb1 { background: var(--blue); } .sb2 { background: var(--purple); }
.sb-legend { list-style: none; padding: 0; font-size: .88rem; }
.sb-legend li { display: flex; gap: 6px; align-items: center; }
.par-chart { width: 100%; max-width: 520px; height: auto; display: block; }
.par-chart .bar { fill: #BFD6FF; stroke: #2F6FED; stroke-width: 2; } .par-chart .bar-on { fill: var(--purple); }
.hpc-svg { display: block; width: 100%; height: auto; }
.hp { cursor: pointer; }
.hp.on .rack, .hp.on .store, .hp.on rect { filter: drop-shadow(0 0 4px #FF8A3D); }
.hp.on .net-line, .hp.on .cool, .hp.on .pow { stroke-width: 9; }
.rack { fill: #2C2F6B; stroke: #1B2140; stroke-width: 3; } .slot { fill: #7CFFB2; opacity: .8; }
.store { fill: #E6EAF5; stroke: #1B2140; stroke-width: 3; }
.net-line { fill: none; stroke: #22B07D; stroke-width: 6; stroke-linecap: round; }
.cool { fill: none; stroke: #2F9BEA; stroke-width: 6; stroke-dasharray: 10 6; }
.pow { stroke: #E0A33A; stroke-width: 6; }
.node-zoom { fill: #F4F7FF; stroke: #8A93B2; stroke-width: 2; stroke-dasharray: 6 4; }
.hp-lbl { font-size: 13px; font-weight: 800; fill: var(--navy); }
.hp-in { font-size: 16px; font-weight: 900; fill: #fff; pointer-events: none; } .hp-small { font-size: 11px; fill: var(--muted); }
.coin-stage { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.coin { width: 86px; height: 86px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 900; color: #1B2140; background: radial-gradient(circle at 35% 35%, #FFE58A, #E0A33A); border: 4px solid #B07A1A; flex: none; }
.coin.spin { animation: coinspin .6s linear infinite; }
.coin.face0 { background: radial-gradient(circle at 35% 35%, #BFD6FF, #2F6FED); color: #fff; border-color: #1F58C9; }
.coin.face1 { background: radial-gradient(circle at 35% 35%, #E3D6FF, #7B4DFF); color: #fff; border-color: #5F33D6; }
@keyframes coinspin { 0% { transform: scaleX(1); } 50% { transform: scaleX(.1); } 100% { transform: scaleX(1); } }
.hist { display: flex; gap: 30px; align-items: flex-end; height: 200px; padding: 10px; }
.hist-col { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hist-bar { width: 60px; background: linear-gradient(#7B4DFF, #2F6FED); border-radius: 8px 8px 0 0; display: block; transition: height .3s; }
.hist-col em { font-style: normal; font-size: .85rem; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; }
.gal-tile { text-align: left; border: 3px solid transparent; background: #fff; border-radius: var(--radius-s); padding: 12px; box-shadow: var(--shadow); cursor: pointer; display: flex; flex-direction: column; gap: 6px; min-height: 76px; }
.gal-tile.on { border-color: var(--purple); background: #F4EFFF; }
.cando-card { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); border-top: 6px solid var(--blue); }
.cando-card.ok { border-top-color: var(--green-d); } .cando-card.bad { border-top-color: #C57A00; }
.cd-q { color: var(--purple-d); }
.cipher-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cipher-row span { font-weight: 800; min-width: 70px; }
.cipher-row code { font-size: 1.1rem; background: var(--bg); padding: 4px 10px; border-radius: 8px; letter-spacing: .08em; overflow-wrap: anywhere; }
.cipher-row code.enc { background: #1B2140; color: #7CFFB2; }
.brute { columns: 2; font-size: .85rem; padding-left: 1.2em; }
.brute li { break-inside: avoid; } .brute li.hit { font-weight: 900; color: var(--green-d); }
.brute code { overflow-wrap: anywhere; }
.qkd-table { border-collapse: collapse; font-size: .85rem; }
.qkd-table th, .qkd-table td { border: 1px solid var(--line); padding: 3px 6px; text-align: center; white-space: nowrap; }
.qkd-table th[scope=row] { text-align: left; background: var(--bg); }
.eve-row td { background: #FFE5E9; }
.k-ok { background: #DDF7EB; font-weight: 800; } .k-bad { background: #FFB3BF; font-weight: 900; } .k-drop { color: #B7BED6; }
.qkd-result { font-weight: 800; border-radius: 10px; padding: 8px 12px; margin-top: 8px; }
.qkd-result.ok { background: #DDF7EB; } .qkd-result.bad { background: #FFE5E9; }
@media (max-width: 760px) { .scale-layout { grid-template-columns: 1fr; } .brute { columns: 1; } }
.fld input[type="text"] { font: inherit; font-size: .95rem; color: var(--text); min-height: 42px; border: 2px solid var(--line); border-radius: 10px; padding: 6px 10px; background: #fff; max-width: 100%; }

/* =================== 第5部起：连接万物实验室 =================== */
.lvls { display: grid; gap: 8px; }
.lvl { display: grid; grid-template-columns: 80px 1fr 30px; gap: 8px; align-items: center; }
.lvl-l { font-weight: 800; }
.lvl-bar { display: flex; gap: 4px; }
.lvl-bar i { flex: 1; height: 14px; border-radius: 4px; background: var(--gray); }
.m-good i.on { background: var(--green); } .m-mid i.on { background: #E0A33A; } .m-bad i.on { background: var(--red); }
.iot-warn { padding-left: 1.1em; }
.dial.light { color: var(--text); border-color: var(--line); margin-bottom: 8px; }
.dial.light .dial-opts label { background: var(--bg); color: var(--text); }
.dial.light .dial-opts input:checked + label { background: var(--purple-d); color: #fff; }
.day-line { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.day-btn { width: 100%; border: 3px solid var(--line); background: #fff; border-radius: 14px; padding: 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 90px; }
.day-btn.seen { border-color: #A9C4F5; } .day-btn.on { border-color: var(--purple); background: #F4EFFF; }
.day-ico { font-size: 1.6rem; }
.day-detail { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin: 14px 0; }
.day-title:focus { outline: none; box-shadow: none; }
.day-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chip.on-static { cursor: default; background: #EEF3FF; border-color: #A9C4F5; }
.day-count { font-weight: 800; background: #FFF4EC; border-radius: 10px; padding: 8px 12px; }
.pk-stage { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.pk-col { background: var(--bg); border-radius: 14px; padding: 10px; min-width: 0; }
.pk-col h3 { font-size: .95rem; text-align: center; }
.lstack { display: flex; flex-direction: column; gap: 4px; }
.lrow { border-left: 8px solid var(--c); background: #fff; border-radius: 8px; padding: 3px 8px; font-size: .85rem; opacity: .7; }
.lrow.on { opacity: 1; box-shadow: 0 0 0 3px var(--c); }
.routers { display: flex; justify-content: space-around; margin: 6px 0; }
.routers span { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; }
.pk-area { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; min-height: 60px; }
.pk { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; animation: pkin .4s ease; }
@keyframes pkin { from { transform: translateY(-6px); opacity: 0; } }
.pk-wrap { display: inline-flex; border: 3px solid var(--c); border-radius: 8px; padding: 2px; background: #fff; }
.pk-core { padding: 2px 8px; font-weight: 800; white-space: nowrap; }
.pk.lost { opacity: .45; text-decoration: line-through; } .pk.lost em, .pk.resend em { font-style: normal; font-weight: 900; color: var(--red); font-size: .85rem; }
.pk.resend em { color: var(--purple-d); }
.pk.missing .pk-core { border: 3px dashed var(--red); border-radius: 8px; color: var(--red); }
.pk-cap { background: #fff; border-radius: 12px; padding: 10px 14px; margin: 10px 0; font-weight: 700; box-shadow: var(--shadow); }
.legend-row { display: flex; flex-wrap: wrap; gap: 12px; font-size: .85rem; }
.legend-row .sw { display: inline-block; vertical-align: middle; margin-right: 4px; }
.layer-card { border-left: 8px solid var(--c); background: #fff; border-radius: var(--radius-s); padding: 12px 14px; box-shadow: var(--shadow); }
.addr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.addr-card { background: var(--bg); border-radius: var(--radius-s); padding: 14px; min-width: 0; }
.addr-card.v6 { background: #F4EFFF; }
.addr-ex code { font-size: 1.15rem; background: var(--navy); color: #7CFFB2; padding: 3px 10px; border-radius: 8px; }
.bits { display: grid; grid-template-columns: repeat(16, 1fr); gap: 2px; margin: 10px 0; max-width: 320px; }
.bits i { aspect-ratio: 1; border-radius: 2px; background: var(--blue); }
.bits.v6 i { background: var(--purple); }
.race { display: grid; gap: 12px; margin: 12px 0; }
.lane { display: grid; grid-template-columns: 150px 1fr 70px; gap: 10px; align-items: center; }
.lane-l { font-weight: 800; font-size: .9rem; }
.track { position: relative; height: 34px; background: repeating-linear-gradient(90deg, #EEF3FF 0 20px, #E2E9FB 20px 40px); border-radius: 999px; }
.runner { position: absolute; top: 3px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.runner.edge { background: var(--green); } .runner.cloud { background: var(--blue); }
.sec-list { display: grid; gap: 12px; }
.sec-item { background: #fff; border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); border-left: 6px solid var(--line); }
.sec-item.ok { border-left-color: var(--green-d); } .sec-item.bad { border-left-color: #C57A00; }
.sec-text { font-weight: 700; font-size: 1.02rem; }
.pair-bars { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 8px; }
.pb { background: var(--bg); border-radius: 12px; padding: 10px; }
.pb-row { display: grid; grid-template-columns: 80px 1fr 40px; gap: 8px; align-items: center; font-size: .9rem; margin: 3px 0; }
.pb-bar { height: 14px; background: #fff; border-radius: 999px; overflow: hidden; }
.pb-bar i { display: block; height: 100%; background: var(--blue); }
.pb-bar.low i { background: var(--orange); }
@media (max-width: 760px) { .pk-stage, .addr-cols, .day-cols { grid-template-columns: 1fr; } .lane { grid-template-columns: 1fr; } }

/* =================== 手机适配（共用模板，所有部受益） =================== */
.search-toggle, .search-close, .bottom-nav, .sheet-grab, .mobile-only, .settings-close { display: none; }
.settings-head { display: flex; align-items: center; justify-content: space-between; }
.portal-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 10px; border-radius: 12px; color: var(--purple-d); font-weight: 800; font-size: .88rem; text-decoration: none; white-space: nowrap; flex: none; }
.portal-link svg { width: 20px; height: 20px; }
.portal-link:hover { background: var(--gray); }
.nav-portal { display: flex; align-items: center; min-height: 44px; padding: 8px 10px; margin-bottom: 6px; border-radius: 12px; background: #F4EFFF; color: var(--purple-d); font-weight: 800; text-decoration: none; }
.scroll-hint { font-size: .875rem; color: var(--purple-d); font-weight: 700; margin: 4px 0; display: none; }
.table-scroll.can-scroll, .scroll-x.can-scroll { box-shadow: inset -12px 0 10px -10px rgba(27, 33, 64, .35); -webkit-overflow-scrolling: touch; }
.zoom-btns { display: inline-flex; gap: 6px; }
.world-map { touch-action: none; cursor: grab; }
.world-map:active { cursor: grabbing; }
.city-list .chip { font-size: .9rem; }
.axis-toggle { display: none; margin-bottom: 8px; }
@media (max-width: 1100px) and (min-width: 761px) { .portal-link span { display: none; } }
@media (max-width: 760px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .topbar-inner { gap: 4px; padding: 0 6px; padding-left: max(6px, env(safe-area-inset-left)); padding-right: max(6px, env(safe-area-inset-right)); position: relative; }
  .brand { display: flex !important; flex: 1; min-width: 0; }
  .brand-bot { display: none; }
  .brand-text { display: flex !important; min-width: 0; }
  .brand-series { display: none; }
  .brand-title { font-size: 1rem; }
  .topbar-inner > .age-switch, .fav-link, .portal-link { display: none !important; }
  .search-toggle { display: inline-flex; }
  .search-form { display: none; }
  .search-open .search-form { display: flex; position: absolute; left: 6px; right: 6px; top: 6px; bottom: 6px; max-width: none; margin: 0; z-index: 5; background: #fff; box-shadow: var(--shadow); }
  .search-open .search-form input { width: 100%; font-size: 1rem; }
  .search-close { display: inline-flex; }
  .mobile-only { display: flex; }
  .settings-close { display: inline-flex; }
  .age-switch.in-panel button { padding: 6px 12px; font-size: .9rem; min-height: 44px; }
  .age-switch.in-panel .age-dot { display: inline-block; }
  .settings-panel { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: 100%; max-height: 85vh; overflow-y: auto; border-radius: 22px 22px 0 0; z-index: 80; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .settings-scrim { z-index: 75; }
  .setting-row { flex-wrap: wrap; }
  .btn-group button { min-height: 44px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 16px rgba(27, 33, 64, .08); }
  .bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; border: 0; background: none; color: var(--muted); font: inherit; font-size: .8rem; font-weight: 800; text-decoration: none; cursor: pointer; position: relative; }
  .bottom-nav svg { width: 24px; height: 24px; }
  .bottom-nav [aria-current="page"], .bottom-nav button[aria-expanded="true"] { color: var(--purple-d); }
  .bottom-nav [aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 3px; border-radius: 0 0 3px 3px; background: var(--grad); }
  .bn-badge { position: absolute; top: 4px; left: 54%; min-width: 18px; height: 18px; border-radius: 9px; background: var(--orange-d); color: #fff; font-size: .7rem; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .sidenav { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  /* 弹窗 → 底部抽屉 */
  .modal { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: 90vh; transition: transform .2s ease; }
  .modal-inner { max-height: 90vh; padding: 4px 16px calc(18px + env(safe-area-inset-bottom)); }
  .sheet-grab { display: flex; justify-content: center; padding: 6px 0 10px; cursor: grab; touch-action: none; }
  .sheet-grab span { width: 48px; height: 5px; border-radius: 3px; background: #C5CDE6; }
  .modal-close { top: 6px; }
  /* 可横向滚动提示 */
  .scroll-hint { display: block; }
  /* 时间轴：手机默认看纵向列表，可展开刻度图 */
  .axis-toggle { display: inline-flex; }
  .tl-axis-wrap:not(.show-axis) .tl-axis { display: none; }
  .tl-dot::before { width: 22px; height: 22px; }
  .tl-dot { padding: 11px; margin: -11px; }
  /* 文字不小于14px */
  .cat-chip, .contro-chip, .outlook-chip, .kind-chip, .evd, .nature-chip, .eyebrow, .fc-kind, .date-chip, .vol-status, .vol-no, .series-item a, .series-item .vol-disabled, .seg-count, .seg-label, .tl-tick, .ev-meta, .q-no, .flow-part, .skill-list li, .map-caption, .muted.small, .small, .fav-btn, .group-tag, .no-ai, .need-buy, .imagined, .hint, .tag, .match, .ch-no, .ch-key, .kv dt, .career-card dt, .steps legend, .fld, .dev-era, .route a .muted, .sb-legend, .legend, .lrow, .pb-row, .clue-mark, .rq-mark, .vote-n, .slot-hint, .blk-btn kbd, .fc-meta, .fc-caveat, .first-note, .settings-note, .brand-series, .lane-l, .hist-col em, .qkd-table, .brute, .run-log, .who, .rel-list, .ana-list .muted { font-size: max(.875rem, 14px) !important; }
  /* 触控区不小于44px */
  .btn.small, .chip, .fav-btn, .q-dot, .mini, .mini-lab, .opt, .vote, .tabs [role="tab"], .m-item, .day-btn, .stack-layer, .gal-tile, .dev-tile, .pipe-step, .topo-piece, .blk-btn, .rb-part, .linklike { min-height: 44px; }
  .q-dot, .mini { min-width: 44px; height: 44px; }
  .linklike { display: inline-flex; align-items: center; }
  .ev-title .linklike, .rt-title, .ref-table .linklike { min-height: 0; display: inline; }
  .dial-opts label { min-height: 44px; }
  .fld.check input, .clue input, .steps input, .rq-check input, .pledge-form input[type=checkbox], .verdicts input { width: 24px; height: 24px; }
  input[type=range] { min-height: 44px; }
  .pager { margin-bottom: 12px; }
}
@media print { .bottom-nav, .portal-link, .search-toggle, .scroll-hint, .sheet-grab, .axis-toggle, .zoom-btns { display: none !important; } body { padding-bottom: 0 !important; } .tl-axis-wrap .tl-axis { display: block !important; } }
.settings-scrim { display: none; }
@media (max-width: 760px) { .settings-scrim:not([hidden]) { display: block; } }
@media (max-width: 760px) {
  .chip b, .figure figcaption, .fig-label, .era-count, .en, .mini-lab, .tr-mark, .step-no, .bottom-nav a, .bottom-nav button, .pos, .rung, .rung em, .hp-small, .opt-key, .badge, .vote-status, .blk::before, .pk-core, .pk em, .route-no, .pipe-no, .nav-no, .avatar, .sw + span, .lvl b, .qkd-result, .kv dd, .cut-part { font-size: max(.875rem, 14px) !important; }
}
@media (max-width: 760px) { .map-note, .stack-arrow, .grp-tag, .vol-title, .figure figcaption *, .slot-val, .dev-name, .seg-label, .tl-dot-label, .hint, .kind-chip, .chip span, .match { font-size: max(.875rem, 14px) !important; } }

/* =================== 第6部起：芯片工厂探秘 =================== */
.mat-svg, .pn-svg, .gate-svg, .litho-svg { display: block; width: 100%; height: auto; }
.mat { stroke: #1B2140; stroke-width: 3; }
.mat-conductor { fill: #F2C9A0; } .mat-insulator { fill: #E6EAF5; } .mat-semi { fill: #C9D4E8; }
.pole { font-size: 22px; font-weight: 900; fill: var(--navy); }
.carrier { fill: #2F6FED; animation: carry linear infinite; }
.carrier.hole { fill: #fff; stroke: #E06A1B; stroke-width: 3; }
@keyframes carry { from { transform: translateX(30px); } to { transform: translateX(390px); } }
.reduce-motion .carrier { animation: none; }
.pn-lbl { font-size: 18px; font-weight: 900; fill: var(--navy); }
.pn-small { font-size: 12px; font-weight: 700; fill: var(--navy); }
.led { fill: #E6EAF5; stroke: #1B2140; stroke-width: 3; }
.led.on { fill: #FFC83D; filter: drop-shadow(0 0 8px #FFC83D); }
.flow { stroke: #E06A1B; stroke-width: 4; fill: none; stroke-dasharray: 10 8; animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -18; } }
.g-lbl { font-size: 13px; font-weight: 800; fill: var(--navy); }
.wire { fill: none; stroke: #8A93B2; stroke-width: 4; }
.wire.live { stroke: #22B07D; }
.lamp { fill: #E6EAF5; stroke: #1B2140; stroke-width: 3; }
.lamp.on { fill: #FFC83D; filter: drop-shadow(0 0 8px #FFC83D); }
.bit-btn { min-height: 48px; min-width: 120px; border-radius: 14px; border: 3px solid var(--navy); background: #fff; font-weight: 900; font-size: 1.05rem; cursor: pointer; }
.bit-btn.on { background: var(--green-d); color: #fff; }
.truth caption { font-weight: 800; text-align: left; }
.truth tr.cur td { background: #FFF1D6; font-weight: 900; }
.ha-list { padding-left: 1.1em; }
.tr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 10px; }
.tr-card { background: var(--bg); border-radius: var(--radius); padding: 14px; }
.tr-stage { background: #fff; border-radius: 12px; padding: 8px; }
.tr-svg { display: block; width: 100%; height: auto; transition: transform .3s; }
.fab-list .order-item.picked { border-color: var(--purple); background: #F4EFFF; }
.fab-pick { text-align: left; text-decoration: none; color: var(--text); font-weight: 700; }
.fab-walk { background: var(--bg); border-radius: 14px; padding: 12px 14px; margin-top: 10px; }
.fab-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.fab-steps span { width: 32px; height: 32px; border-radius: 50%; background: var(--gray); display: inline-flex; align-items: center; justify-content: center; font-weight: 900; }
.fab-steps span.done { background: var(--green); color: #fff; } .fab-steps span.on { background: var(--purple-d); color: #fff; }
.chain-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0; }
.chain-node { background: #EEF3FF; border: 2px solid #A9C4F5; border-radius: 12px; padding: 6px 10px; font-weight: 800; }
.btn-node { cursor: pointer; min-height: 44px; font: inherit; font-weight: 800; color: var(--text); }
.btn-node.off { background: #FFE5E9; border-color: var(--red); text-decoration: line-through; }
.btn-node.hit { background: #FFF1D6; border-color: #E0A33A; opacity: .75; }
.chain-arrow { font-weight: 900; color: var(--orange-d); }
.chain-arrow.cut { color: var(--red); opacity: .5; }
@media (max-width: 760px) { .chain-row.big { flex-direction: column; align-items: stretch; } .chain-row.big .chain-arrow { transform: rotate(90deg); align-self: center; } .bit-btn { min-width: 0; flex: 1; } }
