/* =================================================
   慈幼健康 · 雅致金奢 UI（方案 A1）
   面向：年轻宝妈（儿童调养馆）｜中医专业 × 轻奢高级感
   配色：酒红(主) + 香槟金(点缀) + 珍珠暖白底 + 墨黛文字
   说明：基于 tm.png logo 取色（酒红 #823052），衬线标题 + 金细线营造高级感
   ================================================= */

/* ---- CSS Variables ---- */
:root {
  /* 主色：酒红（取自 tm.png logo 外环，传统中医 × 轻奢） */
  --primary:        #823052;
  --primary-dark:   #6B2542;
  --primary-light:  #C98A9E;
  --primary-tint:   #FBF1F4;

  /* 辅色：柔玫瑰（同色系浅化，避免红绿撞色） */
  --secondary:      #8BA888;
  --secondary-dark: #6E8A6B;
  --secondary-light:#C9D6C2;
  --secondary-tint: #EEF3EC;

  /* 点缀：香槟金（轻奢，克制使用，用于细线与印章） */
  --gold:          #C9A961;
  --gold-light:    #E6D2A8;
  --gold-dark:     #A88B4A;
  --gold-tint:     #FBF6EC;

  /* 背景色系（珍珠暖白，通透不刺眼） */
  --bg:            #FBF7F2;
  --surface:       #FFFFFF;
  --surface-2:     #FDFAF6;
  --surface-cream: #F8F0EA;

  /* 边框与阴影（暖调金/酒红晕染，非纯黑） */
  --border:        rgba(201,169,97,0.22);
  --border-strong: rgba(43,42,51,0.08);
  --shadow-xs:     0 1px 4px rgba(130,48,82,0.05);
  --shadow-sm:     0 2px 10px rgba(130,48,82,0.06);
  --shadow-md:     0 6px 20px rgba(130,48,82,0.08);
  --shadow-lg:     0 12px 36px rgba(130,48,82,0.10);
  --shadow-gold:   0 6px 22px rgba(201,169,97,0.20);

  /* 文字色系（墨黛，保证专业可读） */
  --text-1:        #2B2A33;
  --text-2:        #5C5A66;
  --text-3:        #94929E;
  --text-primary:   #2B2A33;
  --text-secondary: #5C5A66;
  --text-dim:      #94929E;
  --text-gold:     #C9A961;
  --text-red:      #823052;

  /* 语义色 */
  --success:       #6E8A6B;
  --warning:       #C2873F;
  --danger:        #B23A52;
  --info:          #6C8CD5;

  /* 渐变（便捷） */
  --grad-primary:   linear-gradient(135deg, #823052 0%, #6B2542 100%);
  --grad-secondary: linear-gradient(135deg, #A8BCA8 0%, #8BA888 100%);
  --grad-gold:     linear-gradient(135deg, #E6D2A8 0%, #C9A961 100%);
  --grad-rose:     linear-gradient(135deg, #C98A9E 0%, #A8607A 100%);

  /* 圆角 */
  --r-xs:  10px;
  --r-sm:  14px;
  --r-md:  18px;
  --r-lg:  24px;
  --r-xl:  32px;
  --r-pill: 999px;

  /* 字体 */
  --font-sans:    "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Noto Serif SC", "Songti SC", "STSong", serif;

  /* 过渡（弹性贝塞尔） */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
.hidden { display: none !important; }
::selection { background: var(--primary-tint); color: var(--text-1); }
.serif { font-family: var(--font-display); }

/* =================================================
   APP SHELL
   ================================================= */
.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: var(--bg);
  overflow-x: hidden;
  box-shadow: 0 0 60px rgba(130,48,82,0.06);
}
.page { display: none; padding-bottom: 40px; }
.page.active { display: block; animation: pageIn 0.4s var(--ease-spring); }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.page-title {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700; color: var(--text-1);
  letter-spacing: 0.02em;
}

/* =================================================
   治愈系背景装饰（漂浮柔光斑 + 星点）
   ================================================= */
.bg-ornament {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; height: 100%; pointer-events: none; z-index: 0; overflow: hidden;
}
.bg-circle {
  position: absolute; border-radius: 50%; filter: blur(46px); opacity: 0.42;
}
.bg-circle-1 {
  width: 220px; height: 220px; top: -40px; right: -60px;
  background: radial-gradient(circle, var(--primary-light), transparent 70%);
  animation: floatBlob 14s ease-in-out infinite;
}
.bg-circle-2 {
  width: 200px; height: 200px; top: 38%; left: -70px;
  background: radial-gradient(circle, var(--secondary-light), transparent 70%);
  animation: floatBlob 18s ease-in-out infinite reverse;
}
.bg-circle-3 {
  width: 160px; height: 160px; bottom: 6%; right: -40px;
  background: radial-gradient(circle, var(--gold-light), transparent 70%);
  animation: floatBlob 16s ease-in-out infinite;
}
.bg-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(201,169,97,0.10) 1px, transparent 1px);
  background-size: 22px 22px; opacity: 0.5;
}
@keyframes floatBlob {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(14px,22px) scale(1.08); }
}

/* =================================================
   SPLASH SCREEN
   ================================================= */
.splash-screen {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(130,48,82,0.16), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(201,169,97,0.18), transparent 55%),
    linear-gradient(160deg, #FDFAF6 0%, #F6EFE8 100%);
}
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; position: relative; z-index: 2; }
.splash-icon {
  width: 92px; height: 92px; position: relative;
  background: url('tm.png') center/contain no-repeat;
  filter: drop-shadow(0 8px 20px rgba(130,48,82,0.22));
  animation: splashIconAppear 0.8s ease-out forwards; opacity: 0;
}
.splash-icon::before {
  content: ''; position: absolute; inset: -10px;
  border: 2px solid var(--gold); border-radius: 50%;
  animation: splashRingPulse 2.4s ease-in-out infinite;
}
@keyframes splashIconAppear { to { opacity: 1; transform: scale(1); } }
@keyframes splashRingPulse { 0%,100%{ opacity:0.4; transform:scale(1);} 50%{ opacity:1; transform:scale(1.12);} }
.splash-title {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  color: var(--text-1); letter-spacing: 0.14em; text-indent: 0.14em;
  animation: fadeSlideUp 0.6s ease-out 0.3s forwards; opacity: 0;
}
.splash-sub {
  font-size: 0.82rem; color: var(--primary-dark);
  letter-spacing: 0.18em; text-indent: 0.18em; font-weight: 600;
  animation: fadeSlideUp 0.6s ease-out 0.5s forwards; opacity: 0;
}
.splash-tagline {
  font-size: 0.7rem; color: var(--text-3); letter-spacing: 0.22em;
  margin-top: 8px; animation: fadeSlideUp 0.6s ease-out 0.7s forwards; opacity: 0;
}
.splash-loader { width: 130px; margin-top: 30px; animation: fadeSlideUp 0.6s ease-out 0.9s forwards; opacity: 0; }
.loader-track { height: 3px; background: rgba(201,169,97,0.20); border-radius: 3px; overflow: hidden; }
.loader-fill {
  height: 100%; width: 0; border-radius: 3px;
  background: var(--grad-gold);
  animation: loaderProgress 2.6s ease-in-out 0.9s forwards;
}
@keyframes loaderProgress { to { width: 100%; } }
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* =================================================
   首页 HEADER / 品牌
   ================================================= */
.home-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 18px 10px; position: relative; z-index: 5;
}
.header-brand { display: flex; align-items: center; gap: 10px; }
.brand-icon {
  width: 46px; height: 46px; border-radius: 50%;
  overflow: hidden; background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.brand-icon::after {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  border: 1px solid var(--gold-tint); pointer-events: none;
}
.brand-icon img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--primary); letter-spacing: 0.04em; }
.brand-tagline { font-size: 0.66rem; color: var(--text-3); letter-spacing: 0.08em; }
.header-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--surface); color: var(--primary-dark);
  border: 1px solid var(--border); font-size: 0.84rem; font-weight: 600;
  box-shadow: var(--shadow-xs); transition: var(--transition);
}
.header-btn:hover { background: var(--primary-tint); transform: translateY(-1px); }
.header-btn:active { transform: scale(0.96); }
.header-user { display: flex; align-items: center; gap: 8px; }
.header-phone-wrap { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.header-phone { font-size: 0.82rem; font-weight: 600; color: var(--text-1); }
.expire-badge {
  font-size: 0.66rem; color: var(--warning); font-weight: 600;
  background: rgba(194,135,63,0.12); padding: 1px 8px; border-radius: var(--r-pill);
}
.nav-btn span { font-size: 0.78rem; }
.header-badge, .badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); }

/* =================================================
   英雄区域 HERO
   ================================================= */
.hero-section { padding: 8px 18px 4px; position: relative; z-index: 2; }
.hero-inner { display: flex; align-items: center; gap: 16px; }
.hero-lotus { flex: 0 0 96px; position: relative; height: 96px; display: flex; align-items: center; justify-content: center; }
.hero-lotus-bg {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, var(--primary-tint), transparent 72%);
  animation: pulseGlow 4s ease-in-out infinite;
}
@keyframes pulseGlow { 0%,100%{ transform:scale(1); opacity:0.8;} 50%{ transform:scale(1.08); opacity:1;} }
.hero-lotus-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--grad-primary);
  box-shadow: var(--shadow-gold);
  position: relative;
}
.hero-lotus-icon::after {
  content: '👅'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
}
.hero-text { flex: 1; }
.hero-title {
  font-family: var(--font-display); font-weight: 700; color: var(--text-1);
  display: flex; flex-direction: column; line-height: 1.28; letter-spacing: 0.02em;
}
.hero-title .line1 { font-size: 1.6rem; }
.hero-title .line2 { font-size: 0.88rem; font-weight: 600; color: var(--primary-dark); margin-top: 2px; }
.hero-desc { font-size: 0.8rem; color: var(--text-2); margin-top: 8px; line-height: 1.6; }

/* =================================================
   特性卡片 2×2
   ================================================= */
.feature-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 20px 18px 4px; position: relative; z-index: 2;
}
.feature-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px;
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon {
  flex: 0 0 42px; height: 42px; width: 42px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  background: var(--primary-tint);
}
.feature-card:nth-child(2) .feature-icon { background: var(--secondary-tint); }
.feature-card:nth-child(3) .feature-icon { background: var(--gold-tint); }
.feature-card:nth-child(4) .feature-icon { background: var(--primary-tint); }
.feature-info { display: flex; flex-direction: column; line-height: 1.3; }
.feature-name { font-size: 0.92rem; font-weight: 700; color: var(--text-1); }
.feature-desc { font-size: 0.72rem; color: var(--text-3); }

/* =================================================
   上传 / 拍照 主操作区
   ================================================= */
