/* 文综通识 · 纸片小世界
 *
 * 视觉基准来自 UI 接入包 `paper-world-ui`（用户 2026-10-07 选定）：
 * 柔和蓝绿底色、米白纸张、纸片层次、小狐狸陪伴、暖珊瑚色主操作。
 * 这里把样板的类名映射到产品既有的类名上（.panel/.row/.hint/.turn/.composer…），
 * 这样业务逻辑不用跟着改。准确颜色以本文件为准。
 *
 * 样板里刻意没有带进来的：身份切换器、固定回应、模拟复核——那些只是演示入口。
 */

:root {
  --hp-ink: #203d43;
  --hp-muted: #607073;
  --hp-blue: #dce9eb;
  --hp-paper: #faf7ef;
  --hp-white: #fffdf8;
  --hp-green: #e3e8db;
  --hp-rose: #f2dfd5;
  --hp-coral: #aa5945;
  --hp-line: #dddcd0;
  --hp-shade: rgba(45, 65, 64, .11);
  --line: #dddcd0;
  --muted: #607073;
}

* { box-sizing: border-box; }
html { background: #eaf0ee; color-scheme: light; }
body { margin: 0; color: var(--hp-ink); font: 16px/1.65 'PingFang SC', 'Microsoft YaHei', sans-serif; text-wrap: pretty; }
[hidden] { display: none !important; }
button, textarea, input, select { font: inherit; }
h1, h2, h3, .side-brand strong { font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif; }
h1 { font-size: clamp(25px, 3.4vw, 36px); font-weight: 700; line-height: 1.5; letter-spacing: .015em; margin: 0; }
h2 { font-size: 25px; line-height: 1.5; margin: 0; }
h3 { font-size: 18px; font-weight: 600; margin: 0; }
h4 { font-size: 14px; color: var(--hp-muted); margin: 12px 0 4px; }
p { margin: 0 0 6px; }
a { color: #405f50; }

button {
  color: inherit; border: 0; background: none; min-height: 44px;
  transition: transform .16s ease, background .16s ease; cursor: pointer;
}
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: .48; cursor: not-allowed; }
button:hover:not(:disabled) { filter: brightness(.97); }
input[type=checkbox] { width: 17px; height: 17px; margin-top: 3px; accent-color: #618374; flex-shrink: 0; }

/* ---------- 外壳：顶条 + 侧栏 + 纸张主区 ---------- */

.app { max-width: 1120px; margin: 0 auto; padding: 20px 12px 26px; position: relative; }

.topbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 9px 14px; background: #f3f4ef; border-radius: 12px 12px 0 0;
  font-size: 13px; color: #566765;
}
.topbar .brand { font-family: 'Noto Serif SC', serif; font-weight: 600; letter-spacing: .04em; }
.topbar .badge { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 3px; background: #e3e8db; color: #46604f; font-size: 12px; font-weight: 400; }
.topbar .badge.real { background: #eed9d2; color: #8a3f2d; }
.topbar .who { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topbar .who button { min-height: 32px; padding: 4px 12px; border-radius: 6px; background: #e7ebdf; color: #3b584a; font-size: 13px; }
.topbar .who .site-back { color: #3b584a; font-size: 13px; text-decoration: underline; text-underline-offset: 2px; opacity: .85; }
.topbar .who .site-back:hover { opacity: 1; }

.shell {
  display: grid; grid-template-columns: 208px minmax(0, 1fr);
  background: var(--hp-blue); min-height: 720px;
  border-radius: 0 0 14px 14px;
  background-image: repeating-linear-gradient(33deg, transparent 0, transparent 3px, rgba(255, 255, 255, .12) 3px, rgba(255, 255, 255, .12) 4px);
}
/* 侧栏吸顶：题目页很长，狐狸和导航要一直看得见（样板里它们就在侧边）。
   注意 .shell 不能 overflow:hidden，否则 sticky 失效。 */
.side {
  position: sticky; top: 12px; align-self: start;
  display: flex; flex-direction: column; min-width: 0; padding: 26px 19px 16px; isolation: isolate;
  max-height: calc(100vh - 24px);
}
.side-brand { display: flex; align-items: center; flex-direction: column; gap: 18px; }
.side-label { display: inline-block; background: var(--hp-paper); padding: 5px 14px; color: #77664d; font-family: 'Noto Serif SC', serif; letter-spacing: .1em; box-shadow: 1px 3px 4px var(--hp-shade); transform: rotate(-4deg); font-size: 13px; }
.side-brand strong { font-size: 30px; letter-spacing: .08em; white-space: nowrap; }
.side-rule { width: 72px; height: 2px; background: #adbbb2; transform: rotate(-3deg); }
.side-nav { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; margin-top: 28px; }
.side-nav button {
  display: flex; align-items: center; gap: 11px; text-align: left; padding: 10px 17px;
  border-radius: 2px 7px 4px 2px; font-weight: 500; white-space: nowrap;
}
.side-nav .on { background: var(--hp-paper); box-shadow: 0 3px 4px var(--hp-shade); transform: rotate(-1.5deg); }
.fox { width: calc(100% + 42px); height: 350px; object-fit: contain; object-position: center bottom; margin: 12px -21px -6px; display: block; pointer-events: none; flex: 1; min-height: 260px; }
.side-note { text-align: center; font-family: 'Noto Serif SC', serif; color: #4f6b67; font-size: 13px; margin-top: 8px; }

.main {
  position: relative; margin: 26px 25px 26px 8px; background: var(--hp-paper);
  padding: 30px 32px 28px; box-shadow: 0 5px 12px var(--hp-shade);
  border-radius: 3px 7px 3px 6px; min-width: 0; border: 1px solid #f0ece0;
}
.main::before { content: ''; position: absolute; width: 76px; height: 23px; right: 23px; top: -9px; background: #d6ad968c; transform: rotate(8deg); pointer-events: none; }

.foot { max-width: 1120px; margin: 10px auto 0; padding: 0 14px; font-size: 12px; color: #5b6b66; line-height: 1.7; }
.boot { padding: 40px; text-align: center; color: var(--hp-muted); }

/* ---------- 通用纸片组件 ---------- */

.panel { background: none; border: 0; padding: 0; margin: 0 0 22px; }
.panel > h2 { margin-bottom: 6px; }
.panel > h3 { margin: 14px 0 6px; }
.kicker, .task-meta, .card-meta { font-size: 13px; color: var(--hp-muted); }
.hint { font-size: 13px; color: var(--hp-muted); line-height: 1.8; }
.muted { color: var(--hp-muted); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.card-meta { margin-top: 6px; }
.line { height: 1px; background: var(--hp-line); margin: 25px 0; }

.primary, .secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 6px; padding: 10px 19px; min-height: 45px;
  box-shadow: 0 2px 3px var(--hp-shade); font-size: 14px;
}
.primary { background: var(--hp-coral); color: #fffaf3; }
.secondary, button.ghost { background: #e7ebdf; color: #3b584a; }
.secondary.blue { background: #e1ebed; color: #3f6068; }
button.danger { background: #eed9d2; color: #8a3f2d; }
.link { padding: 5px; color: #5d6f67; text-decoration: underline; text-underline-offset: 4px; font-size: 13px; }
.danger-text { color: #995640; text-decoration: underline; text-underline-offset: 4px; }

.error-banner, .notice-banner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 12px; padding: 10px 14px; border-radius: 5px; font-size: 13px; line-height: 1.7;
}
.error-banner { background: #f4e2da; color: #8a3f2d; }
.notice-banner { background: #e9efe6; color: #486153; }
.error-banner button, .notice-banner button { min-height: 32px; padding: 3px 10px; border-radius: 5px; background: #ffffffb0; font-size: 13px; }

/* ---------- 孩子：选题 ---------- */

.cards { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 22px 0; }
.cards article {
  position: relative; display: block; width: 100%; padding: 26px 28px; text-align: left;
  background: #eef0e5; box-shadow: 1px 4px 6px var(--hp-shade); border-radius: 3px; isolation: isolate;
}
.cards article::before {
  content: ''; position: absolute; width: 60px; height: 20px; background: #bacbd58c;
  top: -9px; left: 30px; transform: rotate(-6deg);
}
.cards article h2, .cards article h3 { margin: 8px 0; font-size: 24px; }
.cards article .card-meta { margin-top: 8px; }
.cards article button { margin-top: 16px; color: #81503c; font-size: 16px; font-weight: 600; min-height: 38px; padding: 0; }
.cards .tag, .tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 3px; background: #e6e0cf; color: #6f6350; font-size: 12px; }
.splash h1 { margin: 6px 0 4px; }
.sub { color: var(--hp-muted); font-size: 14px; margin-top: 8px; line-height: 1.8; }

/* ---------- 孩子：题目与对话 ---------- */

.learning-panel .task-head h2 { margin-bottom: 6px; }
.task-meta { display: flex; flex-direction: column; gap: 3px; margin: 6px 0 4px; }
.sim-badge { display: inline-block; padding: 2px 9px; border-radius: 3px; background: #e6e0cf; color: #6f6350; font-size: 12px; }
.sim-badge.real { background: #eed9d2; color: #8a3f2d; }

.next-steps { background: #eef0e6; padding: 14px 17px; border-radius: 3px; margin: 18px 0; border-bottom: 2px solid #d7decd; }
.next-steps h3 { font-size: 15px; margin-bottom: 6px; }
.next-steps ol { margin: 0; padding-left: 20px; font-size: 15px; }
.next-steps li { margin: 5px 0; }

.materials-core { margin: 16px 0; }
.materials-core h3 { margin-bottom: 6px; }
.materials, .help-material { margin: 8px 0; }
.materials > summary, .help-material > summary { cursor: pointer; padding: 6px 0; }
.material-body {
  background: var(--hp-white); border: 1px solid #e0ddd0; border-radius: 5px; padding: 14px 17px;
  font: inherit; font-size: 15px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere;
  box-shadow: 0 2px 3px var(--hp-shade); margin: 6px 0;
}
.tag.seen { background: #e3e8db; color: #46604f; }

.dialog { margin: 18px 0 6px; }
.turn { margin: 16px 0; padding: 14px 18px; border-radius: 4px; background: #e9efea; overflow-wrap: anywhere; font-size: 15px; line-height: 1.85; }
.turn.child { margin-left: 38px; background: #edf0ef; }
.turn.coach { background: #f1e6dc; margin-right: 20px; }
.turn.archived { border-left: 3px solid #c9a24a; }
.turn-text { white-space: pre-wrap; }

.composer { margin-top: 12px; }
.composer textarea, .save-row input, .candidate-panel input, .candidate-panel textarea,
.review input, input[type=text], input[type=password] {
  display: block; width: 100%; background: var(--hp-white); border: 1px solid #e0ddd0; border-radius: 5px;
  padding: 13px 16px; font-size: 16px; line-height: 1.8; color: var(--hp-ink);
  box-shadow: 0 2px 3px var(--hp-shade);
}
.composer textarea { resize: vertical; min-height: 96px; }
textarea::placeholder, input::placeholder { color: #8a9189; }
.save-row { margin-top: 12px; }
.save-row input { max-width: 420px; }
.request-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: #53705c; background: #e8ecdf; padding: 8px 12px; border-radius: 4px; margin-top: 10px; }
.disabled-why { margin-top: 8px; }
.notice-inline { padding: 10px 13px; background: #f2ece2; border-radius: 4px; font-size: 13px; line-height: 1.8; color: #6b4a12; margin-bottom: 10px; }

.inline-gate { background: #f0ede3; border-radius: 4px; padding: 11px 15px; margin: 12px 0; font-size: 13px; line-height: 1.85; }
.inline-gate p { margin-bottom: 8px; }

.permissions { list-style: none; padding: 0; margin: 6px 0; }
.permissions li { padding: 10px 0; border-bottom: 1px solid var(--hp-line); }
.permissions label { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.candidate-list { list-style: none; padding: 0; margin: 6px 0; }
.candidate-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--hp-line); }
.candidate-list button { min-height: 34px; padding: 4px 12px; border-radius: 5px; font-size: 13px; }

.internal-details { margin-top: 14px; font-size: 13px; color: var(--hp-muted); }
.internal-details > summary { cursor: pointer; padding: 4px 0; }
.internal-details ul { margin: 6px 0; padding-left: 18px; }
.receipts { list-style: none; padding: 0; }

.snapshot { background: none; }
.snapshot h3 { margin-bottom: 4px; }
.snapshot p { font-size: 15px; line-height: 1.9; }
.system-note { background: #f0ede3; border-radius: 4px; padding: 12px 16px; margin: 14px 0; font-size: 14px; line-height: 1.85; }
.system-note details { font-size: 13px; margin-top: 6px; }
.system-note details summary { cursor: pointer; color: var(--hp-muted); }
.system-note ul { margin: 6px 0; padding-left: 18px; color: var(--hp-muted); }

.replay-banner { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; padding: 9px 14px; background: #f3f4ef; border-radius: 8px; margin-bottom: 8px; font-size: 13px; color: #6b4a12; }
.replay-panel { border: 1px dashed #c9a24a; background: #fffdf7; border-radius: 8px; padding: 12px 15px; margin: 14px 0; }
.replay-tag { display: block; font-size: 12px; color: var(--hp-muted); margin-bottom: 4px; }

.modal { position: fixed; inset: 0; z-index: 10; background: rgba(36, 56, 52, .22); display: flex; align-items: flex-start; justify-content: center; padding: 70px 25px 30px; backdrop-filter: blur(2px); }
.modal-body { width: min(620px, 100%); background: var(--hp-paper); padding: 27px; box-shadow: 0 18px 50px rgba(24, 42, 40, .2); border-radius: 6px; max-height: 86vh; overflow: auto; }

/* ---------- 复核 ---------- */

.review-compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; margin-top: 20px; }
.review-compare > .review-col + .review-col { border-left: 1px dashed var(--hp-line); padding-left: 20px; }
.review-col h3 { font-size: 13px; letter-spacing: .05em; color: #6b7b68; margin-bottom: 8px; }
.review-facts { list-style: none; padding: 0; margin: 0; }
.review-facts li { margin-bottom: 10px; }
.review-facts li > span { display: block; }
.review-evidence { list-style: none; padding: 0; margin: 0; }
.review-evidence li { margin: 10px 0; padding: 12px 15px; background: #edf0e8; border-radius: 2px; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-checks { border-top: 1px solid var(--hp-line); padding-top: 14px; margin-top: 20px; }
.review-checks h3 { font-size: 15px; margin-bottom: 6px; }
.review-check { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: #4d5f5c; padding: 9px 0; }

/* ---------- 家长 ---------- */

.family .panel { margin-bottom: 20px; }
.two-col { display: grid; grid-template-columns: 1fr; gap: 18px; }

/* ---------- 窄屏 ---------- */

@media (max-width: 900px) {
  .shell { grid-template-columns: 155px minmax(0, 1fr); }
  .side { padding: 23px 12px 14px; }
  .side-brand strong { font-size: 24px; }
  .side-nav button { padding: 8px 9px; font-size: 14px; }
  .main { padding: 25px 23px; margin: 23px 16px 23px 3px; }
  .fox { min-height: 230px; }
}

@media (max-width: 760px) {
  .app { padding: 12px 8px 18px; }
  .shell { display: block; min-height: 0; }
  .side { display: block; padding: 17px 17px 4px; }
  .side-brand { align-items: flex-start; gap: 0; }
  .side-brand strong { font-size: 25px; }
  .side-label, .side-rule, .side-note { display: none; }
  .fox { position: absolute; right: 3px; top: 0; width: 110px; height: 105px; min-height: 0; margin: 0; object-fit: contain; object-position: right 55%; z-index: -1; }
  .side-nav { flex-direction: row; gap: 4px; margin: 15px 0 5px; }
  .side-nav button { padding: 6px 10px; font-size: 13px; min-height: 40px; }
  .main { margin: 17px 12px 14px; padding: 27px 18px 24px; min-height: 420px; }
  .main::before { width: 58px; height: 18px; }
  .review-compare { grid-template-columns: 1fr; }
  .review-compare > .review-col + .review-col { border-left: 0; padding-left: 0; border-top: 1px dashed var(--hp-line); padding-top: 18px; }
  .cards article { padding: 22px 18px; }
  .cards article h2, .cards article h3 { font-size: 21px; }
  .save-row input { max-width: none; }
  .modal { padding: 40px 10px 16px; }
  .modal-body { padding: 22px 17px; }
}

@media (max-width: 540px) {
  .topbar { border-radius: 8px 8px 0 0; }
  .topbar .who { margin-left: 0; }
  .row > .primary:last-child { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) { button { transition: none; } }

/* UX 2026-10-08: material + conversation, contextual help, optional reflection. */
.app { max-width: 1380px; }
.shell { grid-template-columns: 174px minmax(0, 1fr); min-height: 640px; }
.main { padding: 26px; }
.side-brand strong { font-size: 26px; }
.fox { height: 300px; min-height: 200px; }
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cards article { padding: 22px 18px; display: flex; flex-direction: column; }
.cards article:nth-child(2) { background: #e2ebed; transform: rotate(.6deg); }
.cards article:nth-child(3) { background: #f1e5dc; transform: rotate(-.5deg); }
.cards article h3 { font-size: 22px; }
.cards article button { margin-top: auto; padding-top: 18px; min-height: 44px; align-self: flex-start; }
.cards .source-details { margin-bottom: 18px; }
.task-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.learning-panel > h2 { font-size: clamp(22px, 2.3vw, 30px); margin-bottom: 18px; }
.study-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.material-pane, .conversation-pane { min-width: 0; }
.material-pane { background: #e7eddf; padding: 18px; border-radius: 3px 9px 4px 3px; box-shadow: 2px 4px 0 #d3dbd0; }
.core-material h3 { font-size: 17px; margin: 7px 0; }
.material-body { font-size: 15px; line-height: 1.75; padding: 12px 14px; }
.core-material .material-body { background: #fffdf7; border: 0; box-shadow: none; }
.source-details { margin-top: 12px; font-size: 13px; color: #50635f; overflow-wrap: anywhere; }
.source-details summary, .optional-tools summary { cursor: pointer; min-height: 36px; padding: 6px 0; }
.source-details p { margin: 5px 0; }
.dialog { margin-top: 8px; max-height: 44vh; overflow-y: auto; overscroll-behavior: contain; }
.turn { margin: 10px 0; padding: 11px 14px; }
.turn.child { margin-left: 22px; }
.turn.coach { margin-right: 14px; }
.turn-speaker { display: block; color: #596a62; font-size: 12px; margin-bottom: 4px; }
.turn.status { background: transparent; padding: 6px 0; }
.composer textarea { min-height: 96px; }
.send-row { justify-content: flex-end; margin-top: 8px; }
.help-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 8px; }
.help-actions button { padding: 7px 12px; font-size: 13px; }
.inline-help { padding: 12px; background: #e2ecec; border-radius: 5px; margin-top: 8px; }
.inline-help .material-body { margin: 0; }
.inline-help .task-heading { margin-bottom: 3px; }
.optional-tools { margin-top: 10px; font-size: 13px; border-top: 1px dashed #ced5c8; padding-top: 4px; }
.optional-tools > .link { display: block; text-align: left; }
.inline-gate { margin: 10px 0 0; padding: 12px; }
.inline-gate .hint { margin-top: 8px; margin-bottom: 0; }
.finish-panel { background: #f1e7dc; border-radius: 5px; padding: 16px; margin-top: 14px; }
.save-row input { max-width: none; margin-bottom: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid #346975; outline-offset: 3px; }
.home-grid { max-width: 600px; }
.home-grid label { display: block; margin: 12px 0; }
.home-grid select { display: block; width: 100%; min-height: 44px; padding: 8px; background: #fffdf8; border: 1px solid #dddcd0; border-radius: 5px; }
.ux-version { white-space: nowrap; font-size: 11px; margin-left: 8px; }
@media (max-width: 1100px) {
  .shell { grid-template-columns: 150px minmax(0, 1fr); }
  .main { margin: 22px 16px 22px 0; padding: 22px; }
  .study-workspace { gap: 16px; }
  .material-pane { padding: 12px; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .app { padding: 6px; }
  .shell { display: block; }
  .side { position: static; padding: 10px 14px 0; }
  .side-brand { display: none; }
  .side-nav { margin: 0; }
  .side-nav a, .side-nav button { padding: 8px 10px !important; font-size: 13px; }
  .fox { display: none; }
  .main { margin: 12px 7px; padding: 18px 14px; min-height: 0; }
  .study-workspace { grid-template-columns: 1fr; gap: 18px; }
  .material-pane { max-height: 34vh; overflow-y: auto; overscroll-behavior: contain; }
  .core-material h3 { font-size: 15px; }
  .learning-panel > h2 { font-size: 22px; margin-bottom: 12px; }
  .task-heading { margin-bottom: 8px; }
  .task-heading button { padding: 7px 10px; }
  .topbar { padding: 6px 9px; }
  .topbar .who { margin-left: auto; }
  .dialog { max-height: 38vh; }
  .send-row > .primary:last-child { flex-basis: auto; }
  .help-actions button { flex: 1; padding-inline: 7px; }
  .cards { margin-top: 18px; }
  .cards article h3 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.data-material { white-space: normal; }
.data-material table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.data-material caption { text-align: left; font-size: 13px; color: #52665f; margin-bottom: 7px; }
.data-material th, .data-material td { padding: 7px 8px; border-bottom: 1px solid #dce3d5; text-align: left; }
.data-material thead { font-size: 13px; }
.data-material td { font-variant-numeric: tabular-nums; text-align: right; }
.data-material tbody th { font-weight: 400; }
.material-question { margin: 12px 0 0; }
@media(max-width:760px){ .material-pane { max-height: none; overflow: visible; } .material-pane .kicker { display: none; } .material-body { margin-top: 0; } .source-details { margin-top: 4px; } .data-material .source-details { margin-top: 8px; } }

/* Paper world, second pass: a quiet desk, three distinct sheets, one conversation. */
html { background: #dfe8e3; }
body { font-size: 16px; }
.app { max-width: 1340px; padding: 20px 24px 28px; }
.topbar { padding: 8px 2px 12px; border-radius: 0; background: transparent; }
.topbar .brand { font-size: 19px; }
.topbar .badge { font-family: 'Microsoft YaHei', sans-serif; font-size: 11px; }
.topbar .badge.real { background: #d3e0d3; color: #32554c; }
.ux-version { font-family: 'Microsoft YaHei', sans-serif; font-size: 10px; font-weight: 400; color: #657a70; }
.shell { display: block; min-height: 0; background: none; }
.side { position: static; max-height: none; flex-direction: row; align-items: center; justify-content: space-between; padding: 10px 6px 18px; }
.side-brand { display: block; }
.side-label { padding: 4px 12px; font-size: 12px; transform: rotate(-3deg); }
.side-nav { flex-direction: row; gap: 8px; margin: 0; }
.side-nav button, .side-nav a { font-size: 14px; }
.side-nav .on { background: #fffaf1; transform: rotate(-1deg); }
.main { margin: 0; padding: 32px; background: #fbf8ef; border-radius: 3px 5px 8px 3px; border: 1px solid #f8f3e5; box-shadow: 1px 8px 0 -3px #c4d1c9, 0 16px 35px #48635212; min-height: 580px; }
.main::before { left: 32px; right: auto; top: -9px; width: 63px; height: 19px; background: #b8cbbbba; transform: rotate(-5deg); }
.foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 18px; padding: 0 2px; font-size: 12px; }
.foot details { text-align: right; max-width: 640px; }
.foot summary { cursor: pointer; }
.foot p { margin-top: 8px; }
.primary { background: #365e57; border-radius: 3px 5px 2px 4px; box-shadow: 0 3px 0 #244a42; }
.secondary, button.ghost { background: #e5e9dc; border-radius: 2px 5px 3px 2px; box-shadow: 1px 3px 0 #d2d9cc; }
.shelf-heading { padding: 10px 0 8px; }
.shelf-heading h1 { font-size: clamp(25px, 3vw, 34px); line-height: 1.4; }
.shelf-heading p { color: #65756b; font-size: 15px; margin-top: 10px; }
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin: 27px 0 24px; align-items: start; }
.cards article { display: flex; flex-direction: column; padding: 0; background: #fffcf4; box-shadow: 2px 5px 0 #dcdccd, 0 12px 18px #314f4410; border-radius: 2px 3px 6px 2px; transform: rotate(-.8deg); transition: transform .2s ease, box-shadow .2s ease; }
.cards article:nth-child(2) { transform: rotate(.7deg); background: #fffcf4; }
.cards article:nth-child(3) { transform: rotate(-.6deg); background: #fffcf4; }
.cards article::before { z-index: 1; left: calc(50% - 27px); width: 54px; height: 20px; background: #d8c6a48f; }
.cards article:focus-within { transform: translateY(-3px); }
@media (hover: hover) { .cards article:hover { transform: translateY(-4px) rotate(0); box-shadow: 2px 6px 0 #dcdccd, 0 15px 25px #314f441c; } }
.paper-scene { width: 100%; height: auto; display: block; border-radius: 2px 3px 0 0; }
.card-content { padding: 19px 22px 12px; display: flex; flex-direction: column; min-height: 220px; }
.cards article .card-meta { margin: 0; font-size: 12px; color: #617168; }
.cards article h3 { margin: 9px 0 18px; font-size: 23px; line-height: 1.5; min-height: 3em; }
.cards article .card-enter { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 8px 0; margin-top: auto; border-top: 1px solid #e0e0d2; color: #315b52; font-size: 15px; font-family: 'Microsoft YaHei', sans-serif; }
.card-enter span { display: grid; place-items: center; width: 29px; height: 29px; background: #e4eadb; border-radius: 50%; font-size: 19px; font-weight: 400; }
.cards .source-details { margin: 0; font-size: 11px; }
.source-details summary { min-height: 36px; }
.shelf-options { display: flex; align-items: baseline; gap: 25px; color: #63776e; font-size: 12px; }
.shelf-options details { max-width: 550px; }
.shelf-options summary { cursor: pointer; padding: 8px 0; }
.task-heading { margin-bottom: 10px; }
.task-heading .link { padding-left: 0; font-size: 13px; }
.task-heading .finish-trigger { padding: 7px 17px; font-size: 13px; }
.learning-panel > h2 { max-width: 900px; margin: 8px 0 26px; font-size: clamp(23px, 2.4vw, 30px); line-height: 1.45; }
.study-workspace { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 36px; }
.material-pane { position: relative; padding: 19px 21px 15px; background: #e9eee0; border: 1px solid #dee5d6; border-radius: 3px 2px 3px 6px; box-shadow: 3px 5px 0 #d0dacb; }
.material-header { display: flex; justify-content: space-between; color: #52685b; font-size: 12px; padding-bottom: 9px; margin-bottom: 7px; border-bottom: 1px dashed #bfcdba; }
.paper-corner { position: absolute; right: -1px; top: -1px; width: 26px; height: 26px; background: linear-gradient(45deg, #ccd8c5 0 48%, #fbf8ef 50%); box-shadow: -2px 2px 2px #53695410; }
.material-pane.paper-history { background: #eee4d5; border-color: #e2d7c4; box-shadow: 3px 5px 0 #dfd1bc; }
.material-pane.paper-canal { background: #e2ebec; border-color: #d1dfe0; box-shadow: 3px 5px 0 #c7d8d9; }
.core-material .material-body { background: #fffcf5; padding: 16px; border-radius: 2px 5px 2px 3px; box-shadow: 1px 2px 0 #cad5c130; font-size: 15px; line-height: 1.85; }
.core-material h3 { font-size: 17px; }
.data-material caption { margin-bottom: 12px; font-size: 13px; }
.data-material td { font-size: 21px; font-family: Georgia, 'Songti SC', serif; color: #345f51; }
.data-material th, .data-material td { padding: 10px 8px; }
.material-question { font-size: 16px; line-height: 1.9; margin-top: 18px; }
.material-toggle { display: none; }
.conversation-pane { position: relative; padding: 0 2px; }
.conversation-heading { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e1dfd1; padding: 0 0 12px; }
.conversation-heading h3 { font-size: 21px; }
.conversation-mark { color: #b88260; font-size: 27px; line-height: 1; }
.dialog { margin: 0; max-height: 380px; max-height: min(46vh, 440px); overflow: auto; padding: 8px 7px 0 2px; scrollbar-width: thin; scrollbar-color: #b8c8b9 transparent; }
.dialog.empty-dialog { min-height: 60px; max-height: none; padding: 15px 0 5px; }
.first-thought { color: #68796f; font-size: 14px; }
.turn { position: relative; margin: 12px 0 16px; padding: 13px 17px; font-size: 16px; line-height: 1.9; }
.turn.child { margin-left: 42px; background: #e6eeeb; border-radius: 4px 2px 4px 5px; box-shadow: 2px 3px 0 #d7e2dc; }
.turn.coach { margin-right: 28px; background: #f3e7d8; border-radius: 2px 5px 5px 2px; box-shadow: 2px 3px 0 #e4d8c8; }
.turn.coach::before { content: ''; position: absolute; width: 27px; height: 9px; right: 14px; top: -4px; background: #d5bca680; transform: rotate(7deg); }
.turn-speaker { color: #596d60; font-size: 11px; margin-bottom: 5px; }
.turn.status { box-shadow: none; margin: 8px 0; padding: 6px 0; font-size: 13px; }
.new-reply { display: block; margin: 4px auto; font-size: 13px; padding: 5px 13px; background: #dfe8db; border-radius: 20px; }
.composer { position: relative; margin-top: 14px; }
.composer textarea { min-height: 122px; padding: 16px 18px 50px; background: #fffdf7; border: 1px solid #cdd7c8; border-radius: 3px 6px 2px 4px; box-shadow: 2px 3px 0 #e2e5d8; resize: vertical; font-size: 16px; }
.composer textarea:focus { border-color: #75948b; outline: 2px solid #d5e0d3; outline-offset: 1px; }
.send-row { position: absolute; right: 10px; top: 77px; margin: 0; }
.send-row .primary { min-height: 34px; padding: 4px 13px; font-size: 13px; gap: 9px; }
.send-row .primary span { font-size: 18px; }
.inline-gate { background: #efeee2; border: 1px solid #dfdfcd; border-radius: 3px; }
.conversation-tools { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 13px; color: #526c60; }
.conversation-tools > details { max-width: 100%; }
.conversation-tools summary { cursor: pointer; min-height: 40px; padding: 8px 2px; }
.conversation-tools details[open] { flex-basis: 100%; }
.conversation-tools p { font-size: 13px; line-height: 1.8; margin: 5px 0; }
.help-actions { margin: 2px 0 8px; }
.help-actions .secondary { min-height: 40px; padding: 5px 12px; }
.more-materials { margin: 6px 0; }
.more-materials > button { display: block; text-align: left; }
.inline-help { position: relative; margin-top: 15px; background: #e6edeb; border: 1px solid #cbdad3; box-shadow: 2px 4px 0 #d9e3dc; border-radius: 2px; padding: 15px; }
.inline-help .material-body { font-size: 14px; }
.finish-panel { position: relative; background: #f3e9d6; padding: 26px 22px 20px; border-radius: 2px 3px 6px 2px; box-shadow: 2px 4px 0 #e2d6bf; margin-top: 17px; }
.finish-panel h3 { font-size: 23px; margin-bottom: 10px; }
.finish-panel > p { font-size: 14px; }
.finish-fold { position: absolute; top: 0; right: 0; width: 29px; height: 29px; background: linear-gradient(45deg, #d7c6a6 48%, #fbf8ef 50%); }
.question-note { margin-top: 20px; }
.candidate-panel { padding: 25px; background: #fffcf4; border: 1px solid #e0dfce; box-shadow: 3px 5px 0 #e1e2d4; margin-top: 32px; }
.home-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; max-width: 1020px; margin: 42px auto; align-items: center; }
.home-grid .splash { background: #e5ecdf; padding: 35px 28px; box-shadow: 4px 6px 0 #d2ddcc; transform: rotate(-1deg); border-radius: 2px 5px 3px 2px; }
.home-grid .splash h1 { font-size: 35px; }
.home-grid .splash::before { content: ''; display: block; width: 120px; height: 132px; background: url('/fox-world.webp') center 50% / cover no-repeat; margin: -16px 0 15px; }
@media (max-width: 1050px) {
  .app { padding: 14px 18px 24px; }
  .main { margin: 0; padding: 26px; }
  .cards { gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-content { padding: 16px 17px 10px; }
  .cards article h3 { font-size: 21px; }
  .study-workspace { gap: 24px; }
  .material-pane { padding: 15px; }
}
@media (max-width: 760px) {
  .app { padding: 8px 10px 20px; }
  .topbar { padding: 6px 2px; gap: 7px; }
  .topbar .brand { font-size: 17px; }
  .topbar .who { font-size: 11px; gap: 6px; }
  .topbar .who button { font-size: 12px; padding: 4px 8px; }
  .ux-version { display: none; }
  .side { padding: 8px 0 15px; display: flex; }
  .side-brand { display: block; }
  .side-label { display: inline-block; font-size: 10px; padding: 3px 8px; letter-spacing: .04em; }
  .side-nav { gap: 2px; }
  .side-nav a, .side-nav button { padding: 7px 9px !important; font-size: 12px; min-height: 40px; }
  .main { margin: 0; padding: 24px 17px 22px; min-height: 0; }
  .main::before { left: 18px; height: 16px; width: 49px; }
  .shelf-heading { padding: 5px 0 0; }
  .shelf-heading h1 { font-size: 24px; }
  .shelf-heading p { font-size: 13px; margin-top: 8px; }
  .cards { grid-template-columns: 1fr; gap: 22px; margin-top: 26px; }
  .cards article { display: grid; grid-template-columns: 104px minmax(0, 1fr); }
  .cards article::before { width: 42px; left: 16px; top: -7px; height: 15px; }
  .cards .paper-scene { width: 104px; height: 100%; min-height: 174px; object-fit: cover; }
  .card-content { min-height: 0; padding: 14px 13px 6px; }
  .cards article h3 { font-size: 19px; min-height: 0; margin: 5px 0 10px; }
  .cards article .card-meta { font-size: 10px; }
  .cards article .card-enter { font-size: 13px; min-height: 38px; padding: 4px 0; }
  .card-enter span { width: 23px; height: 23px; font-size: 16px; }
  .cards .source-details { font-size: 10px; }
  .source-details summary { min-height: 34px; }
  .cards .tag { padding: 0 4px; font-size: 10px; margin-left: 3px; }
  .shelf-options { gap: 20px; }
  .study-workspace { grid-template-columns: 1fr; gap: 24px; }
  .learning-panel > h2 { font-size: 24px; margin-bottom: 15px; }
  .task-heading .finish-trigger { min-height: 40px; padding: 5px 12px; }
  .material-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; border-top: 1px solid #dde0d1; font-size: 13px; color: #4b6659; padding: 7px 0; min-height: 40px; margin-bottom: 9px; }
  .learning-panel:not(.material-open) .material-pane { display: none; }
  .material-pane { padding: 13px; max-height: none; overflow: visible; }
  .material-body, .core-material .material-body { padding: 12px; font-size: 14px; }
  .material-question { font-size: 15px; }
  .data-material th, .data-material td { padding: 8px 5px; }
  .data-material td { font-size: 20px; }
  .conversation-pane { padding: 0; }
  .conversation-heading { padding-bottom: 8px; }
  .conversation-heading h3 { font-size: 20px; }
  .dialog { max-height: 48vh; max-height: 48dvh; }
  .turn { font-size: 15px; padding: 11px 13px; }
  .turn.child { margin-left: 27px; }
  .turn.coach { margin-right: 12px; }
  .composer textarea { min-height: 118px; }
  .send-row { top: 73px; }
  .finish-panel { padding: 23px 17px 18px; }
  .finish-panel h3 { font-size: 21px; }
  .finish-panel .row > .primary:last-child { flex-basis: auto; }
  .home-grid { display: block; margin: 8px auto; }
  .home-grid .splash { padding: 24px 20px; margin-bottom: 30px; transform: none; }
  .home-grid .splash h1 { font-size: 27px; }
  .home-grid .splash::before { float: right; width: 65px; height: 80px; margin: -14px -8px 0 5px; }
  .foot { flex-wrap: wrap; gap: 5px; padding: 0 3px; font-size: 11px; }
  .foot details { text-align: left; }
  .candidate-panel { padding: 19px 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .cards article, .cards article:hover, .cards article:focus-within { transition: none; }
}

.conversation-tools .question-note { border: 0; margin: 0; padding: 0; }

/* Three starting points, in the established cut-paper world. */
.entry-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; margin: 34px 0 24px; }
.entry-card { display: block; padding: 0; overflow: hidden; text-align: left; border: 1px solid #d0dbd0; border-radius: 3px 7px 3px 2px; background: #faf9ec; box-shadow: 3px 5px 0 #dce2d3; color: #344d41; }
.entry-card .paper-scene { width: 100%; height: auto; display: block; }
.entry-copy { display: block; position: relative; padding: 24px 23px 27px; }
.entry-copy strong { display: block; font-size: 27px; font-weight: 650; margin-bottom: 10px; }
.entry-copy > span { display: block; max-width: 15em; font-size: 14px; line-height: 1.7; padding-right: 10px; }
.entry-copy b { position: absolute; right: 17px; top: 28px; font-size: 21px; font-weight: normal; }
.entry-card:hover { background: #f3f5e8; transform: translateY(-2px); }
.entry-card:focus-visible { outline: 3px solid #477064; outline-offset: 4px; }
.entry-back { margin: 18px 0; }
.news-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.news-heading h2 { font-size: 23px; margin: 12px 0 7px; }
.news-heading p { font-size: 14px; color: #627166; }
.region-tabs, .category-tabs, .cue-buttons, .cue-footer { display: flex; gap: 9px; flex-wrap: wrap; }
.region-tabs { border-bottom: 1px solid #d2dbce; margin: 20px 0 13px; padding-bottom: 10px; }
.region-tabs button { color: #536959; background: transparent; border-radius: 3px; padding: 8px 17px; min-height: 44px; }
.region-tabs button[aria-pressed="true"] { background: #dce7d9; color: #294b3e; box-shadow: 2px 2px 0 #bfd1bc; }
.category-tabs button { font-size: 12px; padding: 5px 10px; min-height: 36px; background: transparent; color: #566658; }
.category-tabs button[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 5px; color: #244d3f; }
.news-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 32px; margin: 8px 0 25px; }
.news-item { padding: 24px 0; border-bottom: 1px dashed #c4d0bf; }
.news-item h3 { font-size: 20px; line-height: 1.6; margin: 9px 0; }
.news-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #637367; }
.news-excerpt { font-size: 14px; line-height: 1.9; color: #57665b; }
.news-invitation { font-size: 15px; color: #345948; margin: 15px 0; }
.news-actions { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.news-actions a { font-size: 12px; color: #52715f; text-underline-offset: 3px; }
.memory-starter { margin: 4px 0 18px; padding: 15px 17px; background: #eff2e4; border-left: 3px solid #a9bea1; }
.memory-starter p { font-size: 14px; margin: 0 0 12px; line-height: 1.8; }
.cue-buttons button { font-size: 13px; min-height: 40px; }
.memory-starter .cue-note { padding-top: 13px; color: #49694f; }
.cue-footer { margin-top: 10px; gap: 4px 15px; }
.cue-footer button { font-size: 12px; min-height: 40px; }
.easy-intro p { margin: 0 0 15px; }
.easy-intro details { white-space: pre-wrap; }
@media (max-width: 760px) {
  .entry-cards { grid-template-columns: 1fr; gap: 20px; margin-top: 25px; }
  .entry-card { display: grid; grid-template-columns: 110px minmax(0,1fr); }
  .entry-card .paper-scene { height: 100%; min-height: 130px; object-fit: cover; }
  .entry-copy { padding: 19px 16px; }
  .entry-copy strong { font-size: 23px; }
  .entry-copy > span { font-size: 12px; }
  .entry-copy b { right: 10px; top: 21px; font-size: 18px; }
  .news-list { grid-template-columns: 1fr; }
  .news-heading { gap: 10px; }
  .news-heading h2 { font-size: 20px; }
  .news-heading > button { font-size: 12px; flex-shrink: 0; }
  .memory-starter { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { .entry-card:hover { transform: none; } }

.news-explain { margin: 3px 0 14px; }

.switch-dialog { border: 1px solid #b4c1b2; border-radius: 18px; padding: 24px; width: min(460px, calc(100vw - 32px)); color: #26372d; background: #fffef8; }
.switch-dialog::backdrop { background: rgb(30 42 33 / 35%); }
.switch-dialog .row { flex-wrap: wrap; gap: 12px; }

.editor-news-grid{display:grid;grid-template-columns:minmax(200px,1fr) minmax(0,2fr);gap:24px}.news-choice{display:block;width:100%;text-align:left;margin:8px 0;background:var(--paper);color:var(--ink);border:1px solid #d8d5c8}.news-choice small{display:block;margin-top:8px;font-weight:400}.news-editor textarea{display:block;width:100%;box-sizing:border-box;margin:8px 0 16px}.news-editor fieldset{margin-top:20px;border:1px solid #d8d5c8}.news-editor a{overflow-wrap:anywhere}@media(max-width:700px){.editor-news-grid{grid-template-columns:1fr}}

/* 试用记录（T.record）：家长按时间顺序看到的原始对话 */
.trial-record { list-style: none; padding: 0; margin: 12px 0; }
.trial-record li { padding: 10px 12px; margin: 8px 0; border-radius: 12px; border: 1px solid #d8d5c8; }
.trial-record li.from-child { background: #fffef8; }
.trial-record li.from-coach { background: #f3f6f1; }
.trial-record .who { font-size: 12px; font-weight: 700; color: #5c6b60; margin-bottom: 4px; }
.trial-record .said { font-size: 15px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }

/* 反馈表单：孩子自己的话，不要求长；列表只显示自己写过的。 */
.feedback-form { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 4px; }
.feedback-form label { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.feedback-form select, .feedback-form textarea { font: inherit; padding: 6px 8px; border: 1px solid #a8b8c1; border-radius: 6px; }
.feedback-form textarea { width: 100%; resize: vertical; }
.feedback-list { list-style: none; padding: 0; margin: 10px 0 0; }
.feedback-list li { padding: 10px 0; border-top: 1px solid #dce2df; }
.feedback-list p { margin: 4px 0; }
