/* Q08 · 写得更多，增加了什么 */

.q08 {
  --q08-motion: 200ms;
  --q08-soft: rgba(164, 118, 36, 0.06);
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.q08-head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.q08-head h1 {
  margin: 0;
  max-width: 24ch;
  font-size: 40px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--navy);
}

.q08-scope {
  margin: 0 0 3px;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.q08-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 420px 96px minmax(0, 1fr);
  padding-top: 20px;
}

.q08-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.q08-col-head {
  min-height: 42px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.q08-col-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--navy);
}

.q08-col-sub {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
}

.q08-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
}

/* 左列：写下的前缀与回读 */

.q08-material {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--gold);
  border-radius: 14px;
}

.q08-material-label {
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.q08-material-value {
  font-size: 30px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.q08-material-note {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
}

.q08-readback-caption {
  margin: 12px 0 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
}

/* 两列之间的回读箭头，独占间隙 */

.q08-gutter {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 71px;
  color: var(--gold);
  pointer-events: none;
}

.q08-readback-label {
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
}

.q08-readback-svg {
  width: 64px;
  height: 20px;
  overflow: visible;
}

.q08-readback-svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 右列：三次读 → 算 → 写回 */

.q08-chain-wrap {
  width: 416px;
  max-width: 100%;
  margin-top: 12px;
}

.q08-round {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.q08-round-label {
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
}

.q08-chain {
  display: flex;
  align-items: center;
  gap: 6px;
}

.q08-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 54px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  font-size: 24px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--navy);
  white-space: nowrap;
}

.q08-node-write {
  border-color: var(--gold);
  background: var(--q08-soft);
}

.q08-arrow {
  flex: 0 0 auto;
  width: 28px;
  height: 16px;
  color: var(--muted);
  overflow: visible;
}

.q08-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.q08-round-gap {
  display: flex;
  justify-content: center;
  height: 24px;
  color: var(--muted);
}

.q08-down-svg {
  flex: 0 0 416px;
  width: 416px;
  height: 54px;
  overflow: visible;
}

.q08-down-svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* b1 两条限制，预留位置，未到 cue 不写入前台 */

.q08-limit {
  margin: 14px 0 0;
  max-width: 640px;
  min-height: 50px;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--danger);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--q08-motion) ease-out, visibility 0s linear var(--q08-motion);
}

.q08-limit.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--q08-motion) ease-out, visibility 0s;
}

.q08-limit-left {
  margin-top: auto;
}

/* 同一个 E 例子 */

.q08-example {
  margin-top: 12px;
  max-width: 640px;
  min-height: 168px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--q08-motion) ease-out, visibility 0s linear var(--q08-motion);
}

.q08-example.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--q08-motion) ease-out, visibility 0s;
}

.q08-example-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.q08-example-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.q08-say {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
  white-space: nowrap;
}

.q08-say-sep {
  display: inline-flex;
  align-items: center;
  font-size: 18px;
  line-height: 1.4;
  color: var(--muted);
}

.q08-example-note {
  margin: 10px 0 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
}

.q08-example-verdict {
  margin: 4px 0 0;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--danger);
}

/* 底部：b0 提问，b1 落点 */

.q08-foot {
  flex: 0 0 auto;
  min-height: 90px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.q08-question {
  margin: 0;
  font-size: 26px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--navy);
}

.q08-verdict {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.q08-verdict-main {
  margin: 0;
  font-size: 30px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--navy);
}

.q08-verdict-sub {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
}

/* 即时稳态与减弱动态 */

.is-instant .q08 .q08-limit,
.is-instant .q08 .q08-example,
.is-instant .q08-m .q08-m-example {
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .q08-limit,
  .q08-example,
  .q08-m-example {
    transition: none;
  }
}

/* 手机自然文档流 */

.q08-m {
  --q08-motion: 200ms;
  --q08-soft: rgba(164, 118, 36, 0.06);
  color: var(--ink);
}

.q08-m h1 {
  margin: 6px 0 10px;
  font-size: 30px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--navy);
}

.q08-m-scope {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.q08-m-material {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--gold);
  border-radius: 12px;
}

