/* =====================================================================
   测肤频道用户端样式
   设计风格：温润护肤美妆风，手机优先，主色调：暖粉棕
   主色 #c97b5e · 浅背景 #fdf0ea · 文字 #3d2b24
   ===================================================================== */

/* ─── CSS 变量 ─────────────────────────────────────────────────────── */
:root {
  --primary:       #c97b5e;
  --primary-dark:  #a85e42;
  --primary-light: #e8b4a0;
  --primary-bg:    #fdf0ea;
  --secondary:     #8b5e4a;
  --text-dark:     #3d2b24;
  --text-mid:      #6b4c40;
  --text-muted:    #9a7468;
  --bg-page:       #faf6f4;
  --bg-white:      #ffffff;
  --bg-card:       #ffffff;
  --border:        #f0dcd6;
  --success:       #5a9e7a;
  --warning:       #d4943a;
  --error:         #c0392b;
  --radius-sm:     8px;
  --radius:        14px;
  --radius-lg:     20px;
  --shadow-sm:     0 2px 8px rgba(201,123,94,.10);
  --shadow:        0 4px 20px rgba(201,123,94,.14);
  --shadow-lg:     0 8px 40px rgba(201,123,94,.18);
  --font:          -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* ─── 基础重置 ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ─── 顶部导航 ─────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253,240,234,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo { display: flex; align-items: center; gap: 8px; }
.logo-text  { font-size: 17px; font-weight: 700; color: var(--primary); letter-spacing: .5px; }
.logo-img   { height: 32px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 6px 12px;
  font-size: 14px;
  color: var(--text-mid);
  border-radius: 20px;
  transition: all .2s;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--primary-bg); }
.nav-cta {
  background: var(--primary);
  color: #fff !important;
  font-weight: 600;
}
.nav-cta:hover { background: var(--primary-dark); }

/* ─── 主内容 ─────────────────────────────────────────────────────────  */
.site-main { flex: 1; }

/* ─── 页脚 ───────────────────────────────────────────────────────────  */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,.7);
  padding: 24px 16px;
  text-align: center;
}
.footer-inner { max-width: 480px; margin: 0 auto; }
.footer-brand { font-size: 16px; font-weight: 700; color: var(--primary-light); margin-bottom: 8px; }
.footer-tip   { font-size: 12px; margin-bottom: 10px; }
.footer-contact { font-size: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 10px; }
.footer-admin { margin-top: 10px; }
.admin-entry-link { font-size: 11px; color: rgba(255,255,255,.2); }
.admin-entry-link:hover { color: rgba(255,255,255,.5); }

