/* ===== 全局变量 ===== */
:root {
  --bg: #091026;
  --bg-2: #0d1733;
  --card: rgba(255, 255, 255, 0.05);
  --card-border: rgba(0, 217, 255, 0.15);
  --primary: #297BFF;
  --glow: #00D9FF;
  --purple: #826BFF;
  --success: #28D8A1;
  --warning: #FFAA44;
  --danger: #FF5555;
  --text: #F0F6FF;
  --text-2: #A0B4D8;
  --text-3: #6B7FA3;
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
}

#app { height: 100dvh; position: relative; }

a { color: var(--glow); text-decoration: none; }

/* 背景光轨 */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(41, 123, 255, 0.15), transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(130, 107, 255, 0.12), transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(0, 217, 255, 0.06), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ===== 通用卡片 ===== */
.glass-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ===== 按钮 ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(41, 123, 255, 0.4);
}
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 12px 20px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-ghost:active { transform: scale(0.97); }

/* ===== 页面容器 ===== */
.page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  padding: 12px 16px;
  padding-bottom: calc(70px + env(safe-area-inset-bottom));
  overflow-y: auto;
}
/* 一屏显示的页面（首页、拍照、问卷等） */
.page-fit {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* 带底部tabbar的page-fit需要为tabbar预留空间 */
.page-fit.page-tab {
  padding-bottom: calc(70px + env(safe-area-inset-bottom));
}
/* page-fit 内容可能超出时允许滚动，保证底部按钮可达 */
.page-fit > * { flex-shrink: 0; }
.page-fit > .q-list,
.page-fit > .cam-body,
.page-fit > [style*="overflow"] { flex-shrink: 1; min-height: 0; }
.page-tab { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }

/* ===== 顶部标题栏 ===== */
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  margin-bottom: 16px;
}
.nav-title { font-size: 18px; font-weight: 600; }
.nav-back {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  color: var(--text);
}

/* ===== 底部 TabBar ===== */
.tabbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: calc(60px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(9, 16, 38, 0.92);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--card-border);
  display: flex;
  z-index: 100;
}
.tabbar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-3);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s;
}
.tabbar-item.active { color: var(--glow); }
.tabbar-item svg { width: 24px; height: 24px; }

/* ===== 闪屏页 ===== */
.splash {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 40px;
}
.splash-logo { margin-bottom: 24px; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }
.splash-title { font-size: 26px; font-weight: 700; background: linear-gradient(135deg, #00D9FF, #826BFF); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.splash-sub { color: var(--text-2); margin-top: 8px; font-size: 13px; }
.splash-progress { width: 200px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; margin-top: 40px; overflow: hidden; }
.splash-progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--glow)); transition: width 0.1s; }

/* ===== 登录注册 ===== */
.auth-page { display: flex; flex-direction: column; justify-content: center; min-height: 100dvh; }
.auth-logo { text-align: center; margin-bottom: 16px; }
.auth-title { text-align: center; font-size: 24px; font-weight: 700; }
.auth-sub { text-align: center; color: var(--text-2); margin: 8px 0 24px; font-size: 13px; }
.auth-form { padding: 20px; }
.auth-links { text-align: center; margin-top: 16px; font-size: 13px; }
/* 注册/登录链接：整行大触控区（≥44px），避免手机点偏落在父容器空白区无响应 */
.auth-links a {
  display: block;
  width: 100%;
  padding: 10px 0;
  min-height: 44px;
  line-height: 24px;
  cursor: pointer;
}
/* 登录页双链接：注册 + 忘记密码 左右分布 */
.auth-links-row { display: flex; justify-content: space-between; }
.auth-links-row a { width: auto; display: inline-block; padding: 10px 4px; }
/* 登录/注册输入框字号 16px：避免 iOS 聚焦时自动放大页面，改善键盘唤起体验 */
.auth-form .el-input__inner { font-size: 16px; }

