/* ═══════════════════════════════════════════════
   安脑智联 · 康复智能服务系统 H5 样式
   手机端优先（375-480px），桌面居中模拟手机壳
   ═══════════════════════════════════════════════ */
:root {
  --blue: #2f7bff;
  --blue-deep: #1e5fe0;
  --blue-dark: #123c96;
  --ink: #16325c;
  --text: #33475e;
  --muted: #7f95b5;
  --line: #dfe9f5;
  --card: #ffffff;
  --bg-top: #ffffff;
  --bg-bot: #d9ecff;
  --cyan: #18b7d9;
  --green: #2fbf83;
  --purple: #6f6bf0;
  --orange: #ff9f43;
  --radius: 18px;
  --shadow: 0 8px 24px rgba(47, 123, 255, .10);
  --shadow-sm: 0 3px 10px rgba(47, 123, 255, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
/* ── 浏览器广告反注入（部分手机浏览器会向页面顶层插入推广节点）──
   本应用 body 顶层只允许 #app 与脚本/样式存在，其余一律隐藏 */
body > :not(#app):not(script):not(style):not(link):not(noscript) { display: none !important; }
html > body { margin: 0; }
body {
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system, sans-serif;
  background: linear-gradient(160deg, #cfe4fb, #eaf4ff 45%, #d7e9fb);
  color: var(--text);
  display: flex;
  justify-content: center;
  min-height: 100dvh;
}
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input { font-family: inherit; border: none; outline: none; }
b { font-weight: 600; }

/* ── 手机壳 ── */
.phone {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 100dvh;
  background:
    radial-gradient(circle at 85% 12%, rgba(122, 183, 255, .25), transparent 34%),
    radial-gradient(circle at 8% 40%, rgba(122, 183, 255, .18), transparent 30%),
    radial-gradient(circle at 90% 62%, rgba(96, 165, 250, .16), transparent 28%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bot));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(30, 95, 224, .18);
}
@media (min-width: 480px) {
  body { padding: 14px 0; }
  .phone { height: calc(100dvh - 28px); border-radius: 36px; }
}

/* ═══════════ 顶部栏 ═══════════ */
.topbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 10px;
  padding-top: calc(14px + env(safe-area-inset-top));   /* PWA 全屏/刘海屏时避开状态栏 */
  z-index: 20;
}
/* PWA 独立窗口（standalone/fullscreen）：铺满全屏的补充适配 */
@media (display-mode: standalone), (display-mode: fullscreen) {
  .phone { height: 100dvh; }
  .chat-fab { bottom: calc(78px + env(safe-area-inset-bottom)); }
}
.menu-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.brand {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 1px;
}
.top-actions { margin-left: auto; display: flex; gap: 10px; }
.icon-pill {
  width: 40px; height: 40px;
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform .15s;
}
.icon-pill:active { transform: scale(.92); }
.icon-pill.off { color: #b6c6dd; }

/* ═══════════ 页面容器 ═══════════ */
.pages {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.page {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 18px 130px;
  opacity: 0;
  transform: translateX(18px);
  pointer-events: none;
  transition: opacity .28s ease, transform .28s ease;
  visibility: hidden;
}
.page.active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
}

/* ── 页面底色（底图以真实 <img> 元素参与排版、随内容滚动）── */
.page-expert, .page-game, .page-mine {
  background: linear-gradient(180deg, #ffffff 0%, #eef5fd 45%, #d9ecff 100%);
}

/* ═══════════ 通用：评估横幅卡 ═══════════ */
.assess-banner {
  position: relative;
  z-index: 2;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(120deg, #ffffff, #eef6ff 60%, #e3f0ff);
  border: 1px solid #eaf2fd;
  border-radius: 20px;
  padding: 0 14px;
  box-shadow: var(--shadow-sm);
}
.assess-icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 4px 8px rgba(47, 123, 255, .25));
}
.assess-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.assess-text b { font-size: 15.5px; color: var(--ink); }
.assess-text span { font-size: 12px; color: var(--muted); }
.assess-go {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f8cff, var(--blue-deep));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(47, 123, 255, .35);
}

/* ═══════════ Hero 舞台：底图全幅出血、随内容滚动 ═══════════
   设计稿 524x1080 → 手机 420 宽映射（s=0.8015）；stage 顶部对齐手机顶部（page -64px），
   裁切高度与文字叠加位置按设计稿坐标换算，随宽度等比缩放 */
.stage {
  position: relative;
  margin: 0 -18px;
  overflow: hidden;
}
.stage-img { display: block; width: 100%; }

/* 专家/我的页：横幅下缘(page 119)起，图顶需到 page -64 → margin-top -183px；
   裁切到设计稿按钮区起点 phone 641 → 高 641/420*1024 = 1563 */
.stage-expert, .stage-mine {
  aspect-ratio: 1024 / 1563;
  margin-top: calc(var(--u) * -43.6);
}
/* 文字叠压区：设计稿 Hi 顶部 phone 327 → 327/641 = 51% */
.stage-caption {
  position: absolute;
  top: 51%;
  left: 22px;
  right: 22px;
}
.hi-script {
  font-family: "Segoe Script", "Comic Sans MS", cursive;
  font-size: 34px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.date-chip {
  position: absolute;
  right: 0;
  top: 0;
  background: var(--card);
  border-radius: 12px;
  padding: 5px 9px 6px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid #eef3fb;
}
.date-chip-tag {
  display: block;
  font-size: 9px;
  color: #fff;
  background: linear-gradient(135deg, #4f8cff, var(--blue-deep));
  border-radius: 6px;
  padding: 1px 6px;
  margin: 0 auto 3px;
  width: fit-content;
}
.date-chip-day { font-size: 16px; font-weight: 800; color: var(--ink); }
.hero-title {
  font-size: 25px;
  font-weight: 800;
  color: var(--ink);
  margin: 12px 0;
}
.hero-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  text-align: justify;
}

/* ═══════════ 功能按钮 2x2（按设计稿叠压在底图浅蓝背板上） ═══════════ */
.feat-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: calc(var(--u) * -34.8);   /* 上移叠回底图：设计稿按钮区起点 phone 495 */
}
.feat-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid #cfe3fa;
  border-radius: 14px;
  padding: 13px 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .15s;
}
.feat-btn:active { transform: scale(.96); }
.feat-ico {
  width: 24px; height: 24px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.ico-blue { background: linear-gradient(135deg, #4f9dff, #2f6fe8); }
.ico-purple { background: linear-gradient(135deg, #8f8bff, #5a55e8); }
.ico-cyan { background: linear-gradient(135deg, #3ecfe8, #18a0d9); }
.ico-green { background: linear-gradient(135deg, #4fd89f, #21b077); }

/* ═══════════ 提示卡 ═══════════ */
.notice-card {
  position: relative;
  z-index: 2;
  margin-top: 38px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(120deg, #f4faff, #e8f3ff);
  border: 1px solid #d9eafd;
  border-radius: 16px;
  padding: 12px 18px 12px 14px;
  box-shadow: var(--shadow-sm);
}
.notice-ico {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: #e3efff;
  display: flex; align-items: center; justify-content: center;
}
.notice-text { display: flex; flex-direction: column; }
.notice-text b { font-size: 13.5px; color: var(--ink); }
.notice-text span { font-size: 11.5px; color: var(--muted); }

/* ═══════════ CV 游戏页 ═══════════ */
/* 宽度缩放单位：1 单位 = 手机宽度 1%（封顶 420px），使像素对位在任何手机宽度等比缩放 */
:root { --u: min(1vw, 4.2px); }

.game-sub { display: none; }
.game-sub.active { display: block; animation: fadeUp .3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* 训练大图（含抬头文字）：仅"训练"子面板显示 */
.game-hero { display: none; }
#page-game[data-sub="train"] .game-hero { display: block; }

/* 小标题（设计稿 phone y104 → page 40） */
.page-kicker {
  position: relative;
  z-index: 2;
  font-size: 16px;
  line-height: 20px;
  color: var(--muted);
  margin: calc(var(--u) * 8.6) 0 0;
  font-weight: 500;
}

/* 游戏横幅舞台：底图蓝卡随内容滚动，文字叠加卡内底部
   图内蓝卡 y388-910 → phone 132-346（图顶对齐 page -91）；
   裁切到卡底下缘+阴影余量：stage 高 383 phone → 383/420*1024 = 934 */
.stage-game {
  aspect-ratio: 1024 / 934;
  margin-top: calc(var(--u) * -36);
}
.banner-caption {
  position: absolute;
  left: 0; right: 0; top: 87%;
  text-align: center;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}
#gsub-train .section-head { margin-top: 6px; }

/* 游戏页内部导航：文档流内，位于大图下方、"入口"栏目上方（随内容滚动） */
.game-subnav {
  display: flex;
  margin: calc(var(--u) * 3.4) 0 calc(var(--u) * 1.5);
  height: 58px;
  background: rgba(255, 255, 255, .95);
  border: 1px solid #e8f0fa;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(47, 123, 255, .14);
}
.gsub-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #93a9c9;
  font-size: 11px;
  font-weight: 600;
  border-radius: 18px;
}
.gsub-btn.active { color: var(--blue); }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 2px 12px;
}
.section-head h3 { font-size: 17px; font-weight: 800; color: var(--ink); }
.more-link {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 12.5px; color: var(--muted);
}

/* 入口横滑卡 */
.entry-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: none;
}
.entry-scroll::-webkit-scrollbar { display: none; }
.entry-card {
  flex: none;
  width: 112px;
  background: var(--card);
  border: 1px solid #eaf1fa;
  border-radius: 16px;
  padding: 12px 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s;
}
.entry-card:active { transform: scale(.95); }
.entry-label { font-size: 13.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }

.entry-thumb {
  width: 76px; height: 76px;
  display: flex; align-items: center; justify-content: center;
}
/* 写实插画图标的浅色底衬，增强立体感 */
.entry-card[data-game="limb"] .entry-thumb,
.entry-card[data-game="attention"] .entry-thumb,
.entry-card[data-game="memory-match"] .entry-thumb {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #ffffff, #eef5ff 78%);
  box-shadow: inset 0 0 0 1px rgba(79, 140, 255, .12);
}

/* 统计卡 */
.stats-card {
  position: relative;
  margin-top: 16px;
  background: linear-gradient(160deg, #fdfefe, #f2f9ff);
  border: 1px solid #e8f1fb;
  border-radius: 20px;
  padding: 18px 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: var(--shadow);
}
.stats-fab {
  position: absolute;
  top: -12px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f8cff, var(--blue-deep));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(47, 123, 255, .4);
}
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stat-label { font-size: 11.5px; color: var(--muted); }
.stat-num { font-size: 12px; color: var(--muted); }
.stat-num b { font-size: 24px; color: var(--ink); font-weight: 800; }
.stat-num i, .stat-num.big i { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 2px; }
.stat-num.big b { font-size: 26px; }
.stat-divider { width: 1px; height: 40px; background: var(--line); }
.ring {
  width: 66px; height: 66px;
  border-radius: 50%;
  background: conic-gradient(var(--blue) calc(var(--pct, 86) * 1%), #dbe9fb 0);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.ring::before {
  content: "";
  position: absolute;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #fff;
}
.ring span { position: relative; font-size: 11px; color: var(--muted); }
.ring b { font-size: 18px; color: var(--ink); }
.ring i { font-style: normal; }

/* 游戏库 */
.lib-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.lib-card {
  text-align: left;
  background: var(--card);
  border: 1px solid #eaf1fa;
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s;
}
.lib-card:not(.disabled):active { transform: scale(.96); }
.lib-card.disabled { opacity: .55; }
.lib-emoji { font-size: 26px; }
.lib-card b { font-size: 14.5px; color: var(--ink); }
.lib-desc { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.lib-tag {
  font-size: 10.5px;
  color: var(--blue);
  background: #e9f2ff;
  border-radius: 999px;
  padding: 3px 8px;
  width: fit-content;
}
.lib-tag.soon { color: #b08930; background: #fdf3df; }

/* 进度面板 */
.progress-panel {
  background: var(--card);
  border-radius: 18px;
  border: 1px solid #eaf1fa;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.prog-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink); margin-bottom: 10px; }
.prog-row b { color: var(--blue); }
.prog-bar { height: 10px; border-radius: 999px; background: #e4eefb; overflow: hidden; }
.prog-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #4f8cff, #37e0a0); transition: width .6s ease; }
.prog-hint { font-size: 12px; color: var(--muted); margin-top: 10px; }
.prog-hint b { color: var(--blue); }
.prog-days { display: flex; justify-content: space-between; margin-top: 14px; }
.prog-days .d {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  background: #eef4fc;
  color: var(--muted);
}
.prog-days .d.done { background: linear-gradient(135deg, #4f8cff, var(--blue-deep)); color: #fff; }
.prog-days .d.today { border: 2px solid var(--blue); color: var(--blue); font-weight: 700; }

.record-list { display: flex; flex-direction: column; gap: 10px; }
.record-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--card);
  border: 1px solid #eaf1fa;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}
.r-emoji { font-size: 22px; }
.r-main { flex: 1; display: flex; flex-direction: column; }
.r-main b { font-size: 14px; color: var(--ink); }
.r-main span { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.r-time { font-size: 11.5px; color: var(--muted); }

/* 游戏内-我的 */
.profile-panel {
  display: flex; align-items: center; gap: 12px;
  background: var(--card);
  border-radius: 18px;
  border: 1px solid #eaf1fa;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.pp-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f8cff, var(--blue-deep));
  color: #fff;
  font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.pp-info { display: flex; flex-direction: column; }
.pp-info b { font-size: 15.5px; color: var(--ink); }
.pp-info span { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pp-stats {
  display: flex;
  justify-content: space-around;
  background: var(--card);
  border-radius: 18px;
  border: 1px solid #eaf1fa;
  padding: 16px 8px;
  margin-top: 12px;
  box-shadow: var(--shadow-sm);
}
.pp-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pp-stat b { font-size: 20px; color: var(--blue); font-weight: 800; }
.pp-stat span { font-size: 11px; color: var(--muted); }
.pp-tip { font-size: 11.5px; color: var(--muted); margin-top: 14px; line-height: 1.6; text-align: center; }

/* ═══════════ 商城页 ═══════════ */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid #e6eefb;
  border-radius: 999px;
  padding: 6px 6px 6px 16px;
  box-shadow: var(--shadow-sm);
  margin-top: 28px;
}
.search-bar input { flex: 1; font-size: 15px; color: var(--ink); background: transparent; }
.search-bar input::placeholder { color: #9db4d4; }
.search-go {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f8cff, var(--blue-deep));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(47, 123, 255, .35);
  flex: none;
}
.mall-title { font-size: 27px; font-weight: 800; color: var(--ink); margin: 24px 2px 16px; }
.mall-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid #e2edf9;
  margin-bottom: 24px;
}
.mall-tabs::-webkit-scrollbar { display: none; }
.mall-tab {
  flex: none;
  padding: 8px 13px 10px;
  font-size: 15px;
  color: var(--muted);
  position: relative;
  font-weight: 600;
}
.mall-tab.active { color: var(--ink); font-weight: 700; }
.mall-tab.active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 4px;
  transform: translateX(-50%);
  width: 22px; height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #4f8cff, var(--blue-deep));
}

.goods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
/* 栏目切换：商品网格与租赁列表互斥显示（hidden 属性需压过上面的 display 声明） */
.goods-grid[hidden],
.rent-list[hidden] { display: none !important; }
.goods-card {
  background: linear-gradient(165deg, #f2f9ff, #e3f0ff);
  border: 1px solid #ddebf9;
  border-radius: 20px;
  padding: 10px;
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform .15s;
  cursor: pointer;
}
.goods-card:active { transform: scale(.96); }
.goods-inner {
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.goods-thumb {
  height: 116px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #f4faff, #dcebfc);
}
/* 淘宝/京东式实拍图：圆角矩形 + 实物照片铺满裁切 */
.goods-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.goods-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  padding: 12px 6px 14px;
  border-top: 1px solid #eef4fb;
}

/* 购物车条（已选商品列表入口，点击弹层查看） */
.cart-strip {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid #e6eefb;
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}
.cart-ico {
  width: 36px; height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, #4f9dff, var(--blue-deep));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(47, 123, 255, .3);
}
.cart-label { flex: 1; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.cart-count { font-size: 12.5px; color: var(--muted); }

/* ── 租赁设备列表（参照租赁器材1设计稿） ── */
.rent-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rent-card {
  display: flex;
  gap: 12px;
  background: var(--card);
  border: 1px solid #eaf1fa;
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .15s;
}
.rent-card:active { transform: scale(.97); }
.rent-thumb {
  position: relative;
  width: 118px;
  height: 112px;
  flex: none;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, #f4faff, #dcebfc);
}
.rent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* 角标缎带（绿色/青色，仿设计稿左上角斜角标） */
.rent-ribbon {
  position: absolute;
  top: 9px;
  left: -32px;
  width: 112px;
  transform: rotate(-45deg);
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  padding: 3px 0;
  letter-spacing: 1px;
  z-index: 2;
}
.rb-green { background: linear-gradient(135deg, #3bd18b, #1fa96c); }
.rb-teal { background: linear-gradient(135deg, #38c7d8, #149cb8); }
.rent-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rent-line1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rent-name { font-size: 16px; font-weight: 800; color: var(--ink); }
.rent-badge {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.b-green { color: #fff; background: linear-gradient(135deg, #3bd18b, #1fa96c); }
.b-teal { color: #18a0b8; border: 1px solid #7fd7e4; background: #f0fcfe; }
.b-blue { color: var(--blue); border: 1px solid #b9d4fb; background: #f0f6ff; }
.rent-hp {
  width: fit-content;
  font-size: 11px;
  font-weight: 700;
  color: #1fa96c;
  background: #e5f8ee;
  border: 1px solid #bfead4;
  border-radius: 6px;
  padding: 2px 7px;
}
.rent-tags { font-size: 12px; color: var(--muted); }
.rent-price-row {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.rent-price { color: #ff6a45; font-size: 22px; font-weight: 800; }
.rent-price i { font-style: normal; font-size: 13px; margin-right: 1px; }
.rent-price em { font-style: normal; font-size: 12px; font-weight: 600; margin-left: 2px; }
.rent-deposit { font-size: 11.5px; color: var(--muted); }

/* ── 租赁设备二级页（订单确认，参照租赁器材2设计稿） ── */
.rental-page {
  position: absolute;
  inset: 0;
  z-index: 45;
  background: linear-gradient(180deg, #f6fbff, #e9f3fd);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s ease;
  visibility: hidden;
}
.rental-page.open {
  transform: none;
  visibility: visible;
}
.rental-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  padding-top: calc(14px + env(safe-area-inset-top));
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid #e8f0fa;
}
.rental-back {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: #f1f6fc;
}
.rental-head-title { font-size: 16.5px; font-weight: 800; color: var(--ink); }
.rental-head-ph { width: 36px; }
.rental-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 16px calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rental-card {
  background: var(--card);
  border: 1px solid #eaf1fa;
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
/* 商品信息卡 */
.rental-card .rp-img {
  width: 108px;
  height: 108px;
  object-fit: cover;
  border-radius: 12px;
  background: #f4f9ff;
  float: left;
  margin-right: 14px;
}
.rp-info { overflow: hidden; display: flex; flex-direction: column; gap: 7px; }
.rp-name { font-size: 16px; font-weight: 800; color: var(--ink); }
.rp-chip {
  width: fit-content;
  font-size: 11px;
  color: var(--blue);
  border: 1px solid #b9d4fb;
  background: #f0f6ff;
  border-radius: 999px;
  padding: 2px 10px;
}
.rp-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
}
.rp-row b { font-size: 13.5px; color: var(--ink); }
.rp-periods { display: flex; gap: 5px; }
.rp-p {
  font-size: 10.5px;
  color: var(--muted);
  background: #f1f6fc;
  border: 1px solid #e2ecf8;
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
}
.rp-p.active {
  color: #fff;
  background: linear-gradient(135deg, #4f8cff, var(--blue-deep));
  border-color: transparent;
  font-weight: 700;
}
.rp-note { font-size: 11px; color: var(--muted); text-align: right; }
/* HP 抵扣横幅 */
.rental-hp {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(120deg, #3f8bff, #1fae8f);
  border-radius: 16px;
  padding: 12px 14px;
  color: #fff;
  box-shadow: 0 6px 16px rgba(47, 123, 255, .25);
}
.hp-badge {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .5);
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px;
  font-weight: 800;
}
.hp-text { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.hp-text b { font-size: 14px; }
.hp-text b i { font-style: normal; color: #ffe27a; }
.hp-text span { font-size: 11px; opacity: .85; }
/* 上门服务时间 */
.rental-time { display: flex; align-items: center; gap: 12px; }
.rt-ico {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: #e9f2ff;
  display: flex; align-items: center; justify-content: center;
}
.rt-main { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rt-main b { font-size: 14.5px; color: var(--ink); }
.rt-main span { font-size: 12.5px; color: var(--muted); }
/* 费用明细 */
.rental-bill { display: flex; flex-direction: column; gap: 10px; }
.rb-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text);
}
.rb-row b { font-weight: 600; }
.c-green { color: #1fa96c; }
.rb-divider { height: 1px; background: #edf3fa; margin: 2px 0; }
.rb-total { font-size: 14px; }
.rb-total b { font-size: 18px; font-weight: 800; }
.rental-submit {
  margin-top: 4px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3f8bff, #1fae8f);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  box-shadow: 0 6px 16px rgba(47, 123, 255, .3);
}
.rental-time[role="button"] { cursor: pointer; transition: transform .15s, border-color .15s; }
.rental-time[role="button"]:active { transform: scale(.985); border-color: #b9d4fb; }

/* ── 上门服务时间选择器 ── */
.pk-wrap { display: flex; flex-direction: column; gap: 10px; }
.pk-tip { font-size: 12px; line-height: 1.6; color: var(--muted); }
.pk-label { font-size: 13px; font-weight: 800; color: var(--ink); margin-top: 2px; }
.pk-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pk-day {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 2px; border-radius: 12px;
  background: #fff; border: 1px solid #e2ecf8;
}
.pk-day b { font-size: 12.5px; color: var(--text); }
.pk-day span { font-size: 11px; color: var(--muted); }
.pk-day.active { border-color: var(--blue); background: linear-gradient(135deg, #eef5ff, #e2f0ff); box-shadow: 0 3px 8px rgba(47, 123, 255, .12); }
.pk-day.active b, .pk-day.active span { color: var(--blue-deep); }
.pk-day:disabled { opacity: .4; cursor: not-allowed; }
.pk-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pk-slot {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 11px 4px; border-radius: 12px;
  background: #fff; border: 1px solid #e2ecf8;
}
.pk-slot b { font-size: 13.5px; color: var(--ink); }
.pk-slot span { font-size: 11.5px; color: var(--muted); }
.pk-slot em { font-style: normal; font-size: 10px; color: #e07b7b; }
.pk-slot.active { border-color: var(--blue); background: linear-gradient(135deg, #4f8cff, var(--blue-deep)); }
.pk-slot.active b, .pk-slot.active span { color: #fff; }
.pk-slot:disabled { opacity: .45; cursor: not-allowed; }

/* ── 上门信息表单 ── */
.of-wrap { display: flex; flex-direction: column; gap: 10px; }
.of-summary { display: flex; flex-direction: column; gap: 3px; background: #eef5ff; border: 1px solid #d9e8ff; border-radius: 12px; padding: 10px 12px; }
.of-summary b { font-size: 13px; color: var(--ink); }
.of-summary span { font-size: 11.5px; color: var(--muted); }
.of-field { display: flex; flex-direction: column; gap: 5px; }
.of-field > span { font-size: 12.5px; font-weight: 700; color: var(--text); }
.of-field input {
  height: 40px; border-radius: 10px; background: #fff;
  border: 1px solid #e2ecf8; padding: 0 12px;
  font-size: 13px; color: var(--ink);
}
.of-field input::placeholder { color: #a9bbd3; }
.of-field input:focus { border-color: var(--blue); }
.of-err { min-height: 13px; font-size: 11px; font-style: normal; color: #e05a5a; }

/* ── 下单成功 ── */
.os-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.os-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #3bd18b, #1fa96c);
  color: #fff; font-size: 30px; font-weight: 800;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(31, 169, 108, .25);
}
.os-title { font-size: 17px; color: var(--ink); }
.os-desc { font-size: 12px; color: var(--muted); line-height: 1.6; }
.os-info { width: 100%; display: flex; flex-direction: column; gap: 7px; background: #fff; border: 1px solid #eaf1fa; border-radius: 14px; padding: 12px; margin-top: 4px; }
.os-info div { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); text-align: left; }
.os-info b { color: var(--ink); font-weight: 700; }
.os-info b.c-green { color: #1fa96c; }
.os-close { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ── 我的租赁订单 ── */
.orders-entry {
  display: flex; align-items: center; gap: 12px; width: 100%;
  margin-top: 14px; padding: 12px 14px;
  background: #fff; border: 1px solid #e8f1fb;
  border-radius: 18px; box-shadow: var(--shadow-sm);
  text-align: left; transition: transform .15s;
}
.orders-entry:active { transform: scale(.985); }
.oe-ico {
  width: 52px; height: 52px; flex: none; border-radius: 15px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #4f8cff, var(--blue-deep));
}
.oe-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.oe-main b { font-size: 14px; color: var(--ink); }
.oe-main span { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-list { display: flex; flex-direction: column; gap: 10px; }
.order-card { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid #eaf1fa; border-radius: 14px; padding: 12px; }
.oc-head { display: flex; justify-content: space-between; align-items: center; }
.oc-head b { font-size: 14px; color: var(--ink); }
.oc-status { font-size: 11px; font-weight: 700; color: #1fa96c; background: #e5f8ee; border-radius: 999px; padding: 2px 9px; }
.oc-status.cancel { color: #8fa0b8; background: #f0f4f9; }
.oc-line { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); }
.oc-line span:last-child { color: var(--text); }
.oc-foot { display: flex; justify-content: space-between; border-top: 1px dashed #edf3fa; padding-top: 6px; font-size: 12px; color: var(--muted); }
.oc-foot b { font-size: 13.5px; }
.od-wrap { display: flex; flex-direction: column; gap: 10px; }
.od-status { align-self: flex-start; font-size: 11.5px; font-weight: 700; color: #1fa96c; background: #e5f8ee; border-radius: 999px; padding: 3px 10px; }
.od-block { display: flex; flex-direction: column; gap: 7px; background: #fff; border: 1px solid #eaf1fa; border-radius: 14px; padding: 12px; }
.od-line { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--muted); }
.od-line b { color: var(--text); font-weight: 600; text-align: right; word-break: break-all; }
.od-line b.c-green { color: #1fa96c; }
.od-total { border-top: 1px dashed #edf3fa; padding-top: 7px; }
.od-total b { font-size: 16px; }
.od-tip { font-size: 11px; color: var(--muted); text-align: center; }
.od-cancel { height: 38px; border-radius: 999px; border: 1px solid #f3c9c9; color: #d96a6a; background: #fff6f6; font-size: 13px; }

/* ═══════════ 底部悬浮：一键打开 AI 康复助手 ═══════════ */
.chat-fab {
  position: absolute;
  right: 14px;
  bottom: 78px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f8cff, var(--blue-deep));
  border: 1.5px solid rgba(255, 255, 255, .6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32),
              0 8px 22px rgba(47, 123, 255, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 30;
  transition: transform .18s ease, box-shadow .18s ease;
}
.chat-fab:active {
  transform: scale(.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32),
              0 4px 12px rgba(47, 123, 255, .38);
}
.chat-fab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.chat-fab svg { stroke: currentColor; }

/* ═══════════ 底部导航 ═══════════ */
.tabbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 74px;
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-top: 1px solid #e8f0fa;
  display: flex;
  z-index: 25;
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #93a9c9;
  position: relative;
}
.tab.active { color: var(--blue); }
.tab-ico { display: flex; }
.tab-label { font-size: 12px; font-weight: 600; }
.tab-badge {
  position: absolute;
  top: 8px;
  left: 26px;
  font-size: 13px;
  line-height: 1;
  color: #f5a623;
  font-weight: 600;
}
.tab[data-tab="game"] .tab-badge { top: 8px; }

/* ═══════════ 聊天抽屉 ═══════════ */
.chat-drawer {
  position: absolute;
  inset: 0;
  z-index: 60;
  background: rgba(18, 50, 92, .32);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.chat-drawer.open { opacity: 1; pointer-events: auto; }
.chat-sheet {
  width: 100%;
  height: 82%;
  background: linear-gradient(180deg, #f6fbff, #e9f3fd);
  border-radius: 26px 26px 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(30px);
  transition: transform .28s ease;
  overflow: hidden;
}
.chat-drawer.open .chat-sheet { transform: none; }
.chat-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .85);
  border-bottom: 1px solid #e4eef9;
}
.chat-head-avatar {
  width: 36px; height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4f8cff, var(--blue-deep));
  display: flex; align-items: center; justify-content: center;
}
.chat-head-info { flex: 1; display: flex; flex-direction: column; }
.chat-head-info b { font-size: 15px; color: var(--ink); }
.chat-head-info span { font-size: 11px; color: var(--green); }
.chat-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #eef4fb;
  display: flex; align-items: center; justify-content: center;
}
.chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.msg { display: flex; }
.msg-user { justify-content: flex-end; }
.msg-ai .bubble {
  background: var(--card);
  border: 1px solid #e4eef9;
  color: var(--text);
  border-radius: 16px 16px 16px 5px;
}
.msg-user .bubble {
  background: linear-gradient(135deg, #4f8cff, var(--blue-deep));
  color: #fff;
  border-radius: 16px 16px 5px 16px;
}
.bubble {
  max-width: 82%;
  padding: 10px 13px;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: var(--shadow-sm);
}
.msg-image .bubble { padding: 6px; position: relative; }
.msg-image.msg-pending .bubble { outline: 1px dashed rgba(47, 123, 255, .55); }
.img-remove {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  border: 1px solid #d5e6fd;
  box-shadow: 0 2px 6px rgba(47, 123, 255, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  z-index: 2;
}
.img-remove:active { transform: scale(.9); }
.chat-image {
  display: block;
  max-width: 200px;
  max-height: 220px;
  border-radius: 12px;
  margin-bottom: 4px;
}
.bubble .cursor {
  display: inline-block;
  width: 7px; height: 14px;
  background: var(--blue);
  vertical-align: -2px;
  margin-left: 2px;
  animation: blink .8s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.chat-chips {
  flex: none;
  display: flex;
  gap: 8px;
  padding: 8px 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chat-chips::-webkit-scrollbar { display: none; }
.chat-chips button {
  flex: none;
  font-size: 12px;
  color: var(--blue);
  background: #e9f2ff;
  border: 1px solid #d5e6fd;
  border-radius: 999px;
  padding: 6px 12px;
}
.chat-input-row {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .9);
  border-top: 1px solid #e4eef9;
}
.chat-input-row input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border-radius: 999px;
  background: #eef4fb;
  padding: 0 14px;
  font-size: 14px;
  color: var(--ink);
}
.chat-tool-btn, .chat-send-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.chat-tool-btn {
  background: #e9f2ff;
  color: var(--blue);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.chat-tool-btn:active { transform: scale(.92); }
.chat-tool-btn.listening {
  background: var(--blue);
  color: #fff;
  animation: micPulse 1.1s ease-in-out infinite;
}
@keyframes micPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 123, 255, .35); }
  50% { box-shadow: 0 0 0 6px rgba(47, 123, 255, 0); }
}
.chat-send-btn {
  background: linear-gradient(135deg, #4f8cff, var(--blue-deep));
  color: #fff;
  box-shadow: 0 4px 12px rgba(47, 123, 255, .35);
}
.chat-send-btn:disabled { opacity: .5; }

/* ═══════════ 弹层 ═══════════ */
.modal {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-mask { position: absolute; inset: 0; background: rgba(18, 50, 92, .38); backdrop-filter: blur(3px); }
.modal-body {
  position: relative;
  width: calc(100% - 48px);
  max-width: 360px;
  max-height: 78%;
  overflow-y: auto;
  background: linear-gradient(180deg, #f8fcff, #eef6fe);
  border-radius: 22px;
  padding: 20px 18px;
  box-shadow: 0 20px 50px rgba(18, 50, 92, .3);
  transform: translateY(16px) scale(.97);
  transition: transform .25s ease;
}
.modal.open .modal-body { transform: none; }
.modal-title { font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.modal-title .x {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #eef4fb;
  display: flex; align-items: center; justify-content: center;
  color: #6b83a8;
}
.modal-text { font-size: 13.5px; line-height: 1.8; color: var(--text); }
.modal-text p { margin-bottom: 8px; }
.modal-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f8cff, var(--blue-deep));
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(47, 123, 255, .35);
}

/* 记忆游戏 */
.mem-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 6px; }
.mem-card {
  aspect-ratio: 1;
  border-radius: 12px;
  background: linear-gradient(135deg, #4f8cff, var(--blue-deep));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: transparent;
  transition: transform .2s, background .2s;
  box-shadow: var(--shadow-sm);
}
.mem-card.flip { background: #fff; border: 1.5px solid #cfe2fa; color: inherit; transform: rotateY(180deg) scale(1.02); }
.mem-card.done { background: #e8f9f1; border: 1.5px solid #b9ecd4; opacity: .75; }
.mem-hud { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.mem-hud b { color: var(--blue); }

/* 反应力测试 */
.react-stage {
  height: 220px;
  border-radius: 16px;
  background: #e4eefb;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  color: var(--muted);
  text-align: center;
  margin-top: 6px;
  user-select: none;
  cursor: pointer;
  transition: background .15s;
}
.react-stage.wait { background: #f3d9d9; color: #b04a4a; }
.react-stage.go { background: #d3f3e3; color: #1d8f5f; }

/* 购物车列表 */
.cart-list { display: flex; flex-direction: column; gap: 10px; }
.cart-item { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 10px 12px; border: 1px solid #eaf1fa; }
.cart-item .ci-emoji { width: 42px; height: 42px; border-radius: 10px; background: linear-gradient(160deg, #f4faff, #dcebfc); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.cart-item .ci-main { flex: 1; display: flex; flex-direction: column; }
.cart-item .ci-main b { font-size: 13.5px; color: var(--ink); }
.cart-item .ci-main span { font-size: 12px; color: var(--blue); font-weight: 700; }
.cart-item .ci-del { font-size: 11.5px; color: #e07b7b; }
.cart-empty { text-align: center; color: var(--muted); font-size: 13px; padding: 20px 0; }

/* ═══════════ Toast ═══════════ */
.toast {
  position: absolute;
  left: 50%; bottom: 150px;
  transform: translate(-50%, 10px);
  background: rgba(22, 50, 92, .88);
  color: #fff;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: all .25s ease;
  z-index: 99;
  max-width: 80%;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ═══════════ 全屏小游戏容器（iframe 挂载独立小游戏） ═══════════ */
.game-frame {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: none;
  flex-direction: column;
  background: #0b1f12;
}
.game-frame.open { display: flex; }
.gf-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(env(safe-area-inset-top) + 8px) 12px 8px;
  background: rgba(13, 36, 24, .92);
  color: #fff;
}
.gf-back {
  width: 34px; height: 34px; flex: 0 0 auto;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.gf-back:active { background: rgba(255, 255, 255, .28); }
.gf-title { flex: 1; text-align: center; font-size: 16px; font-weight: 700; }
.gf-ph { width: 34px; flex: 0 0 auto; }
.gf-iframe {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  background: #000;
  display: block;
}

/* ═══════════ 肢体训练分类卡片（弹层内） ═══════════ */
.cat-game {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid #e3eefb;
  border-radius: 14px;
  padding: 12px;
  margin-top: 4px;
  box-shadow: 0 4px 14px rgba(47, 123, 255, .08);
  cursor: pointer;
}
.cat-game:active { transform: scale(.99); background: #f4f9ff; }
.cg-emoji { font-size: 30px; line-height: 1; flex: 0 0 auto; }
.cg-main { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cg-main b { font-size: 15px; color: var(--ink); }
.cg-main span { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.cg-tag {
  flex: 0 0 auto;
  font-size: 11px; color: #2f7bff; background: #e8f1ff;
  padding: 4px 8px; border-radius: 8px; white-space: nowrap; font-weight: 600;
}

/* ═══════════ 数字商城 · 京东/淘宝式购物体验 ═══════════ */
.mall-banner {
  display: flex; align-items: center; justify-content: space-between;
  margin: 12px 0; padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(120deg, #ff7a59, #ff4d6d 55%, #a45cf5);
  color: #fff; box-shadow: 0 8px 20px rgba(255, 90, 110, .25);
}
.mb-copy { display: flex; flex-direction: column; gap: 4px; }
.mb-copy b { font-size: 17px; letter-spacing: 1px; }
.mb-copy span { font-size: 11.5px; opacity: .92; }
.mb-deco { font-size: 13px; font-weight: 800; line-height: 1.35; text-align: right; opacity: .85; }
.mall-sort { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; padding: 0 2px; }
.mall-sort[hidden] { display: none !important; }
.ms-btn { font-size: 12.5px; color: var(--muted); }
.ms-btn span { font-size: 10px; }
.ms-btn.active { color: var(--blue-deep); font-weight: 800; }
.ms-total { margin-left: auto; font-size: 11px; color: var(--muted); }

/* 升级后的商品卡片（覆盖旧版居中样式） */
.goods-card { padding: 0; border-radius: 16px; overflow: hidden; background: #fff; }
.gc-thumb { position: relative; height: 132px; background: linear-gradient(160deg, #f6faff, #e4f0ff); }
.gc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gc-badge {
  position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, #ff8a5c, #f0506e);
  border-radius: 6px; padding: 2px 7px;
}
.gc-body { padding: 9px 10px 10px; display: flex; flex-direction: column; gap: 5px; }
.gc-name { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.35; min-height: 35px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gc-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.gc-tags span { font-size: 9.5px; color: #1fa96c; background: #e9f9f1; border-radius: 4px; padding: 1px 5px; }
.gc-price { display: flex; align-items: baseline; gap: 3px; color: #ff4d4f; }
.gc-price i { font-style: normal; font-size: 12px; }
.gc-price b { font-size: 20px; font-weight: 800; }
.gc-price del { font-size: 10.5px; color: #a8b8ce; margin-left: 3px; }
.gc-meta { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }
.gc-add {
  align-self: flex-end; width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #ff8a4c, #f0563f); color: #fff;
  font-size: 19px; line-height: 1; display: grid; place-items: center;
  box-shadow: 0 3px 8px rgba(240, 86, 63, .3); margin-top: 2px;
}

/* 购物类全屏页 */
.shop-page {
  position: absolute; inset: 0; z-index: 52;
  background: linear-gradient(180deg, #f6f9fd, #eaf2fb);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s ease; visibility: hidden;
}
.shop-page.open { transform: none; visibility: visible; }
.sp-head {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 13px 14px; padding-top: calc(13px + env(safe-area-inset-top));
  background: rgba(255, 255, 255, .95); border-bottom: 1px solid #e8f0fa;
}
.sp-back { width: 34px; height: 34px; border-radius: 11px; background: #f1f6fc; display: grid; place-items: center; }
.sp-title { font-size: 16.5px; font-weight: 800; color: var(--ink); }
.sp-title small { font-size: 11px; font-weight: 500; color: var(--muted); }
.sp-ph { width: 34px; }
.sp-cart { position: relative; width: 34px; height: 34px; display: grid; place-items: center; }
.sp-cart-badge {
  position: absolute; top: -2px; right: -4px; min-width: 16px; height: 16px;
  border-radius: 999px; background: #ff4d4f; color: #fff;
  font-size: 10px; font-style: normal; line-height: 16px; text-align: center; padding: 0 4px;
}
.sp-text-btn { font-size: 13px; color: var(--blue-deep); min-width: 34px; }
.sp-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* 商品详情 */
.pd-gallery { position: relative; height: 300px; background: #fff; overflow: hidden; }
.pd-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.pd-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.65); box-shadow: 0 0 2px rgba(0,0,0,.2); }
.pd-dots i.on { background: var(--blue); width: 16px; border-radius: 4px; }
.pd-price-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 8px; background: linear-gradient(90deg, #fff1f0, #fff8f2); }
.pd-price { display: flex; align-items: baseline; gap: 2px; color: #ff3b46; }
.pd-price i { font-style: normal; font-size: 15px; }
.pd-price b { font-size: 30px; font-weight: 800; }
.pd-price del { font-size: 12px; color: #a8b8ce; margin-left: 6px; }
.pd-promo { font-size: 10px; color: #ff4d4f; border: 1px solid #ffc4c4; border-radius: 5px; padding: 2px 5px; }
.pd-title-block { background: #fff; padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.pd-badges { display: flex; gap: 5px; flex-wrap: wrap; }
.pd-badges span { font-size: 10px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #ff8a5c, #f0506e); border-radius: 4px; padding: 2px 6px; }
.pd-title-block h2 { font-size: 17px; line-height: 1.45; color: var(--ink); }
.pd-title-block p { font-size: 12.5px; color: #ff6a45; }
.pd-meta { display: flex; gap: 14px; font-size: 11px; color: var(--muted); }
.pd-section { background: #fff; padding: 13px 16px; margin-bottom: 10px; }
.pds-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink); margin-bottom: 10px; }
.pds-head span { font-size: 11px; color: var(--muted); font-weight: 400; }
.pd-specs { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-spec { font-size: 12px; color: var(--text); background: #f5f8fc; border: 1px solid #e2ecf8; border-radius: 8px; padding: 7px 12px; }
.pd-spec.active { color: var(--blue-deep); border-color: var(--blue); background: #eef5ff; font-weight: 700; }
.pd-spec small { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.pd-qty-row, .pd-delivery { display: flex; align-items: center; justify-content: space-between; }
.pd-qty-row b, .pd-delivery b { font-size: 13px; color: var(--ink); }
.pd-delivery div { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12px; color: var(--text); }
.pd-delivery em { font-style: normal; font-size: 10.5px; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 1px; }
.stepper button { width: 28px; height: 28px; border-radius: 8px; background: #f1f6fc; color: var(--blue-deep); font-size: 16px; line-height: 1; }
.stepper span { min-width: 32px; text-align: center; font-size: 13px; color: var(--ink); }
.pd-services { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-services span { font-size: 10.5px; color: #1fa96c; background: #ecf9f2; border-radius: 5px; padding: 3px 7px; }
.pd-detail h3 { font-size: 14px; color: var(--ink); margin: 10px 0 8px; padding-left: 9px; border-left: 3px solid var(--blue); }
.pd-detail h3:first-child { margin-top: 0; }
.pd-detail p { font-size: 12.5px; line-height: 1.8; color: var(--text); }
.pd-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.pd-features div { background: linear-gradient(160deg, #f0f7ff, #e6f1ff); border-radius: 10px; padding: 9px 6px; text-align: center; }
.pd-features b { display: block; font-size: 12px; color: var(--blue-deep); }
.pd-features em { font-style: normal; font-size: 10px; color: var(--muted); }
.pd-detail figure { margin: 10px 0; }
.pd-detail figure img { width: 100%; border-radius: 10px; display: block; }
.pd-detail figcaption { font-size: 10.5px; color: var(--muted); text-align: center; margin-top: 5px; }
.pd-params { width: 100%; border-collapse: collapse; margin-top: 8px; }
.pd-params td { font-size: 11.5px; padding: 7px 4px; border-bottom: 1px dashed #edf3fa; color: var(--text); }
.pd-params td:first-child { width: 90px; color: var(--muted); }
.pd-reviews { padding-bottom: 20px; }
.pd-review-head { display: flex; align-items: baseline; gap: 10px; }
.pd-review-head b { font-size: 20px; color: #ff6a45; }
.pd-review-head span { font-size: 11px; color: var(--muted); }
.pd-review { border-top: 1px dashed #edf3fa; padding-top: 10px; margin-top: 10px; }
.pd-review b { font-size: 12px; color: var(--ink); }
.pd-review p { font-size: 12px; color: var(--text); line-height: 1.6; margin-top: 5px; }
.pr-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pr-stars { font-size: 11px; color: #ff9d2e; letter-spacing: 1px; }
.pd-review time { font-size: 11px; color: var(--muted); margin-left: auto; white-space: nowrap; }
.pd-foot {
  flex: none; display: flex; align-items: center; gap: 8px;
  padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid #e8f0fa;
}
.pdf-mini { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; color: var(--muted); min-width: 34px; }
.pdf-mini::before { content: '♡'; font-size: 20px; color: #8fa5c2; line-height: 1; }
#pdFootCart::before { content: '🛒'; font-size: 17px; }
#pdFootCart { position: relative; }
.pdf-cart-badge {
  position: absolute; top: -2px; left: 50%; margin-left: 3px;
  min-width: 16px; height: 16px; padding: 0 3px;
  border-radius: 999px; background: #f0455a; color: #fff;
  font-size: 10px; font-weight: 700; font-style: normal;
  line-height: 16px; text-align: center;
  box-shadow: 0 2px 5px rgba(240, 69, 90, .35);
}
.pdf-cart-badge[hidden] { display: none; }
.pdf-btn { flex: 1; height: 40px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff; }
.pdf-add { background: linear-gradient(135deg, #ffad45, #ff7a3c); }
.pdf-buy { background: linear-gradient(135deg, #ff6a5c, #f03f52); }

/* 购物车 */
.cart-list { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.cart-row { display: flex; align-items: flex-start; gap: 10px; background: #fff; border: 1px solid #eaf1fa; border-radius: 14px; padding: 11px; }
.cart-check { width: 18px; height: 18px; margin-top: 28px; accent-color: var(--blue); flex: none; }
.cart-img { width: 70px; height: 70px; border-radius: 10px; object-fit: cover; background: #f2f8ff; flex: none; }
.cart-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cart-info b { font-size: 12.5px; color: var(--ink); line-height: 1.35; }
.cart-spec { font-size: 10.5px; color: var(--muted); background: #f4f7fb; border-radius: 5px; padding: 2px 6px; align-self: flex-start; }
.cart-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.cart-price { color: #ff4d4f; font-size: 16px; font-weight: 800; }
.cart-price small { font-size: 11px; font-weight: 400; }
.stepper.sm button { width: 24px; height: 24px; font-size: 14px; }
.stepper.sm span { min-width: 26px; font-size: 12px; }
.cart-tip { text-align: center; font-size: 11px; color: var(--muted); padding: 6px 0 20px; }
.cart-foot {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid #e8f0fa;
}
.cart-all { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text); }
.cart-all input { width: 17px; height: 17px; accent-color: var(--blue); }
.cart-sum { flex: 1; display: flex; flex-direction: column; align-items: flex-end; }
.cart-sum b { font-size: 17px; color: #ff4d4f; }
.cart-sum span { font-size: 10px; color: var(--muted); }
.cart-action { min-width: 100px; height: 40px; border-radius: 999px; background: linear-gradient(135deg, #ff7a59, #f03f52); color: #fff; font-size: 13px; font-weight: 700; }
.cart-del { background: linear-gradient(135deg, #ff9a9a, #e35b5b); }

/* 确认订单 */
.co-address { display: flex; align-items: center; gap: 10px; width: calc(100% - 24px); margin: 12px; padding: 14px; background: #fff; border: 1px solid #eaf1fa; border-radius: 14px; text-align: left; }
.coa-pin { font-size: 20px; }
.coa-main { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.coa-main b { font-size: 13.5px; color: var(--ink); }
.coa-main span { font-size: 11.5px; color: var(--muted); }
.co-card { background: #fff; margin: 0 12px 10px; border-radius: 14px; padding: 12px; }
.co-shop { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.co-shop em { font-style: normal; font-size: 10px; color: #fff; background: #ff6a45; border-radius: 4px; padding: 1px 5px; margin-left: 5px; }
.co-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px dashed #edf3fa; }
.co-item img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: #f2f8ff; }
.co-item div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.co-item b { font-size: 12px; color: var(--ink); }
.co-item span { font-size: 10.5px; color: var(--muted); }
.co-item strong { font-size: 13px; color: #ff4d4f; }
.co-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--text); padding: 8px 0; border-bottom: 1px dashed #edf3fa; }
.co-row:last-child { border-bottom: none; }
.co-row b { font-weight: 600; }
.co-row input { width: 18px; height: 18px; accent-color: var(--blue); }
.co-total b { font-size: 17px; color: #ff4d4f; }
.co-bill { padding-bottom: 14px; }
.co-foot {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid #e8f0fa;
}
.cof-sum { display: flex; align-items: baseline; gap: 5px; font-size: 12px; color: var(--muted); }
.cof-sum b { font-size: 20px; color: #ff4d4f; }
.cof-btn { height: 42px; min-width: 130px; border-radius: 999px; background: linear-gradient(135deg, #ff7a59, #f03f52); color: #fff; font-size: 14px; font-weight: 700; }

/* 收银台 */
.pay-amount { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 0 14px; }
.pay-amount span { font-size: 12px; color: var(--muted); }
.pay-amount b { font-size: 34px; color: #ff4d4f; }
.pay-order { text-align: center; font-size: 11px; color: var(--muted); margin-bottom: 18px; }
.pay-methods { margin: 0 12px; background: #fff; border-radius: 14px; padding: 4px 12px; }
.pm-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px dashed #edf3fa; }
.pm-row:last-child { border-bottom: none; }
.pm-row input { position: absolute; opacity: 0; }
.pm-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; }
.pm-wechat { background: #22b567; }
.pm-alipay { background: #1677ff; }
.pm-hp { background: linear-gradient(135deg, #3f8bff, #1fae8f); font-size: 11px; }
.pm-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pm-text b { font-size: 13px; color: var(--ink); }
.pm-text em { font-style: normal; font-size: 10px; color: var(--muted); }
.pm-check { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #d5e2f2; }
.pm-row input:checked ~ .pm-check { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 4px #fff; }
.pay-confirm { display: block; width: calc(100% - 48px); margin: 20px auto 10px; height: 44px; border-radius: 999px; background: linear-gradient(90deg, #ff8a4c, #f03f52); color: #fff; font-size: 15px; font-weight: 700; }
.pay-confirm:disabled { opacity: .6; }
.pay-note { text-align: center; font-size: 11px; color: var(--muted); }
.oe-ico-orange { background: linear-gradient(135deg, #ffad45, #f06b3f); }

/* ═══════ 我的：AI 报告 / 神经管理 / 智能随访 ═══════ */
.hub { display: flex; flex-direction: column; gap: 12px; }
.hub-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.hub-stats > div { background: #fff; border: 1px solid #eaf1fa; border-radius: 12px; padding: 9px 3px; text-align: center; }
.hub-stats b { display: block; font-size: 17px; color: var(--blue); }
.hub-stats span { font-size: 10px; color: var(--muted); }
.hub-tabs { display: flex; gap: 8px; border-bottom: 1px solid #e7eff8; }
.hub-tab { flex: 0 0 auto; padding: 7px 14px 9px; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; }
.hub-tab.active { color: var(--blue); font-weight: 700; border-bottom-color: var(--blue); }
.hub-list { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.hub-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: #fff; border: 1px solid #eaf1fa; border-radius: 13px; padding: 10px 11px; }
.hub-item:active { background: #f4f9ff; }
.hi-ico { flex: 0 0 30px; height: 30px; border-radius: 9px; background: #eef4ff; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.hi-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hi-main b { font-size: 12.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hi-main span { font-size: 10.5px; color: var(--muted); }
.hi-arrow { flex: 0 0 auto; font-size: 17px; color: #a9bdd8; }
.hub-tip { font-size: 11.5px; color: var(--muted); line-height: 1.6; background: #eef6ff; border-radius: 10px; padding: 8px 10px; }
.hub-alert { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; line-height: 1.6; background: #fff5f5; border: 1px solid #ffdede; color: #c95353; border-radius: 11px; padding: 9px 11px; }
.hub-alert[hidden] { display: none; }
.hub-actions { display: flex; gap: 8px; }
.hub-btn { flex: 1; min-height: 38px; border-radius: 999px; border: 1px solid #d8e6f7; background: #fff; color: var(--blue); font-size: 12.5px; font-weight: 700; }
.hub-btn.primary { background: linear-gradient(135deg, #4f8cff, #2f6fe8); color: #fff; border-color: transparent; box-shadow: 0 5px 12px rgba(47,123,255,.25); }
.hub-btn.subtle { flex: 0 0 auto; padding: 0 14px; color: var(--muted); background: transparent; border-color: transparent; font-weight: 500; }
.hub-detail { display: flex; flex-direction: column; gap: 10px; }
.hd-head { display: flex; flex-direction: column; gap: 3px; }
.hd-head b { font-size: 15px; color: var(--ink); }
.hd-head span { font-size: 11px; color: var(--muted); }
.hd-body { background: #fff; border: 1px solid #eaf1fa; border-radius: 13px; padding: 12px; font-size: 12px; color: var(--text); line-height: 1.8; }
.hd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hd-grid > div { background: #f5f9ff; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.hd-grid span { font-size: 10.5px; color: var(--muted); }
.hd-grid b { font-size: 14px; color: var(--ink); }
.hd-sub { margin-top: 8px; font-size: 11.5px; color: var(--muted); line-height: 1.7; }
.hd-ai { background: #f0f7ff; border: 1px solid #dceaff; border-radius: 13px; padding: 11px; font-size: 12px; line-height: 1.75; color: var(--text); max-height: 260px; overflow-y: auto; }
.hd-ai[hidden] { display: none; }
.hd-ai-title { font-weight: 800; color: var(--blue); margin-bottom: 5px; }
.hd-ai .muted { color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.metric-card { position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 84px; background: #fff; border: 1px solid #eaf1fa; border-radius: 13px; padding: 10px; text-align: left; overflow: hidden; }
.metric-card.warn { border-color: #ffd6d6; background: #fffafa; }
.mc-name { font-size: 11px; color: var(--muted); }
.mc-value { font-size: 16px; color: var(--ink); }
.metric-card.warn .mc-value { color: #d9534f; }
.mc-target { font-size: 10px; color: var(--muted); }
.metric-card svg { position: absolute; right: 8px; bottom: 8px; opacity: .75; }
.follow-plan { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid #eaf1fa; border-radius: 14px; padding: 12px; }
.follow-plan.due { background: #fffaf2; border-color: #ffe1b8; }
.fp-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2px; }
.fp-head b { font-size: 13px; color: var(--ink); }
.fp-head span { font-size: 10.5px; color: var(--muted); }
.fp-line { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.fp-line b { color: var(--text); font-weight: 600; }
.of-field select { width: 100%; height: 38px; border: 1px solid #dce7f4; border-radius: 10px; padding: 0 9px; font-size: 13px; color: var(--ink); background: #fff; }
