/* ============================================================
   坡田济禾 H5 · 全局样式
   设计来源：小程序端 app.wxss（东方康养 × 现代轻中式）
   换算：小程序 20rpx = 1rem（屏宽 375 时 1rem = 10px）
   ============================================================ */

/* ---- 移动优先的根字号：随屏宽等比缩放 ---- */
html { font-size: calc(100vw / 37.5); -webkit-text-size-adjust: 100%; }
/* 桌面/平板：锁定为手机版式并居中，避免字被放得过大 */
@media (min-width: 520px) {
  html { font-size: 12.8px; }
  body { max-width: 480px; margin: 0 auto; box-shadow: 0 0 40px rgba(0,0,0,.08); }
}

/* ★ 安全区（刘海屏的 home indicator）**只抽一次变量**。
   抽成变量是为了**可测**：浏览器里改写 --safe-b 就能模拟 iPhone 的安全区，
   否则桌面 env() 恒为 0，这类"多让了一次"的缺陷永远测不出来。 */
:root { --safe-b: env(safe-area-inset-bottom, 0px); }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* 关键：自定义 display 的层（viewer/modal/login）会覆盖 hidden 的默认 display:none，
   导致「已隐藏」的浮层仍然铺满屏幕并拦截所有点击。这里统一兜住。 */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: #F5F2EA;
  color: #2B2A26;
  font-size: 1.4rem;
  line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  padding-bottom: var(--safe-b);
}
h1,h2,h3,h4,p,figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
input, textarea, button, select { font-family: inherit; font-size: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }

/* ---- 字体角色 ---- */
.serif { font-family: "Songti SC", "STSong", "SimSun", Georgia, serif; }
.num { font-family: "DIN Alternate", "Helvetica Neue", Arial, sans-serif; font-weight: 600; letter-spacing: .025rem; }

