/* ============================================================
   珍姿奇迹 · 客户端设计系统（清新薄荷 · 极简升级）
   ------------------------------------------------------------
   加载顺序：app.css → theme.css → design.css（本文件最后加载，作为
   客户端视觉最终层）。本文件【只增不改】令牌体系：
   - 沿用 theme.css 的 --accent/--secondary/--primary（品牌薄荷），
     因此运行时换肤仍然生效；
   - 仅补充精炼中性色、圆角、柔影、字号阶梯，并重写共享组件观感。
   覆盖范围：topbar / tabbar(含居中问AI) / card / tile / stat /
   feed / hero / fab / home 首页卡 / agent 问答页。
   ============================================================ */

:root {
  /* —— 精炼中性色（暖调、低对比，去"草莽"感）—— */
  --ink-900: #18231f;
  --ink-700: #313f39;
  --ink-500: #5b6b63;
  --ink-400: #8a978f;
  --ink-300: #b3c0b8;
  --line:    #ecf2ef;
  --line-2:  #dde7e2;
  --surface: #ffffff;
  --surface-2: #f5faf7;   /* 极浅薄荷底，用于嵌套/分区 */
  --surface-3: #eaf4ef;   /* 薄荷浅染，用于 chips/高亮底 */

  /* —— 圆角阶梯（更大、更柔和）—— */
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* —— 柔影（低透明度、薄荷调，避免生硬黑影）—— */
  --sh-1: 0 1px 2px rgba(20,52,44,.04), 0 6px 18px rgba(20,52,44,.05);
  --sh-2: 0 8px 24px rgba(20,52,44,.07);
  --sh-3: 0 16px 44px rgba(20,52,44,.10);

  /* —— 字号阶梯（流体）—— */
  --fs-display: clamp(22px, 6.2vw, 27px);
  --fs-Title: 17px;
  --fs-body: 14px;
  --fs-sm: 12.5px;
  --fs-xs: 11.5px;
  --tracking-tight: -0.01em;

  --brand: var(--accent, #1FC8A6);
  --brand-strong: var(--secondary, #15B89B);
  --brand-soft: var(--accent-light, #6FE3CC);
  --brand-grad: linear-gradient(135deg, var(--secondary, #15B89B), var(--accent, #1FC8A6));
  --brand-tint: var(--surface-3);
}

/* 全局：更克制的留白与字体观感 */
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--ink-700);
  background: var(--bg-body, #F3FBF8);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.c-content { padding: 18px 16px 28px; }

/* 通用入场（克制、仅状态变化） */
@keyframes zz-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.c-content > * { animation: zz-fade-up .5s cubic-bezier(.22,1,.36,1) both; }
.c-content > *:nth-child(2) { animation-delay: .04s; }
.c-content > *:nth-child(3) { animation-delay: .08s; }
.c-content > *:nth-child(4) { animation-delay: .12s; }
.c-content > *:nth-child(5) { animation-delay: .16s; }
.c-content > *:nth-child(6) { animation-delay: .20s; }
@media (prefers-reduced-motion: reduce) {
  .c-content > * { animation: none !important; }
}

/* ============ 顶部栏：轻盈毛玻璃，去沉重渐变 ============ */
.c-topbar {
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  color: var(--ink-900);
  border-bottom: 1px solid var(--line);
  padding: 13px 16px;
  display: flex; align-items: center; gap: 10px;
  position: sticky; top: 0; z-index: 20;
}
.c-topbar .title { font-size: calc(15px * var(--fs-scale)); font-weight: 600; color: var(--ink-900); flex: 1; letter-spacing: var(--tracking-tight); }
.c-topbar .user { font-size: calc(14px * var(--fs-scale)); color: var(--ink-400); }
.c-topbar .btn-out {
  background: transparent; border: 1px solid var(--line-2); color: var(--ink-400);
  border-radius: var(--r-pill); padding: 5px 12px; font-size: calc(13px * var(--fs-scale)); transition: all .2s ease;
}
.c-topbar .btn-out:hover { color: var(--ink-700); border-color: var(--ink-300); }
/* 头像（首字母） */
.c-topbar .c-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto;
  background: var(--brand-grad); color: var(--zz-on-brand); font-size: calc(14px * var(--fs-scale)); font-weight: 600;
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  box-shadow: 0 4px 12px rgba(31,200,166,.28);
}

/* ============ 底部 Tab：问AI 居中凸起 ============ */
.c-tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; max-width: 480px; margin: 0 auto;
  height: 64px; padding-bottom: env(safe-area-inset-bottom, 0);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; z-index: 30;
}
.c-tabbar a {
  flex: 1; text-align: center; padding: 8px 0 6px; font-size: calc(12px * var(--fs-scale));
  color: var(--ink-400); display: flex; flex-direction: column; align-items: center; gap: 3px;
  transition: color .2s ease;
}
.c-tabbar a .ic { display: flex; align-items: center; justify-content: center; }
.c-tabbar a .ic svg { width: 23px; height: 23px; display: block; }
.c-tabbar a.on { color: var(--brand-strong); font-weight: 600; }
.c-tabbar a:active { opacity: .7; }

/* 居中问AI 凸起按钮 */
.c-tabbar a.c-tab-agent {
  position: relative; flex: 0 0 64px; color: var(--zz-on-brand);
}
.c-tabbar a.c-tab-agent .ai-fab {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--brand-grad); color: var(--zz-on-brand);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(31,200,166,.42), 0 0 0 5px rgba(255,255,255,.9);
  transition: transform .25s cubic-bezier(.22,1,.36,1);
}
.c-tabbar a.c-tab-agent .ai-fab svg { width: 27px; height: 27px; }
.c-tabbar a.c-tab-agent:active .ai-fab { transform: translateX(-50%) scale(.94); }
.c-tabbar a.c-tab-agent.on .ai-fab { box-shadow: 0 12px 30px rgba(31,200,166,.5), 0 0 0 5px rgba(255,255,255,.95); }
.c-tabbar a.c-tab-agent .lab { margin-top: 30px; }

/* ============ 卡片 ============ */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--sh-1); padding: 18px; margin-bottom: 14px;
}
.card .h { font-size: var(--fs-Title); font-weight: 600; color: var(--ink-900); margin-bottom: 12px; }
.card .h .spacer { flex: 1; }

/* 区块标题 */
.section-title {
  display: flex; align-items: center; gap: 8px; margin: 22px 2px 12px;
  font-size: calc(16px * var(--fs-scale)); font-weight: 700; color: var(--ink-900); letter-spacing: var(--tracking-tight);
}
.section-title .bar { width: 4px; height: 17px; border-radius: 3px; background: var(--brand-grad); }
.section-title .more { margin-left: auto; font-size: calc(13px * var(--fs-scale)); font-weight: 500; color: var(--brand-strong); }