.upload-section { padding: 16px 18px 4px; position: relative; z-index: 2; }
.upload-card {
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-cream) 100%);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); overflow: hidden; position: relative;
}
.upload-card::before {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, var(--primary-light), transparent 70%); opacity: 0.55;
}
.upload-card-inner { padding: 24px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; z-index: 2; }
/* 英文小标 + 「慈」字印章（A1 高级细节） */
.card-eyebrow {
  font-size: 0.62rem; letter-spacing: 0.26em; font-weight: 600;
  color: var(--gold-dark); text-transform: uppercase; margin-bottom: 12px; opacity: 0.9;
}
.card-seal {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--grad-primary); border: 1px solid var(--gold);
  color: #FBF3E6; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 19px; font-weight: 700;
  box-shadow: 0 4px 10px rgba(130,48,82,0.22);
}
.upload-icon-wrap { position: relative; width: 120px; height: 120px; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; }
.upload-pulse {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--primary-light); animation: pulseRing 2.2s ease-out infinite;
}
@keyframes pulseRing { 0%{ transform:scale(0.85); opacity:0.9;} 100%{ transform:scale(1.18); opacity:0;} }
.upload-icon {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--grad-primary); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-gold); overflow: hidden;
}
.upload-katong-img { width: 100%; height: 100%; object-fit: cover; }
.upload-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--text-1); }
.upload-hint { font-size: 0.8rem; color: var(--text-2); margin-top: 6px; line-height: 1.6; }
.upload-auto-compress { font-size: 0.72rem; color: var(--gold-dark); margin-top: 8px; font-weight: 600; }
.upload-btns { display: flex; gap: 12px; margin-top: 18px; width: 100%; }
.btn-upload {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px 10px; border-radius: var(--r-pill); font-size: 0.9rem; font-weight: 700;
  color: #fff; transition: var(--transition);
}
/* 立即拍照 = 酒红主按钮；从相册选择 = 白底描金边（消灭红绿撞色） */
.btn-camera { background: var(--grad-primary); box-shadow: var(--shadow-gold); }
.btn-gallery { background: var(--surface); color: var(--primary); border: 1px solid rgba(201,169,97,0.6); box-shadow: 0 6px 16px rgba(201,169,97,0.16); }
.btn-upload:hover { transform: translateY(-2px); }
.btn-upload:active { transform: scale(0.97); }

/* =================================================
   拍摄指引
   ================================================= */
.guide-section { padding: 22px 18px 4px; position: relative; z-index: 2; }
.guide-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--text-1); display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.title-deco { color: var(--gold); font-size: 0.7rem; }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.guide-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px; box-shadow: var(--shadow-xs);
  display: flex; align-items: center; gap: 12px;
}
.guide-num {
  flex: 0 0 30px; height: 30px; width: 30px; border-radius: 50%;
  background: var(--primary-tint); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
}
.guide-item p { font-size: 0.78rem; color: var(--text-2); line-height: 1.5; }

.disclaimer { padding: 22px 18px 10px; text-align: center; position: relative; z-index: 2; }
.disclaimer p { font-size: 0.7rem; color: var(--text-3); line-height: 1.6; }

/* =================================================
   相机取景页
   ================================================= */
.camera-fullscreen { position: fixed; inset: 0; z-index: 60; background: #1A0F18; display: none; }
.camera-fullscreen.active { display: block; }
.camera-viewfinder { position: relative; width: 100%; height: 100%; overflow: hidden; }
.camera-viewfinder video { width: 100%; height: 100%; object-fit: cover; }
/* 前置摄像头：预览镜像（自拍式自然方向），引导线同步翻转保持对齐 */
.camera-fullscreen.front-facing #camera-video { transform: scaleX(-1); }
.camera-fullscreen.front-facing .camera-tongue-guide { transform: translate(-50%,-50%) scaleX(-1); }
.camera-tongue-guide { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 78vw; max-width: 360px; height: auto; }
.tongue-outline { filter: drop-shadow(0 0 6px rgba(220,196,138,0.5)); }
.camera-hint {
  position: absolute; bottom: 130px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; padding: 8px 16px;
  background: rgba(255,255,255,0.14); backdrop-filter: blur(10px);
  border-radius: var(--r-pill); color: #fff; font-size: 0.82rem; white-space: nowrap;
}
.hint-icon { font-size: 1rem; }
.camera-controls {
  position: absolute; bottom: 36px; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-around; padding: 0 40px;
}
.camera-btn {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.18); color: #fff; backdrop-filter: blur(8px);
  transition: var(--transition);
}
.camera-btn:hover { background: rgba(255,255,255,0.3); }
.camera-shutter {
  width: 72px; height: 72px; background: #fff; border: 4px solid rgba(255,255,255,0.4);
}
.shutter-inner { width: 56px; height: 56px; border-radius: 50%; background: var(--grad-primary); }
.camera-shutter:active .shutter-inner { transform: scale(0.92); }
/* v13：跳过本步按钮（面诊/手诊可选） */
.camera-skip-btn {
  position: absolute; bottom: 100px; left: 50%; transform: translateX(-50%);
  padding: 7px 24px; border: 1px solid rgba(220,196,138,0.55);
  background: rgba(130,48,82,0.32); color: #DCC48A;
  border-radius: var(--r-pill); font-size: 0.82rem; letter-spacing: 1px;
  backdrop-filter: blur(8px); transition: var(--transition); z-index: 5;
}
.camera-skip-btn:active { transform: translateX(-50%) scale(0.95); background: rgba(130,48,82,0.5); }
.flash-overlay { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.flash-overlay.flash { animation: flashAnim 0.4s ease-out; }
@keyframes flashAnim { 0%{opacity:0.9;} 100%{opacity:0;} }

/* =================================================
   预览确认页
   ================================================= */
.preview-header, .report-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 18px 12px; position: relative; z-index: 5;
}
.back-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--text-2);
  box-shadow: var(--shadow-xs); transition: var(--transition);
}
.back-btn:hover { background: var(--primary-tint); color: var(--primary-dark); }
.back-btn:active { transform: scale(0.94); }
.report-header-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--text-2);
  box-shadow: var(--shadow-xs); transition: var(--transition);
}
.icon-btn:hover { background: var(--primary-tint); color: var(--primary-dark); transform: translateY(-1px); }
.preview-body { padding: 4px 18px 20px; position: relative; z-index: 2; }
.preview-image-wrap { position: relative; }
.preview-frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-md); background: #000;
}
.preview-frame img { width: 100%; display: block; }
.preview-tongue-guide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.frame-corner { position: absolute; width: 22px; height: 22px; border: 2px solid var(--gold); }
.frame-tl { top: 10px; left: 10px; border-right: none; border-bottom: none; border-top-left-radius: 8px; }
.frame-tr { top: 10px; right: 10px; border-left: none; border-bottom: none; border-top-right-radius: 8px; }
.frame-bl { bottom: 10px; left: 10px; border-right: none; border-top: none; border-bottom-left-radius: 8px; }
.frame-br { bottom: 10px; right: 10px; border-left: none; border-top: none; border-bottom-right-radius: 8px; }
.compress-info { font-size: 0.74rem; color: var(--gold-dark); margin-top: 10px; font-weight: 600; }
.preview-tip { font-size: 0.78rem; color: var(--text-2); text-align: center; margin-top: 6px; }
.quality-check { margin-top: 18px; }
.quality-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text-1); display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.quality-items { display: flex; flex-direction: column; gap: 10px; }
.quality-item {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-xs); font-size: 0.84rem; color: var(--text-1);
}
.q-icon { width: 26px; height: 26px; border-radius: 50%; background: var(--gold-tint); color: var(--gold-dark); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; }
.q-status { margin-left: auto; color: var(--gold-dark); font-weight: 600; font-size: 0.78rem; }
.preview-actions { display: flex; gap: 12px; margin-top: 22px; }
.preview-actions .btn-secondary { flex: 1; }
.preview-actions .btn-primary { flex: 1; }

/* =================================================
   分析中页面
   ================================================= */
/* =================================================
   慈幼钻石会员 · 分析中加载页（v12）
   ================================================= */
.vip-loading { background: #1A0F1F; min-height: 100vh; position: relative; overflow: hidden; color: #F5E6A8; }
.vip-loading-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 18%, rgba(201,169,97,0.22), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 85%, rgba(130,48,82,0.28), transparent 60%),
    linear-gradient(180deg, #1F1325 0%, #140A1A 50%, #0E0712 100%);
  z-index: 0;
}
.vip-loading-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.vip-particle {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: radial-gradient(circle, #F5E6A8 0%, rgba(201,169,97,0) 70%);
  animation: vipFloat linear infinite; opacity: 0;
}
@keyframes vipFloat {
  0%   { transform: translateY(110vh) scale(0.4); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1.1); opacity: 0; }
}

.vip-loading-body {
  position: relative; z-index: 2;
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 56px 28px 40px; gap: 22px;
}

.vip-diamond-wrap { position: relative; width: 180px; height: 180px; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.vip-diamond-halo {
  position: absolute; inset: 10px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,225,160,0.35) 0%, rgba(201,169,97,0.12) 38%, rgba(201,169,97,0) 70%);
  animation: vipHaloPulse 3.2s ease-in-out infinite;
}
@keyframes vipHaloPulse { 0%,100%{ transform: scale(1); opacity: 0.7; } 50% { transform: scale(1.18); opacity: 1; } }
.vip-diamond-beams {
  position: absolute; inset: -30px; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(245,225,160,0.18) 8deg, transparent 18deg, transparent 90deg, rgba(245,225,160,0.14) 100deg, transparent 110deg, transparent 180deg, rgba(245,225,160,0.16) 188deg, transparent 198deg, transparent 270deg, rgba(245,225,160,0.14) 280deg, transparent 290deg, transparent 360deg);
  animation: vipBeamsRotate 8s linear infinite; border-radius: 50%;
  filter: blur(8px);
}
@keyframes vipBeamsRotate { from{ transform: rotate(0deg); } to { transform: rotate(360deg); } }
.vip-diamond { width: 100%; height: 100%; position: relative; z-index: 1; filter: drop-shadow(0 6px 24px rgba(201,169,97,0.45)); animation: vipDiamondFloat 4s ease-in-out infinite; }
@keyframes vipDiamondFloat { 0%,100%{ transform: translateY(0) rotate(-2deg); } 50%{ transform: translateY(-6px) rotate(2deg); } }