/* ===== 首页 ===== */
.home-greet { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; flex-shrink: 0; }
.greet-hi { font-size: 18px; font-weight: 600; }
.greet-member { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.greet-logout {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  background: rgba(255, 85, 85, 0.22);
  border: 1px solid rgba(255, 85, 85, 0.45);
  border-radius: 20px;
  cursor: pointer;
  vertical-align: middle;
  transition: all 0.2s;
}
.greet-logout:hover {
  background: rgba(255, 85, 85, 0.35);
  border-color: rgba(255, 85, 85, 0.65);
}
.greet-logout:active { transform: scale(0.95); }
.home-balance-row { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.home-balance-row .hbr-amount { color: var(--warning); font-weight: 600; margin-left: 8px; }
.tag-member { background: linear-gradient(135deg, #FFAA44, #FFCC00); color: #000; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; margin-right: 6px; }
.detect-entry { text-align: center; padding: 20px 0; margin-bottom: 10px; cursor: pointer; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; }
.de-ring { width: min(38vw, 140px); height: min(38vw, 140px); margin: 0 auto 12px; border-radius: 50%; background: linear-gradient(135deg, rgba(41,123,255,0.3), rgba(130,107,255,0.3)); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 40px rgba(41,123,255,0.4); animation: pulse 2s infinite; }
.de-inner { width: 65%; height: 65%; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--purple)); display: flex; align-items: center; justify-content: center; }
.de-text { font-size: 18px; font-weight: 700; }
.de-sub { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.quick-entries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; flex-shrink: 0; }
.quick-item { padding: 10px 8px; text-align: center; cursor: pointer; }
.qi-icon { font-size: 20px; margin-bottom: 4px; }
.quick-item div:last-child { font-size: 13px; color: var(--text-2); }
.health-tip { padding: 10px 14px; flex-shrink: 0; }
.ht-title { font-weight: 600; margin-bottom: 4px; font-size: 14px; }
.ht-original { font-size: 13px; color: #00D9FF; line-height: 1.5; margin-bottom: 2px; padding-left: 2em; }
.ht-tip-text { font-size: 13px; color: var(--text-2); line-height: 1.5; padding-left: 2em; }

/* ===== 表单行 ===== */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
/* 移动端表单行紧凑 */
@media (max-width: 768px) {
  .form-row { margin-bottom: 10px; }
  .form-row label { font-size: 12px; margin-bottom: 4px; }
  .form-row .el-input__wrapper,
  .form-row .el-select__wrapper,
  .form-row .el-date-editor { padding: 8px 12px; font-size: 14px; }
}

/* 个人资料页：生日 / 身高体重 左右布局 */
.profile-inline { display: flex; align-items: center; gap: 10px; }
.profile-inline label { flex-shrink: 0; font-size: 12px; color: var(--text-2); min-width: 52px; }
.profile-inline .el-input,
.profile-inline .el-date-editor { flex: 1; }
/* 个人资料输入框统一高度（22px基础上增加50% = 33px） */
.profile-card .el-input { --el-input-height: 33px; }
.profile-card .el-input__wrapper { padding: 0 8px; }
.profile-card .el-input__inner { height: 33px; line-height: 33px; font-size: 13px; }
/* 生日选择器与普通输入框同规格：宽度撑满（覆盖默认220px固定宽）、根元素无padding（覆盖媒体查询的8px 12px） */
.profile-card .el-date-editor { --el-date-editor-width: 100%; padding: 0; }
.profile-card .el-date-editor.el-input { --el-input-height: 33px; }
/* 移动端压缩保存按钮和提示 */
@media (max-width: 768px) {
  .profile-save { margin-top: 12px !important; }
  .profile-tip { margin-top: 10px !important; font-size: 10px !important; padding: 6px 10px !important; }
}

/* ===== 检测说明 ===== */
.guide-tip { text-align: center; color: var(--text-2); margin-bottom: 10px; font-size: 12px; flex-shrink: 0; }
.guide-card { padding: 10px 14px; margin-bottom: 8px; display: flex; gap: 10px; flex-shrink: 0; }
.guide-emoji { font-size: 22px; }
.guide-title { font-weight: 600; margin-bottom: 4px; font-size: 14px; }
.guide-list { padding-left: 16px; color: var(--text-2); font-size: 12px; line-height: 1.6; }
.guide-card + .btn-primary { margin-top: 10px !important; flex-shrink: 0; }

/* ===== 拍照页（左右分栏布局） ===== */
.camera-page { height: 100dvh; display: flex; flex-direction: column; padding: 12px 16px !important; }

/* 顶部标题 */
.cam-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; flex-shrink: 0; }
.cam-title { font-size: 18px; font-weight: 600; color: var(--text); letter-spacing: 2px; }

/* 主体：左引导 + 右预览 */
.cam-body { flex: 1; display: flex; gap: 14px; min-height: 0; align-items: stretch; }

/* 左侧引导区 */
.cam-guide { width: 35%; display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.cam-sample { background: var(--card); border: 1px solid var(--card-border); border-radius: 14px; padding: 12px; text-align: center; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; }
.cam-sample-img { width: 100%; max-width: 150px; margin: 0 auto; }
.cam-sample-img svg { width: 100%; height: auto; }
.cam-sample-label { font-size: 11px; color: var(--text-3); margin-top: 6px; }
.cam-tip-box { background: var(--card); border: 1px solid var(--card-border); border-left: 3px solid var(--glow); border-radius: 10px; padding: 14px; flex: 1; }
.cam-tip-title { font-size: 13px; font-weight: 600; color: var(--glow); margin-bottom: 8px; }
.cam-tip-text { font-size: 14px; color: var(--text-2); line-height: 1.7; }

/* 右侧预览区 */
.cam-preview { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cam-preview-frame { position: relative; flex: 1; min-height: 0; background: #000; border-radius: 16px; overflow: hidden; border: 2px solid rgba(0,217,255,0.4); box-shadow: 0 0 30px rgba(0,217,255,0.15); }
.cam-preview-frame video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.cam-outline { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 80%; height: 90%; pointer-events: none; }
.cam-outline svg { width: 100%; height: 100%; }
.preview-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }

.cam-status { text-align: center; padding: 6px; font-size: 12px; min-height: 18px; flex-shrink: 0; margin-top: 8px; }
.cam-status.success { color: var(--success); }
.cam-status.error { color: var(--danger); }
.cam-status.info { color: var(--glow); }

/* 拍照按钮（预览区下方居中） */
.cam-actions { padding: 10px 0 0; flex-shrink: 0; text-align: center; }
.cam-btn { max-width: 260px; margin: 0 auto; min-height: 56px; font-size: 17px; }

/* 移动端：左右布局，左侧缩窄，文字换行 */
@media (max-width: 768px) {
  .camera-page { padding: 8px 10px !important; height: auto; min-height: 100dvh; }
  .cam-title { font-size: 16px; letter-spacing: 1px; }
  .cam-header { margin-bottom: 6px; }
  .cam-body { flex-direction: row; gap: 6px; flex: 1; min-height: 0; align-items: stretch; }
  .cam-guide { width: 26%; gap: 6px; }
  .cam-sample { padding: 6px; border-radius: 10px; }
  .cam-sample-img { max-width: none; }
  .cam-sample-img svg { width: 100%; height: auto; }
  .cam-sample-label { font-size: 9px; margin-top: 3px; }
  .cam-tip-box { padding: 8px; border-radius: 8px; flex: 1; }
  .cam-tip-title { font-size: 10px; margin-bottom: 4px; }
  .cam-tip-text { font-size: 10px; line-height: 1.4; word-break: break-all; }
  .cam-preview { flex: 1; gap: 4px; }
  .cam-preview-frame { border-width: 1.5px; border-radius: 12px; min-height: 150px; }
  .cam-status { font-size: 10px; padding: 3px; margin-top: 4px; }
  .cam-actions { padding: 6px 0 0; }
  .cam-btn { max-width: none; width: 100%; padding: 20px 16px; font-size: 18px; border-radius: 12px; min-height: 80px; }
}

/* 移动端：个人资料 / 充值 / 会员中心 紧凑适配 */
@media (max-width: 768px) {
  /* 通用卡片间距 */
  .glass-card { padding: 10px 12px !important; }

  /* 个人资料页 */
  .avatar-setting { margin-bottom: 10px; }
  .as-preview { width: 56px; height: 56px; font-size: 22px; }
  .as-tip { font-size: 11px; margin-top: 4px; }

  /* 充值页 */
  .balance-card { padding: 8px 12px !important; margin-bottom: 8px; }
  .bc-label { font-size: 12px; }
  .bc-amount { font-size: 18px; }
  .recharge-title { font-size: 12px; margin-bottom: 6px; }
  .recharge-grid { gap: 6px; margin-bottom: 8px; }
  .recharge-item { padding: 8px !important; }
  .ri-amount { font-size: 15px; }
  .recharge-custom { margin-bottom: 8px; }
  /* 移动端金额格栏高 ≈ 8px×2 + 15px×1.5 + 边框2px ≈ 40px，输入框同步 */
  .recharge-custom .el-input__wrapper { height: 40px; padding: 0 10px; }
  .recharge-custom .el-input__inner { height: 40px; line-height: 40px; font-size: 14px; }
  .pay-method-row { gap: 6px; margin-bottom: 8px; }
  .pay-method-item { padding: 6px 8px !important; gap: 6px; }
  .pm-name { font-size: 11px; }
  .pm-sub { font-size: 9px; margin-top: 0; }
  .recharge-tips { padding: 6px; font-size: 10px; line-height: 1.4; margin-top: 6px; }

  /* 会员中心 */
  .member-status { padding: 10px 12px !important; margin-bottom: 8px; }
  .ms-icon { font-size: 24px; }
  .ms-title { font-size: 14px; }
  .ms-desc { font-size: 10px; margin-top: 2px; }
  .member-plan { padding: 10px 12px !important; margin-bottom: 6px; }
  .mp-name { font-size: 13px; }
  .mp-desc { font-size: 10px; margin-top: 2px; }
  .mp-price { font-size: 15px; }
  .mp-badge { font-size: 9px; padding: 1px 5px; }
  .member-tips { padding: 8px 10px; font-size: 10px; line-height: 1.6; margin: 8px 0; }
  .member-refund-notice { font-size: 9px; padding-top: 4px; margin-top: 4px; }
  .balance-tip { margin-top: 8px !important; font-size: 11px !important; }
}

/* ===== 问卷页（一页8题，每题2行） ===== */
.page-fit .nav-bar { margin-bottom: 8px; padding: 8px 0; }
.q-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-shrink: 0; }
.q-progress-bar { flex: 1; height: 4px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.q-progress-bar > div { height: 100%; background: linear-gradient(90deg, var(--primary), var(--glow)); transition: width 0.3s; }
.q-progress span { font-size: 11px; color: var(--text-2); }

/* 题目列表 */
.q-list { display: flex; flex-direction: column; gap: 6px; flex: 1; min-height: 0; overflow-y: auto; }
.q-item { padding: 8px 12px; }
.q-item-question {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 6px;
  color: var(--text);
}
.q-item-num { color: var(--glow); font-weight: 600; flex-shrink: 0; }
.q-item-text { flex: 1; }
.q-item-options { display: flex; gap: 6px; flex-wrap: nowrap; }
.q-item-opt {
  flex: 1;
  text-align: center;
  padding: 6px 2px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  cursor: pointer;
  transition: all 0.15s;
  font-size: 11px;
  color: var(--text-2);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.q-item-opt.selected {
  background: rgba(41,123,255,0.2);
  border-color: var(--primary);
  color: var(--glow);
  font-weight: 600;
}
.q-item-opt:active { transform: scale(0.96); }

/* ===== 合并题（性质多选≤2 + 每项频率） ===== */
.q-multi { display: flex; flex-direction: column; gap: 6px; }
.q-multi-tip { font-size: 10px; color: var(--text-3); }
.q-multi-block { display: flex; flex-direction: column; gap: 4px; }
.q-multi-opt {
  flex: none;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  padding: 7px 10px;
  white-space: normal;
  line-height: 1.4;
  font-size: 12px;
}
.q-multi-freq { padding-left: 8px; }

.q-actions { display: flex; gap: 10px; margin-top: 10px; flex-shrink: 0; }
.q-actions .btn-ghost { flex: 1; }
.q-actions .btn-primary { flex: 2; }
.q-actions button:disabled { opacity: 0.4; cursor: not-allowed; }
.q-tip-card { padding: 8px 12px; margin-bottom: 8px; border-left: 3px solid var(--glow); flex-shrink: 0; }
.q-tip-title { font-size: 13px; font-weight: 600; color: var(--glow); margin-bottom: 4px; }
.q-tip-text { font-size: 11px; color: var(--text-2); line-height: 1.5; }
.q-disclaimer { margin-top: 8px; padding: 6px 10px; font-size: 10px; color: var(--text-3); line-height: 1.4; background: rgba(255,255,255,0.03); border-radius: 8px; text-align: center; flex-shrink: 0; }

/* ===== 分析加载页 ===== */
.analyzing-page { display: flex; align-items: center; justify-content: center; min-height: 100dvh; }
.analyzing-body { text-align: center; }
.scan-area { margin-bottom: 32px; }
.analyzing-text { font-size: 18px; font-weight: 600; color: var(--glow); margin-bottom: 8px; }
.analyzing-sub { font-size: 13px; color: var(--text-2); }
.analyzing-dots { display: flex; justify-content: center; gap: 6px; margin-top: 24px; }
.analyzing-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--glow); animation: blink 1.4s infinite both; }
.analyzing-dots span:nth-child(2) { animation-delay: 0.2s; }
.analyzing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%,80%,100% { opacity: 0.3; } 40% { opacity: 1; } }

/* ===== 报告页 ===== */
.report-head { padding: 20px; }
.rh-greeting { font-size: 15px; color: var(--text); font-weight: 600; margin-bottom: 10px; }
.rh-user-info {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 12px; color: var(--text-2); margin-bottom: 8px;
  padding: 10px 14px; background: rgba(255,255,255,0.03); border-radius: 10px;
}
.rh-user-info:last-of-type { margin-bottom: 14px; }
.rh-info-item { display: inline-flex; align-items: center; gap: 4px; }
.rh-info-label { color: var(--text-3); }
.rh-info-divider { width: 1px; height: 12px; background: rgba(255,255,255,0.12); }
.rh-top { display: flex; justify-content: space-between; align-items: center; }
.rh-label { font-size: 15px; color: var(--text-2); }
.rh-result { font-size: 32px; font-weight: 700; margin-top: 4px; }
.rh-tendencies { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.rh-constitution-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid;
}
/* 雷达图图例 */
.radar-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-2);
}
.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.legend-red { background: #FF4D4F; box-shadow: 0 0 6px rgba(255,77,79,0.6); }
.legend-blue { background: #00D9FF; }
.legend-text { margin-left: 4px; }
.radar-conclusion {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #FF9C6E;
}
.rh-score-block { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
.rh-score-label { font-size: 15px; color: var(--text-2); margin-bottom: 4px; }
.rh-score-num { font-size: 30px; font-weight: 700; color: var(--glow); line-height: 1; }
.rh-score-unit { font-size: 14px; color: var(--text-2); margin-left: 2px; }
.rh-info { flex: 1; min-width: 0; }
.rh-tendencies { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; align-items: center; }
.rh-level-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600;
  border: 1px solid;
}
.rh-desc { font-size: 14px; color: var(--text-2); line-height: 1.7; margin-top: 12px; }

/* 养生小贴士 */
.health-tip {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid; margin-bottom: 16px;
}
.health-tip-icon { font-size: 16px; line-height: 1.4; flex-shrink: 0; }
.health-tip-text { font-size: 14px; line-height: 1.7; }
.rh-time { font-size: 14px; color: var(--text-3); margin-top: 12px; }

/* 健康分值进度条 */
.health-bar { margin-top: 16px; }
.health-bar-track {
  width: 100%; height: 10px; background: rgba(255,255,255,0.08);
  border-radius: 5px; overflow: hidden;
}
.health-bar-fill {
  height: 100%; border-radius: 5px;
  transition: width 0.8s ease;
  box-shadow: 0 0 8px currentColor;
}
.health-bar-marks {
  display: flex; justify-content: space-between;
  margin-top: 4px; font-size: 10px; color: var(--text-3);
}
.section-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.r-sub-title { font-size: 13px; font-weight: 600; color: var(--glow); margin: 12px 0 6px; }
.r-text { color: var(--text-2); font-size: 13px; line-height: 1.7; }
.r-note { color: var(--text-3); font-size: 11px; line-height: 1.6; margin-top: 8px; padding: 8px 10px; background: rgba(255,255,255,0.03); border-radius: 8px; }
.exercise-tip { color: var(--text-2); font-size: 12px; line-height: 1.7; margin-top: 10px; padding: 10px 12px; background: rgba(0,217,255,0.05); border-left: 3px solid rgba(0,217,255,0.5); border-radius: 6px; }
.therapy-tip { color: var(--text-2); font-size: 12px; line-height: 1.7; margin-top: 10px; padding: 10px 12px; background: rgba(255,77,79,0.06); border-left: 3px solid rgba(255,77,79,0.5); border-radius: 6px; }
.img-thumbs { display: flex; gap: 8px; }
.img-thumbs img { width: calc(33.33% - 6px); aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--card-border); }
.img-placeholder {
  width: calc(33.33% - 6px); aspect-ratio: 1; border-radius: 8px;
  border: 1px dashed var(--card-border);
  display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: 12px; color: var(--text-2);
  background: rgba(255,255,255,0.03); line-height: 1.4;
}
.img-placeholder-full { width: 100%; aspect-ratio: auto; padding: 24px 12px; }
.recipe-card { padding: 16px; display: flex; gap: 12px; }
.recipe-item { display: flex; gap: 12px; padding: 14px 0; }
.recipe-item + .recipe-item { border-top: 1px solid rgba(255,255,255,0.07); }
.recipe-icon { font-size: 32px; flex-shrink: 0; }
.recipe-body { flex: 1; }
.recipe-name { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--glow); }
.recipe-content { font-size: 13px; color: var(--text-2); line-height: 1.7; white-space: pre-wrap; font-family: inherit; margin: 0; }