/* ─── 通用组件：按钮 ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  transition: all .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(201,123,94,.35);
}
.btn-primary:hover  { background: var(--primary-dark); box-shadow: 0 6px 18px rgba(201,123,94,.45); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover { background: var(--primary-bg); }
.btn-ghost {
  background: rgba(255,255,255,.9);
  color: var(--text-mid);
}
.btn-large  { padding: 14px 32px; font-size: 16px; }
.btn-sm     { padding: 8px 16px; font-size: 13px; }
.btn[disabled], .btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.btn-loading {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ─── 页面容器 ───────────────────────────────────────────────────── */
.page-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}
.page-header { text-align: center; margin-bottom: 24px; }
.page-title  { font-size: 22px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.page-desc   { font-size: 14px; color: var(--text-muted); }

/* ─── Section 通用 ───────────────────────────────────────────────── */
.section-inner  { max-width: 480px; margin: 0 auto; padding: 32px 16px; }
.section-title  { font-size: 20px; font-weight: 700; text-align: center; margin-bottom: 8px; color: var(--text-dark); }
.section-desc   { font-size: 14px; color: var(--text-muted); text-align: center; margin-bottom: 24px; }

/* ─── 首页：英雄区 ──────────────────────────────────────────────── */
.hero-section {
  position: relative;
  background: linear-gradient(160deg, #fdf0ea 0%, #f5e0d5 50%, #ede0d8 100%);
  padding: 40px 16px 50px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(201,123,94,.12) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(232,180,160,.15) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: rgba(201,123,94,.15);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: .5px;
}
.hero-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 10px;
}
.hero-subtitle { font-size: 15px; color: var(--text-mid); margin-bottom: 24px; }
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
  background: rgba(255,255,255,.6);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.stat-item { flex: 1; text-align: center; }
.stat-num  { display: block; font-size: 24px; font-weight: 800; color: var(--primary); }
.stat-label{ display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }
.hero-cta  { width: 100%; justify-content: center; margin-bottom: 12px; }
.hero-note { font-size: 12px; color: var(--text-muted); text-align: center; }

/* 英雄区视觉卡片（含三大维度预览条，需居中与主内容对齐） */
.hero-visual {
  margin: 28px auto 0;
  max-width: 480px;
}
.visual-card {
  background: rgba(255,255,255,.8);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.visual-face { display: flex; justify-content: center; margin-bottom: 16px; }
.face-circle { position: relative; }
.bar-item { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.bar-label { font-size: 12px; color: var(--text-mid); width: 56px; flex-shrink: 0; }
.bar-track { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.bar-fill  { height: 100%; background: linear-gradient(90deg, var(--primary-light), var(--primary)); border-radius: 4px; transition: width 1s ease; }
.bar-score { font-size: 13px; font-weight: 700; color: var(--primary); width: 26px; text-align: right; flex-shrink: 0; }

/* ─── 检测维度 ───────────────────────────────────────────────────── */
.dimensions-section { background: var(--bg-white); }
.dimensions-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.dim-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--primary-bg);
  border-radius: var(--radius);
  padding: 16px;
}
.dim-icon { font-size: 28px; flex-shrink: 0; }
.dim-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; color: var(--text-dark); }
.dim-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ─── 步骤流程 ───────────────────────────────────────────────────── */
.steps-section { background: var(--bg-page); }
.steps-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 28px; }
.step-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-white);
  border-radius: var(--radius);
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-light);
  flex-shrink: 0;
  width: 44px;
}
.step-content { flex: 1; }
.step-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.step-desc  { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.step-arrow { font-size: 20px; color: var(--primary-light); flex-shrink: 0; }
.steps-cta  { text-align: center; }

/* ─── 拍照贴士 ───────────────────────────────────────────────────── */
.tips-section { background: var(--bg-white); }
.tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tip-item {
  border-radius: var(--radius);
  padding: 16px;
}
.tip-good { background: #f0f9f4; }
.tip-bad  { background: #fef5f5; }
.tip-icon { font-size: 24px; margin-bottom: 8px; }
.tip-text strong { font-size: 14px; display: block; margin-bottom: 8px; }
.tip-text ul { padding-left: 2px; }
.tip-text li { font-size: 13px; color: var(--text-mid); margin-bottom: 4px; padding-left: 14px; position: relative; }
.tip-text li::before { content: "·"; position: absolute; left: 0; color: var(--primary); }

/* ─── FAQ ────────────────────────────────────────────────────────── */
.faq-section { background: var(--bg-page); }
.faq-list    { display: flex; flex-direction: column; gap: 8px; }
.faq-item    { background: var(--bg-white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  gap: 8px;
}
.faq-arrow { flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .2s;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  padding: 0 16px;
}
.faq-item.open .faq-answer { max-height: 200px; padding: 0 16px 16px; }

/* ─── 关于我们 ───────────────────────────────────────────────────── */
.about-section { background: var(--bg-white); }
.about-text { font-size: 14px; color: var(--text-mid); text-align: center; line-height: 1.8; max-width: 360px; margin: 0 auto; }

/* ─── 底部 CTA ───────────────────────────────────────────────────── */
.bottom-cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 40px 16px;
  text-align: center;
  color: #fff;
}
.bottom-cta-inner { max-width: 480px; margin: 0 auto; }
.bottom-cta-section h2  { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.bottom-cta-section p   { font-size: 14px; opacity: .85; margin-bottom: 24px; }
.bottom-cta-section .btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}

/* ─── 上传页 ─────────────────────────────────────────────────────── */
.upload-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.upload-tips-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-bg);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 16px;
}
.tip-tag { font-weight: 600; color: var(--primary); flex-shrink: 0; }

/* 上传区 */
.upload-area {
  border: 2px dashed var(--primary-light);
  border-radius: var(--radius);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
  overflow: hidden;
  position: relative;
  margin-bottom: 16px;
}
.upload-area:hover, .upload-area.dragover {
  border-color: var(--primary);
  background: var(--primary-bg);
}
.upload-placeholder { text-align: center; padding: 20px; }
.upload-icon { margin-bottom: 12px; display: flex; justify-content: center; }
.upload-main-text { font-size: 16px; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.upload-sub-text  { font-size: 13px; color: var(--text-muted); }

/* 照片预览 */
.photo-preview-wrap { position: relative; width: 100%; height: 260px; }
.photo-preview-img  { width: 100%; height: 100%; object-fit: cover; }
.preview-overlay {
  position: absolute; bottom: 12px; right: 12px;
}

/* 操作按钮组 */
.upload-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.upload-actions .btn { justify-content: center; padding: 12px 20px; font-size: 14px; }
.upload-actions .btn svg { width: 18px; height: 18px; }

/* 移动端按钮样式优化 */
@media (max-width: 480px) {
  .upload-actions { gap: 10px; margin-bottom: 12px; }
  .upload-actions .btn { padding: 10px 14px; font-size: 13px; min-height: 40px; border-radius: 20px; }
  .upload-actions .btn svg { width: 16px; height: 16px; margin-right: 4px; flex-shrink: 0; }
  .upload-actions .btn span { white-space: nowrap; }
}

/* 错误提示 */
.error-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff5f5;
  border: 1px solid #ffd5d5;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--error);
  margin-bottom: 12px;
}

/* 隐私说明 */
.privacy-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  justify-content: center;
}

