:root {
  --teal: #1f6e6b;
  --teal-dark: #14524f;
  --teal-light: #e3f0ee;
  --gold: #e8a13a;
  --gold-deep: #a06a12;
  --gold-light: #fdf3e3;
  --red: #c0392b;
  --red-light: #faecea;
  --bg: #f6f4ef;
  --card: #ffffff;
  --ink: #2c2c2a;
  --ink2: #5f5e5a;
  --line: #e6e2d8;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(40, 60, 58, .05), 0 4px 16px rgba(40, 60, 58, .07);
  --shadow-lift: 0 2px 4px rgba(40, 60, 58, .07), 0 10px 28px rgba(40, 60, 58, .11);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(1100px 460px at 85% -120px, rgba(31, 110, 107, .07), transparent 65%),
    radial-gradient(800px 380px at -10% 30%, rgba(232, 161, 58, .05), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-size: 16px; line-height: 1.82;
}
.page { max-width: 560px; margin: 0 auto; padding: 18px 16px 108px; }
.hidden { display: none !important; }

/* ---------- 阅读进度条 ---------- */
.readprog {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--teal), #2e9d97);
  border-radius: 0 3px 3px 0; z-index: 60; transition: width .12s linear;
  opacity: 0; pointer-events: none;
}
.readprog.show { opacity: 1; }

