/* 孩子端：暖黄空间 + 纸白工作面。配色只取自 baseline.css 的变量。 */

main{max-width:1232px;margin:auto;padding:31px 0 0}

/* —— 入口：黄色首页 —— */
.home-grid{display:grid;grid-template-columns:1.09fr 1fr;gap:65px;align-items:center}
.overline{font-size:12px;letter-spacing:2px;display:flex;gap:10px;align-items:center;margin-bottom:18px}
.overline::before{content:"";width:25px;border-top:2px solid;transform:rotate(-9deg)}
.child-title{font-size:60px;line-height:1.3;letter-spacing:-1.5px;font-weight:850}
.title-underline{position:relative;isolation:isolate}
.title-underline:after{
  content:"";position:absolute;left:0;right:0;bottom:-6px;
  border-bottom:5px solid var(--ink);border-radius:50%;transform:rotate(-2deg);
}
.hero-sub{font-size:15px;margin-top:24px;color:#4f533e;letter-spacing:.2px}
.child-art{width:100%;margin-top:20px}
.child-art svg{width:100%;height:auto;max-height:300px}
.art-caption{font:17px/1.5 var(--hand);color:#4f553f;transform:rotate(-2deg);padding-left:22px;margin-top:-3px}

.hero-card{
  position:relative;background:var(--paper);padding:31px 30px 27px;
  border:1.6px solid var(--ink);border-radius:4px 13px 5px 7px;
  box-shadow:7px 8px 0 #262921;isolation:isolate;
}
.hero-card::before{
  content:"";position:absolute;width:86px;height:26px;background:#fff0aaea;
  top:-15px;right:34px;transform:rotate(8deg);
  border-left:1px dashed #d5c372;border-right:1px dashed #d5c372;
}
.card-kicker{
  display:flex;justify-content:space-between;align-items:center;
  font-size:11px;letter-spacing:1.4px;color:#5d614f;margin-bottom:19px;gap:12px;
}
.note-mark{border:1px solid #d9d6c6;transform:rotate(3deg);padding:1px 8px;font:italic 13px Georgia,serif;color:#7c806d}
.card-title{font-size:26px;line-height:1.5;font-weight:750;letter-spacing:-.3px;margin-bottom:15px}
.idea-input{
  resize:vertical;min-height:112px;max-height:220px;width:100%;padding:14px 15px;
  border:1.2px solid #b2b5a2;border-radius:4px;background:#fffef9;
  font-size:15px;line-height:1.9;outline-offset:4px;
}
.idea-input::placeholder{color:#777b6b}
.input-footer{font-size:10px;color:#73775e;display:flex;justify-content:space-between;margin:7px 0 19px;gap:15px}
.sample-row{
  margin-top:21px;padding-top:15px;border-top:1px dashed #cccebc;
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
}
.sample-copy{font-size:11px;color:#636850}
.sample-btn{
  border:0;min-height:44px;background:none;color:var(--blue);
  font-size:13px;font-weight:650;display:flex;gap:8px;align-items:center;padding:5px 0;white-space:nowrap;
}
.sample-btn svg{width:18px;height:18px}
.privacy{font-size:10px;color:#666c54;text-align:center;line-height:1.9;margin-top:17px}
.privacy svg{width:13px;height:13px;display:inline-block;vertical-align:-2px;margin-right:4px}

/* 起点选项：产品已有的三个入口，示例只是其中之一。 */
.choices{display:flex;gap:8px;flex-wrap:wrap;margin-top:17px}
.choice{
  min-height:44px;border:1px solid #c9cdbb;background:#fffefa;
  border-radius:5px;padding:8px 12px;font-size:12px;
}
.choice[aria-pressed=true]{background:var(--yellow);border-color:var(--ink);box-shadow:1px 2px 0 #262921}

.under-hero{
  margin-top:37px;border-top:1px solid #26292140;padding:20px 0;
  display:flex;align-items:center;justify-content:space-between;gap:20px;
}
.foot-note{font:16px/1.6 var(--hand);display:flex;align-items:center;gap:10px}
.foot-note svg{width:24px;height:24px}
.foot-note strong{font-weight:400}
.quiet-badge{border:1px solid #26292165;padding:4px 11px;transform:rotate(2deg);font-size:11px;white-space:nowrap}

/* —— 工作页：黄色外围 + 纸白操作区 —— */
.work-top{display:flex;justify-content:space-between;gap:15px;align-items:center;margin:0 0 18px;flex-wrap:wrap}
.back-button{font-size:12px;min-height:44px;background:none;border:0;padding:0;display:flex;gap:9px;align-items:center}
.project-flag{display:inline-flex;gap:7px;align-items:center;font-size:10px;letter-spacing:.6px}
.project-flag:before{content:"";display:block;width:6px;height:6px;background:var(--blue);border-radius:50%}

.workspace-grid{display:grid;grid-template-columns:1.34fr .86fr;gap:34px;align-items:start}
.sheet{position:relative;background:var(--paper);border:1.6px solid var(--ink);border-radius:6px 9px 3px 6px;box-shadow:4px 5px 0 #262921;overflow:hidden}
/* 工作面是孩子端的主体：给它一个像样的高度，别被右侧卡片压成一条。 */
.workspace-grid .sheet{display:flex;flex-direction:column;min-height:470px}
.workspace-grid .sheet .messages{flex:1;min-height:0}
.sheet-head{
  display:flex;align-items:center;justify-content:space-between;gap:15px;
  padding:15px 20px 13px;border-bottom:1px dashed #c9cdbb;color:#656b56;font-size:10px;
}
.paper-index{font:italic 13px Georgia,serif}
.work-title{font-size:30px;line-height:1.5;font-weight:750;margin-bottom:8px;overflow-wrap:anywhere}
.project-line{font-size:12px;color:#4f553e;margin-bottom:0;overflow-wrap:anywhere;max-height:80px;overflow:auto}

.messages{padding:18px 20px 6px;display:flex;flex-direction:column;gap:12px;max-height:min(52vh,460px);overflow-y:auto}
.bubble{font-size:14px;line-height:1.85;padding:11px 14px;border-radius:5px 9px 4px 6px;max-width:min(100%,62ch);overflow-wrap:anywhere}
.bubble.coach{background:#fffef9;border:1px solid #c9cdbb}
.bubble.coach .ask{font-weight:650;font-size:16px;line-height:1.7;margin-top:6px}
.bubble.coach .ask:first-child{margin-top:0}
.bubble.child{align-self:flex-end;background:var(--ink);color:var(--paper);border:1px solid var(--ink);border-radius:9px 5px 6px 4px}
.bubble.coach.pending{color:#6f7860;letter-spacing:2px}
.bubble.notice{background:#fff3bf;border:1px solid var(--line);font-size:13px}
.bubble.notice:before{content:"孩子端确认回执 · ";font-size:10px;letter-spacing:1px;color:#7d866e;display:block}

.composer{display:flex;gap:9px;padding:14px 20px 18px;border-top:1px dashed #c9cdbb}
.composer input{
  flex:1;min-height:49px;padding:10px 14px;font-size:14px;
  border:1.2px solid #b2b5a2;border-radius:4px;background:#fffef9;outline-offset:4px;
}
.composer button{
  min-width:96px;min-height:49px;background:var(--ink);color:var(--paper);
  border:1px solid var(--ink);border-radius:5px 3px 7px 4px;font-size:14px;font-weight:650;
}
.board-help{font-size:11px;color:#505640;padding:0 20px 16px}

/* —— 侧栏卡片 —— */
.card{
  background:var(--paper);border:1.4px solid var(--ink);
  border-radius:4px 8px 5px 3px;box-shadow:4px 5px 0 #262921;
  padding:20px 20px 22px;margin-bottom:20px;
}
.card h2{font-size:15px;font-weight:750;padding-bottom:13px;margin-bottom:15px;border-bottom:1px dashed #c9cdbb}
.card .stack{display:flex;flex-direction:column;gap:13px}
.card label{display:block;font-size:12px;color:#4f553e}
.card input,.card select,.card textarea{
  min-height:44px;
  width:100%;margin-top:6px;padding:9px 11px;font-size:13px;line-height:1.8;
  border:1px solid #bdc5b0;border-radius:4px;background:#fffefa;
}
.card textarea{resize:vertical;min-height:62px}
.card button[type=submit]{
  min-height:46px;background:var(--ink);color:var(--paper);border:1px solid var(--ink);
  border-radius:5px 3px 7px 4px;font-size:13px;font-weight:650;
}
.card .row{display:flex;gap:9px}
.card .row button{flex:1}
.project-summary p{font-size:12px;line-height:1.9;color:#444d3a;overflow-wrap:anywhere;margin-bottom:5px}
.project-summary .label{color:#6f7860}
.phase-line{font-weight:700;color:var(--ink)!important;border-bottom:1px dashed #c9cdbb;padding-bottom:8px;margin-bottom:9px}
.approval-actions{display:flex;gap:9px;margin-top:13px}
.approval-actions .ghost{
  min-height:44px;border:1px solid #b7bfaa;background:#fffefa;border-radius:4px;
  font-size:12px;flex:1;padding:8px 11px;
}
.entry{margin-top:15px;padding-top:15px;border-top:1px dashed #c9cdbb}
.finish-button{margin-top:14px;min-height:49px;font-size:13px}
.save-hint{margin-top:9px;text-align:center;color:#697254;font-size:10px}
.save-status{min-height:19px;margin-top:9px;font-size:11px;color:#4e6941;text-align:center}

.work-end{
  margin-top:28px;border-top:1px solid #26292140;padding:17px 0;
  display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:#545a45;flex-wrap:wrap;
}
.work-end .stage-label{font-weight:600;color:var(--ink)}
.work-end .plain{color:var(--ink)}

/* 页脚的基底样式在 baseline.css（两端共用）；这里只保留孩子端的断点覆盖。 */

@media(max-width:1600px){main{padding-top:43px}.under-hero{margin-top:44px}}
/* 本文件在 baseline.css 之后加载，这里的 margin 会盖掉响应式外边距，
   所以同一组断点要在本文件里再写一遍，否则窄屏会贴边。 */
@media(max-width:1350px){
  main{margin-left:44px;margin-right:44px}
  .page-footer{margin-left:44px;margin-right:44px}
  .home-grid{gap:48px}.child-title{font-size:54px}.hero-card{padding:27px}
}
@media(max-width:1050px){
  main{margin-left:28px;margin-right:28px}
  .page-footer{margin-left:28px;margin-right:28px}
  .home-grid{gap:30px;grid-template-columns:1fr 1fr}
  .child-title{font-size:44px;letter-spacing:-1px}
  .hero-sub{font-size:13px;margin-top:21px}
  .hero-card{padding:24px 22px}
  .card-title{font-size:23px}
  .workspace-grid{grid-template-columns:1.12fr .88fr;gap:22px}
  .work-title{font-size:26px}
  .bubble{max-width:100%}
}
@media(max-width:720px){
  main{margin-left:23px;margin-right:23px;padding-top:21px}
  .page-footer{margin-left:23px;margin-right:23px}
  .home-grid{grid-template-columns:1fr;gap:21px}
  .overline{font-size:10px;letter-spacing:1px;margin-bottom:11px}
  .overline::before{width:19px;border-width:1px}
  .child-title{font-size:38px;line-height:1.28;letter-spacing:-.8px}
  .title-underline:after{bottom:-4px;border-width:3px}
  .hero-sub{font-size:12px;margin-top:17px}
  .child-art{display:none}
  .hero-card{padding:21px 19px;box-shadow:4px 5px 0 #262921;margin-right:4px}
  .hero-card::before{width:64px;height:21px;right:25px;top:-11px}
  .card-kicker{font-size:9px;margin-bottom:11px}
  .card-title{font-size:21px;margin-bottom:12px}
  .idea-input{min-height:96px;font-size:14px;padding:11px 12px}
  .input-footer{font-size:9px}
  .primary{min-height:50px;font-size:14px}
  .under-hero{margin-top:26px;padding:14px 0;gap:10px}
  .foot-note{font-size:13px;gap:6px}
  .foot-note svg{width:20px;height:21px}
  .quiet-badge{font-size:9px;padding:3px 7px}
  .page-footer{padding-top:3px;font-size:9px;align-items:flex-start;flex-wrap:wrap}
  .workspace-grid{grid-template-columns:1fr;gap:20px}
  .work-title{font-size:26px}
  .messages{padding:15px 14px 4px;max-height:none}
  .composer{padding:12px 14px 15px;flex-wrap:wrap}
  .composer button{width:100%}
  .bubble{font-size:14px}
  .card{padding:18px 16px 19px;box-shadow:3px 4px 0 #262921}
  .work-end{margin-top:21px;font-size:10px}
}
@media(max-width:365px){
  main{margin-left:18px;margin-right:18px}
  .page-footer{margin-left:18px;margin-right:18px}
  .child-title{font-size:34px}
  .hero-card{padding:19px 16px}
  .card-title{font-size:20px}
  .quiet-badge{display:none}
}

/* 顶栏小字在暖黄底上要够深才看得清（对比度检查要求小字 >=4.5:1）。 */
.brand-sub{color:#444d3a}

/* ---------------------------------------------------------------------------
   工作区的“下一步”：把已有内容放到最显眼处；没有就如实说没有。
   --------------------------------------------------------------------------- */
.next-step{padding:14px 20px 15px;border-bottom:1px dashed #c9cdbb;background:#fffef9}
/* 孩子自己按的「就试这个，请家长确认」 */
.request-approval{padding:15px 20px 16px;border-bottom:1px dashed #c9cdbb;background:#fffdf3}
.request-line{font:15px/1.75 var(--hand);color:#262921;margin-bottom:11px}
.request-approval .primary{width:auto;min-height:46px;padding:0 18px;font-size:14px}
.request-note{font-size:11px;color:#555b43;line-height:1.8;margin-top:10px}
.next-step h3{
  font-size:10px;letter-spacing:1px;color:#46583a;margin-bottom:8px;
  display:flex;align-items:center;gap:8px;
}
.next-step h3:before{content:"";width:6px;height:6px;background:var(--blue);border-radius:50%;flex-shrink:0}
.next-step p{font-size:13px;line-height:1.9;color:#444d3a;overflow-wrap:anywhere;margin-bottom:5px}
.next-step p .label{color:#46583a}
.next-step .empty{color:#46583a}
.next-step .waiting{
  border-left:3px solid var(--blue);background:#fff3bf;
  padding:9px 11px;font-size:12px;color:#444d3a;margin-top:9px;
}

/* ---------------------------------------------------------------------------
   折叠区：细节按需展开，标题和状态始终看得见。
   --------------------------------------------------------------------------- */
.fold>summary{
  list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  padding-bottom:13px;margin-bottom:15px;border-bottom:1px dashed #c9cdbb;
}
.fold>summary::-webkit-details-marker{display:none}
.fold>summary:focus-visible{outline:3px solid var(--blue);outline-offset:4px}
.fold>summary h2{font-size:15px;font-weight:750;padding:0;margin:0;border:0}
.fold-state{font-size:11px;color:#46583a}
.fold>summary:after{
  content:"展开";margin-left:auto;font-size:10px;letter-spacing:.6px;color:#46583a;
  border:1px solid #c9cdbb;border-radius:3px;padding:2px 7px;white-space:nowrap;
}
.fold[open]>summary:after{content:"收起"}
.fold:not([open])>summary{border-bottom:0;padding-bottom:0;margin-bottom:0}

.footer-actions{display:flex;gap:18px;align-items:center;flex-wrap:wrap}

/* 对话框里的表单（本机设置搬到这里，字段与接口没变） */
dialog .stack{display:flex;flex-direction:column;gap:13px;margin-top:14px}
dialog .stack label{display:block;font-size:12px;color:#46583a}
dialog .stack input{
  width:100%;margin-top:6px;min-height:44px;padding:10px 12px;font-size:13px;
  border:1.2px solid #b2b5a2;border-radius:4px;background:#fffef9;
}

/* 课程参考试用：两个开始方式都清楚、易点，保留原操作和门禁。 */
.sample-row{margin-top:13px;padding-top:13px}
.sample-copy{font-size:13px}
.sample-btn{border:1px solid var(--blue);border-radius:7px;padding:9px 13px;background:#edf3ff;font-size:14px;white-space:normal;min-height:48px}
.sample-btn:hover,.sample-btn:focus-visible{background:#dfe9ff}
.hero-card .privacy{line-height:1.6;margin-top:13px;font-size:11px}
@media(max-width:720px){
  .sample-row{align-items:stretch;gap:8px}
  .sample-btn{justify-content:center;width:100%;font-size:14px}
  .sample-copy{width:100%;font-size:12px}
}

/* 产品说明和即点即见的完整例子；不增加独立页面或复杂流程。 */
.product-intro{margin-top:18px;padding:15px 17px;border-left:4px solid var(--blue);background:#fff9d9;max-width:530px;border-radius:0 8px 8px 0}
.product-intro strong{display:block;font-size:16px;line-height:1.45;margin-bottom:6px}
.product-intro p{font-size:13px;line-height:1.75;margin:4px 0;color:#394433}
.example-panel{margin-top:16px;padding:18px;border:1.5px solid var(--ink);border-radius:9px;background:#fff9dc}
.example-kicker{font-size:11px;color:#555b43;margin-bottom:8px}
.example-panel h3{font-size:18px;line-height:1.45;margin-bottom:7px}
.example-scene{font-size:14px;line-height:1.7;margin-bottom:14px}
.example-line{display:flex;align-items:flex-start;gap:9px;margin:10px 0}
.example-line span{background:#e6edff;color:#27498b;font-size:11px;flex-shrink:0;padding:2px 6px;border-radius:4px}
.example-line p{font-size:14px;line-height:1.7}
.example-ai span{background:#e6eadc;color:#344f31}
.example-actions{display:flex;gap:9px;margin-top:15px;flex-wrap:wrap}
.example-actions .primary{width:auto;flex:1;min-width:156px;min-height:46px;padding:8px 12px;font-size:14px}
.example-actions .secondary{min-height:46px;padding:8px 13px;border:1px solid #6473a0;border-radius:5px;background:#fff;color:#263b76;font-size:13px}
@media(max-width:720px){
 .product-intro{padding:12px 13px;margin-top:12px}
 .product-intro p{font-size:12px}
 .example-panel{padding:14px}
 .example-panel h3{font-size:16px}
 .example-actions{flex-direction:column}
 .example-actions .primary,.example-actions .secondary{width:100%}
}

.workspace-purpose{max-width:64ch;font-size:13px;line-height:1.75;color:#364232;margin:5px 0 12px}
@media(max-width:720px){.workspace-purpose{font-size:12px}}

/* 项目保存由孩子主动发起：不是普通聊天的必经步骤。 */
.project-start{display:block;width:100%;margin-top:14px;padding:10px 8px;min-height:44px;border:1px dashed #46583a;border-radius:6px;text-align:center;color:#34503c;background:#fffefa;font-size:12px;line-height:1.5}
.project-start:hover{background:#f3f6e9}