/* ---- 布局 ---- */
.container { padding: 1.2rem 1.4rem 2rem; }
.page-gap { height: 5rem; }              /* 给固定底栏留位 */
.divider { height: 1px; background: #EBE6D8; margin: 1.2rem 0; }

/* ---- 卡片 ---- */
.card {
  background: #fff; border-radius: 1.2rem; padding: 1.6rem 1.4rem;
  margin-bottom: 1.2rem; box-shadow: 0 .4rem 1.5rem rgba(62,52,30,.07);
}
.card-flat {
  background: #fff; border-radius: 1.2rem; padding: 1.4rem;
  margin-bottom: 1rem; border: 1px solid #EBE6D8;
}

/* ---- 主视觉 hero ---- */
.hero {
  position: relative; overflow: hidden; border-radius: 1.2rem;
  background: linear-gradient(140deg, #1C3A27 0%, #2E5A3C 55%, #48795A 100%);
  color: #F3EFE4; padding: 2.4rem 1.8rem;
  box-shadow: 0 1.6rem 3.6rem rgba(62,52,30,.12);
}
.hero::before {
  content: ""; position: absolute; width: 17rem; height: 17rem; border-radius: 50%;
  right: -6rem; top: -7rem;
  background: radial-gradient(circle, rgba(255,244,214,.28) 0%, rgba(255,244,214,0) 70%);
}
.hero::after {
  content: ""; position: absolute; width: 13rem; height: 13rem; border-radius: 50%;
  left: -5rem; bottom: -6rem;
  background: radial-gradient(circle, rgba(140,190,160,.25) 0%, rgba(140,190,160,0) 70%);
}
.hero > * { position: relative; z-index: 1; }

/* ---- 按钮 ---- */
.btn-primary, .btn-accent, .btn-plain, .btn-gold {
  display: block; width: 100%; border-radius: 50rem; font-size: 1.5rem;
  padding: 1.1rem 0; text-align: center; transition: transform .15s ease, opacity .15s ease;
}
/* ★ 租户主题色落点 ③：主按钮。原值兜底 → 默认外观零变化。 */
.btn-primary { background: linear-gradient(135deg,var(--tenant-primary,#2E5A3C),#1C3A27); color: #FFFDF6;
  font-weight: 500; box-shadow: 0 1rem 2.4rem rgba(28,58,39,.28); }
.btn-accent  { background: linear-gradient(135deg,#D4653F,#C0492F); color: #FFF8F3;
  font-weight: 500; box-shadow: 0 1rem 2.4rem rgba(192,73,47,.30); }
.btn-plain   { border: 2px solid #2E5A3C; color: #2E5A3C; background: transparent;
  font-size: 1.4rem; padding: .8rem 0; }
.btn-gold    { background: linear-gradient(135deg,#D8B878,#B98F4E); color: #3D2E12;
  font-weight: 600; font-size: 1.4rem; padding: .9rem 0;
  box-shadow: 0 .8rem 2rem rgba(185,143,78,.35); }
.btn-primary:active, .btn-accent:active, .btn-plain:active, .btn-gold:active {
  transform: scale(.985); opacity: .92;
}
.btn-primary[disabled], .btn-accent[disabled], .btn-gold[disabled] {
  opacity: .5; pointer-events: none;
}
.btn-sm { width: auto; display: inline-block; padding: .8rem 2.4rem; font-size: 1.3rem; }

/* ---- 章节标题 ---- */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 1.8rem .2rem 1.1rem;
}
.section-head .sh-title {
  display: flex; align-items: center; font-size: 1.7rem; font-weight: 600;
  font-family: "Songti SC","STSong","SimSun",Georgia,serif; color: #2B2A26;
}
.section-head .sh-title::before {
  content: ""; width: .4rem; height: 1.6rem; border-radius: .3rem;
  background: linear-gradient(180deg,#B98F4E,#2E5A3C); margin-right: .8rem;
}
.section-head .sh-more { font-size: 1.2rem; color: #ABA89B; }
.section-title {
  font-size: 1.7rem; font-weight: 600; margin: 1.6rem .2rem 1rem;
  font-family: "Songti SC","STSong","SimSun",Georgia,serif;
}

/* ---- 标签 / 胶囊 ---- */
.tag {
  display: inline-block; font-size: 1rem; padding: .2rem .9rem; border-radius: 50rem;
  background: #E8F0E9; color: #2E5A3C; margin-right: .6rem;
}
.tag-gold { background: #F6EEDD; color: #B98F4E; }
.tag-accent { background: #F9E9E3; color: #C0492F; }
.chip {
  flex-shrink: 0; font-size: 1.3rem; color: #75736A; background: #fff;
  border: 1px solid #EBE6D8; border-radius: 50rem; padding: .6rem 1.5rem; margin-right: .8rem;
}
.chip.on {
  background: linear-gradient(135deg,#2E5A3C,#1C3A27); color: #FFFDF6;
  border-color: transparent; font-weight: 500; box-shadow: 0 .6rem 1.6rem rgba(28,58,39,.22);
}
.chip.light.on { background: #F6EEDD; color: #B98F4E; box-shadow: none; border-color: #B98F4E; }

/* ---- 文字/价格 ---- */
.price { color: #C0492F; font-weight: 600;
  font-family: "DIN Alternate","Helvetica Neue",Arial,sans-serif; }
.price-old { color: #ABA89B; font-size: 1.1rem; text-decoration: line-through; margin-left: .5rem; }
.muted { color: #75736A; font-size: 1.2rem; }
.muted-3 { color: #ABA89B; font-size: 1.1rem; }
.disclaimer { font-size: 1.1rem; color: #ABA89B; line-height: 1.7; }

/* ---- 商品卡（两列网格）---- */
.prod-grid { display: flex; flex-wrap: wrap; justify-content: space-between; }
.prod-card {
  width: 48.6%; background: #fff; border-radius: 1.2rem; overflow: hidden;
  margin-bottom: 1.2rem; box-shadow: 0 .4rem 1.5rem rgba(62,52,30,.07);
}
.prod-card:active { transform: scale(.99); }
.prod-img {
  height: 13rem; position: relative; display: flex; align-items: center; justify-content: center;
  color: rgba(255,253,246,.95); font-size: 1.3rem; letter-spacing: .2rem;
  font-family: "Songti SC","STSong","SimSun",serif;
  background: linear-gradient(140deg,#48795A,#1C3A27);
}
.prod-photo { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.prod-badge {
  position: absolute; left: .8rem; bottom: .8rem; background: rgba(28,58,39,.72);
  color: #FFFDF6; font-size: 1rem; letter-spacing: .1rem; padding: .3rem .9rem;
  border-radius: 50rem; font-family: "Songti SC","STSong","SimSun",serif;
}
.prod-body { padding: 1rem 1.1rem 1.2rem; }
.prod-name { font-size: 1.4rem; font-weight: 600; color: #2B2A26;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prod-sub { font-size: 1.1rem; color: #ABA89B; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; margin: .3rem 0 .6rem; }
.prod-foot { display: flex; align-items: center; justify-content: space-between; }
.cart-dot {
  width: 2.6rem; height: 2.6rem; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg,#2E5A3C,#1C3A27); color: #FFFDF6;
  font-size: 1.6rem; line-height: 2.5rem; text-align: center;
  box-shadow: 0 .6rem 1.4rem rgba(28,58,39,.25);
}

/* ---- 空状态 ---- */
.empty { text-align: center; padding: 5rem 0 4rem; }
.empty-symbol {
  width: 7rem; height: 7rem; margin: 0 auto 1.4rem; border-radius: 50%;
  background: #E8F0E9; color: #48795A; font-size: 2.8rem; line-height: 7rem;
  font-family: "Songti SC","STSong","SimSun",serif;
}
.empty-text { color: #ABA89B; font-size: 1.3rem; }

/* ---- 统计数字 ---- */
.stat-row { display: flex; }
.stat-cell { flex: 1; text-align: center; }
.stat-num { font-size: 2.2rem; font-weight: 600;
  font-family: "DIN Alternate","Helvetica Neue",Arial,sans-serif; }
.stat-label { font-size: 1.1rem; color: #ABA89B; margin-top: .2rem; }

/* ---- 列表行 ---- */
.list-row {
  display: flex; align-items: center; justify-content: space-between; padding: 1.5rem .2rem;
}
.list-row + .list-row { border-top: 1px solid #EBE6D8; }
.lr-left { display: flex; align-items: center; font-size: 1.4rem; color: #2B2A26; }
.lr-icon {
  width: 3.2rem; height: 3.2rem; border-radius: .9rem; display: flex;
  align-items: center; justify-content: center; font-size: 1.5rem;
  margin-right: 1rem; background: #E8F0E9; color: #2E5A3C; flex-shrink: 0;
}
.lr-arrow { color: #ABA89B; font-size: 1.3rem; }
.lr-right { display: flex; align-items: center; gap: .6rem; }

/* ---- 表单 ---- */
.field { margin-bottom: 1.4rem; }
.field-label { font-size: 1.3rem; color: #75736A; margin-bottom: .7rem; display: block; }
.input, .textarea {
  width: 100%; background: #fff; border: 1px solid #EBE6D8; border-radius: 1rem;
  padding: 1.2rem 1.4rem; font-size: 1.5rem; outline: none; color: #2B2A26;
}
.input:focus, .textarea:focus { border-color: #2E5A3C; }
.textarea { min-height: 7rem; resize: vertical; line-height: 1.6; }
.input-inline { display: flex; gap: .8rem; }
.input-inline .input { flex: 1; }
.input-inline .btn-sm { flex-shrink: 0; white-space: nowrap; }

/* ---- 底部 tabbar ---- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; background: #fff; border-top: 1px solid #EBE6D8;
  padding-bottom: var(--safe-b);
}
@media (min-width: 520px) { .tabbar { max-width: 480px; left: 50%; transform: translateX(-50%); } }
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: .8rem 0 .6rem; color: #8A8A85; font-size: 1.1rem;
}
.tab-ic {
  width: 2.4rem; height: 2.4rem; border-radius: .7rem; background: #F0EDE4;
  color: #8A8A85; font-size: 1.3rem; line-height: 2.4rem; text-align: center;
  font-style: normal; font-family: "Songti SC","STSong","SimSun",serif; margin-bottom: .2rem;
}
.tab em { font-style: normal; }
.tab.on { color: #1F3D2B; font-weight: 600; }
/* ★ 租户主题色落点 ②：底部菜单激活图标。原值兜底 → 默认外观零变化。 */
.tab.on .tab-ic { background: linear-gradient(135deg,var(--tenant-accent,#2E5A3C),#1C3A27); color: #FFFDF6; }

/* ---- 固定底部操作栏 ---- */
.foot-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  background: #fff; border-top: 1px solid #EBE6D8;
  padding: 1.2rem 1.4rem calc(1.2rem + var(--safe-b));
  display: flex; align-items: center; gap: 1.2rem;
}
@media (min-width: 520px) { .foot-bar { max-width: 480px; left: 50%; transform: translateX(-50%); } }
.foot-bar .grow { flex: 1; }

/* ---- toast ---- */
.toast {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 200;
  background: rgba(24,24,22,.86); color: #fff; font-size: 1.4rem;
  padding: 1.2rem 2rem; border-radius: 1rem; max-width: 72vw; text-align: center;
  animation: fadeIn .16s ease;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

/* ---- modal ---- */
.modal-mask {
  position: fixed; inset: 0; z-index: 210; background: rgba(0,0,0,.42);
  display: flex; align-items: center; justify-content: center; padding: 3rem;
}
.modal-box {
  width: 100%; max-width: 30rem; background: #fff; border-radius: 1.4rem;
  overflow: hidden; animation: pop .18s ease;
}
@keyframes pop { from { transform: scale(.94); opacity: .6 } to { transform: scale(1); opacity: 1 } }
.modal-title { font-size: 1.6rem; font-weight: 600; text-align: center; padding: 1.8rem 1.6rem .8rem; }
.modal-body { font-size: 1.4rem; color: #4A4841; line-height: 1.7; padding: 0 1.8rem 1.6rem;
  white-space: pre-wrap; word-break: break-word; }
.modal-foot { display: flex; border-top: 1px solid #EBE6D8; }
.modal-foot button {
  flex: 1; padding: 1.4rem 0; font-size: 1.5rem; color: #2E5A3C; background: none;
}
.modal-foot button + button { border-left: 1px solid #EBE6D8; }
.modal-foot button.primary { color: #1C3A27; font-weight: 600; }
.modal-foot button.danger { color: #C0392B; }

/* ---- 图片查看 ---- */
.viewer {
  position: fixed; inset: 0; z-index: 220; background: rgba(0,0,0,.94);
  display: flex; align-items: center; justify-content: center; padding: 1.6rem;
}
.viewer img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ---- 骨架/加载 ---- */
.boot, .loading-box { text-align: center; padding: 8rem 0; }
.boot-ring, .load-ring {
  width: 4rem; height: 4rem; margin: 0 auto 1.6rem; border-radius: 50%;
  border: .3rem solid #DDE7DF; border-top-color: #2E5A3C;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg) } }
.boot-text, .load-title { color: #8A8A85; font-size: 1.4rem; }

/* ---- 横向滚动条 ---- */
.scroll-x { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: .6rem; }
.scroll-x::-webkit-scrollbar { display: none; }
.scroll-row { display: flex; gap: .8rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scroll-row::-webkit-scrollbar { display: none; }

/* ---- 复选框 ---- */
.checkbox {
  width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid #C9C4B5;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem;
}
.checkbox.checked { background: #2E5A3C; border-color: #2E5A3C; }

/* ---- 登录层 ---- */
.login-layer {
  position: fixed; inset: 0; z-index: 230; background: #F5F2EA;
  display: flex; align-items: center; justify-content: center; padding: 2.4rem;
  overflow-y: auto;
}
@media (min-width: 520px) {
  .login-layer { left: 50%; transform: translateX(-50%); max-width: 480px; }
}
.login-card { width: 100%; max-width: 34rem; padding: 1rem 0; }
.login-brand {
  font-size: 1.8rem; color: #B98F4E; letter-spacing: .3rem; text-align: center;
  margin-bottom: 2.4rem;
}
.login-title { font-size: 2.6rem; font-weight: 600; color: #1C3A27; text-align: center; }
.login-sub { text-align: center; margin-top: .8rem; }
.login-close {
  text-align: center; margin-top: 2.4rem; font-size: 1.4rem; color: #ABA89B;
  padding: 1rem 0;
}

/* ---- tab 页留白 ---- */
/* 底部留白用**实测变量**（router 渲染时写入），避免写死 rem 差几像素 */
body.has-tabbar { padding-bottom: calc(var(--tabbar-h, 61px) + .3rem); }

/* ============================================================
   页面级样式
   ============================================================ */

/* ---- 首页 ---- */
/* ★ P4/P6 白标：租户主题色的**两个已接线落点**（都用原值兜底 → 默认外观零变化）。
   `brand.js` 运行时按租户设 --tenant-primary / --tenant-accent。
   ⚠️ 本项目的设计系统是**硬编码颜色**，把全站主色改成变量属于独立的视觉重构
   （要逐处做视觉回归），不在本阶段范围内。详见 docs/52 §4.4 与 docs/56。 */
.hero-brand { font-size: 1.1rem; letter-spacing: .3rem;
              color: var(--tenant-primary, rgba(255,253,246,.72)); }
.hero-title { font-size: 3.2rem; font-weight: 600; margin: .8rem 0 1rem; line-height: 1.3; }
.hero-sub { font-size: 1.4rem; color: rgba(243,239,228,.82); margin-bottom: 2.4rem; }
/* ★ 居中：原来只有 max-width 没有 margin:auto，按钮贴左显示（用户反馈"有些居左"）。
   文案变长（中医体质自测及AI报告）后 24rem 也偏窄，放宽到 28rem。 */
.hero-btn { max-width: 28rem; margin: .6rem auto 0; display: block; }
.hero-sub:empty { display: none; }              /* 空文案不占位置 */
.hero-points { margin-top: 1.8rem; font-size: 1.2rem; color: rgba(243,239,228,.75); }
.hero-points .num { font-size: 1.5rem; color: #F3EFE4; }

/* ---- 首页「选食养方向」：三维度（状态/人群/体质）----
   旧版是 6 个带说明的大方块，竖向占掉大半屏。改成"分段切换 + 一行横滚胶囊"：
   三个维度一眼可见，实际高度只有一个卡片。 */
.pick-card {
  background: #fff; border-radius: 1.4rem; padding: 1.1rem 1.2rem 1.3rem;
  box-shadow: 0 .4rem 1.5rem rgba(62,52,30,.07);
}
.pick-tabs { display: flex; gap: .4rem; background: #F5F2EA; border-radius: 1rem; padding: .4rem; }
.pick-tab {
  flex: 1; text-align: center; font-size: 1.3rem; color: #75736A;
  padding: .7rem 0; border-radius: .8rem;
}
.pick-tab.on {
  background: #fff; color: #1C3A27; font-weight: 600;
  box-shadow: 0 .2rem .8rem rgba(62,52,30,.13);
}
.pick-chips { margin-top: .9rem; padding: 0; }

.per-tip { font-size: 1.2rem; color: #75736A; margin: -.4rem .2rem 1.2rem; }

.art-card {
  display: flex; background: #fff; border-radius: 1.2rem; overflow: hidden;
  margin-bottom: 1.2rem; box-shadow: 0 .4rem 1.5rem rgba(62,52,30,.07);
}
.art-card:active { transform: scale(.99); }
.art-bar { width: .5rem; background: linear-gradient(180deg,#B98F4E,#2E5A3C); flex-shrink: 0; }
.art-main { padding: 1.4rem; flex: 1; min-width: 0; }
.art-title { font-size: 1.6rem; font-weight: 600; line-height: 1.45; }
.art-summary { margin: .6rem 0 .8rem; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.art-meta { display: flex; align-items: center; gap: .8rem; }
.art-go { margin-left: auto; font-size: 1.2rem; color: #B98F4E; }

/* ---- 自测问卷 ---- */
.intro-hero { padding: 3.2rem 2rem; }
.intro-kicker { font-size: 1.1rem; letter-spacing: .3rem; color: rgba(255,253,246,.68); }
.intro-title { font-size: 3rem; font-weight: 600; margin: .8rem 0 1.2rem; }
.intro-desc { font-size: 1.4rem; line-height: 1.75; color: rgba(243,239,228,.86); }
.intro-note { color: rgba(243,239,228,.55); margin: 1.6rem 0 2.4rem; }
.intro-btn { max-width: 26rem; }

.q-head { margin: .8rem 0 2rem; }
.progress { height: .8rem; background: #E8E4D8; border-radius: 50rem; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 50rem;
  background: linear-gradient(90deg,#B98F4E,#2E5A3C); transition: width .3s ease; }
.q-count { font-size: 1.2rem; color: #ABA89B; margin-top: .8rem; text-align: right; }
.q-title { font-size: 2.2rem; font-weight: 600; line-height: 1.45; margin-bottom: 1.8rem; }
.opt-wrap { padding-bottom: 2rem; }
.opt { display: flex; align-items: center; padding: 1.6rem 1.4rem; }
.opt:active { transform: scale(.99); }
.opt.on { border: 1px solid #2E5A3C; box-shadow: 0 .6rem 2rem rgba(46,90,60,.16); }
.opt-mark { width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1px solid #C9C4B5;
  margin-right: 1.2rem; flex-shrink: 0; }
.opt.on .opt-mark { border-color: #2E5A3C; background: #2E5A3C;
  box-shadow: inset 0 0 0 .4rem #fff; }
.opt-text { font-size: 1.5rem; line-height: 1.5; }
.thermal-card { padding: 2rem 1.6rem; }
.thermal-sub { margin: .8rem 0 1.6rem; line-height: 1.6; }
.upload-zone {
  border: 1px dashed #C9C4B5; border-radius: 1.2rem; padding: 2.6rem 1rem;
  text-align: center; background: #FCFBF7;
}
.upload-zone.uploaded { border-color: #2E5A3C; background: #F2F7F3; }
.upload-plus { font-size: 3.2rem; color: #ABA89B; line-height: 1; }
.upload-tip { font-size: 1.4rem; margin: .8rem 0 .4rem; color: #2B2A26; }
.consent { display: flex; align-items: flex-start; gap: 1rem; margin-top: 1.6rem; }
.consent-text { flex: 1; }

/* ---- AI 报告 ---- */
.r-hero { padding: 2.8rem 2rem; }
.r-kicker { font-size: 1.1rem; letter-spacing: .2rem; color: rgba(255,253,246,.68); }
.r-level { font-size: 3.4rem; font-weight: 600; margin: .8rem 0 .6rem; }
.r-comment { font-size: 1.4rem; line-height: 1.7; color: rgba(243,239,228,.85); }
.r-avg { margin-top: 1.8rem; display: flex; align-items: baseline; gap: .6rem; }
.r-avg-num { font-size: 4.2rem; font-weight: 600; color: #F3EFE4; }
.r-points { margin-top: 1.2rem; font-size: 1.3rem; color: #F0D9A8; }
.radar-card { padding: 1.8rem 1.4rem; }
.radar-title { font-size: 1.7rem; font-weight: 600; margin-bottom: 1rem; }
.radar-canvas { display: block; width: 100%; height: 24rem; }
.radar-bars { margin-top: 1.2rem; }
.radar-bar { display: flex; align-items: center; gap: 1rem; margin-bottom: .9rem; }
.rb-dim { width: 4.4rem; font-size: 1.3rem; color: #75736A; flex-shrink: 0; }
.rb-track { flex: 1; height: .8rem; background: #EFEBE0; border-radius: 50rem; overflow: hidden; }
.rb-fill { height: 100%; border-radius: 50rem;
  background: linear-gradient(90deg,#D8B878,#2E5A3C); }
.rb-score { width: 3rem; text-align: right; font-size: 1.3rem; }
.thermal-photo { width: 100%; max-height: 34rem; object-fit: contain;
  background: #14161A; border-radius: 1rem; margin-bottom: 1.4rem; }
.thermal-summary { font-size: 1.4rem; line-height: 1.75; }
.thermal-zones { margin-top: 1rem; }
.thermal-meta { margin-top: .8rem; font-size: 1.2rem; color: #8A8A85; }
.thermal-note { margin-top: .8rem; }
.thermal-del { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid #EFEBE0;
  font-size: 1.3rem; color: #C0392B; text-align: center; }
.advice { padding: 1.6rem 1.4rem; }
.adv-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; }
.adv-dot { width: 2.2rem; height: 2.2rem; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg,#D8B878,#B98F4E); color: #3D2E12;
  font-size: 1.2rem; font-weight: 600; text-align: center; line-height: 2.2rem; }
.adv-text { font-size: 1.4rem; line-height: 1.75; color: #3A3833; }
.r-share { margin-top: 1.6rem; }
.r-cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  background: #fff; border-top: 1px solid #EBE6D8;
  padding: 1.2rem 1.4rem calc(1.2rem + var(--safe-b)); }
@media (min-width: 520px) { .r-cta-bar { max-width: 480px; left: 50%; transform: translateX(-50%); } }
.r-cta-note { margin-top: .8rem; }
.art-flat { padding: 1.4rem; }
.art-card-inline .art-title { font-size: 1.5rem; font-weight: 600; }
.art-card-inline .art-sum { margin-top: .4rem; }
.sec-title { font-size: 1.6rem; font-weight: 600; margin-bottom: .8rem; }

/* ---- 商城 ---- */
.shop-top { display: flex; align-items: center; gap: 1rem; margin: .4rem 0 1.2rem; }
.search-box { flex: 1; }
.search-box .input { padding: 1rem 1.4rem; font-size: 1.4rem; }
.cart-entry { position: relative; width: 4.4rem; height: 4.4rem; border-radius: 1.2rem;
  background: #fff; border: 1px solid #EBE6D8; display: flex; align-items: center;
  justify-content: center; font-size: 1.4rem; color: #2E5A3C; flex-shrink: 0; }
/* ★ 角标原来只有"红底圆点"三条样式：**没有颜色/字号/居中** —— 即使填了数字也看不清。
   一并补齐；数字列由 app.js 的 App.refreshCartBadge() 统一写入。 */
.cart-badge { position: absolute; top: -.5rem; right: -.5rem; min-width: 1.8rem; height: 1.8rem;
  padding: 0 .3rem; box-sizing: border-box; border-radius: 1rem; background: #C0492F;
  color: #fff; font-size: 1.1rem; line-height: 1.8rem; text-align: center; font-weight: 600; }
.cart-entry { text-decoration: none; }
/* 吸顶返回栏里的购物车入口（商品详情页用它，滚动时始终可见） */
.pagebar .pb-actions { margin-left: auto; display: flex; align-items: center; }
.pagebar .cart-entry { width: 3.4rem; height: 3.4rem; border-radius: 1rem; }
.pagebar .cart-entry svg { width: 1.8rem; height: 1.8rem; }
.scene-title { font-size: 1.6rem; font-weight: 600; margin: .4rem 0 1rem; }
.chip-row { padding: .4rem 0; }
/* 商城/首页的筛选行：左侧一个维度小标签 + 右侧可横滚的胶囊 */
.filt { display: flex; align-items: center; gap: .4rem; }
.filt + .filt { margin-top: .3rem; }
.filt-k { flex: 0 0 auto; width: 2.8rem; font-size: 1.2rem; color: #ABA89B; }
.filt .chip-row { flex: 1; min-width: 0; padding: .3rem 0; }
.list-meta { margin: 1rem .2rem .8rem; }
.load-more { text-align: center; padding: 1.6rem 0; }

/* ---- 商品详情 ---- */
.dt-photo-wrap { border-radius: 1.2rem; overflow: hidden; margin-bottom: 1.2rem; }
.dt-photo { width: 100%; height: 30rem; object-fit: cover; background: #F0EDE4; }
.dt-photo-ph { display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: #8A8A85; letter-spacing: .3rem; }
.dt-name { font-size: 2.2rem; font-weight: 600; line-height: 1.4; }
.dt-sub { margin: .6rem 0 1.2rem; }
.dt-price-row { display: flex; align-items: baseline; justify-content: space-between; }
.dt-price-row .price { font-size: 2.6rem; }
.dt-sales { font-size: 1.1rem; }
.dt-tags { margin-top: 1.2rem; }
.qty-row { display: flex; align-items: center; justify-content: space-between;
  margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid #EFEBE0; }
.qty-ctrl { display: flex; align-items: center; gap: .2rem; }
.qty-btn { width: 3.2rem; height: 3.2rem; border-radius: .8rem; background: #F5F2EA;
  color: #2B2A26; font-size: 1.7rem; line-height: 1; }
.qty-btn:active { background: #E8E4D8; }
.qty-num { min-width: 3.4rem; text-align: center; font-size: 1.5rem; }
.dt-text { font-size: 1.4rem; line-height: 1.8; color: #3A3833; }

/* ---- 购物车 ---- */
.ci { display: flex; align-items: flex-start; gap: 1.1rem; padding: 1.4rem; }
.ci-check { margin-top: 3.2rem; }
.ci-body { flex: 1; min-width: 0; }
.ci-top { display: flex; gap: 1.1rem; }
.ci-img { width: 8rem; height: 8rem; border-radius: .9rem; object-fit: cover;
  background: #F0EDE4; flex-shrink: 0; }
.ci-img-ph { display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #ABA89B; }
.ci-info { flex: 1; min-width: 0; }
.ci-name { font-size: 1.5rem; font-weight: 600; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.ci-sub { margin: .3rem 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-price .price { font-size: 1.6rem; }
.ci-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; }
.ci-del { font-size: 1.2rem; color: #ABA89B; padding: .4rem 0; }

/* ---- 结算 ---- */
.cf-item { display: flex; align-items: center; gap: 1.1rem; padding: .9rem 0; }
.cf-img { width: 6rem; height: 6rem; border-radius: .9rem; object-fit: cover; background: #F0EDE4; }
.cf-img-ph { display: block; }
.cf-info { flex: 1; min-width: 0; }
.cf-name { font-size: 1.4rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-amt { font-size: 1.4rem; font-weight: 600; }
.cf-row { display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 0; font-size: 1.4rem; }
.cf-deduct { color: #C0492F; }

/* ---- 订单 ---- */
.order-card { padding: 1.5rem 1.4rem; }
.od-head { display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 1rem; border-bottom: 1px solid #EFEBE0; }
.od-no { font-size: 1.2rem; color: #75736A;
  font-family: "DIN Alternate","Helvetica Neue",Arial,sans-serif; }
.od-status { font-size: 1.2rem; padding: .2rem .9rem; border-radius: 50rem; }
.st-pending { background: #F9E9E3; color: #C0492F; }
.st-paid { background: #E8F0E9; color: #2E5A3C; }
.st-shipped { background: #E7EEF6; color: #3A6B9B; }
.st-done { background: #EFEBE0; color: #75736A; }
.st-cancel { background: #EFEBE0; color: #ABA89B; }
.od-items { padding: .8rem 0; }
.od-item { display: flex; align-items: center; gap: 1rem; padding: .6rem 0; }
.od-img { width: 5.6rem; height: 5.6rem; border-radius: .8rem; object-fit: cover;
  background: #F0EDE4; flex-shrink: 0; }
.od-img-ph { display: block; }
.od-info { flex: 1; min-width: 0; }
.od-name { font-size: 1.4rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-foot { display: flex; align-items: center; justify-content: space-between;
  padding-top: .8rem; border-top: 1px solid #EFEBE0; }
.od-amt .price { font-size: 1.7rem; }
.od-addr { margin-top: .5rem; }
.od-pay { width: 100%; }

/* ---- 积分 ---- */
.pt-hero { text-align: center; padding: 2.8rem 2rem; }
.pt-balance { font-size: 4.6rem; font-weight: 600; line-height: 1.2; }
.pt-hint { font-size: 1.2rem; color: rgba(243,239,228,.7); }
.pt-rule { display: flex; align-items: flex-start; gap: .8rem; padding: .7rem 0;
  font-size: 1.3rem; line-height: 1.6; }
.pt-log { display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; border-top: 1px solid #EFEBE0; }
.pt-log:first-of-type { border-top: 0; }
.pt-log-reason { font-size: 1.4rem; }
.pt-log-change { font-size: 1.6rem; font-weight: 600;
  font-family: "DIN Alternate","Helvetica Neue",Arial,sans-serif; }
.pt-log-change.plus { color: #2E5A3C; }
.pt-log-change.minus { color: #C0492F; }

/* ---- 推荐官 ---- */
.rf-hero { padding: 2.4rem 2rem; }
.rf-title { font-size: 2.8rem; font-weight: 600; }
.rf-sub { font-size: 1.3rem; color: rgba(243,239,228,.8); margin-top: .6rem; }
.rf-code { font-size: 2.4rem; font-weight: 600; letter-spacing: .2rem; color: #1C3A27;
  background: #F6EEDD; border-radius: 1rem; padding: 1.2rem; text-align: center; }
.rf-row { display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 0; font-size: 1.4rem; }
.rf-row + .rf-row { border-top: 1px solid #EFEBE0; }

/* ---- 历史 ---- */
.hs-item { padding: 1.5rem 1.4rem; }
.hs-item:active { transform: scale(.99); }
.hs-head { display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; }
.hs-date { font-size: 1.7rem; font-weight: 600; }
.hs-avg { font-size: 1.3rem; color: #75736A; }
.hs-avg .num { font-size: 2rem; color: #2E5A3C; }
.hs-dims { display: flex; justify-content: space-between; gap: .4rem; }
.hs-dim { display: flex; flex-direction: column; align-items: center; gap: .2rem; flex: 1; }
.hs-dim .num { font-size: 1.5rem; color: #2B2A26; }
.hs-go { margin-top: 1rem; font-size: 1.2rem; color: #B98F4E; text-align: right; }

/* ---- 我的 ---- */
.us-hero { text-align: center; padding: 2.8rem 2rem 2rem; }
.us-avatar { width: 7rem; height: 7rem; border-radius: 50%; margin: 0 auto 1rem;
  overflow: hidden;                       /* 自定义头像图片要裁成圆 */
  background: linear-gradient(135deg,#D8B878,#B98F4E); color: #3D2E12;
  font-size: 3rem; font-weight: 600; line-height: 7rem;
  font-family: "Songti SC","STSong","SimSun",serif;
  box-shadow: 0 .8rem 2.4rem rgba(185,143,78,.4); }
.us-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.us-name { font-size: 2.4rem; font-weight: 600; }
.us-sub { font-size: 1.2rem; color: rgba(243,239,228,.75); margin-top: .4rem; }
.us-stats { margin-top: 1.8rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(243,239,228,.22); }
.us-stats .stat-num { color: #FFFDF6; }
.us-stats .stat-label { color: rgba(243,239,228,.72); }
/* 点用户名/头像即可编辑资料 */
.us-edit-hit { display: inline-block; }
.us-edit-ic {
  display: inline-block; font-size: 1.1rem; font-weight: 400; margin-left: .7rem;
  padding: .15rem .7rem; border-radius: 50rem; vertical-align: middle;
  background: rgba(255,253,246,.18); color: rgba(255,253,246,.85);
}
/* 编辑资料弹窗 */
.pf-edit { padding: .2rem 1.8rem 1.6rem; text-align: center; }
.pf-av {
  width: 7rem; height: 7rem; border-radius: 50%; margin: 0 auto .9rem; overflow: hidden;
  background: linear-gradient(135deg,#D8B878,#B98F4E); color: #3D2E12;
  font-size: 3rem; font-weight: 600; line-height: 7rem;
  font-family: "Songti SC","STSong","SimSun",serif;
}
.pf-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-pick {
  display: inline-block; font-size: 1.2rem; color: #2E5A3C; border: 1px solid #2E5A3C;
  border-radius: 50rem; padding: .4rem 1.3rem; margin-bottom: 1.4rem;
}
.pf-label { display: block; text-align: left; font-size: 1.2rem; color: #75736A; margin: 0 .2rem .5rem; }
.pf-edit .input { text-align: left; }
.ref-card { display: flex; align-items: center; justify-content: space-between;
  margin: 1.2rem 0; padding: 1.5rem 1.6rem; border-radius: 1.2rem;
  background: linear-gradient(135deg,#D8B878,#B98F4E);
  box-shadow: 0 1rem 2.8rem rgba(185,143,78,.32); }
.ref-card:active { transform: scale(.99); }
.ref-title { font-size: 1.6rem; font-weight: 600; color: #3D2E12; }
.ref-sub { font-size: 1.2rem; color: #6B532A; margin-top: .3rem; }
.ref-r { width: 3.2rem; height: 3.2rem; border-radius: 50%;
  background: rgba(255,253,246,.38); color: #3D2E12;
  text-align: center; line-height: 3.2rem; font-size: 1.8rem; }
.menu { padding: 0 1.4rem; }
.mydata-note { padding: 1rem 0 .6rem; font-size: 1.15rem; line-height: 1.6; color: #8A8A85; }
.mydata-empty { padding: 1.2rem 0; font-size: 1.25rem; color: #ABA89B; text-align: center; }
.th-item { display: flex; align-items: center; gap: 1rem; padding: .9rem 0;
  border-top: 1px solid #EBE6D8; }
.th-thumb { width: 6.4rem; height: 8rem; border-radius: .6rem; object-fit: cover;
  background: #14161A; flex-shrink: 0; }
.th-info { flex: 1; display: flex; align-items: center; justify-content: space-between; }
.th-date { font-size: 1.2rem; color: #75736A; }
.th-del { padding: .4rem 1.1rem; border-radius: 50rem; font-size: 1.2rem;
  color: #C0392B; background: #FBEDEA; }
.mydata-del-all { margin-top: 1.2rem; padding: 1rem 0; text-align: center;
  font-size: 1.3rem; color: #C0392B; border-top: 1px solid #EBE6D8; }
.us-logout { margin-top: 1.2rem; color: #C0392B; border-color: #E8C9C2; }

/* ---- 专栏 ---- */
.art-hero { padding: 2.4rem 2rem; }
.art-hero-title { font-size: 2.8rem; font-weight: 600; }
.art-hero-sub { font-size: 1.3rem; color: rgba(243,239,228,.8); margin-top: .6rem; }

/* ---- 文章详情 ---- */
.at-title { font-size: 2.4rem; font-weight: 600; line-height: 1.45; }
.at-meta { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; }
.at-summary { font-size: 1.4rem; color: #75736A; line-height: 1.7;
  padding: 1rem 0; border-bottom: 1px solid #EFEBE0; }
.at-content { padding-top: 1.2rem; }
.at-p { font-size: 1.5rem; line-height: 1.95; color: #3A3833; margin-bottom: 1.2rem; }
.at-p:last-child { margin-bottom: 0; }





/* ============================================================
   中医体质 + 舌象（引入 tcm-health-v1 引擎后的新功能）
   命名前缀：tcm-（通用）/ tr-（报告）/ th-（记录）/ tt-（舌象）
   ============================================================ */

.tcm .card { margin-bottom: 1.2rem; }
.tcm-hero { padding: 2.6rem 2rem 2.2rem; }
.tcm-kicker { font-size: 1.15rem; letter-spacing: .18em; color: rgba(243,239,228,.75); }
.tcm-title { font-size: 2.6rem; font-weight: 600; margin-top: .8rem; line-height: 1.35; }
.tcm-sub { font-size: 1.3rem; color: rgba(243,239,228,.85); margin-top: 1rem; line-height: 1.75; }
.tcm-h { font-size: 1.8rem; }

.tcm-steps { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 1rem; }
.tcm-step { display: flex; align-items: baseline; gap: .9rem; }
.tcm-step-n { flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: #E8F0E9; color: #2E5A3C; font-size: 1.2rem; text-align: center; line-height: 2.2rem; }
.tcm-step-t { font-size: 1.5rem; font-weight: 600; color: #2B2A26; flex: none; }
.tcm-step-s { font-size: 1.25rem; color: #8A8A85; }

.tcm-note { margin-top: .8rem; }
.tcm-req, .tcm-opt { font-size: 1.1rem; margin-left: .6rem; color: #B98F4E; }
.tcm-opt { color: #8A8A85; }
.tcm-link { color: #2E5A3C; text-decoration: underline; }
.tcm-warn { color: #C0492F; }
.tcm-start { width: 100%; margin-top: 1.4rem; }
.tcm-foot { margin-top: 1rem; }
.tcm-btn-row { display: flex; gap: 1rem; margin-top: 1.4rem; }
.tcm-btn-row .btn-primary, .tcm-btn-row .btn-accent, .tcm-btn-row .btn-plain { flex: 1; }
.hero-alt { margin-top: 1.2rem; }
.hero-alt .tcm-link { color: rgba(243,239,228,.82); font-size: 1.2rem; }

/* 步骤条 */
.stepbar { display: flex; gap: .8rem; margin-bottom: 1.4rem; }
.stepbar .sb { flex: 1; text-align: center; font-size: 1.2rem; padding: .6rem 0;
  border-radius: 3rem; background: #EFEBE0; color: #8A8A85; }
.stepbar .sb.on { background: #2E5A3C; color: #F3EFE4; }
.stepbar .sb.done { background: #E8F0E9; color: #2E5A3C; }

/* 舌象拍摄指引 */
.tcm-shoot { display: flex; flex-direction: column; gap: .9rem; margin: 1.2rem 0 1.6rem; }
.tcm-shoot-item { display: flex; gap: .8rem; align-items: baseline; }
.tcm-shoot-t { flex: none; width: 6.4rem; font-size: 1.3rem; font-weight: 600; color: #2E5A3C; }
.tcm-shoot-s { font-size: 1.25rem; color: #6E6C64; line-height: 1.6; }

.tcm-photo { width: 100%; border-radius: 1.2rem; display: block; margin: 1rem 0; }

/* 舌象维度列表 */
.tcm-dims { margin-top: 1.2rem; }
.tt-dim { border-bottom: 1px solid #EFEBE0; padding: .9rem 0; }
.tt-dim:last-child { border-bottom: none; }
.tt-dim-head { display: flex; align-items: baseline; gap: .8rem; }
.tt-dim-cn { font-size: 1.4rem; color: #2B2A26; flex: none; width: 8rem; }
.tt-dim-val { font-size: 1.45rem; font-weight: 600; color: #2E5A3C; flex: 1; }
.tt-dim-conf { font-size: 1.1rem; }
.tt-dim-mean { font-size: 1.2rem; color: #75736A; line-height: 1.65; margin-top: .3rem; }

.tcm-blockers { background: #FDF3F0; border-radius: 1rem; padding: 1.2rem 1.4rem; margin-top: 1.2rem; }
.tcm-bh { font-size: 1.5rem; color: #C0492F; margin-bottom: .6rem; }
.tcm-blocker { font-size: 1.28rem; color: #8A4A3A; line-height: 1.7; }
.tcm-hints { margin-top: 1rem; }
.tcm-hints .tag { margin: .3rem .4rem .3rem 0; }
.opt-hint { display: block; font-size: 1.15rem; color: #8A8A85; margin-top: .2rem; }

/* ---- 报告 ---- */
.tr-hero { padding: 2.6rem 2rem; }
.tr-kicker { font-size: 1.15rem; letter-spacing: .16em; color: rgba(243,239,228,.75); }
.tr-overall { font-size: 2.4rem; font-weight: 600; line-height: 1.4; margin-top: .8rem; }
.tr-meta { font-size: 1.2rem; color: rgba(243,239,228,.8); margin-top: .8rem; }
.tr-std { color: rgba(243,239,228,.7); }

.tr-bar { display: flex; align-items: center; gap: .8rem; margin: .9rem 0; }
.tr-bar-name { flex: none; width: 8.6rem; font-size: 1.3rem; }
.tr-tag { font-size: 1rem; padding: .1rem .4rem; border-radius: .4rem; margin-left: .3rem; }
.tr-tag.yes { background: #F8E0DA; color: #C0492F; }
.tr-tag.may { background: #F6EEDD; color: #B98F4E; }
.tr-bar-track { flex: 1; height: .9rem; background: #EFEBE0; border-radius: .5rem; overflow: hidden; }
.tr-bar-fill { height: 100%; background: #2E5A3C; border-radius: .5rem; }
.tr-bar-num { flex: none; width: 3.6rem; text-align: right; font-size: 1.25rem; color: #6E6C64; }

.tr-care-head { display: flex; align-items: baseline; gap: .8rem; margin-bottom: .6rem; }
.tr-care-name { font-size: 1.7rem; font-weight: 600; }
.tr-care-row { display: flex; gap: .8rem; margin-top: .7rem; align-items: baseline; }
.tr-care-k { flex: none; width: 4.6rem; font-size: 1.3rem; color: #B98F4E; }
.tr-care-v { flex: 1; font-size: 1.28rem; color: #4A4841; line-height: 1.7; }
.tr-care-avoid { margin-top: 1rem; padding: .8rem 1rem; background: #FDF6EC;
  border-radius: .8rem; font-size: 1.25rem; color: #8A6A3A; line-height: 1.65; }

.tr-cross { font-size: 1.35rem; line-height: 1.8; color: #3A3833; margin-top: .6rem; }
.tr-basis { margin-bottom: 1rem; }

.tr-recs { display: flex; flex-direction: column; gap: 1.2rem; }
.tr-rec { margin-bottom: 0; }
.tr-rec-top { display: flex; gap: 1rem; align-items: center; }
.tr-rec-img { width: 7rem; height: 7rem; object-fit: cover; border-radius: 1rem; flex: none; }
.tr-rec-info { flex: 1; min-width: 0; }
.tr-rec-name { font-size: 1.5rem; font-weight: 600; }
.tr-rec-why { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.tr-reason { font-size: 1.15rem; padding: .3rem .7rem; border-radius: .6rem;
  background: #E8F0E9; color: #2E5A3C; }
.tr-avoid { background: #FDF6EC; }
.tr-avoid-h { font-size: 1.5rem; color: #8A6A3A; margin-bottom: .6rem; }
.tr-avoid-v { font-size: 1.28rem; color: #6E5A38; line-height: 1.7; }
.tr-share { width: 100%; margin-top: 1.6rem; }

/* ---- 记录时间线 ----
   ⚠️ 前缀必须是 tch-（tcm history），**不能用 th-**：
   `.th-item` / `.th-date` 早已被「我的 → 我的数据」的热成像列表占用
   （`.th-item{display:flex}`），复用同名会让卡片内容被排成一行。
   实测就是这么撞的：卡片里日期/标签/结论/按钮被挤成横向五列。 */
.tch-item { margin-bottom: 1.2rem; }
.tch-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.tch-head .tag { flex: none; white-space: nowrap; }
.tch-date { font-size: 1.45rem; font-weight: 600; }
.tch-overall { font-size: 1.6rem; font-weight: 600; margin-top: .6rem; line-height: 1.45; }
.tch-sub { font-size: 1.22rem; margin-top: .4rem; }
.tch-detail { border: 1px solid #2E5A3C33; }
.tag-warn { background: #F8E0DA; color: #C0492F; }


/* ============================================================
   第二批反馈：AI健康管家 / 健康记录 / 分享面板 / 表单校验
   ============================================================ */

/* tabbar 上的 AI 图标：两个字，字号要小一点才不撑破圆形 */
.tab-ic-ai { font-size: 1.1rem; letter-spacing: -0.02em; }

/* 表单校验（出生日期必填等） */
.field-err { border-color: #C0492F !important; background: #FDF6F4; }
.tcm-err { font-size: 1.2rem; color: #C0492F; margin-top: .5rem; }
.tcm-warnbox { background: #FDF6EC; border-radius: .8rem; padding: .9rem 1.1rem; }

/* ---------------- AI健康管家 ---------------- */
.brain-hero { padding: 2.2rem 2rem 1.9rem; }
.brain-hero-t { font-size: 2.4rem; font-weight: 600; }
.brain-hero-s { font-size: 1.25rem; color: rgba(243,239,228,.85); margin-top: .7rem; line-height: 1.7; }

/* ---- 三入口一行（我记得 / 今日一问 / 技能）2026-10-02 用户反馈改版 ----
   以前这三块散在页面上：画像摘要条在最上、今日一问在中间、技能按钮塞在输入框里，
   结果**输入框被挤到很下面**。现在并成紧贴对话框上方的一行，点哪项进哪项。 */
.bn-tools { display: flex; gap: .8rem; margin: 1.1rem 0 .9rem; }
.bn-tool {
  flex: 1; position: relative;                  /* 红点用绝对定位挂在本项右上角 */
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #E4EDE6; border-radius: 1.2rem;
  padding: 1.05rem .5rem; font-size: 1.3rem; color: #33513D;
  box-shadow: 0 2px 8px rgba(31,61,43,.05);
}
.bn-tool:active { background: #F2F7F3; }
.bn-tool-n { font-size: 1.1rem; color: #7D9B87; margin-left: .35rem; }
/* 红点：像「有新消息」那样，只在**确实需要操作**时出现 */
.bn-dot {
  position: absolute; top: -.4rem; right: -.4rem;
  width: .9rem; height: .9rem; border-radius: 50%;
  background: #D2452F; border: 2px solid #F5F2EA;
}

.brain-entries { display: flex; gap: 1.1rem; margin-bottom: 1.4rem; }
.brain-entry { flex: 1; background: #fff; border-radius: 1.4rem; padding: 1.4rem 1.2rem;
  box-shadow: 0 2px 10px rgba(31,61,43,.06); text-align: center; }
.brain-entry:active { transform: scale(.985); }
.brain-entry-ic { font-size: 2rem; display: block; margin-bottom: .5rem; }
.brain-entry-t { font-size: 1.45rem; font-weight: 600; color: #2B2A26; }
.brain-entry-s { font-size: 1.1rem; color: #8A8A85; margin-top: .3rem; }

.chat-card { background: #fff; border-radius: 1.4rem; box-shadow: 0 2px 10px rgba(31,61,43,.06);
  display: flex; flex-direction: column; overflow: hidden; }
.chat-head { display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.4rem; border-bottom: 1px solid #EFEBE0; }
.chat-head-t { font-size: 1.45rem; font-weight: 600; }
.chat-log { padding: 1.3rem 1.2rem; max-height: 46vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.chat-empty { text-align: center; color: #8A8A85; font-size: 1.25rem; padding: 1.6rem .8rem; line-height: 1.8; }
.chat-sugs { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1rem; }
.chat-sug { font-size: 1.18rem; padding: .5rem .9rem; border-radius: 1.6rem;
  background: #E8F0E9; color: #2E5A3C; }
.chat-sug:active { background: #D6E4D8; }

.msg { display: flex; margin-bottom: 1.1rem; }
.msg.assistant { justify-content: flex-start; }
.msg.user { justify-content: flex-end; }
/* AI 回答里的轻量富文本（** 粗体、`代码`、· 列表） */
.msg-b b { font-weight: 600; color: #1F3D2B; }
.msg-b code { background: #E8EDE6; padding: .1rem .4rem; border-radius: .4rem;
  font-size: 1.25rem; font-family: ui-monospace, Menlo, Consolas, monospace; }
.msg-b { max-width: 82%; padding: .9rem 1.2rem; border-radius: 1.3rem;
  font-size: 1.36rem; line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.msg.assistant .msg-b { background: #F1F4EE; color: #2B2A26; border-top-left-radius: .4rem; }
.msg.user .msg-b { background: #2E5A3C; color: #F3EFE4; border-top-right-radius: .4rem; }
.msg-meta { font-size: 1.02rem; color: #9A9A94; margin-top: .4rem; }
.msg-cites { margin-top: .6rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.msg-cite { font-size: 1.05rem; padding: .22rem .55rem; border-radius: .5rem;
  background: #F6EEDD; color: #8A6A3A; }
.msg-typing { display: inline-block; }
.msg-typing i { display: inline-block; width: .5rem; height: .5rem; margin: 0 .12rem;
  border-radius: 50%; background: #8A8A85; animation: blink 1.2s infinite; }
.msg-typing i:nth-child(2) { animation-delay: .2s; }
.msg-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,60%,100% { opacity: .25 } 30% { opacity: 1 } }

.chat-input { display: flex; gap: .8rem; padding: 1rem 1.2rem; border-top: 1px solid #EFEBE0;
  align-items: flex-end; background: #FCFBF7; }
.chat-ta { flex: 1; border: 1px solid #E5E1D5; border-radius: 1.1rem; padding: .85rem 1rem;
  font-size: 1.36rem; line-height: 1.6; resize: none; max-height: 9rem; font-family: inherit;
  background: #fff; color: #2B2A26; }
.chat-ta:focus { outline: none; border-color: #2E5A3C; }
.chat-send { flex: none; padding: .85rem 1.5rem; border-radius: 1.1rem; border: none;
  background: #2E5A3C; color: #F3EFE4; font-size: 1.4rem; }
.chat-send:disabled { opacity: .45; }
.chat-note { padding: 0 1.2rem 1.1rem; }

/* ---------------- 健康记录 ---------------- */
.hr-tools { display: flex; gap: 1.1rem; }
.hr-tool { flex: 1; background: #fff; border-radius: 1.4rem; padding: 1.5rem 1.2rem;
  box-shadow: 0 2px 10px rgba(31,61,43,.06); text-align: center; }
.hr-tool:active { transform: scale(.985); }
.hr-tool-ic { font-size: 1.9rem; display: block; margin-bottom: .5rem; }
.hr-tool-t { font-size: 1.5rem; font-weight: 600; }
.hr-tool-s { font-size: 1.1rem; color: #8A8A85; margin-top: .3rem; }
.hr-last { font-size: 1.2rem; color: #2E5A3C; margin-top: .5rem; }

.hr-item { display: flex; align-items: flex-start; gap: 1rem; }
.hr-item-main { flex: 1; min-width: 0; }
.hr-val { font-size: 2rem; font-weight: 600; color: #2B2A26; }
.hr-val small { font-size: 1.1rem; font-weight: 400; color: #8A8A85; margin-left: .4rem; }
.hr-sub { font-size: 1.16rem; color: #8A8A85; margin-top: .25rem; }
.hr-flag { font-size: 1.05rem; padding: .2rem .5rem; border-radius: .45rem; margin-left: .5rem;
  background: #F6EEDD; color: #8A6A3A; }
.hr-thumb { width: 6rem; height: 6rem; border-radius: .9rem; object-fit: cover; flex: none; }
.hr-del { font-size: 1.15rem; color: #C0492F; }

/* 记录表单 */
.hf-card { background: #fff; border-radius: 1.4rem; padding: 1.5rem 1.4rem;
  box-shadow: 0 2px 10px rgba(31,61,43,.06); margin-bottom: 1.2rem; }
.hf-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.hf-k { flex: none; width: 8.6rem; font-size: 1.35rem; color: #4A4841; }
.hf-v { flex: 1; border: 1px solid #E5E1D5; border-radius: .9rem; padding: .8rem 1rem;
  font-size: 1.5rem; background: #fff; color: #2B2A26; font-family: inherit; min-width: 0; }
.hf-v:focus { outline: none; border-color: #2E5A3C; }
.hf-unit { flex: none; font-size: 1.15rem; color: #8A8A85; }
.hf-ocr { width: 100%; padding: 1.5rem 1.2rem; border-radius: 1.2rem; text-align: center;
  border: 1px dashed #B9CDBD; background: #F4F8F4; margin-bottom: 1.2rem; }
.hf-ocr:active { background: #EAF2EB; }
.hf-ocr-ic { font-size: 2rem; display: block; }
.hf-ocr-t { font-size: 1.45rem; font-weight: 600; color: #2E5A3C; margin-top: .4rem; }
.hf-ocr-s { font-size: 1.12rem; color: #8A8A85; margin-top: .3rem; line-height: 1.6; }
.hf-ocr-preview { width: 100%; border-radius: 1rem; margin: .8rem 0; display: block; }
.hf-ai-note { background: #F1F4EE; border-radius: .9rem; padding: .9rem 1.1rem;
  font-size: 1.16rem; color: #4A4841; line-height: 1.7; margin-bottom: 1.2rem; }
.hf-ai-note.warn { background: #FDF6EC; color: #8A6A3A; }
.hf-ai-note.err { background: #FDF3F0; color: #8A4A3A; }

/* ---------------- 分享面板 ---------------- */
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem 0;
  padding: 1.4rem 1rem 1rem; }
.share-it { text-align: center; }
.share-it:active { opacity: .7; }
.share-ic { width: 5.2rem; height: 5.2rem; border-radius: 1.4rem; margin: 0 auto .7rem;
  display: flex; align-items: center; justify-content: center; font-size: 2.1rem; color: #fff; }
.share-lb { font-size: 1.15rem; color: #4A4841; }
.share-tip { font-size: 1.18rem; color: #8A6A3A; background: #FDF6EC; border-radius: .8rem;
  padding: .9rem 1.1rem; margin: 0 1rem 1rem; line-height: 1.7; }
.share-txt { width: 100%; border: 1px solid #E5E1D5; border-radius: .9rem; padding: .8rem 1rem;
  font-size: 1.24rem; height: 8rem; font-family: inherit; color: #4A4841; background: #FCFBF7;
  margin: 0 1rem 1.2rem; width: calc(100% - 2rem); }


/* ============================================================
   第三批：统一返回栏 / 分享落地引导条 / 积分中心
   ============================================================ */

/* 返回栏（由 router 统一渲染，非 tab 页自动带上） */
.pagebar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center;
  gap: .7rem; padding: .9rem 1.2rem; background: #F5F2EA;
  border-bottom: 1px solid #EBE6D8; }
.pagebar .pb-back { width: 3.2rem; height: 3.2rem; line-height: 2.9rem; text-align: center;
  font-size: 2.6rem; color: #2E5A3C; background: #fff; border-radius: 50%;
  box-shadow: 0 1px 4px rgba(31,61,43,.08); flex: none; }
.pagebar .pb-back:active { background: #E8F0E9; }
.pagebar .pb-title { font-size: 1.6rem; font-weight: 600; color: #2B2A26;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 分享落地引导条 */
.ref-banner { position: relative; background: linear-gradient(135deg,#2E5A3C,#3D7A50);
  color: #F3EFE4; padding: 1.2rem 3.4rem 1.2rem 1.6rem; }
.ref-banner .rb-text { font-size: 1.4rem; font-weight: 600; }
.ref-banner .rb-acts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.ref-banner .rb-btn { font-size: 1.18rem; padding: .45rem .9rem; border-radius: 1.4rem;
  background: rgba(255,255,255,.18); color: #F3EFE4; }
.ref-banner .rb-btn:active { background: rgba(255,255,255,.32); }
.ref-banner .rb-close { position: absolute; right: 1rem; top: .9rem; font-size: 2rem;
  line-height: 1; opacity: .75; padding: .2rem .5rem; }

/* 积分中心 */
.pt-hero { padding: 2.2rem 2rem; }
.pt-bal { font-size: 4rem; font-weight: 600; line-height: 1.1; }
.pt-bal small { font-size: 1.4rem; font-weight: 400; margin-left: .5rem; opacity: .85; }
.pt-sub { font-size: 1.2rem; color: rgba(243,239,228,.85); margin-top: .6rem; line-height: 1.7; }
.pt-debt { margin-top: .6rem; font-size: 1.2rem; color: #FFE0D6; }
.pt-rule { display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; padding: .85rem 0; border-bottom: 1px solid #EFEBE0; }
.pt-rule:last-child { border-bottom: none; }
.pt-rule-l { flex: 1; min-width: 0; }
.pt-rule-t { font-size: 1.34rem; color: #2B2A26; }
.pt-rule-n { font-size: 1.1rem; color: #8A8A85; margin-top: .2rem; line-height: 1.6; }
.pt-rule-v { flex: none; font-size: 1.5rem; font-weight: 600; color: #2E5A3C; }
.pt-rule-v.spend { color: #C0492F; }
.pt-rule-cap { font-size: 1.05rem; color: #B98F4E; font-weight: 400; }
.pt-tabs { display: flex; gap: .6rem; margin: 1.2rem 0; }
.pt-tabs .tabx { flex: 1; text-align: center; font-size: 1.3rem; padding: .7rem 0;
  border-radius: 3rem; background: #EFEBE0; color: #6E6C64; }
.pt-tabs .tabx.on { background: #2E5A3C; color: #F3EFE4; }
.pt-form .hf-row { margin-bottom: .9rem; }
.pt-log { display: flex; justify-content: space-between; gap: .8rem;
  padding: .7rem 0; border-bottom: 1px solid #F2EEE2; font-size: 1.24rem; }
.pt-log:last-child { border-bottom: none; }
.pt-log .pl-r { color: #6E6C64; flex: 1; min-width: 0; }
.pt-log .pl-c { flex: none; font-weight: 600; }
.pt-log .pl-c.plus { color: #2E5A3C; }
.pt-log .pl-c.minus { color: #C0492F; }
.pt-log .pl-t { flex: none; color: #9A9A94; font-size: 1.05rem; }
.pt-note { font-size: 1.14rem; color: #8A6A3A; background: #FDF6EC;
  border-radius: .8rem; padding: .8rem 1rem; line-height: 1.65; margin-top: .8rem; }
.pt-cost { font-size: 1.16rem; color: #B98F4E; }


/* 试用版提示条（由后端 trial_mode 驱动；试用结束自动消失） */
.trial-banner { position: relative; background: #FDF6EC; color: #8A6A3A;
  font-size: 1.22rem; line-height: 1.6; padding: 1rem 3.2rem 1rem 1.4rem;
  border-bottom: 1px solid #F0E2C8; }
.trial-banner b { color: #B98F4E; margin-right: .4rem; }
.trial-banner .tb-close { position: absolute; right: .9rem; top: .5rem;
  font-size: 1.9rem; line-height: 1; opacity: .6; padding: .2rem .5rem; }

/* 赠送积分：验证码行的「发送」按钮（原来 padding 过大 + 输入框不收缩 → 溢出屏幕） */
.pt-form .hf-v { min-width: 0; }
/* ⚠️ 必须显式 width:auto（实测）：这个按钮会被算成"整行宽"（332px），
   把同行的验证码输入框挤到只剩 23px，整行溢出屏幕
   （用户反馈"发送按钮太长，都超过页面可见区域了"）。加了 width:auto 后 56px，正常。 */
#pt-send-code { flex: 0 0 auto; width: auto; padding: .8rem 1rem; font-size: 1.3rem;
  white-space: nowrap; border-width: 2px; }

/* ==================================================================
   底部菜单常显（2026-09-29 用户反馈）
   以前二级页没有菜单，用户只能一层层退回；现在非沉浸式页面都保留菜单。
   页面自带的固定底栏（.foot-bar / .r-cta-bar）改为**叠在菜单之上**，
   并给 body 补足底部留白，避免内容被两层底栏遮住。
   ================================================================== */
body.has-tabbar .foot-bar,
body.has-tabbar .r-cta-bar {
  bottom: var(--tabbar-h, 61px);
  /* ★★ 叠在菜单之上时**不能再让一次安全区**（2026-10-02 用户反馈「按钮下面有一小段空白」）。
     底部菜单自己已经用 padding-bottom: var(--safe-b) 让开了 home indicator，
     而本栏的 bottom 就等于菜单的**顶边** —— 本栏再让一次，就凭空多出一条安全区高度的空白。
     iPhone 实测：按钮底边到菜单顶边 101 图像px ≈ 46 CSS px = 1.2rem(12.5) + 34(安全区)，
     与「多让一次」的推断**逐像素吻合**；桌面 env()=0 所以本地看不出来。 */
  padding-bottom: 1.2rem;
}
body.has-tabbar.has-footbar { padding-bottom: calc(var(--tabbar-h, 61px) + 7.6rem); }

/* ---- 支付成功结果页 ---- */
.ps-hero { text-align: center; padding: 2.6rem 1.6rem 1.2rem; }
.ps-ring {
  width: 6.4rem; height: 6.4rem; margin: 0 auto 1.4rem; border-radius: 50%;
  background: linear-gradient(135deg,#2E5A3C,#1C3A27); color: #FFFDF6;
  font-size: 3.2rem; line-height: 6.4rem; font-weight: 600;
  box-shadow: 0 1rem 2.8rem rgba(28,58,39,.28);
}
.ps-t { font-size: 2.4rem; font-weight: 600; color: #1F3D2B; }
.ps-s { font-size: 1.3rem; color: #75736A; margin-top: .8rem; line-height: 1.7; }
.ps-card { margin-top: 1.4rem; }
.ps-row2 {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 0; border-bottom: 1px solid #F1EDE2;
}
.ps-row2:last-child { border-bottom: 0; }
.ps-k { font-size: 1.3rem; color: #75736A; }
.ps-v { font-size: 1.4rem; color: #2B2A26; font-weight: 500; }
.ps-btn { display: block; width: 100%; margin-top: 1.8rem; }
.ps-row { display: flex; gap: 1rem; margin-top: 1rem; }
.ps-row .btn-plain { flex: 1; }

/* ---- 会员价（第七批）---- */
.prod-member {
  font-size: 1.1rem; color: #B98F4E; margin-top: .3rem; font-weight: 500;
}
.member-box {
  margin-top: .8rem; padding: .8rem 1.1rem; border-radius: .9rem;
  background: #FBF5E8; border: 1px solid #EFE2C6;
  font-size: 1.3rem; color: #6B532A; line-height: 1.6;
}
.member-box .mb-tag {
  display: inline-block; margin-right: .6rem; padding: .1rem .7rem; border-radius: 50rem;
  background: linear-gradient(135deg,#D8B878,#B98F4E); color: #fff; font-size: 1.1rem;
}
.member-box .mb-save { color: #C0492F; }
.member-box .mb-go { color: #2E5A3C; font-weight: 600; margin-left: .8rem; }
.member-box .mb-note { color: #ABA89B; font-size: 1.2rem; margin-left: .6rem; }
.dt-tags .tag-accent { background: #F9E9E3; color: #C0492F; }

/* ==================================================================
   富文本正文（.rt）—— 后台用 Quill 编辑、服务端白名单清洗后落库
   前台只负责"把允许的标签排得好看"，不做任何结构变换。
   ================================================================== */
.rt { font-size: 1.5rem; line-height: 1.95; color: #3A3833; }
.rt p { margin-bottom: 1.2rem; }
.rt h1, .rt h2, .rt h3, .rt h4 {
  font-family: "Songti SC","STSong","SimSun",Georgia,serif;
  color: #2B2A26; margin: 1.8rem 0 .9rem; line-height: 1.45;
}
.rt h1 { font-size: 2.1rem; }
.rt h2 { font-size: 1.85rem; }
.rt h3 { font-size: 1.65rem; }
.rt h4 { font-size: 1.5rem; }
.rt ul, .rt ol { margin: 0 0 1.2rem 1.8rem; }
.rt li { margin-bottom: .5rem; }
.rt ul li { list-style: disc; }
.rt ol li { list-style: decimal; }
.rt blockquote {
  margin: 0 0 1.2rem; padding: .8rem 1.2rem; border-left: .3rem solid #B98F4E;
  background: #FAF7F0; color: #57544C; border-radius: 0 .6rem .6rem 0;
}
.rt strong, .rt b { color: #2B2A26; font-weight: 600; }
.rt a { color: #2E5A3C; text-decoration: underline; }
.rt img { max-width: 100%; height: auto; border-radius: .8rem; margin: .6rem 0; display: block; }
.rt hr { border: 0; border-top: 1px solid #EBE6D8; margin: 1.8rem 0; }
.rt code { background: #F3F0E8; border-radius: .4rem; padding: .1rem .5rem; font-size: 1.35rem; }
.rt pre {
  background: #F7F5EF; border-radius: .8rem; padding: 1.2rem; overflow-x: auto;
  font-size: 1.3rem; line-height: 1.7; margin-bottom: 1.2rem;
}
.rt pre code { background: none; padding: 0; }
.rt .ql-align-center { text-align: center; }
.rt .ql-align-right { text-align: right; }
.rt .ql-align-justify { text-align: justify; }
/* Quill 的列表标记不靠 ul/ol 标签，而是 <li data-list="bullet|ordered">。
   前台没有加载 Quill 的样式，所以必须自己声明，否则项目符号会渲染成数字序号。 */
.rt li[data-list="bullet"] { list-style: disc; }
.rt li[data-list="ordered"] { list-style: decimal; }
.rt li[data-list="unchecked"], .rt li[data-list="checked"] { list-style: none; }

/* ==================================================================
   会员中心（P2）
   ================================================================== */
.mb-hero { text-align: center; padding: 2.4rem 1.6rem 2rem; }
.mb-badge {
  display: inline-block; padding: .3rem 1.2rem; border-radius: 50rem;
  background: linear-gradient(135deg,#D8B878,#B98F4E); color: #3D2E12;
  font-size: 1.2rem; font-weight: 600; margin-bottom: 1rem;
}
.mb-title { font-size: 2.3rem; font-weight: 600; }
.mb-sub { font-size: 1.3rem; color: rgba(243,239,228,.82); margin-top: .8rem; line-height: 1.7; }
.mb-benefit { padding: .9rem 0; border-bottom: 1px solid #F1EDE2; }
.mb-benefit:last-child { border-bottom: 0; }
.mb-b-t { font-size: 1.5rem; font-weight: 600; margin-bottom: .3rem; }
.mb-free { display: flex; justify-content: space-between; padding: .7rem 0;
  border-bottom: 1px solid #F1EDE2; font-size: 1.3rem; }
.mb-free:last-of-type { border-bottom: 0; }
.mb-free b { color: #2E5A3C; }
.mb-cta { display: block; width: 100%; margin-top: 1.8rem; }
.mb-rec { display: flex; justify-content: space-between; font-size: 1.3rem;
  padding: .7rem 0; border-bottom: 1px solid #F1EDE2; }
.mb-rec:last-child { border-bottom: 0; }
.mb-t { font-size: 1.7rem; margin-bottom: .6rem; }
/* 会员卡（我的页） */
.member-card {
  display: flex; align-items: center; justify-content: space-between;
  margin: 1.2rem 0; padding: 1.3rem 1.6rem; border-radius: 1.2rem;
  background: #FBF5E8; border: 1px solid #EFE2C6;
}
.member-card.on { background: linear-gradient(135deg,#F6EEDD,#EFE2C6); }
.member-card .mc-t { font-size: 1.6rem; font-weight: 600; color: #3D2E12; }
.member-card .mc-s { font-size: 1.2rem; color: #6B532A; margin-top: .3rem; }
.member-card .mc-r { font-size: 1.3rem; color: #B98F4E; font-weight: 600; flex: 0 0 auto; }
.cf-list { text-decoration: line-through; color: #ABA89B; }
/* 会员累计已省 */
.mb-saved { text-align: center; padding: 1.6rem 1.4rem; }
.mb-saved-l { font-size: 1.3rem; color: #75736A; }
.mb-saved-n {
  font-size: 3.4rem; font-weight: 600; color: #C0492F; margin: .4rem 0 .3rem;
  font-family: "DIN Alternate","Helvetica Neue",Arial,sans-serif;
}
.mb-saved-s { font-size: 1.2rem; color: #ABA89B; line-height: 1.6; }
.member-card .mc-save { font-size: 1.2rem; color: #C0492F; margin-top: .3rem; font-weight: 600; }

/* ==================================================================
   推荐官中心（第八批）：招募文案 + 邀请入口 + 团队/明细
   ================================================================== */
.rf-pitch { background: linear-gradient(135deg,#FBF7EE,#F3EEDF); border: 1px solid #EFE2C6; }
.rf-pitch-t { font-size: 1.8rem; font-weight: 600; color: #3D2E12; margin-bottom: .8rem; }
.rf-pitch-b { font-size: 1.35rem; color: #57544C; line-height: 1.85; }
.rf-pitch-badges { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.rf-badge {
  font-size: 1.1rem; padding: .25rem .9rem; border-radius: 50rem;
  background: #fff; color: #B98F4E; border: 1px solid #EFE2C6;
}
.rf-inv { display: flex; gap: 1rem; margin-top: 1.2rem; align-items: center; }
.rf-inv .btn-gold { flex: 1; }
.rf-inv .btn-plain { flex: 0 0 auto; width: auto; }
.rf-tag {
  display: inline-block; font-size: 1rem; padding: .1rem .6rem; border-radius: 50rem;
  background: #F0EDE4; color: #75736A; margin-left: .3rem;
}
.rf-tag.on { background: #E8F0E9; color: #2E5A3C; }
.rf-rev { color: #ABA89B; }
.rf-note { margin-top: 1.2rem; line-height: 1.8; }

/* 推荐海报页 */
.po-wrap { text-align: center; }
.po-img { width: 100%; max-width: 42rem; border-radius: 1.2rem;
  box-shadow: 0 .8rem 2.8rem rgba(62,52,30,.18); }
.po-tip { margin-top: 1.2rem; }
.po-acts { display: flex; gap: 1rem; margin-top: 1.4rem; }
.po-acts .btn-accent { flex: 1; }
.po-acts .btn-plain { flex: 0 0 auto; width: auto; }
.po-note { margin-top: 1.2rem; line-height: 1.8; }
.po-t { font-size: 1.7rem; margin-bottom: .6rem; }

/* ==========================================================================
   反馈采集（P1.5）：每日一问 + 对话评分
   为什么要有专门样式：这是"让用户愿意每天回来答一句"的入口，
   视觉上要**轻、稳、不像表单**（一进来像问卷，用户就跑了）。
   ========================================================================== */
.fb-card { background: #fff; border-radius: 1.4rem; padding: 1.4rem 1.4rem 1.2rem;
  margin: 1.2rem 0; box-shadow: 0 2px 10px rgba(31,61,43,.06);
  border-left: .3rem solid #4C7A5E; }
.fb-done { border-left-color: #C8B77A; background: #FDFCF7; }
.fb-head { font-size: 1.4rem; font-weight: 600; color: #2B2A26; margin-bottom: .6rem; }
.fb-sub { font-size: 1.1rem; font-weight: 400; color: #8A8A85; }
.fb-q { font-size: 1.5rem; color: #2B2A26; line-height: 1.7; margin-bottom: 1rem; }
.fb-opts { display: flex; flex-wrap: wrap; gap: .8rem; }
.fb-opt { font-size: 1.3rem; color: #3F6F52; background: #F2F7F3; border: 1px solid #D8E6DC;
  border-radius: 99rem; padding: .7rem 1.3rem; }
.fb-opt:active { background: #E4EFE7; transform: scale(.98); }
.fb-tip { font-size: 1.1rem; color: #8A8A85; margin-top: 1rem; line-height: 1.6; }
.fb-reply { font-size: 1.4rem; color: #2B2A26; line-height: 1.75; }
.fb-meta { font-size: 1.1rem; color: #8A8A85; margin-top: .8rem; }

.msg-rate { font-size: 1.1rem; color: #8A8A85; margin-top: .8rem;
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.msg-rate.done { color: #6E8F79; }
.fb-rate { color: #3F6F52; background: #F2F7F3; border: 1px solid #D8E6DC;
  border-radius: 99rem; padding: .3rem .9rem; }
.fb-rate:active { background: #E4EFE7; }

/* P2：避雷提示（安全信息，必须显眼但不吓人）+ 可点开的证据链 */
.msg-avoid { font-size: 1.2rem; color: #8A5A2B; background: #FDF6EC; border: 1px solid #EFDFC6;
  border-radius: .8rem; padding: .7rem .9rem; margin-top: .8rem; line-height: 1.6; }
.ev-line { margin-top: .6rem; }
.ev-toggle { font-size: 1.15rem; color: #3F6F52; }
.ev-toggle:active { opacity: .7; }
.ev-list { margin-top: .6rem; border-left: .2rem solid #E4EFE7; padding-left: .9rem; }
.ev-row { font-size: 1.15rem; color: #6B6B66; padding: .5rem 0; }
.ev-kind { color: #3F6F52; margin-right: .5rem; }
.ev-date { color: #A5A29A; margin-right: .5rem; }
.ev-text { line-height: 1.6; margin-top: .2rem; color: #4A4A46; }

/* ==========================================================================
   P3/P4：画像摘要条 + 首次引导 + 技能抽屉（模块由后端下发）
   ========================================================================== */
.pstrip { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: #F3F7F3; border: 1px solid #DCE8DF; border-radius: 1.2rem;
  padding: 1rem 1.2rem; margin: 1rem 0 .2rem; }
.pstrip-t { font-size: 1.25rem; color: #33513D; line-height: 1.5; }
.pstrip-n { font-size: 1.15rem; color: #6E8F79; white-space: nowrap; }
.pstrip-empty { background: #FDFCF7; border-color: #EFE6CE; }
.pstrip-btn { font-size: 1.2rem; color: #3F6F52; white-space: nowrap; }
.pstrip:active { opacity: .85; }

.guide-card { background: #fff; border-radius: 1.4rem; padding: 1.3rem 1.4rem;
  margin: 1.1rem 0; box-shadow: 0 2px 10px rgba(31,61,43,.06); }
.guide-t { font-size: 1.35rem; font-weight: 600; color: #2B2A26; margin-bottom: .8rem; }
.guide-step { font-size: 1.25rem; color: #4A6B55; line-height: 1.9; }
.guide-step b { display: inline-block; width: 1.8rem; height: 1.8rem; line-height: 1.8rem;
  text-align: center; background: #E8F1EA; color: #33513D; border-radius: 99rem;
  font-size: 1.1rem; margin-right: .5rem; }
.guide-go { color: #3F6F52; margin-left: .5rem; }

.chat-skill { flex: 0 0 auto; background: #F2F7F3; color: #3F6F52; border: 1px solid #D8E6DC;
  border-radius: 1rem; padding: 0 1.1rem; font-size: 1.3rem; }
.chat-skill:active { background: #E4EFE7; }

.sk-mask { position: fixed; inset: 0; background: rgba(24,32,26,.35); z-index: 40; }
.sk-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41;
  background: #FBF9F4; border-radius: 1.8rem 1.8rem 0 0;
  padding: 1.4rem 1.2rem calc(2.2rem + var(--safe-b));
  max-height: 72vh; overflow-y: auto; box-shadow: 0 -6px 22px rgba(31,61,43,.14); }
/* ★★ 抽屉必须**避开底部菜单**（2026-10-02 真浏览器看图发现）：
   菜单 z-index 60 > 抽屉 41 → 抽屉贴在 bottom:0 时，最下面一截（正好是选项行）
   被菜单整个盖住，点了也没反应。抬到菜单顶边之上，并把安全区交给菜单去让。 */
body.has-tabbar .sk-sheet { bottom: var(--tabbar-h, 61px); padding-bottom: 2.2rem; }
.sk-head { font-size: 1.4rem; font-weight: 600; color: #2B2A26; margin-bottom: 1.1rem;
  display: flex; align-items: center; justify-content: space-between; }
.sk-close { font-size: 1.2rem; font-weight: 400; color: #6E8F79; }
.sk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sk-item { background: #fff; border-radius: 1.3rem; padding: 1.2rem 1.1rem;
  box-shadow: 0 2px 8px rgba(31,61,43,.06); }
.sk-item:active { transform: scale(.985); }
.sk-ic { font-size: 2rem; display: block; margin-bottom: .5rem; }
.sk-name { font-size: 1.35rem; color: #2B2A26; font-weight: 600; }
.sk-cost { font-size: 1.05rem; color: #B07A2B; font-weight: 400; margin-left: .4rem; }
.sk-desc { font-size: 1.1rem; color: #8A8A85; margin-top: .3rem; line-height: 1.5; }
.sk-empty { font-size: 1.2rem; color: #8A8A85; padding: 1rem 0; }
.sk-tip { font-size: 1.1rem; color: #8A8A85; margin-top: 1.2rem; line-height: 1.6; }

/* ==========================================================================
   P5：调理进展报告（固定的底部面板，与技能抽屉同一套观感）
   ========================================================================== */
.rp-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41;
  background: #FFFDF8; border-radius: 1.8rem 1.8rem 0 0; padding: 1.4rem 1.3rem 2.4rem;
  max-height: 82vh; overflow-y: auto; box-shadow: 0 -6px 22px rgba(31,61,43,.16); }
.rp-head { font-size: 1.5rem; font-weight: 600; color: #2B2A26; margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: space-between; }
.rp-sum { font-size: 1.4rem; color: #33513D; line-height: 1.75; background: #F3F7F3;
  border-radius: 1rem; padding: 1rem 1.1rem; }
.rp-h { font-size: 1.3rem; color: #2B2A26; font-weight: 600; margin: 1.3rem 0 .5rem; }
.rp-ul { margin: 0; padding-left: 1.9rem; }
.rp-ul li { font-size: 1.25rem; color: #4A4A46; line-height: 1.85; margin-bottom: .3rem; }
.rp-meta { font-size: 1.1rem; color: #8A8A85; margin-top: 1.4rem; }
.rp-note { font-size: 1.05rem; color: #A5A29A; margin-top: .6rem; line-height: 1.6; }
.rp-prev { margin-top: 1.2rem; border-top: 1px dashed #E6E2D6; padding-top: .9rem; }
.rp-prev-i { font-size: 1.1rem; color: #8A8A85; line-height: 1.7; }

/* ===== 推荐官工作台 v1（P1.3）：我的内容 / 我的收益 / 我的账号 ===== */
.aw-head { font-size: 1.5rem; color: #2B2A26; font-weight: 600;
  display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; }
.aw-sub { font-size: 1.1rem; color: #8A8A85; font-weight: 400; flex-shrink: 0; }
.aw-item { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px dashed #E6E2D6; }
.aw-item:first-of-type { border-top: none; padding-top: .2rem; }
.aw-t { font-size: 1.35rem; color: #2B2A26; font-weight: 600; line-height: 1.5; }
.aw-meta { margin-top: .4rem; }
.aw-body { font-size: 1.2rem; color: #4A4A46; line-height: 1.85; margin-top: .8rem;
  white-space: pre-wrap; word-break: break-word;
  background: #FBF9F3; border-radius: .9rem; padding: .9rem 1rem; }
.aw-acts { display: flex; align-items: center; gap: 1.4rem; margin-top: 1rem; flex-wrap: wrap; }
.aw-acts .tcm-link { font-size: 1.2rem; }
.aw-btn { display: inline-block; font-size: 1.2rem; color: #2E5A3C; cursor: pointer;
  border: 1px solid #C9D8CC; border-radius: 2rem; padding: .35rem 1.3rem; }
.aw-btn:active { background: #E8F0E9; }
.aw-btn.gray { color: #8A8A85; border-color: #E0DCD0; }
.aw-money { display: flex; gap: .6rem; margin-top: 1.1rem; }
.aw-money > div { flex: 1; text-align: center; background: #FBF9F3; border-radius: .9rem;
  padding: .9rem .3rem; display: flex; flex-direction: column; }
.aw-num { font-size: 1.5rem; color: #2E5A3C; font-weight: 600; }
.aw-lab { font-size: 1rem; color: #8A8A85; margin-top: .3rem; }
.aw-note { font-size: 1.05rem; color: #8A8A85; line-height: 1.7; margin-top: .8rem;
  background: #FBF9F3; border-radius: .8rem; padding: .8rem .9rem; }
.aw-note b { color: #4A4A46; }
.aw-state { font-size: 1.1rem; font-weight: 400; color: #8A8A85;
  border: 1px solid #E0DCD0; border-radius: 2rem; padding: .15rem .9rem; }
.aw-state.on { color: #2E5A3C; border-color: #C9D8CC; background: #E8F0E9; }
.aw-input { flex: 1; min-width: 12rem; font-size: 1.2rem; padding: .5rem .9rem;
  border: 1px solid #E0DCD0; border-radius: .8rem; background: #FFFDF6; color: #2B2A26; }
