/* ══ V2 通用 AI 结果框 ══════════════════════════════ */
.aibox {
  background: #f6f9f4; border: 1px solid #e2ece4; border-radius: 12px;
  padding: 12px 14px; margin-top: 10px;
}

/* ══ 首页「和心境聊聊」 ══════════════════════════════ */
.talkbar {
  display: flex; align-items: center; gap: 12px; width: 100%;
  margin: 12px 0 0; padding: 14px 16px; border-radius: 16px;
  border: 1px solid #d8e9df; background: linear-gradient(158deg, #f2f8f4, #eaf4ee);
  font-family: inherit; text-align: left;
}
.talkbar .talkic { font-size: 21px; line-height: 1; }
.talkbar .talktxt { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.talkbar .talktxt b { font-size: 15px; color: #2f5946; letter-spacing: .3px; }
.talkbar .talktxt i { font-style: normal; font-size: 11.5px; color: #7d8b82; }
.talkbar .talkarw { color: #9fb5a7; font-size: 18px; }

/* ══ 家庭与孩子 ════════════════════════════════════ */
.famrow {
  display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left;
  border: 0; border-bottom: 1px dashed var(--line); background: transparent;
  font-family: inherit; padding: 12px 0;
}
.famrow:last-of-type { border-bottom: 0; }
.famtop { display: flex; gap: 8px; align-items: center; }
.famkind { font-size: 10px; background: #f1eee6; color: #8b8577; padding: 1px 7px; border-radius: 5px; }
.famdate { font-size: 10.5px; color: var(--muted); }
.famtitle { font-size: 14px; font-weight: 650; color: #3c423a; line-height: 1.45; }
.fammini { font-size: 11.5px; color: var(--muted); }
.famai { font-size: 10.5px; color: var(--accent); font-weight: 600; }

/* ══ 读书成长 ══════════════════════════════════════ */
.rdstat { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.rdstat > div { display: flex; flex-direction: column; gap: 2px; }
.rdstat b { font-size: 20px; font-weight: 700; color: #2c3a30; }
.rdstat span { font-size: 10.5px; color: var(--muted); }

.bookrow {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  border: 0; border-bottom: 1px dashed var(--line); background: transparent;
  font-family: inherit; padding: 12px 0;
}
.bookrow:last-of-type { border-bottom: 0; }
.bookmain { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.booktitle { font-size: 14px; font-weight: 650; color: #3c423a; }
.bookmeta { font-size: 11px; color: var(--muted); }
.rbar { display: block; height: 5px; border-radius: 3px; background: #eee9dd; overflow: hidden; margin-top: 2px; }
.rbar i { display: block; height: 100%; background: linear-gradient(90deg, #7fbfa2, #4e9a76); border-radius: 3px; }
.bookpct { font-size: 11.5px; color: var(--accent); font-weight: 650; flex: none; }

.noterow {
  display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left;
  border: 0; border-bottom: 1px dashed var(--line); background: transparent;
  font-family: inherit; padding: 11px 0;
}
.noterow:last-of-type { border-bottom: 0; }
.notetop { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: #3c423a; }
.notequote { font-size: 12.5px; color: #4a5048; font-style: italic; }
.notethought { font-size: 12px; color: var(--muted); }

/* ══ 内容创作 ══════════════════════════════════════ */
.draftrow {
  display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left;
  border: 0; border-bottom: 1px dashed var(--line); background: transparent;
  font-family: inherit; padding: 11px 0;
}
.draftrow:last-of-type { border-bottom: 0; }
.drafttop { display: flex; gap: 8px; align-items: center; font-size: 10.5px; color: var(--muted); }
.draftkind { background: #eef6f1; color: #2f7d5d; padding: 1px 7px; border-radius: 5px; font-weight: 650; }
.drafttext { font-size: 13px; color: #3c423a; line-height: 1.5; }

.matlist { max-height: 40vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 4px 10px; }
.matitem { display: flex; gap: 9px; align-items: flex-start; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.matitem:last-child { border-bottom: 0; }
.matitem input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: #2f7d5d; }
.matbody { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mattag { font-size: 10px; color: var(--muted); }
.mattext { font-size: 12.5px; color: #3c423a; line-height: 1.5; }

.genblock { margin-bottom: 10px; }
.genblock:last-child { margin-bottom: 0; }
.glabel { display: block; font-size: 10.5px; color: var(--muted); margin-bottom: 3px; }
.genblock > div { font-size: 13px; line-height: 1.7; color: #3c423a; }

/* ══ 心境 AI 陪伴 ══════════════════════════════════ */
.asmodes { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.chatbox {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 14px 8px; max-height: 52vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 9px;
}
.bub { display: flex; }
.bub.me { justify-content: flex-end; }
.bubtext {
  max-width: 82%; padding: 10px 13px; border-radius: 14px;
  font-size: 13.5px; line-height: 1.7; white-space: pre-wrap;
}
.bub.me .bubtext { background: #2f7d5d; color: #fff; border-bottom-right-radius: 5px; }
.bub.ai .bubtext { background: #f4f7f3; color: #2c332e; border-bottom-left-radius: 5px; }
.bubtext.thinking { color: var(--muted); font-style: italic; }
.asempty { text-align: center; color: var(--muted); font-size: 13px; line-height: 2; padding: 22px 0; }

.asscopes { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.scopepill {
  font-size: 10.5px; padding: 3px 9px; border-radius: 20px;
  border: 1px solid var(--line); background: #fff; color: var(--muted); font-family: inherit;
}
.scopepill.on { background: #eef6f1; border-color: #cfe3d6; color: #2f7d5d; font-weight: 650; }

.asinput {
  display: flex; gap: 8px; align-items: flex-end; margin-top: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px 8px 8px 14px;
}
.asinput textarea {
  flex: 1; border: 0; outline: none; resize: none; font-family: inherit;
  font-size: 14px; line-height: 1.6; max-height: 120px; background: transparent;
}
.sendbtn {
  flex: none; padding: 10px 18px; border: 0; border-radius: 12px;
  background: #2f7d5d; color: #fff; font-size: 13.5px; font-weight: 650; font-family: inherit;
}

.memrow { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.memrow:last-of-type { border-bottom: 0; }
.memkind { font-size: 10px; color: #2f7d5d; background: #eef6f1; padding: 1px 7px; border-radius: 5px; display: inline-block; }
.memtext { font-size: 13px; color: #3c423a; margin-top: 5px; line-height: 1.6; }

.tag.test { background: #fbeeea; color: #b4533f; }
.testnote { margin-top: 6px; font-size: 11px; color: #a9762b; background: #fdf3e3; border: 1px solid #f2e0c0; border-radius: 8px; padding: 6px 9px; line-height: 1.6; }

/* ── 今天吃什么 ── */
.planblock { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.planblock:first-of-type { border-top: 0; padding-top: 6px; }
.planlabel { font-size: 12px; color: #8b8577; font-weight: 650; margin-bottom: 6px; }
.plandishes { display: flex; flex-direction: column; gap: 4px; }
.pdish { font-size: 13.5px; color: #3c423a; line-height: 1.6; padding-left: 12px; position: relative; }
.pdish::before { content: "·"; position: absolute; left: 2px; color: #9fb5a7; }
.planwhy { font-size: 11.5px; color: var(--muted); margin-top: 5px; line-height: 1.6; }
.plantip { margin-top: 12px; background: #f6f9f4; border: 1px solid #e2ece4; border-radius: 10px; padding: 9px 11px; font-size: 12.5px; color: #2f5946; line-height: 1.6; }

/* ── 身心观察 ── */
.bodytip { font-size: 11.5px; color: #8b8577; background: #fbf8f1; border: 1px solid #efe7d8; border-radius: 10px; padding: 9px 12px; line-height: 1.7; margin-bottom: 12px; }
.pickbar { display: flex; align-items: center; gap: 8px; background: #eef6f1; border: 1px solid #cfe3d6; border-radius: 12px; padding: 9px 12px; margin-bottom: 12px; font-size: 12.5px; color: #2f5946; }
.pickbar .btn { margin-left: auto; }
.pickbar .btn + .btn { margin-left: 6px; }

.timeline { display: flex; flex-direction: column; gap: 10px; }
.tlitem { display: flex; gap: 11px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.tlitem.picked { border-color: #9fc9b3; box-shadow: 0 0 0 2px #eef6f1 inset; }
.tlphoto { flex: none; width: 96px; height: 120px; border-radius: 10px; overflow: hidden; border: 0; padding: 0; background: #f1eee6; }
.tlphoto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tlmeta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tldate { font-size: 13px; font-weight: 650; color: #3c423a; }
.tlnote { font-size: 12px; color: #4a5048; line-height: 1.5; }
.tlmini { font-size: 10.5px; color: var(--muted); }

.uploadbox { border: 1px dashed #d8d0bf; border-radius: 12px; background: #fbfaf7; min-height: 120px; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; }
.upempty { font-size: 13px; color: var(--muted); text-align: center; padding: 24px 12px; line-height: 1.7; }
.uppreview { width: 100%; max-height: 260px; object-fit: contain; display: block; border-radius: 12px; }

.cmpwrap { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cmpside img { width: 100%; border-radius: 10px; display: block; aspect-ratio: 3/4; object-fit: cover; background: #f1eee6; }
.cmplabel { font-size: 11.5px; color: #3c423a; font-weight: 650; margin-top: 5px; text-align: center; }
.cmpnote { font-size: 10.5px; color: var(--muted); text-align: center; line-height: 1.5; }

/* ── 今日健康小目标 ── */
.goallist { margin-top: 4px; }
.goalrow { display: flex; align-items: center; gap: 11px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.goalrow:last-child { border-bottom: 0; }
.goalrow.done { opacity: .92; }
.goalicon { flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--warm); display: flex; align-items: center; justify-content: center; font-size: 19px; }
.goalrow.done .goalicon { background: #eef6f1; }
.goalbody { flex: 1; min-width: 0; }
.goaltitle { font-size: 14px; font-weight: 650; color: #3c423a; display: flex; align-items: center; gap: 7px; }
.goalstate { font-size: 10px; padding: 1px 7px; border-radius: 5px; font-weight: 650; }
.goalstate.done { background: #eef6f1; color: #2f7d5d; }
.goalstate.in_progress { background: #fdf3e3; color: #a9762b; }
.goalstate.not_recorded { background: #f1eee6; color: #9a917f; }
.goaltext { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.6; }
.goalbtn { flex: none; }
.habit em { font-style: normal; margin-left: 6px; font-size: 10.5px; }

/* ── 档案合并视图 ── */
.sec-label { font-size: 11px; letter-spacing: .6px; color: var(--muted); font-weight: 650; margin: 16px 0 8px; }
.sec-label:first-child { margin-top: 0; }
.src { font-style: normal; font-size: 10px; color: var(--muted); margin-left: 5px; }
.pvlist { background: #fdfbf6; border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; }
.pvrow { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.pvrow:last-child { border-bottom: 0; }
.pvk { flex: none; width: 92px; color: var(--muted); }
.pvv { flex: 1; color: #3c423a; line-height: 1.6; }
.pvv.miss { color: #b5ad9c; }

/* ── 拍照入口 ── */
.snapgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.snapcard { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 16px 14px;
  background: #fdfbf6; border: 1px solid var(--line); border-radius: 14px; text-align: left; cursor: pointer; }
.snapcard b { font-size: 15px; color: #3c423a; }
.snapcard span { font-size: 11px; color: var(--muted); line-height: 1.5; }

/* ── 照片库 ── */
.photogrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photocell { position: relative; border-radius: 14px; overflow: hidden; background: #f1eee6; aspect-ratio: 1; }
.photocell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phototag { position: absolute; left: 8px; top: 8px; font-size: 10px; padding: 2px 7px; border-radius: 5px;
  background: rgba(255,255,255,.9); color: #4a5044; font-weight: 650; }
.photodate { position: absolute; left: 8px; bottom: 8px; font-size: 10px; color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.photoinuse { position: absolute; right: 8px; top: 8px; font-size: 10px; padding: 2px 7px; border-radius: 5px;
  background: rgba(60,122,94,.9); color: #fff; }
.photodel { position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.45); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; }

/* ── 按住说话 ── */
.voicecard { margin: 0 0 14px; }
.voicebig { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 22px 16px; border: 1.5px solid #cfe0d5; border-radius: 18px;
  background: linear-gradient(160deg,#f4faf6,#eaf4ee); cursor: pointer; }
.voicebig:active { transform: scale(.985); background: #e2efe8; }
.voiceic { font-size: 26px; line-height: 1; }
.voicetxt { font-size: 16px; font-weight: 700; color: #2f5f47; letter-spacing: .5px; }
.voicehint { font-size: 11px; color: #7d9a89; }
.voicefoot { text-align: center; margin-top: 8px; }
.reclive { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 0; }
.recdot { width: 14px; height: 14px; border-radius: 50%; background: #cf6a58; animation: recpulse 1.1s infinite; }
@keyframes recpulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
.rectime { font-size: 30px; font-weight: 700; color: #3c423a; letter-spacing: 1px; }

/* ── 首页快捷行 ── */
.quickrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.quickbtn { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.quickbtn b { font-size: 17px; line-height: 1; font-weight: 400; }
.quickbtn span { font-size: 10.5px; color: var(--muted); }
.quickbtn:active { background: #f6fbf8; }