/* 流程进度条 */
.flow-guide {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 16px;
}
.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.flow-step.active { color: var(--primary); font-weight: 600; }
.flow-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--border);
}
.flow-step.active .flow-dot { background: var(--primary); border-color: var(--primary); }
.flow-line { width: 40px; height: 2px; background: var(--border); margin-bottom: 22px; }

/* ─── 分析中页 ───────────────────────────────────────────────────── */
.analyzing-page { display: flex; align-items: flex-start; justify-content: center; padding-top: 30px; }
.analyzing-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow);
}

.analyzing-visual { margin-bottom: 24px; display: flex; justify-content: center; }
.face-scan-wrap {
  position: relative;
  width: 130px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.face-base { position: absolute; }

/* 扫描光束 */
.scan-beam {
  position: absolute;
  left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, rgba(201,123,94,.8), transparent);
  animation: scan 1.8s ease-in-out infinite;
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(201,123,94,.5);
}
@keyframes scan {
  0%   { top: 10%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 90%; opacity: 0; }
}

/* 四角框 */
.scan-corners { position: absolute; inset: 0; }
.corner {
  position: absolute;
  width: 16px; height: 16px;
  border-color: var(--primary);
  border-style: solid;
}
.corner-tl { top:0; left:0;  border-width: 2px 0 0 2px; }
.corner-tr { top:0; right:0; border-width: 2px 2px 0 0; }
.corner-bl { bottom:0; left:0;  border-width: 0 0 2px 2px; }
.corner-br { bottom:0; right:0; border-width: 0 2px 2px 0; }

/* 分析步骤列表 */
.analyzing-steps { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; text-align: left; }
.a-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-muted);
  transition: all .3s;
}
.a-step.active { background: var(--primary-bg); color: var(--primary); font-weight: 600; }
.a-step-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}
.a-step.active .a-step-dot { background: var(--primary); box-shadow: 0 0 6px var(--primary); }

