/* ==========================================================================
   物理 · 奇妙的物理世界（/physics/）—— 温暖绘本图解版
   依赖全站设计系统 /assets/site.css（完整适配浅绿/浅黄双护眼配色）。
   ========================================================================== */
.page { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.page > main { flex: 1 0 auto; }

[data-tone="green"]  { --t: #dff1e4; --t-ink: #256b4a; }
[data-tone="yellow"] { --t: #fbf0c4; --t-ink: #7d6212; }
[data-tone="coral"]  { --t: #ffe3dc; --t-ink: #a4472f; }
[data-tone="blue"]   { --t: #e0ebff; --t-ink: #33599c; }
[data-tone="lav"]    { --t: #e9e2ff; --t-ink: #5a43a3; }
[data-tone="sand"]   { --t: #f8e9d6; --t-ink: #8a5a24; }
[data-tone="mint"]   { --t: #d4f3ea; --t-ink: #1f6f5c; }

.m-empty { padding: 30px; text-align: center; color: var(--muted); font-size: 13.5px; }
.mtag { display: inline-flex; align-items: center; gap: 5px; padding: 3.5px 9.5px; border-radius: 999px; background: var(--t, var(--acc-soft)); color: var(--t-ink, var(--acc)); font-size: 11.5px; font-weight: 750; }
.mtag.age { background: var(--surface-3); color: var(--muted); font-family: var(--font-mono); border: 1px solid var(--line); }

/* ---------- Hero（兼容浅绿与浅黄护眼底色） ---------- */
.ph-hero {
  position: relative;
  margin: 24px 0 10px;
  min-height: 350px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #dff3fb 0%, #ecf8fc 56%, #fef5e2 100%);
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  box-shadow: var(--shadow);
}
:root[data-palette="cream"] .ph-hero {
  background: linear-gradient(135deg, #f9efd8 0%, #fdf7e9 58%, #e8f5f0 100%);
}
.hero-copy { padding: 46px 0 42px 48px; position: relative; z-index: 2; }
.hero-copy .eyebrow { color: #366f7e; letter-spacing: .12em; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; gap: 7px; }
.spark { width: 7px; height: 7px; background: #ff855f; border-radius: 50%; box-shadow: 0 0 0 4px rgba(255,133,95,.2); }
.ph-hero h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.16; letter-spacing: -.035em; margin: 16px 0 12px; color: #1f333e; }
.ph-hero h1 em { font-style: normal; color: #e26d4b; background: linear-gradient(180deg, transparent 66%, rgba(255,133,95,.2) 66%); padding: 0 2px; border-radius: 4px; }
.hero-lede { font-size: 14.5px; line-height: 1.85; color: #4d6670; max-width: 420px; margin: 0; }
.hero-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.ph-btn {
  display: inline-flex; align-items: center;
  border: 0; background: #243b4a; color: #fff;
  border-radius: 999px; padding: 12px 21px;
  font-size: 13.5px; font-weight: 750;
  box-shadow: 0 5px 14px rgba(36, 59, 74, .18);
  transition: transform .15s, box-shadow .15s;
}
.ph-btn:hover { transform: translateY(-2px); box-shadow: 0 9px 20px rgba(36, 59, 74, .26); }
.ph-btn.ghost { background: rgba(255,255,255,.76); color: #2f5160; border: 1px solid #b8dce7; font-weight: 700; box-shadow: none; }
.hero-art { position: relative; margin: 0; min-height: 350px; overflow: hidden; }
.hero-art svg { position: absolute; width: 100%; height: 100%; inset: 0; }
.sun { position: absolute; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, #ffe494 0%, #ffe08b 65%, transparent 100%); right: 64px; top: 32px; opacity: .88; }
.blob { position: absolute; width: 340px; height: 210px; border-radius: 50%; background: #b4ece0; right: -20px; bottom: -68px; transform: rotate(-13deg); opacity: .55; }
.float-note {
  position: absolute;
  background: var(--surface-2);
  border: 1px solid rgba(54, 47, 43, .1);
  border-radius: 15px;
  padding: 9px 13px;
  font-size: 11.5px;
  font-weight: 750;
  color: #2c3e47;
  box-shadow: var(--shadow);
  z-index: 2;
}
.note-one { top: 42px; left: 14px; transform: rotate(-4deg); }
.note-two { right: 24px; bottom: 32px; transform: rotate(3deg); }
.ph-float { animation: phBob 4.2s ease-in-out infinite; }
@keyframes phBob {
  0%, 100% { transform: translate(386px, 196px) rotate(14deg); }
  50% { transform: translate(386px, 189px) rotate(11deg); }
}
.hero-dots { position: absolute; left: 0; bottom: 0; width: 100%; height: 17px; background: radial-gradient(circle at 10px -1px, transparent 12px, var(--bg) 13px) 0 0 / 24px 18px repeat-x; }

/* ---------- 区块头 ---------- */
.sec { margin-top: 42px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; gap: 18px; flex-wrap: wrap; }
.kicker { font-size: 10px; letter-spacing: .17em; color: var(--faint); font-weight: 800; margin: 0 0 6px; font-family: var(--font-mono); }
.sec h2 { font-size: clamp(20px, 2.5vw, 24px); letter-spacing: -.02em; margin: 0; }
.sec-sub { font-size: 13px; color: var(--muted); margin: 5px 0 0; }
.text-link { font-size: 12.5px; color: var(--muted); font-weight: 700; }
a.text-link:hover, button.text-link:hover { color: #e26d4b; }

/* ---------- 今日推荐大卡（全书统一 286px 桌面高度，切换零跳动） ---------- */
.featured {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  height: 286px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.feature-art { background: #ffe9d9; height: 100%; min-height: 286px; position: relative; overflow: hidden; margin: 0; border-right: 1px solid var(--line); }
.feature-art svg { width: 100%; height: 100%; position: absolute; inset: 0; display: block; }
.feature-copy { padding: 22px 30px; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.tag-row { display: flex; gap: 7px; flex-wrap: wrap; }
.tag { font-size: 11px; padding: 5px 10px; border-radius: 999px; background: var(--surface-3); color: var(--muted); font-weight: 700; border: 1px solid var(--line); }
.tag.orange { background: #fff0e8; color: #d06343; border-color: #f8d4c4; }
.feature-copy h3 { font-size: clamp(21px, 2.4vw, 25px); margin: 10px 0 6px; letter-spacing: -.02em; }
.feature-copy > p { font-size: 13.5px; color: var(--muted); line-height: 1.72; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; gap: 14px; color: var(--faint); font-size: 12px; margin: 12px 0 16px; flex-wrap: wrap; font-weight: 600; }
.feature-btns { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.read-btn {
  display: inline-flex; align-items: center;
  border: 0; border-radius: 999px;
  background: #ef7854; color: #fff;
  font-size: 13px; font-weight: 750;
  padding: 11px 20px;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 12px rgba(239, 120, 84, .28);
  transition: transform .15s, box-shadow .15s;
}
.read-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(239, 120, 84, .36); }
.shuffle-btn {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 700;
  padding: 10px 15px;
  transition: border-color .15s, background .15s;
}
.shuffle-btn:hover { border-color: var(--acc); background: var(--acc-softer); }

/* ---------- 前置联动筛选栏（与书架合一，零上下奔波） ---------- */
.shelf-stats { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.read-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--acc-softer);
  border: 1px solid var(--line);
  color: var(--acc);
  font-size: 11.5px;
  font-weight: 750;
}
.read-pill:empty { display: none; }
.shelf-filter-box {
  margin-bottom: 18px;
  padding: 15px 18px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.topic {
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12.5px;
  color: var(--ink-soft);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(30, 45, 37, .03);
  transition: background .15s, color .15s, border-color .15s, transform .12s;
}
.topic:hover { border-color: #253b4b; transform: translateY(-1px); }
.topic[aria-pressed="true"] { background: #253b4b; border-color: #253b4b; color: #fff; box-shadow: 0 4px 10px rgba(37, 59, 75, .2); }
.filter-bar-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.filter-msg { font-size: 12px; color: var(--muted); margin: 0; }
.only-ready-btn {
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 700;
  transition: background .15s, color .15s, border-color .15s;
}
.only-ready-btn:hover { border-color: var(--acc); color: var(--ink); }
.only-ready-btn[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: #fff; }

/* ---------- 书架 ---------- */
.shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; }
.book {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  color: inherit;
  box-shadow: 0 2px 8px rgba(30, 45, 37, .04);
  transition: transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .2s ease, border-color .2s ease;
}
a.book:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.book.planned { opacity: .86; background: var(--surface); }
.book-cover {
  position: relative;
  height: 158px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(54, 47, 43, .07);
}
.book-cover svg { width: 100%; height: 100%; display: block; transition: transform .28s cubic-bezier(.2,.7,.2,1); }
a.book:hover .book-cover svg { transform: scale(1.04); }
.c-green  { background: linear-gradient(160deg, #e7f6eb, #cfead7); }
.c-yellow { background: linear-gradient(160deg, #fff5d0, #fbe39e); }
.c-coral  { background: linear-gradient(160deg, #ffece6, #ffd5c9); }
.c-blue   { background: linear-gradient(160deg, #e5f5fc, #cbe6f6); }
.c-lav    { background: linear-gradient(160deg, #f2edfd, #dfd5f9); }
.c-sand   { background: linear-gradient(160deg, #fcf1e3, #f3dec3); }
.c-mint   { background: linear-gradient(160deg, #e3f7f0, #c6ece0); }
.book-cover .em { font-size: 64px; line-height: 1; filter: drop-shadow(0 8px 5px rgba(53,92,75,.12)); }
.book-info { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.book-info h3 { font-size: 15px; margin: 0 0 6px; line-height: 1.35; }
.book-info p { font-size: 12px; color: var(--muted); line-height: 1.65; margin: 0; flex: 1; min-height: 36px; }
.book-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; font-size: 11px; color: var(--faint); }
.age { background: var(--surface-3); border: 1px solid var(--line); border-radius: 999px; padding: 3.5px 8px; color: var(--muted); white-space: nowrap; font-weight: 600; }
.book .badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
a.book .badge { background: #ef7854; color: #fff; }
.book.planned .badge { background: rgba(255,255,255,.88); color: #728287; }
.book .done { position: absolute; top: 10px; right: 10px; font-size: 10.5px; font-weight: 800; color: var(--acc); background: rgba(255,255,255,.92); padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); }

/* ---------- 小小科学实验室（整体可点击大卡） ---------- */
.lab-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
.lab-card { display: block; text-decoration: none; color: inherit; border-radius: 24px; min-height: 176px; position: relative; padding: 26px; overflow: hidden; border: 1px solid rgba(54, 47, 43, .08); transition: transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .2s ease; }
.lab-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.lab-main { background: linear-gradient(140deg, #dcf3ea, #c8eadc); }
.lab-side { background: linear-gradient(140deg, #fdf0cf, #f9e1ae); }
.lab-card .kicker { color: #3f7868; }
.lab-side .kicker { color: #8c6a30; }
.lab-card h3 { font-size: 20px; margin: 10px 0 8px; max-width: 300px; letter-spacing: -.01em; color: #1e312b; }
.lab-card p { font-size: 13px; color: #4d665f; line-height: 1.75; max-width: 310px; margin: 0; }
.lab-side p { color: #6b5834; }
.lab-emoji { position: absolute; font-size: 76px; right: 24px; bottom: 14px; filter: drop-shadow(0 8px 6px rgba(53,92,75,.14)); }

/* ---------- 奇妙现象（全部整体可点击 + 原生科普卡弹窗） ---------- */
.mystery-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mystery { border-radius: 20px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; text-align: left; text-decoration: none; color: inherit; padding: 0; font: inherit; cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s; }
.mystery:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.mystery-art { height: 132px; width: 100%; overflow: hidden; border-bottom: 1px solid var(--line); }
.mystery-art svg { width: 100%; height: 100%; display: block; }
.mystery-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.mystery-body h3 { font-size: 14.5px; margin: 0 0 6px; }
.mystery-body p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.65; flex: 1; }

.mystery-dlg {
  width: min(520px, calc(100vw - 32px));
  margin: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: var(--surface-2);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(24, 38, 30, .24);
  overflow: hidden;
}
.mystery-dlg::backdrop { background: rgba(24, 38, 30, .45); backdrop-filter: blur(4px); }
.md-art { height: 168px; overflow: hidden; border-bottom: 1px solid var(--line); }
.md-art svg { width: 100%; height: 100%; display: block; }
.md-body { padding: 20px 24px 22px; display: grid; gap: 10px; }
.md-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.md-close { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 800; cursor: pointer; }
.md-close:hover { background: var(--acc-softer); color: var(--ink); }
.md-body h3 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.md-lead { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.md-explain { padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.72; color: var(--ink-soft); }
.md-tip { margin: 0; font-size: 12.5px; color: var(--acc); font-weight: 650; line-height: 1.6; }
.md-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 4px; }

/* ---------- 页脚 ---------- */
.ph-footer { margin-top: 52px; padding: 22px 0 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--faint); font-size: 12px; }
.ph-footer strong { color: var(--ink-soft); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .ph-hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 34px 30px 14px; }
  .hero-art { min-height: 250px; }
  .featured { grid-template-columns: 1fr; height: auto; }
  .feature-art { height: 210px; min-height: 210px; border-right: 0; border-bottom: 1px solid var(--line); }
  .shelf { grid-template-columns: repeat(2, 1fr); }
  .lab-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ph-hero { margin-top: 16px; border-radius: 22px; min-height: 0; }
  .hero-copy { padding: 26px 22px 18px; }
  .ph-hero h1 { font-size: 29px; }
  .hero-art { min-height: 215px; }
  .sec { margin-top: 32px; }
  .featured { border-radius: 20px; }
  .feature-copy { padding: 22px; }
  .shelf { gap: 11px; }
  .book-cover { height: 128px; }
  .book-info { padding: 12px; }
  .mystery-row { grid-template-columns: 1fr 1fr; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .ph-btn, .read-btn, .book, .mystery, .ph-float { transition: none; animation: none; }
}

/* ==========================================================================
   绘本阅读器（book.html）
   ========================================================================== */
.lesson-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--muted); }
.crumb { display: inline-flex; align-items: center; gap: 8px; }
.book-head {
  margin-top: 8px;
  padding: 14px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--surface-2), var(--acc-softer));
  border: 1px solid var(--line);
}
.book-head h1 { margin: 6px 0 2px; font-size: clamp(22px, 3.2vw, 30px); letter-spacing: -.03em; }
.book-head .en { margin: 0; color: var(--faint); font-family: var(--font-mono); font-size: 12.5px; }
.book-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.level { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); font-weight: 650; }
.level select { min-height: 36px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface-2); color: var(--ink); font: inherit; font-weight: 700; }

.flow { display: grid; grid-template-columns: minmax(0, 1fr) 276px; gap: 22px; padding: 14px 0 42px; align-items: start; }
.flow[hidden] { display: none; }
.play[hidden] { display: none; }
.stage { display: grid; gap: 12px; }
.spread {
  display: grid;
  grid-template-columns: 1.14fr .86fr;
  gap: 0;
  height: 300px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.illu { margin: 0; position: relative; background: #fdf5e8; height: 100%; min-height: 0; border-right: 1px solid var(--line); }
.illu svg, .illu img { width: 100%; height: 100%; display: block; object-fit: cover; }
.illu img { aspect-ratio: 400 / 260; }
.text { display: flex; flex-direction: column; justify-content: center; gap: 9px; padding: 18px 22px; overflow-y: auto; background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.page-k { margin: 0; font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; color: var(--acc); }
.text h2 { margin: 0; font-size: clamp(19px, 2.2vw, 23px); letter-spacing: -.02em; }
.narration { display: grid; gap: 7px; }
.narration p { margin: 0; font-size: 15px; line-height: 1.66; color: var(--ink-soft); }
.dialogue { display: grid; gap: 7px; margin-top: 2px; }
.bubble { position: relative; max-width: 92%; padding: 8px 13px; border-radius: 14px 14px 14px 4px; background: var(--surface-3); border: 1px solid var(--line); font-size: 14px; font-weight: 650; color: var(--ink); }
.bubble::before { content: attr(data-who); display: block; margin-bottom: 2px; font-size: 11px; font-weight: 750; color: var(--acc); }
.bubble.magnet { margin-left: auto; border-radius: 14px 14px 4px 14px; background: var(--acc-softer); }
.bubble.papa { background: var(--surface-3); }

/* 吸底翻页条：无论本页是否有高互动区，上一页/下一页始终在首屏可见 */
.pager {
  position: sticky;
  bottom: 10px;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-2) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 8px 24px rgba(30, 45, 37, .10);
}
.pager .btn { min-width: 118px; }
.dots { flex: 1; display: flex; gap: 6px; justify-content: center; }
.dots i { width: 100%; max-width: 28px; height: 8px; border-radius: 4px; background: var(--line-strong); cursor: pointer; transition: background .15s, transform .15s; }
.dots i:hover { transform: scaleY(1.3); }
.dots i.on { background: var(--acc); }
.dots i.read { background: color-mix(in srgb, var(--acc) 45%, var(--surface)); }

/* 互动区 */
.play { padding: 16px 20px; background: var(--surface-2); border: 2px solid var(--line-strong); border-radius: 22px; box-shadow: var(--shadow); }
.play h3 { margin: 0 0 14px; font-size: 16px; line-height: 1.45; }
.play h3 b { display: inline-flex; padding: 2px 8px; border-radius: 999px; background: var(--acc-softer); margin-right: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--acc); vertical-align: 1px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px;
  border: 1.5px solid var(--line-strong); border-radius: 13px;
  background: var(--surface-2); color: var(--ink);
  box-shadow: 0 3px 0 var(--line);
  font: inherit; font-weight: 800; font-size: 15px; cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s, box-shadow .1s;
}
.choice:hover { border-color: var(--acc); background: var(--acc-softer); transform: translateY(-1px); }
.choice:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.choice[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.choice.is-ok { border-color: var(--acc); background: var(--acc-soft); color: var(--acc); }
.choice.is-ok[aria-pressed="true"] { background: var(--acc); color: #fff; }
.choice.is-no { opacity: .55; }
.feedback { min-height: 1.9em; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.feedback.ok { color: var(--acc); }
.play-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* attract：一排物品，磁铁探针滑过去 */
.attract { position: relative; padding: 54px 10px 10px; border-radius: var(--radius); background: var(--surface-3); border: 1px solid var(--line); }
.probe { position: absolute; top: 6px; left: 0; font-size: 30px; line-height: 1; transition: transform .35s cubic-bezier(.3,1.4,.5,1); pointer-events: none; transform: translateX(-40px); }
.items { display: flex; justify-content: space-around; gap: 6px; flex-wrap: wrap; }
.item { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 64px; padding: 8px 6px; border: 2px dashed transparent; border-radius: 14px; background: transparent; color: var(--ink); font: inherit; cursor: pointer; transition: transform .25s, border-color .15s; }
.item .obj { font-size: 34px; line-height: 1; transition: transform .3s cubic-bezier(.3,1.4,.5,1); }
.item span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.item:hover { border-color: var(--line-strong); background: var(--surface-2); }
.item[aria-pressed="true"] { border-color: var(--acc); border-style: solid; background: var(--acc-softer); }
.item.stuck .obj { transform: translateY(-26px) rotate(-8deg); }
.item.maybe .obj { animation: p-wob .6s ease-in-out 2; }
@keyframes p-wob { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }

/* barrier：SVG 舞台 + 原生滑杆 */
.stage-svg { width: 100%; max-height: 175px; height: auto; display: block; border-radius: var(--radius); background: var(--surface-3); border: 1px solid var(--line); }
.mats { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.mat { min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-2); color: var(--muted); font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
.mat[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.slider-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.slider-row output { min-width: 4ch; text-align: right; font-family: var(--font-mono); color: var(--ink); font-weight: 700; }

/* 原生 range */
.ph-range { --track: var(--line-strong); --fill: var(--acc); --thumb: 1.25rem;
  appearance: none; inline-size: 100%; block-size: 2.5rem; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; accent-color: var(--acc); }
.ph-range::-webkit-slider-runnable-track { block-size: .5rem; border-radius: 999px; background: linear-gradient(to right, var(--fill) var(--p, 0%), var(--track) var(--p, 0%)); }
.ph-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; inline-size: var(--thumb); block-size: var(--thumb); margin-block-start: calc((.5rem - var(--thumb)) / 2); border: 2px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,.18); border-radius: 50%; background: var(--fill); }
.ph-range::-moz-range-track { block-size: .5rem; border-radius: 999px; background: var(--track); }
.ph-range::-moz-range-progress { block-size: .5rem; border-radius: 999px; background: var(--fill); }
.ph-range::-moz-range-thumb { inline-size: var(--thumb); block-size: var(--thumb); border: 2px solid #fff; border-radius: 50%; background: var(--fill); }
.ph-range:focus-visible { outline: 2px solid var(--acc); outline-offset: 4px; border-radius: 4px; }

/* poles */
.poles-stage { position: relative; }
.lbl { position: absolute; top: 10px; left: 50%; translate: -50% 0; padding: 4px 12px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 800; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.lbl.show { opacity: 1; }

/* 侧栏 */
.aside { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 12px; }
.aside > section { padding: 17px 19px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; font-size: 13.5px; }
.aside h3 { margin: 0 0 8px; font-size: 12.5px; letter-spacing: .06em; color: var(--muted); font-family: var(--font-mono); }
.aside p { color: var(--ink-soft); line-height: 1.7; }
.aside ul { list-style: none; display: grid; gap: 6px; }
.aside li b { color: var(--ink); }
.aside details summary { cursor: pointer; font-weight: 750; color: var(--acc); list-style: none; display: flex; align-items: center; gap: 6px; }
.aside details summary::-webkit-details-marker { display: none; }
.aside details summary::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--acc-softer); font-family: var(--font-mono); }
.aside details[open] summary::before { content: "−"; }
.aside details p { margin-top: 10px; }

/* 结尾：科学卡 / 实验 / 生活 / 继续 */
.ending { display: grid; gap: 16px; padding: 16px 0 70px; }
.ending[hidden] { display: none; }
.end-head { padding: 24px 26px; border-radius: 22px; background: linear-gradient(135deg, var(--acc-softer), var(--surface-2)); border: 1px solid var(--line); }
.end-head h2 { margin: 6px 0 6px; font-size: clamp(22px, 3vw, 30px); }
.end-head p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.card { padding: 22px 25px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 2px 8px rgba(30, 45, 37, .03); }
.card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 17px; flex-wrap: wrap; }
.card h3 b { display: inline-flex; padding: 2px 9px; border-radius: 999px; background: var(--acc-softer); font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--acc); }
.facts { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: f; }
.facts li { position: relative; padding: 14px 16px 14px 52px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; color: var(--ink-soft); counter-increment: f; }
.facts li::before { content: counter(f); position: absolute; left: 14px; top: 12px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--acc-soft); color: var(--acc); font-weight: 800; font-size: 13px; }
.mis { margin-top: 14px; display: grid; gap: 8px; }
.mis div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 13.5px; padding: 10px 12px; border-radius: 12px; background: var(--surface-3); }
.mis s { color: var(--danger); text-decoration-thickness: 2px; }
.mis ins { text-decoration: none; color: var(--acc); font-weight: 700; }
.exp { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.exp ol { margin: 0; padding-left: 20px; font-size: 14.5px; color: var(--ink-soft); }
.exp ol li { padding: 3px 0; }
.exp .box h4, .exp h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-family: var(--font-mono); letter-spacing: .06em; }
.exp ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink-soft); }
.callout { margin-top: 14px; padding: 12px 16px; border-left: 3px solid var(--gold); border-radius: 0 14px 14px 0; background: var(--surface-3); font-size: 13.5px; color: var(--ink-soft); }
.life { display: flex; flex-wrap: wrap; gap: 8px; }
.life span { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 650; }
.ask { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.ask p { margin: 0; font-size: clamp(18px, 2.4vw, 22px); font-weight: 800; line-height: 1.4; letter-spacing: -.01em; }
.ask .btn { white-space: nowrap; }

@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr; }
  .aside { position: static; }
}
@media (max-width: 720px) {
  .spread { grid-template-columns: 1fr; height: auto; }
  .illu { border-right: 0; border-bottom: 1px solid var(--line); height: auto; aspect-ratio: 400 / 240; min-height: 0; }
  .text { padding: 16px 18px; overflow-y: visible; justify-content: flex-start; }
  .exp, .mis div, .ask { grid-template-columns: 1fr; }
  .pager { padding: 8px 10px; gap: 8px; }
  .pager .btn { min-width: 0; }
  .play { padding: 15px; }
  .item .obj { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .probe, .item .obj, .choice, .book, .topic, .lbl { transition: none; }
  .item.maybe .obj { animation: none; }
}

/* ---------- 场景 SVG 内的动画类 ---------- */
.sc { width: 100%; height: 100%; display: block; }
.sc .field-line { stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.2s ease; }
.sc.show-field .field-line { stroke-dashoffset: 0; }
.sc .field-dots { opacity: 0; transition: opacity .8s ease .3s; }
.sc.show-field .field-dots { opacity: 1; }
.sc .stars circle { animation: p-twinkle 2.5s ease-in-out infinite; }
.sc .stars circle:nth-child(2n) { animation-delay: 1.2s; }
@keyframes p-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.sc.wiggle .wig { animation: p-wob .5s ease-in-out 2; transform-origin: center; transform-box: fill-box; }
.sc .clips-fly { animation: p-fly 2.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes p-fly { 0%, 60%, 100% { transform: translate(0, 0); } 75% { transform: translate(-6px, -12px); } 85% { transform: translate(-4px, -10px); } }
@media (prefers-reduced-motion: reduce) {
  .sc .stars circle, .sc .clips-fly { animation: none; }
  .sc .field-line { transition: none; }
}
