/* 字号阶梯：12 / 14 / 16 / 32 / 48（全站只用这 5 档） */
:root {
  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --ink: #18181B;
  --muted: #6B6B73;
  --line: #E4E4E7;
  --line-strong: #D4D4D8;
  --primary: #18181B;
  --primary-ink: #FFFFFF;
  --accent: #2563EB;
  --accent-soft: #EFF4FF;
  --accent-line: #BFD3FF;
  --success: #15803D;
  --success-soft: #ECFDF3;
  --danger: #B91C1C;
  --danger-soft: #FEF2F2;
  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(24, 24, 27, 0.06);
  --shadow-lift: 0 14px 40px rgba(24, 24, 27, 0.07);
  --font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", system-ui, sans-serif;
  --font-num: "Inter", "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button {
  font-family: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:where(button, a, [tabindex]):focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.app {
  min-height: var(--app-height, 100dvh);
}

.screen {
  min-height: var(--app-height, 100dvh);
  display: flex;
  flex-direction: column;
}

.boot {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- 通用控件 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-ink);
}

.btn-primary:hover {
  background: #000000;
}

.btn-primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--bg);
  border-color: var(--line-strong);
}

/* ---------- 练习选择 ---------- */

.topbar {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--primary-ink);
  display: grid;
  place-items: center;
  font-family: var(--font-num);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.brand-copy b {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-copy small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.select-main {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 16px 28px;
  flex: 1;
}

.hero {
  max-width: 34em;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.lead {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.resume-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 26px;
  padding: 15px 18px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
}

.resume-card b {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.resume-card small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.resume-card button {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.settings-card {
  margin-top: 30px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.field + .field {
  margin-top: 24px;
}

.field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.field-label span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.field-label small {
  color: var(--muted);
  font-size: 12px;
}

.seg {
  display: grid;
  gap: 8px;
}

.seg-item {
  min-height: 48px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.seg-item:hover {
  border-color: var(--line-strong);
}

.seg-item.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.choice-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.choice-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.btn-start {
  width: 100%;
  min-height: 56px;
  font-size: 16px;
}

.start-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.storage-warning,
.start-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--danger);
  font-size: 14px;
  line-height: 1.6;
}

.select-footer {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  border: 0;
  background: none;
  color: var(--ink);
  text-align: left;
}

.footer-link + .footer-link {
  border-left: 1px solid var(--line);
}

.footer-link:hover {
  background: rgba(24, 24, 27, 0.02);
}

.footer-link svg {
  flex-shrink: 0;
  color: var(--muted);
}

.footer-link b {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.footer-link small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

/* ---------- 答题 ---------- */

.quiz-top {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 16px 0;
}

.quiz-top-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 44px;
}

.quiz-exit {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
}

.quiz-exit:hover {
  color: var(--ink);
}

.progress-copy {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--ink);
  font-family: var(--font-num);
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.progress-copy span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.quiz-progress {
  width: 100%;
  max-width: 560px;
  margin: 12px auto 0;
  padding: 0 16px;
}

.progress-track {
  height: 3px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.quiz-main {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 16px calc(24px + env(safe-area-inset-bottom));
  flex: 1;
}

.quiz-panel {
  width: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}

.quiz-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 24px;
}

.ability-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.ability-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.reinforce-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.equation-wrap {
  display: flex;
  justify-content: center;
  padding: 28px 0 18px;
}

.equation {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-num);
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.equation .op,
.equation .eq {
  color: var(--muted);
  font-weight: 500;
}

.answer-slot {
  display: inline-block;
  min-width: 1.45em;
  padding: 0 0.06em 0.08em;
  border-bottom: 3px solid var(--ink);
  color: var(--accent);
  text-align: center;
}

.answer-slot.is-empty {
  color: var(--line-strong);
}

.feedback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  text-align: left;
}

.feedback.is-correct {
  background: var(--success-soft);
  color: var(--success);
}

.feedback.is-wrong {
  background: var(--danger-soft);
  color: var(--danger);
}

.feedback-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
}

.feedback-copy b {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.feedback-copy small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.feedback.is-wrong .feedback-copy small {
  color: var(--danger);
  opacity: 0.8;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.key {
  min-height: 60px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-num);
  font-size: 32px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease, opacity 120ms ease;
}

.key:hover {
  border-color: var(--line-strong);
  background: #FCFCFB;
}

.key:active {
  transform: scale(0.98);
  background: var(--bg);
}

.key.is-utility {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.key:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-submit {
  width: 100%;
  min-height: 56px;
  margin-top: 14px;
  font-size: 16px;
}

.keyboard-hint {
  display: none;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* ---------- 小结 ---------- */

.summary-top {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.summary-back {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
}

.summary-back:hover {
  color: var(--ink);
}

.seed-note {
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.summary-main {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 30px 16px calc(36px + env(safe-area-inset-bottom));
  flex: 1;
}

.summary-score {
  margin: 8px 0 0;
  font-family: var(--font-num);
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.summary-score span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.summary-lead {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.summary-stats {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}

.summary-stat {
  padding: 18px 16px;
}

.summary-stat + .summary-stat {
  border-left: 1px solid var(--line);
}

.summary-stat b {
  display: block;
  font-family: var(--font-num);
  font-size: 32px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.summary-stat span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.summary-block {
  margin-top: 28px;
}

.summary-block h2 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}

.chip b {
  margin-left: 4px;
  color: var(--accent);
  font-weight: 600;
}

.summary-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

.summary-note.is-success {
  color: var(--success);
}

.summary-note.is-danger {
  color: var(--danger);
}

.summary-actions {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.summary-actions .btn {
  min-height: 54px;
  font-size: 16px;
}

/* ---------- 占位页 ---------- */

.placeholder-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 16px calc(48px + env(safe-area-inset-bottom));
}

.placeholder-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--accent);
}

.placeholder-main h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.placeholder-main .lead {
  max-width: 28em;
}

.placeholder-main .btn {
  align-self: flex-start;
  margin-top: 28px;
  min-width: 160px;
}

/* ---------- 对话框 ---------- */

.dialog {
  width: min(92vw, 400px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(24, 24, 27, 0.18);
}

.dialog::backdrop {
  background: rgba(24, 24, 27, 0.36);
}

.dialog-body {
  padding: 24px 24px 8px;
}

.dialog-body h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dialog-body p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 20px 24px 24px;
}

/* ---------- 响应式 ---------- */

@media (max-width: 1023px) {
  /* 底部安全区：--safe-bottom 由 JS 量 env() 并保证 ≥34px（微信里 env() 可能为 0）。 */
  .footer-link {
    padding-bottom: calc(14px + var(--safe-bottom, 34px));
  }

  .quiz-main {
    padding-bottom: calc(24px + var(--safe-bottom, 34px));
  }

  .summary-main {
    padding-bottom: calc(36px + var(--safe-bottom, 34px));
  }

  .placeholder-main {
    padding-bottom: calc(48px + var(--safe-bottom, 34px));
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 32px;
  }

  .settings-card {
    padding: 16px;
  }

  .quiz-panel {
    padding: 18px;
  }

  .equation {
    gap: 7px;
  }

  .key {
    min-height: 56px;
  }

  .summary-score {
    font-size: 48px;
  }
}

@media (min-width: 1024px) {
  .topbar {
    padding-top: 28px;
  }

  .select-main {
    padding-top: 52px;
    padding-bottom: 40px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .settings-card {
    padding: 28px;
  }

  .quiz-main {
    justify-content: center;
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .quiz-panel {
    padding: 30px;
  }

  .keyboard-hint {
    display: block;
  }

  .summary-main {
    padding-top: 44px;
  }

  .summary-score {
    font-size: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- 首页（选科） ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-link {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.topbar-link:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.home-main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 16px 32px;
}

.subject-list {
  display: grid;
  gap: 14px;
}

.subject-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 108px;
  padding: 20px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: left;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.subject-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}

.subject-card:active {
  transform: translateY(1px);
}

.subject-mark {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.subject-body {
  flex: 1;
  min-width: 0;
}

.subject-name {
  display: block;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.subject-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  vertical-align: 2px;
}

.subject-tagline {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.subject-detail {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.subject-arrow {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--line-strong);
}

.tone-math .subject-mark,
.placeholder-icon.tone-math {
  background: var(--accent-soft);
  color: var(--accent);
}

.tone-chinese .subject-mark,
.placeholder-icon.tone-chinese {
  background: #FEF3F2;
  color: #B42318;
}

.tone-english .subject-mark,
.placeholder-icon.tone-english {
  background: var(--success-soft);
  color: var(--success);
}

.resume-card-wide {
  width: 100%;
  margin: 0 0 14px;
  text-align: left;
  cursor: pointer;
}

.resume-go {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.placeholder-icon {
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 700;
}

@media (min-width: 1024px) {
  .home-main {
    padding-top: 40px;
  }

  .subject-card {
    min-height: 104px;
    padding: 20px 20px;
  }
}

.home-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

/* ---------- 语文：选择与判断 ---------- */

.field-first {
  margin-top: 0;
}

.question-text {
  margin: 20px 0 0;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -0.01em;
  word-break: break-word;
}

.type-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.quiz-panel-text .feedback {
  margin: 18px 0 0;
}

.choice-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.choice-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.choice-item:hover:not(:disabled) {
  border-color: var(--line-strong);
}

.choice-item.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.choice-key {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 600;
}

.choice-item.is-selected .choice-key {
  border-color: var(--accent-line);
  background: var(--surface);
  color: var(--accent);
}

.choice-text {
  flex: 1;
  min-width: 0;
}

.choice-item.is-correct {
  border-color: #86EFAC;
  background: var(--success-soft);
  color: var(--success);
}

.choice-item.is-correct .choice-key {
  border-color: #86EFAC;
  background: var(--surface);
  color: var(--success);
}

.choice-item.is-wrong {
  border-color: #FCA5A5;
  background: var(--danger-soft);
  color: var(--danger);
}

.choice-item.is-wrong .choice-key {
  border-color: #FCA5A5;
  background: var(--surface);
  color: var(--danger);
}

.judge-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.judge-btn {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 32px;
  font-weight: 600;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.judge-btn:hover:not(:disabled) {
  border-color: var(--line-strong);
}

.judge-btn.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.judge-btn.is-correct {
  border-color: #86EFAC;
  background: var(--success-soft);
  color: var(--success);
}

.judge-btn.is-wrong {
  border-color: #FCA5A5;
  background: var(--danger-soft);
  color: var(--danger);
}

@media (max-width: 380px) {
  .question-text {
    font-size: 32px;
  }

  .choice-item {
    padding: 10px 12px;
  }
}

.quiz-note {
  margin: 0 0 14px;
  padding: 8px 12px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  line-height: 1.5;
}

/* ---------- 错题本 / 家长看板 ---------- */

.parent-main,
.wrong-main {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px calc(28px + var(--safe-bottom, 34px));
}

.parent-head h1,
.wrong-main h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.parent-head .lead,
.wrong-main .lead {
  margin: 10px 0 0;
  font-size: 14px;
}

.subject-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.subject-tab {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.subject-tab.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.overview-card {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
}

.overview-card b {
  display: block;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.overview-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.suggest-block,
.mastery-block {
  margin-top: 22px;
}

.suggest-block h2,
.mastery-block h2,
.mastered-block h2 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.suggest-list {
  display: grid;
  gap: 8px;
}

.suggest-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.suggest-rank {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
}

.suggest-body {
  flex: 1;
  min-width: 0;
}

.suggest-body b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.suggest-body small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.suggest-side {
  flex-shrink: 0;
  text-align: right;
}

.suggest-side b {
  display: block;
  font-family: var(--font-num);
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.delta {
  display: inline-block;
  margin-top: 2px;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.delta.is-up {
  color: var(--success);
}

.delta.is-down {
  color: var(--danger);
}

.delta.is-flat {
  color: var(--muted);
}

.mastery-list {
  border-top: 1px solid var(--line);
}

.mastery-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.mastery-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.mastery-name {
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.mastery-value {
  flex-shrink: 0;
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.mastery-value .delta {
  margin-left: 6px;
}

.review-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  vertical-align: 1px;
}

.mastery-bar {
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.mastery-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.mastery-plain {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.export-btn {
  width: 100%;
  min-height: 52px;
  margin-top: 26px;
  font-size: 15px;
}

.export-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.wrong-summary {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.wrong-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.wrong-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 84px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: left;
}

.wrong-card:active {
  background: var(--bg);
}

.wrong-card-body {
  flex: 1;
  min-width: 0;
}

.wrong-card-body b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.wrong-card-body small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.wrong-meta {
  color: var(--muted);
}

.wrong-go {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 36px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
}

.empty-state b {
  font-size: 16px;
  font-weight: 600;
}

.empty-state p,
.empty-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.mastered-block {
  margin-top: 26px;
}

.mastered-list {
  border-top: 1px solid var(--line);
}

.mastered-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.mastered-name {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.mastered-meta {
  flex-shrink: 0;
  color: var(--line-strong);
  font-size: 12px;
}

@media (min-width: 1024px) {
  .parent-main,
  .wrong-main {
    padding-top: 36px;
    padding-bottom: 40px;
  }
}

@media (max-width: 380px) {
  .parent-head h1,
  .wrong-main h1 {
    font-size: 32px;
  }

  .suggest-body small {
    font-size: 12px;
  }
}

/* ---------- 错因自述 ---------- */

.cause-block {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.cause-title {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.cause-title small {
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.cause-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cause-btn {
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.cause-btn:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}

.cause-skip {
  margin-top: 10px;
  padding: 6px 2px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
}

.cause-done {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--success-soft);
  color: var(--success);
  font-size: 14px;
  line-height: 1.5;
}

.feedback-explain {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

/* ---------- 首页：今天练什么 ---------- */

.subject-item {
  display: grid;
  gap: 8px;
}

.daily-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 8px 16px;
  border: 1px dashed var(--accent-line);
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  text-align: left;
}

.daily-copy b {
  display: block;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.daily-copy small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
}

.daily-go {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

/* ---------- 每天三段 ---------- */

.stage-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.stage-review {
  background: var(--accent-soft);
  color: var(--accent);
}

.stage-new {
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--line);
}

.stage-challenge {
  background: #FEF3F2;
  color: #B42318;
}

.challenge-hint {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #FEF3F2;
  color: #B42318;
  font-size: 13px;
  line-height: 1.5;
}

.daily-abandon {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  font-size: 14px;
}

.daily-summary .daily-title {
  margin: 8px 0 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.stage-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.stage-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.stage-row b {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.daily-insight {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- 看板：错因分布 ---------- */

.cause-dist-block {
  margin-top: 22px;
}

.cause-dist-block h2 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.cause-note {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.cause-dist {
  display: grid;
  gap: 6px;
}

.cause-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.cause-label {
  font-size: 13px;
  font-weight: 500;
}

.cause-label em {
  margin-left: 6px;
  color: #B42318;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

.cause-row.is-guessed {
  border-color: #FCA5A5;
  background: #FEF3F2;
}

.cause-percent {
  flex-shrink: 0;
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cause-percent small {
  margin-left: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

/* ---------- 错题本：每题归因标签 ---------- */

.wrong-record-list {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.wrong-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.wrong-record-text {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cause-chip {
  flex-shrink: 0;
  padding: 1px 7px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.5;
}

.cause-chip.is-skip,
.cause-chip.is-none {
  border-color: var(--line);
  background: var(--bg);
  color: var(--muted);
}

/* ---------- 说说你是怎么想的 ---------- */

.reason-entry {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px dashed var(--accent-line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.reason-entry:hover {
  background: var(--accent-soft);
}

.reason-box {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.reason-box label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.reason-box textarea {
  display: block;
  width: 100%;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  /* 16px 起：iOS 聚焦输入框时不会自动放大页面。 */
  font-size: 16px;
  line-height: 1.6;
  resize: vertical;
  scroll-margin-bottom: 120px;
}

.reason-box textarea:focus {
  outline: 2px solid var(--accent-line);
  border-color: var(--accent);
}

.reason-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.reason-skip {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
}

.reason-submit {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
}

.reason-submit:disabled {
  opacity: 0.5;
}

.reason-box.is-done {
  border-color: #86EFAC;
  background: var(--success-soft);
}

.reason-box.is-done b {
  display: block;
  color: var(--success);
  font-size: 14px;
  font-weight: 600;
}

.reason-box.is-done p {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.6;
}

.reason-box.is-degraded {
  border-color: var(--line-strong);
  background: var(--bg);
}

.reason-box.is-degraded b {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.reason-box.is-degraded p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.reasoning-sending {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- 看板：说思路 ---------- */

.reasoning-block {
  margin-top: 22px;
}

.reasoning-block h2 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.reasoning-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}

.reason-box.is-done.is-unclear {
  border-color: #FCD34D;
  background: #FFFBEB;
}

.reason-box.is-done.is-unclear b {
  color: #B45309;
}

.reason-box.is-done.is-partial {
  border-color: var(--line-strong);
  background: var(--bg);
}

.reason-box.is-done.is-partial b {
  color: var(--ink);
}


/* ---------- 首次使用引导 ---------- */

.intro-screen {
  background: var(--bg);
}

.intro-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 32px 20px calc(40px + var(--safe-bottom, 34px));
}

.intro-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.intro-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}

.intro-dot.is-active {
  width: 24px;
  border-radius: 999px;
  background: var(--accent);
}

.intro-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
}

.intro-main h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.intro-body {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
}

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

.intro-actions {
  margin-top: 32px;
}

.intro-actions .btn {
  width: 100%;
  min-height: 56px;
  font-size: 16px;
}

.intro-replay {
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  font-size: 14px;
}

@media (min-width: 1024px) {
  .intro-main {
    padding-top: 48px;
    padding-bottom: 56px;
  }
}
.intro-mark {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

/* ---------- 语文上册 / 下册 ---------- */

.volume-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.parent-volume-tabs {
  margin-top: 10px;
}

.volume-tab {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.volume-tab.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.volume-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #FCD34D;
  border-radius: var(--radius-lg);
  background: #FFFBEB;
}

.volume-hint p {
  margin: 0;
  color: #92400E;
  font-size: 13px;
  line-height: 1.55;
}

.volume-hint button {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #FCD34D;
  border-radius: var(--radius);
  background: var(--surface);
  color: #92400E;
  font-size: 13px;
  font-weight: 600;
}

.volume-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

/* ---------- 看板：习惯 ---------- */

.habit-block {
  margin-top: 18px;
}

.habit-block h2 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.habit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.habit-cell {
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.habit-cell b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.habit-cell span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.habit-empty {
  margin: 0;
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 420px) {
  .habit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .habit-cell b {
    font-size: 14px;
  }
}


@media (min-width: 1024px) {
  /* T-05：桌面档语文题干不小于 48px。 */
  .question-text {
    font-size: 48px;
    line-height: 1.45;
  }

  .summary-main .daily-title {
    font-size: 32px;
  }
}

/* ---------- 看板：本周小结 ---------- */

.weekly-block {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.weekly-block h2 {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.weekly-hint {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.weekly-btn {
  width: 100%;
  min-height: 48px;
  font-size: 14px;
}

.weekly-loading {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.weekly-text {
  margin: 14px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.85;
  white-space: pre-line;
}

.weekly-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

/* ---------- 试用与下册收起 ---------- */

.trial-pill {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  vertical-align: 2px;
}

.volume-collapsed {
  margin-top: 18px;
}

.volume-locked {
  min-height: 40px;
  padding: 0 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}

.volume-locked:hover {
  border-color: var(--accent-line);
  color: var(--accent);
}

.feature-block {
  margin-top: 22px;
}

.feature-block h2 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  margin-top: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: left;
}

.feature-row[aria-pressed="true"] {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.feature-copy {
  flex: 1;
  min-width: 0;
}

.feature-copy b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.feature-copy small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.feature-state {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.feature-row[aria-pressed="true"] .feature-state {
  color: var(--accent);
}

.trial-note {
  margin: 12px 0 0;
  padding: 10px 14px;
  border: 1px dashed var(--accent-line);
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  line-height: 1.55;
}

/* ---------- T43：成功率 / 护栏 / 表扬 ---------- */

.overview-rate {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.rule-note {
  margin: 12px 0 0;
  padding: 10px 14px;
  border: 1px solid #FCD34D;
  border-radius: var(--radius);
  background: #FFFBEB;
  color: #92400E;
  font-size: 13px;
  line-height: 1.55;
}

.weekly-praise {
  margin: 10px 0 0;
  padding: 12px 14px;
  border: 1px dashed var(--accent-line);
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.65;
}

/* ---------- T44：学习曲线标记 ---------- */

.curve-chip {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  vertical-align: 1px;
}

.curve-chip.tone-fast {
  border-color: #86EFAC;
  background: #F0FDF4;
  color: #166534;
}

.curve-chip.tone-medium {
  border-color: #FCD34D;
  background: #FFFBEB;
  color: #92400E;
}

.curve-chip.tone-slow {
  border-color: #FDBA74;
  background: #FFF7ED;
  color: #9A3412;
}

/* ---------- T45：两周回访 ---------- */

.review-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  margin-bottom: 14px;
  padding: 12px 16px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  text-align: left;
}

.review-copy b {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.review-copy small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.review-go {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.review-block {
  margin-top: 22px;
}

.review-block h2 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.review-list {
  display: grid;
  gap: 8px;
}

.review-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: left;
}

.review-row b {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.review-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.review-row em {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.face-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.face {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.face.is-accumulating {
  border-style: dashed;
  opacity: 0.8;
}

.retention-line {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

/* ---------- T47：四卡同屏与科学提示 ---------- */

@media (max-width: 1023px) {
  .subject-list {
    gap: 10px;
  }

  .subject-card {
    min-height: 96px;
    padding: 14px 16px;
  }

  .daily-entry {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 12px;
  }

  .home-note {
    margin-top: 12px;
    font-size: 12px;
  }
}

.science-hint {
  margin: 10px 0 0;
  padding: 10px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- T50：孩子版成长大屏 ---------- */

.select-footer {
  grid-template-columns: repeat(3, 1fr);
}

.growth-main {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 16px 28px;
}

.growth-head h1 {
  margin: 6px 0 4px;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.growth-count {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.growth-count b {
  color: var(--accent);
  font-size: 20px;
}

.map-block {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.map-region-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 12px;
}

.map-region-head b {
  font-size: 13px;
  font-weight: 600;
}

.map-region-head span {
  color: var(--muted);
  font-size: 11px;
}

.map-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.map-dot {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2, #F4F4F5);
}

.map-dot.state-practicing {
  border-color: #FCD34D;
  background: #FEF3C7;
}

.map-dot.state-lit {
  border-color: #22C55E;
  background: #22C55E;
  animation: dot-pop 0.55s ease-out 1;
}

.map-dot.is-selected {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@keyframes dot-pop {
  0% { transform: scale(0.7); opacity: 0.5; }
  60% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .map-dot.state-lit {
    animation: none;
  }
}

.place-card {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
}

.place-card b {
  font-size: 14px;
}

.place-card p {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.place-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.place-actions .btn {
  width: auto;
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
}

.place-state {
  color: var(--muted);
  font-size: 12px;
}

.place-state.state-lit {
  color: #15803D;
}

.today-block,
.collect-block {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.today-block h2,
.collect-head h2 {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.today-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.today-story {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  line-height: 1.4;
}

.today-story.tone-challenge {
  border-color: #FCD34D;
  background: #FFFBEB;
}

.today-story.tone-reasoning {
  border-color: #86EFAC;
  background: #F0FDF4;
}

.today-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 12px;
}

.today-empty button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.collect-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.collect-add {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.collect-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.collect-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.collect-list b {
  font-weight: 500;
  line-height: 1.5;
}

.collect-list small {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 11px;
}

.collect-empty {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

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

.process-badge {
  padding: 4px 9px;
  border: 1px solid #FCD34D;
  border-radius: 999px;
  background: #FFFBEB;
  color: #92400E;
  font-size: 11px;
  font-weight: 600;
}

.ask-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(24, 24, 27, 0.35);
}

.ask-card {
  width: 100%;
  max-width: 420px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.ask-card h2 {
  margin: 0 0 4px;
  font-size: 16px;
}

.ask-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.ask-card input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 14px;
}

.ask-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.ask-actions .btn {
  flex: 1;
  min-height: 44px;
}

@media (max-width: 380px) {
  .select-footer .footer-link span small {
    display: none;
  }
}

/* ---------- T52：学习助手 ---------- */

.assistant-root {
  position: fixed;
  right: 16px;
  bottom: 92px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.assistant-fab {
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(24, 24, 27, 0.18);
}

.assistant-bubble {
  max-width: 240px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
  box-shadow: 0 6px 18px rgba(24, 24, 27, 0.12);
}

.assistant-panel {
  width: min(280px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(24, 24, 27, 0.16);
}

.assistant-result {
  min-height: 38px;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.6;
}

.assistant-actions {
  display: grid;
  gap: 6px;
}

.assistant-actions button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2, #FAFAFA);
  color: var(--ink);
  font-size: 12px;
  text-align: left;
}

.assistant-actions button:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.assistant-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 380px) {
  .assistant-root {
    right: 12px;
    bottom: 84px;
  }
}

.assistant-fab { position: relative; z-index: 2; }
.assistant-panel { margin-bottom: 2px; }

/* ---------- T65：薄弱包与专题 ---------- */

.weak-pack {
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
}

.weak-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.weak-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.weak-head span {
  color: var(--muted);
  font-size: 11px;
}

.weak-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.weak-card {
  min-height: 84px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
}

.weak-card b {
  display: block;
  font-size: 12px;
  line-height: 1.4;
}

.weak-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.topic-main {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 16px 28px;
}

.topic-progress {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.topic-progress b {
  color: var(--ink);
  font-size: 16px;
}

.topic-question {
  margin: 10px 0;
  font-size: 18px;
  line-height: 1.65;
}

.topic-method {
  margin: 14px 0 18px;
  padding: 14px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
}

.topic-method b {
  font-size: 13px;
}

.topic-method p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

.topic-figure {
  margin: 10px 0;
  overflow-x: auto;
}

.topic-figure svg {
  max-width: 100%;
  height: auto;
}

.topic-field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.topic-field span {
  min-width: 40px;
  color: var(--muted);
  font-size: 13px;
}

.topic-field input {
  flex: 1;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 16px;
}

.topic-feedback {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.6;
}

.topic-feedback.is-correct {
  border: 1px solid #86EFAC;
  background: #F0FDF4;
}

.topic-feedback.is-wrong {
  border: 1px solid #FCD34D;
  background: #FFFBEB;
}

.topic-feedback p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.topic-causes {
  margin-top: 10px;
}

.topic-causes p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
}

.cause-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cause-grid button {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
}

.topic-summary {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 380px) {
  .weak-grid {
    grid-template-columns: 1fr;
  }

  .weak-card {
    min-height: 56px;
  }
}

/* ---------- T67：理解三重验证 ---------- */

.understanding-card {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
}

.understanding-card b {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.understanding-card p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.6;
}

.understanding-card input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 14px;
}

.verify-options {
  display: grid;
  gap: 6px;
}

.verify-options button {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}

.verify-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.verify-actions button {
  flex: 1;
  min-height: 38px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.verify-skip {
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  text-decoration: underline;
}

.understanding-card.is-done {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.understanding-card.is-done b {
  margin: 0;
}

.understanding-card.is-done button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 12px;
}

.understand-block {
  margin-top: 18px;
}

.understand-block h2 {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.understand-block > p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.understand-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.understand-block li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.understand-block li small {
  color: var(--muted);
  font-size: 11px;
}

/* ---------- T69：三档响应式 ---------- */

/* 手机 <600：沿用现有单列；以下只覆盖平板与 PC。 */

@media (min-width: 600px) and (max-width: 1023px) {
  .home-main,
  .parent-main,
  .quiz-main,
  .select-main,
  .summary-main,
  .growth-main,
  .topic-main {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }

  .subject-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-entry {
    min-height: 44px;
  }

  .quiz-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px 24px;
    align-items: start;
  }

  .quiz-panel > .quiz-meta {
    grid-column: 1 / -1;
  }

  .quiz-panel > .equation-wrap {
    grid-column: 1;
    grid-row: 2;
  }

  .quiz-panel > .keypad {
    grid-column: 2;
    grid-row: 1 / span 4;
  }

  .quiz-panel > .feedback,
  .quiz-panel > .cause-grid,
  .quiz-panel > .understanding-card,
  .quiz-panel > .rule-note,
  .quiz-panel > .reasoning,
  .quiz-panel-text > .feedback,
  .quiz-panel-text > .cause-grid,
  .quiz-panel-text > .understanding-card,
  .quiz-panel-text > .science-hint,
  .quiz-panel-text > .btn-submit,
  .quiz-panel-text > .keyboard-hint {
    grid-column: 1 / -1;
  }

  .quiz-panel-text > .question-text {
    grid-column: 1;
    grid-row: 2;
    font-size: 30px;
  }

  .quiz-panel-text > .choice-list,
  .quiz-panel-text > .judge-row {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .keypad-key {
    min-height: 58px;
  }

  .choice-item {
    min-height: 60px;
    font-size: 16px;
  }

  .judge-btn {
    min-height: 76px;
  }

  .mastery-list {
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
  }

  .summary-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* PC ≥1024：内容列 720，右侧 240 侧栏，总宽 ≤1000。 */

.pc-rail {
  display: none;
}

@media (min-width: 1024px) {
  body.rail-open .screen {
    max-width: 720px;
    margin-left: calc((100vw - 1000px) / 2);
    margin-right: auto;
  }

  .pc-rail {
    position: fixed;
    top: 16px;
    right: 12px;
    bottom: 16px;
    z-index: 25;
    display: flex;
    width: 240px;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(24, 24, 27, 0.08);
    overflow-y: auto;
  }

  .pc-rail.is-collapsed {
    width: auto;
    padding: 6px;
    bottom: auto;
  }

  .pc-rail.is-collapsed .rail-body {
    display: none;
  }

  .rail-toggle {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-2, #FAFAFA);
    color: var(--muted);
    font-size: 11px;
  }

  .rail-body h2 {
    margin: 10px 0 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
  }

  .rail-today {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-2, #FAFAFA);
  }

  .rail-today b {
    display: block;
    font-size: 12px;
    line-height: 1.5;
  }

  .rail-today p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
  }

  .rail-weak {
    display: grid;
    gap: 6px;
  }

  .rail-weak button {
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    font-size: 11px;
    line-height: 1.4;
    text-align: left;
  }
}

@media (max-width: 599px) {
  .weak-pack {
    padding: 8px;
    margin-bottom: 10px;
  }

  .weak-head {
    margin-bottom: 6px;
  }

  .weak-head span {
    display: none;
  }

  .weak-card {
    min-height: 64px;
    padding: 8px;
  }

  .weak-card b {
    font-size: 11px;
  }

  .weak-card small {
    font-size: 9px;
  }

  .subject-list {
    gap: 8px;
  }

  .subject-item {
    gap: 5px;
  }

  .subject-card {
    min-height: 84px;
    padding: 10px 14px;
  }

  .daily-entry {
    min-height: 32px;
    padding: 4px 10px;
    font-size: 11px;
  }

  .home-note {
    margin-top: 8px;
    font-size: 11px;
  }

  .select-footer {
    min-height: 64px;
  }

  .footer-link {
    min-height: 64px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .footer-link span b {
    font-size: 12px;
  }

  .footer-link span small {
    font-size: 10px;
  }
}

.daily-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
}

.daily-strip button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
}

@media (max-width: 599px) {
  .home-note {
    display: none;
  }
}

.daily-strip button { min-height: 44px; }
.cause-grid button { min-height: 44px; }
.avoid { display: none; }

@media (max-width: 599px) {
  .weak-card { min-height: 60px; }
  .subject-card { min-height: 80px; }
}

/* ---------- T70：策略引擎 ---------- */

.policy-note {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #C4B5FD;
  border-radius: var(--radius);
  background: #F5F3FF;
  color: #5B21B6;
  font-size: 13px;
  line-height: 1.6;
}

.reading-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.reading-aid {
  display: inline-block;
  line-height: 2;
}

.reading-aid b {
  color: var(--accent);
}

.confirm-read {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  border: 1px dashed var(--accent-line);
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.policy-block {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid #DDD6FE;
  border-radius: var(--radius-lg);
  background: #FAF5FF;
}

.policy-block h2 {
  margin: 0 0 6px;
  color: #6D28D9;
  font-size: 13px;
  font-weight: 600;
}

.policy-block ul {
  margin: 0;
  padding-left: 16px;
}

.policy-block li {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.7;
}

/* ---------- T73：技能星图 ---------- */

.skill-entry {
  min-height: 38px;
  margin: 4px 0 12px;
  padding: 0 14px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.star-main {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 16px 28px;
}

.star-head {
  display: grid;
  gap: 4px;
}

.star-head .growth-count {
  margin: 0;
}

.star-subjects {
  display: flex;
  gap: 6px;
  margin: 6px 0 8px;
}

.star-subjects button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}

.star-subjects button.is-active {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.star-tools {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.star-tools button {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 11px;
}

.star-canvas {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 30%, #1E1B4B 0%, #09090B 70%);
  touch-action: none;
}

.star-svg {
  display: block;
  width: 100%;
  height: 56vh;
  min-height: 360px;
}

.star-edge {
  stroke: rgba(148, 163, 184, 0.35);
  stroke-width: 1.5;
}

.star-node {
  cursor: pointer;
}

.star-node circle {
  fill: #1F2937;
  stroke: #475569;
  stroke-width: 1.5;
}

.star-node text {
  fill: #CBD5E1;
  font-size: 11px;
  pointer-events: none;
}

.star-node.state-lit circle:first-child {
  fill: #22C55E;
  stroke: #86EFAC;
  animation: star-pop 0.4s ease-out 1;
}

.star-node.state-lit text {
  fill: #DCFCE7;
}

.star-node.state-correctOnly circle:first-child {
  fill: #F59E0B;
  stroke: #FCD34D;
}

.star-node.state-correctOnly .star-q {
  fill: #78350F;
  font-size: 14px;
  font-weight: 700;
}

.star-node.state-practicing circle:first-child {
  fill: transparent;
  stroke: #94A3B8;
  stroke-dasharray: 4 3;
}

.star-node.state-locked circle:first-child {
  fill: #111827;
  stroke: #374151;
  opacity: 0.55;
}

.star-node.state-locked text {
  fill: #6B7280;
}

.star-halo {
  fill: none;
  stroke: rgba(34, 197, 94, 0.35);
  stroke-width: 4;
}

@keyframes star-pop {
  0% { transform: scale(0.7); opacity: 0.5; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .star-node.state-lit circle:first-child { animation: none; }
}

.star-unlock {
  margin: 8px 0 0;
  padding: 8px 12px;
  border: 1px solid #86EFAC;
  border-radius: var(--radius);
  background: #F0FDF4;
  color: #166534;
  font-size: 12px;
}

.star-drawer {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.star-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.star-drawer-head b {
  font-size: 14px;
}

.star-state {
  color: var(--muted);
  font-size: 11px;
}

.star-state.state-lit { color: #15803D; }
.star-state.state-correctOnly { color: #B45309; }

.star-drawer p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.star-chain {
  color: #6D28D9 !important;
}

.star-close {
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  text-decoration: underline;
}

.star-empty {
  padding: 40px 16px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (min-width: 600px) and (max-width: 1023px) {
  .star-main { max-width: 900px; }
  .star-svg { height: 60vh; }
}

/* ---------- T75：拍照作业 ---------- */

.photo-entry {
  display: block;
  width: 100%;
  min-height: 40px;
  margin: 0 0 10px;
  border: 1px dashed var(--accent-line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.ocr-main {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 16px 28px;
}

.ocr-lead {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.ocr-pick {
  display: grid;
  gap: 8px;
}

.ocr-head {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 12px;
}

.ocr-head span {
  color: var(--muted);
  margin-left: 8px;
}

.ocr-warn {
  margin: 6px 0 0;
  color: #92400E;
  font-size: 12px;
  line-height: 1.6;
}

.ocr-cards {
  display: grid;
  gap: 10px;
}

.ocr-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.ocr-card.is-uncertain {
  border-color: #FCD34D;
  background: #FFFBEB;
}

.ocr-card.is-confirmed {
  border-color: #86EFAC;
}

.ocr-card.is-skipped {
  opacity: 0.55;
}

.ocr-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.ocr-card-head em {
  color: #B45309;
  font-size: 11px;
  font-style: normal;
}

.ocr-card-head span {
  color: #15803D;
  font-size: 11px;
}

.ocr-card label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.ocr-card textarea,
.ocr-card input,
.ocr-card select,
.ocr-manual textarea,
.ocr-manual input,
.ocr-manual select {
  width: 100%;
  min-height: 40px;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 14px;
}

.ocr-ask {
  margin: 6px 0 0;
  color: #B45309;
  font-size: 11px;
}

.ocr-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.ocr-card-actions button {
  flex: 1;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 12px;
}

.ocr-manual {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.ocr-manual label {
  color: var(--muted);
  font-size: 11px;
}

.ocr-saved {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #86EFAC;
  border-radius: var(--radius-lg);
  background: #F0FDF4;
}

.ocr-saved b { font-size: 14px; }
.ocr-saved p { color: var(--muted); font-size: 12px; }

.photo-tools {
  margin-top: 18px;
  display: grid;
  gap: 6px;
}

.photo-tools h2 {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

/* ---------- T76：自学模式 ---------- */

.self-entry {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 0 0 10px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.self-main {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 16px 28px;
}

.self-recommend {
  margin: 4px 0 12px;
  padding: 10px 12px;
  border: 1px dashed var(--accent-line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 12px;
  line-height: 1.6;
}

.self-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.self-card {
  min-height: 96px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: left;
}

.self-card b {
  display: block;
  font-size: 14px;
  line-height: 1.4;
}

.self-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.self-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.self-panel h2 {
  margin: 0 0 6px;
  font-size: 16px;
}

.self-panel > p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.self-panel textarea,
.self-panel input {
  width: 100%;
  min-height: 44px;
  margin: 4px 0 10px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 14px;
}

.self-teach-title {
  color: var(--ink) !important;
  font-size: 15px !important;
  font-weight: 700;
}

.teach-block {
  margin: 12px 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.teach-block b {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 12px;
}

.teach-block p,
.teach-block li {
  font-size: 14px;
  line-height: 1.7;
}

.teach-block ol {
  margin: 4px 0 0;
  padding-left: 20px;
}

.self-hint,
.self-result {
  margin: 8px 0;
  padding: 10px 12px;
  border: 1px solid #C4B5FD;
  border-radius: var(--radius);
  background: #F5F3FF;
  color: #5B21B6;
  font-size: 13px;
  line-height: 1.6;
}

.self-actions {
  display: flex;
  gap: 8px;
}

.self-actions .btn {
  flex: 1;
}

.self-back {
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
}

/* ---------- T78：年龄适配层 ---------- */

.stage-art {
  height: 54px;
  margin: -4px 0 10px;
  border-radius: var(--radius-lg);
  opacity: 0.9;
}

.stage-art.stage1 {
  background: radial-gradient(circle at 20% 40%, #FDE68A 0 2px, transparent 3px), radial-gradient(circle at 60% 60%, #BFDBFE 0 2px, transparent 3px), linear-gradient(120deg, #FEF3C7, #DBEAFE);
}

.stage-art.stage2 {
  background-image: linear-gradient(rgba(148,163,184,0.25) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,0.25) 1px, transparent 1px);
  background-size: 18px 18px;
  background-color: #F8FAFC;
}

.stage-art.stage3 {
  background: radial-gradient(circle at 30% 50%, transparent 0 18px, rgba(99,102,241,0.35) 19px 20px, transparent 21px),
    radial-gradient(circle at 70% 40%, transparent 0 10px, rgba(14,165,233,0.4) 11px 12px, transparent 13px),
    linear-gradient(120deg, #0F172A, #1E1B4B);
}

.stage-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid #86EFAC;
  border-radius: var(--radius);
  background: #F0FDF4;
  color: #166534;
  font-size: 12px;
  line-height: 1.5;
}

.stage-notice button {
  flex-shrink: 0;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #86EFAC;
  border-radius: var(--radius);
  background: #fff;
  color: #166534;
  font-size: 11px;
}

.stage-block {
  margin-top: 18px;
  display: grid;
  gap: 6px;
}

.stage-block h2 {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.stage-birth {
  color: var(--muted);
  font-size: 11px;
}

.stage-birth input {
  width: 100%;
  min-height: 40px;
  margin-top: 4px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 14px;
}

.stage-actions {
  display: flex;
  gap: 6px;
}

.stage-actions .btn {
  flex: 1;
}

.stage-buttons {
  display: flex;
  gap: 6px;
}

.stage-buttons button {
  flex: 1;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
}

.stage-buttons button.is-active {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}


/* ---------- T81 动态目标与效率 ---------- */
.goal-card {
  display: grid;
  gap: 2px;
  margin: 4px 0 10px;
  padding: 12px 14px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: var(--accent-soft);
}
.goal-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
}
.goal-card b {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}
.goal-card small {
  color: var(--muted);
  font-size: 12px;
}
.goal-end,
.goal-result {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  line-height: 1.4;
}
.goal-line {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.efficiency-tip {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.efficiency-block {
  margin-top: 14px;
}
.efficiency-block h2 {
  margin: 0 0 8px;
  font-size: 16px;
}
.eff-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.eff-stat + .eff-stat { margin-top: 6px; }
.eff-stat b { font-size: 16px; }
.eff-stat span { color: var(--muted); font-size: 12px; }
.eff-note { margin: 8px 0 0; color: var(--muted); font-size: 12px; }


/* ---------- T89 家长 PIN ---------- */
.pin-screen {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px calc(24px + var(--safe-bottom, 34px));
}
.pin-main {
  width: 100%;
  max-width: 360px;
  text-align: center;
}
.pin-main h1 {
  margin: 6px 0 4px;
  font-size: 24px;
}
.pin-hint {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.pin-dots {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 4px 0 12px;
}
.pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface);
}
.pin-dot.is-filled {
  border-color: var(--accent);
  background: var(--accent);
}
.pin-error {
  margin: 0 0 8px;
  color: var(--danger, #c0392b);
  font-size: 13px;
}
.pin-keypad {
  margin-top: 6px;
}
.pin-reset {
  margin-top: 14px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
}
.pin-cancel {
  margin-top: 10px;
  width: 100%;
}
.parent-badge {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
}


/* ---------- T93 孩子端提示与成长口径 ---------- */
.home-notice {
  margin: 8px 0 0;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
}
.growth-note {
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 12px;
}


/* ---------- T98 学期前瞻（夹带） ---------- */
.stage-preview {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}
.preview-hint {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
}
.preview-skip {
  width: 100%;
  margin-top: 8px;
}
.feedback.is-preview {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}
.star-node.state-previewed circle {
  fill: var(--surface);
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  opacity: 0.85;
}
.preview-block {
  margin-top: 14px;
}
.preview-block h2 {
  margin: 0 0 8px;
  font-size: 16px;
}
.preview-block p {
  margin: 4px 0;
  font-size: 13px;
  line-height: 1.5;
}


/* ---------- T102 教学进度（家长端） ---------- */
.pacing-block { margin-top: 14px; }
.pacing-block h2 { margin: 0 0 8px; font-size: 16px; }
.pacing-start {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 13px;
  color: var(--muted);
}
.pacing-row {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.pacing-row + .pacing-row { margin-top: 8px; }
.pacing-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.pacing-head span { color: var(--muted); }
.pacing-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pacing-actions button {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-size: 12px;
}
.pacing-actions select {
  flex: 1;
  min-width: 140px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-size: 12px;
}
.pacing-notice { margin: 8px 0 0; font-size: 12px; color: var(--accent); }
.pacing-notice button { border: 0; background: none; color: var(--accent); text-decoration: underline; font-size: 12px; }


/* ---------- T104 三科学期前瞻 ---------- */
.preview-edition {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
}
.preview-row {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.preview-row:first-of-type { border-top: 0; }
.preview-row b { display: block; margin-bottom: 4px; font-size: 13px; }
.preview-row p { margin: 2px 0; }


/* ---------- T111 接口地址（仅家长端） ---------- */
.api-block { margin-top: 14px; }
.api-block h2 { margin: 0 0 6px; font-size: 16px; }
.api-value {
  display: block;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 12px;
  word-break: break-all;
}


/* ---------- T109 语文新题型（填空/连线/词序） ---------- */
.fill-row { margin: 12px 0; }
.fill-input {
  width: 100%;
  padding: 14px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 20px;
}
.fill-input:focus { border-color: var(--accent); outline: none; }
.match-list { display: grid; gap: 8px; margin: 10px 0; }
.match-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.match-left { font-size: 16px; }
.match-select {
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
}
.order-picked {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 48px;
  margin: 10px 0;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.order-empty { color: var(--muted); font-size: 13px; }
.order-pool { display: flex; flex-wrap: wrap; gap: 8px; }
.order-chip {
  min-height: 44px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
}
.order-chip.is-picked { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.answer-hint { margin: 8px 0 0; color: var(--muted); font-size: 12px; }


/* ---------- T124 云端连接（仅家长端） ---------- */
.cloud-block { margin: 14px 0 0; }
.cloud-block h2 { margin: 0 0 6px; font-size: 16px; }
.cloud-field {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 13px;
  color: var(--muted);
}
.cloud-field input {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 1px;
}
.cloud-eye {
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-size: 12px;
}
.cloud-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cloud-actions .btn { flex: 1; min-width: 96px; min-height: 44px; }
.cloud-result { margin: 8px 0 0; font-size: 13px; }
.cloud-result.is-ok { color: var(--accent); }
.cloud-result.is-bad { color: var(--danger, #c0392b); }