/* ===== 报告列表 ===== */
.report-item { padding: 14px 16px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap: 12px; }
.ri-left { flex: 1; min-width: 0; }
.ri-type { font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.ri-const { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ri-level { padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.ri-tip { display: flex; align-items: flex-start; gap: 4px; margin-top: 6px; font-size: 12.5px; line-height: 1.5; }
.ri-tip-text { opacity: 0.85; }
.ri-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ri-score { font-size: 24px; font-weight: 700; color: var(--glow); line-height: 1; }
.ri-score-unit { font-size: 12px; color: var(--text-2); margin-left: 1px; }
.ri-time { font-size: 12px; color: var(--text-3); }
.ri-arrow { color: var(--text-3); font-size: 20px; }
.ri-amount { color: var(--warning); font-weight: 600; }
.ri-member { color: var(--success); font-size: 12px; }

/* ===== 会员中心 ===== */
.member-status { padding: 20px; display: flex; align-items: center; gap: 16px; margin-bottom: 16px; background: linear-gradient(135deg, rgba(255,170,68,0.15), rgba(130,107,255,0.15)); }
.ms-icon { font-size: 40px; }
.ms-title { font-size: 18px; font-weight: 600; }
.ms-desc { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.member-plan { padding: 16px; margin-bottom: 12px; display: flex; align-items: center; cursor: pointer; position: relative; border: 1px solid var(--card-border); transition: all 0.2s; }
.member-plan.active { border-color: var(--glow); box-shadow: 0 0 16px rgba(0,217,255,0.2); }
.mp-left { flex: 1; }
.mp-name { font-size: 16px; font-weight: 600; }
.mp-desc { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.mp-price { font-size: 20px; font-weight: 700; color: var(--glow); }
.mp-price span { font-size: 12px; color: var(--text-2); font-weight: 400; }
.mp-badge { position: absolute; top: -8px; right: 8px; background: var(--danger); color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 8px; white-space: nowrap; }
.mp-check { position: absolute; top: 12px; right: 12px; color: var(--glow); font-weight: 700; }
.member-tips { padding: 12px 16px; color: var(--text-2); font-size: 12px; line-height: 1.6; margin: 10px 0; }
.member-refund-notice { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--card-border); color: var(--warning); font-size: 12px; line-height: 1.7; }
.balance-tip { text-align: center; color: var(--text-3); font-size: 12px; margin-top: 12px; }

/* ===== 会员退款规则与知情同意 ===== */
.refund-card { padding: 12px 16px; margin: 10px 0; font-size: 12px; line-height: 1.7; color: var(--text-2); }
.refund-title { font-size: 13px; font-weight: 600; color: var(--text-1); margin-bottom: 6px; }
.refund-line { margin-bottom: 4px; }
.refund-warn { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--card-border); color: var(--warning); font-weight: 700; }
.agree-row { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--text-2); line-height: 1.6; margin: 10px 0; cursor: pointer; }
.agree-row input { margin-top: 3px; flex-shrink: 0; }

/* ===== 充值页 ===== */
.balance-card { padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.bc-label { font-size: 13px; color: var(--text-2); }
.bc-amount { font-size: 22px; font-weight: 700; color: var(--glow); }
.recharge-title { font-size: 14px; color: var(--text-2); margin-bottom: 12px; }
.recharge-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.recharge-item { padding: 20px; text-align: center; cursor: pointer; border: 1px solid var(--card-border); }
.recharge-item.active { border-color: var(--glow); background: rgba(0,217,255,0.1); }
.ri-amount { font-size: 22px; font-weight: 700; color: var(--glow); }
.recharge-custom { margin-bottom: 20px; }
/* 自定义金额输入框栏高与可选金额格一致：20px×2 + 22px×1.5 + 边框2px = 75px */
.recharge-custom .el-input__wrapper { height: 75px; padding: 0 16px; }
.recharge-custom .el-input__inner { height: 75px; line-height: 75px; font-size: 18px; }
.recharge-tips { padding: 16px; color: var(--text-3); font-size: 12px; line-height: 1.8; margin-top: 16px; }

/* ===== 个人中心 ===== */
.user-card { padding: 20px; display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.uc-avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--purple)); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; overflow: hidden; flex-shrink: 0; }
.uc-avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.uc-name { font-size: 18px; font-weight: 600; }

/* 账户余额独立单行（余额数字紧贴文字，右侧会员权益摘要） */
.mine-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text-2);
}
.mine-balance-row .mbr-left { display: flex; align-items: center; gap: 8px; }
.mine-balance-row .mbr-amount { color: var(--warning); font-weight: 600; }
.mine-balance-row .mbr-member { font-size: 11px; color: var(--text-3); }