.vip-tagline { display: flex; align-items: center; gap: 12px; color: var(--gold); font-size: 0.78rem; letter-spacing: 0.32em; font-weight: 500; }
.vip-tagline-line { width: 32px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.vip-tagline-text { font-family: var(--font-display); }

.vip-greeting {
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 600;
  background: linear-gradient(135deg, #FFF6D6 0%, #E8C97A 45%, #C9A961 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  letter-spacing: 0.08em; text-align: center; margin: 4px 0 0; line-height: 1.5;
}
.vip-greeting-name { font-weight: 700; }
.vip-greeting-suffix { font-weight: 500; }

.vip-mission { font-size: 0.86rem; color: rgba(245,225,160,0.88); margin: 0; display: flex; align-items: center; gap: 8px; }
.vip-mission-icon { color: var(--gold); font-size: 0.7rem; animation: vipTwinkle 1.6s ease-in-out infinite; }
.vip-mission-icon:last-child { animation-delay: 0.8s; }
@keyframes vipTwinkle { 0%,100%{ opacity: 0.3; transform: scale(0.8); } 50%{ opacity: 1; transform: scale(1.15); } }
.vip-step { font-size: 0.78rem; color: rgba(245,225,160,0.62); margin: 0; font-style: italic; min-height: 1.2em; }

.vip-progress { width: 100%; max-width: 340px; margin-top: 16px; }
.vip-progress-track { width: 100%; height: 4px; background: rgba(201,169,97,0.15); border-radius: 2px; overflow: hidden; }
.vip-progress-fill { width: 0%; height: 100%; background: linear-gradient(90deg, #E8C97A 0%, #F5E6A8 50%, #C9A961 100%); border-radius: 2px; transition: width 0.6s var(--ease-spring); box-shadow: 0 0 12px rgba(245,225,160,0.45); }
.vip-progress-steps { display: flex; justify-content: space-between; margin-top: 14px; }
.vip-step-item { display: flex; flex-direction: column; align-items: center; gap: 6px; color: rgba(245,225,160,0.5); font-size: 0.74rem; transition: var(--transition); }
.vip-step-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(201,169,97,0.3); border: 1px solid rgba(201,169,97,0.4); transition: var(--transition); }
.vip-step-item.active { color: #F5E6A8; }
.vip-step-item.active .vip-step-dot { background: var(--grad-gold); border-color: #F5E6A8; box-shadow: 0 0 12px rgba(245,225,160,0.6); transform: scale(1.15); }
.vip-step-item.done .vip-step-dot { background: var(--gold); border-color: var(--gold); }
.vip-step-label { font-family: var(--font-display); letter-spacing: 0.1em; }

.vip-footer { display: flex; align-items: center; gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(201,169,97,0.18); min-width: 240px; justify-content: center; }
.vip-footer-seal {
  width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 700;
  background: var(--grad-primary); color: #F5E6A8; box-shadow: 0 2px 8px rgba(130,48,82,0.4);
  border: 1px solid var(--gold);
}
.vip-footer-text { font-family: var(--font-display); font-size: 0.82rem; color: rgba(245,225,160,0.7); margin: 0; letter-spacing: 0.08em; }

@media (max-width: 360px) {
  .vip-diamond-wrap { width: 150px; height: 150px; }
  .vip-greeting { font-size: 1.2rem; }
}

/* =================================================
   相机页：模式标签 + 3 套轮廓切换（v12）
   ================================================= */
.camera-mode-label {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 5; display: flex; align-items: center; gap: 10px;
  padding: 7px 16px; border-radius: var(--r-pill);
  background: rgba(20, 10, 26, 0.55); backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 169, 97, 0.45);
  color: #F5E6A8; font-size: 0.78rem; letter-spacing: 0.06em;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}
.camera-mode-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); animation: vipTwinkle 1.6s ease-in-out infinite; }
.camera-mode-text { font-family: var(--font-display); font-weight: 600; }
.camera-mode-step { color: rgba(245,225,160,0.6); font-size: 0.72rem; padding-left: 6px; border-left: 1px solid rgba(201,169,97,0.3); }

/* 3 套轮廓：默认全部 hidden，由 [data-mode] 切到对应可见 */
.camera-guide { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; display: none; }
#page-camera[data-mode="tongue"] .camera-guide-tongue,
#page-camera[data-mode="face"]   .camera-guide-face,
#page-camera[data-mode="hand"]   .camera-guide-hand { display: block; }

/* v14：舌诊轮廓居中修正——覆盖 .camera-guide 的全屏铺满(inset:0/width:100%/height:100%)，
   恢复 .camera-tongue-guide 的居中小尺寸定位；front-facing 镜像由更高特异性规则保留 */
.camera-tongue-guide { inset: auto; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 78vw; max-width: 360px; height: auto; }

/* 提示文案随模式微调字号/排版 */
#page-camera[data-mode="face"] .camera-hint .hint-text,
#page-camera[data-mode="hand"] .camera-hint .hint-text { font-size: 0.92rem; }

/* 跳过按钮（预览页） */
.preview-actions { gap: 8px; }
.preview-actions .skip-btn { border: 1px dashed var(--border-strong); color: var(--text-2); background: transparent; }
.preview-actions .skip-btn:active { background: var(--surface-2); }

/* 预览页：按 mode 切到对应轮廓 */
.preview-guide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: none; pointer-events: none; }
#page-preview[data-mode="tongue"] .preview-tongue-guide { display: block; }
#page-preview[data-mode="face"]   .preview-face-guide   { display: block; }
#page-preview[data-mode="hand"]   .preview-hand-guide   { display: block; }

/* =================================================
   报告：面诊 / 手诊板块（v12，镜像布局）
   ================================================= */
.exam-section {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 18px; box-shadow: var(--shadow-md);
}
.exam-section .report-section-title { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.exam-section .report-section-title .exam-icon {
  width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-gold); color: #6B2542; font-size: 0.78rem; font-weight: 700; font-family: var(--font-display);
}
.exam-section .exam-sub { font-size: 0.76rem; color: var(--text-3); margin: 0 0 12px 30px; letter-spacing: 0.06em; }
.exam-section .exam-image-wrap {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface-2);
  margin-left: 30px; max-width: calc(100% - 30px);
}
.exam-section .exam-image-wrap img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.exam-section .exam-image-watermark {
  position: absolute; bottom: 8px; right: 10px; padding: 3px 10px; border-radius: var(--r-pill);
  background: rgba(20,10,26,0.55); color: #F5E6A8; font-size: 0.7rem; font-family: var(--font-display);
  letter-spacing: 0.08em; backdrop-filter: blur(4px);
}
.exam-section .exam-note {
  margin: 10px 0 0 30px; padding: 8px 12px; border-left: 2px solid var(--gold);
  background: var(--gold-tint); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 0.78rem; color: var(--text-2); line-height: 1.6;
}
.exam-section + .exam-section { margin-top: -10px; }

/* =================================================
   报告页 HEADER / BODY
   ================================================= */
.report-body { padding: 4px 18px 12px; position: relative; z-index: 2; display: flex; flex-direction: column; gap: 22px; }
.report-footer { padding: 12px 18px 30px; position: relative; z-index: 2; }
.report-disclaimer { font-size: 0.68rem; color: var(--text-3); text-align: center; line-height: 1.6; margin-top: 6px; }

/* 区块标题（统一范式：彩色胶囊 emoji + 香槟金渐隐分隔线） */
.report-section-title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: var(--text-1);
  letter-spacing: 0.02em; margin-bottom: 14px; position: relative;
}
.report-section-title::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}
.section-icon {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 12px;
  background: var(--primary-tint); display: flex; align-items: center; justify-content: center;
  font-size: 1rem; box-shadow: var(--shadow-xs);
}

/* 个人信息行 */
.report-user-info {
  display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 4px;
  font-size: 0.8rem;
}
.report-user-info .user-label { color: var(--text-3); }
.report-user-info .user-value { color: var(--text-1); font-weight: 600; }

/* 雷达 + 评分 卡片 */
.report-radar-score-card {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-md);
}
.radar-section { display: flex; justify-content: center; }
.radar-chart-wrap { position: relative; width: 300px; height: 300px; }
#radar-chart { display: block; }
.radar-label { position: absolute; transform: translate(-50%, -50%); font-size: 0.72rem; color: var(--text-2); font-weight: 600; white-space: nowrap; }
.radar-label-name { color: var(--text-2); }
.radar-label-pct { color: var(--primary-dark); font-family: var(--font-display); font-weight: 700; }

/* 评分 / 体质分析 */
.score-section { }
.analysis-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text-1); margin-bottom: 12px; }
.analysis-body { display: flex; flex-direction: column; gap: 14px; }
.main-constitution-card, .sub-constitution-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px;
}
.main-constitution-header, .sub-constitution-header { margin-bottom: 10px; }
.main-badge, .sub-badge {
  display: inline-block; padding: 3px 12px; border-radius: var(--r-pill);
  font-size: 0.72rem; font-weight: 700;
}
.main-badge { background: var(--grad-primary); color: #fff; }
.sub-badge { background: var(--gold-tint); color: var(--gold-dark); }
.main-constitution-info { display: flex; align-items: baseline; gap: 10px; }
.main-c-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--text-1); }
.main-c-score { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.main-c-score small { font-size: 0.7rem; font-weight: 600; margin-left: 2px; }
.score-bar-wrap { margin-top: 10px; }
.score-bar-bg { height: 8px; border-radius: var(--r-pill); background: var(--border-strong); overflow: hidden; }
.score-bar-fill { height: 100%; border-radius: var(--r-pill); transition: width 0.9s var(--ease-spring); }
.sub-constitution-list { display: flex; flex-direction: column; gap: 8px; }
.sub-c-item { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; color: var(--text-1); }
.sub-c-rank { width: 22px; height: 22px; border-radius: 50%; background: var(--gold-tint); color: var(--gold-dark); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; }
.analysis-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-strong); }
.analysis-time { font-size: 0.72rem; color: var(--text-3); }
.report-thumb-small { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; border: 1px solid var(--border); }

/* 舌象特征 */
.tongue-features { }
.tongue-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tongue-feature-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 12px 14px; box-shadow: var(--shadow-xs);
}
.feature-label { font-size: 0.72rem; color: var(--text-3); }
.feature-value { font-size: 0.96rem; font-weight: 700; color: var(--text-1); margin-top: 2px; }

/* 辨证分析 / 体质详解 / 文本块 */
.analysis-content { }
.analysis-text { font-size: 0.88rem; color: var(--text-2); line-height: 1.8; }
.analysis-text p { margin-bottom: 8px; }
.constitution-detail-section { }
.formation-reason-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px; box-shadow: var(--shadow-xs); margin-top: 12px;
}
.formation-reason-sub { background: var(--surface-2); }
.formation-text { font-size: 0.84rem; color: var(--text-2); line-height: 1.7; }