/* ============ 首页问候 Hero（柔和薄荷染，非饱和渐变） ============ */
.hero-greet {
  background: linear-gradient(160deg, var(--surface-3), #ffffff 70%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px 20px 18px; margin-bottom: 14px;
  box-shadow: var(--sh-1); position: relative; overflow: hidden;
}
.hero-greet::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(31,200,166,.12), transparent 70%); border-radius: 50%;
}
.hero-greet .h1 { font-size: var(--fs-display); font-weight: 700; color: var(--ink-900); letter-spacing: var(--tracking-tight); }
.hero-greet .sub { font-size: calc(14px * var(--fs-scale)); color: var(--ink-500); margin-top: 8px; line-height: 1.55; }
.hero-greet .quick-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; position: relative; z-index: 1; }
.hero-greet .quick {
  background: rgba(255,255,255,.75); border: 1px solid var(--line-2); color: var(--ink-700);
  border-radius: var(--r-pill); padding: 8px 14px; font-size: calc(14px * var(--fs-scale)); text-decoration: none;
  transition: all .2s ease;
}
.hero-greet .quick:hover { border-color: var(--brand-soft); color: var(--brand-strong); background: #fff; }

/* ============ 问AI 推广卡（精炼，去硬编码绿） ============ */
.promo-ai {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  background: var(--brand-grad); color: var(--zz-on-brand);
  border-radius: var(--r-md); padding: 15px 16px; margin: 0 0 14px;
  box-shadow: 0 12px 30px rgba(21,184,155,.28); position: relative; overflow: hidden;
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease;
}
.promo-ai:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(21,184,155,.34); }
.promo-ai .pi-ic {
  width: 44px; height: 44px; border-radius: 14px; flex: 0 0 auto;
  background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center;
}
.promo-ai .pi-ic svg { width: 24px; height: 24px; }
.promo-ai .pi-bd { flex: 1; min-width: 0; }
.promo-ai .pi-t { font-size: calc(15px * var(--fs-scale)); font-weight: 700; }
.promo-ai .pi-s { font-size: calc(12px * var(--fs-scale)); opacity: .92; margin-top: 3px; line-height: 1.45; }
.promo-ai .pi-go { font-size: calc(14px * var(--fs-scale)); font-weight: 600; flex: 0 0 auto; }

/* ============ 瓷片区（金刚区） ============ */
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 8px; }
.tile {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 15px 6px; text-align: center;
  box-shadow: var(--sh-1); transition: transform .2s ease, box-shadow .2s ease;
}
.tile:active { transform: scale(.97); }
.tile .ic {
  width: 44px; height: 44px; border-radius: 14px; margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-3); color: var(--brand-strong);
}
.tile .ic svg { width: 23px; height: 23px; }
.tile .t { font-size: calc(13px * var(--fs-scale)); color: var(--ink-500); }

/* ============ 指标 ============ */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 15px 8px; text-align: center; box-shadow: var(--sh-1);
}
.stat .v { font-size: calc(21px * var(--fs-scale)); font-weight: 800; color: var(--ink-900); letter-spacing: var(--tracking-tight); }
.stat .l { font-size: calc(13px * var(--fs-scale)); color: var(--ink-400); margin-top: 5px; }

/* ============ Feed 卡 ============ */
.feed-card {
  display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 12px; margin-bottom: 10px; box-shadow: var(--sh-1);
  align-items: center; transition: transform .2s ease, box-shadow .2s ease;
}
.feed-card:active { transform: scale(.99); box-shadow: var(--sh-2); }
.feed-card .cover {
  width: 72px; height: 72px; border-radius: 12px; flex-shrink: 0; object-fit: cover;
  background: var(--brand-grad); display: flex; align-items: center; justify-content: center;
  font-size: calc(30px * var(--fs-scale)); color: var(--zz-on-brand);
}
.feed-card .bd { flex: 1; min-width: 0; }
.feed-card .ti { font-size: calc(14px * var(--fs-scale)); font-weight: 600; color: var(--ink-900); }
.feed-card .de { font-size: calc(13px * var(--fs-scale)); color: var(--ink-400); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }
.feed-card .meta { font-size: calc(12px * var(--fs-scale)); color: var(--ink-400); margin-top: 6px; }
.feed-card .go { flex-shrink: 0; align-self: center; color: var(--brand-strong); font-size: calc(20px * var(--fs-scale)); }

/* ============ FAB ============ */
.fab {
  position: fixed; right: 18px; bottom: 82px; width: 54px; height: 54px; border-radius: 50%;
  background: var(--brand-grad); color: var(--zz-on-brand);
  display: flex; align-items: center; justify-content: center; font-size: calc(24px * var(--fs-scale));
  box-shadow: 0 12px 30px rgba(31,200,166,.4); z-index: 40; text-decoration: none;
  transition: transform .25s cubic-bezier(.22,1,.36,1);
}
.fab:active { transform: scale(.94); }

/* ============ 我的页宫格 ============ */
.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.entry {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 17px 8px; text-align: center; box-shadow: var(--sh-1);
  transition: transform .2s ease;
}
.entry:active { transform: scale(.97); }
.entry .ic { font-size: calc(23px * var(--fs-scale)); color: var(--brand-strong); display: flex; justify-content: center; }
.entry .ic svg { width: 24px; height: 24px; }
.entry .t { font-size: calc(14px * var(--fs-scale)); color: var(--ink-500); margin-top: 7px; }

