:root {
  --bg: #FFF3E4;
  --blob1: #FFE8CD;
  --blob2: #FFE0D6;
  --paper: #FFFDF8;
  --ink: #43302B;
  --soft: #A08A7E;
  --coral: #FF6B4A;
  --coral-deep: #E85D3B;
  --sun: #FFC53D;
  --nav-active: #FFEBD9;
  --banner1: #FFF1C9;
  --banner2: #FFE3C8;
  --key-bg: #FFF6E4;
  --leaf: #58B78A;
  --sky: #6FA8DC;
  --track: #FFE3C8;
  --r-lg: 26px;
  --r-md: 18px;
}
/* 主题：青提 */
body[data-theme="mint"] {
  --bg: #EDF6EE; --blob1: #DDEFDD; --blob2: #D2EAD8;
  --coral: #3FA57E; --coral-deep: #2E8A67; --sun: #A9D26B;
  --nav-active: #DDEFE0; --banner1: #EAF5DC; --banner2: #DCEEDA; --key-bg: #EAF5EC;
}
/* 主题：海盐 */
body[data-theme="sea"] {
  --bg: #ECF3FB; --blob1: #DDEAF8; --blob2: #D4E4F6;
  --coral: #4E8FD9; --coral-deep: #3B76BC; --sun: #79C6E8;
  --nav-active: #DFEBF9; --banner1: #E4F1FB; --banner2: #D7E8F8; --key-bg: #EAF2FB;
}
/* 主题：莓果 */
body[data-theme="berry"] {
  --bg: #FCEFF3; --blob1: #F9E0E8; --blob2: #F6D8E4;
  --coral: #E8638C; --coral-deep: #D14A76; --sun: #FFAF6E;
  --nav-active: #FBE2EA; --banner1: #FDE9EF; --banner2: #F9DBE5; --key-bg: #FBEFF3;
}
/* 小陪的发带与鞋随主题换色 */
.band { fill: var(--coral); }
.shoe { fill: var(--coral-deep); }
.blush { fill: var(--coral); opacity: .45; }
* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
body {
  font-family: "PingFang SC", "MiSans", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, var(--blob1) 0 140px, transparent 141px),
    radial-gradient(circle at 88% 30%, var(--blob2) 0 120px, transparent 121px),
    var(--bg);
  transition: background .4s ease;
  color: var(--ink);
  display: flex; justify-content: center; min-height: 100vh;
}
.hidden { display: none !important; }
.soft { color: var(--soft); font-size: .85rem; }

.phone { width: min(480px, 100vw); background: transparent; padding: 18px 18px 96px; position: relative; }

/* ---------- 顶部 ---------- */
.mascot-row { display: flex; align-items: center; gap: 10px; }
.mascot { animation: bob 3s ease-in-out infinite; flex-shrink: 0; }
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
.mascot.cheer { animation: cheer .7s ease; }
@keyframes cheer { 0%{transform:scale(1)} 35%{transform:scale(1.18) rotate(-6deg)} 70%{transform:scale(1.08) rotate(5deg)} 100%{transform:scale(1)} }
.bubble {
  background: var(--paper); border-radius: 20px 20px 20px 4px; padding: 12px 16px;
  font-size: .95rem; font-weight: 600; box-shadow: 0 4px 14px rgba(200,140,90,.18); line-height: 1.5;
}
.track { margin-top: 14px; }
.track-bar { position: relative; height: 18px; background: rgba(255,255,255,.85); border-radius: 999px; box-shadow: inset 0 2px 6px rgba(200,140,90,.22); }
.track-fill { position: absolute; inset: 0 auto 0 0; width: 0%; background: linear-gradient(90deg, var(--sun), var(--coral)); border-radius: 999px; transition: width .6s ease; }
.runner { position: absolute; top: -16px; left: 0%; font-size: 22px; transform: translateX(-50%); transition: left .6s ease; }
.flag { position: absolute; right: -4px; top: -18px; font-size: 18px; }
.track-meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: .85rem; color: var(--soft); }
.track-meta b { color: var(--coral-deep); font-size: 1rem; }

/* ---------- 标题标语 ---------- */
.slogan { font-size: 1.45rem; font-weight: 800; margin: 26px 0 14px; letter-spacing: .5px; }
.slogan span { display: block; font-size: .82rem; font-weight: 500; color: var(--soft); margin-top: 4px; letter-spacing: 0; }
.slogan.mt { margin-top: 34px; }
.motto { background: var(--paper); border-left: 5px solid var(--sun); border-radius: 0 var(--r-md) var(--r-md) 0; padding: 12px 16px; font-weight: 600; margin-bottom: 14px; }