/* 健康指标 */
.health-indicators { display: flex; flex-direction: column; gap: 12px; }
.health-item { display: flex; align-items: center; gap: 12px; }
.health-icon {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px;
  background: var(--primary-tint); display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.health-info { flex: 1; }
.health-name { font-size: 0.84rem; color: var(--text-1); font-weight: 600; }
.health-bar { height: 8px; border-radius: var(--r-pill); background: var(--border-strong); overflow: hidden; margin-top: 6px; }
.health-bar-fill { height: 100%; border-radius: var(--r-pill); transition: width 0.9s var(--ease-spring); }
.health-bar-fill.good { background: linear-gradient(135deg, #C9A961, #E8D5A0); }
.health-bar-fill.fair { background: var(--grad-gold); }
.health-bar-fill.poor { background: var(--grad-primary); }
.health-level { font-size: 0.74rem; color: var(--text-3); font-weight: 600; min-width: 36px; text-align: right; }

/* 疾病风险矩阵 */
.risk-matrix-section { }
.risk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.risk-tag {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--shadow-xs); font-size: 0.8rem;
}
.risk-icon { font-size: 1rem; }
.risk-name { color: var(--text-1); font-weight: 600; flex: 1; }
.risk-level { font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: var(--r-pill); }
.risk-normal .risk-level { background: var(--secondary-tint); color: var(--secondary-dark); }
.risk-low .risk-level { background: rgba(108,140,213,0.14); color: var(--info); }
.risk-medium .risk-level { background: rgba(194,135,63,0.16); color: var(--warning); }
.risk-high .risk-level { background: rgba(178,58,82,0.16); color: var(--danger); }

/* =================================================
   海派小儿推拿
   ================================================= */
.tuina-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-md); }
.tuina-section .report-section-title { margin-bottom: 14px; }
.tuina-approach-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px; margin-bottom: 14px;
}
.tuina-approach-title { font-family: var(--font-display); font-size: 0.96rem; font-weight: 700; color: var(--text-1); margin-bottom: 8px; }
.tuina-approach-const { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tuina-const-badge { background: var(--grad-primary); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 3px 12px; border-radius: var(--r-pill); }
.tuina-const-name { font-size: 0.9rem; font-weight: 700; color: var(--text-1); }
.tuina-const-sep { color: var(--text-3); }
.tuina-const-sub { color: var(--secondary-dark); font-weight: 600; font-size: 0.86rem; }
.tuina-approach-text { font-size: 0.84rem; color: var(--text-2); line-height: 1.7; }
.tuina-approach-detail { font-size: 0.8rem; color: var(--text-2); line-height: 1.7; margin-top: 8px; }
.tuina-steps-title { font-size: 0.86rem; font-weight: 700; color: var(--text-1); margin: 14px 0 10px; display: flex; align-items: center; gap: 8px; }
.tuina-steps { display: flex; flex-direction: column; gap: 10px; }
.tuina-step {
  display: flex; gap: 12px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-xs);
}
.tuina-step-num {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary-tint); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.82rem;
}
.tuina-step-body { flex: 1; }
.tuina-step-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tuina-step-name { font-size: 0.9rem; font-weight: 700; color: var(--text-1); }
.tuina-step-count { font-size: 0.72rem; font-weight: 700; color: var(--primary-dark); background: var(--primary-tint); padding: 2px 10px; border-radius: var(--r-pill); }
.tuina-step-location { font-size: 0.72rem; color: var(--secondary-dark); }
.tuina-step-operation, .tuina-step-effect, .tuina-step-note { font-size: 0.78rem; color: var(--text-2); line-height: 1.6; margin-top: 4px; }
.tuina-step-effect { color: var(--secondary-dark); }
/* v15 推拿手法 chip（仅名称+次数，文本框排列） */
.tuina-steps-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tuina-step-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 7px 12px; }
.tuina-step-chip .tuina-step-name { font-size: 0.84rem; }
.tuina-step-chip .tuina-step-count { font-size: 0.7rem; }
.tuina-schedule { margin-top: 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px; }
.tuina-schedule-title { font-size: 0.86rem; font-weight: 700; color: var(--text-1); margin-bottom: 10px; }
.tuina-schedule-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-strong); font-size: 0.82rem; }
.tuina-schedule-item:last-child { border-bottom: none; }
.tuina-schedule-label { color: var(--text-3); }
.tuina-schedule-value { margin-left: auto; color: var(--text-1); font-weight: 600; }
.tuina-schedule-icon { color: var(--primary); }
.tuina-cautions { margin-top: 14px; }
.tuina-cautions-title { font-size: 0.84rem; font-weight: 700; color: var(--text-1); margin-bottom: 8px; }
.tuina-cautions-list { display: flex; flex-direction: column; gap: 6px; }
.tuina-cautions-list li { font-size: 0.8rem; color: var(--text-2); line-height: 1.6; padding-left: 16px; position: relative; }
.tuina-cautions-list li::before { content: '·'; position: absolute; left: 4px; color: var(--primary); font-weight: 700; }
.tuina-disclaimer { display: flex; gap: 10px; margin-top: 14px; padding: 12px 14px; background: var(--gold-tint); border-radius: var(--r-md); }
.tuina-disclaimer-icon { font-size: 1rem; }
.tuina-disclaimer-text { font-size: 0.76rem; color: var(--gold-dark); line-height: 1.6; }
.tuina-label { color: var(--text-3); }
.tuina-reference { font-size: 0.74rem; color: var(--text-3); margin-top: 10px; line-height: 1.6; }

/* 症状标签（推拿板块内） */
.symptom-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.symptom-tag { display: inline-block; padding: 4px 12px; background: var(--primary-tint); border: 1px solid var(--border); border-radius: var(--r-pill); font-size: 0.76rem; color: var(--primary-dark); font-weight: 600; }

/* =================================================
   生长发育评估
   ================================================= */
.growth-section { }
.growth-reference { font-size: 0.74rem; color: var(--text-3); margin-bottom: 12px; line-height: 1.6; }
.g-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.g-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px; box-shadow: var(--shadow-xs);
}
.g-card-full { grid-column: 1 / -1; }
.g-card-title { font-size: 0.84rem; font-weight: 700; color: var(--text-1); margin-bottom: 10px; }
.g-card-main { display: flex; align-items: baseline; gap: 10px; }
.g-value { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--text-1); }
.g-value small { font-size: 0.7rem; font-weight: 600; margin-left: 2px; color: var(--text-3); }
.g-badge { margin-left: auto; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: var(--r-pill); }
.g-status-ok { background: var(--secondary-tint); color: var(--secondary-dark); }
.g-status-low { background: rgba(194,135,63,0.16); color: var(--warning); }
.g-status-high { background: rgba(178,58,82,0.16); color: var(--danger); }
.g-status-pending { background: rgba(201,169,97,.15); color: #C9A961; border:1px solid rgba(201,169,97,.4); }
.g-percentile { font-size: 0.78rem; color: var(--text-2); margin-top: 8px; }
.g-percentile strong { color: var(--primary-dark); font-family: var(--font-display); }
.g-range-line { font-size: 0.72rem; color: var(--text-3); margin-top: 4px; line-height: 1.5; }
.g-note { font-size: 0.76rem; color: var(--text-2); margin-top: 8px; line-height: 1.6; }
.g-obesity { margin-top: 8px; padding: 10px 12px; border-radius: var(--r-sm); font-size: 0.78rem; line-height: 1.6; font-weight: 600; }
.g-obesity-mild { background: rgba(194,135,63,0.14); color: var(--warning); }
.g-obesity-moderate { background: rgba(178,58,82,0.14); color: var(--danger); }
.g-obesity-severe { background: rgba(178,58,82,0.2); color: var(--danger); }
.g-gen { font-size: 0.82rem; color: var(--text-1); line-height: 1.7; }
.g-gen-range { font-size: 0.78rem; color: var(--text-2); margin-top: 8px; }
.g-gen-range strong { color: var(--secondary-dark); font-family: var(--font-display); }

/* 健长养护建议（身高偏矮时展示） */
.growth-care { margin-top: 14px; background: linear-gradient(135deg, rgba(201,169,97,0.10), rgba(130,48,82,0.05)); border: 1px solid rgba(201,169,97,0.35); border-radius: var(--r-lg); padding: 16px; }
.growth-care-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 10px; }
.growth-care-intro { font-size: 0.8rem; color: var(--text-2); line-height: 1.7; margin-bottom: 12px; }
.growth-care-list { display: flex; flex-direction: column; gap: 10px; }
.growth-care-item { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border-radius: var(--r-md); padding: 10px 12px; }
.growth-care-icon { font-size: 1.15rem; line-height: 1.4; flex-shrink: 0; }
.growth-care-body { flex: 1; min-width: 0; }
.growth-care-item-title { font-size: 0.82rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 3px; }
.growth-care-item-text { font-size: 0.78rem; color: var(--text-2); line-height: 1.65; }

/* =================================================
   中药敷贴 / 瑶浴 / 小儿艾灸（同级 tcm-section）
   ================================================= */
.tcm-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-md); }
.tcm-section .report-section-title { margin-bottom: 12px; }
.tcm-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--text-1); }
.tcm-sub { font-size: 0.76rem; color: var(--text-3); margin-top: 4px; }
.rx-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rx-item {
  background: var(--secondary-tint); color: var(--secondary-dark);
  padding: 5px 12px; border-radius: var(--r-pill); font-size: 0.78rem; font-weight: 600;
}
.rx-item em { font-style: normal; opacity: 0.85; font-weight: 500; margin-left: 2px; }
.tcm-block { font-size: 0.82rem; color: var(--text-2); line-height: 1.7; margin-top: 12px; }
.tcm-label { color: var(--text-1); font-weight: 700; }
.moxa-points { display: flex; flex-direction: column; gap: 10px; }
.moxa-point { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; }
.moxa-point-head { display: flex; align-items: center; gap: 10px; }
.moxa-point-name { font-size: 0.9rem; font-weight: 700; color: var(--text-1); }
.moxa-point-count { margin-left: auto; font-size: 0.74rem; font-weight: 700; color: var(--primary-dark); background: var(--primary-tint); padding: 3px 10px; border-radius: var(--r-pill); }
.moxa-point-usage { font-size: 0.78rem; color: var(--text-2); line-height: 1.6; margin-top: 6px; }
/* v14 培元脐灸 */
.moxa-umbilical { display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 16px; }
.moxa-principle, .moxa-formula { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; }
.moxa-principle-val { color: var(--text-1); font-weight: 600; }
.moxa-formula-val { color: var(--primary-dark); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em; background: var(--primary-tint); padding: 3px 12px; border-radius: var(--r-pill); }

/* v18 培元脐灸示意图（位于文字说明下方） — v20 详见下方独立规则（flex 居中） */