/* 头像设置栏（个人信息页） */
.avatar-setting { display: flex; flex-direction: column; align-items: center; margin-bottom: 18px; }
.as-preview {
  width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; cursor: pointer;
}
.as-preview img { width: 100%; height: 100%; object-fit: cover; }
.as-tip { font-size: 12px; color: var(--text-3); margin-top: 8px; cursor: pointer; }
.as-file { display: none; }
.tag-member { background: linear-gradient(135deg, #FFAA44, #FFCC00); color: #000; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }

/* ===== 菜单列表 ===== */
.menu-list { padding: 0; overflow: hidden; }
.menu-item { display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.05); cursor: pointer; }
.menu-item:last-child { border-bottom: none; }
.mi-icon { font-size: 18px; margin-right: 12px; }
.menu-item span:nth-child(2) { flex: 1; }
.mi-arrow { color: var(--text-3); }
/* 移动端菜单紧凑 */
@media (max-width: 768px) {
  .menu-item { padding: 10px 14px; }
  .mi-icon { font-size: 16px; margin-right: 10px; }
}

/* ===== 我的分享 ===== */
.share-overview { padding: 18px 16px; margin-bottom: 12px; }
.so-row { display: flex; justify-content: space-around; margin-bottom: 14px; }
.so-item { text-align: center; }
.so-num { font-size: 22px; font-weight: 700; color: var(--glow); }
.so-label { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.so-status { text-align: center; font-size: 13px; padding: 8px; border-radius: 8px; background: rgba(255,193,7,0.1); color: var(--warning); margin-bottom: 8px; }
.so-status.so-qualified { background: rgba(76,175,80,0.1); color: #4caf50; }
.so-total { text-align: center; font-size: 12px; color: var(--text-3); }
.share-poster-section { padding: 16px; margin-bottom: 12px; text-align: center; }
.sp-btn-row { display: flex; gap: 10px; }
.sp-btn { flex: 1; }
.sp-btn-transfer { background: linear-gradient(135deg, #43a047, #2e7d32); }
.poster-canvas-wrap { margin-top: 16px; }
.poster-card {
  position: relative; border-radius: 16px; overflow: hidden; max-width: 340px; margin: 0 auto 16px;
}
.poster-bg-img { display: block; width: 100%; height: auto; }
.poster-qr-overlay {
  position: absolute; top: 28%; left: 50%; transform: translateX(-50%);
  width: 36%; background: white; border-radius: 12px; padding: 5px; box-sizing: border-box;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.poster-qr-overlay svg { width: 100%; height: auto; display: block; }
.poster-code-overlay {
  position: absolute; top: 65%; left: 0; right: 0; text-align: center;
  font-size: 15px; font-weight: 700; color: #3a6b5e; letter-spacing: 2px;
}
.share-transfer { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; margin-bottom: 12px; }
.st-info { display: flex; flex-direction: column; }
.st-info span:first-child { font-size: 15px; font-weight: 600; }
.st-hint { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.btn-transfer { padding: 8px 18px; border: none; border-radius: 8px; background: var(--glow); color: white; font-size: 14px; cursor: pointer; white-space: nowrap; }
.btn-transfer:disabled { opacity: 0.5; }
.share-tabs { display: flex; margin-bottom: 12px; }
.share-tab { flex: 1; text-align: center; padding: 10px; font-size: 14px; color: var(--text-2); border-bottom: 2px solid transparent; cursor: pointer; }
.share-tab.active { color: var(--glow); border-bottom-color: var(--glow); font-weight: 600; }
.share-list { padding: 4px 0; }
.share-list-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.share-list-item:last-child { border-bottom: none; }
.sli-name { font-size: 14px; font-weight: 500; }
.sli-phone { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.sli-right { text-align: right; }
.sli-amount { font-size: 15px; font-weight: 700; color: #4caf50; }
.sli-tag { font-size: 11px; padding: 2px 6px; border-radius: 4px; display: inline-block; margin-top: 2px; }
.tag-valid { background: rgba(76,175,80,0.15); color: #4caf50; }
.tag-pending { background: rgba(255,193,7,0.15); color: var(--warning); }
.sli-time { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.empty-tip { text-align: center; padding: 30px; color: var(--text-3); font-size: 14px; }

/* ===== 分享说明 ===== */
.share-guide { padding: 18px 16px; margin-bottom: 12px; }
.sg-intro p { font-size: 13px; color: var(--text-2); line-height: 1.8; margin: 0 0 6px 0; }
.sg-title { font-size: 15px; font-weight: 700; color: var(--glow); margin: 14px 0 12px 0; }
.sg-item { display: flex; gap: 10px; margin-bottom: 14px; }
.sg-num { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--glow); color: white; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.sg-item > div { flex: 1; }
.sg-label { display: block; font-size: 14px; font-weight: 600; color: var(--text-1); margin-bottom: 2px; }
.sg-text { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.sg-text b { color: var(--glow); }
.sg-outro { text-align: center; font-size: 14px; font-weight: 600; color: var(--glow); margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.06); }

/* ===== 订单/退款列表 ===== */
.order-item { padding: 14px 16px; margin-bottom: 10px; }
.oi-top { display: flex; justify-content: space-between; margin-bottom: 8px; }
.oi-type { font-weight: 600; }
.oi-amount { color: var(--glow); font-weight: 700; }
.oi-no { font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.oi-bottom { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); }
.oi-remark { font-size: 12px; color: var(--warning); margin-top: 6px; }
.st-success { color: var(--success); }
.st-pending { color: var(--warning); }
.st-error { color: var(--danger); }

/* ===== 余额退款 ===== */
.refund-apply-card { padding: 18px 16px; }
.rac-balance { display: flex; align-items: baseline; justify-content: space-between; }
.rac-label { font-size: 13px; color: var(--text-2); }
.rac-amount { font-size: 26px; font-weight: 700; color: var(--glow); }
.rac-input-row { display: flex; gap: 10px; align-items: center; }
.rac-all-btn {
  flex-shrink: 0; height: 32px; padding: 0 16px; border-radius: 10px;
  background: rgba(0, 217, 255, 0.12); color: var(--glow);
  border: 1px solid rgba(0, 217, 255, 0.35); font-size: 13px; cursor: pointer;
}
.rac-all-btn:active { transform: scale(0.96); }
.rac-tips { margin-top: 14px; }
.rac-tips p { font-size: 12px; color: var(--text-3); line-height: 1.9; }
.st-default { color: var(--text-3); }

/* ===== 空状态 ===== */
.empty { text-align: center; padding: 60px 20px; color: var(--text-2); }
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.logout-btn { margin: 20px 0; width: 100%; }

/* ===== 通用 ===== */
.loading-tip { text-align: center; padding: 40px; color: var(--text-2); }

/* ===== 图像特征分析 ===== */
.feat-note { font-size: 11px; color: var(--text-3); line-height: 1.5; margin-bottom: 12px; padding: 8px 10px; background: rgba(0,217,255,0.05); border-radius: 8px; }
.feat-group { margin-bottom: 14px; }
.feat-group:last-child { margin-bottom: 0; }
.feat-group-title { font-size: 13px; font-weight: 600; color: var(--glow); margin-bottom: 8px; padding-left: 8px; border-left: 3px solid var(--glow); }
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.feat-item { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; background: rgba(255,255,255,0.04); border-radius: 8px; gap: 8px; }
.feat-key { font-size: 12px; color: var(--text-2); flex-shrink: 0; }
.feat-val { font-size: 12px; color: var(--text); font-weight: 500; text-align: right; }
@media (max-width: 480px) {
  .feat-grid { grid-template-columns: 1fr; }
}

/* ===== 免责声明 ===== */
.disclaimer {
  background: rgba(255, 170, 68, 0.08);
  border: 1px solid rgba(255, 170, 68, 0.2);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--warning);
  line-height: 1.5;
  margin: 8px 0 0;
  flex-shrink: 0;
}
.disclaimer strong { color: #FFCC77; }

/* 隐私协议标签（我的页面，隐私说明上方，靠左对齐） */
.privacy-link {
  text-align: left;
  margin: 12px 0 6px;
}
.privacy-link a {
  font-size: 11px;
  color: var(--text-3);
  text-decoration: none;
}
.privacy-link a:active { color: var(--primary); }

/* ===== Element Plus 暗色覆盖 ===== */
.el-input__wrapper, .el-textarea__inner {
  background: rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 0 0 1px var(--card-border) inset !important;
}
.el-input__inner, .el-textarea__inner { color: var(--text) !important; }
.el-input__inner::placeholder, .el-textarea__inner::placeholder { color: var(--text-3) !important; }
.el-button { border-radius: 12px; }
.el-message { background: var(--bg-2) !important; border: 1px solid var(--card-border) !important; }

/* ===== H5 改密弹窗（与后台管理端同款暗色三字段表单） ===== */
/* class 可能落在 .el-dialog 或外层 .el-overlay 上，两种都覆盖 */
.tcm-pwd-dialog .el-dialog,
.el-dialog.tcm-pwd-dialog {
  --el-dialog-bg-color: var(--bg-2);
  background: var(--bg-2) !important;
  border: 1px solid var(--card-border);
  border-radius: 16px;
}
.tcm-pwd-dialog .el-dialog__title { color: var(--text); font-weight: 600; }
.tcm-pwd-dialog .el-dialog__headerbtn .el-dialog__close { color: var(--text-3); }
.tcm-pwd-dialog .el-dialog__body { padding-top: 12px; }
.tcm-pwd-dialog .el-form-item { margin-bottom: 14px; }
.tcm-pwd-dialog .el-form-item__label { color: var(--text) !important; }
.tcm-pwd-dialog .el-input__wrapper {
  background: rgba(10, 18, 40, 0.85) !important;
  box-shadow: 0 0 0 1px var(--card-border) inset !important;
  border-radius: 10px;
}
.tcm-pwd-dialog .el-input__inner { color: var(--text) !important; font-size: 14.5px; }
.tcm-pwd-dialog .el-input__inner::placeholder { color: var(--text-3) !important; }
.tcm-pwd-dialog .el-dialog__footer { padding-top: 8px; }
.tcm-pwd-dialog .el-button {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--card-border) !important;
  color: var(--text) !important;
}
.tcm-pwd-dialog .el-button:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: var(--glow) !important;
  color: var(--glow) !important;
}
.tcm-pwd-dialog .el-button--primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}
.tcm-pwd-dialog .el-button--primary:hover {
  background: #4a9eff !important;
  border-color: #4a9eff !important;
  color: #fff !important;
}
/* 覆盖浏览器自动填充导致的白底黑字 */
.tcm-pwd-dialog .el-input__inner:-webkit-autofill,
.tcm-pwd-dialog .el-input__inner:-webkit-autofill:hover,
.tcm-pwd-dialog .el-input__inner:-webkit-autofill:focus,
.tcm-pwd-dialog .el-input__inner:-webkit-autofill:active {
  -webkit-text-fill-color: #F0F6FF !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(10, 18, 40, 0.95) inset !important;
  box-shadow: 0 0 0 1000px rgba(10, 18, 40, 0.95) inset !important;
  caret-color: #F0F6FF !important;
  transition: background-color 9999s ease-in-out 0s;
}

/* 体质标签 */
.constitution-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

/* ===== 温馨弹窗（余额不足） ===== */
.tcm-dialog.el-message-box {
  background: linear-gradient(160deg, #1a2550 0%, #0f1a3a 100%) !important;
  border: 1px solid rgba(0, 217, 255, 0.25) !important;
  border-radius: 20px !important;
  padding: 0 !important;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(41, 123, 255, 0.15) !important;
  width: 270px !important;
}
.tcm-dialog .el-message-box__header {
  padding: 24px 16px 0 !important;
  text-align: center;
}
.tcm-dialog .el-message-box__title {
  color: #F0F6FF !important;
  font-size: 18px !important;
  font-weight: 600 !important;
}
.tcm-dialog .el-message-box__headerbtn {
  top: 14px !important;
  right: 14px !important;
}
.tcm-dialog .el-message-box__headerbtn .el-message-box__close {
  color: #6B7FA3 !important;
  font-size: 18px;
}
.tcm-dialog .el-message-box__content {
  padding: 16px 16px 8px !important;
  text-align: center;
}
.tcm-dialog .el-message-box__message {
  color: #C4D5F2 !important;
  font-size: 14px !important;
  line-height: 1.7;
}
.tcm-dialog .el-message-box__message p {
  margin: 4px 0;
}
.tcm-dialog .tcm-dialog-icon {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
}
.tcm-dialog .tcm-balance-info {
  margin: 14px 0 4px;
  padding: 12px 16px;
  background: rgba(41, 123, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 12px;
  font-size: 13px;
}
.tcm-dialog .tcm-balance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}
.tcm-dialog .tcm-balance-label {
  color: #9FB3D9;
}
.tcm-dialog .tcm-balance-val {
  color: #FFAA44;
  font-weight: 600;
  font-size: 15px;
}
.tcm-dialog .tcm-balance-val.need {
  color: #00D9FF;
}
.tcm-dialog .el-message-box__btns {
  padding: 16px 16px 22px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.tcm-dialog .el-message-box__btns .el-button {
  width: 200px !important;
  margin: 0 !important;
  border-radius: 12px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  height: 42px !important;
}
.tcm-dialog .el-message-box__btns .el-button--primary {
  background: linear-gradient(135deg, #297BFF, #826BFF) !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(41, 123, 255, 0.4) !important;
}
.tcm-dialog .el-message-box__btns .el-button--default {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #A0B4D8 !important;
}
.tcm-dialog .el-message-box__btns .el-button--default:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #F0F6FF !important;
}
/* 遮罩层 */
.tcm-dialog-overlay {
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(4px);
}

/* ===== 充值页 ===== */
.page-recharge { padding-bottom: 16px; }

/* ===== 充值页：支付方式选择 ===== */
.pay-method-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.pay-method-item { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; border-width: 1px; }
.pay-method-item.active { border-color: var(--glow); box-shadow: 0 0 12px rgba(0, 217, 255, 0.35); }
.pay-method-disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.pm-icon { flex-shrink: 0; display: flex; align-items: center; }
.pm-info { flex: 1; min-width: 0; }
.pm-name { font-size: 14px; font-weight: 600; }
.pm-sub { font-size: 11px; color: var(--text-3); margin-top: 1px; }

/* ===== 支付结果页 ===== */
.pay-result-card { margin-top: 8vh; padding: 40px 24px; text-align: center; }
.pr-icon { font-size: 52px; margin-bottom: 12px; }
.pr-ok { animation: prPop 0.4s ease; }
.pr-fail { opacity: 0.9; }
@keyframes prPop { 0% { transform: scale(0.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.pr-title { font-size: 20px; font-weight: 700; }
.pr-amount { font-size: 32px; font-weight: 700; color: var(--glow); margin-top: 12px; }
.pr-desc { color: var(--text-2); font-size: 13px; margin-top: 10px; line-height: 1.6; }
.pr-order { color: var(--text-3); font-size: 11px; margin-top: 14px; word-break: break-all; }
.pr-spin { width: 28px; height: 28px; margin: 24px auto 0; border: 3px solid rgba(0, 217, 255, 0.2); border-top-color: var(--glow); border-radius: 50%; animation: prSpin 0.9s linear infinite; }
@keyframes prSpin { to { transform: rotate(360deg); } }

/* ===== 客服：通用 ===== */
.inline-link { color: var(--glow); cursor: pointer; text-decoration: underline; }
.mi-unread {
  background: var(--danger); color: #fff; font-size: 11px; line-height: 1;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; margin-right: 8px;
}

/* ===== 客服：工单列表页 ===== */
.support-login-tip {
  padding: 36px 24px; text-align: center; margin-top: 24px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.slt-icon { font-size: 44px; }
.slt-text { color: var(--text-2); font-size: 14px; line-height: 1.7; }
.support-new-btn { width: 100%; margin-bottom: 14px; }
.support-ticket-card { padding: 14px 16px; margin-bottom: 10px; cursor: pointer; }
.stc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 10px; }
.stc-subject { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stc-time { font-size: 12px; color: var(--text-3); flex-shrink: 0; }
.stc-bottom { display: flex; align-items: center; gap: 8px; }
.stc-preview { flex: 1; font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stc-badge { font-size: 11px; padding: 2px 8px; border-radius: 10px; flex-shrink: 0; }
.stc-status-0 { background: rgba(255,170,68,0.15); color: var(--warning); }
.stc-status-1 { background: rgba(40,216,161,0.15); color: var(--success); }
.stc-status-2 { background: rgba(255,255,255,0.08); color: var(--text-3); }
.stc-unread {
  background: var(--danger); color: #fff; font-size: 11px; line-height: 1;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.support-empty { text-align: center; color: var(--text-3); padding: 60px 0; }
.se-icon { font-size: 44px; margin-bottom: 12px; }
.se-sub { font-size: 12px; margin-top: 6px; }

/* ===== 客服：对话页 ===== */
.page-support-chat { display: flex; flex-direction: column; height: 100dvh; padding-bottom: 0; }
.chat-status-bar {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  font-size: 12px; color: var(--text-2);
}
.csb-dot { width: 8px; height: 8px; border-radius: 50%; }
.csb-dot-0 { background: var(--warning); }
.csb-dot-1 { background: var(--success); }
.csb-dot-2 { background: var(--text-3); }
.chat-messages { flex: 1; overflow-y: auto; padding: 8px 12px 16px; }
.chat-welcome {
  text-align: center; color: var(--text-2); font-size: 13px;
  background: rgba(255,255,255,0.04); border-radius: 12px; padding: 18px 16px; margin: 12px 8px;
}
.cw-icon { font-size: 28px; margin-bottom: 8px; }
.chat-msg-row { display: flex; margin-bottom: 14px; gap: 8px; }
.msg-right { flex-direction: row-reverse; }
.chat-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
}
.msg-left .chat-avatar { background: rgba(40,216,161,0.2); color: var(--success); }
.msg-right .chat-avatar { background: rgba(41,123,255,0.25); color: #8ab4ff; }
.chat-bubble { max-width: 76%; }
.msg-right .chat-bubble { display: flex; flex-direction: column; align-items: flex-end; }
.cb-text {
  font-size: 14px; line-height: 1.6; padding: 10px 12px; border-radius: 12px;
  background: rgba(255,255,255,0.07); word-break: break-word; white-space: pre-wrap;
}
.msg-right .cb-text {
  background: linear-gradient(135deg, rgba(41,123,255,0.85), rgba(130,107,255,0.85));
  color: #fff;
}
.cb-images { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.cb-img { width: 110px; height: 110px; object-fit: cover; border-radius: 8px; cursor: pointer; background: rgba(255,255,255,0.05); }
.cb-time { font-size: 10px; color: var(--text-3); margin-top: 4px; }

/* 待发送图片 */
.chat-pending-images { display: flex; gap: 8px; padding: 8px 12px 0; flex-wrap: wrap; }
.cpi-item { position: relative; }
.cpi-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; opacity: 0.85; }
.cpi-remove {
  position: absolute; top: -6px; right: -6px; width: 18px; height: 18px;
  background: rgba(0,0,0,0.7); color: #fff; border-radius: 50%;
  font-size: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.cpi-loading {
  position: absolute; inset: 0; background: rgba(0,0,0,0.45); border-radius: 8px;
  color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center;
}

/* 输入区 */
.chat-input-bar {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,0.08); background: rgba(9,16,38,0.95);
}
.cib-image-btn { font-size: 22px; cursor: pointer; padding-bottom: 6px; flex-shrink: 0; }
.cib-input {
  flex: 1; resize: none; max-height: 80px; line-height: 1.5;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 9px 12px; color: var(--text); font-size: 14px;
  font-family: inherit; outline: none;
}
.cib-send {
  flex-shrink: 0; border: none; border-radius: 10px; padding: 0 18px; height: 40px;
  background: linear-gradient(135deg, #297BFF, #826BFF); color: #fff;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.cib-send:disabled { opacity: 0.45; cursor: not-allowed; }
