/* 奶爸读书 · 原型样式（纯静态 / 移动优先） */
:root {
  --green: #3A8846;
  --green-700: #2C6B37;
  --green-900: #1E4F28;
  --green-soft: #EAF3E8;
  --green-line: #CFE3CB;
  --accent: #DE7A45;
  --accent-soft: #FBEBE0;
  --ink: #22271F;
  --ink-2: #4A5147;
  --sub: #7C8478;
  --faint: #A7AEA1;
  --bg: #F7F4EC;
  --surface: #FFFFFF;
  --surface-2: #FBF8F0;
  --line: #E8E2D3;
  --line-strong: #DCD4C2;
  --danger: #B4493C;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(40, 46, 35, .05), 0 4px 12px rgba(40, 46, 35, .05);
  --shadow-lg: 0 18px 40px rgba(30, 38, 26, .16);
  --font: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: radial-gradient(1100px 600px at 50% -10%, #FCFAF2, #E8E2D2 72%);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
h1, h2, h3, h4, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font-family: inherit; font-size: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
button:focus-visible, [data-go]:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic {
  width: 18px; height: 18px; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  display: inline-block; vertical-align: middle;
}

/* ---------------- 外壳 ---------------- */
.app {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  overflow-x: hidden;
  box-shadow: 0 0 70px rgba(70, 62, 40, .14);
}
.app::after {
  content: "";
  position: fixed; top: 0; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 430px;
  pointer-events: none; z-index: 6; opacity: .45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
.page { padding: 0 18px 120px; }

.tabbar {
  position: fixed; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 430px;
  display: none;
  height: calc(60px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 253, 247, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  z-index: 20;
}
body.has-tabbar .tabbar { display: flex; }
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px;
  font-size: 10px; color: var(--faint);
  transition: color .18s;
}
.tab .ic { width: 21px; height: 21px; stroke-width: 1.7; }
.tab.active { color: var(--green); font-weight: 700; }
.tab.active .ic { stroke-width: 2.1; }

/* ---------------- 顶部 ---------------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0 10px; gap: 10px;
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand__logo {
  width: 34px; height: 34px; border-radius: 11px;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 5px 12px rgba(58, 136, 70, .24);
}
.brand__logo .ic { width: 19px; height: 19px; stroke-width: 1.9; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.2; }
.brand__txt strong { font-size: 14.5px; letter-spacing: .01em; }
.brand__txt small { font-size: 10px; color: var(--sub); margin-top: 2px; letter-spacing: .02em; }

.baby-chip {
  display: flex; align-items: center; gap: 7px;
  padding: 4px 10px 4px 4px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; box-shadow: var(--shadow-sm);
}
.avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--green-soft); color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex: 0 0 auto;
}
.avatar--lg { width: 52px; height: 52px; font-size: 19px; }
.avatar--orange { background: var(--accent-soft); color: #B9622F; }
.avatar--sand { background: #F3EBD8; color: #8A6B2F; }
.baby-chip__txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.baby-chip__txt b { font-size: 11.5px; }
.baby-chip__txt i { font-size: 9.5px; font-style: normal; color: var(--sub); }

.hero h1 { font-size: 26px; letter-spacing: -.8px; line-height: 1.2; }
.hero__sub { font-size: 12px; color: var(--sub); margin-top: 7px; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 13px 4px;
  margin-top: 16px; box-shadow: var(--shadow-sm);
}
.stat { text-align: center; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 1px; background: var(--line);
}
.stat b { display: block; font-size: 19px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 10px; color: var(--sub); }

/* ---------------- 通用块 ---------------- */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin: 6px 0 14px;
}
.page-head h1 { font-size: 24px; letter-spacing: -.6px; line-height: 1.25; margin-top: 4px; }
.eyebrow {
  font-size: 10.5px; letter-spacing: .12em; font-weight: 700;
  color: var(--green-700); text-transform: uppercase;
}
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin: 22px 0 10px;
}
.section-head h2 { font-size: 17px; letter-spacing: -.3px; }
.section-head .count { font-size: 11px; color: var(--sub); font-weight: 400; margin-left: 6px; }
.text-btn { font-size: 11.5px; color: var(--green-700); display: inline-flex; align-items: center; gap: 2px; }
.text-btn .ic { width: 14px; height: 14px; }
.block-title { font-size: 15px; margin: 22px 0 10px; letter-spacing: -.2px; }
.muted { color: var(--sub); font-size: 12.5px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }

.btn {
  height: 48px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14.5px; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent; transition: transform .16s, background .16s;
}
.btn:active { transform: translateY(1px); }
.btn .ic { width: 18px; height: 18px; }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(58, 136, 70, .22); }
.btn--primary:active { background: var(--green-700); }
.btn--ghost { background: #fff; border-color: var(--line-strong); color: var(--ink-2); }
.btn--ghost:active { background: var(--surface-2); }

.sticky-cta {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 100%; max-width: 430px;
  padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(247, 244, 236, 0), var(--bg) 36%);
  display: flex; gap: 10px; z-index: 30;
}
body.has-tabbar .sticky-cta {
  bottom: calc(60px + env(safe-area-inset-bottom));
  padding-bottom: 10px;
}
.sticky-cta .btn { flex: 1; }
.sticky-cta .btn--primary { flex: 1.35; }