/* v18 敷贴/瑶浴联排布局：产品信息在左 + 产品图在右（图片走金边圆角，美观） */
.tcm-with-product .tcm-product-row { display: flex; gap: 16px; align-items: flex-start; }
.tcm-with-product .tcm-product-info { flex: 1 1 auto; min-width: 0; }
.tcm-with-product .tcm-product-img { flex: 0 0 132px; width: 132px; display: flex; align-items: center; justify-content: center; }
.tcm-with-product .tcm-product-img img { width: 132px; height: 132px; object-fit: contain; background: #fff; border: 1px solid var(--primary-tint); border-radius: var(--r-md); padding: 6px; box-shadow: var(--shadow-sm); }
@media (max-width: 480px) {
  .tcm-with-product .tcm-product-row { flex-direction: column; }
  .tcm-with-product .tcm-product-img { width: 100%; flex-basis: auto; }
  .tcm-with-product .tcm-product-img img { width: 100%; max-width: 220px; height: auto; }
  .moxa-figure img { max-width: 100%; max-height: 220px; }
}

/* v18 调理方案统一配图（推拿服务 + 草本敷灸） */
.regimen-figure { margin-top: 18px; text-align: center; padding-top: 14px; border-top: 1px dashed var(--border); }
.regimen-figure img { max-width: 100%; border-radius: var(--r-md); box-shadow: var(--shadow-sm); border: 1px solid var(--primary-tint); }

/* v19 调理方案独立 banner section（不依赖 regimen 长度，始终显示） */
.regimen-banner-section { margin-top: 22px; padding: 18px; background: var(--surface); border: 1px solid var(--primary-tint); border-radius: var(--r-lg); box-shadow: var(--shadow-md); text-align: center; }
.regimen-banner-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 12px; letter-spacing: 0.04em; }
.regimen-banner-title::before, .regimen-banner-title::after { content: '✦'; color: var(--primary); margin: 0 8px; font-size: 0.85rem; vertical-align: middle; }
/* v20：图强制居中（margin:0 auto 配合 display:block 才能在所有浏览器稳定居中） */
.regimen-banner-figure { display: flex; justify-content: center; align-items: center; }
.regimen-banner-figure img { display: block; margin: 0 auto; width: 100%; max-width: 640px; border-radius: var(--r-md); box-shadow: var(--shadow-sm); border: 1px solid var(--primary-tint); background: #fff; }

/* v20：培元脐灸图也强制居中 */
.moxa-figure { display: flex; justify-content: center; align-items: center; margin-top: 14px; }
.moxa-figure img { display: block; margin: 0 auto; max-width: 78%; max-height: 280px; border-radius: var(--r-md); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }

/* v20：产品图在联排布局中居中显示（垂直方向） */
.tcm-with-product .tcm-product-img { display: flex; align-items: center; justify-content: center; }
.tcm-with-product .tcm-product-img img { display: block; }

/* =================================================
   病因 / 方药（复用 tcm-section 设计令牌：珍珠暖白底 + 酒红标题 + 香槟金分隔线）
   ================================================= */
.etiology-section, .prescription-section {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-md);
}
.etiology-section .report-section-title,
.prescription-section .report-section-title { margin-bottom: 12px; color: #823052; }
.etiology-section .report-section-title::after,
.prescription-section .report-section-title::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* 病因板块 */
.etiology-items { display: flex; flex-direction: column; gap: 14px; }
.etiology-item {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px;
}
.etiology-symptom {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text-1); margin-bottom: 8px;
}
.etiology-symptom-icon { color: #823052; }
.etiology-cause { font-size: 0.84rem; color: var(--text-2); line-height: 1.7; }
.etiology-label { color: #823052; font-weight: 700; }
.etiology-links { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; font-size: 0.76rem; }
.etiology-tag { background: var(--gold-tint); color: var(--gold-dark); padding: 2px 10px; border-radius: var(--r-pill); font-weight: 700; }
.etiology-link-text { color: var(--text-2); }
.etiology-summary {
  margin-top: 14px; font-size: 0.82rem; color: var(--text-1); line-height: 1.7;
  padding: 10px 14px; background: var(--gold-tint); border-radius: var(--r-md);
}
.etiology-reference { margin-top: 10px; font-size: 0.74rem; color: var(--text-3); line-height: 1.6; }

/* 方药板块 */
.prescription-items { display: flex; flex-direction: column; gap: 14px; }
.prescription-item {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px;
}
.prescription-name {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; color: var(--text-1); margin-bottom: 6px;
}
.prescription-icon { color: #823052; }
.prescription-sub { font-size: 0.74rem; color: var(--text-3); margin-top: 6px; }
.prescription-item .rx-list { margin-top: 8px; }
.prescription-summary {
  margin-top: 14px; font-size: 0.82rem; color: var(--text-1); line-height: 1.7;
  padding: 10px 14px; background: var(--gold-tint); border-radius: var(--r-md);
}

/* 症状调理方案板块 */
.regimen-section {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-md);
}
.regimen-section .report-section-title { margin-bottom: 12px; color: #823052; }
.regimen-section .report-section-title::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.regimen-cards { display: flex; flex-direction: column; gap: 14px; }
.regimen-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px;
}
.regimen-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.regimen-name {
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; color: var(--text-1);
}
.regimen-sym {
  font-size: 0.72rem; color: var(--gold-dark); background: var(--gold-tint);
  padding: 2px 10px; border-radius: var(--r-pill); font-weight: 700;
}
.regimen-price { margin-left: auto; font-family: var(--font-display); font-weight: 800; color: var(--danger); font-size: 1.05rem; letter-spacing: 0.02em; }
.regimen-row { display: flex; gap: 10px; margin-top: 8px; align-items: flex-start; }
.regimen-label {
  flex-shrink: 0; min-width: 64px; font-size: 0.78rem; color: #823052; font-weight: 700; padding-top: 1px;
}
.regimen-text { flex: 1; font-size: 0.82rem; color: var(--text-2); line-height: 1.7; }

/* =================================================
   历史报告页
   ================================================= */
.history-body { padding: 4px 18px 12px; display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 2; }
.history-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px; box-shadow: var(--shadow-sm);
  display: flex; gap: 12px; align-items: center; transition: var(--transition);
}
.history-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.history-thumb { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 14px; object-fit: cover; border: 1px solid var(--border); }
.history-info { flex: 1; min-width: 0; }
.history-date { font-size: 0.78rem; color: var(--text-3); }
.history-constitution { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text-1); margin-top: 2px; }
.history-score { font-size: 0.8rem; color: var(--primary-dark); font-weight: 600; }
.history-arrow { color: var(--text-3); }
.history-del-btn { position: absolute; top: 8px; right: 36px; width: 32px; height: 32px; border: none; background: rgba(196,30,58,0.08); color: #C41E3A; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: opacity .2s, background .2s; }
.history-card { position: relative; }
.history-card:hover .history-del-btn { opacity: 1; }
.history-del-btn:hover { background: rgba(196,30,58,0.18); }
@media (max-width: 480px) { .history-del-btn { opacity: 0.7; right: 32px; } }
.history-empty { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 3rem; }
.empty-hint { font-size: 0.86rem; color: var(--text-3); margin-top: 12px; }
.history-footer { padding: 12px 18px 30px; position: relative; z-index: 2; }

/* =================================================
   按钮通用
   ================================================= */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: var(--r-pill);
  background: var(--grad-primary); color: #fff; font-weight: 700; font-size: 0.96rem;
  box-shadow: var(--shadow-gold); transition: var(--transition);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(130,48,82,0.30); }
.btn-primary:active { transform: scale(0.97); }
.btn-primary.full-width { width: 100%; }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: var(--r-pill);
  background: var(--surface); color: var(--primary-dark);
  border: 1px solid var(--border); font-weight: 700; font-size: 0.96rem;
  transition: var(--transition);
}
.btn-secondary:hover { background: var(--primary-tint); transform: translateY(-1px); }
.btn-secondary:active { transform: scale(0.97); }
.btn-secondary.full-width { width: 100%; }

/* =================================================
   弹窗 MODAL（登录 / 健康信息 / 确认）
   ================================================= */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(43,42,51,0.32); backdrop-filter: blur(6px);
}
.modal-overlay.active { display: flex; animation: overlayIn 0.25s ease-out; }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content {
  width: 100%; max-width: 420px; background: var(--surface);
  border-radius: var(--r-xl); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); padding: 24px;
  animation: modalIn 0.4s var(--ease-spring); max-height: 88vh; overflow-y: auto;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(0.96); } to { opacity: 1; transform: none; } }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.modal-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--text-1); }
.modal-close { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-3); transition: var(--transition); }
.modal-close:hover { background: var(--primary-tint); color: var(--primary-dark); }

/* 三端同步成功弹窗 */
.sync-check {
  width: 56px; height: 56px; border-radius: 50%; margin: 4px auto 12px;
  background: var(--success); color: #fff; font-size: 1.8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(110,138,107,0.35);
}
.sync-ends { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.sync-end { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--gold-tint); border: 1px solid var(--gold); border-radius: 14px; }
.sync-end-ico { font-size: 1.3rem; }
.sync-end-t { display: flex; flex-direction: column; line-height: 1.3; }
.sync-end-t b { color: var(--text-1); font-size: 0.92rem; }
.sync-end-t small { color: var(--text-secondary); font-size: 0.74rem; }
.sync-end-ok { margin-left: auto; color: var(--success); font-weight: 700; font-size: 0.78rem; }

/* 登录/注册 */
.auth-form-panel { display: none; }
.auth-form-panel.active { display: block; animation: fadeSlideUp 0.3s ease-out; }
.auth-intro { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 12px 14px; background: var(--primary-tint); border-radius: var(--r-md); }
.auth-intro-icon { font-size: 1.4rem; }
.auth-intro-text { font-size: 0.82rem; color: var(--primary-dark); font-weight: 600; }
.auth-field { margin-bottom: 14px; }
.auth-field-row { display: flex; gap: 12px; margin-bottom: 14px; }
.auth-field-row .auth-field { flex: 1 1 0; min-width: 0; margin-bottom: 0; }
.auth-field label { display: block; font-size: 0.82rem; color: var(--text-2); font-weight: 600; margin-bottom: 7px; }
.auth-field input, .auth-field select {
  width: 100%; padding: 13px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text-1);
  transition: var(--transition); outline: none;
}
.auth-field input:focus, .auth-field select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-tint); background: var(--surface); }
.auth-field input::placeholder { color: var(--text-3); }
.auth-field-code .code-input-wrap { display: flex; gap: 10px; align-items: stretch; }
.auth-field-code input { flex: 1; }
.btn-send-code {
  flex: 0 0 auto; padding: 0 16px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--gold); color: var(--gold-dark);
  font-size: 0.8rem; font-weight: 700; transition: var(--transition); white-space: nowrap;
}
.btn-send-code:hover { background: var(--gold-tint); }
.btn-send-code:disabled { opacity: 0.55; cursor: not-allowed; }
.auth-error { color: var(--danger); font-size: 0.78rem; min-height: 18px; margin-bottom: 6px; }
.auth-benefits { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-strong); display: flex; flex-direction: column; gap: 8px; }
.auth-benefits p { font-size: 0.78rem; color: var(--text-2); }
.auth-benefits strong { color: var(--primary-dark); }
.auth-tabs, .auth-tab { display: none; }

