/* 外研版 / 中小学教材点读馆 */
:root {
  --ink: #3f2a1a;
  --muted: #9a6b4a;
  --paper: #fffdf7;
  --cream: #fff7ed;
  --teal: #0f766e;
  --teal-soft: #ccfbf1;
  --amber: #f59e0b;
  --coral: #fb7185;
  --sky: #38bdf8;
  --en: "Fredoka", "Nunito", "Noto Sans SC", system-ui, sans-serif;
  --zh: "Noto Sans SC", "Fredoka", "PingFang SC", sans-serif;
  --shadow: 0 10px 0 rgba(180, 83, 9, 0.1), 0 18px 36px rgba(251, 146, 60, 0.16);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--zh);
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 12%, #fde68a 0 90px, transparent 91px),
    radial-gradient(circle at 92% 8%, #fda4af 0 70px, transparent 71px),
    radial-gradient(circle at 88% 88%, #6ee7b7 0 120px, transparent 121px),
    linear-gradient(180deg, #fff7ed, #fecaca 42%, #a5f3fc);
}
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }

.tb-hub { max-width: 1080px; margin: 0 auto; padding: 28px 18px 80px; }
.tb-kicker {
  display: inline-block;
  background: #fff;
  color: #c2410c;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 0 #fdba74;
}
.tb-hub h1 {
  font-family: var(--en);
  font-size: clamp(1.8rem, 4.5vw, 2.7rem);
  margin: 14px 0 8px;
  color: #9f1239;
}
.tb-lead { color: #9a3412; font-weight: 600; max-width: 42rem; line-height: 1.65; }
.tb-book {
  margin-top: 22px;
  background: #fff;
  border-radius: 28px;
  padding: 18px;
  box-shadow: var(--shadow);
  border: 5px solid #fff;
}
.tb-book h2 { margin: 0 0 6px; font-family: var(--en); color: var(--teal); }
.tb-book .meta { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.tb-pager { display: flex; gap: 6px; flex-wrap: nowrap; flex-shrink: 0; }
.tb-pager .tb-btn[hidden] { display: none; }
.tb-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.tb-page-card {
  display: block;
  text-decoration: none;
  background: linear-gradient(180deg, #fff, #fff7ed);
  border-radius: 22px;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 8px 0 #fdba74;
}
.tb-page-card img {
  width: 100%;
  aspect-ratio: 3/4;
  max-height: 260px;
  object-fit: contain;
  object-position: top center;
  display: block;
  background: #e8eef2;
}
.tb-page-card img.is-missing {
  object-fit: none;
  background:
    linear-gradient(180deg, #fde68a, #fdba74);
}
.tb-page-card .body { padding: 12px 14px 16px; }
.tb-page-card .tag {
  display: inline-block;
  background: #fef3c7;
  color: #b45309;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 800;
}
.tb-page-card h3 { margin: 8px 0 4px; font-size: 1.05rem; }
.tb-page-card p { margin: 0; color: #9a3412; font-size: 13px; }

/* Reader chrome */
html.tb-play, body.tb-play { height: 100%; overflow: hidden; }
.tb-shell {
  --tb-chrome: 52px;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 6px 8px 8px;
  gap: 6px;
}
.tb-top, .tb-foot {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px 8px;
  height: 52px;
  min-height: 52px;
  max-height: 52px;
  overflow-x: auto;
  overflow-y: hidden;
  flex: 0 0 auto;
}
.tb-brand {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  padding: 6px 10px;
  box-shadow: 0 4px 0 #fdba74;
  text-decoration: none;
  min-width: 0;
  max-width: 220px;
}
.tb-brand small { color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-brand strong { font-family: var(--en); color: var(--teal); font-size: 13px; white-space: nowrap; }
.tb-tools { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px 8px; flex: 1 1 auto; min-width: 0; }
.tb-modes { display: flex; flex-wrap: nowrap; gap: 6px; flex: 1 1 auto; min-width: 0; overflow-x: auto; }
.tb-btn {
  border: 0;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 3px 0 #fdba74;
  white-space: nowrap;
}
.tb-btn.primary { background: #0f766e; color: #fff; box-shadow: 0 3px 0 #115e59; }
.tb-btn.gold { background: #f59e0b; color: #fff; box-shadow: 0 3px 0 #b45309; }
.tb-btn.is-on { background: #fb7185; color: #fff; box-shadow: 0 3px 0 #be123c; }
.tb-btn:disabled { opacity: .45; cursor: not-allowed; }
.tb-status {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.tb-main {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(260px, max-content) minmax(380px, 1fr);
  gap: 8px;
  align-items: stretch;
}
.tb-spread-wrap, .tb-side {
  min-height: 0;
  background: var(--paper);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tb-spread-wrap {
  display: grid;
  place-items: stretch;
  height: 100%;
  width: min(48%, calc((100dvh - var(--tb-chrome)) * 524 / 737));
  background: #edf1f4;
}
.tb-spread {
  position: relative;
  width: 100%;
  height: 100%;
}
.tb-spread img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  user-select: none;
  -webkit-user-drag: none;
  background: #fff;
}
.tb-page-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 8%, #fde68a 0 40px, transparent 41px),
    linear-gradient(180deg, #fffdf7, #ffedd5);
  border-radius: 4px;
  overflow: hidden;
}
.tb-fb-line, .tb-fb-who {
  position: absolute;
  box-sizing: border-box;
}
.tb-fb-line {
  background: #fff;
  border-radius: 12px;
  padding: 4px 6px;
  font-family: var(--en);
  font-size: clamp(10px, 1.6vw, 14px);
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 0 2px 0 rgba(180, 83, 9, .12);
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.tb-fb-line span {
  flex: 0 0 auto;
  color: #fff;
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 800;
}
.tb-fb-who {
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  display: grid;
  place-items: center;
  opacity: .88;
  box-shadow: 0 6px 0 rgba(0,0,0,.08);
}
.tb-spread.is-missing img { visibility: hidden; }
.tb-hot {
  position: absolute;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  pointer-events: none;
}
.tb-hot[data-kind="word"] { z-index: 3; }
.tb-hot[data-kind="line"] { z-index: 2; }
.tb-hot[data-kind="who"] { z-index: 1; }
body.show-hot:not(.tb-mode-sentence) .tb-hot[data-kind="word"] {
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .9);
  background: rgba(253, 224, 71, .1);
}
body.show-hot.tb-mode-sentence .tb-hot[data-kind="line"] {
  box-shadow: inset 0 0 0 1px rgba(20, 184, 166, .75);
}
body.show-hot .tb-hot[data-kind="who"] {
  box-shadow: none;
}
.tb-hot.is-on,
body.show-hot .tb-hot.is-on {
  background: rgba(251, 191, 36, .28);
  box-shadow: inset 0 0 0 1px #f59e0b;
  outline: none;
}
.tb-hot.is-phrase,
body.show-hot .tb-hot.is-phrase {
  background: rgba(45, 212, 191, .18);
  box-shadow: inset 0 0 0 1px #14b8a6;
  outline: none;
}
.tb-hot:focus-visible {
  outline: 1px solid #0f766e;
  outline-offset: -1px;
}

.tb-side {
  display: flex;
  flex-direction: column;
  padding: 10px 14px 10px;
  min-width: 0;
}
.tb-side-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tb-side-head h2 { margin: 0; font-size: 1.15rem; font-family: var(--en); }
.tb-side-head span { color: var(--muted); font-size: 13px; font-weight: 700; }
#tb-side-hint { display: none !important; }
.tb-side-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 0;
  flex: 0 0 auto;
  transform-origin: top left;
}
.tb-side-pager[hidden] { display: none; }
.tb-side-pager .tb-btn {
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 16px;
  padding: 6px 10px;
}
.tb-side-pager span {
  font-family: var(--en);
  font-weight: 800;
  font-size: 14px;
  line-height: 16px;
  color: var(--teal);
  flex: 0 0 auto;
  white-space: nowrap;
}
.tb-audio-dock {
  margin: 8px 0 0;
  flex: 0 0 auto;
  transform-origin: top left;
}
.tb-audio-dock audio,
.tb-side .tb-listen-embed audio,
.tb-coach-audio audio {
  width: 100%;
  height: 36px;
  flex: 0 0 auto;
}
.tb-audio-dock[hidden] { display: none; }
.tb-audio-dock .tb-listen-embed {
  background: #fff;
  border-radius: 18px;
  padding: 10px 12px 8px;
  border: 2px solid #fde68a;
  margin: 0;
}
.tb-listen-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tb-audio-dock .tb-listen-bar audio,
.tb-side .tb-listen-embed .tb-listen-bar audio {
  flex: 1 1 220px;
  width: auto;
  min-width: 0;
  margin: 0;
}
.tb-listen-details {
  flex: 0 0 auto;
  margin: 0;
  min-width: 0;
}
.tb-listen-details[open] {
  flex: 1 1 100%;
}
.tb-listen-details > summary.tb-listen-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 4.6em;
  margin: 0;
  list-style: none;
  cursor: pointer;
  background: #f59e0b;
  color: #fff;
  box-shadow: 0 3px 0 #b45309;
}
.tb-listen-details > summary.tb-listen-toggle::-webkit-details-marker { display: none; }
.tb-listen-details > summary.tb-listen-toggle::marker { content: ""; }
.tb-listen-details[open] > summary.tb-listen-toggle {
  background: #0f766e;
  color: #fff;
  box-shadow: 0 3px 0 #115e59;
}
.tb-listen-script-kicker {
  margin: 0 0 8px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
}
.tb-audio-dock .tb-listen-script {
  max-height: min(46vh, 420px);
  overflow: auto;
}
.tb-script {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin-top: 8px;
  padding-right: 4px;
}
.tb-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: start;
  background: #fff;
  border-radius: 16px;
  padding: 8px 10px;
  margin-bottom: 8px;
  border: 2px solid transparent;
}
.tb-line.is-on { border-color: #f59e0b; background: #fffbeb; }
.tb-who {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  border-radius: 999px;
  padding: 4px 8px;
  text-align: center;
  align-self: start;
  min-width: 48px;
}
.tb-en { font-family: var(--en); font-size: 18px; line-height: 1.62; margin: 0; min-width: 0; }
.tb-blank {
  display: inline-block;
  min-width: 4.2em;
  height: 0.72em;
  margin: 0 0.18em -0.08em;
  border-bottom: 2px solid currentColor;
  vertical-align: baseline;
}
button.tb-blank-coach {
  padding: 0;
  border: 0;
  border-bottom: 2px solid #2563eb;
  background: transparent;
  color: inherit;
  cursor: pointer;
  min-width: 4.2em;
  height: 0.85em;
}
button.tb-blank-coach:hover { background: #dbeafe; }
.tb-en .w {
  display: inline;
  padding: 0 1px;
  border-radius: 4px;
  cursor: pointer;
}
.tb-en .w:hover, .tb-en .w.is-on { background: #fde68a; }
.tb-en .w.is-phrase { background: #99f6e4; }
.tb-zh { margin: 6px 0 0; color: var(--muted); font-size: 15px; font-weight: 600; display: none; }
body.show-zh .tb-zh { display: block; }
.tb-play-line {
  border: 0;
  background: #ecfdf5;
  color: var(--teal);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  font-size: 14px;
}

.tb-dict {
  border-top: 2px dashed #fcd34d;
  margin-top: 8px;
  padding-top: 10px;
  max-height: 58%;
  min-height: 168px;
  overflow: auto;
  flex: 0 1 auto;
}
.tb-dict-card { display: flex; flex-direction: column; gap: 8px; }
.tb-dict-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.tb-dict-head h3 { flex: 1; min-width: 0; margin: 0; }
.tb-dict-hide {
  flex-shrink: 0;
  border: 0;
  background: #f1f5f9;
  color: #64748b;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.tb-dict-hide:hover { background: #e2e8f0; color: #334155; }
.tb-dict.is-collapsed {
  min-height: 0;
  max-height: none;
  padding-top: 0;
  border-top-color: transparent;
}
.tb-dict.is-collapsed .tb-dict-card { display: none; }
.tb-dict-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px 14px;
  align-items: start;
}
.tb-sec-context,
.tb-sec-extend { grid-column: 1 / -1; }
.tb-dict-head h3 {
  font-family: var(--en);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 10px;
  font-size: 1.55rem;
  line-height: 1.2;
}
.tb-dict .ipa { color: var(--muted); font-weight: 700; font-size: 15px; }
.tb-dict-en {
  font-family: var(--en);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.55;
  margin: 0;
  overflow-wrap: break-word;
  word-break: normal;
}
.tb-dict-who {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 8px;
  padding: 3px 10px;
  width: fit-content;
  max-width: 100%;
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}
.tb-dict-who-zh {
  font-size: 12px;
  font-weight: 700;
  color: #1e3a8a;
}
.tb-dict-en.is-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding-left: 0;
}
.tb-dict-bullet {
  flex: none;
  color: #0f766e;
  line-height: 1.55;
}
.tb-dict-line {
  min-width: 0;
  flex: 1;
  overflow-wrap: break-word;
  word-break: normal;
}
.tb-dict-zh { margin: 6px 0 0; color: #0f766e; font-size: 15px; font-weight: 700; line-height: 1.5; }
.tb-dict mark {
  background: #fde68a;
  color: inherit;
  padding: 0 3px;
  border-radius: 4px;
}
.tb-pos {
  display: inline-block;
  margin-right: 8px;
  color: #0f766e;
  font-weight: 800;
}
.tb-sec {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  min-width: 0;
}
.tb-sec b {
  display: inline-block;
  background: #ccfbf1;
  color: #0f766e;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  margin: 0 0 8px;
}
.tb-sec p:not(.tb-dict-en):not(.tb-dict-zh):not(.tb-dict-who):not(.tb-dict-loading):not(.tb-dict-err),
.tb-sec li {
  margin: 4px 0;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 600;
}
.tb-sec ul { margin: 0; padding-left: 1.15rem; }
.tb-sec li strong { font-family: var(--en); font-weight: 800; }
.tb-dict-loading { color: var(--muted); font-size: 14px; font-weight: 600; }
.tb-dict-err { color: #be123c; font-size: 14px; font-weight: 700; }

.tb-dict:empty { display: none; }

.tb-act {
  background: #fff;
  border-radius: 18px;
  padding: 12px 12px 10px;
  margin-bottom: 12px;
  border: 2px solid #fde68a;
}
.tb-act-kicker {
  margin: 0 0 10px;
  color: #0f766e;
  font-size: 13px;
  font-weight: 800;
}
.tb-act.is-on { border-color: #f59e0b; background: #fffbeb; }
.tb-act-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 6px;
  align-items: start;
  margin: 0 0 6px;
}
.tb-act-head .tb-en {
  font-weight: 800;
  font-size: 18px;
  line-height: 1.5;
}
.tb-unit {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border-radius: 12px;
  padding: 8px 8px;
  margin: 0 0 8px;
  border: 2px solid transparent;
  cursor: pointer;
}
.tb-unit.tb-act-head { grid-template-columns: minmax(0, 1fr) 34px; cursor: pointer; }
.tb-unit.is-on { border-color: #f59e0b; background: #fff7ed; }
.tb-unit .tb-en { margin: 0; }
.tb-unit-solo { grid-template-columns: minmax(0, 1fr); }
.tb-act-label {
  margin: 8px 0 2px;
  color: #0f766e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tb-table {
  display: grid;
  gap: 0;
  margin: 6px 0 10px;
  border: 2px solid #fdba74;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.tb-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid #fde68a;
}
.tb-table-aspect .tb-table-row {
  grid-template-columns: minmax(88px, 0.9fr) minmax(0, 1.1fr) minmax(0, 1.1fr);
}
.tb-table-notes .tb-table-row {
  grid-template-columns: minmax(108px, 0.7fr) minmax(0, 1.4fr);
}
.tb-note-line { margin: 0; padding: 2px 0; border: 0; }
.tb-note-line .tb-en { font-size: 14px; }
.tb-pap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 12px;
}
.tb-pap-col {
  background: #fff;
  border: 1.5px solid #fdba74;
  border-radius: 14px;
  overflow: hidden;
}
.tb-pap-h {
  margin: 0;
  padding: 7px 8px;
  background: #fff7ed;
  text-align: center;
  font-weight: 800;
  color: #9a3412;
}
.tb-pap-note { margin: 0; padding: 6px 8px; border: 0; border-top: 1px solid #ffedd5; border-radius: 0; }
.tb-pap-note .tb-en { font-size: 13px; line-height: 1.4; }
.tb-table-4 .tb-table-row {
  grid-template-columns: minmax(72px, 0.95fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}
.tb-table-debate .tb-table-row {
  grid-template-columns: minmax(64px, 0.7fr) minmax(0, 1.15fr) minmax(0, 1.15fr);
}
.tb-table-row:first-child { border-top: 0; }
.tb-table-row.is-head { background: #fff7ed; }
.tb-table-cell {
  min-width: 0;
  padding: 8px 10px;
  border-left: 1px solid #fde68a;
}
.tb-table-cell:first-child { border-left: 0; }
.tb-table-cell.is-head {
  margin: 0;
  text-align: center;
  padding: 6px 8px;
}
.tb-table-cell.is-row-label {
  margin: 0;
  text-align: left;
  padding: 8px 10px;
  font-weight: 800;
  color: #0f766e;
  text-transform: capitalize;
}
.tb-table-cell.is-row-label .tb-zh {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: none;
}
.tb-table-cell.is-empty { min-height: 2.2rem; background: #fffbeb; }
.tb-table-cell.tb-unit {
  margin: 0;
  border-radius: 0;
  border: 0;
  display: block;
}
.tb-table-cell.tb-unit.is-on {
  background: #fff7ed;
  box-shadow: inset 0 0 0 2px #f59e0b;
}
.tb-table-cell .tb-en {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}
.tb-table-cell .tb-zh {
  margin: 4px 0 0;
  font-size: 12px;
}
.tb-coach-open {
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  padding: 4px 12px;
  background: #b45309;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.tb-letter-slots {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 8px 0 10px;
}
.tb-letter-slot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 12px;
}
.tb-letter {
  min-width: 1.4em;
  font-weight: 800;
  font-size: 18px;
  color: #9a3412;
}
.tb-letter-slot .tb-blank { flex: 1; min-height: 28px; }
.tb-name-box {
  display: grid;
  gap: 8px 12px;
  margin: 8px 0 12px;
  padding: 12px 10px;
  background: #fff;
  border: 1.5px solid #334155;
  border-radius: 6px;
}
.tb-name-item {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin: 0;
  padding: 2px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}
.tb-name-item .tb-en { font-size: 16px; font-weight: 800; }
.tb-name-item .tb-blank { min-width: 2.4em; }
.tb-bubbles { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.tb-bubble {
  margin: 0;
  padding: 8px 12px;
  background: #eff6ff;
  border-radius: 16px;
}
.tb-bank, .tb-act-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 4px;
}
.tb-bank span, .tb-act-chips .tb-unit {
  display: inline-flex;
  margin: 0;
  padding: 4px 8px;
  background: #ecfdf5;
  color: #115e59;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 2px solid transparent;
  grid-template-columns: minmax(0, 1fr);
}
.tb-bank-jobs span, .tb-bank span.is-job {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}
.tb-bank-names span, .tb-bank span.is-name {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #93c5fd;
}
.tb-notes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 6px;
}
.tb-notes-row {
  display: grid;
  grid-template-columns: minmax(7.2rem, 30%) minmax(0, 1fr);
  gap: 8px 12px;
  align-items: start;
}
.tb-notes-name {
  margin: 0;
  padding: 8px 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
}
.tb-notes-name .tb-en {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #1d4ed8;
}
.tb-notes-name .tb-zh {
  margin: 4px 0 0;
  font-size: 12px;
  color: #64748b;
}
.tb-notes-bullets {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.tb-notes-item {
  margin: 0;
  padding: 7px 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.tb-notes-item .tb-en {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}
.tb-notes-item .tb-zh {
  margin: 4px 0 0;
  font-size: 12px;
}
@media (max-width: 640px) {
  .tb-notes-row {
    grid-template-columns: 1fr;
  }
  .tb-cards, .tb-match-cols, .tb-chart-row {
    grid-template-columns: 1fr;
  }
}
.tb-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 6px;
}
.tb-card {
  margin: 0;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tb-card-name {
  margin: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  border: 2px solid #93c5fd;
  font-size: 13px;
  font-weight: 800;
  width: fit-content;
}
.tb-card-blurb {
  margin: 0;
  padding: 0;
}
.tb-card-blurb .tb-en {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}
.tb-card-blurb .tb-zh {
  margin: 3px 0 0;
  font-size: 12px;
  color: #64748b;
}
.tb-chart {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 6px;
}
.tb-chart-who {
  margin: 0;
  padding: 8px 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  width: fit-content;
}
.tb-chart-who .tb-en {
  margin: 0;
  font-weight: 800;
  color: #1d4ed8;
}
.tb-chart-row {
  display: grid;
  grid-template-columns: 6.8em minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}
.tb-chart-head {
  margin: 0;
  padding: 6px 8px;
  background: #ecfdf5;
  color: #047857;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.tb-chart-cells {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.tb-chart-cell {
  margin: 0;
  padding: 7px 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.tb-chart-cell .tb-en { margin: 0; font-size: 13px; line-height: 1.45; }
.tb-chart-cell .tb-zh { margin: 3px 0 0; font-size: 12px; }
.tb-skill {
  margin: 8px 0 4px;
  padding: 8px 10px;
  background: #f8fafc;
  border-left: 4px solid #64748b;
  border-radius: 10px;
}
.tb-skill-title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 800;
  color: #334155;
}
.tb-skill .tb-en { margin: 0; font-size: 13px; line-height: 1.45; }
.tb-skill .tb-zh { margin: 4px 0 0; font-size: 12px; color: #64748b; }
.tb-timeline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 2px 4px;
  padding: 8px 4px 0;
  border-top: 2px solid #cbd5e1;
}
.tb-timeline-year {
  font-weight: 800;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 13px;
}
.tb-story-fill {
  margin: 8px 0 12px;
  padding: 12px 12px 10px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 16px;
}
.tb-story-events {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 14px;
}
.tb-story-event {
  display: grid;
  grid-template-columns: 1.6em minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  margin: 0;
  padding: 4px 2px;
  background: transparent;
  border: 0;
}
.tb-story-mark {
  font-weight: 800;
  color: #9a3412;
  padding-top: 2px;
}
.tb-story-body { min-width: 0; }
.tb-story-event .tb-en {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}
.tb-story-event.is-on {
  background: #fffbeb;
  border-radius: 10px;
}
.tb-blank-hit {
  display: inline-block;
  min-width: 5.4em;
  height: 0.95em;
  margin: 0 0.2em -0.12em;
  padding: 0;
  border: 0;
  border-bottom: 2px solid #9a3412;
  background: transparent;
  vertical-align: baseline;
  cursor: pointer;
}
.tb-blank-hit:hover,
.tb-blank-hit:focus-visible {
  background: #fde68a;
  outline: 0;
}
.tb-story-event.is-filled .tb-story-full { color: #0f766e; font-weight: 800; }
.tb-story-line {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 8px 4px 0;
  padding: 0 2px 4px;
}
.tb-story-line::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 46px;
  height: 3px;
  background: #cbd5e1;
  border-radius: 99px;
}
.tb-story-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 16%;
  min-width: 44px;
}
.tb-story-slot {
  width: 36px;
  height: 26px;
  border: 2px solid #94a3b8;
  border-radius: 999px;
  background: #fff;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 1px 0 #e2e8f0;
}
.tb-story-slot-letter {
  display: none;
  font-weight: 800;
  font-size: 14px;
  color: #0f766e;
}
.tb-story-slot.is-on {
  border-color: #0f766e;
  background: #ecfdf5;
}
.tb-story-slot.is-on .tb-story-slot-letter { display: inline; }
.tb-story-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #cbd5e1;
}
.tb-story-year {
  font-size: 12px;
  font-weight: 800;
  color: #334155;
  min-height: 1.2em;
}
.tb-story-year.is-empty { visibility: hidden; }
.tb-match-cols {
  display: grid;
  grid-template-columns: minmax(7rem, 38%) minmax(0, 1fr);
  gap: 8px 12px;
  margin: 6px 0;
}
.tb-cover-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin: 4px 0 6px;
}
.tb-cover-col {
  min-width: 0;
  padding: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.tb-cover-col .tb-act-head { padding: 0 0 6px; }
.tb-speakers, .tb-family {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 6px 0;
}
.tb-speaker, .tb-family-item, .tb-job-blank, .tb-field-item, .tb-opt, .tb-frame, .tb-stem {
  margin: 0;
  padding: 7px 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.tb-speaker .tb-en, .tb-family-item .tb-en, .tb-opt .tb-en, .tb-frame .tb-en, .tb-stem .tb-en,
.tb-pass-sent .tb-en, .tb-rewrite-prompt .tb-en {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}
/* 右侧课文与正文 .tb-en 使用同一字号 */
.tb-article-box .tb-en,
.tb-article-box .tb-para-sent .tb-en {
  font-size: 18px;
  line-height: 1.62;
}
.tb-job-blanks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 8px;
}
.tb-job-blank {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 42%;
  flex: 1 1 42%;
  background: #fffbeb;
  border-color: #fcd34d;
  color: #92400e;
  font-weight: 800;
  font-size: 13px;
}
.tb-job-blank .tb-blank { min-width: 3.2em; }
.tb-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 6px 0 8px;
}
.tb-field-item {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #92400e;
  font-weight: 800;
  font-size: 13px;
}
.tb-stems {
  display: flex;
  flex-direction: column;
  margin: 8px 0 6px;
  border: 1px solid #fde68a;
  border-radius: 12px;
  overflow: hidden;
  background: #fffbeb;
}
.tb-stem {
  border: 0;
  border-bottom: 1px solid #fde68a;
  border-radius: 0;
  background: transparent;
}
.tb-stem:last-child { border-bottom: 0; }
.tb-rewrite {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 6px;
}
.tb-rewrite-item { min-width: 0; }
.tb-rewrite-prompt {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}
.tb-rewrite-line {
  margin: 6px 0 0;
  padding: 4px 2px 2px;
  color: #64748b;
  font-weight: 700;
  font-size: 13px;
}
.tb-opt-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #fff;
  margin: 6px 0 10px;
}
.tb-passage {
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 12px;
  line-height: 1.55;
}
.tb-pass-sent {
  display: inline;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}
.tb-pass-sent .tb-en { display: inline; }
.tb-pass-sent + .tb-pass-sent { margin-left: 0.35em; }
.tb-pass-sent .tb-zh { margin: 0 0 0 4px; display: none; }
body.show-zh .tb-pass-sent .tb-zh { display: inline; }
.tb-skill-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(7.5rem, 38%);
  gap: 8px 12px;
  align-items: start;
  margin: 6px 0;
}
.tb-skill-sents { min-width: 0; }
.tb-para {
  margin: 8px 0;
  padding: 0;
}
.tb-para-sent {
  display: inline;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}
.tb-para-sent .tb-en { display: inline; }
.tb-para-sent + .tb-para-sent { margin-left: 0.35em; }
.tb-frames {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0 4px;
}
.tb-frame {
  background: #f8fafc;
  border-style: dashed;
}
.tb-notes-hub {
  margin: 0 0 6px;
  padding: 5px 10px;
  width: fit-content;
  background: #ea580c;
  color: #fff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}
.tb-mind {
  display: grid;
  grid-template-columns: 6.6rem minmax(0, 1fr);
  gap: 10px 16px;
  align-items: center;
  margin: 8px 0 6px;
}
.tb-mind-hub {
  display: grid;
  place-items: center;
  width: 6.6rem;
  min-height: 5.4rem;
  border-radius: 1.15rem;
  background: #fdba74;
  color: #9a3412;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
  padding: 12px 8px;
  box-shadow: 0 3px 0 #f97316;
}
.tb-mind-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  position: relative;
  padding-left: 14px;
}
.tb-mind-rows::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 2px;
  background: #fdba74;
}
.tb-mind-row {
  display: grid;
  grid-template-columns: 6.6rem minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  position: relative;
}
.tb-mind-row::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 30px;
  width: 14px;
  height: 2px;
  background: #fdba74;
}
.tb-mind-who {
  margin: 0;
  padding: 4px 2px 2px;
  background: transparent;
  border: 0;
  border-radius: 0;
  text-align: center;
}
.tb-mind-who img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 28% 22%;
  display: block;
  margin: 0 auto 4px;
  background: #e0f2fe;
}
.tb-mind-who img[data-scene="wang"] { object-position: 42% 16%; }
.tb-mind-who img[data-scene="family"] { object-position: 62% 20%; }
.tb-mind-who img[data-scene="pei"] { object-position: 20% 26%; }
.tb-mind-who .tb-en {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #075985;
}
.tb-mind-who .tb-zh {
  margin: 2px 0 0;
  font-size: 11px;
}
.tb-mind-notes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.tb-mind-notes .tb-notes-item {
  background: transparent;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #cbd5e1;
  padding: 6px 0 8px;
  box-shadow: none;
}
@media (max-width: 640px) {
  .tb-mind {
    grid-template-columns: 1fr;
  }
  .tb-mind-hub {
    width: 6.2rem;
    min-height: 4.6rem;
    margin: 0 auto;
  }
}
.tb-motto,
.tb-unit.tb-motto {
  display: block;
  margin: 10px 0 4px;
  padding: 10px 14px;
  text-align: center;
  color: #c2410c;
  font-weight: 800;
  background: #fff7ed;
  border-radius: 12px;
  border: 2px solid transparent;
}
.tb-unit.tb-motto .tb-en {
  display: inline;
  color: inherit;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.55;
}
.tb-unit.tb-motto .w {
  display: inline;
}
.tb-unit.tb-motto .tb-zh {
  display: none;
  margin: 6px 0 0;
  color: #9a3412;
  font-weight: 600;
}
body.show-zh .tb-unit.tb-motto .tb-zh { display: block; }
.tb-study {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 8px 0 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.tb-study-col { min-width: 0; padding: 0 0 8px; }
.tb-study-col.is-study { background: #fff7ed; }
.tb-study-col.is-life { background: #eff6ff; }
.tb-study-col.is-moment { background: #fff1f2; }
.tb-study-head {
  margin: 0 0 6px;
  padding: 8px 10px;
  text-align: center;
  font-weight: 800;
  border-radius: 0;
  border: 0;
}
.tb-study-col.is-study .tb-study-head { background: #fb923c; color: #fff; }
.tb-study-col.is-life .tb-study-head { background: #3b82f6; color: #fff; }
.tb-study-col.is-moment .tb-study-head { background: #fb7185; color: #fff; }
.tb-study-head .tb-en { color: inherit; font-weight: 800; }
.tb-study-head .tb-zh { color: rgba(255,255,255,.88); }
.tb-study-cells {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 8px;
  padding: 0 8px 8px;
}
.tb-study-cell {
  margin: 0;
  padding: 4px 6px;
  background: transparent;
  border: 0;
  border-radius: 8px;
}
.tb-invent, .tb-mats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 12px;
}
.tb-invent.is-quad { grid-template-columns: 1fr 1fr; }
.tb-invent-letter {
  display: inline-block;
  width: 1.35rem;
  height: 1.35rem;
  line-height: 1.35rem;
  margin-bottom: 4px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.tb-mats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tb-invent-cell, .tb-mat {
  margin: 0;
  padding: 8px 6px 8px;
  text-align: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}
.tb-invent-cell img, .tb-mat img, .tb-conv-pic-wrap img {
  display: block;
  width: 100%;
  height: 78px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 6px;
  background: #f1f5f9;
}
.tb-invent-cell .tb-en, .tb-mat .tb-en { margin: 0; font-size: 13px; font-weight: 700; }
.tb-tf { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 10px; }
.tb-tf-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.tb-tf-item .tb-en { margin: 0; font-size: 13px; line-height: 1.45; }
.tb-tf-marks { display: flex; gap: 6px; }
.tb-tf-mark {
  width: 32px;
  height: 32px;
  border: 2px solid #94a3b8;
  border-radius: 999px;
  background: #fff;
  font-weight: 800;
  color: #334155;
  cursor: pointer;
}
.tb-tf-mark:hover { border-color: #0d9488; color: #0f766e; }
.tb-process {
  margin: 8px 0 12px;
  padding: 0;
  list-style: none;
  counter-reset: tb-step;
}
.tb-process-step {
  position: relative;
  margin: 0 0 8px;
  padding: 8px 10px 8px 42px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.tb-process-step::before {
  counter-increment: tb-step;
  content: counter(tb-step);
  position: absolute;
  left: 10px;
  top: 10px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #0d9488;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tb-process-step .tb-en { margin: 0; font-size: 13px; line-height: 1.45; }
.tb-table-form, .tb-table-compare { margin: 8px 0 12px; }
.tb-table-form .tb-table-row, .tb-table-compare .tb-table-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 6px;
}
.tb-invent-qa { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 10px; }
.tb-invent-qa-sect {
  margin: 8px 0 0;
  padding: 4px 8px;
  background: #0f766e;
  color: #fff;
  border-radius: 8px;
  font-weight: 800;
  font-size: 12px;
}
.tb-invent-qa-sect .tb-en { color: #fff; margin: 0; }
.tb-invent-qa-q {
  margin: 0;
  padding: 8px 10px;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
}
.tb-conv-pic-wrap { min-width: 0; }
.tb-shop {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 12px;
}
.tb-shop-item {
  margin: 0;
  padding: 10px 6px 8px;
  text-align: center;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
}
.tb-shop-ico { font-size: 28px; line-height: 1; display: block; margin-bottom: 4px; }
.tb-shop-item .tb-en { margin: 0; font-size: 13px; font-weight: 700; }
.tb-ticks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin: 8px 0 10px;
}
.tb-ticks.is-col { grid-template-columns: 1fr; }
.tb-q-opts { margin: 0 0 12px 10px; }
.tb-q-opts .tb-ticks { margin: 2px 0 0; }
.tb-ticks.is-row5 { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; }
.tb-bullets {
  margin: 6px 0 10px 4px;
  padding: 0 0 0 18px;
}
.tb-bullet {
  margin: 0 0 4px;
  padding: 0;
  border: 0;
  background: transparent;
  list-style: disc;
}
.tb-prompt-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 10px;
}
.tb-prompt-chip {
  margin: 0;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.tb-sl { margin: 8px 0 10px; }
.tb-sl-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin: 0 0 8px;
  padding: 6px 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.tb-sl-box {
  min-height: 28px;
  border: 1.5px dashed #94a3b8;
  border-radius: 6px;
  background: #f8fafc;
}
button.tb-sl-box {
  padding: 0;
  min-width: 42px;
  cursor: pointer;
}
button.tb-sl-box:hover { background: #dbeafe; }
.tb-story {
  margin: 8px 0 12px;
  padding: 12px 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 16px;
}
.tb-story-p { margin: 0 0 8px; padding: 0; border: 0; background: transparent; }
.tb-article-box {
  margin: 6px 0 12px;
  padding: 12px 14px;
  background: #e0f2fe;
  border-radius: 16px;
}
.tb-prior {
  margin: 6px 0 12px;
  padding: 10px 12px;
  background: #f1f5f9;
  border-radius: 14px;
  box-shadow: 0 0 0 1px #e2e8f0;
}
.tb-prior-title { margin: 0 0 6px; padding: 0; border: 0; background: transparent; font-weight: 800; }
.tb-prior-p { margin: 0; padding: 0; border: 0; background: transparent; }
.tb-article-lead {
  margin: 0 0 10px;
  padding: 8px 12px;
  background: #f1f5f9;
  border-radius: 14px;
  box-shadow: 0 0 0 1px #e2e8f0;
}
.tb-article-lead .tb-unit {
  display: block;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}
.tb-article-lead .tb-prior-title .tb-en { font-weight: 800; font-size: 14px; }
.tb-article-lead .tb-prior-p { margin-top: 4px; }
.tb-article-lead .tb-prior-p .tb-en { font-size: 14px; line-height: 1.45; }
.tb-cloud-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(140px, .85fr);
  gap: 10px;
  align-items: start;
}
.tb-affix-blanks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: 100%;
  margin-top: 4px;
}
.tb-affix-blank {
  min-height: 22px;
  border: 1.5px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
}
.tb-affix-node.is-empty {
  color: #94a3b8;
}
.tb-tick {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin: 0;
  padding: 6px 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.tb-tick-box {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border: 1.5px solid #64748b;
  border-radius: 3px;
  background: #fff;
}
.tb-act.is-notebook {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  padding: 8px 10px 4px;
}
.tb-affix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 12px;
}
.tb-affix-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}
.tb-affix-affs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.tb-affix-node, .tb-affix-root {
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  text-align: center;
}
.tb-affix-root {
  background: #fff7ed;
  border-color: #fdba74;
  font-weight: 800;
}
.tb-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 14px;
  min-height: 88px;
  margin: 4px 0 12px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 16px;
}
.tb-cloud-word {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 1;
}
.tb-cloud-word .tb-en { margin: 0; font-weight: 800; }
.tb-cloud-word.is-c0 { font-size: 22px; color: #0f172a; transform: rotate(-8deg); }
.tb-cloud-word.is-c1 { font-size: 16px; color: #334155; transform: rotate(6deg); }
.tb-cloud-word.is-c2 { font-size: 20px; color: #1e293b; transform: rotate(4deg); }
.tb-cloud-word.is-c3 { font-size: 18px; color: #0f766e; transform: rotate(-4deg); }
.tb-cloud-word.is-c4 { font-size: 15px; color: #334155; transform: rotate(10deg); }
.tb-cloud-word.is-c5 { font-size: 21px; color: #111827; transform: rotate(-2deg); }
.tb-mm {
  margin: 10px 0 14px;
  padding: 8px 4px 12px;
}
.tb-mm-top, .tb-mm-bot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}
.tb-mm-mid { display: flex; justify-content: center; margin: 6px 0; }
.tb-mm-hub {
  width: 7.6rem;
  min-height: 7.6rem;
  margin: 0;
  padding: 14px 10px;
  border-radius: 999px;
  background: #f43f5e;
  color: #fff;
  border: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 0 0 6px #fecdd3;
}
.tb-mm-hub .tb-en { color: #fff; font-weight: 800; font-size: 13px; line-height: 1.35; }
.tb-mm-hub .tb-zh { color: #ffe4e6; }
.tb-mm-arm {
  display: grid;
  grid-template-columns: minmax(52px, .7fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}
.tb-mm-arm.is-tr, .tb-mm-arm.is-br { grid-template-columns: minmax(0, 1fr) minmax(52px, .7fr); }
.tb-mm-arm.is-tr .tb-mm-empty, .tb-mm-arm.is-br .tb-mm-empty { order: 2; }
.tb-mm-empty {
  min-height: 44px;
  background: #e0e7ff;
  border-radius: 10px;
}
button.tb-mm-empty {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
}
button.tb-mm-empty:hover { filter: brightness(0.96); }
.tb-mm-arm.is-bl .tb-mm-empty { background: #ffedd5; }
.tb-mm-arm.is-br .tb-mm-empty { background: #dcfce7; }
.tb-mm-node {
  margin: 0;
  padding: 8px 10px;
  text-align: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.tb-table-challenge .tb-table-row { grid-template-columns: minmax(88px, .7fr) minmax(0, 1.4fr); }
.tb-challenge-methods p { margin: 4px 0; color: #64748b; }
.tb-grammar {
  margin: 6px 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}
.tb-grammar-ex {
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 0;
  background: #fffbeb;
  border-top: 1px solid #fde68a;
}
.tb-grammar-ex:first-child { border-top: 0; }
.tb-combine { margin: 6px 0 10px; }
.tb-combine-item { margin: 0 0 10px; }
.tb-combine-arrow { margin: 4px 0 0 8px; color: #64748b; }
.tb-combine-ex {
  margin: 4px 0 0;
  padding: 6px 10px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
}
.tb-diary {
  display: block;
  margin: 8px 0 12px;
  padding: 14px 16px;
  background: #fffbeb;
  border-radius: 14px;
  border: 1px solid #fde68a;
}
.tb-diary-date { margin: 0 0 8px; padding: 0; border: 0; background: transparent; }
.tb-diary-date .tb-en { font-weight: 800; }
.tb-diary-p { margin: 0 0 8px; padding: 0; border: 0; background: transparent; }
.tb-tech {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 10px;
}
.tb-tech-chip {
  margin: 0;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  text-align: center;
}
.tb-tech-chip::before { content: "● "; color: #38bdf8; }
.tb-club { margin: 8px 0 12px; }
.tb-club-hub {
  margin: 0 auto 10px;
  max-width: 92%;
  padding: 8px 12px;
  text-align: center;
  background: #fff;
  border: 1.5px dashed #86efac;
  border-radius: 18px;
}
.tb-club-cells {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.tb-club-cell {
  margin: 0;
  padding: 10px 8px;
  background: #fff;
  border: 1.5px dashed #93c5fd;
  border-radius: 16px;
  min-height: 72px;
}
.tb-learn-mind {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  margin: 8px 0 12px;
  align-items: start;
}
.tb-learn-hub-card {
  margin: 0;
  padding: 12px 8px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 16px;
  text-align: center;
  font-weight: 800;
}
.tb-learn-arms { display: grid; gap: 8px; }
.tb-learn-arm {
  display: grid;
  grid-template-columns: minmax(110px, .42fr) minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}
.tb-learn-branch {
  margin: 0;
  padding: 8px 10px;
  background: #eff6ff;
  border-radius: 12px;
  border: 1px solid #bfdbfe;
}
.tb-learn-leaves { display: grid; gap: 4px; }
.tb-learn-leaf {
  margin: 0;
  padding: 6px 10px;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
}
.tb-learn-arm.is-1 .tb-learn-branch { background: #eef2ff; }
.tb-learn-arm.is-2 .tb-learn-branch { background: #ecfdf5; }
.tb-learn-arm.is-3 .tb-learn-branch { background: #fef9c3; }
.tb-learn-arm.is-4 .tb-learn-branch { background: #ffe4e6; }
.tb-learn-arm.is-5 .tb-learn-branch { background: #f0fdf4; }
.tb-ws {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 12px;
  margin: 8px 0 12px;
  align-items: start;
}
.tb-ws-grid {
  display: grid;
  gap: 2px;
  padding: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.tb-ws-row { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; }
.tb-ws-cell {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-family: var(--en);
  font-size: 12px;
  font-weight: 800;
  background: #f8fafc;
  border-radius: 4px;
}
.tb-ws-expr { margin: 0 0 6px; padding: 0; border: 0; background: transparent; }
.tb-survey { margin: 8px 0 12px; padding: 10px 12px; background: #fff; border-radius: 14px; border: 1px solid #e2e8f0; }
.tb-survey-q { margin: 0 0 10px; }
.tb-survey-ask { margin: 0 0 6px; padding: 0; border: 0; background: transparent; font-weight: 800; }
.tb-survey-opts { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.tb-survey-write { flex: 1 1 12em; min-height: 1.4em; }
.tb-survey-opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 0;
}
.tb-rate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin: 8px 0 12px;
  padding: 10px;
  background: #fff7ed;
  border-radius: 14px;
}
.tb-rate-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin: 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
}
.tb-rate-blank {
  min-height: 22px;
  border-bottom: 1.5px solid #94a3b8;
}
.tb-bars { margin: 8px 0 12px; }
.tb-bar-row {
  display: grid;
  grid-template-columns: minmax(120px, .42fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin: 0 0 6px;
}
.tb-bar-lab { margin: 0; padding: 0; border: 0; background: transparent; text-align: right; font-size: 12px; }
.tb-bar-track { height: 10px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.tb-bar-fill { display: block; height: 100%; background: #60a5fa; border-radius: 999px; }
.tb-bar-axis { margin: 8px 0 0; text-align: center; font-size: 12px; color: #64748b; }
.tb-conv { margin: 8px 0 12px; }
.tb-conv-slots {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.tb-conv-slot, .tb-conv-pic {
  margin: 0;
  padding: 8px;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  text-align: center;
}
.tb-conv-pics { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.tb-spoke {
  margin: 8px 0 12px;
  padding: 18px 14px;
  background: radial-gradient(circle at 50% 45%, #eaf3ff 0, #f7fbff 52%, #fff 100%);
  border: 1px solid #dbe7f7;
  border-radius: 20px;
  container-type: inline-size;
}
.tb-spoke .is-work { --arm: #3b82f6; --arm-ink: #1d4ed8; --arm-soft: #eff6ff; --arm-line: #bfdbfe; }
.tb-spoke .is-view { --arm: #ec4899; --arm-ink: #be185d; --arm-soft: #fdf2f8; --arm-line: #fbcfe8; }
.tb-spoke .is-sleep { --arm: #14b8a6; --arm-ink: #0f766e; --arm-soft: #f0fdfa; --arm-line: #99f6e4; }
.tb-spoke .is-visitor { --arm: #22c55e; --arm-ink: #15803d; --arm-soft: #f0fdf4; --arm-line: #bbf7d0; }
.tb-spoke .is-food { --arm: #f59e0b; --arm-ink: #b45309; --arm-soft: #fffbeb; --arm-line: #fde68a; }
.tb-spoke .is-movement { --arm: #8b5cf6; --arm-ink: #6d28d9; --arm-soft: #f5f3ff; --arm-line: #ddd6fe; }
.tb-spoke .is-imag { --arm-pill: #f9c3ad; --arm-ink: #9a3412; --arm-soft: #fdebe3; }
.tb-spoke .is-achieve { --arm-pill: #a5d8f2; --arm-ink: #075985; --arm-soft: #e0f2fb; }
.tb-spoke .is-chall { --arm-pill: #a6dccd; --arm-ink: #115e59; --arm-soft: #dcf3ec; }
.tb-spoke .is-expect { --arm-pill: #c9c3ea; --arm-ink: #4338ca; --arm-soft: #ebe8f7; }
.tb-spoke .tb-spoke-hub {
  --hub-bg: radial-gradient(circle at 32% 28%, #93c5fd 0, #3b82f6 42%, #1e40af 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 8px;
  text-align: center;
  border: 0;
  border-radius: 50%;
  background: var(--hub-bg);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .95), 0 0 0 7px #bfdbfe, 0 10px 24px rgba(30, 64, 175, .28);
}
.tb-spoke .tb-spoke-hub .tb-en { font-size: 15px; font-weight: 800; line-height: 1.2; color: #fff; }
.tb-spoke .tb-spoke-hub .tb-zh { margin: 3px 0 0; font-size: 11px; line-height: 1.25; color: rgba(255, 255, 255, .88); }
.tb-spoke .tb-spoke-hub .tb-en .w:hover,
.tb-spoke .tb-spoke-hub .tb-en .w.is-on { background: rgba(255, 255, 255, .28); }
.tb-spoke .tb-spoke-hub.is-on {
  background: var(--hub-bg);
  box-shadow: 0 0 0 5px #fff, 0 0 0 8px #f59e0b, 0 10px 24px rgba(30, 64, 175, .28);
}

.tb-spoke.is-life .tb-spoke-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px minmax(0, 1fr);
  grid-template-areas:
    ". work ."
    "movement orbit view"
    "food orbit sleep"
    ". visitor .";
  gap: 14px;
  align-items: center;
}
.tb-orbit {
  grid-area: orbit;
  position: relative;
  width: 260px;
  height: 260px;
}
.tb-orbit-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.tb-orbit-track { fill: none; stroke: #c7d7f0; stroke-width: 1.5; stroke-dasharray: 3 5; }
.tb-orbit-spoke { stroke: var(--arm); stroke-width: 3; stroke-linecap: round; }
.tb-orbit-lead { stroke: var(--arm); stroke-width: 2; stroke-dasharray: 1 5; stroke-linecap: round; }
.tb-orbit .tb-spoke-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 96px;
  height: 96px;
  transform: translate(-50%, -50%);
}
.tb-spoke .tb-spoke-node {
  position: absolute;
  width: 66px;
  height: 66px;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 2px;
  text-align: center;
  background: #fff;
  border: 3px solid var(--arm);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(15, 23, 42, .1);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tb-spoke .tb-spoke-node:hover { transform: translate(-50%, -50%) scale(1.06); }
.tb-spoke .tb-spoke-node .tb-en { font-size: 11px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; color: var(--arm-ink); }
.tb-spoke .tb-spoke-node .tb-zh { margin: 1px 0 0; font-size: 10px; line-height: 1.1; color: var(--arm-ink); opacity: .8; }
.tb-spoke .tb-spoke-node.is-on {
  background: var(--arm-soft);
  border-color: var(--arm);
  box-shadow: 0 0 0 4px #fde68a, 0 4px 10px rgba(15, 23, 42, .12);
}
.tb-orbit .tb-spoke-node.is-work { left: 50%; top: 13.08%; }
.tb-orbit .tb-spoke-node.is-view { left: 81.92%; top: 31.54%; }
.tb-orbit .tb-spoke-node.is-sleep { left: 81.92%; top: 68.46%; }
.tb-orbit .tb-spoke-node.is-visitor { left: 50%; top: 86.92%; }
.tb-orbit .tb-spoke-node.is-food { left: 18.08%; top: 68.46%; }
.tb-orbit .tb-spoke-node.is-movement { left: 18.08%; top: 31.54%; }
.tb-spoke-note {
  padding: 7px 10px;
  background: var(--arm-soft);
  border: 1.5px solid var(--arm-line);
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .05);
}
.tb-spoke-note::before { display: none; }
.tb-spoke-in > .tb-spoke-note.is-work { grid-area: work; justify-self: center; }
.tb-spoke-in > .tb-spoke-note.is-visitor { grid-area: visitor; justify-self: center; }
.tb-spoke-in > .tb-spoke-note.is-view { grid-area: view; }
.tb-spoke-in > .tb-spoke-note.is-sleep { grid-area: sleep; }
.tb-spoke-in > .tb-spoke-note.is-food { grid-area: food; }
.tb-spoke-in > .tb-spoke-note.is-movement { grid-area: movement; }
.tb-spoke .tb-spoke-leaf {
  display: block;
  position: relative;
  margin: 0;
  padding: 3px 4px 3px 17px;
  text-align: left;
  border: 0;
  border-radius: 8px;
}
.tb-spoke .tb-spoke-leaf + .tb-spoke-leaf { margin-top: 2px; }
.tb-spoke .tb-spoke-leaf::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--arm);
}
.tb-spoke .tb-spoke-leaf .tb-en { font-size: 13px; line-height: 1.45; color: #1f2937; }
.tb-spoke .tb-spoke-leaf .tb-zh { margin: 1px 0 0; font-size: 11px; line-height: 1.35; }
.tb-spoke .tb-spoke-leaf.is-on { background: #fff7ed; box-shadow: inset 0 0 0 1.5px #f59e0b; }

.tb-spoke.is-stars .tb-spoke-in {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  align-items: center;
}
.tb-tree-hub { position: relative; padding-right: 18px; }
.tb-tree-hub::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 18px;
  border-top: 2.5px solid #94a3b8;
}
.tb-spoke.is-stars .tb-spoke-hub {
  --hub-bg: radial-gradient(circle at 32% 28%, #60a5fa 0, #1d62b5 52%, #123f7a 100%);
  width: 104px;
  height: 104px;
  padding: 10px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .95), 0 0 0 6px #bfdbfe, 0 10px 22px rgba(18, 63, 122, .28);
}
.tb-spoke.is-stars .tb-spoke-hub .tb-en { font-size: 13px; line-height: 1.25; }
.tb-tree-rows { position: relative; display: grid; gap: 10px; padding-left: 18px; }
.tb-tree-row {
  position: relative;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}
.tb-tree-row::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 50%;
  width: 18px;
  border-top: 2.5px solid #94a3b8;
}
.tb-tree-row::after {
  content: "";
  position: absolute;
  left: -18px;
  top: -5px;
  bottom: -5px;
  border-left: 2.5px solid #94a3b8;
}
.tb-tree-row:first-child::after { top: 50%; }
.tb-tree-row:last-child::after { bottom: 50%; }
.tb-spoke .tb-tree-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 8px 6px;
  text-align: center;
  background: var(--arm-pill);
  border: 0;
  border-radius: 12px;
  box-shadow: inset 0 -3px 0 rgba(15, 23, 42, .07);
}
.tb-spoke .tb-tree-branch .tb-en { font-size: 13px; font-weight: 800; line-height: 1.25; color: var(--arm-ink); }
.tb-spoke .tb-tree-branch .tb-zh { margin: 2px 0 0; font-size: 11px; color: var(--arm-ink); opacity: .8; }
.tb-spoke .tb-tree-leaf {
  display: block;
  margin: 0;
  padding: 7px 10px;
  background: var(--arm-soft);
  border: 0;
  border-radius: 12px;
}
.tb-spoke .tb-tree-leaf .tb-en { font-size: 13px; line-height: 1.45; color: #1f2937; }
.tb-spoke .tb-tree-leaf .tb-zh { margin: 2px 0 0; font-size: 11px; line-height: 1.35; }
.tb-spoke .tb-tree-branch.is-on { background: var(--arm-pill); box-shadow: 0 0 0 2.5px #f59e0b; }
.tb-spoke .tb-tree-leaf.is-on { background: #fff7ed; box-shadow: 0 0 0 2px #f59e0b; }

.tb-spoke.is-reasons .tb-spoke-in { display: block; }
.tb-reason-top {
  position: relative;
  display: flex;
  justify-content: center;
  padding-bottom: 14px;
}
.tb-reason-top::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 14px;
  border-left: 2.5px solid #7cc3e8;
}
.tb-spoke.is-reasons .tb-spoke-hub {
  --hub-bg: linear-gradient(180deg, #f0f9ff, #bae6fd);
  width: auto;
  height: auto;
  padding: 8px 22px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px #7cc3e8, 0 6px 14px rgba(3, 105, 161, .14);
}
.tb-spoke.is-reasons .tb-spoke-hub .tb-en { color: #0c4a6e; }
.tb-spoke.is-reasons .tb-spoke-hub .tb-zh { color: #0369a1; }
.tb-spoke.is-reasons .tb-spoke-hub .tb-en .w:hover,
.tb-spoke.is-reasons .tb-spoke-hub .tb-en .w.is-on { background: #fde68a; }
.tb-spoke.is-reasons .tb-spoke-hub.is-on { box-shadow: 0 0 0 2.5px #f59e0b, 0 6px 14px rgba(3, 105, 161, .14); }
.tb-reason-cards {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 16px;
}
.tb-reason-cards::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16.667%;
  right: 16.667%;
  border-top: 2.5px solid #7cc3e8;
}
.tb-reason {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 6px;
}
.tb-reason::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 50%;
  height: 16px;
  border-left: 2.5px solid #7cc3e8;
}
.tb-reason-pic {
  position: relative;
  z-index: 1;
  display: block;
  width: 84%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: -18px;
  background: #0f172a;
  border: 3px solid #fff;
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, .18);
}
.tb-reason-bubble {
  flex: 1;
  width: 100%;
  padding: 26px 8px 10px;
  background: #e6f4fc;
  border: 1.5px solid #a9d8f1;
  border-radius: 22px;
}
.tb-spoke .tb-reason-leaf {
  display: block;
  margin: 0;
  padding: 4px 6px;
  border: 0;
  border-radius: 10px;
}
.tb-spoke .tb-reason-leaf .tb-en { font-size: 13.5px; line-height: 1.5; color: #0f2a44; }
.tb-spoke .tb-reason-leaf .tb-zh { margin: 2px 0 0; font-size: 11px; line-height: 1.35; }
.tb-spoke .tb-reason-leaf.is-on { background: #fff7ed; box-shadow: inset 0 0 0 1.5px #f59e0b; }

@container (max-width: 600px) {
  .tb-spoke.is-life .tb-spoke-in {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "orbit orbit"
      "movement view"
      "food sleep"
      "work visitor";
    gap: 10px;
    align-items: stretch;
  }
  .tb-orbit { justify-self: center; margin-bottom: 4px; }
  .tb-orbit-lead { display: none; }
  .tb-spoke-in > .tb-spoke-note.is-work,
  .tb-spoke-in > .tb-spoke-note.is-visitor { justify-self: stretch; }
  .tb-spoke-note::before {
    content: attr(data-arm);
    display: inline-block;
    margin: 0 0 3px;
    padding: 1px 9px;
    border-radius: 999px;
    background: var(--arm);
    color: #fff;
    font-family: var(--en);
    font-size: 11px;
    font-weight: 800;
  }
  .tb-spoke.is-stars .tb-spoke-in { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tb-tree-hub { justify-self: center; padding-right: 0; }
  .tb-tree-hub::after, .tb-tree-row::before, .tb-tree-row::after { display: none; }
  .tb-tree-rows { padding-left: 0; }
  .tb-tree-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tb-tree-row > .tb-tree-branch { grid-column: 1 / -1; }
}
@container (max-width: 420px) {
  .tb-spoke.is-life .tb-spoke-in {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "orbit" "work" "view" "sleep" "visitor" "food" "movement";
  }
  .tb-tree-row { grid-template-columns: minmax(0, 1fr); }
  .tb-reason-cards { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: 0; }
  .tb-reason-cards::before, .tb-reason::before, .tb-reason-top::after { display: none; }
  .tb-reason-top { padding-bottom: 12px; }
  .tb-reason-pic { width: 70%; }
}
@container (max-width: 290px) {
  .tb-orbit { zoom: .84; }
}
.tb-dream {
  margin: 8px 0 12px;
  border: 1.5px solid #94a3b8;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.tb-dream-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  min-height: 58px;
}
.tb-dream-row + .tb-dream-row { border-top: 1.5px solid #94a3b8; }
.tb-dream-lab {
  margin: 0;
  padding: 10px 6px;
  background: #f1f5f9;
  border-right: 1.5px solid #94a3b8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  font-weight: 800;
}
.tb-dream-lab .tb-en { margin: 0; font-weight: 800; }
.tb-dream-cell, .tb-dream-reasons { min-height: 58px; }
.tb-dream-fill { margin: 0; padding: 10px 12px; }
.tb-dream-reason {
  margin: 0;
  padding: 8px 10px;
  border-bottom: 1px dashed #cbd5e1;
}
.tb-dream-reason:last-child { border-bottom: 0; }
.tb-mission { margin: 8px 0 12px; }
.tb-mission-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.tb-mission-chip {
  margin: 0;
  padding: 4px 10px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
}
.tb-mission-chip .tb-en { margin: 0; font-weight: 700; font-size: 13px; }
.tb-mission-chip .tb-zh { margin: 2px 0 0; font-size: 11px; }
.tb-mission-table {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1.5px solid #94a3b8;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.tb-mission-col { border-right: 1px solid #cbd5e1; }
.tb-mission-col:last-child { border-right: 0; }
.tb-mission-head {
  margin: 0;
  padding: 8px 6px;
  background: #f8fafc;
  border-bottom: 1.5px solid #94a3b8;
  text-align: center;
}
.tb-mission-head .tb-en { margin: 0; font-weight: 800; font-size: 12px; }
.tb-mission-drop { min-height: 88px; }
.tb-news { display: grid; gap: 8px; margin: 8px 0 12px; }
.tb-news-card {
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}
.tb-news-head { margin: 0 0 6px; }
.tb-news-head .tb-en { margin: 0; font-weight: 800; }
.tb-news-note { margin: 0; padding: 4px 0; }
@media (max-width: 640px) {
  .tb-cover-cols, .tb-speakers, .tb-family, .tb-opt-box, .tb-skill-pair,
  .tb-study, .tb-shop, .tb-ticks, .tb-ticks.is-row5, .tb-affix, .tb-mm-top, .tb-mm-bot, .tb-tech,
  .tb-invent, .tb-mats, .tb-table-form .tb-table-row, .tb-table-compare .tb-table-row,
  .tb-study-cells, .tb-prompt-chips, .tb-cloud-pair, .tb-prior-pair,
  .tb-club-cells, .tb-ws, .tb-rate, .tb-learn-mind, .tb-learn-arm,
  .tb-conv-slots, .tb-conv-pics, .tb-bar-row,
  .tb-mission-table, .tb-dream-row, .tb-pap {
    grid-template-columns: 1fr;
  }
}
.tb-act-tip {
  margin-top: 8px;
  padding: 8px;
  background: #f0fdfa;
  border-radius: 12px;
  font-size: 12px;
  color: #0f766e;
}
.tb-listen-embed {
  margin: 4px 0 8px;
  padding: 6px 8px;
}
.tb-listen-embed audio { margin: 0; }
.tb-listen-embed > .tb-btn {
  margin-top: 6px;
  width: 100%;
}

/* ===== 移动端（手机 / 竖屏平板）：课本页在上、练习在下，整页自然滚动 ===== */
@media (max-width: 900px) {
  html.tb-play, body.tb-play { height: auto; overflow: auto; overflow-x: hidden; }
  .tb-shell {
    height: auto;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 8px calc(14px + env(safe-area-inset-bottom, 0px));
  }
  /* 顶栏：书名 + 翻页一行，点读工具一行，可横向滑动；吸顶方便随时翻页 */
  .tb-top {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand pager" "tools tools" "status status";
    align-items: center;
    gap: 6px 8px;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    margin: 0 -8px;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 8px 8px;
    background: rgba(255, 247, 237, .94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(180, 83, 9, .12);
  }
  .tb-brand { grid-area: brand; max-width: none; padding: 5px 10px; }
  .tb-brand strong { overflow: hidden; text-overflow: ellipsis; }
  .tb-pager { grid-area: pager; justify-content: flex-end; }
  .tb-tools {
    grid-area: tools;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    margin-bottom: -4px;
  }
  .tb-tools::-webkit-scrollbar { display: none; }
  .tb-modes {
    flex: 0 0 auto;
    overflow: visible;
    padding-right: 8px;
    border-right: 2px solid #fde68a;
  }
  /* 状态行始终占位：显示“朗读 · xxx”时顶栏高度不变，课本图不会上下跳动 */
  .tb-status {
    grid-area: status;
    margin: -2px 0 0;
    min-width: 0;
    min-height: 15px;
    line-height: 15px;
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tb-btn { min-height: 34px; padding: 7px 12px; font-size: 13px; }

  /* 课本页：铺满宽度，按原图比例撑开（reader.js 会按图片真实比例 / 屏高微调） */
  .tb-main { display: flex; flex-direction: column; gap: 8px; }
  .tb-spread-wrap {
    width: 100%;
    max-width: none;
    height: auto;
    display: grid;
    place-items: center;
    padding: 6px;
  }
  .tb-spread {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 524 / 737;
  }
  .tb-spread img, .tb-page-fallback { border-radius: 8px; }

  /* 侧栏：不再内嵌滚动条，随整页滚动 */
  .tb-side { padding: 10px 12px 12px; }
  .tb-script { padding-right: 0; }
  .tb-script, .tb-pane { flex: none; min-height: 0; overflow: visible; }
  .tb-dict, .tb-pane#pane-script .tb-dict { max-height: none; min-height: 0; }
  .tb-play-line { width: 38px; height: 38px; font-size: 15px; }
  .tb-line { grid-template-columns: auto minmax(0, 1fr) 38px; }
  .tb-act-head, .tb-unit.tb-act-head { grid-template-columns: minmax(0, 1fr) 38px; }
}

/* 横屏手机（屏幕很矮）：顶栏压成一行，给课本图留高度 */
@media (max-width: 900px) and (max-height: 520px) {
  .tb-top {
    grid-template-columns: auto auto minmax(0, 1fr);
    grid-template-areas: "brand pager tools" "status status status";
    padding-top: calc(5px + env(safe-area-inset-top, 0px));
    padding-bottom: 5px;
  }
  .tb-brand { max-width: 200px; }
  .tb-tools > .tb-btn, .tb-modes { flex: 0 0 auto; }
}

/* ===== 手机：更紧凑的字号与单列栅格 ===== */
@media (max-width: 640px) {
  .tb-shell { padding-left: 6px; padding-right: 6px; }
  .tb-top { margin: 0 -6px; padding-left: 6px; padding-right: 6px; }
  .tb-brand small { font-size: 10.5px; }
  .tb-brand strong { font-size: 12.5px; }
  .tb-pager { gap: 4px; }
  .tb-pager .tb-btn { padding: 7px 9px; font-size: 12px; }
  .tb-side-head { display: none; }
  .tb-side { padding: 10px 10px 12px; }
  .tb-en { font-size: 17px; line-height: 1.58; }
  .tb-zh { font-size: 14px; }
  .tb-act-head .tb-en { font-size: 17px; }
  .tb-article-box .tb-en,
  .tb-article-box .tb-para-sent .tb-en { font-size: 17px; line-height: 1.58; }
  .tb-dict-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .tb-dict-head h3 { font-size: 1.35rem; }
  .tb-table-aspect .tb-table-row { grid-template-columns: minmax(64px, .8fr) minmax(0, 1.1fr) minmax(0, 1.1fr); }
  .tb-table-4 .tb-table-row { grid-template-columns: minmax(56px, .8fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
  .tb-table-debate .tb-table-row { grid-template-columns: minmax(52px, .65fr) minmax(0, 1.1fr) minmax(0, 1.1fr); }
  .tb-table-challenge .tb-table-row { grid-template-columns: minmax(72px, .75fr) minmax(0, 1.3fr); }
  .tb-table-cell { padding: 6px 8px; }
  .tb-table-cell .tb-en { font-size: 12.5px; }
  .tb-colour-board, .tb-colour-cards, .tb-colour-items { grid-template-columns: 1fr 1fr; }
  .tb-colour-words { grid-template-columns: 1fr 1fr; }
}
.tb-colour-lab { margin-top: 8px; }
.tb-colour-hint, .tb-colour-now, .tb-colour-who {
  margin: 0 0 8px;
  color: #9a6b4a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}
.tb-colour-score, .tb-colour-kicker {
  margin: 10px 0 6px;
  color: #0f766e;
  font-size: 13px;
  font-weight: 800;
}
.tb-colour-board {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 10px;
}
.tb-colour-col > p, .tb-colour-build > p { margin: 0 0 6px; font-size: 12px; font-weight: 800; color: #9a3412; }
.tb-colour-swatches, .tb-colour-words, .tb-colour-chips {
  display: grid;
  gap: 8px;
}
.tb-colour-swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tb-colour-swatches.is-paint { margin: 6px 0 10px; }
.tb-colour-words { grid-template-columns: 1fr 1fr; }
.tb-colour-words.is-answer { margin-top: 8px; }
.tb-colour-dot {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.8), transparent 34%),
    var(--dot, #ccc);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.35), 0 4px 0 rgba(63, 42, 26, .12);
  cursor: pointer;
}
.tb-colour-dot.is-white { box-shadow: inset 0 0 0 2px #cbd5e1, 0 4px 0 rgba(63, 42, 26, .12); }
.tb-colour-dot.is-static { cursor: default; width: 36px; height: 36px; aspect-ratio: auto; flex: 0 0 auto; }
.tb-colour-dot.is-on, .tb-colour-word.is-on, .tb-colour-chip.is-on, .tb-colour-card.is-on, .tb-colour-parts .is-on {
  outline: 3px solid #0f766e;
  outline-offset: 2px;
}
.tb-colour-dot.is-bad, .tb-colour-word.is-bad { animation: tb-colour-shake .35s linear; }
@keyframes tb-colour-shake {
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.tb-colour-word, .tb-colour-chip, .tb-colour-mini, .tb-colour-parts button {
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #3f2a1a;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.tb-colour-word {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 10px;
  text-align: left;
  box-shadow: 0 3px 0 #fdba74;
}
.tb-colour-word .en { font-family: var(--en); }
.tb-colour-word .tb-zh { margin: 0; font-size: 12px; }
.tb-colour-hear, .tb-colour-mini {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ccfbf1;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
}
.tb-colour-pairs, .tb-colour-cards, .tb-colour-items { display: grid; gap: 8px; }
.tb-colour-pairs { margin-bottom: 8px; }
.tb-colour-pair {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 0 rgba(180, 83, 9, .08);
}
.tb-colour-pair b { display: block; font-family: var(--en); }
.tb-colour-pair .tb-zh { margin: 0; font-size: 12px; }
.tb-colour-cards, .tb-colour-items { grid-template-columns: 1fr 1fr; }
.tb-colour-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tb-colour-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  border: 2px solid transparent;
  border-radius: 16px;
  background: #fff;
  text-align: left;
  box-shadow: 0 4px 0 rgba(180, 83, 9, .08);
}
.tb-colour-card.is-ok { border-color: #14b8a6; }
.tb-colour-pic {
  display: grid;
  place-items: center;
  min-height: 74px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #f8fafc);
}
.tb-colour-pic svg, .tb-colour-stage svg { width: 100%; height: 78px; }
.tb-colour-stage {
  margin: 8px 0;
  padding: 8px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f0fdfa);
}
.tb-colour-stage svg { height: 150px; }
.tb-colour-card-name { font-weight: 800; font-size: 14px; }
.tb-colour-card-line { font-family: var(--en); color: #0f766e; font-size: 13px; }
.tb-colour-card .tb-zh { margin: 0; font-size: 12px; }
.tb-colour-ask, .tb-colour-frame, .tb-colour-talk, .tb-colour-build {
  margin-top: 10px;
  padding: 10px;
  background: #fff;
  border-radius: 16px;
}
.tb-colour-ask .en, .tb-colour-frame .en, .tb-colour-line .en { margin: 0; font-family: var(--en); font-weight: 800; }
.tb-colour-blank { margin: 6px 0; font-family: var(--en); font-weight: 800; font-size: 18px; }
.tb-colour-ok { margin: 6px 0; color: #0f766e; font-weight: 800; }
.tb-colour-bad { margin: 6px 0; color: #be123c; font-weight: 800; }
.tb-colour-actions, .tb-colour-parts, .tb-colour-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tb-colour-parts button, .tb-colour-chip, .tb-colour-actions .tb-colour-mini { padding: 6px 10px; box-shadow: 0 3px 0 #fdba74; }
.tb-colour-talk header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.tb-colour-talk.is-on { outline: 2px solid #99f6e4; }
.tb-colour-line { margin: 0 0 4px; }
.tb-colour-line b { color: #9a3412; }
.tb-colour-line .tb-zh { margin: 0 0 0 1.2em; }
