:root{
  --paper:#f5f1e8; --white:#fffdf8; --ink:#1b3540; --muted:#56676b; --line:#d5d8cc;
  --accent:#a94427; --soft:#e8ede3; --radius:18px; --ok:#2f6b46;
}
*{box-sizing:border-box}
body{
  margin:0;background:var(--paper);color:var(--ink);
  font-family:"PingFang SC","Microsoft YaHei","Noto Sans SC",sans-serif;
  font-size:16px;line-height:1.75;
}
button{font:inherit;cursor:pointer;color:inherit;touch-action:manipulation}
button:disabled{cursor:not-allowed;opacity:.55}
button:focus-visible,summary:focus-visible,a:focus-visible,textarea:focus-visible{
  outline:3px solid #bb622f;outline-offset:3px;
}
textarea{
  width:100%;font:inherit;padding:12px;border:1px solid #cbd3c9;border-radius:10px;
  background:#fff;color:inherit;resize:vertical;
}
h1,h2{font-family:"Noto Serif SC","Songti SC",SimSun,serif;font-weight:700;line-height:1.35;letter-spacing:.02em}
h1{font-size:clamp(32px,4.4vw,48px);margin:0 0 20px}
h2{font-size:29px;margin:0 0 18px}
h3{font-size:16px;margin:22px 0 8px}
p{margin:0 0 16px}
ul.plain{margin:0 0 16px;padding-left:20px}
ul.plain li{margin-bottom:6px}

.site-header{
  max-width:1140px;margin:auto;padding:24px 32px 16px;display:flex;align-items:center;
  justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);
}
.brand{font-weight:750;letter-spacing:.12em}
.brand-sub{font-weight:400;letter-spacing:0;font-size:12px}
.badge{font-size:12px;color:var(--muted);background:#e6e9df;border-radius:30px;padding:5px 12px}
.wrap{max-width:1140px;margin:0 auto;padding:26px 32px 40px}
.site-footer{max-width:1140px;padding:0 32px 32px;margin:auto;font-size:12px;color:var(--muted)}

.toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:22px}
.toolbar .grow{flex:1}
/* 返回固定在最左边：位置不随页面漂，想回去时不用找。 */
.toolbar .back{font-weight:600;padding-left:4px}

/* 故事上下文条：聊天与练习时把当前这一段留在眼前。 */
.story-context{
  border:1px solid var(--line);border-left:3px solid #c9b8a2;border-radius:9px;
  background:#faf8f2;padding:10px 14px;margin-bottom:18px;
}
.story-context>summary{cursor:pointer;font-size:13px;font-weight:650;color:var(--muted);list-style:none}
.story-context>summary::-webkit-details-marker{display:none}
.story-context>summary::before{content:'▸ ';display:inline-block;transition:transform .15s}
.story-context[open]>summary::before{transform:rotate(90deg)}
.story-context .story-lines{margin-top:8px}
.story-context .dialogue{font-size:14px;margin:4px 0}