/* 到期提示 */
.expire-notice { text-align: center; padding: 10px 0; }
.expire-icon { font-size: 2.4rem; }
.expire-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--text-1); margin-top: 8px; }
.expire-desc { font-size: 0.84rem; color: var(--text-2); margin-top: 8px; line-height: 1.6; }
.expire-wechat { margin-top: 12px; }
.expire-wechat-label { font-size: 0.78rem; color: var(--text-3); }
.expire-wechat-id { font-size: 0.92rem; font-weight: 700; color: var(--primary-dark); }

/* 健康信息弹窗 */
.health-modal { max-width: 440px; }
.health-subtitle { font-size: 0.78rem; color: var(--text-3); margin-bottom: 16px; }
.health-actions { display: flex; gap: 12px; margin-top: 8px; }
.health-actions .btn-secondary { flex: 0 0 38%; }
.health-actions .btn-primary { flex: 1; }
.symptom-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.symptom-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: var(--surface-2);
  font-size: 0.82rem; color: var(--text-2); cursor: pointer; transition: var(--transition);
}
.symptom-chip input { display: none; }
.symptom-chip .chip-label { font-weight: 600; }
.symptom-chip:has(input:checked) { background: var(--primary-tint); border-color: var(--primary); color: var(--primary-dark); }

/* 自定义确认弹窗 */
#confirm-modal .modal-content { text-align: left; }
#confirm-message { padding: 8px 0 16px; color: var(--text-2); font-size: 0.9rem; }
#confirm-modal div[style*="flex"] { display: flex; gap: 12px; justify-content: center; }
#confirm-modal .btn-secondary, #confirm-modal .btn-primary { flex: 1; }

/* =================================================
   Toast
   ================================================= */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--text-1); color: #fff; padding: 12px 22px; border-radius: var(--r-pill);
  font-size: 0.84rem; font-weight: 600; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: all 0.3s var(--ease-spring); z-index: 300; max-width: 80%;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =================================================
   图片放大层 (Lightbox)
   ================================================= */
.img-lightbox {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  background: rgba(40, 18, 30, 0.92);
  backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease;
  padding: 24px;
}
.img-lightbox.active { opacity: 1; pointer-events: auto; }
.img-lightbox-inner {
  position: relative; max-width: 92vw; max-height: 86vh;
  display: flex; flex-direction: column; align-items: center;
}
.img-lightbox-inner img {
  max-width: 92vw; max-height: 78vh;
  border-radius: 16px;
  border: 1px solid var(--gold-light);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  background: #fff;
  animation: lightboxPop 0.3s var(--ease-spring);
}
@keyframes lightboxPop {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.img-lightbox-close {
  position: absolute; top: -14px; right: -14px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--wine, #823052); color: #fff;
  border: 2px solid var(--gold-light);
  font-size: 1rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  transition: transform 0.2s var(--ease-spring);
}
.img-lightbox-close:hover { transform: scale(1.1) rotate(90deg); }
.img-lightbox-hint {
  margin-top: 14px; color: var(--gold-light);
  font-size: 0.76rem; letter-spacing: 0.18em; opacity: 0.85;
}
/* 报告缩略图可点击提示 */
.report-thumb-small { cursor: zoom-in; transition: transform 0.25s var(--ease-spring); }
.report-thumb-small:hover { transform: scale(1.08); }
.exam-image-wrap img { cursor: zoom-in; }

/* =================================================
   响应式
   ================================================= */
@media (min-width: 480px) {
  .app { min-height: 100vh; }
  .bg-ornament { border-radius: 0; }
}
/* 大屏（平板/桌面，≥768px）：放大 .app 宽度，减少两侧留白 */
@media (min-width: 768px) {
  .app { max-width: 800px; box-shadow: 0 0 80px rgba(130,48,82,0.10); }
  .bg-ornament { border-radius: 0; max-width: 800px; }
}
@media (max-width: 360px) {
  .feature-cards { grid-template-columns: 1fr; }
  .g-grid, .tongue-feature-grid, .risk-grid, .guide-grid { grid-template-columns: 1fr; }
  .hero-lotus { flex-basis: 76px; height: 76px; }
}

/* 尊重减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* =================================================
   分享弹窗 SHARE MODAL（JS 动态注入）
   ================================================= */
.share-modal-overlay {
  position: fixed; inset: 0; z-index: 110; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(43,42,51,0.34); backdrop-filter: blur(6px);
}
.share-modal-overlay.active { display: flex; animation: overlayIn 0.25s ease-out; }
.share-modal-box {
  width: 100%; max-width: 360px; background: var(--surface);
  border-radius: var(--r-xl); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); padding: 22px;
  animation: modalIn 0.4s var(--ease-spring);
}
.share-modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.share-modal-header h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--text-1); }
.share-modal-close {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--text-3);
  transition: var(--transition);
}
.share-modal-close:hover { background: var(--primary-tint); color: var(--primary-dark); }
.share-modal-body { min-height: 180px; display: flex; align-items: center; justify-content: center; }
.share-loading { text-align: center; color: var(--text-2); font-size: 0.84rem; }
.share-spinner {
  width: 38px; height: 38px; margin: 0 auto 12px; border-radius: 50%;
  border: 3px solid var(--primary-tint); border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.share-modal-footer { text-align: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-strong); }
.share-modal-footer p { font-size: 0.78rem; color: var(--text-3); }
.share-qr-container { padding: 8px; }
.share-qr-img { width: 200px; height: 200px; border-radius: var(--r-md); border: 1px solid var(--border); }

/* 健康信息必填星号 */
.req-star { color: var(--primary); font-weight: 700; margin-left: 2px; }

/* =================================================
   历史检测对比板块（同名小朋友历次记录对照）
   ================================================= */
.history-comparison-section { margin-top: 18px; }
.hist-intro {
  font-size: 0.8rem; color: var(--text-3); line-height: 1.6;
  margin: 10px 2px 12px; padding-left: 10px; border-left: 3px solid var(--primary-tint);
}
.hist-list { display: flex; flex-direction: column; gap: 10px; }
.hist-item {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 12px 14px; transition: var(--transition);
}
.hist-item:first-child {
  border-color: var(--primary); box-shadow: 0 4px 16px rgba(130,48,82,0.12);
}
.hist-item-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.hist-date { font-size: 0.78rem; color: var(--text-2); font-weight: 600; }
.hist-score {
  font-size: 0.74rem; color: var(--text-3); background: var(--surface);
  padding: 2px 8px; border-radius: var(--r-pill); border: 1px solid var(--border);
}
.hist-constitution { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.hist-main-badge {
  font-size: 0.8rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 4px 12px; border-radius: var(--r-pill);
}
.hist-secondary-badge {
  font-size: 0.78rem; font-weight: 600; color: var(--primary-dark);
  background: rgba(201,169,97,0.14); border: 1px solid #C9A961;
  padding: 4px 12px; border-radius: var(--r-pill);
}
.hist-symptoms { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--text-2); }
.hist-symptoms-label { color: var(--text-3); }
.hist-symptom-chip {
  background: var(--surface); border: 1px solid var(--border);
  padding: 3px 10px; border-radius: var(--r-pill); font-weight: 600; color: var(--text-1);
}
.hist-metrics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.hist-metric-chip {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  color: var(--wine, #823052);
  background: rgba(130, 48, 82, 0.07);
  border: 1px solid rgba(201, 169, 97, 0.5);
}
.hist-empty { color: var(--text-3); font-style: italic; }
.hist-more { text-align: center; font-size: 0.74rem; color: var(--text-3); margin-top: 10px; }

/* ============================================================
   MVP：宝妈端（mama.html / mama.js）专属样式
   ============================================================ */
.mama-app { display: flex; flex-direction: column; max-width: 480px; margin: 0 auto; width: 100%; background: var(--bg); }
/* 桌面端（≥768px）保持手机宽度，不被通用 .app 的 800px 规则撑宽，确保 C 端始终呈现手机分辨率 */
@media (min-width: 768px) {
  .mama-app { max-width: 420px; box-shadow: 0 0 60px rgba(130,48,82,0.10); }
}
.mama-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 10px; position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(251,247,242,0.9));
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}
.mama-brand { display: flex; align-items: center; gap: 10px; }
.mama-brand .brand-icon { width: 38px; height: 38px; }
.mama-brand .brand-icon img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.mama-brand .brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.mama-brand .brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--primary); }
.mama-brand .brand-tagline { font-size: 0.66rem; color: var(--text-3); }
.mama-brand .card-seal { width: 26px; height: 26px; font-size: 14px; margin-left: 4px; }
.mama-user { display: flex; align-items: center; gap: 8px; }
.mama-phone { font-size: 0.8rem; color: var(--text-2); }
.mama-mini-btn { border: none; background: transparent; color: var(--primary); font-size: 0.8rem; padding: 4px 6px; }

.mama-content { flex: 1; padding: 16px 16px 24px; overflow-y: auto; }

.mama-tabbar {
  display: flex; border-top: 1px solid var(--border); background: var(--surface);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); position: sticky; bottom: 0; z-index: 20;
}
.mama-tab {
  flex: 1; border: none; background: transparent; display: flex; flex-direction: column;
  align-items: center; gap: 2px; padding: 6px 0; color: var(--text-3); font-size: 0.68rem; cursor: pointer;
}
.mama-tab .tab-ico { font-size: 1.2rem; }
.mama-tab.active { color: var(--primary); font-weight: 700; }

.mama-section { margin-bottom: 18px; }
.mama-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mama-h2 { font-family: var(--font-display); font-size: 1.15rem; color: var(--text-1); margin: 0; }

/* 金色按钮（与酒红主按钮呼应） */
.btn-gold {
  padding: 14px 22px; border-radius: var(--r-pill); border: none; cursor: pointer;
  background: var(--grad-gold, linear-gradient(135deg, #E6D2A8, #C9A961));
  color: #5A3A12; font-weight: 700; font-size: 0.96rem; box-shadow: var(--shadow-gold, 0 8px 24px rgba(201,169,97,0.35));
}
.btn-gold.full-width { width: 100%; }
.btn-gold.btn-sm { padding: 7px 14px; font-size: 0.8rem; }

.mama-empty { text-align: center; padding: 40px 20px; color: var(--text-3); }
.mama-empty .empty-icon { font-size: 2.4rem; margin-bottom: 10px; }
.mama-empty p { margin-bottom: 14px; font-size: 0.86rem; }

/* 宝贝卡片列表 */
.child-card-list { display: flex; flex-direction: column; gap: 10px; }
.child-card {
  display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg); cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform 0.15s ease;
}
.child-card:active { transform: scale(0.98); }
.child-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--grad-primary);
  color: #fff; font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.child-info { flex: 1; }