.analyzing-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.analyzing-desc  { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.analyzing-tip   { font-size: 13px; color: var(--text-muted); margin-top: 16px; }

/* 进度条 */
.progress-wrap { display: flex; align-items: center; gap: 10px; }
.progress-bar  { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  border-radius: 4px;
  transition: width .5s ease;
}
.progress-pct { font-size: 13px; font-weight: 700; color: var(--primary); width: 34px; text-align: right; }

/* 错误结果 */
.error-result { text-align: center; padding: 20px; }
.error-icon   { font-size: 48px; margin-bottom: 16px; }
.error-result h2 { font-size: 18px; margin-bottom: 8px; }
.error-result p  { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.error-tip { font-size: 12px; color: var(--text-muted); margin-top: -10px; margin-bottom: 20px; }

/* ─── 报告页 ─────────────────────────────────────────────────────── */
.report-page { padding-top: 16px; }

.report-header { text-align: center; margin-bottom: 20px; }
.report-badge {
  display: inline-block;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 6px;
}
.report-time { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; }

/* 综合评分圆环 */
.overall-score-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.score-ring { position: relative; flex-shrink: 0; }
.score-ring svg { transform: rotate(-90deg); }
.score-arc { transition: stroke-dasharray 1s ease; }
.score-ring-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.score-big  { font-size: 32px; font-weight: 800; color: var(--primary); line-height: 1; }
.score-unit { font-size: 12px; color: var(--text-muted); }
.overall-info { flex: 1; }
.skin-type-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.overall-label { font-size: 14px; color: var(--text-muted); margin-bottom: 6px; }
.overall-tip   { font-size: 13px; color: var(--text-dark); line-height: 1.5; }

/* 三维度卡片 */
.dimensions-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.card-title { font-size: 17px; font-weight: 700; margin-bottom: 16px; color: var(--text-dark); }

.dim-score-item { margin-bottom: 20px; }
.dim-score-item:last-child { margin-bottom: 0; }
.dim-score-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.dim-info { display: flex; align-items: center; gap: 8px; }
.dim-score-name { font-size: 15px; font-weight: 600; color: var(--text-dark); }
.dim-level-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}
.level-优秀   { background: #e8f7ee; color: var(--success); }
.level-良好   { background: #eef4ff; color: #3a7bd5; }
.level-一般   { background: #fff8e8; color: var(--warning); }
.level-需改善 { background: #fff5f5; color: var(--error); }

.dim-score-num { font-size: 22px; font-weight: 800; color: var(--primary); }
.dim-score-num small { font-size: 12px; color: var(--text-muted); font-weight: 400; }

.dim-score-bar { height: 10px; background: var(--border); border-radius: 5px; overflow: hidden; margin-bottom: 10px; }
.dim-score-fill {
  height: 100%;
  width: 0;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  transition: width 1s ease .3s;
}
.dim-advice { font-size: 13px; color: var(--text-mid); line-height: 1.6; }

/* ─── 商品推荐 ───────────────────────────────────────────────────── */
.recommend-section { margin-bottom: 20px; }
.recommend-section .section-title { text-align: left; font-size: 17px; margin-bottom: 4px; }
.recommend-section .section-desc  { text-align: left; margin-bottom: 14px; }

.products-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.product-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.product-img-wrap { height: 130px; overflow: hidden; background: var(--primary-bg); }
.product-img { width: 100%; height: 100%; object-fit: cover; }
.product-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.product-info { padding: 12px; }
.product-name  { font-size: 14px; font-weight: 600; margin-bottom: 4px; line-height: 1.3; color: var(--text-dark);
                 display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-effect{ font-size: 12px; color: var(--text-muted); margin-bottom: 8px; line-height: 1.4;
                 display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-dim-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.dim-tag { font-size: 11px; padding: 2px 7px; border-radius: 8px; font-weight: 600; }
.tag-hydration { background: #e8f4fc; color: #2980b9; }
.tag-wrinkles  { background: #eef8ee; color: #27ae60; }
.tag-firmness  { background: #fef0e8; color: var(--primary); }
.tag-whitening { background: #f3e8ff; color: #8b5cf6; }
.btn-product {
  width: 100%;
  padding: 7px;
  font-size: 13px;
  font-weight: 600;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: var(--radius-sm);
  transition: background .2s;
}
.btn-product:hover { background: var(--primary); color: #fff; }

/* ─── 报告操作区 ─────────────────────────────────────────────────── */
.report-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 14px 8px;
  font-size: 13px;
  color: var(--text-mid);
  box-shadow: var(--shadow-sm);
  transition: all .2s;
  cursor: pointer;
}
.action-btn:hover { background: var(--primary-bg); color: var(--primary); }

/* 历史记录 */
.history-section { margin-bottom: 16px; }
.history-title   { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.history-list    { display: flex; flex-direction: column; gap: 8px; }
.history-item a  {
  display: block;
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* 总体评价卡片 */
.overall-comment-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.overall-comment-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-main);
}

/* 养护建议卡片 */
.care-advice-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.care-advice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.care-advice-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.care-advice-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}
.care-advice-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-main);
}

/* 免责声明 */
.disclaimer {
  background: #fff8f0;
  border-radius: var(--radius);
  padding: 14px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
  margin-bottom: 16px;
}

/* ─── 弹窗 ───────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-box {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  width: 100%;
  max-width: 320px;
  text-align: center;
}
.modal-box h3 { font-size: 18px; margin-bottom: 10px; }
.modal-box p  { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }
.qr-placeholder { margin: 0 auto 20px; display: flex; justify-content: center; }

/* ─── Toast ──────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0,0,0,.8);
  color: #fff;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 50px;
  white-space: nowrap;
  opacity: 0;
  transition: all .3s;
  z-index: 9999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── 错误页 ─────────────────────────────────────────────────────── */
.error-page { display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.error-card { text-align: center; }
.error-code { font-size: 72px; font-weight: 800; color: var(--primary-light); line-height: 1; margin-bottom: 12px; }
.error-card h1 { font-size: 20px; margin-bottom: 8px; }
.error-card p  { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }

/* ─── 动画 ───────────────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-container { animation: fadeUp .4s ease; }

/* ─── 响应式：稍大屏幕（平板/电脑访问时不会太窄）─────────────────── */
@media (min-width: 500px) {
  .hero-title { font-size: 30px; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .tips-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 640px) {
  .header-inner,
  .hero-content,
  .hero-visual,
  .section-inner,
  .page-container { max-width: 540px; }
}

/* =====================================================================
   企微引流组件样式
   ===================================================================== */

/* ─── 侧边悬浮按钮（首页右下角）────────────────────────────────────── */
.qw-sidebar-btn {
  position: fixed;
  right: 16px;
  bottom: 80px;
  z-index: 90;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: 20px 20px 20px 4px;
  padding: 12px 16px;
  box-shadow: 0 4px 20px rgba(201,123,94,.4);
  cursor: pointer;
  transition: all .3s;
}
.qw-sidebar-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(201,123,94,.5);
}
.qw-sidebar-btn:active {
  transform: translateY(-1px);
}
.qw-sidebar-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
  line-height: 1.3;
  white-space: nowrap;
}
.qw-sidebar-sub {
  font-size: 11px;
  opacity: .85;
}

/* ─── 首页底部卡片 ───────────────────────────────────────────────── */
.qw-bottom-card {
  background: linear-gradient(135deg, #fff9f6 0%, #fff5f0 100%);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  margin: 0 16px 24px;
  max-width: 448px;
  margin-left: auto;
  margin-right: auto;
}
.qw-bottom-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.qw-bottom-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(201,123,94,.35);
  cursor: pointer;
  transition: all .2s;
}
.qw-bottom-card-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(201,123,94,.45);
}

/* ─── 结果页顶部提示条 ───────────────────────────────────────────── */
.qw-topbar {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 12px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  margin-bottom: 16px;
  cursor: pointer;
  transition: all .2s;
}
.qw-topbar:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201,123,94,.3);
}

/* ─── 结果页大按钮（核心转化入口）──────────────────────────────────── */
.qw-bigbtn-card {
  background: linear-gradient(135deg, #fff9f6 0%, #fff 100%);
  border: 2px solid var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.qw-bigbtn-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.qw-bigbtn-subtitle {
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 16px;
}
.qw-bigbtn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(201,123,94,.4);
  cursor: pointer;
  transition: all .3s;
}
.qw-bigbtn-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,123,94,.5);
}
.qw-bigbtn-btn:active {
  transform: translateY(0);
}
/* 高转化版本按钮样式 */
.qw-bigbtn-btn.high-convert {
  background: linear-gradient(135deg, #ff7a5c 0%, #ff5a3c 100%);
  animation: pulse-btn 2s infinite;
}
@keyframes pulse-btn {
  0%, 100% { box-shadow: 0 6px 20px rgba(255,90,60,.4); }
  50% { box-shadow: 0 6px 30px rgba(255,90,60,.6); }
}

/* ─── 企微二维码弹窗 ─────────────────────────────────────────────── */
.qw-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.qw-modal-box {
  position: relative;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  width: 100%;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  animation: modalFadeIn .3s ease;
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.qw-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color .2s;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
}
.qw-modal-close:hover {
  color: var(--primary);
}
.qw-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}
.qw-modal-qrcode {
  margin-bottom: 20px;
}
.qw-modal-qrcode img {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.qw-modal-desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
}