.chips {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 2px 0 6px; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chips--wrap { flex-wrap: wrap; overflow: visible; }
.chip {
  flex: 0 0 auto;
  height: 30px; padding: 0 12px;
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: #fff; color: var(--ink-2); font-size: 12px;
  transition: background .15s, color .15s, border-color .15s;
}
.chip.is-on {
  background: var(--green); border-color: var(--green); color: #fff;
  box-shadow: 0 4px 10px rgba(58, 136, 70, .2);
}
.tag {
  display: inline-flex; align-items: center; height: 21px; padding: 0 7px;
  border-radius: 6px; background: #F3F0E7; color: var(--sub);
  font-size: 10.5px; font-style: normal; white-space: nowrap;
}
.tag--slot { background: var(--green-soft); color: var(--green-700); }
.tag--today { background: var(--accent-soft); color: #B9622F; font-weight: 700; }
.tag--emo { background: #F1EEE4; color: var(--ink-2); }

.emo-tag, .emo-mini {
  display: inline-flex; align-items: center; height: 21px; padding: 0 8px;
  border-radius: 999px; font-size: 10.5px; font-style: normal; white-space: nowrap;
}
.emo-tag--focus, .emo-mini--focus { background: #EAF3E8; color: #2C6B37; }
.emo-tag--excite, .emo-mini--excite { background: var(--accent-soft); color: #B9622F; }
.emo-tag--happy, .emo-mini--happy { background: #FBF4D9; color: #84651A; }
.emo-tag--distract, .emo-mini--distract { background: #F0EEE8; color: #6C7268; }
.emo-tag--resist, .emo-mini--resist { background: #F8E6E3; color: #A6453A; }
.emo-tag--sleepy, .emo-mini--sleepy { background: #E9EDF5; color: #4E5E7C; }
.emo-mini { height: 19px; padding: 0 7px; font-size: 9.5px; }

.pill {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px;
  border-radius: 999px; background: #F4F1E8; color: var(--ink-2);
  font-size: 10.5px; font-style: normal; white-space: nowrap;
}
.pill--green { background: var(--green-soft); color: var(--green-700); }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.empty {
  text-align: center; padding: 36px 20px;
  color: var(--sub); font-size: 12.5px;
}
.empty .ic { width: 30px; height: 30px; color: var(--faint); display: block; margin: 0 auto 8px; stroke-width: 1.4; }

/* ---------------- 书架 ---------------- */
.scan-card {
  width: 100%; display: flex; align-items: center; gap: 12px;
  margin-top: 16px; padding: 15px 14px;
  text-align: left; border-radius: var(--r-lg);
  border: 1.5px dashed var(--green-line);
  background: linear-gradient(120deg, #EEF6EB, #FAFDF8);
}
.scan-card__icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(58, 136, 70, .24);
}
.scan-card__icon .ic { width: 21px; height: 21px; }
.scan-card__body { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.scan-card__body b { font-size: 13.5px; letter-spacing: -.2px; }
.scan-card__body span { font-size: 11px; color: var(--sub); line-height: 1.45; }
.scan-card__go { width: 16px; height: 16px; color: var(--green-700); opacity: .7; }

.book-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px 12px; margin-top: 12px;
}
.book-item { display: block; text-align: left; width: 100%; }
.book-item__cover { position: relative; display: block; }
.book-item__cover .cover { transition: transform .2s; }
.book-item:active .cover { transform: translateY(-2px) scale(.99); }
.book-item__t {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; font-size: 11.5px; line-height: 1.4;
  margin-top: 7px; font-weight: 700; letter-spacing: -.1px;
}
.book-item__m { display: block; font-size: 9.5px; color: var(--sub); margin-top: 3px; }
.book-flag {
  position: absolute; top: 6px; right: 6px; z-index: 4;
  height: 18px; padding: 0 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: var(--green-700);
  font-size: 9px; font-weight: 700; display: flex; align-items: center;
}
.shelf-note {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: 10.5px; color: var(--sub); margin: 22px 0 0; line-height: 1.5;
}
.shelf-note .ic { width: 14px; height: 14px; color: var(--green); margin-top: 1px; }

/* ---------------- 封面 ---------------- */
.cover {
  --c1: #3A8846; --c2: #8FC7A8;
  display: block;
  position: relative; width: 100%; aspect-ratio: 3 / 4;
  border-radius: 4px 9px 9px 4px;
  background: linear-gradient(155deg, var(--c1), var(--c2));
  overflow: hidden; isolation: isolate;
  box-shadow: 0 6px 14px rgba(38, 44, 32, .16);
}
.cover::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, .26), rgba(255, 255, 255, .12) 7%, rgba(255, 255, 255, 0) 14%, rgba(0, 0, 0, .02));
}
.cover__deco { position: absolute; inset: 0; z-index: 1; }
.cover__a {
  position: absolute; left: 10px; right: 8px; top: 8px; z-index: 3;
  color: #fff; opacity: .72; font-size: 7.5px; letter-spacing: .04em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cover__t {
  position: absolute; left: 10px; right: 8px; bottom: 8px; z-index: 3;
  color: #fff; font-size: 10.5px; font-weight: 700; line-height: 1.32;
  letter-spacing: -.01em; text-shadow: 0 1px 6px rgba(0, 0, 0, .22);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.cover--leaf .cover__deco {
  background:
    radial-gradient(70% 60% at 84% 8%, rgba(255, 255, 255, .3), transparent 70%),
    radial-gradient(45% 45% at 8% 94%, rgba(0, 0, 0, .18), transparent 70%);
}
.cover--sun .cover__deco {
  background:
    radial-gradient(circle at 74% 26%, rgba(255, 240, 196, .95) 0 13%, rgba(255, 240, 196, .22) 14% 24%, transparent 25%),
    linear-gradient(200deg, transparent 55%, rgba(0, 0, 0, .16));
}
.cover--moon .cover__deco {
  background:
    radial-gradient(circle at 72% 28%, rgba(255, 247, 214, .92) 0 15%, rgba(255, 247, 214, .12) 16% 26%, transparent 27%),
    radial-gradient(circle at 18% 82%, rgba(255, 255, 255, .14), transparent 40%);
}
.cover--dots .cover__deco {
  background-image: radial-gradient(rgba(255, 255, 255, .4) 2px, transparent 2.5px);
  background-size: 16px 16px; opacity: .5;
}
.cover--stripe .cover__deco {
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .14) 0 6px, transparent 6px 18px);
}
.cover--wave .cover__deco {
  background: repeating-radial-gradient(circle at 50% 120%, rgba(255, 255, 255, .16) 0 8px, transparent 8px 22px);
}
.cover--circle .cover__deco {
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, .32) 0 22%, transparent 23%),
    radial-gradient(circle at 20% 86%, rgba(0, 0, 0, .16) 0 18%, transparent 19%);
}

/* ---------------- 子页头 ---------------- */
.subbar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 0 12px;
}
.icon-btn {
  width: 38px; height: 38px; flex: 0 0 auto;
  border-radius: 50%; background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.icon-btn .ic { width: 19px; height: 19px; }
.icon-btn--ghost { background: none; border-color: transparent; box-shadow: none; pointer-events: none; }
.subbar__txt { flex: 1; min-width: 0; text-align: center; }
.subbar__txt h1 { font-size: 15px; letter-spacing: -.2px; }
.subbar__txt p { font-size: 10.5px; color: var(--sub); margin-top: 2px; }

/* ---------------- 拍照入库 ---------------- */
.viewfinder {
  background: #20261F; border-radius: var(--r-lg);
  padding: 16px 16px 12px; margin-top: 4px;
  box-shadow: 0 18px 36px rgba(24, 30, 20, .22);
}
.vf__frame {
  position: relative; height: 258px; border-radius: 14px; overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, #3A4231, #232A20 68%);
  display: flex; align-items: center; justify-content: center;
}
.corner { position: absolute; width: 22px; height: 22px; border: 2px solid rgba(255, 255, 255, .72); border-radius: 2px; }
.corner.tl { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.corner.tr { top: 12px; right: 12px; border-left: none; border-bottom: none; }
.corner.bl { bottom: 12px; left: 12px; border-right: none; border-top: none; }
.corner.br { bottom: 12px; right: 12px; border-left: none; border-top: none; }
.vf__books { display: flex; gap: 6px; transform: rotate(-6deg); }
.spine {
  width: 52px; height: 162px; border-radius: 4px 8px 8px 4px;
  background: linear-gradient(150deg, var(--s1), var(--s2));
  box-shadow: 0 12px 22px rgba(0, 0, 0, .32);
  position: relative; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.spine span {
  writing-mode: vertical-rl; color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; opacity: .92; text-shadow: 0 1px 4px rgba(0, 0, 0, .25);
  position: relative; z-index: 2;
}
.spine::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .3), transparent 18%, rgba(255, 255, 255, .08));
}
.vf__hint { color: rgba(255, 255, 255, .62); font-size: 10.5px; text-align: center; margin-top: 12px; }
.vf__sweep {
  position: absolute; left: 8%; right: 8%; top: 20px; height: 2px;
  background: linear-gradient(90deg, transparent, #B9E7C4, transparent);
  box-shadow: 0 0 18px #9ADCA8;
  animation: sweep 1.5s ease-in-out infinite;
}
@keyframes sweep { 0% { top: 14%; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { top: 84%; opacity: 0; } }
.scan-progress {
  height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .16);
  margin: 14px 4px 0; overflow: hidden;
}
.scan-progress i { display: block; height: 100%; width: 100%; background: #8FD79D; transform-origin: left; animation: scanbar 1.9s cubic-bezier(.3, .7, .3, 1) forwards; }
@keyframes scanbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.scan-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 18px; }
.shutter {
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--green); color: #fff;
  border: 5px solid rgba(58, 136, 70, .18);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 22px rgba(58, 136, 70, .3);
  transition: transform .15s;
}
.shutter:active { transform: scale(.94); }
.shutter .ic { width: 27px; height: 27px; }
.scan-actions p { font-size: 11px; color: var(--sub); }
.flow-steps { display: flex; justify-content: center; gap: 18px; margin-top: 22px; }
.flow-steps li { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--faint); }
.flow-steps li b {
  width: 17px; height: 17px; border-radius: 50%;
  background: #EDE8DA; color: var(--faint);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700;
}
.flow-steps li.is-on { color: var(--green-700); }
.flow-steps li.is-on b { background: var(--green); color: #fff; }
.scan-note {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 10px; color: var(--sub); margin-top: 16px;
}
.scan-note .ic { width: 13px; height: 13px; }
.scan-loading { text-align: center; margin-top: 18px; }
.scan-loading .spinner { margin: 0 auto 10px; }
.scan-loading b { display: block; font-size: 13.5px; }
.scan-loading p { font-size: 10.5px; color: var(--sub); margin-top: 3px; }

.scan-summary {
  display: flex; align-items: baseline; gap: 8px;
  margin: 2px 0 12px; font-size: 12px; color: var(--sub);
}
.scan-summary b { font-size: 16px; color: var(--ink); letter-spacing: -.3px; }
.scan-list { display: flex; flex-direction: column; gap: 9px; }
.scan-item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 10px; text-align: left;
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; transition: border-color .15s, background .15s;
}
.scan-item.is-on { border-color: var(--green-line); background: #FCFEFB; }
.scan-item__cover { width: 46px; flex: 0 0 auto; }
.scan-item__cover .cover { border-radius: 3px 6px 6px 3px; }
.scan-item__cover .cover__t { font-size: 6px; left: 5px; right: 4px; bottom: 4px; -webkit-line-clamp: 2; }
.scan-item__cover .cover__a { display: none; }
.scan-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.scan-item__body b { font-size: 13px; letter-spacing: -.2px; }
.scan-item__body span { font-size: 10.5px; color: var(--sub); }
.scan-item__body em { font-size: 10px; font-style: normal; color: var(--green-700); margin-top: 2px; }
.scan-item__body em.is-low { color: var(--danger); }
.check-box {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex: 0 0 auto;
}
.scan-item.is-on .check-box { background: var(--green); border-color: var(--green); }
.check-box .ic { width: 13px; height: 13px; stroke-width: 2.6; }

.done-panel { text-align: center; padding: 34px 16px 0; }
.done-panel__check {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 14px 28px rgba(58, 136, 70, .28);
  animation: pop .5s cubic-bezier(.2, 1.3, .4, 1) both;
}
.done-panel__check .ic { width: 34px; height: 34px; stroke-width: 2.4; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.done-panel h2 { font-size: 22px; letter-spacing: -.5px; }
.done-panel p { font-size: 12px; color: var(--sub); margin-top: 6px; }
.done-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.done-tags span {
  height: 24px; padding: 0 9px; display: inline-flex; align-items: center;
  border-radius: 999px; background: var(--green-soft); color: var(--green-700);
  font-size: 10.5px;
}
.done-tip { font-size: 11px; color: var(--sub); margin-top: 16px; line-height: 1.6; }
.done-actions { display: flex; gap: 10px; margin-top: 28px; }
.done-actions .btn { flex: 1; }

/* ---------------- 计划 ---------------- */
.cycle {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  padding: 18px 18px 16px;
  color: #fff;
  background: linear-gradient(135deg, #2A6635, #3A8846 58%, #4E9B54);
  box-shadow: 0 14px 28px rgba(40, 88, 48, .24);
}
.cycle::after {
  content: ""; position: absolute; right: -46px; top: -58px;
  width: 170px; height: 170px; border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.cycle::before {
  content: ""; position: absolute; right: 12px; bottom: -70px;
  width: 130px; height: 130px; border-radius: 50%;
  background: rgba(255, 255, 255, .05);
}
.cycle__top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.cycle__top > span:first-child { font-size: 10.5px; letter-spacing: .06em; opacity: .82; }
.cycle__badge {
  height: 22px; padding: 0 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .18); font-size: 10.5px;
  display: inline-flex; align-items: center;
}
.cycle h2 { font-size: 19px; letter-spacing: -.3px; margin-top: 9px; line-height: 1.35; position: relative; z-index: 1; }
.cycle__bar {
  height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .22);
  margin-top: 15px; overflow: hidden; position: relative; z-index: 1;
}
.cycle__bar i { display: block; height: 100%; border-radius: 3px; background: #FFE3B0; transition: width .4s; }
.cycle__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 15px; padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  position: relative; z-index: 1;
}
.cycle__stats div { display: flex; flex-direction: column; gap: 1px; }
.cycle__stats b { font-size: 15px; font-variant-numeric: tabular-nums; }
.cycle__stats span { font-size: 9.5px; opacity: .68; }

.notice {
  display: flex; align-items: flex-start; gap: 7px;
  margin-top: 12px; padding: 10px 12px;
  background: var(--accent-soft); color: #8E4E27;
  border-radius: 12px; font-size: 11px; line-height: 1.5;
}
.notice .ic { width: 14px; height: 14px; margin-top: 1px; }

.day-list { display: flex; flex-direction: column; gap: 9px; }
.day-card {
  display: flex; align-items: flex-start; gap: 11px;
  width: 100%; padding: 13px 12px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); text-align: left;
  transition: border-color .15s, box-shadow .15s;
}
.day-card:active { background: #FCFDFB; }
.day-card.is-today {
  border-color: var(--green-line);
  background: linear-gradient(180deg, #F4FAF1, #fff 60%);
  box-shadow: 0 0 0 3px rgba(58, 136, 70, .07);
}
.day-card.is-done { background: #FCFBF7; }
.day-card__date {
  width: 38px; flex: 0 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.day-card__date b { font-size: 18px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.day-card__date span { font-size: 9.5px; color: var(--sub); }
.day-done { margin-top: 3px; color: var(--green); }
.day-done .ic { width: 14px; height: 14px; stroke-width: 2.4; }
.day-card__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.day-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.day-title { font-size: 13px; letter-spacing: -.2px; line-height: 1.4; }
.day-sub { font-size: 10.5px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-focus {
  font-size: 10.5px; color: var(--green-700);
  background: var(--green-soft); border-radius: 6px;
  padding: 3px 7px; margin-top: 3px; align-self: flex-start;
}
.day-card.is-done .day-title { color: var(--ink-2); }
.day-card__go { width: 15px; height: 15px; color: var(--faint); margin-top: 4px; }
.plan-note {
  display: flex; gap: 6px; align-items: flex-start;
  font-size: 10.5px; color: var(--sub); margin-top: 16px; line-height: 1.55;
}
.plan-note .ic { width: 14px; height: 14px; margin-top: 1px; }

/* ---------------- 记录 ---------------- */
.report-card {
  width: 100%; display: flex; align-items: center; gap: 8px;
  padding: 16px; text-align: left;
  background: linear-gradient(120deg, #F1F7EE, #FDFCF7);
  border: 1px solid var(--green-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.report-card__txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.report-card__txt > span:first-child { font-size: 10.5px; color: var(--green-700); letter-spacing: .06em; }
.report-card__txt b { font-size: 25px; letter-spacing: -1px; color: var(--green-900); line-height: 1.25; }
.report-card__txt em { font-style: normal; font-size: 10.5px; color: var(--sub); }
.report-link {
  display: inline-flex; align-items: center; gap: 1px;
  font-size: 11px; color: var(--green-700); margin-top: 7px; font-weight: 700;
}
.report-link .ic { width: 13px; height: 13px; }
.report-card__chart { width: 96px; flex: 0 0 auto; }
.report-card__chart .spark { display: block; width: 100%; height: 56px; }

.week-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 12px; padding: 13px 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.week-stats div { text-align: center; display: flex; flex-direction: column; gap: 1px; }
.week-stats div + div { border-left: 1px solid var(--line); }
.week-stats b { font-size: 18px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.week-stats span { font-size: 9.5px; color: var(--sub); }

.record-list { display: flex; flex-direction: column; gap: 9px; }
.record-item {
  width: 100%; text-align: left;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 13px 14px;
  display: flex; flex-direction: column; gap: 5px;
  box-shadow: var(--shadow-sm);
}
.record-item__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.record-date { font-size: 10.5px; color: var(--sub); font-variant-numeric: tabular-nums; }
.record-title { font-size: 13.5px; letter-spacing: -.2px; }
.record-emos { display: flex; gap: 5px; flex-wrap: wrap; }
.record-note {
  display: flex; align-items: flex-start; gap: 5px;
  font-size: 11px; color: var(--ink-2); line-height: 1.5; margin-top: 2px;
}
.record-note .ic { width: 13px; height: 13px; color: var(--faint); margin-top: 2px; }

/* ---------------- 画像 ---------------- */
.baby-hero {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.baby-hero h2 { font-size: 17px; letter-spacing: -.3px; }
.baby-hero p { font-size: 11px; color: var(--sub); margin-top: 2px; }
.complete {
  height: 5px; border-radius: 3px; background: #EFEADC;
  margin-top: 9px; width: 140px; overflow: hidden;
}
.complete i { display: block; height: 100%; border-radius: 3px; background: var(--green); }
.baby-hero small { display: block; font-size: 9.5px; color: var(--sub); margin-top: 4px; }
.baby-note {
  display: flex; align-items: flex-start; gap: 6px;
  margin-top: 12px; font-size: 10.5px; color: var(--sub); line-height: 1.5;
}
.baby-note .ic { width: 13px; height: 13px; color: var(--green); margin-top: 1px; }

.field {
  margin-top: 20px; padding-top: 18px;
  border-top: 1px solid var(--line);
}
.field__head { display: flex; align-items: baseline; justify-content: space-between; }
.field__head h3 { font-size: 14.5px; letter-spacing: -.2px; }
.field__head span { font-size: 9.5px; color: var(--faint); }
.field__note { font-size: 10.5px; color: var(--sub); margin-top: 3px; }
.field .chips { margin-top: 10px; }
.field .chip { height: 34px; font-size: 12.5px; padding: 0 14px; }
.field__hint { font-size: 10.5px; color: var(--green-700); margin-top: 7px; }

/* ---------------- 共读进行中 ---------------- */
.page--session, .page--scan, .page--sub { padding-bottom: 130px; }
.sess-book { display: flex; align-items: center; gap: 12px; margin: 6px 0 4px; }
.sess-book__cover { width: 58px; flex: 0 0 auto; }
.sess-book__cover .cover { border-radius: 3px 7px 7px 3px; }
.sess-book__cover .cover__t { font-size: 6.5px; left: 6px; right: 5px; bottom: 5px; -webkit-line-clamp: 2; }
.sess-book__cover .cover__a { display: none; }
.sess-book h2 { font-size: 16px; letter-spacing: -.3px; line-height: 1.35; }
.sess-book p { font-size: 10.5px; color: var(--sub); margin-top: 2px; }

.sess-timer {
  text-align: center; font-size: 50px; font-weight: 700;
  letter-spacing: -2px; font-variant-numeric: tabular-nums;
  color: var(--green-900); margin-top: 26px; line-height: 1;
}
.wave {
  display: flex; align-items: center; justify-content: center;
  gap: 3px; height: 44px; margin-top: 16px;
}
.wave i {
  width: 3px; border-radius: 2px; background: var(--green);
  opacity: .75; transform-origin: center;
  animation: wave 1.1s ease-in-out infinite alternate;
}
.wave.is-paused i { animation-play-state: paused; opacity: .3; }
@keyframes wave { from { transform: scaleY(.34); } to { transform: scaleY(1); } }
.sess-status { text-align: center; font-size: 10.5px; color: var(--sub); margin-top: 8px; }

.emo-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.emo-chip {
  height: 34px; padding: 0 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-2);
}
.emo-chip i { width: 7px; height: 7px; border-radius: 50%; background: #A9B2A4; }
.emo-chip--focus i { background: #3A8846; }
.emo-chip--excite i { background: #DE7A45; }
.emo-chip--happy i { background: #C9A227; }
.emo-chip--distract i { background: #9AA296; }
.emo-chip--resist i { background: #C0564A; }
.emo-chip--sleepy i { background: #5F7192; }
.emo-chip.is-on { border-color: var(--green); background: var(--green-soft); color: var(--green-700); }

.timeline-card {
  margin-top: 20px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px; box-shadow: var(--shadow-sm);
}
.timeline-card__head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 9px; border-bottom: 1px dashed var(--line);
}
.timeline-card__head b { font-size: 12.5px; }
.timeline-card__head span { font-size: 10px; color: var(--faint); }
.timeline-empty { font-size: 11px; color: var(--sub); padding: 14px 0 4px; text-align: center; }
.tl-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.tl-item + .tl-item { border-top: 1px solid #F6F2E8; }
.tl-time { font-size: 9.5px; color: var(--faint); font-variant-numeric: tabular-nums; width: 34px; flex: 0 0 auto; }
.tl-dot { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; background: var(--green); }
.tl-dot--voice { background: var(--accent); }
.tl-dot--emotion { background: #C9A227; }
.tl-text { flex: 1; font-size: 11.5px; color: var(--ink-2); }
.emo-row--static { justify-content: flex-start; margin-top: 12px; }

/* ---------------- 小结 ---------------- */
.sum-hero {
  text-align: center; padding: 10px 0 0;
}
.sum-hero h2 { font-size: 34px; letter-spacing: -1.5px; color: var(--green-900); margin-top: 8px; font-variant-numeric: tabular-nums; }
.sum-tags { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.sum-hero .spark { display: block; width: 100%; height: 64px; margin-top: 16px; }
.sum-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 16px; padding: 13px 8px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-sm);
}
.sum-grid div { text-align: center; display: flex; flex-direction: column; gap: 1px; }
.sum-grid div + div { border-left: 1px solid var(--line); }
.sum-grid b { font-size: 18px; letter-spacing: -.4px; color: var(--green-900); }
.sum-grid span { font-size: 9.5px; color: var(--sub); }
.transcript { display: flex; flex-wrap: wrap; gap: 6px; }
.voice-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: 10px;
  background: var(--accent-soft); color: #8E4E27;
  font-size: 12px;
}
.voice-tag .ic { width: 12px; height: 12px; opacity: .7; }
.insight-card {
  margin-top: 18px; padding: 15px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-sm);
}
.insight-card__head { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.insight-card__head .ic { width: 15px; height: 15px; color: var(--green); }
.insight-card p { font-size: 12.5px; color: var(--ink-2); margin-top: 8px; line-height: 1.65; }
.insight-card .insight-advice { color: var(--green-700); font-size: 11.5px; background: var(--green-soft); padding: 8px 10px; border-radius: 10px; margin-top: 10px; }
.suggest-toggle {
  width: 100%; margin-top: 12px; height: 40px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  border-radius: 11px; border: 1px dashed var(--green-line);
  background: #F6FBF4; color: var(--green-700);
  font-size: 11.5px; font-weight: 600;
}
.suggest-toggle.is-on { background: var(--green); border-style: solid; border-color: var(--green); color: #fff; }
.suggest-toggle .ic { width: 15px; height: 15px; }

/* ---------------- 报告 ---------------- */
.score-block { text-align: center; padding: 6px 0 4px; }
.score-ring {
  width: 128px; height: 128px; border-radius: 50%;
  margin: 0 auto; position: relative;
  background: conic-gradient(var(--green) calc(var(--p) * 1%), #E9E4D6 0);
  display: flex; align-items: center; justify-content: center;
}
.score-ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--bg); }
.score-ring > div { position: relative; text-align: center; display: flex; flex-direction: column; }
.score-ring b { font-size: 31px; letter-spacing: -1.5px; color: var(--green-900); line-height: 1.1; font-variant-numeric: tabular-nums; }
.score-ring span { font-size: 10px; color: var(--sub); }
.score-block p { font-size: 11px; color: var(--sub); margin-top: 10px; }

.metric-list {
  margin-top: 20px; padding: 4px 14px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-sm);
}
.metric { padding: 11px 0; }
.metric + .metric { border-top: 1px solid #F5F1E7; }
.metric__top { display: flex; align-items: baseline; justify-content: space-between; font-size: 11.5px; }
.metric__top b { font-size: 14px; color: var(--green-900); font-variant-numeric: tabular-nums; }
.metric__bar { height: 5px; border-radius: 3px; background: #EFEADC; margin-top: 6px; overflow: hidden; }
.metric__bar i { display: block; height: 100%; width: var(--v); border-radius: 3px; background: var(--green); animation: grow .8s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes grow { from { width: 0; } to { width: var(--v); } }
.metric small { display: block; font-size: 9.5px; color: var(--faint); margin-top: 4px; }

.chart-card { margin-top: 14px; padding: 14px; }
.chart-head { display: flex; align-items: center; justify-content: space-between; }
.chart-head b { font-size: 12.5px; }
.legend { display: flex; gap: 10px; font-size: 9.5px; color: var(--sub); }
.legend span { display: inline-flex; align-items: center; gap: 4px; }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot--green { background: var(--green); }
.dot--orange { background: var(--accent); }
.trend { display: block; width: 100%; height: auto; margin-top: 6px; }

.findings { display: flex; flex-direction: column; gap: 9px; }
.finding {
  display: flex; gap: 11px; padding: 13px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-sm);
}
.finding__icon {
  width: 34px; height: 34px; border-radius: 11px;
  background: var(--green-soft); color: var(--green-700);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.finding__icon .ic { width: 17px; height: 17px; }
.finding b { font-size: 12.5px; }
.finding p { font-size: 11px; color: var(--sub); line-height: 1.6; margin-top: 3px; }
.advice-card {
  display: flex; gap: 10px; margin-top: 14px; padding: 14px;
  background: var(--accent-soft); border-radius: var(--r-md);
  color: #7C4524;
}
.advice-card > .ic { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; color: #C06A34; }
.advice-card b { font-size: 12.5px; }
.advice-card p { font-size: 11.5px; line-height: 1.65; margin-top: 4px; }

/* ---------------- 我的 ---------------- */
.profile-card {
  width: 100%; display: flex; align-items: center; gap: 13px;
  padding: 16px; text-align: left;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
.profile-card__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.profile-card__txt b { font-size: 15px; letter-spacing: -.2px; }
.profile-card__txt > span { font-size: 10.5px; color: var(--sub); }
.profile-bar { height: 4px; border-radius: 2px; background: #EFEADC; margin-top: 7px; overflow: hidden; width: 100%; }
.profile-bar i { display: block; height: 100%; background: var(--green); border-radius: 2px; }
.profile-card__txt small { font-size: 9.5px; color: var(--faint); margin-top: 3px; }
.profile-card__go { width: 16px; height: 16px; color: var(--faint); }

.menu {
  margin-top: 16px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.menu--plain { margin-top: 12px; }
.menu-row {
  width: 100%; display: flex; align-items: center; gap: 11px;
  padding: 13px 14px; text-align: left;
}
.menu-row + .menu-row { border-top: 1px solid #F5F1E7; }
.menu-row:active { background: #FCFAF3; }
.menu-row__ic {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--green-soft); color: var(--green-700);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.menu-row__ic .ic { width: 16px; height: 16px; }
.menu-row__txt { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.menu-row__txt b { font-size: 12.5px; font-weight: 600; }
.menu-row__txt small { font-size: 9.5px; color: var(--sub); }
.menu-row > .ic { width: 15px; height: 15px; color: var(--faint); }
.me-footer { text-align: center; font-size: 9.5px; color: var(--faint); margin-top: 26px; line-height: 1.7; }

/* ---------------- 弹层 ---------------- */
.sheet-root { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.sheet-mask { position: absolute; inset: 0; background: rgba(28, 32, 24, .44); opacity: 0; transition: opacity .22s; }
.sheet-root.is-open .sheet-mask { opacity: 1; }
.sheet-panel {
  position: relative; z-index: 1;
  width: 100%; max-width: 430px;
  max-height: 88vh; overflow-y: auto;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  padding: 8px 20px calc(20px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-lg);
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}
.sheet-root.is-open .sheet-panel { transform: translateY(0); }
.sheet-grab { width: 38px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 4px auto 14px; }
.sheet-title { font-size: 19px; letter-spacing: -.4px; line-height: 1.35; }
.sheet-sub { font-size: 11.5px; color: var(--sub); margin-top: 5px; }
.book-detail { display: flex; gap: 15px; }
.book-detail__cover { width: 96px; flex: 0 0 auto; }
.book-detail__cover .cover__t { font-size: 9px; }
.book-detail__meta { flex: 1; min-width: 0; }
.book-detail__meta h2 { font-size: 18px; letter-spacing: -.4px; line-height: 1.35; margin-top: 4px; }
.book-detail__meta p { font-size: 11px; color: var(--sub); margin-top: 3px; }
.tip-card {
  display: flex; gap: 9px; margin-top: 16px;
  padding: 12px 13px; border-radius: var(--r-sm);
  background: var(--green-soft); color: var(--green-900);
}
.tip-card .ic { width: 16px; height: 16px; color: var(--green-700); flex: 0 0 auto; margin-top: 1px; }
.tip-card p { font-size: 11.5px; line-height: 1.6; }
.tip-card p b { display: block; font-size: 10.5px; color: var(--green-700); margin-bottom: 2px; letter-spacing: .04em; }
.tip-card--plain { background: #F7F4EC; color: var(--ink-2); }
.tip-card--plain .ic { color: var(--sub); }
.tip-card--plain p b { color: var(--sub); }
.last-line { font-size: 10.5px; color: var(--sub); margin-top: 12px; }
.sheet-actions { display: flex; gap: 10px; margin-top: 20px; }
.sheet-actions .btn { flex: 1; }
.sheet-actions--single .btn { flex: 1; }

.focus-card {
  margin-top: 16px; padding: 13px 14px;
  border-radius: var(--r-sm); background: #F6FBF4;
  border: 1px dashed var(--green-line);
  display: flex; flex-direction: column; gap: 3px;
}
.focus-card span { font-size: 9.5px; color: var(--green-700); letter-spacing: .06em; }
.focus-card b { font-size: 13.5px; letter-spacing: -.2px; }
.script { margin-top: 4px; display: flex; flex-direction: column; }
.script li { display: flex; gap: 11px; padding: 10px 0; border-bottom: 1px solid #F6F2E8; }
.script li:last-child { border-bottom: none; }
.script b { width: 60px; flex: 0 0 auto; font-size: 10.5px; color: var(--green-700); font-variant-numeric: tabular-nums; padding-top: 1px; }
.script span { font-size: 11.5px; color: var(--ink-2); line-height: 1.6; }
.hint { font-size: 10.5px; color: var(--sub); margin-top: 12px; line-height: 1.6; }
.reason-chips { margin-top: 14px; }
.reason-chips .chip { height: 36px; font-size: 12.5px; }

.member-list { margin-top: 14px; display: flex; flex-direction: column; }
.member { display: flex; align-items: center; gap: 11px; padding: 11px 0; }
.member + .member { border-top: 1px solid #F5F1E7; }
.member > div { flex: 1; display: flex; flex-direction: column; }
.member b { font-size: 12.5px; }
.member small { font-size: 10px; color: var(--sub); }
.privacy-list { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.privacy-list li { display: flex; gap: 10px; }
.privacy-list .ic { width: 17px; height: 17px; color: var(--green-700); flex: 0 0 auto; margin-top: 2px; }
.privacy-list b { font-size: 12.5px; display: block; }
.privacy-list span { font-size: 11px; color: var(--sub); line-height: 1.6; display: block; margin-top: 2px; }
.time-pick { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

/* ---------------- Toast / Loading ---------------- */
.toast {
  position: fixed; left: 50%; bottom: calc(104px + env(safe-area-inset-bottom));
  transform: translate(-50%, 10px);
  max-width: 330px; width: max-content;
  padding: 10px 16px; border-radius: 999px;
  background: rgba(30, 54, 34, .94); color: #fff;
  font-size: 12px; line-height: 1.45; text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity .24s, transform .24s;
  z-index: 95; box-shadow: 0 10px 24px rgba(20, 30, 20, .24);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.veil {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(247, 244, 236, .72);
  backdrop-filter: blur(3px);
}
.veil__box {
  background: #fff; border-radius: 18px; padding: 22px 26px;
  box-shadow: var(--shadow-lg); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.veil__box b { font-size: 13px; margin-top: 6px; }
.veil__box small { font-size: 10px; color: var(--sub); }
.spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid var(--green-line);
  border-top-color: var(--green);
  animation: spin .8s linear infinite;
  display: inline-block;
}
.spinner--green { border-color: rgba(255, 255, 255, .18); border-top-color: #8FD79D; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- v0.2 新增 ---------------- */
.scan-hero {
  position: relative; width: 100%; overflow: hidden;
  display: flex; align-items: center; gap: 12px;
  margin-top: 10px; padding: 18px 16px;
  border-radius: 20px; text-align: left; color: #fff;
  background: linear-gradient(135deg, #2F7C3D, #4F9E5D 62%, #6DB478);
  box-shadow: 0 14px 28px rgba(47, 124, 61, .26);
}
.scan-hero::after {
  content: ""; position: absolute; right: -28px; top: -34px;
  width: 112px; height: 112px; border-radius: 50%;
  background: rgba(255, 255, 255, .1);
}
.scan-hero > * { position: relative; z-index: 1; }
.scan-hero__icon {
  width: 50px; height: 50px; border-radius: 16px; flex: 0 0 auto;
  background: rgba(255, 255, 255, .17);
  display: flex; align-items: center; justify-content: center;
}
.scan-hero__icon .ic { width: 25px; height: 25px; }
.scan-hero__body { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.scan-hero__body b { font-size: 15.5px; letter-spacing: -.2px; }
.scan-hero__body span { font-size: 10.5px; opacity: .82; line-height: 1.45; }
.scan-hero__cta {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 1px;
  height: 30px; padding: 0 10px; border-radius: 999px;
  background: #fff; color: #2F7C3D; font-size: 11px; font-weight: 700;
}
.scan-hero__cta .ic { width: 13px; height: 13px; }
.hero__sub--shelf {
  margin: 12px 2px 0; font-size: 10.5px; color: var(--sub); line-height: 1.55;
}

.fit-banner {
  display: flex; align-items: flex-start; gap: 7px;
  margin-top: 14px; padding: 10px 12px;
  border-radius: 12px; background: #FDF3EA;
  border: 1px solid #F0D8C4;
  font-size: 10.5px; line-height: 1.55; color: #8A5A34;
}
.fit-banner .ic { width: 14px; height: 14px; color: var(--accent); flex: 0 0 auto; margin-top: 1px; }

.fit-flag {
  position: absolute; top: 6px; left: 6px; z-index: 4;
  height: 18px; padding: 0 6px; border-radius: 6px;
  display: flex; align-items: center;
  font-size: 9px; font-weight: 700; color: #fff;
  box-shadow: 0 3px 8px rgba(40, 40, 30, .18);
}
.fit-flag--early { background: #DE7A45; }
.fit-flag--late { background: #8A8F82; }
.score-flag {
  position: absolute; right: 6px; bottom: 6px; z-index: 4;
  padding: 2px 5px; border-radius: 6px;
  background: rgba(20, 24, 20, .62); color: #fff;
  font-size: 9px; font-weight: 700; letter-spacing: .01em;
}
.stats--me { margin-top: 14px; }

/* 编辑宝宝资料 */
.baby-hero { position: relative; }
.edit-btn {
  position: absolute; top: 14px; right: 14px;
  height: 26px; padding: 0 9px; border-radius: 999px;
  background: #F2F8EF; border: 1px solid var(--green-line);
  color: var(--green-700); font-size: 10.5px; font-weight: 600;
}
.field-input { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.field-input > span { font-size: 11px; color: var(--sub); }
.field-input input {
  height: 44px; border-radius: 12px; padding: 0 12px;
  border: 1px solid var(--line-strong); background: #FAF8F2;
  font-size: 15px; color: var(--ink); outline: none;
}
.field-input input:focus { border-color: var(--green); background: #fff; }
.hint { margin-top: 10px; font-size: 10px; color: var(--sub); line-height: 1.55; }

/* 不适龄提示 */
.fit-warn {
  display: flex; gap: 10px; margin-top: 12px; padding: 12px;
  border-radius: 12px; background: #FDF3EA; border: 1px dashed #EBC6A9;
}
.fit-warn .ic { width: 18px; height: 18px; color: var(--accent); flex: 0 0 auto; margin-top: 1px; }
.fit-warn b { font-size: 12.5px; display: block; color: #8A5A34; }
.fit-warn p { font-size: 10.5px; color: var(--sub); line-height: 1.55; margin-top: 2px; }
.fit-warn--late { background: #F4F3EE; border-color: #D8D5C8; }
.fit-warn--late b { color: #6B6F62; }
.pill--douban { background: #F6EDDD; color: #8A5A2B; border-color: #E8D6BC; }

/* 本机录音 */
.local-audio {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 16px; padding: 12px 14px;
  border-radius: 12px; background: #F7F5EE; border: 1px solid var(--line);
}
.local-audio b { font-size: 12px; display: block; }
.local-audio span { font-size: 10px; color: var(--sub); display: block; margin-top: 2px; }

/* 熄屏共读 */
.dim-entry {
  display: flex; align-items: center; gap: 5px;
  width: max-content; margin: 10px auto 0; padding: 6px 10px; border-radius: 999px;
  background: #F1EFE6; color: #5C6658; font-size: 10.5px;
}
.dim-entry .ic { width: 13px; height: 13px; }
.page--dim {
  position: fixed; inset: 0; z-index: 80;
  background: #050705; color: #2A382A;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  padding: 40px 24px; cursor: pointer;
}
.page--dim > * { animation: none !important; }
.dim-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #24402A; box-shadow: 0 0 12px rgba(58, 136, 70, .22);
}
.dim-status { font-size: 10.5px; letter-spacing: .08em; color: #2E3D2E; }
.dim-timer {
  font-size: 54px; font-weight: 200; letter-spacing: 2px;
  color: #33472F; font-variant-numeric: tabular-nums; line-height: 1.1;
}
.dim-book { font-size: 11px; color: #263326; }
.dim-hint {
  position: absolute; bottom: 40px;
  font-size: 10px; color: #1E2A1E; letter-spacing: .04em;
}
.dim-tip { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.dim-tip > div { padding: 12px; border-radius: 12px; background: #F7F5EE; }
.dim-tip b { font-size: 12px; display: block; }
.dim-tip span { display: block; margin-top: 3px; font-size: 10.5px; color: var(--sub); line-height: 1.55; }

.scan-item .scan-fit {
  display: inline-flex; align-items: center; align-self: flex-start;
  margin-top: 5px; padding: 2px 7px; border-radius: 6px;
  font-size: 9.5px; font-weight: 700;
  background: #FDF0E7; color: #B4652F; border: 1px solid #F0D3BC;
}
.scan-item .scan-fit--late { background: #F1EFE8; color: #7A7F70; border-color: #DDD9CB; }

/* 调整计划 · AI 语音小助手 */
.ai-card {
  margin-top: 14px; padding: 14px; border-radius: 16px;
  background: linear-gradient(180deg, #F4F8F0, #FAF8F2);
  border: 1px solid #DCE7D6;
}
.ai-head { display: flex; align-items: center; gap: 9px; }
.ai-orb {
  width: 30px; height: 30px; border-radius: 10px; flex: 0 0 auto;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.ai-orb .ic { width: 15px; height: 15px; }
.ai-head b { font-size: 12.5px; display: block; }
.ai-head span { font-size: 10px; color: var(--sub); display: block; margin-top: 2px; }
.ai-done {
  margin-left: auto; font-style: normal; font-size: 9.5px;
  color: var(--green-700); background: var(--green-soft);
  padding: 2px 7px; border-radius: 999px;
}
.ai-mic {
  width: 100%; height: 44px; margin-top: 12px; border-radius: 12px;
  background: #fff; border: 1px solid #CFE0C8; color: var(--green-700);
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 12px; font-weight: 600;
}
.ai-mic .ic { width: 16px; height: 16px; }
.ai-mic.is-on { background: #EAF3E6; border-color: #B9D3AE; }
.ai-wave {
  height: 22px; margin-top: 10px;
  display: flex; align-items: center; justify-content: center; gap: 3px;
}
.ai-wave i {
  width: 3px; height: 8px; border-radius: 2px; background: #7FB08A;
  animation: aiWave 1s infinite ease-in-out;
}
.ai-wave i:nth-child(2) { animation-delay: .12s; }
.ai-wave i:nth-child(3) { animation-delay: .24s; }
.ai-wave i:nth-child(4) { animation-delay: .36s; }
.ai-wave i:nth-child(5) { animation-delay: .48s; }
@keyframes aiWave {
  0%, 100% { transform: scaleY(.55); }
  50% { transform: scaleY(1.7); }
}
.ai-said {
  margin-top: 10px; padding: 10px 12px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line);
  font-size: 11px; line-height: 1.6; color: var(--ink-2);
}
.ai-read {
  margin-top: 8px; padding: 10px 12px; border-radius: 10px;
  background: #EFF6EA; font-size: 10.5px; line-height: 1.55; color: var(--ink-2);
}
.ai-read b { display: block; font-size: 11px; color: var(--green-700); margin-bottom: 2px; }
.ai-example { margin-top: 8px; font-size: 9.5px; color: var(--sub); line-height: 1.5; }

/* ---------------- 动效 ---------------- */
.page > *:not(.sticky-cta) { animation: rise .42s cubic-bezier(.2, .8, .2, 1) both; }
.page > *:nth-child(1) { animation-delay: .02s; }
.page > *:nth-child(2) { animation-delay: .05s; }
.page > *:nth-child(3) { animation-delay: .08s; }
.page > *:nth-child(4) { animation-delay: .11s; }
.page > *:nth-child(5) { animation-delay: .14s; }
.page > *:nth-child(6) { animation-delay: .17s; }
.page > *:nth-child(7) { animation-delay: .2s; }
.page > *:nth-child(n+8) { animation-delay: .22s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------------- 桌面 ---------------- */
@media (min-width: 640px) {
  body { padding: 22px 0; }
  .app { border-radius: 26px; min-height: calc(100vh - 44px); }
  .tabbar { bottom: 22px; border-radius: 0 0 26px 26px; }
  .sticky-cta { bottom: 22px; }
  body.has-tabbar .sticky-cta { bottom: calc(82px + env(safe-area-inset-bottom)); }
  .sheet-panel { border-radius: 24px; margin-bottom: 22px; }
  .sheet-root { align-items: center; }
  .toast { bottom: 120px; }
}

/* ---------------- 原书封面小图 ---------------- */
.cover--img { background: #F2EEE3; }
.cover--img img {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.cover__fb {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 8px; text-align: center; overflow: hidden;
  font-size: 9px; font-weight: 700; line-height: 1.35; letter-spacing: -.1px;
  color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .22);
  background: linear-gradient(155deg, var(--c1), var(--c2));
}
.cover--img::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, .16), rgba(255, 255, 255, .1) 6%, transparent 12%);
}

/* ---------------- 共读 · 当天多本书切换 ---------------- */
.sess-book { gap: 8px; }
.sess-book__meta { flex: 1; min-width: 0; }
.sess-nav {
  width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%;
  background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-700); box-shadow: var(--shadow-sm);
}
.sess-nav .ic { width: 16px; height: 16px; }
.sess-nav[disabled] { opacity: .28; box-shadow: none; }
.sess-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.sess-dot {
  width: 6px; height: 6px; padding: 0; border-radius: 999px;
  background: #D8D4C7; transition: width .2s, background .2s;
}
.sess-dot.is-on { width: 18px; background: var(--green); }
.sum-books { font-size: 10.5px; color: var(--sub); margin-top: 10px; line-height: 1.6; }

/* ---------------- 各期阅读报告 ---------------- */
.report-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 14px; }
.report-row {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 12px 13px; text-align: left;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-sm);
}
.report-row__no {
  width: 46px; flex: 0 0 auto;
  display: flex; flex-direction: column; gap: 2px;
  font-size: 10px; color: var(--sub);
}
.report-row__no em {
  align-self: flex-start; padding: 1px 4px; border-radius: 4px;
  font-style: normal; font-size: 8.5px; font-weight: 700;
  color: var(--green-700); background: var(--green-soft);
}
.report-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.report-row__body b { font-size: 19px; line-height: 1.15; letter-spacing: -.5px; color: var(--green-900); }
.report-row__body span { font-size: 10px; color: var(--sub); }
.report-row__spark { width: 62px; flex: 0 0 auto; }
.report-row__spark .spark { display: block; width: 100%; height: 34px; }
.report-row > .ic { width: 15px; height: 15px; color: var(--sub); flex: 0 0 auto; }

.report-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.report-tabs::-webkit-scrollbar { display: none; }
.report-tab {
  flex: 0 0 auto; height: 30px; padding: 0 13px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line-strong);
  font-size: 11px; color: var(--ink-2);
}
.report-tab.is-on { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }
.report-history {
  display: flex; align-items: flex-start; gap: 5px;
  margin: 0 0 12px; font-size: 10.5px; color: var(--sub); line-height: 1.5;
}
.report-history .ic { width: 13px; height: 13px; margin-top: 1px; flex: 0 0 auto; }