/* ---------- 任务卡 ---------- */
.tasks { display: flex; flex-direction: column; gap: 12px; }
.task {
  display: flex; align-items: center; gap: 14px; background: var(--paper);
  border-radius: var(--r-lg); padding: 16px 18px; box-shadow: 0 4px 14px rgba(200,140,90,.12);
  cursor: pointer; transition: transform .15s ease; border: 2px solid transparent;
}
.task:active { transform: scale(.97); }
.task-check {
  width: 34px; height: 34px; border-radius: 50%; border: 3px dashed #E8C9A8; background: none;
  flex-shrink: 0; display: grid; place-items: center; font-size: 18px; color: transparent; transition: all .2s;
}
.task.done { border-color: var(--leaf); }
.task.done .task-check { border: none; background: var(--leaf); color: #fff; animation: pop .3s ease; }
@keyframes pop { 0%{transform:scale(.4)} 70%{transform:scale(1.25)} 100%{transform:scale(1)} }
.task h4 { font-size: 1rem; font-weight: 700; }
.task.done h4 { color: var(--soft); text-decoration: line-through; }
.task p { font-size: .8rem; color: var(--soft); margin-top: 3px; line-height: 1.5; }

/* ---------- 心情 ---------- */
.mood-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mood-q {
  border: none; border-radius: var(--r-lg); padding: 18px 8px 14px; cursor: pointer;
  font-size: .9rem; font-weight: 700; color: var(--ink); transition: transform .15s;
  box-shadow: 0 4px 12px rgba(200,140,90,.14);
}
.mood-q:active { transform: scale(.95); }
.mood-q i { display: block; font-style: normal; font-size: 30px; margin-bottom: 6px; }
.q-red { background: #FFD9CC; } .q-yellow { background: #FFEDBE; }
.q-blue { background: #D9E6F5; } .q-green { background: #D8EEDD; }
.mood-words { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.word {
  border: none; background: var(--paper); border-radius: 999px; padding: 10px 20px;
  font-size: .95rem; font-weight: 600; cursor: pointer; box-shadow: 0 3px 10px rgba(200,140,90,.14);
}
.word:active { transform: scale(.94); }
.mood-done { background: var(--paper); border-radius: var(--r-lg); padding: 18px; font-weight: 600; line-height: 1.7; box-shadow: 0 4px 12px rgba(200,140,90,.12); }

/* ---------- 按钮 ---------- */
.big-btn {
  display: block; width: 100%; border: none; border-radius: 999px; padding: 15px;
  background: linear-gradient(180deg, var(--coral), var(--coral-deep)); color: #fff;
  font-size: 1.05rem; font-weight: 800; letter-spacing: 2px; cursor: pointer;
  box-shadow: 0 6px 16px rgba(232,93,59,.35); transition: transform .15s;
}
.big-btn:active { transform: scale(.97); }
.big-btn.light { background: #fff; color: #4A3A78; box-shadow: 0 6px 16px rgba(0,0,0,.25); }

/* ---------- 错题 ---------- */
.form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; background: var(--paper); border-radius: var(--r-lg); padding: 16px; box-shadow: 0 4px 14px rgba(200,140,90,.12); }
.form-row { display: flex; gap: 10px; }
.form select, .form input, .form textarea {
  border: 2px solid #F0DCC4; border-radius: var(--r-md); padding: 12px; font-size: .95rem;
  font-family: inherit; background: #fff; width: 100%; color: var(--ink);
}
.form textarea { min-height: 84px; resize: vertical; line-height: 1.6; }
#review-due { margin-top: 18px; }
.due-banner { background: linear-gradient(135deg, var(--banner1), var(--banner2)); border-radius: var(--r-lg); padding: 16px; margin-bottom: 12px; }
.due-banner strong { display: block; margin-bottom: 8px; }
.due-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; border-top: 1.5px dashed #EBCFA4; }
.due-item small { display: block; color: var(--soft); margin-top: 2px; }
.mini { border: none; background: #fff; border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: .85rem; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.mini.ok { background: var(--leaf); color: #fff; }
.stone {
  background: var(--paper); border-radius: var(--r-lg); padding: 14px 16px; margin-top: 12px;
  box-shadow: 0 4px 12px rgba(200,140,90,.10); display: flex; gap: 12px; align-items: flex-start;
}
.stone .icon { font-size: 26px; }
.stone h4 { font-size: .95rem; }
.stone h4 em { font-style: normal; color: var(--soft); font-weight: 500; font-size: .8rem; margin-left: 6px; }
.stone p { font-size: .82rem; color: var(--soft); margin-top: 4px; line-height: 1.55; }
.stone .status { font-size: .78rem; margin-top: 6px; color: var(--coral-deep); font-weight: 600; }
.stone.cleared .status { color: var(--leaf); }

/* ---------- 成长小路 ---------- */
.path { position: relative; padding: 4px 0; margin-bottom: 22px; }
.milestone {
  position: relative; background: var(--paper); border-radius: var(--r-lg);
  padding: 14px 16px; margin-bottom: 14px; box-shadow: 0 4px 12px rgba(200,140,90,.12);
}
.milestone::before {
  content: ""; position: absolute; left: -27px; top: 20px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--sun); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--sun);
}
.milestone .icon { font-size: 26px; float: left; margin-right: 12px; }
.milestone strong { font-size: .98rem; display: block; }
.milestone p { font-size: .8rem; color: var(--soft); margin-top: 3px; }
.path-empty { background: var(--paper); border-radius: var(--r-lg); padding: 22px; text-align: center; color: var(--soft); line-height: 1.8; }
.survey-card { background: var(--paper); border-radius: var(--r-lg); padding: 18px; box-shadow: 0 4px 14px rgba(200,140,90,.12); }
.survey-card h3 { margin-bottom: 10px; }
.survey-q { padding: 12px 0; border-bottom: 1.5px dashed #F0DCC4; font-size: .92rem; font-weight: 600; }
.scale { display: flex; gap: 8px; margin-top: 8px; }
.scale button { width: 38px; height: 38px; border-radius: 50%; border: 2px solid #F0DCC4; background: #fff; cursor: pointer; font-weight: 700; color: var(--soft); }
.scale button.on { background: var(--leaf); border-color: var(--leaf); color: #fff; }
#survey-save { margin-top: 14px; }

/* ---------- 周五 ---------- */
.friday-card, .vision-card { background: var(--paper); border-radius: var(--r-lg); padding: 26px 22px; text-align: center; box-shadow: 0 4px 14px rgba(200,140,90,.12); line-height: 1.8; }
.moon, .mountain { font-size: 54px; margin-bottom: 8px; }
.friday-card .big-btn, .vision-card .big-btn { margin-top: 16px; }
.friday-card p { margin-bottom: 6px; }

/* 沉浸模式 */
.session { position: fixed; inset: 0; z-index: 60; background: linear-gradient(180deg, #4A3A78, #241B45 60%, #15102B); display: grid; place-items: center; color: #fff; }
.session-inner { width: min(420px, 90vw); text-align: center; position: relative; }
.orb {
  width: 170px; height: 170px; margin: 0 auto 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFD59E, #FF9E6B 70%);
  display: grid; place-items: center; gap: 0; box-shadow: 0 0 60px rgba(255,180,120,.45);
  animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe { 0%,100%{transform:scale(1)} 50%{transform:scale(1.08)} }
.orb span { font-size: 1.3rem; color: #6B3F1D; font-weight: 800; }
.orb b { font-size: 1.15rem; color: #8A5326; }
.session h3 { font-size: 1.3rem; margin-bottom: 14px; letter-spacing: 1px; }
#step-body { min-height: 120px; font-size: 1rem; line-height: 2; color: #E8E2F5; }
#step-body ul { list-style: none; }
#step-body textarea {
  width: 100%; min-height: 100px; border: none; border-radius: var(--r-md); padding: 14px;
  font-family: inherit; font-size: .95rem; background: rgba(255,255,255,.12); color: #fff; line-height: 1.7;
}
#step-body textarea::placeholder { color: rgba(255,255,255,.45); }
.session .big-btn { margin-top: 18px; }
.quit { position: absolute; top: -46px; right: 0; border: none; background: rgba(255,255,255,.15); color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; }

/* ---------- 愿景 ---------- */
.keys { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; text-align: left; }
.key {
  display: flex; align-items: center; gap: 10px; background: var(--key-bg); border-radius: var(--r-md);
  padding: 12px 14px; font-size: .9rem; font-weight: 600; color: var(--soft);
}
/* 主题选择器 */
.swatches { display: flex; gap: 16px; justify-content: center; padding: 14px 0 6px; }
.swatch { border: none; background: none; cursor: pointer; text-align: center; font-size: .8rem; font-weight: 700; color: var(--soft); }
.swatch i { display: block; width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 6px; border: 3px solid transparent; box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.swatch.on i { border-color: var(--ink); }
.key.ok { background: #E3F3E8; color: #2E7D5B; }
.key .k { font-size: 20px; filter: grayscale(1) opacity(.45); }
.key.ok .k { filter: none; }
.key small { font-weight: 500; margin-left: auto; }
.key .mini { flex-shrink: 0; }

/* ---------- 底部导航 ---------- */
.bottom-nav {
  position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%);
  width: min(456px, calc(100vw - 24px)); background: var(--paper); border-radius: 999px;
  display: flex; padding: 8px; box-shadow: 0 8px 24px rgba(120,70,30,.18); z-index: 40;
}
.nav-item {
  flex: 1; border: none; background: none; border-radius: 999px; padding: 8px 0 6px;
  font-size: .72rem; font-weight: 700; color: var(--soft); cursor: pointer; position: relative;
}
.nav-item i { display: block; font-style: normal; font-size: 20px; margin-bottom: 2px; filter: grayscale(.6) opacity(.7); }
.nav-item.active { background: var(--nav-active); color: var(--coral-deep); }
.nav-item.active i { filter: none; }
.nav-item span { position: absolute; top: 2px; right: 12px; font-size: .6rem; }

.side-actions { position: fixed; top: 16px; right: calc(50% - min(240px, 50vw) + 10px); display: flex; gap: 8px; z-index: 40; }
.side-actions button { border: none; background: var(--paper); width: 38px; height: 38px; border-radius: 50%; font-size: 16px; cursor: pointer; box-shadow: 0 4px 12px rgba(120,70,30,.15); }

/* ---------- 弹窗 ---------- */
#modal-mask { position: fixed; inset: 0; background: rgba(60,35,20,.45); display: grid; place-items: center; z-index: 70; padding: 16px; }
.modal { background: var(--paper); border-radius: var(--r-lg); padding: 22px; width: min(440px, 94vw); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.modal-head button { border: none; background: #F4E5D2; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; }
.report-line { padding: 12px 0; border-bottom: 1.5px dashed #F0DCC4; line-height: 1.8; font-size: .95rem; }
.report-note { font-size: .78rem; color: var(--soft); margin-top: 10px; line-height: 1.6; }

/* ---------- 视图与彩纸 ---------- */
.view { display: none; animation: fadein .25s ease; }
.view.active { display: block; }
@keyframes fadein { from{opacity:0; transform:translateY(8px)} to{opacity:1; transform:none} }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 80; overflow: hidden; }
.confetto { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: .9; } }

/* ---------- 内容层新增 ---------- */
.quiet-pill {
  margin-top: 12px; border: 2px dashed #E8C9A8; background: none; border-radius: 999px;
  padding: 9px 18px; font-size: .85rem; font-weight: 700; color: var(--soft); cursor: pointer;
}
.quiet-pill.on { border-style: solid; border-color: var(--coral); color: var(--coral-deep); background: var(--nav-active); }
.ask-row { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--soft); }
.ask-row input { width: 18px; height: 18px; accent-color: var(--coral); }
.ask-row select { width: auto; padding: 6px 10px; }
.ask-list { background: var(--paper); border-radius: var(--r-lg); padding: 14px 16px; margin-top: 14px; box-shadow: 0 4px 12px rgba(120,70,30,.10); }
.ask-list strong { display: block; margin-bottom: 6px; }
.ask-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1.5px dashed #F0DCC4; font-size: .9rem; }
.reveal-btn { border: none; background: var(--nav-active); border-radius: 999px; padding: 8px 14px; font-size: .82rem; font-weight: 700; color: var(--coral-deep); cursor: pointer; }
.reveal-note { background: #fff; border-radius: var(--r-md); padding: 10px 12px; margin: 8px 0; font-size: .85rem; line-height: 1.6; }
.task .go { margin-left: auto; font-size: 18px; color: var(--soft); }
.onboard-mask { position: fixed; inset: 0; z-index: 90; background: var(--bg); display: grid; place-items: center; padding: 20px; }
.ob-card { width: min(420px, 92vw); background: var(--paper); border-radius: var(--r-lg); padding: 30px 26px; text-align: center; box-shadow: 0 10px 40px rgba(120,70,30,.18); }
.ob-card h2 { font-size: 1.4rem; margin: 12px 0; }
.ob-card p { line-height: 1.9; color: var(--ink); margin-bottom: 10px; }
.ob-card .soft { display: block; margin-bottom: 8px; }
.ob-choices { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.ob-choice { border: 2px solid #F0DCC4; background: #fff; border-radius: var(--r-md); padding: 13px; font-size: .95rem; font-weight: 700; cursor: pointer; color: var(--ink); }
.ob-choice.on { border-color: var(--coral); background: var(--nav-active); }
.share-text { background: #FFF; border-radius: var(--r-md); padding: 14px; font-size: .9rem; line-height: 1.9; white-space: pre-wrap; border: 1.5px dashed #E8C9A8; margin-bottom: 12px; text-align: left; }

/* ---------- 今日一瞬 ---------- */
.moment-box { background: var(--paper); border-radius: var(--r-lg); padding: 18px; box-shadow: 0 4px 14px rgba(120,70,30,.12); }
.moment-type { display: flex; gap: 10px; margin-bottom: 12px; }
.mt-btn { flex: 1; border: 2px solid #F0DCC4; background: #fff; border-radius: var(--r-md); padding: 12px; font-size: .92rem; font-weight: 700; cursor: pointer; color: var(--ink); }
.mt-btn.on { border-color: var(--coral); background: var(--nav-active); }
.moment-tpl { font-size: .95rem; line-height: 2.2; }
.moment-tpl input { border: none; border-bottom: 2px dashed var(--coral); background: none; font-size: .95rem; font-family: inherit; width: 240px; max-width: 60vw; padding: 4px 6px; color: var(--ink); }
.moment-tpl input:focus { outline: none; }
.feel-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.sealed { text-align: center; padding: 10px 0; line-height: 1.9; }
.sealed .lock { font-size: 40px; }
.reveal-pair { border-top: 1.5px dashed #F0DCC4; margin-top: 12px; padding-top: 12px; }
.reveal-pair .who { font-size: .8rem; font-weight: 800; color: var(--coral-deep); }
.reveal-pair p { line-height: 1.8; margin: 4px 0 8px; }
.catch-tip { background: var(--nav-active); border-radius: var(--r-md); padding: 10px 14px; font-size: .82rem; line-height: 1.7; color: var(--coral-deep); }

/* ---------- 心情 2.0 ---------- */
.mq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mq-tile {
  border: none; border-radius: var(--r-lg); padding: 20px 10px 16px; cursor: pointer;
  font-size: .92rem; font-weight: 700; color: #fff; transition: transform .15s;
  background: linear-gradient(145deg, color-mix(in srgb, var(--qc) 78%, #fff), var(--qc));
  box-shadow: 0 5px 14px color-mix(in srgb, var(--qc) 40%, transparent);
}
.mq-tile:active { transform: scale(.95); }
.mq-tile i { display: block; font-style: normal; font-size: 32px; margin-bottom: 6px; }
.mood-step { font-weight: 700; margin-bottom: 10px; }
.wrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.wrow .word { border: none; }
.mood-back { margin-top: 4px; }
.about-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.about-chip {
  border: 2px solid #F0DCC4; background: var(--paper); border-radius: 999px; padding: 11px 18px;
  font-size: .95rem; font-weight: 700; cursor: pointer; color: var(--ink);
}
.about-chip:active { transform: scale(.95); }
.mood-done { background: var(--paper); border-radius: var(--r-lg); padding: 18px; font-weight: 600; line-height: 1.8; box-shadow: 0 4px 12px rgba(120,70,30,.12); }
.mood-actions { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.mood-week { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 0 4px; }
.wk-dot { width: 16px; height: 16px; border-radius: 50%; background: #EFE3D2; display: inline-block; }
.wk-dot.today { outline: 3px solid rgba(0,0,0,.12); outline-offset: 2px; }

/* ---------- 一瞬双格 ---------- */
.mo-sub { font-size: .85rem; font-weight: 800; color: var(--soft); margin: 0 4px 8px; letter-spacing: 1px; }
.mo-sub-gap { margin-top: 16px; }
.sm-input { display: block; width: 100%; border: none; border-bottom: 2px dashed var(--coral); background: none; font-size: .92rem; font-family: inherit; padding: 6px 4px; margin: 2px 0 10px; color: var(--ink); }
.sm-input:focus { outline: none; }
.moment-box .reveal-pair:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.moment-tpl .soft { font-size: .78rem; }

/* ---------- 放走它（星星缩小飘走） ---------- */
#release textarea { width: 100%; min-height: 90px; border: none; border-radius: var(--r-md); padding: 12px; font-family: inherit; font-size: .95rem; margin: 14px 0; background: rgba(255,255,255,.92); color: #43302B; }
#release textarea:focus { outline: none; }
#rel-anim { text-align: center; }
#rel-star { display: inline-flex; align-items: center; justify-content: center; width: 220px; height: 220px; border-radius: 50%; margin: 10px auto 18px; background: radial-gradient(circle, rgba(255,235,180,.95) 0%, rgba(255,200,120,.55) 55%, transparent 72%); box-shadow: 0 0 60px rgba(255,220,150,.5); }
#rel-star span { max-width: 150px; font-size: .9rem; line-height: 1.6; color: #6B4A2B; word-break: break-all; }
#rel-star.shrink { animation: star-away 14s ease-in forwards; }
@keyframes star-away {
  0%   { transform: scale(1) translateY(0); opacity: 1; }
  70%  { transform: scale(.28) translateY(-130px); opacity: .75; }
  100% { transform: scale(.02) translateY(-240px); opacity: 0; }
}
#rel-msg { min-height: 2.2em; }

/* ---------- 烦恼盒 / 周五开盒 ---------- */
#modal-body textarea { width: 100%; min-height: 80px; border: 1.5px solid #F0DCC4; border-radius: var(--r-md); padding: 10px 12px; font-family: inherit; font-size: .92rem; margin: 8px 0 10px; color: var(--ink); background: var(--paper); }
#modal-body textarea:focus { outline: none; border-color: var(--coral); }
.worry-item { display: flex; align-items: center; gap: 10px; justify-content: space-between; background: rgba(255,255,255,.14); border-radius: var(--r-md); padding: 8px 12px; margin-bottom: 8px; font-size: .9rem; line-height: 1.5; transition: all .5s; }
.worry-item span { flex: 1; text-align: left; }
.worry-item.torn { opacity: 0; transform: translateX(40px) rotate(6deg); }

/* ---------- 小陪的饭碗 ---------- */
.bowl-card { position: relative; display: flex; align-items: center; gap: 14px; background: var(--paper); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: 0 4px 14px rgba(120,70,30,.12); margin-bottom: 10px; }
.bowl-pet { position: relative; flex-shrink: 0; }
#bowl-stage-icon { position: absolute; right: -6px; bottom: -4px; font-size: 20px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.15)); }
.bowl-info { flex: 1; min-width: 0; }
.bowl-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.bowl-top b { font-size: 1.02rem; }
#bowl-power { font-size: .82rem; font-weight: 800; color: var(--coral-deep); }
.bowl-bar { height: 10px; border-radius: 6px; background: var(--nav-active); margin: 8px 0 6px; overflow: hidden; }
#bowl-fill { height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--coral), var(--sun, #FFC53D)); transition: width .6s cubic-bezier(.22,1,.36,1); }
#bowl-next { font-size: .78rem; }
#power-pop { position: absolute; top: 8px; right: 14px; font-weight: 900; color: var(--coral-deep); opacity: 0; pointer-events: none; font-size: .95rem; }
#power-pop.pop { animation: power-float 1.4s ease-out forwards; }
@keyframes power-float {
  0% { opacity: 0; transform: translateY(6px) scale(.8); }
  25% { opacity: 1; transform: translateY(-2px) scale(1.15); }
  100% { opacity: 0; transform: translateY(-26px) scale(1); }
}

/* ---------- 小陪成长动画 ---------- */
#bowl-pet-svg svg { display: block; animation: pet-bob 3.4s ease-in-out infinite; }
@keyframes pet-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
#bowl-pet-svg.chew svg { animation: pet-chew .8s ease-in-out; }
@keyframes pet-chew {
  0%,100% { transform: scale(1,1); }
  20% { transform: scale(1.12,.86); }
  45% { transform: scale(.92,1.1); }
  70% { transform: scale(1.08,.9); }
}
.fly-rock { position: absolute; right: 24px; top: -8px; font-size: 22px; pointer-events: none; animation: rock-fly .85s cubic-bezier(.5,-.2,.6,1) forwards; }
@keyframes rock-fly {
  0%   { transform: translate(0,0) scale(1) rotate(0); opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: translate(-220px, 46px) scale(.15) rotate(-220deg); opacity: 0; }
}
.bowl-card.evolve { animation: evolve-flash 1.3s ease-out; }
@keyframes evolve-flash {
  0%   { box-shadow: 0 4px 14px rgba(120,70,30,.12); transform: scale(1); }
  30%  { box-shadow: 0 0 0 6px rgba(255,197,61,.55), 0 0 42px rgba(255,170,60,.8); transform: scale(1.04); }
  100% { box-shadow: 0 4px 14px rgba(120,70,30,.12); transform: scale(1); }
}

/* ---------- 进化路径（关卡图） ---------- */
.evo-track { display: flex; align-items: flex-start; justify-content: space-between; margin: 2px 2px 12px; }
.evo-node { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; opacity: .45; }
.evo-node i { font-style: normal; font-size: 20px; width: 36px; height: 36px; display: grid; place-items: center; background: var(--paper); border-radius: 50%; box-shadow: 0 2px 8px rgba(120,70,30,.12); filter: grayscale(.9); }
.evo-node b { font-size: .62rem; white-space: nowrap; }
.evo-node small { font-size: .58rem; color: var(--soft); }
.evo-node.past { opacity: .9; }
.evo-node.past i { filter: none; }
.evo-node.cur { opacity: 1; }
.evo-node.cur i { filter: none; box-shadow: 0 0 0 3px var(--coral), 0 2px 8px rgba(120,70,30,.2); animation: cur-pulse 2s infinite; }
@keyframes cur-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.evo-link { flex: 1; height: 3px; margin-top: 17px; background: var(--nav-active); border-radius: 2px; min-width: 6px; }
.bowl-demo { display: block; margin: 0 auto 4px; }

/* ---------- 徽章图鉴 ---------- */
.wall-sub { font-size: .8rem; color: var(--soft); margin: 0 4px 10px; }
.badge-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.badge { background: var(--paper); border-radius: var(--r-md); padding: 14px 6px 11px; display: flex; flex-direction: column; align-items: center; gap: 4px; box-shadow: 0 3px 10px rgba(120,70,30,.1); opacity: .45; filter: grayscale(.9); cursor: pointer; transition: transform .15s; }
.badge:active { transform: scale(.95); }
.badge.got { opacity: 1; filter: none; }
.badge.t3 { box-shadow: 0 0 0 2px rgba(232,169,60,.45), 0 4px 12px rgba(120,70,30,.16); }
.badge i { font-style: normal; font-size: 27px; line-height: 1; }
.badge b { font-size: .74rem; }
.badge .pips { display: flex; gap: 4px; }
.badge .pips em { width: 7px; height: 7px; border-radius: 50%; background: #E8DECF; }
.badge .pips em.p1 { background: #C8824B; }
.badge .pips em.p2 { background: #9FA9B3; }
.badge .pips em.p3 { background: #E8A93C; }
.badge small { font-size: .64rem; color: var(--soft); }
.unlock-banner { background: linear-gradient(90deg, rgba(255,197,61,.25), rgba(255,107,74,.15)); border-radius: var(--r-md); padding: 10px 14px; font-weight: 800; font-size: .88rem; margin-bottom: 10px; }
.wall-note { font-size: .82rem; margin: 12px 4px 0; line-height: 1.7; }
.wall-note .soft { font-size: .74rem; }

/* ---------- 愿景：画山 ---------- */
.vision-view { text-align: left; }
.vision-view p { line-height: 1.9; margin: 0 0 12px; font-size: .92rem; }
.vision-view .mini { display: block; margin: 4px auto 0; }
.vision-card .mood-step { text-align: left; }
.vision-card .feel-chips { justify-content: flex-start; }
.vision-card .sm-input { text-align: left; }

/* ---------- 家长端（模拟另一台手机） ---------- */
.pview { position: fixed; inset: 0; z-index: 60; background: #F4EFE7; overflow-y: auto; }
.pview.hidden { display: none; }
.pview-inner { max-width: 560px; margin: 0 auto; padding: 0 18px 40px; }
.p-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; background: #5B84B1; color: #fff; margin: 0 -18px 14px; padding: 14px 18px; }
.p-head b { font-size: 1.05rem; }
.p-head span { font-size: .72rem; opacity: .75; flex: 1; }
.p-head .quit { position: static; background: rgba(255,255,255,.18); color: #fff; }
.p-rule { background: #FFF; border-left: 4px solid #5B84B1; border-radius: var(--r-md); padding: 12px 14px; font-size: .85rem; line-height: 1.7; margin-bottom: 6px; }
.p-sec { font-size: .92rem; margin: 20px 4px 8px; color: #43302B; }
.p-sec .soft { font-weight: 400; font-size: .74rem; }
.p-card { background: #fff; border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 8px; font-size: .9rem; line-height: 1.8; box-shadow: 0 2px 8px rgba(80,60,40,.07); }
.p-tag { display: inline-block; font-size: .7rem; font-weight: 800; background: #EEE6DA; color: #8A7A66; border-radius: 6px; padding: 1px 8px; margin-right: 6px; }
.fire-card { text-align: center; }
.fire-flames { font-size: 24px; letter-spacing: 2px; margin-bottom: 4px; }
.p-badge { display: inline-block; background: #FFF6E3; border-radius: 8px; padding: 4px 10px; margin: 2px 4px 2px 0; font-size: .8rem; font-weight: 700; }
.alt-row { display: flex; gap: 8px; align-items: flex-start; background: #F3F7FB; border-radius: var(--r-md); padding: 10px 12px; font-size: .84rem; line-height: 1.6; margin-top: 8px; cursor: pointer; }
.alt-row.on { background: #E6F3E9; }
.pview .sm-input { border-bottom-color: #5B84B1; }

/* ---------- 学堂 / 邀请函 ---------- */
.lesson { cursor: pointer; }
.lesson b { font-size: .88rem; }
.lesson.done b::before { content: ''; }
.lesson-body { margin: 8px 0 0; color: #5a4a3a; font-size: .86rem; line-height: 1.8; }
.ob-envelope { font-size: 64px; animation: env-float 2.4s ease-in-out infinite; }
@keyframes env-float { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(3deg); } }

/* ---------- 关怀卡 / 安全守护 / 点火 / 学长信 ---------- */
.care-card { background: linear-gradient(135deg, #FFF6E3, #FFEAD9); border-radius: var(--r-lg); padding: 14px 18px; margin-bottom: 16px; box-shadow: 0 4px 14px rgba(200,120,50,.15); }
.care-card.repair { background: linear-gradient(135deg, #EAF4EE, #F3FAF0); }
.care-tag { font-size: .74rem; font-weight: 800; color: var(--coral-deep); }
.care-card p { margin: 6px 0 8px; font-size: .95rem; line-height: 1.7; }
.care-send { display: inline-block; margin: 3px 4px 3px 0; text-align: left; white-space: normal; line-height: 1.5; }
.safety-tone { background: linear-gradient(180deg, #2E4057, #3B5068); }
.safety-note { border-left: 4px solid #E2572B; }
.rite-flame { font-size: 72px; animation: rite-grow 1.6s ease-out; }
@keyframes rite-grow { 0% { transform: scale(.2); opacity: 0; } 60% { transform: scale(1.25); } 100% { transform: scale(1); opacity: 1; } }
.grad-note { background: #FFF9EE; border: 1.5px dashed #E8C9A0; border-radius: var(--r-md); padding: 14px 16px; text-align: left; font-size: .9rem; line-height: 2; }
#contract-btn { margin-left: 8px; }

/* ---------- 错题拍照 ---------- */
.photo-row { display: inline-block; background: #FFF; border: 1.5px dashed var(--coral); border-radius: var(--r-md); padding: 9px 14px; font-size: .85rem; font-weight: 700; color: var(--coral-deep); cursor: pointer; margin: 2px 0 8px; }
.photo-row .soft { font-weight: 400; font-size: .74rem; }
.pphoto { display: block; max-width: 140px; border-radius: 10px; margin: 4px 0 6px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.sphoto { display: block; max-height: 64px; border-radius: 8px; margin: 6px 0 2px; cursor: zoom-in; }

/* 打卡流：心情区高亮脉冲 */
#mood-area.pulse { animation: area-pulse 1.6s ease-out; border-radius: var(--r-lg); }
@keyframes area-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,107,74,.55); }
  70% { box-shadow: 0 0 0 14px rgba(255,107,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,107,74,0); }
}