/* ---------- 进入页 ---------- */
.gate {
  min-height: 100dvh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 24px; text-align: center;
}
.gate .logo {
  width: 96px; height: 96px; border-radius: 26px; background: linear-gradient(150deg, #25807c, var(--teal-dark));
  color: #fff; display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px; box-shadow: var(--shadow-lift);
}
.gate .logo svg { width: 56px; height: 56px; color: #fff; opacity: .92; }
.gate h1 { font-size: 34px; font-weight: 700; color: var(--teal-dark); letter-spacing: 5px; }
.gate .sub { color: var(--ink2); margin: 8px 0 34px; font-size: 14px; }
.gate .card { width: 100%; max-width: 380px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.gate input, .gate .roles { margin-top: 14px; }
.rolebtns { display: flex; gap: 10px; margin-top: 12px; }
.rolebtns button {
  flex: 1; padding: 13px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--card); font-size: 15px; color: var(--ink); min-height: 48px;
  transition: all .15s ease; font-family: inherit;
}
.rolebtns button:active { transform: scale(.96); }
.rolebtns button.on {
  border-color: var(--teal); background: var(--teal-light); color: var(--teal-dark);
  font-weight: 600; box-shadow: inset 0 0 0 1px var(--teal);
}
.gate .err { color: var(--red); font-size: 13px; margin-top: 10px; min-height: 18px; }
.gate .privacy { margin-top: 14px; padding: 12px 14px; background: #faf8f3; border: 1px solid var(--line); border-radius: 12px; text-align: left; }
.gate .privacy .pt { font-size: 12px; font-weight: 600; color: var(--teal-dark); letter-spacing: .5px; margin-bottom: 6px; }
.gate .privacy p { font-size: 12.5px; line-height: 1.85; color: var(--ink2); }
.gate .foot { color: #b0aca2; font-size: 12px; margin-top: 40px; letter-spacing: 1px; }

/* ---------- 通用 ---------- */
input[type=text], input[type=date], input[type=tel], input[type=number], input[type=password], textarea, select {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; padding: 11px 13px; font-size: 16px; color: var(--ink);
  font-family: inherit; outline: none; transition: border-color .15s, box-shadow .15s;
  min-height: 46px;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31, 110, 107, .13);
}
textarea { min-height: 76px; resize: vertical; line-height: 1.65; }
.btn {
  display: inline-block; border: none; border-radius: 13px; cursor: pointer;
  padding: 13px 22px; font-size: 15px; font-weight: 600; min-height: 46px;
  background: linear-gradient(150deg, #25807c, var(--teal)); color: #fff;
  box-shadow: 0 3px 10px rgba(31, 110, 107, .3); font-family: inherit;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:active { transform: scale(.96); box-shadow: 0 1px 4px rgba(31, 110, 107, .25); }
.btn.ghost { background: var(--card); color: var(--teal); border: 1.5px solid var(--teal); box-shadow: none; }
.btn.small { padding: 8px 15px; font-size: 13.5px; border-radius: 10px; min-height: 38px; }
.btn:disabled { opacity: .5; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 17px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.card h3 { font-size: 19.5px; color: var(--teal-dark); margin-bottom: 12px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card h3::before {
  content: ""; width: 4px; height: 16px; border-radius: 2px; flex: none;
  background: linear-gradient(180deg, #2e9d97, var(--teal));
}

/* 提示框（✦） */
.box {
  border-radius: 14px; padding: 15px 17px; margin: 18px 0; font-size: 14.5px; line-height: 1.8;
  border-left: 4px solid transparent; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.box::before {
  content: ""; position: absolute; top: 0; right: 0; width: 80px; height: 80px;
  border-radius: 50%; opacity: .09; transform: translate(25%, -25%);
  background: currentColor; pointer-events: none;
}
.box .bt { font-weight: 700; margin-bottom: 8px; font-size: 16.5px; letter-spacing: .3px; }
.box.teal { background: linear-gradient(135deg, var(--teal-light), #f0f8f7 65%); border-left-color: var(--teal); }
.box.teal .bt { color: var(--teal-dark); }
.box.gold { background: linear-gradient(135deg, var(--gold-light), #fdf8ea 65%); border-left-color: var(--gold); }
.box.gold .bt { color: var(--gold-deep); }
.box.red { background: linear-gradient(135deg, var(--red-light), #fdf4f2 65%); border-left-color: var(--red); }
.box.red .bt { color: var(--red); }
.box p + p { margin-top: 8px; }

/* toast */
.toast {
  position: fixed; bottom: 110px; left: 50%; transform: translateX(-50%) translateY(6px);
  background: rgba(44, 44, 42, .93); color: #fff; font-size: 14px;
  padding: 11px 20px; border-radius: 12px; z-index: 99; max-width: 82vw;
  opacity: 0; transition: opacity .18s ease, transform .18s ease;
}
.toast:not(.hidden) { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- tabbar ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; max-width: 560px; margin: 0 auto;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
  display: flex; padding-bottom: calc(4px + env(safe-area-inset-bottom)); z-index: 50;
  box-shadow: 0 -4px 20px rgba(40, 60, 58, .06);
}
.tab {
  flex: 1; border: none; background: none; padding: 9px 0 5px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 11px; color: #9a968c; font-family: inherit; min-height: 52px;
  transition: color .15s ease;
}
.tab .ticon { font-size: 22px; line-height: 1.2; transition: transform .15s ease; }
.tab .ticon svg { display: block; width: 24px; height: 24px; margin: 0 auto; }
.tab.active { color: var(--teal); font-weight: 600; position: relative; }
.tab.active .ticon { transform: translateY(-1px) scale(1.08); }
.tab.active::after {
  content: ""; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 6px rgba(232, 161, 58, .45);
}

/* ---------- 首页 ---------- */
.cover {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, #2a8b86 0%, var(--teal) 45%, var(--teal-dark) 100%);
  border-radius: 20px; color: #fff; padding: 28px 22px 24px; margin-bottom: 16px;
  box-shadow: var(--shadow-lift);
}
.cover::before, .cover::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.cover::before {
  width: 220px; height: 220px; right: -70px; top: -80px;
  background: radial-gradient(circle, rgba(255, 255, 255, .13), transparent 70%);
}
.cover::after {
  width: 150px; height: 150px; right: 30px; bottom: -60px;
  background: radial-gradient(circle, rgba(232, 161, 58, .25), transparent 70%);
}
.cover .bk { font-size: 13px; opacity: .85; letter-spacing: 4px; }
.cover h1 { font-size: 30px; margin: 6px 0 2px; font-weight: 700; letter-spacing: 1px; line-height: 1.4; }
.cover .ch {
  display: inline-block; font-size: 14.5px; font-weight: 600; margin-top: 14px;
  padding: 6px 14px; border-radius: 20px; background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
}
.cover .usage { font-size: 11.5px; opacity: .68; margin-top: 14px; letter-spacing: .5px; }
.stats { display: flex; gap: 10px; margin-bottom: 16px; }
.stat {
  flex: 1; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 13px 8px; text-align: center; box-shadow: var(--shadow);
}
.stat .n {
  font-size: 34px; font-weight: 700;
  background: linear-gradient(150deg, #2e9d97, var(--teal-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .l { font-size: 11.5px; color: var(--ink2); margin-top: 2px; }
.marks { margin-bottom: 16px; }
.mark { display: flex; align-items: flex-start; gap: 11px; padding: 11px 0; }
.mark + .mark { border-top: 1px dashed var(--line); }
.mark .dot {
  width: 24px; height: 24px; border-radius: 50%; flex: none; margin-top: 3px;
  border: 2px solid var(--line); display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: transparent; transition: all .2s ease;
}
.mark.done .dot { background: linear-gradient(150deg, #f0b95e, var(--gold)); border-color: var(--gold); color: #fff; box-shadow: 0 2px 7px rgba(232, 161, 58, .4); }
.mark.done .mt { color: var(--ink2); }
.mark .mt { font-size: 15px; line-height: 1.65; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; }
.toc button {
  border: 1.5px solid #d3e6e3; background: linear-gradient(160deg, #f2f9f8, var(--teal-light));
  color: var(--teal-dark); border-radius: 21px; padding: 9px 15px; font-size: 13.5px;
  cursor: pointer; font-family: inherit; font-weight: 500; min-height: 40px;
  transition: transform .12s ease;
}
.toc button:active { transform: scale(.94); }

/* ---------- 阅读（书本翻页） ---------- */
.bookstage {
  max-width: 560px; margin: 0 auto; padding: 14px 14px 0;
  perspective: 1600px;
}
.book {
  position: relative; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(60, 50, 30, .07), rgba(255, 255, 255, 0) 22px),
    linear-gradient(270deg, rgba(60, 50, 30, .03), rgba(255, 255, 255, 0) 14px),
    linear-gradient(180deg, #fffefb, #fdf9f1);
  border: 1px solid #e2dccd; border-radius: 4px 18px 18px 4px;
  box-shadow: 0 2px 4px rgba(40, 60, 58, .08), 0 12px 30px rgba(40, 60, 58, .13);
  padding: 16px 19px 20px;
  min-height: 320px;
  transform-origin: left center;
  will-change: transform, opacity;
}
/* 装订线 + 纸张纹理 */
.book::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(120, 100, 60, .012) 3px 4px),
    linear-gradient(90deg, rgba(120, 100, 60, .10) 1px, transparent 3px);
}
/* 翻页时的页影 */
.book::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  border-radius: inherit; opacity: 0; transition: opacity .2s ease;
  background: linear-gradient(90deg, rgba(50, 40, 20, .16), rgba(50, 40, 20, 0) 42%);
}
.book.turning::before { opacity: 1; }   /* v60：翻页时新页靠近书脊的一道页影（叶片转开后才露出来） */
.bookhead {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px; color: #b3aea1; letter-spacing: 2.5px; margin-bottom: 4px;
}
.bookhead .bno { letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.btitle {
  font-size: 27px; font-weight: 700; color: var(--teal-dark); line-height: 1.42;
  padding: 10px 0 12px; margin-bottom: 4px; position: relative;
  border-bottom: 2px solid rgba(31, 110, 107, .12);
}
.btitle::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 58px; height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(232, 161, 58, .25));
}
.bfoot {
  text-align: center; color: #cfcabd; font-size: 11px;
  letter-spacing: 2px; margin-top: 24px; user-select: none;
}
.bookhint {
  text-align: center; font-size: 11.5px; color: #b3aea1;
  letter-spacing: 1.5px; margin-top: 12px; user-select: none;
}
/* 悬浮翻页条 */
.booknav {
  position: fixed; bottom: calc(64px + env(safe-area-inset-bottom));
  left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .93);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border: 1px solid var(--line); border-radius: 26px; padding: 6px 12px;
  box-shadow: var(--shadow-lift); z-index: 55;
}
.bnavbtn {
  width: 46px; height: 40px; border: none; border-radius: 20px; cursor: pointer;
  background: linear-gradient(160deg, #f0f8f7, var(--teal-light));
  color: var(--teal-dark); font-size: 20px; font-weight: 700; line-height: 1;
  font-family: inherit; transition: transform .12s ease, opacity .15s ease;
}
.bnavbtn:active { transform: scale(.9); }
.bnavbtn:disabled { opacity: .3; }
.bcount {
  font-size: 12.5px; color: var(--ink2); min-width: 54px; text-align: center;
  letter-spacing: 1px; font-variant-numeric: tabular-nums; font-weight: 600;
}
.bnavsep { width: 1px; height: 22px; background: var(--line); }
.btocbtn {
  border: none; border-radius: 20px; cursor: pointer; padding: 0 14px; height: 40px;
  background: linear-gradient(160deg, #fdf3e3, #f7e9cd);
  color: var(--gold-deep); font-size: 16px; font-weight: 700; line-height: 1;
  font-family: inherit; display: flex; align-items: center; gap: 5px;
  transition: transform .12s ease;
}
.btocbtn span { font-size: 12.5px; font-weight: 650; letter-spacing: 1px; }
.btocbtn:active { transform: scale(.92); }
/* 目录浮层 */
.tocmask {
  position: fixed; inset: 0; z-index: 70; background: rgba(44, 44, 42, .38);
  opacity: 0; transition: opacity .22s ease;
  display: flex; align-items: flex-end; justify-content: center;
}
.tocmask.show { opacity: 1; }
.tocpanel {
  width: 100%; max-width: 560px; max-height: 72dvh; display: flex; flex-direction: column;
  background: var(--card); border-radius: 22px 22px 0 0;
  box-shadow: 0 -8px 40px rgba(40, 60, 58, .22);
  transform: translateY(100%); transition: transform .24s cubic-bezier(.32, .72, .28, 1);
  padding-bottom: env(safe-area-inset-bottom);
}
.tocmask.show .tocpanel { transform: translateY(0); }
.tochead {
  font-size: 16px; font-weight: 700; color: var(--teal-dark);
  padding: 18px 20px 12px; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 10px; flex: none;
}
.tochead::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(180deg, #2e9d97, var(--teal)); }
.tocsub { font-size: 12px; color: #b0aca2; font-weight: 400; }
.toclist { overflow-y: auto; padding: 8px 12px 18px; -webkit-overflow-scrolling: touch; }
.tocrow {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  border: none; background: none; cursor: pointer; font-family: inherit;
  padding: 13px 10px; border-radius: 12px; border-bottom: 1px dashed var(--line);
  transition: background .14s ease;
}
.tocrow:active { background: var(--teal-light); }
.tocrow:last-child { border-bottom: none; }
.tocrow .tocno {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--ink2);
  background: #f1eee6; font-variant-numeric: tabular-nums;
}
.tocrow .toct { flex: 1; font-size: 15px; color: var(--ink); line-height: 1.5; }
.tocrow.istool .toct { color: var(--gold-deep); }
.tocrow.cur { background: var(--teal-light); }
.tocrow.cur .tocno { background: var(--teal); color: #fff; }
.tocrow.cur .toct { color: var(--teal-dark); font-weight: 650; }
.tocrow .toccur { font-size: 11px; color: var(--teal); font-weight: 600; flex: none; }
/* v37：阅读目录改用「1.0」这类二级编号，圆形放不下，改为胶囊（填写目录纯序号不受影响） */
.tocrow .tocno.lv2 {
  width: auto; min-width: 34px; height: 24px; padding: 0 8px;
  border-radius: 12px; font-size: 12px;
}
/* 翻页动画 v61：一张纸从右下角卷着剥开（WPS/PowerPoint 的「剥离」Peel Off）
   v60 用的是「整页绕书脊做三维旋转」，那实际上是转卡片，不像翻纸；这一版
   按剥离重做：前沿是一条斜直线（右下角先掀，所以底端比顶端走得远），扫过时
   逐段露出下面那一页；前沿上套一根卷筒 .bcurl，负责折痕、高光和在下一页上
   的投影。两层结构不变：向前翻＝新页先铺在书里（垫在下面），旧页克隆成
   .bleaf 覆盖在上一层层被剥掉；向后翻＝旧页留在书里，新页当纸从左往右铺回来。
   两种方向全程都有纸在场，所以不出现空白。
   关键帧由 _gen_peel_css.py 算出后贴进来，改倾斜角请改脚本重生成，别手改中间帧。
   ⚠ 时长 .48s 必须与 app.js 的 FLIP_MS = 480 一致，改一处就得改两处 */
.bleaf {
  position: absolute; left: 0; right: 0; top: 0; z-index: 4;
  box-sizing: border-box; padding: 16px 19px 20px;
  background:
    linear-gradient(90deg, rgba(60, 50, 30, .07), rgba(255, 255, 255, 0) 22px),
    linear-gradient(270deg, rgba(60, 50, 30, .03), rgba(255, 255, 255, 0) 14px),
    linear-gradient(180deg, #fffefb, #fdf9f1);
  border: 1px solid #e2dccd; border-radius: 4px 18px 18px 4px;
  box-shadow: 0 2px 4px rgba(40, 60, 58, .08);
  pointer-events: none; overflow: hidden;
  will-change: clip-path;
}
.bleaf.probe { visibility: hidden; box-shadow: none; }
/* 卷筒：前沿上那根被卷起来的纸。
   ⚠ 外壳必须与书同宽（width:100%），真正的筒身是里面的 <i>。
   原因是 translateX 的百分比相对「元素自身宽度」算 —— 34px 宽的筒身写 translateX(57%)
   只挪 19px，而书宽的 57% 是 205px，差一个数量级，卷筒会赖在书左缘不动。
   ⚠ 还必须与 .bleaf 同级、不能塞进 .bleaf 里 —— .bleaf 被 clip-path 裁掉的正是
   前沿右侧那片，卷筒恰好活在那里，做成子元素会被一起裁没。 */
.bcurl {
  position: absolute; top: 0; bottom: 0; left: 0; width: 100%; z-index: 5;
  pointer-events: none; transform-origin: 0 0;
  will-change: transform, opacity;
}
/* 筒身：折痕侧压暗 → 卷面高光 → 背光边缘，右缘再往下一页投一道软影。
   对比要拉开：纸卷的高光和书页底色本来就接近，只靠"变白"读不出圆柱感。 */
.bcurl > i {
  position: absolute; left: 0; top: 0; bottom: 0; width: 38px; display: block;
  background: linear-gradient(90deg,
    #c6b99b 0, #fffefa 4px, #fefaf1 10px,
    #f4ead7 17px, #e6dac0 24px, #d3c6a6 31px, #b9ab8c 38px);
  box-shadow: 4px 0 8px -1px rgba(40, 60, 58, .24),
              inset -1px 0 0 rgba(110, 96, 68, .5);
}
/* 折痕：筒身与纸面交界处的一道硬影 */
.bcurl > i::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: rgba(56, 46, 26, .42);
}
/* 筒面高光：中间一道竖向亮带、两头收暗，纸卷才读得出圆柱感 */
.bcurl > i::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 24%,
    rgba(255, 255, 255, 0) 76%, rgba(255, 255, 255, .42));
}

/* __PEEL_KF_BEGIN__ 由 _gen_peel_css.py 生成，勿手改（改了就重跑脚本） */
/* ===== v61 翻页＝「剥离」：一张纸从右下角卷着剥开，露出下面那一页 =====
   按 WPS/PowerPoint「剥离」(Peel Off) 的读法重做：
     · 二维，不带三维透视——不是整页绕轴旋转
     · 前沿是一条斜直线（右下角先掀，底端超前），扫过时逐段露出新页
     · 前沿套一根卷筒 .bcurl：折痕暗影 → 卷面高光 → 背光面 → 投在新页上的软影
   两层结构不变（新页垫在下面、旧页当纸），所以全程都有纸在场、不闪白。
   ⚠ 倾斜量走 CSS 变量：--peel-tilt 是「书宽百分比」、--peel-skew 是角度，
     由 app.js 按当次页高算出后写在 .book 上（页越高、同样的屏幕斜角需要的 x 位移越大）。
     手册一页能长到 3000px+，写死百分比会让斜角在屏幕上几乎看不见、还会让卷筒错位。
   ⚠ 时长 480ms 必须与 app.js 的 FLIP_MS = 480 一致；下面的百分比由
     `_gen_peel_css.py` 算出，改角度请改脚本重生成，别手改中间帧。 */

@keyframes peelOut {
  0% { clip-path: polygon(0% 0%, calc(100.00% + var(--peel-tilt, 20.00%) * 0.0000) 0%, calc(100.00% + var(--peel-tilt, 20.00%) * 0.0000) 25%, calc(100.00% + var(--peel-tilt, 20.00%) * 0.0000) 50%, calc(100.00% + var(--peel-tilt, 20.00%) * -0.0000) 75%, calc(100.00% + var(--peel-tilt, 20.00%) * -0.0000) 100%, 0% 100%); }
  8.33% { clip-path: polygon(0% 0%, calc(91.67% + var(--peel-tilt, 20.00%) * 0.1294) 0%, calc(91.81% + var(--peel-tilt, 20.00%) * 0.0647) 25%, calc(91.87% + var(--peel-tilt, 20.00%) * 0.0000) 50%, calc(91.81% + var(--peel-tilt, 20.00%) * -0.0647) 75%, calc(91.67% + var(--peel-tilt, 20.00%) * -0.1294) 100%, 0% 100%); }
  16.67% { clip-path: polygon(0% 0%, calc(83.33% + var(--peel-tilt, 20.00%) * 0.2500) 0%, calc(83.62% + var(--peel-tilt, 20.00%) * 0.1250) 25%, calc(83.73% + var(--peel-tilt, 20.00%) * 0.0000) 50%, calc(83.62% + var(--peel-tilt, 20.00%) * -0.1250) 75%, calc(83.33% + var(--peel-tilt, 20.00%) * -0.2500) 100%, 0% 100%); }
  25% { clip-path: polygon(0% 0%, calc(75.00% + var(--peel-tilt, 20.00%) * 0.3536) 0%, calc(75.40% + var(--peel-tilt, 20.00%) * 0.1768) 25%, calc(75.57% + var(--peel-tilt, 20.00%) * 0.0000) 50%, calc(75.40% + var(--peel-tilt, 20.00%) * -0.1768) 75%, calc(75.00% + var(--peel-tilt, 20.00%) * -0.3536) 100%, 0% 100%); }
  33.33% { clip-path: polygon(0% 0%, calc(66.67% + var(--peel-tilt, 20.00%) * 0.4330) 0%, calc(67.16% + var(--peel-tilt, 20.00%) * 0.2165) 25%, calc(67.36% + var(--peel-tilt, 20.00%) * 0.0000) 50%, calc(67.16% + var(--peel-tilt, 20.00%) * -0.2165) 75%, calc(66.67% + var(--peel-tilt, 20.00%) * -0.4330) 100%, 0% 100%); }
  41.67% { clip-path: polygon(0% 0%, calc(58.33% + var(--peel-tilt, 20.00%) * 0.4830) 0%, calc(58.88% + var(--peel-tilt, 20.00%) * 0.2415) 25%, calc(59.11% + var(--peel-tilt, 20.00%) * 0.0000) 50%, calc(58.88% + var(--peel-tilt, 20.00%) * -0.2415) 75%, calc(58.33% + var(--peel-tilt, 20.00%) * -0.4830) 100%, 0% 100%); }
  50% { clip-path: polygon(0% 0%, calc(50.00% + var(--peel-tilt, 20.00%) * 0.5000) 0%, calc(50.57% + var(--peel-tilt, 20.00%) * 0.2500) 25%, calc(50.80% + var(--peel-tilt, 20.00%) * 0.0000) 50%, calc(50.57% + var(--peel-tilt, 20.00%) * -0.2500) 75%, calc(50.00% + var(--peel-tilt, 20.00%) * -0.5000) 100%, 0% 100%); }
  58.33% { clip-path: polygon(0% 0%, calc(41.67% + var(--peel-tilt, 20.00%) * 0.4830) 0%, calc(42.21% + var(--peel-tilt, 20.00%) * 0.2415) 25%, calc(42.44% + var(--peel-tilt, 20.00%) * 0.0000) 50%, calc(42.21% + var(--peel-tilt, 20.00%) * -0.2415) 75%, calc(41.67% + var(--peel-tilt, 20.00%) * -0.4830) 100%, 0% 100%); }
  66.67% { clip-path: polygon(0% 0%, calc(33.33% + var(--peel-tilt, 20.00%) * 0.4330) 0%, calc(33.82% + var(--peel-tilt, 20.00%) * 0.2165) 25%, calc(34.03% + var(--peel-tilt, 20.00%) * 0.0000) 50%, calc(33.82% + var(--peel-tilt, 20.00%) * -0.2165) 75%, calc(33.33% + var(--peel-tilt, 20.00%) * -0.4330) 100%, 0% 100%); }
  75% { clip-path: polygon(0% 0%, calc(25.00% + var(--peel-tilt, 20.00%) * 0.3536) 0%, calc(25.40% + var(--peel-tilt, 20.00%) * 0.1768) 25%, calc(25.57% + var(--peel-tilt, 20.00%) * 0.0000) 50%, calc(25.40% + var(--peel-tilt, 20.00%) * -0.1768) 75%, calc(25.00% + var(--peel-tilt, 20.00%) * -0.3536) 100%, 0% 100%); }
  83.33% { clip-path: polygon(0% 0%, calc(16.67% + var(--peel-tilt, 20.00%) * 0.2500) 0%, calc(16.95% + var(--peel-tilt, 20.00%) * 0.1250) 25%, calc(17.07% + var(--peel-tilt, 20.00%) * 0.0000) 50%, calc(16.95% + var(--peel-tilt, 20.00%) * -0.1250) 75%, calc(16.67% + var(--peel-tilt, 20.00%) * -0.2500) 100%, 0% 100%); }
  91.67% { clip-path: polygon(0% 0%, calc(8.33% + var(--peel-tilt, 20.00%) * 0.1294) 0%, calc(8.48% + var(--peel-tilt, 20.00%) * 0.0647) 25%, calc(8.54% + var(--peel-tilt, 20.00%) * 0.0000) 50%, calc(8.48% + var(--peel-tilt, 20.00%) * -0.0647) 75%, calc(8.33% + var(--peel-tilt, 20.00%) * -0.1294) 100%, 0% 100%); }
  100% { clip-path: polygon(0% 0%, calc(0.00% + var(--peel-tilt, 20.00%) * 0.0000) 0%, calc(0.00% + var(--peel-tilt, 20.00%) * 0.0000) 25%, calc(0.00% + var(--peel-tilt, 20.00%) * 0.0000) 50%, calc(0.00% + var(--peel-tilt, 20.00%) * -0.0000) 75%, calc(0.00% + var(--peel-tilt, 20.00%) * -0.0000) 100%, 0% 100%); }
}

@keyframes peelIn {
  0% { clip-path: polygon(0% 0%, calc(0.00% + var(--peel-tilt, 20.00%) * 0.0000) 0%, calc(0.00% + var(--peel-tilt, 20.00%) * 0.0000) 25%, calc(0.00% + var(--peel-tilt, 20.00%) * 0.0000) 50%, calc(0.00% + var(--peel-tilt, 20.00%) * -0.0000) 75%, calc(0.00% + var(--peel-tilt, 20.00%) * -0.0000) 100%, 0% 100%); }
  8.33% { clip-path: polygon(0% 0%, calc(8.33% + var(--peel-tilt, 20.00%) * 0.1294) 0%, calc(8.48% + var(--peel-tilt, 20.00%) * 0.0647) 25%, calc(8.54% + var(--peel-tilt, 20.00%) * 0.0000) 50%, calc(8.48% + var(--peel-tilt, 20.00%) * -0.0647) 75%, calc(8.33% + var(--peel-tilt, 20.00%) * -0.1294) 100%, 0% 100%); }
  16.67% { clip-path: polygon(0% 0%, calc(16.67% + var(--peel-tilt, 20.00%) * 0.2500) 0%, calc(16.95% + var(--peel-tilt, 20.00%) * 0.1250) 25%, calc(17.07% + var(--peel-tilt, 20.00%) * 0.0000) 50%, calc(16.95% + var(--peel-tilt, 20.00%) * -0.1250) 75%, calc(16.67% + var(--peel-tilt, 20.00%) * -0.2500) 100%, 0% 100%); }
  25% { clip-path: polygon(0% 0%, calc(25.00% + var(--peel-tilt, 20.00%) * 0.3536) 0%, calc(25.40% + var(--peel-tilt, 20.00%) * 0.1768) 25%, calc(25.57% + var(--peel-tilt, 20.00%) * 0.0000) 50%, calc(25.40% + var(--peel-tilt, 20.00%) * -0.1768) 75%, calc(25.00% + var(--peel-tilt, 20.00%) * -0.3536) 100%, 0% 100%); }
  33.33% { clip-path: polygon(0% 0%, calc(33.33% + var(--peel-tilt, 20.00%) * 0.4330) 0%, calc(33.82% + var(--peel-tilt, 20.00%) * 0.2165) 25%, calc(34.03% + var(--peel-tilt, 20.00%) * 0.0000) 50%, calc(33.82% + var(--peel-tilt, 20.00%) * -0.2165) 75%, calc(33.33% + var(--peel-tilt, 20.00%) * -0.4330) 100%, 0% 100%); }
  41.67% { clip-path: polygon(0% 0%, calc(41.67% + var(--peel-tilt, 20.00%) * 0.4830) 0%, calc(42.21% + var(--peel-tilt, 20.00%) * 0.2415) 25%, calc(42.44% + var(--peel-tilt, 20.00%) * 0.0000) 50%, calc(42.21% + var(--peel-tilt, 20.00%) * -0.2415) 75%, calc(41.67% + var(--peel-tilt, 20.00%) * -0.4830) 100%, 0% 100%); }
  50% { clip-path: polygon(0% 0%, calc(50.00% + var(--peel-tilt, 20.00%) * 0.5000) 0%, calc(50.57% + var(--peel-tilt, 20.00%) * 0.2500) 25%, calc(50.80% + var(--peel-tilt, 20.00%) * 0.0000) 50%, calc(50.57% + var(--peel-tilt, 20.00%) * -0.2500) 75%, calc(50.00% + var(--peel-tilt, 20.00%) * -0.5000) 100%, 0% 100%); }
  58.33% { clip-path: polygon(0% 0%, calc(58.33% + var(--peel-tilt, 20.00%) * 0.4830) 0%, calc(58.88% + var(--peel-tilt, 20.00%) * 0.2415) 25%, calc(59.11% + var(--peel-tilt, 20.00%) * 0.0000) 50%, calc(58.88% + var(--peel-tilt, 20.00%) * -0.2415) 75%, calc(58.33% + var(--peel-tilt, 20.00%) * -0.4830) 100%, 0% 100%); }
  66.67% { clip-path: polygon(0% 0%, calc(66.67% + var(--peel-tilt, 20.00%) * 0.4330) 0%, calc(67.16% + var(--peel-tilt, 20.00%) * 0.2165) 25%, calc(67.36% + var(--peel-tilt, 20.00%) * 0.0000) 50%, calc(67.16% + var(--peel-tilt, 20.00%) * -0.2165) 75%, calc(66.67% + var(--peel-tilt, 20.00%) * -0.4330) 100%, 0% 100%); }
  75% { clip-path: polygon(0% 0%, calc(75.00% + var(--peel-tilt, 20.00%) * 0.3536) 0%, calc(75.40% + var(--peel-tilt, 20.00%) * 0.1768) 25%, calc(75.57% + var(--peel-tilt, 20.00%) * 0.0000) 50%, calc(75.40% + var(--peel-tilt, 20.00%) * -0.1768) 75%, calc(75.00% + var(--peel-tilt, 20.00%) * -0.3536) 100%, 0% 100%); }
  83.33% { clip-path: polygon(0% 0%, calc(83.33% + var(--peel-tilt, 20.00%) * 0.2500) 0%, calc(83.62% + var(--peel-tilt, 20.00%) * 0.1250) 25%, calc(83.73% + var(--peel-tilt, 20.00%) * 0.0000) 50%, calc(83.62% + var(--peel-tilt, 20.00%) * -0.1250) 75%, calc(83.33% + var(--peel-tilt, 20.00%) * -0.2500) 100%, 0% 100%); }
  91.67% { clip-path: polygon(0% 0%, calc(91.67% + var(--peel-tilt, 20.00%) * 0.1294) 0%, calc(91.81% + var(--peel-tilt, 20.00%) * 0.0647) 25%, calc(91.87% + var(--peel-tilt, 20.00%) * 0.0000) 50%, calc(91.81% + var(--peel-tilt, 20.00%) * -0.0647) 75%, calc(91.67% + var(--peel-tilt, 20.00%) * -0.1294) 100%, 0% 100%); }
  100% { clip-path: polygon(0% 0%, calc(100.00% + var(--peel-tilt, 20.00%) * 0.0000) 0%, calc(100.00% + var(--peel-tilt, 20.00%) * 0.0000) 25%, calc(100.00% + var(--peel-tilt, 20.00%) * 0.0000) 50%, calc(100.00% + var(--peel-tilt, 20.00%) * -0.0000) 75%, calc(100.00% + var(--peel-tilt, 20.00%) * -0.0000) 100%, 0% 100%); }
}

@keyframes curlOut {
  0% { transform: translateX(calc(100.00% + var(--peel-tilt, 20.00%) * 0.0000)) skewX(calc(var(--peel-skew, 4.0deg) * -0.0000)); }
  8.33% { transform: translateX(calc(91.67% + var(--peel-tilt, 20.00%) * 0.1294)) skewX(calc(var(--peel-skew, 4.0deg) * -0.2588)); }
  16.67% { transform: translateX(calc(83.33% + var(--peel-tilt, 20.00%) * 0.2500)) skewX(calc(var(--peel-skew, 4.0deg) * -0.5000)); }
  25% { transform: translateX(calc(75.00% + var(--peel-tilt, 20.00%) * 0.3536)) skewX(calc(var(--peel-skew, 4.0deg) * -0.7071)); }
  33.33% { transform: translateX(calc(66.67% + var(--peel-tilt, 20.00%) * 0.4330)) skewX(calc(var(--peel-skew, 4.0deg) * -0.8660)); }
  41.67% { transform: translateX(calc(58.33% + var(--peel-tilt, 20.00%) * 0.4830)) skewX(calc(var(--peel-skew, 4.0deg) * -0.9659)); }
  50% { transform: translateX(calc(50.00% + var(--peel-tilt, 20.00%) * 0.5000)) skewX(calc(var(--peel-skew, 4.0deg) * -1.0000)); }
  58.33% { transform: translateX(calc(41.67% + var(--peel-tilt, 20.00%) * 0.4830)) skewX(calc(var(--peel-skew, 4.0deg) * -0.9659)); }
  66.67% { transform: translateX(calc(33.33% + var(--peel-tilt, 20.00%) * 0.4330)) skewX(calc(var(--peel-skew, 4.0deg) * -0.8660)); }
  75% { transform: translateX(calc(25.00% + var(--peel-tilt, 20.00%) * 0.3536)) skewX(calc(var(--peel-skew, 4.0deg) * -0.7071)); }
  83.33% { transform: translateX(calc(16.67% + var(--peel-tilt, 20.00%) * 0.2500)) skewX(calc(var(--peel-skew, 4.0deg) * -0.5000)); }
  91.67% { transform: translateX(calc(8.33% + var(--peel-tilt, 20.00%) * 0.1294)) skewX(calc(var(--peel-skew, 4.0deg) * -0.2588)); }
  100% { transform: translateX(calc(0.00% + var(--peel-tilt, 20.00%) * 0.0000)) skewX(calc(var(--peel-skew, 4.0deg) * -0.0000)); }
}

@keyframes curlIn {
  0% { transform: translateX(calc(0.00% + var(--peel-tilt, 20.00%) * 0.0000)) skewX(calc(var(--peel-skew, 4.0deg) * -0.0000)); }
  8.33% { transform: translateX(calc(8.33% + var(--peel-tilt, 20.00%) * 0.1294)) skewX(calc(var(--peel-skew, 4.0deg) * -0.2588)); }
  16.67% { transform: translateX(calc(16.67% + var(--peel-tilt, 20.00%) * 0.2500)) skewX(calc(var(--peel-skew, 4.0deg) * -0.5000)); }
  25% { transform: translateX(calc(25.00% + var(--peel-tilt, 20.00%) * 0.3536)) skewX(calc(var(--peel-skew, 4.0deg) * -0.7071)); }
  33.33% { transform: translateX(calc(33.33% + var(--peel-tilt, 20.00%) * 0.4330)) skewX(calc(var(--peel-skew, 4.0deg) * -0.8660)); }
  41.67% { transform: translateX(calc(41.67% + var(--peel-tilt, 20.00%) * 0.4830)) skewX(calc(var(--peel-skew, 4.0deg) * -0.9659)); }
  50% { transform: translateX(calc(50.00% + var(--peel-tilt, 20.00%) * 0.5000)) skewX(calc(var(--peel-skew, 4.0deg) * -1.0000)); }
  58.33% { transform: translateX(calc(58.33% + var(--peel-tilt, 20.00%) * 0.4830)) skewX(calc(var(--peel-skew, 4.0deg) * -0.9659)); }
  66.67% { transform: translateX(calc(66.67% + var(--peel-tilt, 20.00%) * 0.4330)) skewX(calc(var(--peel-skew, 4.0deg) * -0.8660)); }
  75% { transform: translateX(calc(75.00% + var(--peel-tilt, 20.00%) * 0.3536)) skewX(calc(var(--peel-skew, 4.0deg) * -0.7071)); }
  83.33% { transform: translateX(calc(83.33% + var(--peel-tilt, 20.00%) * 0.2500)) skewX(calc(var(--peel-skew, 4.0deg) * -0.5000)); }
  91.67% { transform: translateX(calc(91.67% + var(--peel-tilt, 20.00%) * 0.1294)) skewX(calc(var(--peel-skew, 4.0deg) * -0.2588)); }
  100% { transform: translateX(calc(100.00% + var(--peel-tilt, 20.00%) * 0.0000)) skewX(calc(var(--peel-skew, 4.0deg) * -0.0000)); }
}

/* 卷筒起落：首尾各 9% 淡入淡出。不然 t=0 时筒身还挂在书右缘外、
   t=1 时又挂在书左缘上，收尾会留下一根突兀的竖条。 */
@keyframes curlFade {
  0%   { opacity: 0; }
  9%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { opacity: 0; }
}

.bleaf.turn-out { animation: peelOut 480ms cubic-bezier(.36,.06,.24,1) forwards; }
.bleaf.turn-in  { animation: peelIn  480ms cubic-bezier(.36,.06,.24,1) forwards; }
.bcurl.turn-out { animation: curlOut 480ms cubic-bezier(.36,.06,.24,1) forwards,
                            curlFade 480ms linear forwards; }
.bcurl.turn-in  { animation: curlIn  480ms cubic-bezier(.36,.06,.24,1) forwards,
                            curlFade 480ms linear forwards; }

@media (prefers-reduced-motion: reduce) {
  .bleaf.turn-out, .bleaf.turn-in { animation-duration: .01s; }
  .bcurl { display: none; }
}
/* __PEEL_KF_END__ */

.abody p { margin: 19px 0; line-height: 2.05; letter-spacing: .2px; }
.abody p + p { margin-top: 21px; }
/* v33：节内小标题（原整段加粗句） */
.h3sec {
  font-size: 16.5px; font-weight: 700; color: #1f4f4c; line-height: 1.55;
  margin: 27px 0 8px; padding: 4px 0 4px 11px; letter-spacing: .3px;
  border-left: 3px solid var(--teal);
}
.h3sec + p { margin-top: 11px; }
.h2sec + .h3sec { margin-top: 12px; }
.abody p.li { padding-left: 1.4em; text-indent: -1.4em; margin: 12px 0; line-height: 1.92; }
.abody strong { font-weight: 700; color: #1f4f4c; }
.abody table {
  width: 100%; border-collapse: collapse; font-size: 13px; margin: 14px 0;
  display: block; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: 10px;
}
.abody th, .abody td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; line-height: 1.65; }
.abody th { background: var(--teal-light); color: var(--teal-dark); font-weight: 650; white-space: nowrap; }
.abody td { min-width: 7em; }
.h2sec {
  font-size: 21px; font-weight: 700; color: var(--gold-deep);
  margin: 34px 0 13px; padding: 9px 13px;
  background: linear-gradient(90deg, var(--gold-light), transparent 80%);
  border-left: 3.5px solid var(--gold); border-radius: 3px 8px 8px 3px;
}
.abody .box { margin: 22px 0; padding: 15px 17px; }

/* ---------- 配图 ---------- */
.fig { margin: 20px 0 22px; }
.fig img {
  width: 100%; display: block; border-radius: 14px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.fig figcaption {
  text-align: center; font-size: 12.5px; color: #9a968c;
  margin-top: 9px; line-height: 1.6; letter-spacing: .3px;
}

/* ---------- 填写（书本模式） ---------- */
.fillmeta { padding: 10px 0 4px; border-bottom: 1px solid rgba(31, 110, 107, .10); }
.fillmeta .fd { font-size: 13px; color: var(--ink2); line-height: 1.65; }
.fillmeta .fm { font-size: 12px; color: #b0aca2; margin-top: 5px; }
.fillmeta .fillprog {
  display: inline-block; font-size: 11.5px; color: var(--teal); font-weight: 600;
  background: var(--teal-light); border-radius: 9px; padding: 2px 9px; margin-top: 7px;
}
.fillbody { padding: 12px 0 6px; }
/* 首页 · 每日记录快速入口 */
.dailycard {
  background: linear-gradient(160deg, #fdf6e8, #fbf1dc);
  border: 1px solid rgba(232, 161, 58, .35); border-radius: var(--radius);
  padding: 15px 16px 14px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.dchead { display: flex; align-items: baseline; gap: 10px; margin-bottom: 11px; }
.dctitle { font-size: 15.5px; font-weight: 700; color: var(--gold-deep); }
.dcsub { font-size: 12px; color: #c2a06a; }
.dcbtns { display: grid; grid-template-columns: repeat(auto-fit, minmax(82px, 1fr)); gap: 11px; }
.dcbtn {
  flex: 1; border: none; cursor: pointer; font-family: inherit;
  background: var(--card); border-radius: 14px; padding: 13px 10px 11px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  box-shadow: 0 2px 8px rgba(160, 106, 18, .12);
  transition: transform .12s ease;
}
.dcbtn:active { transform: scale(.95); }
.dcbtn .dcico { font-size: 26px; line-height: 1.2; color: var(--gold-deep); }
.dcbtn .dcico svg { display: block; width: 26px; height: 26px; margin: 0 auto; color: var(--gold-deep); }
.dcbtn .dcname { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.dcbtn .dcstat { font-size: 11.5px; color: var(--gold-deep); font-weight: 600; }
.dailytag {
  display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--gold-deep);
  background: linear-gradient(160deg, var(--gold-light), #f7e9cd);
  border: 1px solid rgba(232, 161, 58, .4); border-radius: 9px;
  padding: 3px 10px; margin-bottom: 8px; letter-spacing: 1px;
}
.gcell { margin-bottom: 13px; }
.gcell label { display: block; font-size: 13.5px; color: var(--ink2); margin-bottom: 6px; font-weight: 550; line-height: 1.6; }
.rowgrid { display: grid; gap: 11px; }
.c2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 360px) { .c2 { grid-template-columns: 1fr; } }
.checkrow {
  display: flex; gap: 11px; align-items: flex-start; padding: 12px 0;
  border-bottom: 1px dashed var(--line); font-size: 14.5px; line-height: 1.7;
}
.checkrow:last-child { border-bottom: none; }
.checkrow input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--teal); flex: none; }
.scorerow { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.scorerow .sl { flex: 1; font-size: 14px; line-height: 1.65; }
.scorerow input[type=range] { width: 118px; accent-color: var(--teal); height: 32px; }
.scorerow .sv { width: 30px; text-align: center; font-weight: 700; color: var(--teal); }
.savebar { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.savedinfo { font-size: 12px; color: #b0aca2; }
.dayrow { display: grid; grid-template-columns: 96px 1fr; gap: 8px; margin-bottom: 9px; }
@media (max-width: 360px) { .dayrow { grid-template-columns: 84px 1fr; } }

/* ---------- 提问箱 ---------- */
.covitem { padding: 13px 0; border-top: 1px dashed var(--line); }
.covitem .covt { font-weight: 700; color: var(--teal-dark); margin-bottom: 5px; font-size: 14.5px; }
.covitem p { font-size: 14px; color: var(--ink2); line-height: 1.8; }
.covitem p.covstep { margin: 10px 0; padding-left: 11px; border-left: 2px solid var(--teal); }
.covitem .covs-t { display: block; font-weight: 700; color: var(--teal-dark); font-size: 13.5px; margin-bottom: 2px; }
.qcard .qmeta { font-size: 12px; color: #b0aca2; margin-bottom: 7px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qcard .qbody { font-size: 14.5px; line-height: 1.85; white-space: pre-wrap; }
.qbadge { font-size: 11px; padding: 2px 8px; border-radius: 9px; font-weight: 600; }
.qbadge.qhard { background: var(--red-light); color: var(--red); }
.qbadge.qreview { background: var(--gold-light); color: var(--gold-deep); }
.qreply { margin-top: 12px; background: var(--teal-light); border-radius: 11px; padding: 11px 14px; }
.qreply .qreplytag { font-size: 12px; color: var(--teal); font-weight: 650; margin-bottom: 5px; }
.qreply p { font-size: 14px; line-height: 1.8; white-space: pre-wrap; }
.qwait { margin-top: 10px; font-size: 12.5px; color: #b0aca2; }
#askBody { margin-bottom: 12px; }
/* dual 表单（夫妻背靠背）：切换 + 只读对照 */
.dualtabs { display: flex; gap: 8px; margin: 10px 0 4px; }
.dualtab {
  flex: 1; padding: 9px 0; border-radius: 10px; border: 1.5px solid var(--line);
  background: #fff; font-size: 14px; font-weight: 600; color: var(--ink2);
}
.dualtab.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.dualnote {
  margin: 6px 0 2px; padding: 8px 12px; border-radius: 8px;
  background: #fdf6e9; color: #8a6d3b; font-size: 12.5px;
}
/* 后台：dual 表单两栏对照 */
.dualwrap { display: flex; gap: 14px; flex-wrap: wrap; }
.dualwrap > div { flex: 1 1 260px; min-width: 260px; }
.dualhead {
  font-weight: 700; font-size: 13px; color: var(--teal);
  padding: 6px 0 4px; border-bottom: 1px dashed var(--line); margin-bottom: 6px;
}
/* 每日表单「记好了」确认键 */
.donebtn {  min-width: 210px; min-height: 50px; font-size: 16.5px; font-weight: 700;
  border-radius: 26px; letter-spacing: 2px;
  box-shadow: 0 4px 14px rgba(31, 110, 107, .25);
}
.donebtn:active { transform: scale(.97); }
.donemsg {
  margin-top: 10px; font-size: 14px; font-weight: 650; color: var(--teal-dark);
  animation: accIn .25s ease;
}
/* 精选问答墙 */
.featcard { border-color: rgba(232, 161, 58, .4); background: linear-gradient(170deg, #fffdf8, var(--card) 55%); }
.featitem { padding: 13px 0; border-top: 1px dashed var(--line); }
.featitem:first-of-type { border-top: none; padding-top: 2px; }
.featq { font-size: 12.5px; font-weight: 700; color: var(--gold-deep); margin-bottom: 6px; }
.featq span { font-weight: 400; color: #b0aca2; }

/* ---------- 管理员端共用 ---------- */
.passwrap { max-width: 380px; margin: 10vh auto; }
.famrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.famrow .fn { font-weight: 650; }
.famrow .fc { font-size: 13px; color: var(--teal); letter-spacing: 1.5px; font-weight: 600; }
.famrow .fi { font-size: 12px; color: var(--ink2); }

@media (max-width: 380px) {
  .page { padding: 14px 12px 104px; }
  .cover { padding: 24px 18px 20px; }
  .cover h1 { font-size: 26px; }
  .abody p { margin: 15px 0; line-height: 1.95; }
  .h2sec { margin: 26px 0 10px; }
  .bookstage { padding: 10px 9px 0; }
  .book { padding: 14px 15px 18px; }
  .btitle { font-size: 21px; }
}

/* ---------- v17：阶段定位导读 + 三册入口 ---------- */
.quiz .quizsub { font-size: 12.8px; color: var(--ink2); margin: -4px 0 4px; line-height: 1.6; }
.quiz .qq { font-size: 14.5px; font-weight: 600; color: var(--ink); margin: 15px 0 8px; }
.quiz .opt {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 13px; font-size: 13.5px; line-height: 1.55; color: var(--ink);
  margin-bottom: 8px; transition: border-color .15s, background .15s;
}
.quiz .opt:active { transform: scale(.985); }
.quiz .opt.sel { border-color: var(--teal); background: var(--teal-light); font-weight: 600; }
.quizres {
  background: var(--gold-light); border: 1px solid #f0ddb8; border-radius: 12px;
  padding: 13px 14px; font-size: 13.5px; line-height: 1.7; color: #6b511a; margin-top: 12px;
}
.vbtn {
  background: var(--teal); color: #fff; border: 0; border-radius: 20px;
  padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.vbtn.ghost { background: transparent; color: var(--teal); border: 1px solid var(--teal); }
.volwrap { display: flex; flex-direction: column; gap: 10px; }
.volcard {
  display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 15px; width: 100%;
}
.volcard:active { transform: scale(.985); }
.volcard .vt { font-size: 15px; font-weight: 700; color: var(--teal-dark); }
.volcard .vd { font-size: 12.6px; color: var(--ink2); margin-top: 4px; line-height: 1.6; }
.volcard .varrow {
  margin-left: auto; font-size: 22px; color: var(--teal); opacity: .55; flex: none;
}

/* ---------- v18：阶段成果呈现 ---------- */
.sumlinks { display: flex; flex-direction: column; gap: 8px; }
.sumlinks button {
  text-align: left; background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 13px; font-size: 14px; font-weight: 600;
  color: var(--teal-dark); cursor: pointer;
}
.sumlinks button:active { transform: scale(.985); }
.sumhero { position: relative; border-radius: 16px; overflow: hidden; margin: 14px 0 16px; box-shadow: var(--shadow); background: var(--teal-light); }
.sumhero img { width: 100%; display: block; min-height: 120px; object-fit: cover; }
.sumcap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px;
  background: linear-gradient(transparent, rgba(16, 56, 53, .82));
  color: #fff; font-size: 14.5px; font-weight: 700; letter-spacing: .5px;
}
.sumtl { font-size: 14px; line-height: 1.75; color: var(--ink); }
.sumstats { display: flex; gap: 10px; margin-top: 12px; }
.sumstat {
  flex: 1; background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 6px; text-align: center;
}
.sumstat b { font-size: 24px; background: linear-gradient(150deg, #2e9d97, var(--teal-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sumstat span { display: block; font-size: 11.5px; color: var(--ink2); margin-top: 2px; }
.sumblock {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 16px 12px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.sumbt { font-size: 15px; font-weight: 700; color: var(--teal-dark); margin-bottom: 4px; }
.sumrow { padding: 9px 0; border-top: 1px dashed var(--line); }
.sumrow span { font-size: 12px; color: var(--gold-deep); font-weight: 600; display: block; margin-bottom: 3px; }
.sumrow p { font-size: 14px; line-height: 1.7; color: var(--ink); white-space: pre-wrap; word-break: break-word; }

/* ---------- v19：基线评估前置 + 复评轨迹 ---------- */
.bdeltas {
  background: var(--teal-light); border: 1px solid #cfe3e0; border-radius: 12px;
  padding: 10px 12px; margin-top: 10px; display: flex; flex-wrap: wrap; gap: 7px; align-items: center;
}
.bdlab { font-size: 12px; color: var(--ink2); width: 100%; }
.bdelta {
  font-size: 12.5px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 4px 10px; color: var(--ink);
}
.bdelta b.up { color: var(--teal); }
.bdelta b.dn { color: var(--gold-deep); }

/* ---------- v33：四阶段地图 + 每日一句 ---------- */
.stagecard { position: relative; padding-top: 24px; overflow: hidden; }
.stagecard .schip {
  position: absolute; top: 15px; right: 16px; font-size: 11px; letter-spacing: 1.5px;
  color: var(--teal); background: var(--teal-light); border-radius: 20px;
  padding: 3px 10px; font-weight: 600;
}
.smap { display: block; width: 100%; height: auto; margin: 2px 0 0; }
.sroad, .sroad-hi { fill: none; stroke-linecap: round; stroke-width: 3.2; }
.sroad { stroke: #e9e5db; stroke-dasharray: 4 6; }
.sroad-hi {
  stroke: var(--teal); stroke-dasharray: 300; stroke-dashoffset: 300;
  transition: stroke-dashoffset 1.7s cubic-bezier(.35, 0, .2, 1) .12s;
}
.snode {
  cursor: pointer; transform-box: fill-box; transform-origin: center;
  animation: nodeIn .5s cubic-bezier(.34, 1.4, .64, 1) both;
}
@keyframes nodeIn {
  from { opacity: 0; transform: scale(.3); }
  to { opacity: 1; transform: scale(1); }
}
.snode .sd { fill: #fff; stroke: #dcd7cb; stroke-width: 2.2; transition: all .25s ease; }
.snode.past .sd { fill: var(--teal); stroke: var(--teal); }
.snode.cur .sd { fill: #fff; stroke: var(--gold); stroke-width: 3; }
.snode .sdot { fill: var(--gold); }
.snode .tick { stroke: #fff; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.snode .pulse {
  fill: rgba(232, 161, 58, .3); transform-box: fill-box; transform-origin: center;
  animation: spulse 2.6s ease-out infinite;
}
@keyframes spulse {
  0% { transform: scale(.55); opacity: .85; }
  70% { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
.snode .sname { font-size: 12.5px; fill: var(--ink2); text-anchor: middle; font-family: inherit; }
.snode.past .sname { fill: var(--teal-dark); font-weight: 600; }
.snode.cur .sname { fill: var(--gold-deep); font-weight: 700; font-size: 13.5px; }
.snode.future .sname { fill: #b5b0a4; }
.snode:active .sd { transform: scale(.9); }
.sdetail {
  margin-top: 8px; background: linear-gradient(160deg, #fcfbf8, #f5f3ed);
  border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px;
  animation: fadeUp .35s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.sdh { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 7px; }
.sdnum { font-size: 11px; color: var(--teal); background: var(--teal-light); border-radius: 20px; padding: 2px 8px; font-weight: 600; }
.sdname { font-size: 20px; font-weight: 700; color: var(--teal-dark); }
.sdsub { font-size: 12.5px; color: var(--ink2); }
.sdgoal { font-size: 15px; line-height: 1.8; color: var(--ink); margin-bottom: 9px; }
.sdmark {
  font-size: 13px; line-height: 1.75; color: var(--ink2); background: #fff;
  border-radius: 10px; padding: 8px 11px; border-left: 3px solid var(--gold);
}
.sdl { display: block; font-size: 11px; color: var(--gold-deep); font-weight: 700; letter-spacing: .5px; margin-bottom: 2px; }
.sdcur { margin-top: 10px; font-size: 12px; color: var(--gold-deep); font-weight: 600; letter-spacing: 1px; }
.snote { font-size: 11.5px; color: #b0aca2; line-height: 1.75; margin-top: 11px; }
.vbtn.sm { padding: 7px 13px; font-size: 12.5px; margin-top: 10px; min-height: 34px; }

.dquote {
  position: relative; background: linear-gradient(150deg, #fff, #fdfaf2);
  border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 16px; padding: 21px 17px 13px; margin: 16px 0; box-shadow: var(--shadow);
  animation: fadeUp .6s ease .4s both;
}
.dqm {
  position: absolute; top: 0; left: 11px; font-size: 46px; line-height: 1;
  color: rgba(232, 161, 58, .26); font-family: Georgia, "Songti SC", serif;
}
.dqt {
  position: relative; z-index: 1; font-size: 17.5px; line-height: 1.95;
  color: var(--ink); font-weight: 550; letter-spacing: .3px;
}
.dqfoot { display: flex; justify-content: space-between; align-items: center; margin-top: 11px; }
.dqsrc { font-size: 11.5px; color: #b0aca2; letter-spacing: .5px; }
.dqnew {
  background: none; border: 1px solid var(--line); border-radius: 20px; padding: 4px 11px;
  font-size: 11.5px; color: var(--ink2); cursor: pointer; font-family: inherit;
}
.dqnew:active { background: var(--teal-light); color: var(--teal-dark); }

@media (prefers-reduced-motion: reduce) {
  .sroad-hi, .snode, .snode .pulse, .sdetail, .dquote { animation: none; transition: none; }
}

/* ---------- v35：板块底色区分 ---------- */
.card.tint-teal   { background: linear-gradient(165deg, #eaf5f2, #f8fcfa); }
.card.tint-gold   { background: linear-gradient(165deg, #faf3e1, #fdfaf2); }
.card.tint-orange { background: linear-gradient(165deg, #fcefdf, #fefaf4); }
.card.tint-rose   { background: linear-gradient(165deg, #f9edea, #fdf7f5); }
.card.tint-sage   { background: linear-gradient(165deg, #ecf3e9, #f8fbf6); }
.dailycard.tint-orange {
  background: linear-gradient(165deg, #fcefdf, #fefaf4);
  border: 1px solid #f2e3cc;
}
/* 地图场景：未来站淡出、当前站微亮 */
.snode.future .sscene { opacity: .42; }
.snode.past   .sscene { opacity: .8; }
.snode.cur    .sscene { filter: drop-shadow(0 1.5px 2px rgba(31,110,107,.25)); }
.ssmoon { animation: none; }

/* ---------- v35：日记 tab「点亮橙光的脚印」 ---------- */
.diaryhead {
  background: linear-gradient(150deg, #fcefdf, #fdf6ec 60%, #f8fbf6);
  border: 1px solid #f2e3cc; border-radius: 18px;
  padding: 22px 17px 17px; margin: 14px 0 16px; box-shadow: var(--shadow);
}
.diaryhead .dht { font-size: 24px; font-weight: 800; color: #b06a12; letter-spacing: .5px; }
.diaryhead .dhs { font-size: 13px; color: #c98f3d; margin-top: 3px; letter-spacing: 1px; }
.diaryhead .dhn { font-size: 13.5px; line-height: 1.95; color: var(--ink2); margin-top: 11px; }
.dcard { padding: 0; overflow: hidden; }
.dcard.tint-orange { border: 1px solid #f2e3cc; }
.dcard.tint-teal   { border: 1px solid #d8e9e4; }
.dcard.tint-sage   { border: 1px solid #dde9d5; }
.dchead2 {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 15px 15px; background: none; border: none; cursor: pointer;
  text-align: left; font-family: inherit;
}
.dcard.open .dchead2 { padding-bottom: 11px; }
.dlico {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.75); color: var(--teal);
  border: 1px solid rgba(0,0,0,.05);
}
.dcard.tint-orange .dlico { color: #c98218; }
.dcard.tint-sage .dlico { color: #5e8a4f; }
.dcmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dcname2 { font-size: 16.5px; font-weight: 700; color: var(--ink); }
.dcsub2 { font-size: 12px; color: var(--ink2); line-height: 1.5; }
.dcstat2 { font-size: 11px; color: #a8a49b; white-space: nowrap; }
.dcchev { font-size: 13px; color: #b5b0a4; transition: transform .25s ease; }
.dcard.open .dcchev { transform: rotate(180deg); }
.dcard .dbody { padding: 0 15px 15px; }
.dcard .dbody.hidden { display: none; }
.dcard .fillmeta { margin-bottom: 4px; }
.dcgo { display: block; margin: 10px auto 0; min-width: 200px; }

/* ---------- v33：三张图 ---------- */
.chrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 4px; }
.chbtn {
  background: linear-gradient(160deg, #fcfbf7, #f5f3ed); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 7px 11px; cursor: pointer; font-family: inherit;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.chbtn:active { background: var(--teal-light); }
.chthumb { width: 100%; height: 84px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.chname { font-size: 13px; font-weight: 700; color: var(--teal-dark); line-height: 1.3; }
.chsub { font-size: 10.5px; color: #a8a49b; line-height: 1.4; }
.chnote { font-size: 11.5px; color: #b0aca2; line-height: 1.75; margin-top: 10px; }
.chsvg { display: block; width: 100%; height: auto; }
.chthumb .chsvg { width: auto; max-height: 84px; max-width: 100%; }
.chthumb .glabel, .chthumb .gletter, .chthumb .gmid2,
.chthumb .slabel, .chthumb .snum, .chthumb .smid2 { display: none; }
.chthumb .gmid1 { font-size: 26px; }
.chthumb .smid { font-size: 22px; }
.chthumb .w6grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; width: 100%; }
.chthumb .w6c { padding: 4px; border-left-width: 2px; border-radius: 6px; align-items: center; }
.chthumb .w6c b, .chthumb .w6c i { display: none; }
.chthumb .w6n { font-size: 12px; }

.gring { fill: none; stroke: #efece4; stroke-width: 26; }
.gseg { fill: none; stroke-width: 26; }
.g0 { stroke: #14524f; } .g1 { stroke: #1f6e6b; } .g2 { stroke: #2e9d97; }
.g3 { stroke: #e8a13a; } .g4 { stroke: #c9873a; }
.gletter { fill: #fff; font-size: 17px; font-weight: 700; text-anchor: middle; font-family: inherit; }
.glabel { fill: var(--ink2); font-size: 12px; font-family: inherit; }
.gmid1 { text-anchor: middle; font-size: 19px; font-weight: 700; fill: var(--teal-dark); letter-spacing: 1px; }
.gmid2 { text-anchor: middle; font-size: 11.5px; fill: #a09b90; font-family: inherit; }
.starp { fill: var(--gold-light); stroke: var(--gold); stroke-width: 2.5; stroke-linejoin: round; }
.slabel { font-size: 12px; fill: var(--gold-deep); font-weight: 650; font-family: inherit; }
.snum { font-size: 17px; fill: var(--gold); text-anchor: middle; font-family: inherit; }
.smid { text-anchor: middle; font-size: 15px; font-weight: 700; fill: var(--gold-deep); }
.smid2 { text-anchor: middle; font-size: 10.5px; fill: #b09a6e; font-family: inherit; }

.w6grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.w6c {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--teal);
  border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px;
}
.w6n { font-size: 11px; color: var(--teal); font-weight: 700; letter-spacing: 1px; }
.w6c b { font-size: 14.5px; color: var(--ink); font-weight: 700; }
.w6c i { font-size: 11.5px; color: var(--ink2); font-style: normal; line-height: 1.6; }

.chartmodal {
  position: fixed; inset: 0; background: rgba(28, 30, 29, .62); z-index: 80;
  display: flex; align-items: center; justify-content: center; padding: 18px;
  overflow-y: auto; animation: fadeIn .2s ease;
}
.cmpanel {
  background: var(--card); border-radius: 18px; padding: 20px 16px; max-width: 520px;
  width: 100%; position: relative; box-shadow: var(--shadow-lift);
  animation: cmpop .26s cubic-bezier(.2, .9, .3, 1);
}
.cmclose {
  position: absolute; top: 6px; right: 8px; background: none; border: none;
  font-size: 26px; line-height: 1; color: #b0aca2; cursor: pointer; padding: 4px 9px;
}
.cmname { font-size: 20px; font-weight: 700; color: var(--teal-dark); }
.cmsub { font-size: 12.5px; color: var(--ink2); margin-top: 2px; }
.cmbody { margin: 14px 0 14px; }
.cmtip, .cmwhere {
  font-size: 13.5px; line-height: 1.8; color: var(--ink2); background: #faf8f3;
  border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; border-left: 3px solid var(--teal);
}
.cmwhere { border-left-color: var(--gold); margin-bottom: 0; }
.cmlab { display: block; font-size: 11px; font-weight: 700; color: var(--teal-dark); letter-spacing: .5px; margin-bottom: 3px; }
.cmwhere .cmlab { color: var(--gold-deep); }
.noscroll { overflow: hidden; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cmpop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- v33：长呼气 ---------- */
.brsub { font-size: 13.5px; color: var(--ink2); line-height: 1.8; margin-bottom: 2px; }
.brwrap { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 12px 0 8px; }
.bring {
  width: 158px; height: 158px; border-radius: 50%; border: 2px dashed #e6e2d8;
  display: flex; align-items: center; justify-content: center;
}
.brcore {
  width: 92px; height: 92px; border-radius: 50%; color: #fff;
  background: linear-gradient(150deg, #2e9d97, var(--teal-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; font-weight: 700; letter-spacing: 3px;
  transition: transform 4s ease-in-out, background 4s ease;
}
.brcore.in { transform: scale(1.34); background: linear-gradient(150deg, #3fb3ac, #1f8b86); }
.brcore.out { transform: scale(.84); background: linear-gradient(150deg, #e8a13a, #c9873a); transition: transform 6s ease-in-out, background 6s ease; }
.brmeta { font-size: 12.5px; color: var(--ink2); }
.brmeta span { font-weight: 700; color: var(--teal); }
.brbtns { display: flex; gap: 9px; justify-content: center; margin-top: 2px; }

/* ---------- v34：三张动画示意图（消退爆发／三叉戟／定海针） ---------- */
.skwrap { margin: 18px 0 4px; }
.skhead { padding: 0 3px 9px; }
.skhead h3 { font-size: 19.5px; font-weight: 700; color: var(--teal-dark); margin: 0 0 3px; line-height: 1.4; }
.sksub { font-size: 12.5px; color: #a8a49b; line-height: 1.55; }
.skstrip {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.skstrip::-webkit-scrollbar { display: none; }
.skcard {
  flex: 0 0 100%; scroll-snap-align: center; box-sizing: border-box;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 13px 13px 15px; box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}
.sksvg { margin: 0 0 2px; }
.skch { display: block; width: 100%; height: auto; }
.sktname { font-size: 16.5px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.sktsub { font-size: 12px; color: var(--teal); margin-top: 2px; line-height: 1.5; }
.skkeys { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.skkeys li { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; line-height: 1.75; color: var(--ink2); }
.skk {
  flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; background: var(--teal);
  color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center;
  justify-content: center; margin-top: 3px;
}
.skdots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.skdot { width: 6px; height: 6px; border-radius: 50%; background: #dcd8ce; cursor: pointer; transition: background .2s, width .2s; }
.skdot.on { background: var(--teal); width: 18px; border-radius: 3px; }
.cmkeys { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cmkeys li { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; line-height: 1.8; color: var(--ink2); }
.cmreplay { margin-top: 12px; }

/* 图形默认态（动画开始前：线条收起、其余透明） */
.skbase { fill: none; stroke: #dedad0; stroke-width: 1.6; stroke-dasharray: 5 5; opacity: 0; }
.skbaselabel { font-size: 10.5px; fill: #b0aca2; font-family: inherit; opacity: 0; }
.skdraw {
  fill: none; stroke: var(--teal); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
}
.skpeak { fill: var(--gold); opacity: 0; }
.skpulse { fill: none; stroke: var(--gold); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.sk4th { fill: none; stroke: #c9c5ba; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 4 5; opacity: 0; }
.skyard { fill: var(--teal-light); opacity: 0; }
.skgrass { fill: none; stroke: #9fd3c8; stroke-width: 2.4; stroke-linecap: round; opacity: 0; }
.skyardw { font-size: 19px; font-weight: 700; fill: var(--teal-dark); text-anchor: middle; font-family: inherit; opacity: 0; }
.skyards { font-size: 10.5px; fill: #8e8a80; text-anchor: middle; font-family: inherit; opacity: 0; }
.sknum { opacity: 0; transform-box: fill-box; transform-origin: center; }
.sknum circle { fill: var(--gold); }
.sknum text { fill: #fff; font-size: 11px; font-weight: 700; text-anchor: middle; font-family: inherit; }
.skstep { opacity: 0; }
/* 只给没标 fill 的 skstep 兜底金色；标了 fill 的按自己的颜色渲染（CSS fill 会压过 SVG 属性，故用 :not 放行） */
.skstep:not([fill]) { fill: var(--gold-light); }
.sklabel { font-size: 10px; fill: #7a6f52; font-weight: 600; text-anchor: middle; font-family: inherit; opacity: 0; }
.sklabel2 { font-size: 9px; }
.sknote { font-size: 10px; fill: #b0aca2; font-family: inherit; opacity: 0; }
.sknote.sktop { fill: var(--teal); font-weight: 700; }

@keyframes skdraw { to { stroke-dashoffset: 0; } }
@keyframes skfade { to { opacity: 1; } }
@keyframes skpop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }
@keyframes skping { 0% { opacity: .5; transform: scale(.6); } 80%, 100% { opacity: 0; transform: scale(1.7); } }
.skcard.in .skdraw, .cmbody.in .skdraw { animation: skdraw .85s ease-out forwards; }
.skcard.in .skd1, .cmbody.in .skd1 { animation-delay: .1s; }
.skcard.in .skd2, .cmbody.in .skd2 { animation-delay: .62s; }
.skcard.in .skd3, .cmbody.in .skd3 { animation-delay: .86s; }
.skcard.in .skd4, .cmbody.in .skd4 { animation-delay: 1.06s; }
.skcard.in .skd5, .cmbody.in .skd5 { animation-delay: 1.26s; }
.skcard.in .skbase, .cmbody.in .skbase,
.skcard.in .skbaselabel, .cmbody.in .skbaselabel { animation: skfade .4s ease-out forwards; }
.skcard.in .skpeak, .cmbody.in .skpeak { animation: skfade .4s ease-out 1s forwards; }
.skcard.in .skpulse, .cmbody.in .skpulse { animation: skping 1.5s ease-out 1.3s 3; }
.skcard.in .sk4th, .cmbody.in .sk4th { animation: skfade .6s ease-out 1.5s forwards; }
.skcard.in .skyard, .cmbody.in .skyard { animation: skfade .5s ease-out forwards; }
.skcard.in .skgrass, .cmbody.in .skgrass { animation: skfade .5s ease-out 1.2s forwards; }
.skcard.in .skyardw, .cmbody.in .skyardw { animation: skfade .5s ease-out 1.05s forwards; }
.skcard.in .skyards, .cmbody.in .skyards { animation: skfade .5s ease-out 1.2s forwards; }
.skcard.in .sknum, .cmbody.in .sknum { animation: skpop .42s cubic-bezier(.2, .9, .3, 1.5) forwards; }
.skcard.in .n1, .cmbody.in .n1 { animation-delay: .5s; }
.skcard.in .n2, .cmbody.in .n2 { animation-delay: .95s; }
.skcard.in .n3, .cmbody.in .n3 { animation-delay: 1.35s; }
.skcard.in .n4, .cmbody.in .n4 { animation-delay: 1.65s; }
.skcard.in .n5, .cmbody.in .n5 { animation-delay: 1.85s; }
.skcard.in .skstep, .cmbody.in .skstep { animation: skfade .4s ease-out forwards; }
.skcard.in .sks1, .cmbody.in .sks1 { animation-delay: .4s; }
.skcard.in .sks2, .cmbody.in .sks2 { animation-delay: .75s; }
.skcard.in .sks3, .cmbody.in .sks3 { animation-delay: 1.1s; }
.skcard.in .sks4, .cmbody.in .sks4 { animation-delay: 1.4s; }
.skcard.in .sks5, .cmbody.in .sks5 { animation-delay: 1.65s; }
.skcard.in .sklabel, .cmbody.in .sklabel { animation: skfade .3s ease-out forwards; }
.skcard.in .skl1, .cmbody.in .skl1 { animation-delay: .45s; }
.skcard.in .skl2, .cmbody.in .skl2 { animation-delay: .8s; }
.skcard.in .skl3, .cmbody.in .skl3 { animation-delay: 1.15s; }
.skcard.in .skl4, .cmbody.in .skl4 { animation-delay: 1.45s; }
.skcard.in .skl5, .cmbody.in .skl5 { animation-delay: 1.7s; }
.skcard.in .sknote, .cmbody.in .sknote { animation: skfade .4s ease-out forwards; }
.skcard.in .sknote.sktop, .cmbody.in .sknote.sktop { animation-delay: 2s; }
@media (prefers-reduced-motion: reduce) {
  .skcard .skdraw, .cmbody .skdraw { animation: none; stroke-dashoffset: 0; }
  .skbase, .skbaselabel, .skpeak, .sk4th, .skyard, .skgrass, .skyardw, .skyards, .sknum { animation: none; opacity: 1; }
  .skpulse { animation: none; opacity: 0; }
}

/* ---------- v43：1.1 工具列表（点击卡头展开详情） ---------- */
.tlcard { border: 1px solid #e5e0d5; border-radius: 12px; margin: 12px 0; overflow: hidden; background: #fffdf8; }
.tlhead { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px 9px 10px; background: none; border: none; text-align: left; font-family: inherit; cursor: pointer; }
.tlmini { flex: 0 0 86px; }
.tlmini svg { width: 100%; height: auto; display: block; }
.tlmeta { flex: 1; min-width: 0; }
.tlname { display: block; font-size: 15px; font-weight: 700; color: #4a4436; }
.tlcue { display: block; font-size: 11.5px; color: #a8a49b; margin-top: 3px; line-height: 1.5; }
.tlnext { flex: 0 0 auto; color: #c9c4b8; font-size: 12px; transition: transform .25s; }
.tlcard.open .tlnext { transform: rotate(90deg); }
.tlbody { padding: 2px 14px 10px; border-top: 1px dashed #e5e0d5; animation: skfade .35s ease-out; }
.tlbody[hidden] { display: none; }
/* mini 图里的 sk 动画：默认规则只在 .skcard.in 下播，这里给 .tlmini 开同等通道 */
.tlmini .skdraw { animation: skdraw .85s ease-out forwards; }
.tlmini .skstep, .tlmini .sklabel, .tlmini .sknote { animation: skfade .4s ease-out forwards; }
.tlmini .skd1 { animation-delay: .1s; } .tlmini .skd2 { animation-delay: .45s; }
.tlmini .skd3 { animation-delay: .62s; } .tlmini .skd4 { animation-delay: .86s; }
.tlmini .sks1 { animation-delay: .4s; } .tlmini .sks2 { animation-delay: .55s; }
.tlmini .sks3 { animation-delay: .75s; } .tlmini .sks4 { animation-delay: .95s; }
.tlmini .sks5 { animation-delay: 1.15s; }
.tlmini .skl4 { animation-delay: 1.1s; } .tlmini .skl5 { animation-delay: 1.3s; }
@media (prefers-reduced-motion: reduce) {
  .tlmini .skdraw { animation: none; stroke-dashoffset: 0; }
  .tlmini .skstep, .tlmini .sklabel, .tlmini .sknote { animation: none; opacity: 1; }
  .tlloop-breath, .tltxt-in, .tltxt-out, .tlloop-wave, .tlloop-bob, .tlsense { animation: none; }
  .tltxt-out, .tlsense { opacity: 0; }
}
/* v44：mini 循环动画——呼吸圈缩放、吸/呼文字交替、波浪平移、冰块浮沉、五感轮亮 */
.tlloop-breath { animation: tlbreath 10s ease-in-out 1.8s infinite both; transform-box: fill-box; transform-origin: center; }
.tltxt-in { animation: tltxtin 10s linear 1.8s infinite both; }
.tltxt-out { animation: tltxtout 10s linear 1.8s infinite both; }
.tlloop-wave { animation: tlwave 1.7s linear infinite; }
.tlloop-wave.w2 { animation-duration: 2.3s; }
.tlloop-bob { animation: tlbob 3.4s ease-in-out infinite both; transform-box: fill-box; transform-origin: center; }
.tlloop-bob.b2 { animation-delay: -1.7s; }
.tlsense { animation: tlsense 2.6s linear infinite both; }
.tlse1 { animation-delay: 0s; } .tlse2 { animation-delay: .52s; } .tlse3 { animation-delay: 1.04s; }
.tlse4 { animation-delay: 1.56s; } .tlse5 { animation-delay: 2.08s; }
@keyframes tlbreath { 0% { transform: scale(.55); opacity: .5; } 40% { transform: scale(1); opacity: 1; } 100% { transform: scale(.55); opacity: .5; } }
@keyframes tltxtin { 0%,36% { opacity: 1; } 42%,94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes tltxtout { 0%,36% { opacity: 0; } 42%,94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes tlwave { to { transform: translateX(-8px); } }
@keyframes tlbob { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-2.4px) rotate(-8deg); } }
@keyframes tlsense { 0% { opacity: 0; } 6% { opacity: 1; } 30%,100% { opacity: 0; } }

/* ---------- v20：阶段小结打印 ---------- */
.sumtop { display: flex; gap: 10px; justify-content: space-between; margin-bottom: 2px; }
@media print {
  #tabbar, .booknav, .bookhint, #sumBack, #sumPrint { display: none !important; }
  body { background: #fff; }
  .page { padding: 0 6mm; max-width: 100%; }
  .card, .sumblock { box-shadow: none; border-color: #ddd; break-inside: avoid; }
  .sumblock, .card { margin-bottom: 9px; }
  .sumhero { border-radius: 8px; margin: 6px 0 12px; }
  .sumcap { color: #fff; }
}

/* v39：日记改版——单日表单 + 历史脚印列表 */
.dhmode { font-size: 12.5px; color: var(--teal); font-weight: 600; margin: 10px 0 8px; }
.dhform .gcell { margin-bottom: 8px; }
.dhform textarea { min-height: 72px; }
.dhist { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.dhisthead { font-size: 12.5px; color: var(--ink2); margin-bottom: 8px; }
.dhistempty { font-size: 13px; color: var(--ink2); padding: 12px 0; text-align: center; }
.histrow { display: block; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; font: inherit; color: var(--ink); }
.histrow:active { background: #f7f4ee; }
.hrowtop { display: flex; gap: 8px; align-items: center; }
.hdate { flex: none; font-size: 12px; font-weight: 700; color: var(--teal); background: var(--teal-light); border-radius: 8px; padding: 3px 8px; }
.hbody { display: block; flex: 1; font-size: 13.5px; line-height: 1.65; word-break: break-word; margin-top: 7px; }
.hbody b { font-size: 11px; color: var(--gold-deep); border: 1px solid var(--gold-light); background: var(--gold-light); border-radius: 6px; padding: 1px 5px; margin-right: 6px; font-weight: 600; }
.hsub { display: block; font-size: 12.5px; color: var(--ink2); margin-top: 2px; }
.htag { flex: none; font-size: 11px; font-weight: 600; border-radius: 8px; padding: 3px 8px; background: rgba(0,0,0,.05); color: var(--ink2); }
.htag.stable { color: var(--teal); background: var(--teal-light); }
.htag.up { color: var(--gold-deep); background: var(--gold-light); }
.htag.down { color: var(--red); background: var(--red-light); }
.hchev { flex: none; margin-left: auto; font-size: 11px; color: var(--ink2); border: 1px solid var(--line); border-radius: 8px; padding: 2px 7px; }

/* v46 呼吸跟练：4 秒吸（圈涨）6 秒呼（圈收），10 秒一轮 */
.breathbox { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 14px 0; padding: 16px 12px 14px; background: #f2f8f6; border: 1px solid #cfe3de; border-radius: 14px; }
.bstage { position: relative; width: 168px; height: 168px; display: flex; align-items: center; justify-content: center; }
.bring { position: absolute; inset: 0; margin: auto; width: 128px; height: 128px; border-radius: 50%; background: #5aa99e; box-shadow: 0 4px 14px rgba(61,143,133,.25); transform: scale(.6); }
.bring::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.4), transparent 62%); }
.bring.bhalo { inset: 0; margin: auto; width: 156px; height: 156px; background: none; border: 2px dashed #8fc7bd; box-shadow: none; opacity: .5; }
.bphase { position: relative; z-index: 1; display: grid; place-items: center; font-size: 30px; font-weight: 800; color: #fff; text-shadow: 0 1px 6px rgba(44,122,112,.45); letter-spacing: 2px; }
.bphase .bin, .bphase .bout { grid-area: 1 / 1; }
.bphase .bout { opacity: 0; }
.bphase .bin, .bphase .bout { animation-duration: 11.7s; animation-timing-function: linear; animation-iteration-count: infinite; animation-play-state: paused; }
.breathbox.run .bring { animation: bscale 11.7s ease-in-out infinite, bcol 11.7s linear infinite; }
.breathbox.run .bring.bhalo { animation-name: bhalo; }
.breathbox.run .bphase .bin { animation-name: bphin; animation-play-state: running; }
.breathbox.run .bphase .bout { animation-name: bphout; animation-play-state: running; }
/* v54: 周期 10s→11.7s 适配正言重录的引导语音（吸气段≈4.2s=36%，呼气段拖长更利于降心率） */
@keyframes bcol { 0%, 36% { background-color: #5aa99e; } 42%, 96% { background-color: #d9973f; } 100% { background-color: #5aa99e; } }
@keyframes bscale { 0% { transform: scale(.6); animation-timing-function: ease-in; } 36% { transform: scale(1); animation-timing-function: ease-out; } 100% { transform: scale(.6); } }
@keyframes bhalo { 0%, 100% { transform: scale(.6); opacity: .3; } 36%, 38% { transform: scale(1); opacity: .7; } }
@keyframes bphin { 0%, 36% { opacity: 1; } 42%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes bphout { 0%, 36% { opacity: 0; } 42%, 96% { opacity: 1; } 100% { opacity: 0; } }
/* v56 人形动作演示：把正文描述的动作画出来——吸（0-36%）鼻子进气＋闭嘴＋肚子鼓到虚线圈；
   呼（42-96%）噘嘴吹气＋肚子收回；肩位见 v57。周期同 11.7s */
.bfig { width: 100%; max-width: 340px; }
.bfigcap { font-size: 12.5px; line-height: 1.6; color: #4a6d68; margin-bottom: 6px; }
.bfigcap p { margin: 0 0 3px; }
.bfigcap p:last-child { margin-bottom: 0; }
.bfigure { display: block; width: 100%; height: auto; }
.bfigure path, .bfigure circle, .bfigure ellipse { fill: none; stroke: #3d8f85; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.bfigure .figref { stroke: #a9d3cb; stroke-width: 1.6; stroke-dasharray: 4 4; }
.bfigure .figbelly { fill: rgba(90,169,158,.22); stroke: #4f9f94; stroke-width: 2; transform-box: fill-box; transform-origin: 50% 50%; transform: scale(.62, .7); }
.bfigure .figfin { fill: #3d8f85; stroke: none; }
.bfigure .figin { opacity: 0; }
.bfigure .figout { stroke: #d9973f; opacity: 0; }
.bfigure .figround { fill: #d9973f; stroke: #d9973f; transform-box: fill-box; transform-origin: 50% 50%; opacity: 0; }
.bfigure .figlab { font-size: 11.5px; font-weight: 700; }
.bfigure .figlabin { fill: #3d8f85; opacity: 0; }
.bfigure .figlabout { fill: #c9822c; opacity: 0; }
.bfigure .figshghost { opacity: 0; }
.bfigure .figshghost path { stroke: #8fc7bd; stroke-width: 1.7; stroke-dasharray: 4 4; }
.bfigure .figsharrows { opacity: 0; }
.bfigure .figsharrows path { stroke: #d9973f; }
.bfigure .figsfin { fill: #d9973f; stroke: none; }
.bfigure .figlead { stroke: #c3dcd6; stroke-width: 1; }
.bfigure .figshlab { font-size: 11px; fill: #6b8f89; }
.figbelly, .figin, .figout, .figlip, .figround, .figlabin, .figlabout, .figshghost, .figsharrows, .figsh { animation-duration: 11.7s; animation-timing-function: linear; animation-iteration-count: infinite; animation-play-state: paused; }
.breathbox.run .figbelly { animation-name: kfigbelly; animation-timing-function: ease-in-out; animation-play-state: running; }
.breathbox.run .figin { animation-name: kfigin; animation-play-state: running; }
.breathbox.run .figout { animation-name: kfigout; animation-play-state: running; }
.breathbox.run .figlip { animation-name: kfiglip; animation-play-state: running; }
.breathbox.run .figround { animation-name: kfiground; animation-play-state: running; }
.breathbox.run .figlabin { animation-name: kfiglabin; animation-play-state: running; }
.breathbox.run .figlabout { animation-name: kfiglabout; animation-play-state: running; }
.breathbox.run .figshghost { animation-name: kfigshghost; animation-play-state: running; }
.breathbox.run .figsharrows { animation-name: kfigsharrows; animation-play-state: running; }
.breathbox.run .figsh { animation-name: kfigsh; animation-play-state: running; }
@keyframes kfigbelly { 0% { transform: scale(.62, .7); animation-timing-function: ease-in; } 36% { transform: scale(1.06, 1.04); animation-timing-function: ease-out; } 96%, 100% { transform: scale(.62, .7); } }
@keyframes kfigin { 0%, 2% { opacity: 0; transform: translateY(-4px); } 12% { opacity: 1; transform: translateY(0); } 30% { opacity: 1; transform: translateY(2px); } 36%, 100% { opacity: 0; transform: translateY(3px); } }
@keyframes kfigout { 0%, 44% { opacity: 0; transform: translateX(-3px); } 54% { opacity: 1; transform: translateX(0); } 88% { opacity: 1; transform: translateX(6px); } 96%, 100% { opacity: 0; transform: translateX(9px); } }
@keyframes kfiglip { 0%, 36% { opacity: 1; } 40%, 100% { opacity: 0; } }
@keyframes kfiground { 0%, 40% { opacity: 0; transform: scale(.7); } 48% { opacity: 1; transform: scale(1); } 90% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(.7); } }
@keyframes kfiglabin { 0%, 3% { opacity: 0; } 12% { opacity: 1; } 32% { opacity: 1; } 37%, 100% { opacity: 0; } }
@keyframes kfiglabout { 0%, 46% { opacity: 0; } 55% { opacity: 1; } 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
/* v57 肩部放松：吸（0-36%）虚线肩影冒头——给出肩位的参照上界，实线肩始终在它下方；
   呼（42-96%）肩头向下箭头＋肩线轻轻下沉，让"松"有动作；两者不同时出现，画面不挤。
   v58 措辞纪律：动画与标注一律正向表述（白熊效应），不出现"不要耸肩／别抬肩"；
   并去掉虚线肩影上的红叉（叉＝禁止符号，等于暗示效应的视觉版），只留参照上界 */
@keyframes kfigshghost { 0%, 5% { opacity: 0; } 14% { opacity: 1; } 30% { opacity: 1; } 38%, 100% { opacity: 0; } }
@keyframes kfigsharrows { 0%, 42% { opacity: 0; } 52% { opacity: 1; } 88% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes kfigsh { 0%, 40% { transform: translateY(0); } 56% { transform: translateY(2.6px); } 82%, 100% { transform: translateY(0); } }
.breathgo { border: none; background: #3d8f85; color: #fff; font-size: 15px; font-weight: 700; padding: 9px 22px; border-radius: 999px; cursor: pointer; }
.breathgo:active { transform: scale(.97); }
.bcount { font-size: 12px; color: #6b8f89; }
@media (prefers-reduced-motion: reduce) {
  .breathbox.run .bring, .breathbox.run .bphase .bin, .breathbox.run .bphase .bout { animation: none; }
  .breathbox.run .figbelly, .breathbox.run .figin, .breathbox.run .figout, .breathbox.run .figlip,
  .breathbox.run .figround, .breathbox.run .figlabin, .breathbox.run .figlabout,
  .breathbox.run .figshghost, .breathbox.run .figsharrows, .breathbox.run .figsh { animation: none; }
  .breathbox.run .figsh { transform: none; }
  .bphase .bout { opacity: 0; }
}

/* v49 家长示范话术＝深灰 */
.say { color: #666460; }

/* ---------- v59 界面动效与触感 ----------
   原则：只加"反馈层"（点按、涟漪、进场），不动阅读正文的排版与阅读节奏。
   节奏感来自"快进快出＋弹性回位"，不是堆时长——家长翻手册多在碎片时间，动效不能拖。 */

/* 去掉安卓原生点击灰块，改由涟漪 + 按压回弹接管 */
button, .tocrow, .histrow, .opt, .volcard, .snode, .dqnew, .chbtn {
  -webkit-tap-highlight-color: transparent;
}

/* 1. 按压回弹：统一弹性曲线，按下去"答"一下弹回来 */
.btn, .tab, .bnavbtn, .btocbtn, .dcbtn, .donebtn, .tocrow, .histrow, .sumlinks button,
.volcard, .opt, .tlhead, .dqnew, .chbtn, .rolebtns button, .breathgo, .sfxsw {
  transition: transform .15s cubic-bezier(.34, 1.56, .64, 1),
              box-shadow .15s ease, background-color .18s ease, color .18s ease, opacity .18s ease;
}
.tab:active .ticon { transform: scale(.86); }
.tab .ticon { transition: transform .16s cubic-bezier(.34, 1.56, .64, 1); }

/* 2. 涟漪：在按下的位置扩散一圈＝"确实点到了"的可视回执
   ⚠ 渐变必须在 58% 就淡到全透明：否则圆超出容器后被 border-box 裁成"方块"，
     在底部标签这种宽扁元素上尤其明显（v59 首轮截图抓出）。配合 .tab 的圆角，裁边才自然。 */
.rp {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(31,110,107,.26) 0%, rgba(31,110,107,.12) 34%, rgba(31,110,107,0) 58%);
  transform: scale(0); opacity: .95;
  animation: rpGo .58s cubic-bezier(.22, .86, .3, 1) forwards;
}
@keyframes rpGo { to { transform: scale(2.4); opacity: 0; } }
/* 底部标签原本无圆角，涟漪会把直角边露出来 */
.tab { border-radius: 12px; }

/* 3. 卡片依次落位（不是整页同时弹出）——步长控制在 .045s，五张卡总共约 .6s 走完 */
.page > .card { animation: cardIn .42s cubic-bezier(.22, .9, .3, 1) both; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(11px) scale(.994); }
  to   { opacity: 1; transform: none; }
}
.page > .card:nth-child(1) { animation-delay: .015s; }
.page > .card:nth-child(2) { animation-delay: .060s; }
.page > .card:nth-child(3) { animation-delay: .105s; }
.page > .card:nth-child(4) { animation-delay: .150s; }
.page > .card:nth-child(5) { animation-delay: .195s; }
.page > .card:nth-child(6) { animation-delay: .240s; }
.page > .card:nth-child(n+7) { animation-delay: .285s; }

/* 4. 音效开关（「我的」页） */
.sfxrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sfxlab { font-size: 14px; color: var(--ink2); }
.sfxsw {
  flex: none; width: 50px; height: 29px; padding: 0; border: none; border-radius: 15px;
  background: #d9d4c8; position: relative; cursor: pointer;
}
.sfxsw .sfxknob {
  position: absolute; top: 3px; left: 3px; width: 23px; height: 23px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.22); display: block;
  transition: transform .28s cubic-bezier(.34, 1.56, .64, 1);
}
.sfxsw.on { background: var(--teal); }
.sfxsw.on .sfxknob { transform: translateX(21px); }
.sfxsw:active { transform: scale(.96); }

/* 5. toast 上浮更柔（覆盖前文基态位移） */
.toast { transform: translateX(-50%) translateY(12px) scale(.97); }
.toast:not(.hidden) { transform: translateX(-50%) translateY(0) scale(1); }

/* v59 reduced-motion 兜底：涟漪与卡片进场全部关闭 */
@media (prefers-reduced-motion: reduce) {
  .rp { display: none; }
  .page > .card { animation: none; }
}

/* ================= v60：工具二 · 冷面终结者（跟做） =================
   与顺气呼吸法同一套路：图示 ＋ 开始按钮 ＋ 相位驱动动画 ＋ 次数统计。
   ⚠ 这是自救技能，只对家长自己用（正文红线一：绝不对孩子泼冷水）。 */
.coldbox { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 14px 0; padding: 16px 12px 14px; background: #eff5f8; border: 1px solid #cddee7; border-radius: 14px; }
.coldstage { position: relative; width: 100%; max-width: 320px; }
.ccoldsvg { display: block; width: 100%; height: auto; }
.ccoldsvg path, .ccoldsvg circle, .ccoldsvg ellipse, .ccoldsvg rect { fill: none; stroke: #4a86a0; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ccoldsvg .cbasin { stroke: #93b6c6; }
.ccoldsvg .chair { fill: rgba(74, 134, 160, .14); }
.ccoldsvg .ceye, .ccoldsvg .cmouth { stroke-width: 2.3; }
.ccoldsvg .cwaterbody, .ccoldsvg .cwatertop { fill: rgba(150, 201, 224, .62); stroke: none; }
.ccoldsvg .crim { stroke: #6fa8c2; stroke-width: 2.4; }
.ccoldsvg .cripple { stroke: #b7dbea; stroke-width: 2; opacity: .5; }
.ccoldsvg .cice rect { fill: #eaf6fb; stroke: #9fc9dc; stroke-width: 1.8; transform-box: fill-box; transform-origin: 50% 50%; }
.ccoldsvg .cinair { opacity: 0; }
.ccoldsvg .cfin { fill: #4a86a0; stroke: none; }
.ccoldsvg .cbub { opacity: 0; }
.ccoldsvg .cbub circle { fill: #fff; stroke: #9fc9dc; stroke-width: 1.4; }
.ccoldsvg .cdrop { opacity: 0; }
.ccoldsvg .cdrop path { stroke: #7fb3c8; stroke-width: 2.2; }
.cface { transition: transform .52s cubic-bezier(.4, 0, .3, 1); }
.coldbox.ph-prep .cinair { opacity: 1; animation: cinair 1.4s ease-in-out infinite; }
@keyframes cinair { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3.5px); } }
.coldbox.ph-dip .cface { transform: translateY(30px); }
.coldbox.ph-dip .cbub { opacity: 1; animation: cbub 1.9s ease-in infinite; }
@keyframes cbub { 0% { transform: translateY(12px); opacity: 0; } 28% { opacity: 1; } 100% { transform: translateY(-18px); opacity: 0; } }
.coldbox.ph-dip .cripple { opacity: 1; animation: crip 1.5s ease-in-out infinite; }
@keyframes crip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.coldbox.ph-dip .cice rect { animation: cice 2.4s ease-in-out infinite; }
.coldbox.ph-dip .cice rect:nth-child(2) { animation-delay: .5s; }
.coldbox.ph-dip .cice rect:nth-child(3) { animation-delay: 1.1s; }
@keyframes cice { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-3.5px) rotate(-7deg); } }
.coldbox.ph-up .cdrop { opacity: 1; animation: cdrop 2.2s ease-out forwards; }
@keyframes cdrop { 0% { opacity: 0; transform: translateY(-5px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }
.coldnum { position: absolute; right: 4px; bottom: 8px; display: flex; align-items: baseline; gap: 2px; color: #3d7a94; opacity: .34; transition: opacity .3s; }
.coldbox.run .coldnum { opacity: 1; }
.coldnum b { font-size: 30px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.coldnum span { font-size: 12px; }
.coldbar { width: 100%; max-width: 320px; height: 8px; border-radius: 999px; background: #dbe8ee; overflow: hidden; }
.coldbar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #7fc0d8, #4a86a0); transition: width 1s linear; }
/* 准备/抬头相位没有倒计时：把「15 秒」与进度条收掉（opacity 而非 display，保持版位不跳） */
.coldbox.run:not(.hasnum) .coldnum, .coldbox.run:not(.hasnum) .coldbar { opacity: 0; }
.coldcue { font-size: 13px; line-height: 1.7; color: #40606e; margin: 2px 0 0; text-align: center; max-width: 340px; min-height: 46px; }
.coldgo { border: none; background: #4a86a0; color: #fff; font-size: 15px; font-weight: 700; padding: 9px 22px; border-radius: 999px; cursor: pointer; font-family: inherit; transition: transform .12s; }
.coldgo:active { transform: scale(.97); }
.coldcount { font-size: 12px; color: #6b8f89; }
.coldnote { font-size: 12px; line-height: 1.65; color: #6b8f89; margin: 4px 0 0; text-align: center; max-width: 340px; }

/* ================= v60：工具三 · 五感定心术（跟做） =================
   看5 → 摸4 → 听3 → 闻2 → 尝1，每找到一样点一次「找到了」，走完自动进下一步。 */
.fivebox { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 14px 0; padding: 16px 12px 14px; background: #f2f8f6; border: 1px solid #cfe3de; border-radius: 14px; }
.fivebar { display: flex; gap: 5px; width: 100%; }
.fivestep { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 7px; border-radius: 12px; background: #fff; border: 1px solid #dfecea; transition: transform .25s, background .25s, border-color .25s, box-shadow .25s; }
.fivestep .fiveic { width: 22px; height: 22px; color: #a9c6c1; transition: color .25s, transform .3s; }
.fivestep .fiveic svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fivestep .fivenum { font-size: 13px; font-weight: 800; line-height: 1; color: #b7cfcb; }
.fivestep .fivenm { font-size: 11px; color: #86a8a3; }
.fivestep .fivedots { display: flex; gap: 2px; margin-top: 1px; }
.fivestep .fivedots i { width: 5px; height: 5px; border-radius: 50%; background: #dcebe8; transition: background .2s, transform .2s; }
.fivestep .fivedots i.on { background: #5aa99e; transform: scale(1.18); }
.fivestep.cur { background: #e8f4f1; border-color: #79bfb3; box-shadow: 0 0 0 2px rgba(90, 169, 158, .16); transform: translateY(-2px); }
.fivestep.cur .fiveic { color: #3d8f85; transform: scale(1.12); }
.fivestep.cur .fivenum, .fivestep.cur .fivenm { color: #2f7c72; }
.fivestep.done { background: #f7fbfa; }
.fivestep.done .fiveic { color: #79bfb3; }
.fivestep.lit { background: #fdf7ef; border-color: #d9973f; box-shadow: 0 0 0 2px rgba(217, 151, 63, .18); }
.fivestep.lit .fiveic { color: #c9822c; }
.fivecue { font-size: 13px; line-height: 1.7; color: #40606e; margin: 2px 0 0; text-align: center; max-width: 340px; min-height: 62px; }
.fivego { border: none; background: #3d8f85; color: #fff; font-size: 15px; font-weight: 700; padding: 9px 22px; border-radius: 999px; cursor: pointer; font-family: inherit; transition: transform .12s, background .25s; }
.fivego:active { transform: scale(.97); }
.fivebox.fin .fivego { background: #c9822c; }
.fivecount { font-size: 12px; color: #6b8f89; }
@media (prefers-reduced-motion: reduce) {
  .fivestep, .fivestep .fiveic { transition: none; }
  .cface { transition: none; }
  .coldbox.ph-prep .cinair, .coldbox.ph-dip .cbub, .coldbox.ph-dip .cripple, .coldbox.ph-dip .cice rect, .coldbox.ph-up .cdrop { animation: none; }
}
