/* ===== v3 嘟嘟版新增样式（覆盖/扩展 v2 的 app.css） ===== */

.sec-title{font-size:26px;color:var(--soft);margin:6px 0 0 4px;letter-spacing:2px}
.dudu-hero{object-fit:contain;filter:drop-shadow(0 10px 24px #00000018)}

/* 八天卡片 */
.days{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.daycard{background:#fff;border-radius:24px;overflow:hidden;border:3px solid #FFE1BD;box-shadow:0 7px 0 #FFE1BD;display:flex;flex-direction:column;padding:0;text-align:left;color:var(--ink);transition:transform .16s,box-shadow .16s}
.daycard:hover{transform:translateY(-5px)}
.daycard:focus-visible{outline:4px solid var(--c);outline-offset:3px}
.dc-top{position:relative;aspect-ratio:3/2;background:#FFF3E0;overflow:hidden}
.dc-top img{width:100%;height:100%;object-fit:cover;display:block}
.dc-day{position:absolute;left:12px;top:12px;background:#FF8A3D;color:#fff;font-size:16px;font-weight:800;padding:4px 12px;border-radius:12px}
.dc-body{padding:12px 16px 16px;display:flex;flex-direction:column;gap:2px}
.dc-body h3{font-size:24px;color:#E06A1F}
.dc-body small{font-size:15px;color:var(--soft)}

/* 主流程：左舞台 + 右侧任务面板 */
.day-page{display:grid;grid-template-columns:1.3fr 1fr;gap:22px;max-width:1500px;margin:0 auto;align-items:start}
.day-stage{position:relative;border-radius:28px;overflow:hidden;background:#FFF3E0;box-shadow:0 12px 30px #0000001a;min-height:min(64vh,560px)}
.day-side{display:flex;flex-direction:column;gap:14px}
.day-head{background:#fff;border-radius:22px;padding:14px 20px;box-shadow:0 4px 14px #eedcc566;position:relative}
.day-head .tag{position:static;display:inline-block;background:#FF8A3D;color:#fff;font-size:15px;font-weight:800;padding:3px 12px;border-radius:12px;margin-right:8px}
.day-head h2{display:inline;font-size:32px;color:#E06A1F}
.day-head small{display:block;color:var(--soft);font-size:16px;margin-top:4px}
.task-card{background:#fff;border-radius:22px;padding:16px 20px;box-shadow:0 4px 14px #eedcc566;border:3px solid #FFE1BD}
.task-card b{display:block;font-size:17px;color:#FF8A3D;margin-bottom:6px}
.task-card p{font-size:24px;font-weight:700;line-height:1.4}
.task-card em{display:block;font-style:normal;font-size:16px;color:var(--soft);margin-top:6px}
ul.checks{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none}
ul.checks li{background:#fff;border-radius:16px;padding:12px 16px;font-size:20px;display:flex;align-items:center;gap:10px;box-shadow:0 3px 10px #eedcc566;color:var(--soft)}
ul.checks li .ck-i{font-size:22px;font-weight:900;color:#C9B8A8;flex:none}
ul.checks li.ok{color:var(--ink);background:#F0FBF6}
ul.checks li.ok .ck-i{color:#06A77D}
ul.checks li.no{background:#FFF6F6}
ul.checks li.no .ck-i{color:#EF476F}
.said-box{font-size:22px;padding:12px 18px;background:#F4FBFF;border-radius:16px;border:2px dashed #BFE3F5;line-height:1.5}
.said-box .kid{width:40px;height:40px;border-radius:50%;object-fit:cover;vertical-align:middle;margin-right:8px}

/* 复述类任务：讲到几个情节 */
.story-hits{background:#fff;border-radius:16px;padding:12px 16px;font-size:19px;box-shadow:0 3px 10px #eedcc566;color:var(--soft)}
.story-hits b{color:#FF8A3D;font-size:23px}
.story-hits .sh{display:inline-block;margin-left:8px;font-weight:900;font-size:20px}
.story-hits .sh.ok{color:#06A77D}
.story-hits .sh.no{color:#EF476F}

/* 嘟嘟舞台 */
.d-stage{position:absolute;inset:0}
.d-scene{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transition:opacity .6s;filter:saturate(1.12) contrast(1.02);transform:scale(1.03)}
.d-scene.in{opacity:1}
.d-scene::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,248,236,.08) 0%,rgba(255,248,236,0) 38%,rgba(255,243,224,.40) 100%)}
.d-actor{position:absolute;left:50%;bottom:0;transform:translateX(-50%);z-index:2}
.d-actor img{height:min(56vh,520px);width:auto;display:block;filter:drop-shadow(0 14px 26px #00000022);transition:transform .2s}
.d-actor img.bump{animation:bump .55s cubic-bezier(.3,1.4,.5,1)}
@keyframes bump{0%{transform:scale(.9) rotate(-2deg)}55%{transform:scale(1.06) rotate(2deg)}100%{transform:scale(1) rotate(0)}}
.d-bubble{position:absolute;left:5%;top:7%;max-width:52%;background:#fff;border-radius:24px;padding:16px 22px;box-shadow:0 6px 18px #0000001f;border:3px solid #FFE1BD;z-index:3}
.d-bubble::after{content:"";position:absolute;left:34px;bottom:-22px;border:11px solid transparent;border-top-color:#FFE1BD}
.d-bubble .b{font-size:26px;line-height:1.5;color:var(--ink)}
.d-bubble.pop{animation:pop .3s}
.d-bubble .dots i{display:inline-block;width:9px;height:9px;margin:0 3px;border-radius:50%;background:var(--main);animation:dot 1s infinite}
.d-bubble .dots i:nth-child(2){animation-delay:.15s}
.d-bubble .dots i:nth-child(3){animation-delay:.3s}

/* 相册 */
.album-page{display:grid;grid-template-columns:1.1fr 1fr;gap:26px;max-width:1400px;margin:0 auto;align-items:start}
.album-photo{display:flex;flex-direction:column;align-items:center;gap:10px}
.photo-frame{background:#fff;padding:16px;border-radius:26px;box-shadow:0 12px 30px #0000001a;transform:rotate(-1.2deg);max-width:calc(100vh - 330px)}
.photo-frame img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:16px;display:block}
.album-side{display:flex;flex-direction:column;gap:14px}

/* 弹层小卡 */
.mini-card{width:min(560px,92vw)}
.mini-card img{width:120px;height:120px;object-fit:contain;display:block;margin:0 auto 6px}
.mini-card p{font-size:22px;line-height:1.5}

@media (max-width:1400px){
  .days{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:1100px){
  .day-page,.album-page{grid-template-columns:minmax(0,1fr)}
  .d-actor img{height:min(40vh,360px)}
  .d-bubble{max-width:70%}
  .photo-frame{max-width:100%}
}

/* ===== 首页：按可用高度自适应，一屏填满、不滚动 ===== */
#view.no-mic{display:flex;flex-direction:column;padding-bottom:14px}
.home{flex:1;min-height:0;gap:12px}
.hero{align-items:center;padding:0 22px;gap:16px;flex:none}
.hero-txt{padding:14px 6px;max-width:640px}
.hero h1{font-size:42px;letter-spacing:4px}
.hero .sub{font-size:18px;margin:2px 0 8px}
.hello img{width:66px;height:66px}
.hello .bubble{font-size:20px;padding:9px 16px}
.hero-album{background:#fff;border:3px solid #BFEBDC;border-radius:24px;padding:12px 22px;
            display:flex;flex-direction:column;align-items:center;gap:3px;flex:none;cursor:pointer;
            box-shadow:0 8px 0 #BFEBDC;transition:transform .15s}
.hero-album:hover{transform:translateY(-4px)}
.hero-album:focus-visible{outline:4px solid #06D6A0;outline-offset:3px}
.hero-album img{width:92px;height:92px;object-fit:contain}
.hero-album b{font-size:22px;color:#0B8A67}
.hero-album small{font-size:15px;color:var(--soft)}
.hero-album-go{margin-top:3px;padding:5px 18px;border-radius:999px;background:#06D6A0;color:#fff;font-size:16px;font-weight:700}
.sec-title{font-size:20px;margin:2px 0 0 4px;flex:none}
/* 八天卡片：两行撑满剩余高度，图片跟着伸缩，屏幕再高也不留大片空白 */
.days{flex:1;min-height:0;grid-template-rows:repeat(2,minmax(0,1fr));gap:12px}
.daycard{min-height:0}
.dc-top{position:relative;flex:1;min-height:130px;overflow:hidden;background:#FFF3E0}
.dc-top img{width:100%;height:100%;object-fit:cover;object-position:center 42%;display:block}
.dc-body{flex:none;padding:8px 14px 10px}
.dc-day{font-size:18px;padding:3px 12px}
.dc-body h3{font-size:23px}
.dc-body small{font-size:18px}

/* ===== 喊一声：老师打字，用嘟嘟的声音播出来 ===== */
.tb-chip.call{background:#E9F7FF;color:#118AB2}
.call-card{width:min(780px,94vw);text-align:left}
.call-card h2{font-size:28px;color:#C2571A;text-align:center;margin-bottom:14px}
.call-card input{width:100%;font-size:26px;padding:12px 16px;border-radius:14px;
                 border:3px solid #FFE1BD;font-family:inherit;color:var(--ink)}
.call-card input:focus{outline:none;border-color:#FF8A3D}
.call-presets{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}
.call-presets button{font-size:18px;padding:8px 14px;border-radius:999px;background:#FFF1E0;
                     color:#7A5B3A;border:2px solid #FFE1BD;cursor:pointer;font-family:inherit}
.call-presets button:hover{background:#FFE6C9}
.call-note{font-size:15px;color:var(--soft);text-align:center;margin-top:10px}

/* ===== 大屏可读性：字号与对比度（第 9 轮按实测审查调整） ===== */
.dc-day{font-size:18px;background:#FFE8D2;color:#B2480F}          /* 原来白字橙底只有 2.4:1 */
.dc-body h3{font-size:24px;color:#C2571A}
.dc-body small{font-size:18px}                                    /* 原来 15px，后排看不清 */
.day-head h2{color:#C2571A}
.day-head .tag{font-size:16px;background:#FFE8D2;color:#B2480F}
.task-card b{font-size:19px;color:#C2571A}
.kpi b{color:#C2571A}
.story-hits b{color:#C2571A}

/* 首页"随时都能玩"：只剩一张卡，别让它撑满整行 */
.mods{grid-template-columns:repeat(auto-fill,minmax(300px,360px));justify-content:start}

/* 教师端页头 */
.teacher-hero{display:flex;align-items:center;gap:20px;background:#fff;border-radius:22px;padding:16px 24px;box-shadow:0 4px 14px #eedcc566}
.teacher-hero img{width:112px;height:112px;object-fit:contain;flex:none}
.teacher-hero h2{font-size:26px;color:#118AB2;margin-bottom:4px}
.teacher-hero p{font-size:17px;color:var(--soft);line-height:1.6}
.tb-title,.tb-back{color:#C2571A}                                  /* 原来 2.35:1，低于大字的 3:1 底线 */
.hero h1{color:#C2571A}
.mod h2{color:#2E7D63;color:color-mix(in srgb,var(--c) 72%,#1a1a1a)}  /* 卡片标题按主题色加深 */

/* ===== v4 美术优化 ===== */
body{background:var(--bg) url(../images/bg-paper.jpg) center/cover fixed}
/* 勾选项：CSS 画圆圈和对勾，不依赖字体里的符号 */
ul.checks li .ck-i{width:26px;height:26px;border-radius:50%;border:3px solid #D9C9B8;position:relative;box-sizing:border-box}
ul.checks li.ok .ck-i{background:#06A77D;border-color:#06A77D}
ul.checks li.ok .ck-i::after{content:"";position:absolute;left:6px;top:1px;width:7px;height:13px;border:solid #fff;border-width:0 3px 3px 0;transform:rotate(45deg)}
ul.checks li.no .ck-i{border-color:#EF476F;border-style:dashed}
ul.checks li{transition:background .3s,transform .3s}
ul.checks li.ok{animation:ckPop .4s ease}
@keyframes ckPop{50%{transform:scale(1.04)}}
.story-hits .sh{width:18px;height:18px;border-radius:50%;vertical-align:middle;background:#E8DCCF}
.story-hits .sh.ok{background:#06A77D}
.story-hits .sh.no{background:#fff;border:3px dashed #EF476F;box-sizing:border-box}
/* 首页课卡上过了的小红花 */
.dc-done{position:absolute;right:10px;top:8px;display:flex;align-items:center;gap:2px;background:#fffd;border-radius:20px;padding:2px 10px 2px 2px;box-shadow:0 2px 8px #0002}
.dc-done img{width:34px;height:34px}
.dc-done b{font-size:16px;color:#C2571A}
/* 卡片更柔和的纸感描边 */
.task-card,.panel,.story-hits,ul.checks li{border:2px solid #F5E6D3}
.task-card{border:3px solid #FFD9AE;background:linear-gradient(#fff,#FFFBF4)}
/* 教师端：范围切换、未发言、成长表 */
.scope-tabs{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.scope-tabs button{font-size:19px;font-weight:700;padding:8px 22px;border-radius:999px;background:#fff;color:var(--soft);border:2px solid #F1E3CF}
.scope-tabs button.on{background:#118AB2;color:#fff;border-color:#118AB2}
.scope-tabs small{font-size:15px;color:var(--soft);margin-left:6px}
.teacher-page .barrow span{width:170px;flex:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.teacher-page .barrow em{width:120px;flex:none;text-align:right;white-space:nowrap}
.silent{display:flex;flex-wrap:wrap;gap:8px}
.silent .sn{width:46px;height:46px;border-radius:50%;font-size:18px;font-weight:800;background:#FFF1E0;color:#B2480F;border:2px solid #FFD9AE}
.silent .sn:hover{background:#FF8A3D;color:#fff}
.grow-wrap{overflow-x:auto;max-height:420px}
table.grow th,table.grow td{text-align:center;padding:6px}
table.grow td.gc i{display:inline-block;width:26px;height:26px;border-radius:8px}
table.grow td.g3 i,.grow-legend .g3{background:#06A77D}
table.grow td.g2 i,.grow-legend .g2{background:#FFC93C}
table.grow td.g1 i,.grow-legend .g1{background:#EF476F}
table.grow td.none::after{content:"";display:inline-block;width:26px;height:26px;border-radius:8px;border:2px dashed #E3D5C5;box-sizing:border-box}
.grow-legend{display:flex;gap:18px;margin-top:10px;font-size:16px;color:var(--soft)}
.grow-legend i{display:inline-block;width:16px;height:16px;border-radius:5px;vertical-align:-2px;margin-right:6px}
.grow-legend .none{border:2px dashed #E3D5C5;box-sizing:border-box}
.mini-card .next .ic,.result-card .next .ic{width:1.15em;height:1.15em;display:inline;margin:0 4px 0 0;border-radius:0}