.q08-m-material-label {
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.q08-m-material-value {
  max-width: 100%;
  overflow-x: auto;
  font-size: 24px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  scrollbar-width: thin;
}

.q08-m-material-note {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}

.q08-m-readback {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.q08-m-limit {
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 600;
  color: var(--danger);
}

.q08-m-rounds {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.q08-m-round {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.q08-m-round-label {
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.q08-m-chain {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.q08-m-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-size: 17px;
  line-height: 1;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.q08-m-node-write {
  border-color: var(--gold);
  background: var(--q08-soft);
}

.q08-m-arrow {
  flex: 0 0 auto;
  width: 18px;
  height: 12px;
  color: var(--muted);
  overflow: visible;
}

.q08-m-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.q08-m-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
  vertical-align: middle;
}

.q08-m-example {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.q08-m-example-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.q08-m-example-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.q08-m-say {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  white-space: nowrap;
}

.q08-m-say-sep {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
}

.q08-m-example-note {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.q08-m-example-verdict {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 600;
  color: var(--danger);
}

.q08-m-foot {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.q08-m-question {
  margin: 0;
  font-size: 21px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--navy);
}

.q08-m-verdict-main {
  margin: 0;
  font-size: 23px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--navy);
}

.q08-m-verdict-sub {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* 保持底栏状态槽稳定，作用范围仅 Q08 */
@media (min-width: 901px) {
  #deck-app:has(.q08) .deck-bar .status {
    flex: 0 0 260px;
    white-space: nowrap;
  }
}

/* Coordinator: preserve mobile calculation position and expose dependency. */
.q08-m-limit { min-height: 29px; }
.q08-m-dependency { margin: 0 0 4px; font-size: 14px; line-height: 1.5; color: var(--gold); }

/* Content11: research choice stays in the default manual route. */
.q08[hidden],.q08-m[hidden],[data-q08-history][hidden],[data-q08m-history][hidden]{display:none!important}
[data-q08-history]{flex:1;min-height:0}
.q08-history{display:flex;flex-direction:column;gap:24px;padding:10px 12px 0;color:var(--navy)}
.q08-history p{margin:0}.q08-history-kicker{font-size:22px;color:var(--muted);letter-spacing:.06em}
.q08-history h2{font-size:40px;line-height:1.3;margin:0}.q08-history-context{font-size:28px;line-height:1.6;max-width:48em}
.q08-choice{background:#f5f8fc;border-left:6px solid var(--gold);padding:28px 34px;font-size:30px;line-height:1.65}.q08-choice span{font-size:24px;color:var(--muted)}
.q08-history-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px}.q08-history-grid section{border:1px solid var(--line);padding:30px;font-size:28px;line-height:1.6}.q08-history-grid h3{margin:0 0 24px;font-size:30px}.q08-history-grid strong{display:block;margin-top:30px;font-size:26px}
.q08-history-note{font-size:21px;line-height:1.55;color:var(--muted)}.q08-research-table{width:100%;border-collapse:collapse;font-size:30px;line-height:1.35}.q08-research-table th,.q08-research-table td{padding:18px 26px;border-bottom:1px solid var(--line);text-align:left}.q08-research-table td:not(:first-child){font-variant-numeric:tabular-nums}.q08-cot-row{background:#edf3f9;font-weight:650}.q08-evidence-question{font-size:28px;font-weight:600}.q08-history-conclusion{border-left:6px solid var(--gold);padding:24px 34px;font-size:32px;line-height:1.8;background:#f9f6ec}
#mobile-doc .q08-history{gap:18px;padding:0}#mobile-doc .q08-history h2{font-size:25px}#mobile-doc .q08-history p,#mobile-doc .q08-history strong,#mobile-doc .q08-choice{font-size:18px}#mobile-doc .q08-history-grid{grid-template-columns:1fr}#mobile-doc .q08-history-grid section{font-size:18px;padding:18px}#mobile-doc .q08-history-grid h3{font-size:21px}#mobile-doc .q08-research-table{font-size:15px}#mobile-doc .q08-research-table th,#mobile-doc .q08-research-table td{padding:12px 6px}#mobile-doc .q08-history-conclusion{padding:18px;font-size:19px}