/* 消息未读角标 */
.badge-dot .dot { position: absolute; top: -2px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #ff5b6e; color: var(--zz-on-brand); font-size: calc(12px * var(--fs-scale)); line-height: 16px; text-align: center; box-shadow: 0 0 0 2px #fff; }

/* ============ Agent 问答页（令牌化，去除硬编码绿） ============ */
.ai-wrap { display: flex; flex-direction: column; height: calc(100vh - 132px); padding: 14px; box-sizing: border-box; }
.ai-hero {
  background: var(--brand-grad); color: var(--zz-on-brand); border-radius: var(--r-md);
  padding: 16px 18px; margin-bottom: 14px; box-shadow: 0 12px 30px rgba(21,184,155,.26);
}
.ai-hero-t { font-size: calc(16px * var(--fs-scale)); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.ai-hero-t svg { width: 22px; height: 22px; }
.ai-hero-s { font-size: calc(13px * var(--fs-scale)); opacity: .9; margin-top: 4px; }
.ai-thread { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 12px; padding: 4px 2px; }
.ai-sys { font-size: calc(13px * var(--fs-scale)); color: var(--ink-400); }
.ai-sugs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ai-sug {
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--brand-strong);
  font-size: calc(14px * var(--fs-scale)); padding: 8px 13px; border-radius: var(--r-pill); cursor: pointer;
  transition: all .2s ease;
}
.ai-sug:hover { background: var(--brand-tint); border-color: var(--brand-soft); }
.ai-bubble { max-width: 82%; padding: 11px 14px; border-radius: var(--r-sm); font-size: calc(14px * var(--fs-scale)); line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.ai-bubble.user { align-self: flex-end; background: var(--brand-grad); color: var(--zz-on-brand); border-bottom-right-radius: 5px; }
.ai-bubble.ai { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 5px; box-shadow: var(--sh-1); }
.ai-dots { color: var(--ink-400); font-size: calc(14px * var(--fs-scale)); }
.ai-disclaimer { margin-top: 8px; font-size: calc(12px * var(--fs-scale)); color: var(--ink-400); border-top: 1px dashed var(--line-2); padding-top: 7px; }
.ai-bar { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.ai-bar textarea {
  flex: 1; resize: none; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 11px 13px; font-size: calc(14px * var(--fs-scale)); line-height: 1.45; max-height: 120px; font-family: inherit;
  background: var(--surface); color: var(--ink-900);
}
.ai-bar textarea:focus { border-color: var(--brand-soft); outline: none; }
.ai-bar button {
  flex: 0 0 auto; background: var(--brand-grad); color: var(--zz-on-brand); border: 0; border-radius: var(--r-sm);
  padding: 0 18px; height: 44px; font-size: calc(14px * var(--fs-scale)); font-weight: 600; transition: opacity .2s ease;
}
.ai-bar button:disabled { opacity: .5; }
.ai-foot { font-size: calc(12px * var(--fs-scale)); color: var(--ink-400); text-align: center; margin-top: 10px; line-height: 1.55; }

/* ============ 空 / 加载 状态（更柔和） ============ */
.empty { text-align: center; color: var(--ink-400); padding: 34px 0; font-size: calc(14px * var(--fs-scale)); }
.loading { text-align: center; color: var(--ink-400); padding: 30px 0; font-size: calc(14px * var(--fs-scale)); }
.loading::before {
  content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px;
  border: 2px solid var(--line-2); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite;
}

/* ============ 登录页（与系统统一） ============ */
.c-login { min-height: 100vh; padding-bottom: 0; background: linear-gradient(165deg, #eafaf3 0%, #f5fbf9 55%, #e6f7f0 100%); display: flex; flex-direction: column; justify-content: center; }
.c-login-box { background: #fff; border-radius: 24px; margin: 24px; padding: 32px 26px; box-shadow: 0 24px 70px rgba(0,0,0,.32); }
.c-login-box .logo { width: 54px; height: 54px; border-radius: 16px; margin: 0 auto 14px; background: var(--brand-grad); color: var(--zz-on-brand); font-size: calc(24px * var(--fs-scale)); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.c-login-box h2 { text-align: center; font-size: calc(20px * var(--fs-scale)); color: var(--ink-900); }
.c-login-box .sub { text-align: center; font-size: calc(13px * var(--fs-scale)); color: var(--ink-400); margin: 6px 0 24px; }
.c-login-box .field { margin-bottom: 14px; }
.c-login-box .field label { display: block; font-size: calc(14px * var(--fs-scale)); color: var(--ink-500); margin-bottom: 6px; }
.c-login-box button.btn { width: 100%; padding: 13px; border: none; border-radius: var(--r-sm); background: var(--brand-grad); color: var(--zz-on-brand); font-size: calc(15px * var(--fs-scale)); font-weight: 600; box-shadow: 0 10px 26px rgba(31,200,166,.3); }
.c-login-box .err { background: #fdecee; color: #c0392b; border: 1px solid #f7c5ca; border-radius: 10px; padding: 9px 12px; font-size: calc(14px * var(--fs-scale)); margin-bottom: 12px; }
.c-login-box .tip { text-align: center; font-size: calc(12px * var(--fs-scale)); color: var(--ink-400); margin-top: 14px; }

/* 通用表单控件（打卡/表单页） */
input, select, textarea { font-family: inherit; font-size: calc(14px * var(--fs-scale)); width: 100%; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 11px 13px; outline: none; background: #fff; color: var(--ink-900); transition: border-color .2s ease; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-soft); }
.checkin-form button.submit, .c-login-box button.btn { background: var(--brand-grad); }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px; box-shadow: var(--sh-1); }
.metric .l { font-size: calc(13px * var(--fs-scale)); color: var(--ink-400); }
.metric .v { font-size: calc(20px * var(--fs-scale)); font-weight: 700; color: var(--ink-900); margin-top: 4px; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: none; }
.list-item .ic { width: 38px; height: 38px; border-radius: 11px; background: var(--surface-3); color: var(--brand-strong); display: flex; align-items: center; justify-content: center; font-size: calc(17px * var(--fs-scale)); flex-shrink: 0; }
.list-item .bd { flex: 1; min-width: 0; }
.list-item .bd .t { font-size: calc(14px * var(--fs-scale)); font-weight: 600; color: var(--ink-900); }
.list-item .bd .d { font-size: calc(13px * var(--fs-scale)); color: var(--ink-400); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge-teal { background: var(--brand-tint); color: var(--brand-strong); }
.badge-green { background: #dcf5ec; color: #0f9d6b; }

/* ============================================================
   商店 / 发现 / 我的 / 方案 —— 统一补齐组件
   ============================================================ */

/* 页面 Hero（商店/发现通用；.hero-mint 作为兼容别名，JS 注入的 banner 仍可用） */
.page-hero, .hero-mint {
  display: block; text-decoration: none; color: inherit;
  background: linear-gradient(160deg, var(--surface-3), #ffffff 72%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px 20px 18px; margin-bottom: 16px;
  box-shadow: var(--sh-1); position: relative; overflow: hidden;
}
.page-hero::after, .hero-mint::after {
  content: ""; position: absolute; right: -36px; top: -36px; width: 132px; height: 132px;
  background: radial-gradient(circle, rgba(31,200,166,.12), transparent 70%); border-radius: 50%;
}
.page-hero .h1, .hero-mint .h1 { font-size: var(--fs-display); font-weight: 700; color: var(--ink-900); letter-spacing: var(--tracking-tight); position: relative; z-index: 1; }
.page-hero .sub, .hero-mint .sub { font-size: calc(14px * var(--fs-scale)); color: var(--ink-500); margin-top: 8px; line-height: 1.55; position: relative; z-index: 1; }

/* 双列瓷片（全部好物） */
.tile-grid.two { grid-template-columns: repeat(2, 1fr); }
.tile .t.ti { font-weight: 600; color: var(--ink-700); }

/* 徽章（通用基 + 变体） */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--r-pill); font-size: calc(12px * var(--fs-scale)); font-weight: 600; line-height: 1.6; white-space: nowrap; }
.badge-amber  { background: #fff3e0; color: #d98324; }
.badge-attr-primary { background: var(--brand-grad); color: var(--zz-on-brand); }
.badge-attr-green  { background: #dcf5ec; color: #0f9d6b; }

/* 两列表单行（表单） */
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* 表单内小标题与提示行 */
.field-h { font-weight: 600; color: var(--ink-900); font-size: calc(14px * var(--fs-scale)); }
.field-sub { font-size: calc(13px * var(--fs-scale)); color: var(--ink-400); margin-top: 4px; }
.tip-line { font-size: calc(12px * var(--fs-scale)); color: var(--ink-400); margin: 6px 0 14px; line-height: 1.5; }

/* 我的页头像 */
.me-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--brand-grad); color: var(--zz-on-brand); font-size: calc(24px * var(--fs-scale)); font-weight: 600;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  overflow: hidden; flex-shrink: 0; box-shadow: 0 6px 18px rgba(31,200,166,.28);
}
.me-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* 列表 / 卡片内的 SVG 图标尺寸 */
.list-item .ic svg { width: 19px; height: 19px; }
.feed-card .cover svg { width: 32px; height: 32px; }

/* 表单标签 */
.c-content label, .checkin-form label { display: block; font-size: calc(14px * var(--fs-scale)); color: var(--ink-500); margin: 14px 0 6px; }
.card form label:first-of-type { margin-top: 0; }

/* 提交按钮（通用 + 小号） */
.submit {
  width: 100%; border: none; border-radius: var(--r-sm); padding: 13px 16px;
  background: var(--brand-grad); color: var(--zz-on-brand); font-size: calc(15px * var(--fs-scale)); font-weight: 600; cursor: pointer;
  box-shadow: 0 10px 26px rgba(31,200,166,.28); transition: opacity .2s ease, transform .2s ease;
}
.submit:active { transform: scale(.99); }
.submit:disabled { opacity: .6; cursor: default; }
.submit-sm {
  width: auto; flex: 0 0 auto; padding: 8px 14px; font-size: calc(14px * var(--fs-scale)); font-weight: 600;
  border-radius: var(--r-sm); border: none; cursor: pointer;
  background: var(--brand-grad); color: var(--zz-on-brand); box-shadow: 0 6px 16px rgba(31,200,166,.22);
  transition: opacity .2s ease, transform .2s ease;
}
.submit-sm:active { transform: scale(.97); }
.submit-sm.ghost { background: var(--surface); color: var(--brand-strong); border: 1px solid var(--line-2); box-shadow: none; }
.submit-sm.muted { background: #eef2f0; color: var(--ink-400); box-shadow: none; }

/* 方案操作行 */
.plan-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; padding-left: 50px; }

/* ============ 响应式：桌面端直接渲染 H5，居中加宽更好看 ============ */
@media (min-width: 768px) {
  body { max-width: 680px; margin: 0 auto; }
  .c-topbar { max-width: 680px; margin: 0 auto; }
  .c-tabbar { max-width: 680px; }
  .c-content { padding: 22px 18px 34px; }
}

/* ============================================================
   客户端 Islands 二级页专属组件（清新薄荷 · 统一补齐）
   ------------------------------------------------------------
   全部使用 --ink-* / --brand / --surface-* 令牌，与首页一致，
   替代旧门户遗留的 inline 深绿渐变 / 微信灰绿 / emoji 硬编码。
   覆盖：邀请码 / 家庭概览 / 健康档案 / 弹窗 / 教练评价 / 消息框架。
   ============================================================ */

/* ---------- 邀请 / 家庭 专属 Hero（浅薄荷，替代旧 linear-gradient(135deg,var(--text-dark),var(--secondary))） ---------- */
.invite-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--surface-3), #ffffff 76%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px 20px; margin-bottom: 14px;
  box-shadow: var(--sh-1);
}
.invite-hero::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(31,200,166,.14), transparent 70%); border-radius: 50%;
}
.invite-hero .ih-title {
  position: relative; z-index: 1;
  font-size: calc(15px * var(--fs-scale)); font-weight: 700; color: var(--ink-900); letter-spacing: var(--tracking-tight);
}
.invite-hero .ih-summary { position: relative; z-index: 1; }
.invite-hero .ih-name { font-size: calc(18px * var(--fs-scale)); font-weight: 600; color: var(--ink-900); }
.invite-hero .ih-sub { font-size: calc(13px * var(--fs-scale)); color: var(--ink-400); margin-top: 6px; }
.invite-hero .ih-muted { font-size: calc(14px * var(--fs-scale)); color: var(--ink-400); }
.invite-hero .ih-code {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; margin-top: 14px;
}
.invite-hero .ih-code .code {
  flex: 1; font-size: calc(26px * var(--fs-scale)); font-weight: 800; letter-spacing: 3px; color: var(--brand-strong);
}
.invite-hero .ih-copy {
  flex: 0 0 auto; border: none; background: var(--brand-grad); color: var(--zz-on-brand); cursor: pointer;
  border-radius: var(--r-sm); padding: 8px 14px; font-size: calc(14px * var(--fs-scale)); font-weight: 600;
  box-shadow: 0 6px 16px rgba(31,200,166,.22); transition: opacity .2s ease, transform .2s ease;
}
.invite-hero .ih-copy:active { transform: scale(.96); }
.invite-hero .ih-link {
  position: relative; z-index: 1;
  font-size: calc(13px * var(--fs-scale)); color: var(--ink-400); margin-top: 10px; word-break: break-all; line-height: 1.5;
}
.invite-hero .ih-actions { position: relative; z-index: 1; display: flex; gap: 8px; margin-top: 14px; }
.invite-hero .ih-actions a, .invite-hero .ih-actions button {
  flex: 1; text-align: center; border: none; cursor: pointer; text-decoration: none;
  background: var(--brand-tint); color: var(--brand-strong);
  border-radius: var(--r-sm); padding: 9px; font-size: calc(14px * var(--fs-scale)); font-weight: 600;
  transition: background .2s ease;
}
.invite-hero .ih-actions a:active, .invite-hero .ih-actions button:active { background: var(--surface-3); }

/* ---------- 健康档案报告卡（替代 inline 灰白卡 + 📋 emoji） ---------- */
.report-card {
  border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 10px;
  box-shadow: var(--sh-1); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease;
}
.report-card:active { transform: scale(.992); box-shadow: var(--sh-2); }
.report-card .rc-title { font-weight: 600; color: var(--ink-900); font-size: calc(13.5px * var(--fs-scale)); }
.report-card .rc-meta { font-size: calc(12px * var(--fs-scale)); color: var(--ink-400); margin: 3px 0 6px; }
.report-card .rc-body { font-size: calc(14px * var(--fs-scale)); color: var(--ink-500); line-height: 1.7; }
.report-card .rc-more { display: block; text-align: right; margin-top: 6px; color: var(--brand-strong); font-size: calc(13px * var(--fs-scale)); }

/* ---------- 弹窗（健康档案详情，替代 JS inline cssText） ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 999;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: zz-fade-up .25s ease both;
}
.modal-card {
  background: #fff; border-radius: var(--r-md); max-width: 560px; width: 100%;
  max-height: 85vh; overflow: auto; padding: 22px; box-shadow: var(--sh-3);
}
.modal-card .mc-title { font-weight: 700; color: var(--ink-900); font-size: calc(16px * var(--fs-scale)); margin-bottom: 4px; }
.modal-card .mc-meta { font-size: calc(12px * var(--fs-scale)); color: var(--ink-400); margin-bottom: 12px; }
.modal-card .mc-body { font-size: calc(13.5px * var(--fs-scale)); color: var(--ink-700); line-height: 1.9; }
.modal-card .mc-foot { text-align: right; margin-top: 16px; }
.modal-card .mc-close {
  border: none; background: var(--brand-grad); color: var(--zz-on-brand); cursor: pointer;
  border-radius: var(--r-sm); padding: 10px 18px; font-size: calc(14px * var(--fs-scale)); font-weight: 600;
  box-shadow: 0 8px 20px rgba(31,200,166,.25); transition: transform .2s ease;
}
.modal-card .mc-close:active { transform: scale(.98); }

/* ---------- 教练评价：五维评分行（替代 inline flex + select） ---------- */
.eval-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; border-bottom: 1px solid var(--line);
}
.eval-row:last-child { border-bottom: none; }
.eval-row .el { font-size: calc(14px * var(--fs-scale)); color: var(--ink-700); }
.eval-row select {
  border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 6px 8px;
  background: var(--surface); color: var(--ink-900); font-size: calc(14px * var(--fs-scale)); font-family: inherit;
}
.star-pill { font-size: calc(15px * var(--fs-scale)); color: var(--brand-strong); letter-spacing: 2px; }
.star-pill .off { color: var(--ink-300); }

/* ---------- 消息会话框架（替代微信灰 #f7f7f7/#ededed + 绿 #07c160） ---------- */
.msg-tabs { display: flex; border-bottom: 1px solid var(--line); background: var(--surface); }
.msg-tab {
  flex: 1; border: none; background: none; padding: 12px 0; font-size: calc(14px * var(--fs-scale));
  color: var(--ink-400); border-bottom: 2px solid transparent; position: relative;
  cursor: pointer; font-family: inherit; transition: color .2s ease;
}
.msg-tab.on { color: var(--brand-strong); font-weight: 600; border-bottom-color: var(--brand-strong); }
.unread-badge {
  position: absolute; top: 6px; right: calc(50% - 34px); min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--danger, #dc2626); color: var(--zz-on-brand); border-radius: 999px; font-size: calc(12px * var(--fs-scale));
  line-height: 16px; text-align: center;
}
.media-item {
  text-align: center; padding: 10px 0; border-radius: var(--r-sm);
  background: var(--surface-2); font-size: calc(14px * var(--fs-scale)); color: var(--ink-500);
  cursor: pointer; transition: background .2s ease;
}
.media-item:active { background: var(--surface-3); }
@keyframes zzFlower { 0% { transform: scale(0); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }

.conv-head {
  padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line);
  font-size: calc(14px * var(--fs-scale)); color: var(--ink-500); display: flex; align-items: center; gap: 8px;
}
.conv-list { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 12px; background: var(--surface-2); }
.bubble-me { background: var(--surface-3); border-radius: var(--r-sm); padding: 9px 12px; font-size: calc(14px * var(--fs-scale)); line-height: 1.7; box-shadow: var(--sh-1); }
.bubble-other { background: var(--surface); border-radius: var(--r-sm); padding: 9px 12px; font-size: calc(14px * var(--fs-scale)); line-height: 1.7; box-shadow: var(--sh-1); }
.conv-input-bar { background: var(--surface-2); border-top: 1px solid var(--line); padding: 8px 10px; }
.conv-input {
  flex: 1; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 9px 12px;
  font-size: calc(14px * var(--fs-scale)); background: var(--surface); color: var(--ink-900); font-family: inherit;
}
.conv-input:focus { border-color: var(--brand-soft); outline: none; }
.conv-send {
  border: none; background: var(--brand-grad); color: var(--zz-on-brand); border-radius: var(--r-sm);
  padding: 9px 16px; font-size: calc(14px * var(--fs-scale)); font-weight: 600; cursor: pointer;
  box-shadow: 0 6px 16px rgba(31,200,166,.22); transition: transform .2s ease, opacity .2s ease;
}
.conv-send:active { transform: scale(.97); }
.conv-icon-btn { border: none; background: none; font-size: calc(22px * var(--fs-scale)); padding: 4px; cursor: pointer; color: var(--ink-500); }
.conv-voice {
  flex: 1; display: flex; align-items: center; justify-content: center; border-radius: var(--r-sm);
  padding: 10px 12px; font-size: calc(14px * var(--fs-scale)); background: var(--surface); border: 1px solid var(--line-2);
  color: var(--ink-500); user-select: none; -webkit-user-select: none; touch-action: none;
}
.conv-media-panel {
  display: none; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 10px 4px;
  background: var(--surface); border-radius: var(--r-sm); margin-bottom: 8px;
}
/* 教练留言气泡（原 #fff7ed 橙底 → 薄荷浅染 + 品牌强调） */
.coach-note {
  background: var(--brand-tint); border: 1px solid var(--brand-soft);
  border-radius: var(--r-sm); padding: 10px 12px; margin-bottom: 10px; font-size: calc(14px * var(--fs-scale));
}
.coach-note .cn-t { color: var(--brand-strong); font-weight: 600; margin-bottom: 4px; }
.coach-note .cn-b { color: var(--ink-700); line-height: 1.6; }
.coach-note .cn-go { display: block; text-align: right; margin-top: 6px; color: var(--brand-strong); font-size: calc(13px * var(--fs-scale)); cursor: pointer; }

/* AI 教练信息卡弹层 */
.ai-pop {
  display: none; position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 200;
  align-items: center; justify-content: center; padding: 24px;
}
.ai-pop .ai-card-inner {
  background: #fff; border-radius: var(--r-md); width: 300px; padding: 24px; text-align: center;
  box-shadow: var(--sh-3);
}
.ai-pop .ai-avatar {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center; font-size: calc(28px * var(--fs-scale)); color: var(--zz-on-brand); font-weight: 600;
}
.ai-pop .ai-name { font-size: calc(17px * var(--fs-scale)); font-weight: 600; color: var(--ink-900); }
.ai-pop .ai-qual { font-size: calc(14px * var(--fs-scale)); color: var(--brand-strong); margin-top: 4px; }
.ai-pop .ai-exp { font-size: calc(14px * var(--fs-scale)); color: var(--ink-400); margin-top: 12px; line-height: 1.7; text-align: left; white-space: pre-wrap; }
.ai-pop .ai-foot { font-size: calc(13px * var(--fs-scale)); color: var(--ink-400); margin-top: 14px; }

/* ============================================================
   v2 板块级主题（2026-09-06 定稿 · 舒缓留白 · 浅色单模）
   ------------------------------------------------------------
   设计上下文：25–45 岁减脂客户（女性为主），「被教练服务中」。
   三条常量：真人在线 / 我的数据 / 克制的绿。
   本段为【追加覆盖层】，放在文件末尾以保证胜出；旧类未删除，
   出问题只需回滚本段 + 版本号即可。
   ============================================================ */

:root {
  /* 品牌主色：由 #1FC8A6 去青增绿、降饱和 */
  --brand: #2FBF87;
  --brand-strong: #1A7F5A;
  --brand-deep: #0E3B2E;
  --brand-soft: #7FDDBB;
  --brand-tint-100: #DFF5EC;
  --brand-tint-50: #F1FAF6;
  --brand-grad: linear-gradient(135deg, #1A7F5A, #2FBF87);

  /* 五类内容语义色（色带 + 角标成对出现） */
  --c-knowledge: #2FBF87;  --c-knowledge-bg: #F1FAF6;  --c-knowledge-ink: #1A7F5A;
  --c-activity:  #FF8A4C;  --c-activity-bg:  #FFEDE2;  --c-activity-ink:  #A8451A;
  --c-ad:        #E0A020;  --c-ad-bg:        #FBF1DC;  --c-ad-ink:        #8A5F10;
  --c-notice:    #6B7A8F;  --c-notice-bg:    #EEF1F4;  --c-notice-ink:    #45525F;
  --c-community: #F2647F;  --c-community-bg: #FDE9ED;  --c-community-ink: #B23A55;

  /* 中性色（全部带绿调，禁用纯黑纯白） */
  --zz-bg: #F4F8F6;
  --zz-card: #FFFFFF;
  --zz-line: #E8EFEC;
  --zz-t1: #10241D;
  --zz-t2: #5B6E66;
  --zz-t3: #93A39C;

  /* 主色之上/深色区之上的文字与副文字（主题可覆盖，换深色主题时自动反转） */
  --zz-on-brand: #FFFFFF;
  --zz-hero-sub: #8FC9B4;
  --zz-hero-shadow: 0 16px 40px rgba(16, 60, 45, .08);

  /* 圆角 3 档 + pill */
  --zz-r-s: 10px;
  --zz-r-m: 14px;
  --zz-r-l: 20px;
  --zz-r-pill: 999px;

  /* 阴影 3 档（绿调） */
  --zz-sh-1: 0 1px 2px rgba(16, 60, 45, .05);
  --zz-sh-2: 0 6px 18px rgba(16, 60, 45, .06);
  --zz-sh-3: 0 16px 40px rgba(16, 60, 45, .08);

  /* 动效 */
  --zz-ease: cubic-bezier(.16, 1, .3, 1);
  --zz-dur-s: 160ms;
  --zz-dur-m: 280ms;
}

body { background: var(--zz-bg); color: var(--zz-t2); }
.c-content { padding: 16px 16px 32px; }
.c-card, .card { background: var(--zz-card); border-color: var(--zz-line); }

/* ── 通用：数字等宽，防跳动 ───────────────────────── */
.zz-num, .zz-hero-num, .zz-stat-num { font-variant-numeric: tabular-nums; }

/* ── 教练在岗条 ──────────────────────────────────── */
.zz-coach-bar {
  display: flex; align-items: center; gap: 8px;
  background: var(--zz-card); border-radius: var(--zz-r-m);
  padding: 10px 12px; box-shadow: var(--zz-sh-1); margin-bottom: 12px;
}
.zz-coach-bar .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint-100); flex: none;
}
.zz-coach-bar .dot.off { background: var(--zz-t3); box-shadow: 0 0 0 3px var(--zz-line); }
.zz-coach-bar .nm { flex: 1; font-size: calc(14px * var(--fs-scale)); color: var(--zz-t1); font-weight: 500; }
.zz-coach-bar .act { font-size: calc(13px * var(--fs-scale)); color: var(--brand-strong); }

/* ── Hero（深色） ───────────────────────────────── */
.zz-hero {
  background: var(--brand-deep); color: var(--zz-on-brand); border-radius: var(--zz-r-l);
  padding: 16px 16px 14px; box-shadow: var(--zz-sh-3); margin-bottom: 16px;
  position: relative; overflow: hidden;
}
.zz-hero .lab { font-size: calc(13px * var(--fs-scale)); color: var(--brand-soft); margin-bottom: 6px; }
.zz-hero .num { font-size: calc(28px * var(--fs-scale)); font-weight: 500; color: var(--zz-on-brand); line-height: 1.1; letter-spacing: -0.01em; }
.zz-hero .num small { font-size: calc(14px * var(--fs-scale)); font-weight: 400; margin-left: 2px; }
.zz-hero .curve { display: block; margin: 10px 0 8px; width: 100%; height: 40px; }
.zz-hero .ends { display: flex; justify-content: space-between; font-size: calc(13px * var(--fs-scale)); color: var(--zz-hero-sub); }
.zz-hero .empty-tip { font-size: calc(14px * var(--fs-scale)); color: var(--brand-soft); padding: 6px 0 2px; }

/* ── Bento 双格 ─────────────────────────────────── */
.zz-bento { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.zz-bento .cell {
  background: var(--zz-card); border-radius: var(--zz-r-m); padding: 12px;
  box-shadow: var(--zz-sh-1); transition: transform var(--zz-dur-s) var(--zz-ease);
}
.zz-bento .cell:active { transform: scale(.98); }
.zz-bento .k { font-size: calc(13px * var(--fs-scale)); color: var(--zz-t3); margin-bottom: 6px; }
.zz-bento .v { font-size: calc(15px * var(--fs-scale)); font-weight: 500; color: var(--zz-t1); }
.zz-bento .v.todo { color: var(--brand); }

/* ── 内容色带卡（左 3px 竖条 + 角标） ───────────────── */
.zz-band {
  background: var(--zz-card); border-radius: var(--zz-r-m); padding: 12px 14px;
  box-shadow: var(--zz-sh-1); border-left: 3px solid var(--zz-t3); margin-bottom: 12px;
}
.zz-band[data-type="knowledge"] { border-left-color: var(--c-knowledge); }
.zz-band[data-type="activity"]  { border-left-color: var(--c-activity); }
.zz-band[data-type="ad"]        { border-left-color: var(--c-ad); }
.zz-band[data-type="notice"]    { border-left-color: var(--c-notice); }
.zz-band[data-type="community"] { border-left-color: var(--c-community); }
.zz-band .t { font-size: calc(15px * var(--fs-scale)); font-weight: 500; color: var(--zz-t1); line-height: 1.5; margin-bottom: 6px; }
.zz-band .m { font-size: calc(13px * var(--fs-scale)); color: var(--zz-t3); }

/* ── 类型角标 ───────────────────────────────────── */
.zz-badge {
  display: inline-block; font-size: calc(12px * var(--fs-scale)); line-height: 1.6;
  border-radius: 6px; padding: 1px 7px;
  background: var(--zz-line); color: var(--zz-t2);
}
.zz-badge[data-type="knowledge"] { background: var(--c-knowledge-bg); color: var(--c-knowledge-ink); }
.zz-badge[data-type="activity"]  { background: var(--c-activity-bg);  color: var(--c-activity-ink); }
.zz-badge[data-type="ad"]        { background: var(--c-ad-bg);        color: var(--c-ad-ink); }
.zz-badge[data-type="notice"]    { background: var(--c-notice-bg);    color: var(--c-notice-ink); }
.zz-badge[data-type="community"] { background: var(--c-community-bg); color: var(--c-community-ink); }
.zz-badge.ai { background: var(--zz-line); color: var(--zz-t2); }

/* ── 胶囊 / 话题 ────────────────────────────────── */
.zz-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; margin-bottom: 14px; }
.zz-chips::-webkit-scrollbar { display: none; }
.zz-chip {
  flex: none; font-size: calc(13px * var(--fs-scale)); padding: 6px 12px; border-radius: var(--zz-r-pill);
  background: var(--zz-card); color: var(--zz-t2); box-shadow: var(--zz-sh-1); white-space: nowrap;
}
.zz-chip.on { background: var(--brand); color: var(--zz-on-brand); box-shadow: none; }

/* ── 连击条 ─────────────────────────────────────── */
.zz-streak { display: flex; gap: 4px; margin-top: 8px; }
.zz-streak i { flex: 1; height: 6px; border-radius: 3px; background: var(--zz-line); display: block; }
.zz-streak i.done { background: var(--brand); }
.zz-streak i.now { background: var(--brand-soft); }

/* ── 里程碑条 ───────────────────────────────────── */
.zz-miles { height: 6px; border-radius: 3px; background: var(--zz-line); overflow: hidden; }
.zz-miles i { display: block; height: 6px; background: var(--brand); border-radius: 3px; }

/* ── 大圆主操作（打卡） ─────────────────────────── */
.zz-circle-btn {
  width: 112px; height: 112px; border-radius: 50%; background: var(--brand);
  color: var(--zz-on-brand); display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: var(--zz-sh-3); transition: transform var(--zz-dur-s) var(--zz-ease);
}
.zz-circle-btn:active { transform: scale(.96); }
.zz-circle-btn .a { font-size: calc(15px * var(--fs-scale)); font-weight: 500; }
.zz-circle-btn .b { font-size: calc(13px * var(--fs-scale)); opacity: .85; margin-top: 4px; }

/* ── 数据三格 ───────────────────────────────────── */
.zz-stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.zz-stat3 .cell {
  background: var(--zz-card); border-radius: var(--zz-r-m); padding: 12px 8px;
  text-align: center; box-shadow: var(--zz-sh-1);
}
.zz-stat3 .num { font-size: calc(20px * var(--fs-scale)); font-weight: 500; color: var(--zz-t1); }
.zz-stat3 .num.hi { color: var(--brand); }
.zz-stat3 .lab { font-size: calc(13px * var(--fs-scale)); color: var(--zz-t3); margin-top: 4px; }

/* ── 瀑布流双列 ─────────────────────────────────── */
.zz-waterfall { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.zz-wf-card {
  background: var(--zz-card); border-radius: var(--zz-r-m); overflow: hidden; box-shadow: var(--zz-sh-1);
}
.zz-wf-card .pic { height: 96px; background: var(--brand-tint-100); }
.zz-wf-card .bd { padding: 9px 10px; }
.zz-wf-card .t { font-size: calc(14px * var(--fs-scale)); color: var(--zz-t1); line-height: 1.5; }
.zz-wf-card .a { font-size: calc(12px * var(--fs-scale)); color: var(--zz-t3); margin-top: 6px; }

/* ── 留言区 ─────────────────────────────────────── */
.zz-comments {
  background: var(--zz-card); border-radius: var(--zz-r-l) var(--zz-r-l) 0 0;
  padding: 14px 16px 18px; margin-top: 4px;
}
.zz-comments .h { font-size: calc(15px * var(--fs-scale)); font-weight: 500; color: var(--zz-t1); margin-bottom: 12px; }
.zz-cmt { display: flex; gap: 9px; margin-bottom: 14px; }
.zz-cmt .av {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: calc(13px * var(--fs-scale));
  background: var(--brand-tint-100); color: var(--brand-strong);
}
.zz-cmt .nm { font-size: calc(13px * var(--fs-scale)); color: var(--zz-t3); margin-bottom: 3px; }
.zz-cmt .tx { font-size: calc(14px * var(--fs-scale)); color: var(--zz-t1); line-height: 1.6; }
.zz-input-pill {
  background: var(--zz-bg); border-radius: var(--zz-r-pill); height: 38px;
  display: flex; align-items: center; padding: 0 14px; font-size: calc(14px * var(--fs-scale)); color: var(--zz-t3);
}

/* ── 对话气泡（问 AI） ──────────────────────────── */
.zz-bubble-me {
  background: var(--brand); color: var(--zz-on-brand); border-radius: 14px 14px 4px 14px;
  padding: 10px 12px; font-size: calc(14px * var(--fs-scale)); line-height: 1.6; max-width: 78%;
}
.zz-bubble-ai {
  background: var(--zz-card); border-radius: 14px 14px 14px 4px;
  padding: 11px 13px; font-size: calc(14px * var(--fs-scale)); line-height: 1.7; color: var(--zz-t1);
  max-width: 86%; box-shadow: var(--zz-sh-1);
}

/* ── 商品卡（商店） ─────────────────────────────── */
.zz-goods {
  background: var(--zz-card); border-radius: var(--zz-r-m); overflow: hidden; box-shadow: var(--zz-sh-1);
  position: relative;
}
.zz-goods .pic { height: 110px; background: var(--brand-tint-50); }
.zz-goods .stick {
  position: absolute; left: 10px; top: 10px; font-size: calc(12px * var(--fs-scale));
  background: var(--c-ad-bg); color: var(--c-ad-ink); border-radius: 6px; padding: 3px 8px;
}
.zz-goods .bd { padding: 11px 12px; }
.zz-goods .t { font-size: calc(14px * var(--fs-scale)); color: var(--zz-t1); line-height: 1.5; }
.zz-goods .p { font-size: calc(17px * var(--fs-scale)); font-weight: 500; color: var(--brand); margin-top: 6px; }
.zz-goods .p s { font-size: calc(13px * var(--fs-scale)); color: var(--zz-t3); margin-left: 6px; font-weight: 400; }

/* ── 分区标题 ───────────────────────────────────── */
.zz-sec-h { font-size: calc(17px * var(--fs-scale)); font-weight: 500; color: var(--zz-t1); margin: 4px 0 12px; }
.zz-sec-h small { font-size: calc(13px * var(--fs-scale)); color: var(--zz-t3); font-weight: 400; margin-left: 8px; }

/* ── 详情页正文（15px / 行高 1.75） ───────────────── */
.zz-article { font-size: calc(15px * var(--fs-scale)); line-height: 1.75; color: var(--zz-t2); }
.zz-article p { margin-bottom: 16px; }
.zz-article h3 { font-size: calc(15px * var(--fs-scale)); font-weight: 500; color: var(--zz-t1); margin: 20px 0 8px; }

/* ── 问 AI 页：气泡对齐新主题（复用既有类名，不改 JS） ──── */
.ai-bubble.user {
  background: var(--brand); color: var(--zz-on-brand); border-radius: 14px 14px 4px 14px;
  max-width: 78%; margin-left: auto; font-size: calc(14px * var(--fs-scale)); line-height: 1.6;
}
.ai-bubble.ai {
  background: var(--zz-card); color: var(--zz-t1); border-radius: 14px 14px 14px 4px;
  max-width: 86%; font-size: calc(14px * var(--fs-scale)); line-height: 1.7; box-shadow: var(--zz-sh-1);
}
.ai-sug {
  background: var(--zz-card); color: var(--zz-t1); border-radius: var(--zz-r-pill);
  box-shadow: var(--zz-sh-1); font-size: calc(14px * var(--fs-scale));
}
.ai-disclaimer { font-size: calc(13px * var(--fs-scale)); color: var(--zz-t3); margin-top: 8px; line-height: 1.6; }

@media (min-width: 768px) {
  .zz-bento { grid-template-columns: repeat(4, 1fr); }
  .zz-waterfall { grid-template-columns: repeat(3, 1fr); }
}

/* ── 学习模块（价值服务首位） ─────────────────────── */
.learn-hero { display:flex; gap:12px; align-items:center; background:var(--brand-tint-100);
  border:1px solid var(--zz-line); border-radius:14px; padding:12px; text-decoration:none; }
.learn-hero .cov { width:84px; height:84px; border-radius:12px; flex:0 0 auto;
  background:var(--zz-card); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.learn-hero .cov-empty { font-size: calc(34px * var(--fs-scale)); }
.learn-hero .info { flex:1; min-width:0; display:flex; flex-direction:column; gap:6px; }
.learn-hero .info .t { font-size: calc(15px * var(--fs-scale)); font-weight:500; color:var(--zz-t1); line-height:1.4; }
.learn-hero .info .m { font-size: calc(13px * var(--fs-scale)); color:var(--zz-t3); line-height:1.5; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.learn-hero .go { font-size: calc(14px * var(--fs-scale)); font-weight:500; color:var(--brand-strong); }

.learn-card { display:block; background:var(--zz-card); border:1px solid var(--zz-line);
  border-radius:14px; padding:12px 14px; margin-bottom:12px; text-decoration:none; }
.learn-card .t { font-size: calc(15px * var(--fs-scale)); font-weight:500; color:var(--zz-t1); line-height:1.5; margin:8px 0 6px; }
.learn-card .m { font-size: calc(13px * var(--fs-scale)); color:var(--zz-t3); line-height:1.5; }

.zz-type-pill { display:inline-flex; align-items:center; font-size: calc(12px * var(--fs-scale)); font-weight:500;
  padding:2px 9px; border-radius:999px; background:var(--brand-tint-100); color:var(--brand-strong); }
.zz-type-pill[data-t="voice"] { background:#FFF3E0; color:#C77700; }
.zz-type-pill[data-t="video"] { background:#E8F0FF; color:#2B6BD6; }
.zz-type-pill[data-t="live"]  { background:#FFE9EE; color:#D6336C; }

.follow-row { display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid var(--zz-line); }
.follow-row:last-child { border-bottom:none; }
.follow-row .fi { font-size: calc(22px * var(--fs-scale)); flex:0 0 auto; }
.follow-row .ft { flex:1; min-width:0; }
.follow-row .ft .t { font-size: calc(14px * var(--fs-scale)); font-weight:500; color:var(--zz-t1); }
.follow-row .ft .m { font-size: calc(13px * var(--fs-scale)); color:var(--zz-t3); margin-top:2px; }
.follow-row .arr { color:var(--zz-t3); font-size: calc(18px * var(--fs-scale)); }

/* ── 顶栏品牌 + 扫一扫框（阶段 2 新增） ──────────────────── */
.c-topbar .c-brand {
  flex: 0 0 auto; font-size: calc(16px * var(--fs-scale)); font-weight: 700; letter-spacing: .5px;
  color: var(--brand-strong); text-decoration: none; white-space: nowrap;
}
.c-topbar .c-scanbox {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; margin: 0 4px;
  background: var(--zz-bg); border: 1px solid var(--zz-line); border-radius: 999px;
  padding: 7px 12px; color: var(--zz-t3); font-size: calc(14px * var(--fs-scale)); text-align: left;
}
.c-topbar .c-scanbox svg { width: 16px; height: 16px; flex: none; color: var(--brand); }
.c-topbar .c-scanbox .ph { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-topbar .c-scanbox:active { transform: scale(.99); }

/* ── 食物热量识别面板（底部抽屉） ─────────────────────── */
.food-sheet {
  position: fixed; inset: 0; z-index: 300;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.food-sheet .mask { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); }
.food-sheet .panel {
  position: relative; background: var(--zz-card); border-radius: 20px 20px 0 0;
  max-height: 86vh; display: flex; flex-direction: column; box-shadow: var(--zz-sh-3);
  animation: zzSheetUp .28s var(--zz-ease) both;
}
@keyframes zzSheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.food-sheet .fs-head { display: flex; align-items: center; gap: 10px; padding: 16px 16px 8px; }
.food-sheet .fs-title { font-size: calc(17px * var(--fs-scale)); font-weight: 500; color: var(--zz-t1); }
.food-sheet .fs-close { margin-left: auto; border: none; background: none; font-size: calc(24px * var(--fs-scale)); line-height: 1; color: var(--zz-t3); cursor: pointer; padding: 0 4px; }
.food-sheet .fs-search { display: flex; gap: 8px; padding: 4px 16px 10px; }
.food-sheet .fs-input {
  flex: 1; border: 1px solid var(--zz-line); border-radius: 12px; padding: 11px 13px;
  font-size: calc(14px * var(--fs-scale)); background: var(--zz-bg); color: var(--zz-t1); font-family: inherit;
}
.food-sheet .fs-input:focus { border-color: var(--brand-soft); outline: none; background: #fff; }
.food-sheet .fs-go {
  flex: none; border: none; border-radius: 12px; padding: 0 18px;
  background: var(--brand-grad); color: var(--zz-on-brand); font-size: calc(14px * var(--fs-scale)); font-weight: 600; cursor: pointer;
}
.food-sheet .fs-tools { display: flex; gap: 8px; padding: 0 16px 10px; }
.food-sheet .fs-tool {
  flex: 1; border: 1px solid var(--zz-line); background: var(--zz-card); border-radius: 12px;
  padding: 9px; font-size: calc(14px * var(--fs-scale)); color: var(--zz-t2); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px; font-family: inherit;
}
.food-sheet .fs-tool:active { background: var(--zz-bg); }
.food-sheet .fs-video { display: none; width: 100%; height: 200px; object-fit: cover; background: #000; border-radius: 12px; margin: 0 16px 10px; }
.food-sheet .fs-note { font-size: calc(13px * var(--fs-scale)); color: var(--zz-t3); padding: 0 16px 8px; line-height: 1.6; }
.food-sheet .fs-list { flex: 1; overflow-y: auto; padding: 4px 16px 18px; -webkit-overflow-scrolling: touch; }
.food-sheet .fs-empty { text-align: center; color: var(--zz-t3); font-size: calc(14px * var(--fs-scale)); padding: 30px 0; }
.food-sheet .food-item { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--zz-line); }
.food-sheet .food-item:last-child { border-bottom: none; }
.food-sheet .food-ic { width: 42px; height: 42px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; font-size: calc(20px * var(--fs-scale)); background: var(--brand-tint-100); color: var(--brand-strong); }
.food-sheet .food-bd { flex: 1; min-width: 0; }
.food-sheet .food-name { font-size: calc(15px * var(--fs-scale)); font-weight: 500; color: var(--zz-t1); }
.food-sheet .food-meta { font-size: calc(13px * var(--fs-scale)); color: var(--zz-t3); margin-top: 3px; }
.food-sheet .food-kcal { text-align: right; flex: none; }
.food-sheet .food-kcal .v { font-size: calc(18px * var(--fs-scale)); font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; }
.food-sheet .food-kcal .u { font-size: calc(12px * var(--fs-scale)); color: var(--zz-t3); }
.food-sheet .food-kcal .p { font-size: calc(12px * var(--fs-scale)); color: var(--zz-t2); margin-top: 2px; }

/* ── 阶段三·推荐切片：发现页增强（珍小奇 / 教练推荐 / 好物精选） ── */
.zz-bot-card {
  display: flex; align-items: center; gap: 12px; margin-bottom: 4px;
  background: linear-gradient(135deg, var(--brand-tint-100), #fff);
  border: 1px solid var(--zz-line); border-radius: var(--zz-r-l); padding: 14px 16px;
}
.zz-bot-av {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: var(--brand-grad); color: var(--zz-on-brand);
  display: flex; align-items: center; justify-content: center; font-size: calc(24px * var(--fs-scale));
}
.zz-bot-bd { flex: 1; min-width: 0; }
.zz-bot-name { font-size: calc(15px * var(--fs-scale)); font-weight: 500; color: var(--zz-t1); }
.zz-bot-tag { font-size: calc(12px * var(--fs-scale)); font-weight: 400; color: var(--brand-strong); background: var(--brand-tint-100); border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.zz-bot-greet { font-size: calc(14px * var(--fs-scale)); color: var(--zz-t2); margin-top: 4px; line-height: 1.5; }
.zz-bot-go { flex: none; font-size: calc(14px * var(--fs-scale)); font-weight: 500; color: var(--brand-strong); }

.zz-coach-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.zz-coach-row::-webkit-scrollbar { display: none; }
.zz-coach-card {
  flex: 0 0 auto; width: 104px; background: var(--zz-card); border: 1px solid var(--zz-line);
  border-radius: var(--zz-r-m); padding: 14px 8px; text-align: center; box-shadow: var(--zz-sh-1);
}
.zz-coach-card:active { transform: scale(.97); }
.zz-coach-av {
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 8px;
  background: var(--brand-grad); color: var(--zz-on-brand);
  display: flex; align-items: center; justify-content: center; font-size: calc(20px * var(--fs-scale));
}
.zz-coach-name { font-size: calc(14px * var(--fs-scale)); font-weight: 500; color: var(--zz-t1); }
.zz-coach-title { font-size: calc(12px * var(--fs-scale)); color: var(--zz-t3); margin-top: 3px; }