.child-name { font-size: 1rem; font-weight: 700; color: var(--text-1); }
.child-gender { font-size: 0.74rem; color: var(--gold-dark); font-weight: 600; margin-left: 6px; }
.child-sub { font-size: 0.74rem; color: var(--text-3); margin-top: 2px; }
.child-arrow { color: var(--text-3); font-size: 1.4rem; }

/* 通用卡片 */
.mama-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow-md); }
.mama-card-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 12px; position: relative; padding-left: 12px; }
.mama-card-title::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 4px; background: var(--grad-gold); }
.field-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 0.9rem; }
.field-row:last-child { border-bottom: none; }
.field-row span { color: var(--text-3); }
.field-row b { color: var(--text-1); font-weight: 600; }
.baseline-row { display: flex; gap: 12px; }
.baseline-row label { flex: 1; font-size: 0.8rem; color: var(--text-3); display: flex; flex-direction: column; gap: 6px; }
.baseline-row input { padding: 10px; border: 1px solid var(--border); border-radius: var(--r-md); font-size: 0.95rem; background: var(--bg); }

.mama-form-fields { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.mama-form-fields label { font-size: 0.82rem; color: var(--text-2); display: flex; flex-direction: column; gap: 6px; }
.mama-form-fields textarea, .mama-form-fields input {
  padding: 10px; border: 1px solid var(--border); border-radius: var(--r-md);
  font-size: 0.9rem; background: var(--bg); font-family: inherit; resize: vertical; min-height: 44px;
}

/* 到店码 */
.share-code-box { text-align: center; }
.share-code-text {
  display: inline-block; font-family: ui-monospace, monospace; font-size: 1.6rem; font-weight: 800;
  letter-spacing: 4px; color: var(--primary); background: var(--gold-tint);
  padding: 10px 18px; border-radius: var(--r-md); border: 1px dashed var(--gold); margin-bottom: 12px;
}
.share-code-qr img { width: 180px; height: 180px; border-radius: var(--r-md); border: 1px solid var(--border); }
.share-code-tip { font-size: 0.76rem; color: var(--text-3); margin-top: 10px; }

.mama-danger { color: #B4452F; border-color: rgba(180,69,47,0.4); }

/* 报告卡片 */
.report-card-list { display: flex; flex-direction: column; gap: 10px; }
.report-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px; box-shadow: var(--shadow-sm); cursor: pointer; }
.report-card:active { transform: scale(0.99); }
.rc-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rc-const { font-family: var(--font-display); font-weight: 700; color: var(--primary); font-size: 1rem; }
.rc-tag { font-size: 0.66rem; color: var(--gold-dark); background: var(--gold-tint); padding: 2px 8px; border-radius: 999px; border: 1px solid var(--gold); }
.rc-date { margin-left: auto; font-size: 0.72rem; color: var(--text-3); }
.rc-child { font-size: 0.78rem; color: var(--text-2); margin-top: 6px; }
.rc-done { font-size: 0.78rem; color: var(--primary); margin-top: 6px; background: var(--gold-tint); padding: 6px 10px; border-radius: var(--r-md); }
.rc-price { font-size: 0.82rem; color: var(--text-2); margin-top: 6px; }
.rc-price b { color: var(--primary); font-size: 0.95rem; }
.rc-price-old { color: var(--text-3); text-decoration: line-through; margin-left: 4px; font-size: 0.76rem; }
.rc-price-save { color: var(--red-dim); font-weight: 700; margin-left: 4px; font-size: 0.76rem; }
.rc-more { font-size: 0.74rem; color: var(--text-3); margin-top: 8px; text-align: right; }

/* 报告详情：到店项目价格卡片 */
.price-card { margin-top: 12px; border-top: 1px dashed var(--gold); padding-top: 10px; }
.pc-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; color: var(--text-2); padding: 3px 0; }
.pc-row.pc-save { color: var(--red-dim); font-weight: 600; }
.pc-row.pc-final { font-size: 1.1rem; font-weight: 800; color: var(--primary); }

/* 宝妈端：生长发育评估（避坑 [object Object]） */
.g-rows { display: flex; flex-direction: column; gap: 8px; }
.g-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 8px 12px; background: var(--bg); border-radius: var(--r-md); border: 1px solid var(--border); }
.g-row-label { color: var(--text-3); font-size: 0.85rem; }
.g-row-main { font-family: var(--font-display); font-size: 0.96rem; color: var(--text-1); display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.g-row-main b { font-size: 1.15rem; color: var(--primary); font-weight: 800; }
.g-pct { font-size: 0.78rem; color: var(--secondary-dark); background: var(--secondary-tint); padding: 2px 8px; border-radius: 999px; }
.g-status { font-size: 0.72rem; padding: 2px 8px; border-radius: 999px; background: var(--gold-tint); color: var(--primary); border: 1px solid var(--gold); }
.g-note { font-size: 0.8rem; color: var(--text-2); line-height: 1.6; margin-top: 6px; }
.g-note-warn { color: var(--danger); background: rgba(178,58,82,0.08); padding: 8px 10px; border-radius: var(--r-sm); }
.g-gh { margin-top: 12px; padding: 10px 12px; background: linear-gradient(135deg, rgba(201,169,97,0.12), rgba(130,48,82,0.04)); border: 1px solid var(--gold); border-radius: var(--r-md); }
.g-gh-title { font-family: var(--font-display); font-weight: 700; color: var(--primary); font-size: 0.88rem; margin-bottom: 4px; }
.g-gh-text { font-size: 0.8rem; color: var(--text-2); line-height: 1.6; }
.g-care { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--gold); }
.g-care-title { font-family: var(--font-display); font-weight: 700; color: var(--primary); font-size: 0.92rem; margin-bottom: 6px; }
.g-care-intro { font-size: 0.78rem; color: var(--text-2); line-height: 1.6; margin-bottom: 8px; }
.g-care-list { display: flex; flex-direction: column; gap: 8px; }
.g-care-item { display: flex; gap: 10px; padding: 8px 10px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md); }
.g-care-icon { font-size: 1.4rem; flex-shrink: 0; }
.g-care-body { flex: 1; min-width: 0; }
.g-care-item-title { font-weight: 700; color: var(--text-1); font-size: 0.86rem; margin-bottom: 4px; }
.g-care-item-text { font-size: 0.78rem; color: var(--text-2); line-height: 1.6; }

/* 宝妈端：症状调理方案 */
.regimen-list { display: flex; flex-direction: column; gap: 10px; }
.regimen-item { padding: 10px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md); border-left: 3px solid var(--gold); }
.regimen-item .regimen-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.regimen-item .regimen-name { font-family: var(--font-display); font-weight: 700; color: var(--primary); font-size: 0.96rem; }
.regimen-item .regimen-sym { font-size: 0.7rem; color: var(--gold-dark); background: var(--gold-tint); padding: 2px 8px; border-radius: 999px; border: 1px solid var(--gold); }
.regimen-item .regimen-price { margin-left: auto; font-family: var(--font-display); font-weight: 800; color: var(--danger); font-size: 1rem; }
.regimen-line { margin-top: 6px; display: flex; flex-direction: column; gap: 2px; }
.regimen-lbl { font-size: 0.74rem; color: var(--text-3); letter-spacing: 0.02em; }
.regimen-txt { font-size: 0.84rem; color: var(--text-2); line-height: 1.6; white-space: pre-wrap; }