/* 角色条：谁演谁写死在屏幕上，练习过程中不撤走。 */
.roles{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.role-chip{
  font-size:13px;border-radius:30px;padding:5px 13px;border:1px solid var(--line);background:#f2efe6;
}
.role-chip.mine{background:#e8ecdd;border-color:#cfd6bd}
.role-chip.theirs{background:#f6e9e3;border-color:#e4cec4}
.role-chip b{font-weight:700}

/* 故事关键处的邀请：不占一排功能位，只在剧情推进到该说话的地方出现。 */
.invite-row{margin-top:18px;padding-top:14px;border-top:1px dashed var(--line)}
.invite-row .small{margin:0 0 8px}

/* 首页两个入口：一行大按钮，标签在上、说明在下。 */
.entry{display:block;width:100%;text-align:left;padding:14px 18px;margin-bottom:2px}
.entry .entry-label{display:block;font-size:18px;font-weight:750;letter-spacing:.01em}
.entry .entry-hint{display:block;margin-top:4px;font-size:13px;font-weight:400;opacity:.82}
.choices .entry{grid-column:1/-1}

/* 首页开头那两句孩子的话：像被引用的句子，不做成控件。 */
.sayings{margin:14px 0 18px}
.saying{font-size:16px;color:#5f5c52;margin:6px 0;font-style:normal}

/* 「说说我的事」的双方对话：我说的一句与 AI 回的一句排在同一条线上。 */
.talk{margin:16px 0 20px;display:flex;flex-direction:column;gap:10px}
.turn{border:1px solid var(--line);border-radius:12px;padding:10px 14px;max-width:88%}
.turn .who{display:block;font-size:12px;font-weight:700;letter-spacing:.06em;color:var(--muted);margin-bottom:3px}
.turn p{margin:0;white-space:normal}
.turn.mine{align-self:flex-end;background:#eef1e6;border-color:#d3dac2}
.turn.theirs{align-self:flex-start;background:#fbf6f2;border-color:#e6d8ce}
.turn.theirs .who{color:#9a6d55}

/* 故事收尾：把这一段留下的东西摆出来，不只是给一个"结束"。 */
.landing{margin:18px 0;padding:14px 16px;border:1px solid var(--line);border-left:3px solid #b9c49b;border-radius:10px;background:#f8faf3}
.landing h3{margin:0 0 6px;font-size:15px}
.landing p{margin:4px 0}
.landing ul{margin:8px 0 0;padding-left:18px}

/* 「怎样找人帮忙」开头那两条限制：先说清这里是什么。 */
.notice.limits{background:#fbf6f2;border-left:3px solid #d8a58c}
.notice.limits p{margin:4px 0}
.quiet{border:1px solid transparent;background:transparent;min-height:44px;padding:7px 12px;border-radius:9px;font-size:14px}
.quiet:hover{background:#e5e7dc}
.quiet.active{background:var(--ink);color:#fff}
.danger{color:#973e2a}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 255px;gap:32px}
.sheet{
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
  padding:34px 38px;box-shadow:0 5px 0 #e8e7dc;min-width:0;
}
.center{max-width:720px;margin:32px auto}
.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:12px;color:var(--muted);margin:0 0 16px}
/* 来源标注：做成一行**说明文字**，不做成带边框的方块——
   带框的小方块容易被当成可以填写的输入框。 */
.source{
  display:block;font-size:12px;color:#5c6b5f;background:transparent;border:0;
  padding:0;margin:0 0 14px;
}
.source::before{content:'来源 · ';color:#7d8a80}
.lead{font-size:19px;line-height:1.95}
.small{font-size:13px;color:var(--muted)}
.empty{padding:16px 0;color:var(--muted)}
.notice{background:#fdf3e7;border:1px solid #e6cdae;border-radius:10px;padding:12px 14px}
.ok{color:var(--ok);font-weight:600}
.muted{color:var(--muted)}
.rule{height:1px;background:var(--line);margin:24px 0}

.choices{display:grid;gap:10px;margin-top:24px}
.choice{
  min-height:52px;text-align:left;border:1px solid #cbd3c9;background:#f6f7ee;border-radius:11px;
  padding:13px 17px;transition:background .15s,border-color .15s;
}
.choice:hover:not(:disabled){background:#e8edde;border-color:#7e9582}
.choice.primary{background:var(--ink);color:#fff;border-color:var(--ink)}
.choice.primary:hover:not(:disabled){background:#2b505b}
.choice span{float:right;margin-left:10px}
.inline{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.inline button{min-height:44px;border-radius:9px;border:1px solid #c9d0c5;background:transparent;padding:8px 13px;font-size:14px}
.inline button:hover:not(:disabled){background:#e9eddf}

.aside{padding:18px 0}
.aside h3{font-size:14px;letter-spacing:.08em;margin-top:0}
.note{border-top:1px solid #a3b6a7;padding:18px 0 6px;font-size:14px;color:#435a5b}
.note p{margin-bottom:10px}
.number{font-family:Georgia,serif;font-size:62px;color:#63776a;line-height:1.1;letter-spacing:-.06em;margin-bottom:16px}
.number i{font-size:27px;color:var(--accent);font-style:normal;margin-left:7px}
.quote{
  border-left:3px solid #91a690;padding:13px 18px;background:#f0f3e9;border-radius:0 10px 10px 0;
  margin:18px 0;white-space:pre-line;
}
.dialogue{font-size:18px;line-height:1.95}
.label{font-size:12px;color:#536a57;display:block;margin-bottom:7px}
.copytext{
  white-space:pre-wrap;user-select:text;overflow-wrap:anywhere;border:1px solid #cbd3c9;
  background:#fff;padding:18px;border-radius:10px;margin:16px 0;
}
.status{color:#395e45;min-height:24px;font-size:14px;margin-top:12px;white-space:pre-line}
.saved{border-top:1px solid var(--line);padding:18px 0}
.saved:first-of-type{margin-top:8px}
.tag{background:#e8ebdd;border-radius:4px;padding:2px 7px;font-size:12px;display:inline-block;margin-bottom:5px}
.progress{display:flex;gap:6px;margin-bottom:22px}
.progress b{height:3px;width:32px;background:#d8dece}
.progress b.on{background:#698578}
.fineprint{margin-top:22px;color:var(--muted);font-size:12px}
.freeinput{margin-top:22px;border-top:1px dashed var(--line);padding-top:16px}
.consent-table{width:100%;border-collapse:collapse;margin:16px 0}
.consent-table td{border-top:1px solid var(--line);padding:12px 8px;vertical-align:top;font-size:14px}
.consent-table td:last-child{width:96px;text-align:right}

@media(max-width:820px){
  .site-header{padding:18px 20px}
  .wrap{padding:18px 20px 30px}
  .layout{grid-template-columns:1fr;gap:20px}
  .sheet{padding:26px 22px}
  .aside .number{display:none}
  .toolbar .grow{display:none}
  h2{font-size:26px}
  .site-footer{padding:0 20px 24px}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