/* 报告详情 */
.report-summary { background: var(--grad-primary); color: #fff; }
.report-summary .rs-main { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; }
.report-summary .rs-score { font-size: 0.85rem; opacity: 0.9; margin-top: 4px; }
.report-summary .rs-summary { font-size: 0.85rem; margin-top: 8px; line-height: 1.5; opacity: 0.95; }
.report-summary .rs-visit { font-size: 0.76rem; margin-top: 8px; opacity: 0.85; }
.done-list { display: flex; flex-wrap: wrap; gap: 8px; }
.done-chip { font-size: 0.8rem; color: var(--primary); background: var(--gold-tint); border: 1px solid var(--gold); padding: 5px 12px; border-radius: 999px; }
.block-body { font-size: 0.86rem; color: var(--text-2); line-height: 1.6; white-space: pre-wrap; }
.mama-foot { text-align: center; font-size: 0.72rem; color: var(--text-3); margin-top: 20px; }

/* 宝妈端积分卡片 */
.mama-points-card { background: linear-gradient(135deg, #fff, #fdf6ee); border-color: var(--gold); }
.mp-title { font-family: var(--font-display); font-weight: 700; color: var(--primary); font-size: 1.05rem; margin-bottom: 12px; }
.mp-row { display: flex; gap: 12px; }
.mp-cell { flex: 1; text-align: center; background: var(--surface-2); border-radius: var(--r-md); padding: 14px 8px; }
.mp-num { font-family: var(--font-display); font-weight: 900; font-size: 2rem; color: var(--primary); line-height: 1; }
.mp-num.mp-today { color: var(--danger); }
.mp-lab { font-size: 0.78rem; color: var(--text-3); margin-top: 6px; }
.mp-recent { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.mp-item { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; }
.mp-name { flex: 1; color: var(--text-2); }
.mp-pts { color: var(--danger); font-weight: 800; font-family: var(--font-display); }
.mp-time { color: var(--text-3); font-size: 0.74rem; }
.mp-empty { color: var(--text-3); font-size: 0.82rem; text-align: center; padding: 6px 0; }

/* 关联弹窗 / 输入 */
.mama-link-quick { padding: 0 4px 4px; }
.mama-link-btn {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer;
  background: linear-gradient(135deg, rgba(201,169,97,0.12), rgba(130,48,82,0.06));
  border: 1px solid var(--gold); border-radius: var(--r-lg); color: var(--primary); font-weight: 700; font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}
.mama-link-btn.linked { background: var(--grad-primary); color: #fff; border-color: transparent; }
.mama-link-btn .ml-icon { font-size: 1.2rem; }
.mama-link-btn .ml-text { flex: 1; text-align: left; }
.mama-link-btn .ml-arrow { font-size: 1.4rem; opacity: 0.7; }

.mama-link-modal { max-width: 420px; }
.mama-link-tip { font-size: 0.82rem; color: var(--text-3); margin: 10px 0 14px; }
.mama-link-inputs { display: flex; gap: 8px; margin-bottom: 12px; }
.mama-link-inputs input { flex: 1; padding: 12px; border: 1px solid var(--border); border-radius: var(--r-md); font-size: 0.95rem; background: var(--bg); }
.mama-link-inputs button { flex-shrink: 0; padding: 0 16px; }
.mama-link-divider { text-align: center; color: var(--text-3); font-size: 0.78rem; position: relative; margin: 6px 0 14px; }
.mama-link-divider span { background: var(--surface); padding: 0 12px; position: relative; z-index: 1; }
.mama-link-divider::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--border); }
.mama-link-result { display: flex; flex-direction: column; gap: 8px; }
.mama-link-loading, .mama-link-err { font-size: 0.82rem; color: var(--text-3); text-align: center; padding: 8px; }
.mama-link-err { color: #B4452F; }
.mama-cand { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md); }
.mama-cand-info { flex: 1; font-size: 0.86rem; color: var(--text-1); }
.mama-cand-btn { border: none; background: var(--grad-primary); color: #fff; padding: 6px 14px; border-radius: 999px; font-size: 0.8rem; cursor: pointer; }
.mama-link-status { margin-bottom: 12px; }
.mama-linked { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--gold-tint); border: 1px solid var(--gold); border-radius: var(--r-md); }
.mama-linked-dot { width: 10px; height: 10px; border-radius: 50%; background: #3a9a5a; box-shadow: 0 0 0 3px rgba(58,154,90,0.2); }
.mama-linked-info { flex: 1; display: flex; flex-direction: column; }
.mama-linked-info strong { color: var(--primary); font-size: 0.95rem; }
.mama-linked-info span { font-size: 0.72rem; color: var(--text-3); }
.mama-unlink-btn { border: none; background: transparent; color: #B4452F; font-size: 0.8rem; cursor: pointer; }

/* 常驻关联状态条（首页 / 报告页顶部，统一显示当前关联孩子，支持切换 / 解除） */
.mama-link-bar { display: flex; align-items: center; gap: 10px; margin: 0 4px 12px; padding: 10px 12px; background: linear-gradient(135deg, rgba(201,169,97,0.12), rgba(130,48,82,0.06)); border: 1px solid var(--gold); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.mama-link-bar.linked { border-color: rgba(201,169,97,0.6); background: rgba(201,169,97,0.10); }
.mama-link-bar .mlb-icon { font-size: 1.1rem; line-height: 1; }
.mama-link-bar .mlb-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mama-link-bar .mlb-name { font-size: 0.86rem; font-weight: 600; color: var(--primary); }
.mama-link-bar .mlb-sub { font-size: 0.72rem; color: var(--text-3); }
.mama-link-bar .mlb-actions { display: flex; gap: 8px; flex-shrink: 0; }
.mama-link-bar .mlb-btn { padding: 6px 13px; border-radius: 999px; font-size: 0.78rem; cursor: pointer; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); }
.mama-link-bar .mlb-switch { border-color: var(--gold); color: var(--primary); font-weight: 600; }
.mama-link-bar .mlb-unlink { border-color: rgba(180,69,47,0.4); color: #B4452F; }
.mama-link-bar .mlb-link-btn { width: 100%; padding: 13px; border: none; border-radius: var(--r-lg); background: var(--grad-primary); color: #fff; font-size: 0.92rem; font-weight: 600; cursor: pointer; }
.mama-link-bar.report-bar { margin: 10px 16px 4px; }

/* 宝妈档案历史卡片 */
.mama-history-card { background: linear-gradient(135deg, rgba(201,169,97,0.10), rgba(130,48,82,0.05)); border: 1px solid var(--gold); border-radius: var(--r-lg); padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.mh-grid { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.mh-row { display: flex; gap: 10px; font-size: 0.86rem; }
.mh-k { color: var(--text-3); min-width: 96px; }
.mh-v { color: var(--text-1); font-weight: 600; }
.mh-hist-list { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; padding: 10px 0; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); }
.mh-hist { display: flex; gap: 10px; font-size: 0.82rem; line-height: 1.5; }
.mh-hist-k { color: var(--gold-dark); min-width: 64px; font-weight: 600; flex-shrink: 0; }
.mh-hist-v { color: var(--text-2); }
.mh-sub { font-size: 0.78rem; color: var(--primary); font-weight: 700; margin-bottom: 4px; }
.mh-visit { font-size: 0.8rem; color: var(--text-2); padding: 3px 0; }

/* 到店项目可勾选卡片 */
.visit-card { position: relative; }
.visit-card .visit-check-wrap { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; cursor: pointer; font-size: 0.82rem; color: var(--primary); font-weight: 600; }
.visit-card .visit-check { width: 18px; height: 18px; accent-color: var(--primary); }
.visit-card:has(.visit-check:checked) { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201,169,97,0.35); }
.visit-card .visit-price { margin-left: auto; padding: 3px 10px; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #fff; font-weight: 700; font-size: 0.82rem; border-radius: 999px; box-shadow: var(--shadow-gold); white-space: nowrap; }

/* 到店项目价格汇总面板 */
.visit-pricing-panel { background: linear-gradient(135deg, rgba(201,169,97,0.12), rgba(130,48,82,0.06)); border: 1px solid var(--gold); border-radius: var(--r-lg); padding: 14px 16px; margin: 4px 16px 0; }
.vp-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; color: var(--text-2); padding: 3px 0; }
.vp-row.vp-strong { font-weight: 600; color: var(--text-1); }
.vp-row.vp-discount { color: var(--red-dim); font-weight: 600; }
.vp-row.vp-final { font-size: 1.15rem; font-weight: 800; color: var(--primary); border-top: 1px dashed var(--gold); margin-top: 4px; padding-top: 8px; }
.vp-sub { font-size: 0.72rem; color: var(--text-3); }
.vp-hint { margin-top: 8px; padding: 8px 10px; background: rgba(201,169,97,0.18); border-radius: var(--r-md); font-size: 0.8rem; color: var(--primary); line-height: 1.5; }
.vp-hint b { color: var(--gold-dark); }
.vp-hint-ok { background: rgba(46,160,67,0.14); color: var(--green-dim); }

/* 登录弹窗（mama） */
.mama-auth-modal { max-width: 360px; }
.mama-tip { font-size: 0.8rem; color: var(--text-3); margin: 8px 0 14px; }
.mama-form { display: flex; flex-direction: column; gap: 12px; }
.mama-form input { padding: 12px; border: 1px solid var(--border); border-radius: var(--r-md); font-size: 0.95rem; background: var(--bg); }
.mama-code-row { display: flex; gap: 8px; }
.mama-code-row input { flex: 1; }
.mama-code-row button { flex-shrink: 0; white-space: nowrap; }

/* === mama-addbaby · 添加宝贝弹窗用 === */
.ab-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 0; }
.ab-label { font-size: 0.82rem; color: var(--text-2); font-weight: 600; }
.ab-hint { color: var(--text-3); font-weight: 400; font-size: 0.76rem; margin-left: 6px; }
.ab-gender-group { display: flex; gap: 8px; }
.ab-chip {
  flex: 1; padding: 9px 0; border: 1px solid var(--border);
  border-radius: var(--r-md); background: var(--bg); color: var(--text-2);
  font-size: 0.9rem; cursor: pointer; transition: var(--transition);
}
.ab-chip:hover { border-color: var(--gold); color: var(--primary); }
.ab-chip.is-active {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(130, 48, 82, 0.18);
}

/* === mama-me · 我的页增强（品牌信赖 + 互动） === */
.me-brand {
  background: linear-gradient(135deg, #fff 0%, #fdf6ee 100%);
  border-color: var(--gold);
}
.me-brand-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.me-brand-logo { width: 46px; height: 46px; border-radius: 12px; object-fit: contain; background: #fff; padding: 3px; box-shadow: var(--shadow-sm); }
.me-brand-name { font-family: var(--font-display); font-weight: 900; color: var(--primary); font-size: 1.15rem; line-height: 1.1; }
.me-brand-tag { font-size: 0.74rem; color: var(--gold-dark); margin-top: 3px; letter-spacing: .3px; }
.me-brand-desc { font-size: 0.84rem; color: var(--text-2); line-height: 1.6; margin: 4px 0 6px; }
.me-link { background: none; border: none; color: var(--gold-dark); font-size: 0.84rem; font-weight: 600; padding: 2px 0; cursor: pointer; }
.me-link:hover { color: var(--primary); }
.me-story { margin: 4px 0 12px; padding: 10px 12px; background: var(--surface-2); border-radius: var(--r-md); border-left: 3px solid var(--gold); }
.me-story p { font-size: 0.82rem; color: var(--text-2); line-height: 1.6; margin: 0; }
.me-trust { display: flex; gap: 8px; margin-top: 12px; }
.me-trust-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); font-size: 0.72rem; color: var(--text-2); text-align: center; }
.me-trust-ico { font-size: 1.25rem; line-height: 1; }

.me-stats-row { display: flex; gap: 10px; }
.me-stat { flex: 1; text-align: center; background: var(--surface-2); border-radius: var(--r-md); padding: 14px 6px; }
.me-stat-num { font-family: var(--font-display); font-weight: 900; font-size: 1.7rem; color: var(--primary); line-height: 1; }
.me-stat-lab { font-size: 0.74rem; color: var(--text-3); margin-top: 6px; }

.me-signin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.me-signin-title { font-family: var(--font-display); font-weight: 700; color: var(--primary); font-size: 1rem; }
.me-signin-sub { font-size: 0.76rem; color: var(--text-3); margin-top: 3px; }
.me-streak { display: flex; gap: 7px; margin-top: 14px; }
.me-dot { flex: 1; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--border); color: var(--text-3); font-size: 0.78rem; background: var(--surface-2); transition: var(--transition); }
.me-dot.is-filled { background: var(--grad-gold); border-color: var(--gold); color: #fff; font-weight: 700; box-shadow: 0 3px 8px rgba(201, 169, 97, 0.35); }

.me-invite-desc { font-size: 0.84rem; color: var(--text-2); line-height: 1.6; margin: 4px 0 12px; }
.me-invite-desc b { color: var(--gold-dark); }

.me-help { padding: 4px 16px; }
.me-help-item { width: 100%; display: flex; align-items: center; justify-content: space-between; background: none; border: none; border-bottom: 1px dashed var(--border); padding: 13px 0; font-size: 0.9rem; color: var(--text-1); cursor: pointer; text-align: left; }
.me-help-item:last-child { border-bottom: none; }
.me-help-item:hover { color: var(--primary); }
.me-help-arrow { color: var(--text-3); font-size: 1.1rem; }

/* 品牌详情弹窗 */
.mama-brand-modal-body { padding: 4px 0 6px; }
.mama-brand-modal-body .me-brand-tag { margin-bottom: 4px; }
.mama-brand-modal-body .me-brand-desc { margin: 8px 0; }
.mama-brand-modal-body .me-story { background: var(--surface-2); border-radius: var(--r-md); border-left: 3px solid var(--gold); padding: 10px 12px; font-size: 0.84rem; color: var(--text-2); line-height: 1.65; margin: 12px 0; }
