/* ====== 适老化设计基础 ====== */
:root {
  --c-primary: #1e6fa5;
  --c-primary-dark: #155380;
  --c-accent: #f08a3e;
  --c-bg: #faf7f0;
  --c-card: #ffffff;
  --c-text: #1f2933;
  --c-sub: #5b6b7b;
  --c-line: #e6e1d5;
  --c-success: #2f8f57;
  --c-warn: #e07a1a;
  --c-danger: #c0392b;
  --r-card: 18px;
  --r-btn: 16px;
  --shadow-card: 0 6px 20px rgba(30, 60, 100, 0.08);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
               "Microsoft YaHei", sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 22px;
  line-height: 1.55;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-text-size-adjust: 100%;
}

/* ============================================================
   响应式：手机全屏，桌面有手机外框
   ============================================================ */

/* 手机：全屏铺开（移动端最大宽度 ≤ 768px） */
@media (max-width: 768px) {
  body {
    display: block;
    padding: 0;
    background: var(--c-bg);
  }
  .phone {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
    background: var(--c-bg);
  }
  .status-bar { display: none; }   /* 手机自带状态栏 */
  .intro { display: none; }
}

/* 桌面：居中的手机外框 */
@media (min-width: 769px) {
  body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 28px 12px;
    background: linear-gradient(135deg, #d8e2ec 0%, #eef2f5 50%, #f5ebe0 100%);
  }
  .phone {
    width: 100%;
    max-width: 440px;
    background: var(--c-bg);
    border-radius: 44px;
    box-shadow: 0 30px 80px rgba(20, 40, 60, 0.25),
                0 0 0 10px #1c1c1e,
                0 0 0 12px #2a2a2c;
    overflow: hidden;
    height: calc(100vh - 56px);
    min-height: 760px;
    max-height: 920px;
    display: flex;
    flex-direction: column;
  }
  .status-bar {
    height: 44px;
    background: var(--c-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 26px;
    font-size: 15px;
    font-weight: 600;
    color: var(--c-text);
    flex-shrink: 0;
  }
}

.phone { position: relative; }

/* 通用 App Bar */
.app-bar {
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 22px;
  font-weight: 700;
  background: var(--c-bg);
  flex-shrink: 0;
  padding-top: env(safe-area-inset-top);
}
.app-bar .back {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: var(--c-primary);
  border-radius: 50%;
  margin-right: 6px;
  cursor: pointer;
}
.app-bar .back:active { background: rgba(30,111,165,0.1); }

.screen {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
}
.screen::-webkit-scrollbar { width: 0; }

/* ============================================================
   核心组件
   ============================================================ */
.section { padding: 4px 18px 8px; }
.section-title { font-size: 18px; color: var(--c-sub); margin: 14px 4px 8px; font-weight: 600; }

.card {
  background: var(--c-card);
  border-radius: var(--r-card);
  padding: 20px;
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
}
.card.flat { box-shadow: none; border: 1px solid var(--c-line); }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 72px;
  background: var(--c-primary);
  color: #fff;
  border: none;
  border-radius: var(--r-btn);
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  margin: 8px 0;
  transition: transform 0.05s;
}
.btn:active { transform: scale(0.98); background: var(--c-primary-dark); }
.btn.secondary {
  background: #fff;
  color: var(--c-primary);
  border: 2px solid var(--c-primary);
}
.btn.accent { background: var(--c-accent); }
.btn.accent:active { background: #d97a2e; }
.btn.danger { background: var(--c-danger); }
.btn.small { height: 56px; font-size: 19px; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }

.tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
}
.tag.ok { background: #e3f3e9; color: var(--c-success); }
.tag.warn { background: #fbeed4; color: var(--c-warn); }
.tag.danger { background: #fbe2de; color: var(--c-danger); }

/* ============================================================
   首页
   ============================================================ */
.hero {
  padding: 24px 22px 8px;
}
.hero-badge {
  display: inline-block;
  background: var(--c-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.hero h1 { margin: 0; font-size: 36px; font-weight: 800; line-height: 1.15; color: #155380; }
.hero p { margin: 6px 0 0; color: var(--c-sub); font-size: 17px; }

/* Demo 舞台 - 模拟手机内的录像画面 */
.demo-stage {
  margin: 14px 18px;
}
.demo-screen {
  position: relative;
  aspect-ratio: 3 / 4;
  background: linear-gradient(180deg, #0a0e14 0%, #1a232f 100%);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(20, 30, 40, 0.3);
  display: flex; align-items: center; justify-content: center;
}
.demo-badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(192,57,43,0.92);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  display: flex; align-items: center; gap: 6px;
  z-index: 2;
}
.demo-badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  animation: blink 1s infinite;
}
.demo-counter {
  position: absolute; top: 14px; right: 14px;
  background: rgba(0,0,0,0.6); color: #fff;
  padding: 8px 14px; border-radius: 12px;
  font-size: 16px; font-weight: 700; z-index: 2;
}
.demo-feedback {
  position: absolute; bottom: 14px; left: 14px; right: 14px;
  background: rgba(46, 143, 87, 0.92);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  z-index: 2;
}
.demo-feedback.warn { background: rgba(224, 122, 26, 0.95); }
.demo-figure {
  width: 78%;
  background: rgba(234, 243, 250, 0.95);
  border-radius: 14px;
  padding: 8px;
}
.demo-figure .illus {
  background: transparent;
}
.demo-caption {
  text-align: center;
  font-size: 15px;
  color: var(--c-sub);
  margin-top: 10px;
}

/* kv 键值行 */
.kv {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 10px 0;
  font-size: 17px;
  border-bottom: 1px solid #f0ede4;
}
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--c-sub); flex-shrink: 0; margin-right: 12px; }
.kv .v { font-weight: 700; text-align: right; max-width: 65%; }

.result-card {
  margin: 14px 18px;
  padding: 22px 20px;
  background: linear-gradient(135deg, #1e6fa5, #2a87c4);
  color: #fff;
  border-radius: var(--r-card);
  box-shadow: 0 10px 24px rgba(30,111,165,0.25);
}
.result-card .rc-label { font-size: 16px; opacity: 0.85; }
.result-card .rc-row {
  display: flex; align-items: baseline; gap: 6px; margin-top: 4px;
}
.result-card .rc-value { font-size: 56px; font-weight: 800; line-height: 1; }
.result-card .rc-unit { font-size: 22px; opacity: 0.9; }
.result-card .rc-tag { margin-top: 12px; }
.result-card .tag.ok    { background: rgba(255,255,255,0.9); color: var(--c-success); }
.result-card .tag.warn  { background: rgba(255,255,255,0.9); color: var(--c-warn); }
.result-card .tag.danger{ background: rgba(255,255,255,0.9); color: var(--c-danger); }

.cta-block {
  padding: 4px 18px 8px;
}

.list-item {
  display: flex;
  align-items: center;
  padding: 18px 18px;
  background: var(--c-card);
  border-radius: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}
.list-item .li-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: #eaf3fa; color: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-right: 14px; flex-shrink: 0;
}
.list-item .li-main { flex: 1; min-width: 0; }
.list-item .li-title { font-size: 20px; font-weight: 700; }
.list-item .li-desc { font-size: 15px; color: var(--c-sub); margin-top: 2px; }
.list-item .li-arrow { font-size: 28px; color: var(--c-sub); }

/* ============================================================
   测试介绍
   ============================================================ */
.instruction-step {
  display: flex; gap: 14px;
  padding: 16px 18px;
  background: var(--c-card);
  border-radius: 14px;
  margin: 10px 18px;
  box-shadow: var(--shadow-card);
}
.instruction-step .num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--c-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; flex-shrink: 0; font-size: 18px;
}
.instruction-step .text { font-size: 19px; font-weight: 500; flex: 1; line-height: 1.5; }

.voice-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f3eedf;
  color: var(--c-accent);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  margin-left: 22px;
  border: none;
}

/* ============================================================
   测试中：摄像头 + 计数
   ============================================================ */
.camera {
  margin: 8px 18px 0;
  aspect-ratio: 3/4;
  background: #0a0e14;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.camera video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.camera .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 33.33% 33.33%;
  pointer-events: none;
}
.camera .pose-figure {
  font-size: 130px;
  filter: drop-shadow(0 0 14px rgba(255,255,255,0.4));
  animation: bob 1.2s ease-in-out infinite;
  position: relative;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.camera .badge-rec {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(192,57,43,0.9);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  display: flex; align-items: center; gap: 6px;
  z-index: 2;
}
.camera .badge-rec .dot {
  width: 10px; height: 10px; border-radius: 50%; background: #fff;
  animation: blink 1s infinite;
}
@keyframes blink { 50% { opacity: 0.2; } }
.camera .countdown {
  position: absolute;
  font-size: 140px; font-weight: 800;
  text-shadow: 0 4px 30px rgba(0,0,0,0.6);
  z-index: 2;
}
.camera .counter {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(0,0,0,0.6);
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 20px; font-weight: 700;
  z-index: 2;
}
.camera .timer-big {
  position: absolute;
  font-size: 110px;
  font-weight: 800;
  text-shadow: 0 4px 30px rgba(0,0,0,0.6);
  z-index: 2;
}
.camera .feedback {
  position: absolute;
  bottom: 14px; left: 14px; right: 14px;
  background: rgba(46, 143, 87, 0.92);
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 19px;
  font-weight: 700;
  text-align: center;
  z-index: 2;
}
.camera .feedback.warn { background: rgba(224, 122, 26, 0.95); }

/* ============================================================
   结果页
   ============================================================ */
.score-display {
  text-align: center; padding: 24px 18px 8px;
}
.score-display .score-big {
  font-size: 96px; font-weight: 800; color: var(--c-primary); line-height: 1;
}
.score-display .score-unit { font-size: 22px; color: var(--c-sub); margin-left: 6px; }
.score-display .score-label { font-size: 18px; color: var(--c-sub); margin-bottom: 8px; }

.interp-card {
  margin: 12px 18px;
  padding: 20px;
  background: var(--c-card);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}
.interp-card h3 { margin: 0 0 8px; font-size: 19px; color: var(--c-primary); }
.interp-card p { margin: 0; font-size: 18px; line-height: 1.6; }

/* 后续问题 */
.q-question { padding: 18px 22px 8px; font-size: 24px; font-weight: 700; line-height: 1.4; }
.q-progress {
  height: 8px;
  background: #e6e1d5;
  margin: 6px 22px 12px;
  border-radius: 4px;
  overflow: hidden;
}
.q-progress > div { height: 100%; background: var(--c-primary); transition: width 0.3s; }
.option-row {
  margin: 0 18px 12px;
  padding: 22px 20px;
  background: var(--c-card);
  border-radius: 16px;
  font-size: 22px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  border: 3px solid transparent;
}
.option-row.selected { border-color: var(--c-primary); background: #eaf3fa; }

/* 历史记录 */
.hist-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px;
  background: var(--c-card);
  border-radius: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
}
.hist-row .h-date { font-size: 17px; color: var(--c-sub); }
.hist-row .h-score { font-size: 26px; font-weight: 800; color: var(--c-primary); }
.hist-row .h-tag { margin-top: 4px; }

.bars {
  display: flex; align-items: flex-end; gap: 10px;
  height: 140px; padding: 6px 4px 0;
  border-bottom: 1px solid var(--c-line);
}
.bars .b {
  flex: 1;
  background: linear-gradient(to top, #1e6fa5, #5da4cf);
  border-radius: 6px 6px 0 0;
  position: relative;
}
.bars .b::after {
  content: attr(data-v);
  position: absolute; top: -22px; left: 0; right: 0;
  text-align: center; font-size: 13px; font-weight: 700;
  color: var(--c-primary);
}
.bars-labels {
  display: flex; gap: 10px; padding: 6px 4px 0;
  font-size: 13px; color: var(--c-sub);
}
.bars-labels span { flex: 1; text-align: center; }

/* 上传/治疗师状态 */
.submit-status {
  margin: 12px 18px;
  padding: 18px;
  background: #eaf3fa;
  border-radius: 14px;
  display: flex; gap: 14px; align-items: center;
}
.submit-status .ss-ic {
  width: 48px; height: 48px;
  background: var(--c-primary); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.submit-status .ss-tx { font-size: 17px; line-height: 1.4; }
.submit-status .ss-tx b { color: var(--c-primary); }

/* Toast */
.toast {
  position: fixed;
  top: 80px; left: 50%; transform: translateX(-50%);
  background: rgba(20,30,40,0.92);
  color: #fff;
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 18px;
  z-index: 100;
  font-weight: 700;
  pointer-events: none;
  animation: pop 0.3s;
}
@keyframes pop {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* 桌面预览面板底下的说明文字 */
.intro {
  max-width: 440px;
  margin: 14px auto 0;
  font-size: 14px;
  color: #4a5560;
  text-align: center;
  padding: 0 14px;
  line-height: 1.5;
}
.intro b { color: var(--c-primary); }

/* ============================================================
   插画
   ============================================================ */
.illus {
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: #eaf3fa;
  display: block;
}
.illus-wrap {
  margin: 8px 18px 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.illus-caption {
  padding: 10px 14px;
  background: #fff;
  font-size: 16px;
  color: var(--c-sub);
  text-align: center;
}

/* 起坐人物动画 */
.stand-figure {
  transform-origin: 150px 164px;
  animation: chairStand 2.4s ease-in-out infinite;
}
@keyframes chairStand {
  0%, 100% {
    /* 坐姿 */
    transform: translateY(20px) scaleY(0.85);
  }
  50% {
    /* 站姿 */
    transform: translateY(-10px) scaleY(1);
  }
}
.arrow-up-down {
  animation: arrowsBlink 2.4s ease-in-out infinite;
}
@keyframes arrowsBlink {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 1; }
}

/* SOS */
.sos {
  position: fixed;
  right: 18px; bottom: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  width: 64px; height: 64px;
  background: var(--c-danger);
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(192,57,43,0.45);
  cursor: pointer;
  z-index: 50;
  border: none;
}
.sos:active { transform: scale(0.95); }
@media (min-width: 769px) {
  .sos { position: absolute; }
}

/* ===========================================================
   v6 新增: 评估流程 / 报告 / 训练 / 治疗师
   =========================================================== */

/* 首页 result-card 风险等级 */
.result-card { padding: 18px 20px; margin: 14px 18px; border-radius: 18px;
  background: linear-gradient(135deg, #1e6fa5, #155380); color: #fff; box-shadow: var(--shadow-card); }
.result-card.low    { background: linear-gradient(135deg, #2f8f57, #1e6f3e); }
.result-card.medium { background: linear-gradient(135deg, #e07a1a, #c46612); }
.result-card.high   { background: linear-gradient(135deg, #c0392b, #9c2a1f); }
.result-card.cta-card { background: linear-gradient(135deg, #f08a3e, #e07a1a); }
.result-card .rc-label { font-size: 15px; opacity: 0.9; }
.result-card .rc-value { font-size: 30px; font-weight: 800; }
.result-card .rc-sub { font-size: 14px; opacity: 0.95; margin-top: 6px; }
.result-card .rc-btn { margin-top: 14px; width: 100%; height: 52px; font-size: 18px;
  background: rgba(255,255,255,0.2); color: #fff; border: 1px solid rgba(255,255,255,0.5);
  border-radius: 12px; font-weight: 700; cursor: pointer; }
.result-card .rc-btn.cta { background: #fff; color: #c46612; border: 0; }

/* 首页 4 宫格 */
.quad { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 4px 18px; }
.qcard { background: #fff; border-radius: 16px; padding: 18px 14px; box-shadow: var(--shadow-card);
  cursor: pointer; transition: transform 0.1s; }
.qcard:active { transform: scale(0.97); }
.qcard .qc-icon { font-size: 36px; }
.qcard .qc-title { font-size: 18px; font-weight: 800; color: #1f2933; margin-top: 6px; }
.qcard .qc-sub { font-size: 13px; color: #5b6b7b; margin-top: 4px; line-height: 1.3; }

/* 评估介绍 - 3 阶段 */
.phase { display: flex; align-items: center; gap: 14px; background: #fff; margin: 8px 18px;
  padding: 14px 16px; border-radius: 14px; box-shadow: var(--shadow-card); }
.phase .ph-num { font-size: 28px; font-weight: 800; color: #1e6fa5; min-width: 32px; }
.phase .ph-main .ph-title { font-size: 18px; font-weight: 700; }
.phase .ph-main .ph-desc { font-size: 14px; color: #5b6b7b; margin-top: 2px; }

/* 是/否 问题块 */
.q-block { background: #fff; margin: 10px 18px; padding: 14px 16px; border-radius: 14px; box-shadow: var(--shadow-card); }
.q-block .q-text { font-size: 19px; font-weight: 700; color: #1f2933; line-height: 1.4; }
.q-yn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.yn-opt { background: #f5f7fa; border: 2px solid #e6e1d5; border-radius: 12px; padding: 14px;
  text-align: center; font-size: 18px; font-weight: 700; cursor: pointer; }
.yn-opt.sel { background: #eaf3fa; border-color: #1e6fa5; color: #155380; }

/* 评估 hub 行 */
.hub-row { display: flex; align-items: center; gap: 14px; background: #fff; margin: 8px 18px;
  padding: 16px; border-radius: 14px; box-shadow: var(--shadow-card); cursor: pointer; transition: transform 0.1s; }
.hub-row:active { transform: scale(0.98); }
.hub-row.done { background: #eaf3ec; border-left: 4px solid #2f8f57; }
.hub-row .hr-icon { font-size: 30px; min-width: 36px; }
.hub-row .hr-title { font-size: 18px; font-weight: 800; }
.hub-row .hr-sub { font-size: 14px; color: #5b6b7b; margin-top: 2px; }
.hub-row .hr-status { font-size: 26px; font-weight: 800; color: #1e6fa5; min-width: 24px; text-align: center; }
.hub-row.done .hr-status { color: #2f8f57; }

/* 模块头 */
.mod-head { background: linear-gradient(135deg, #1e6fa5, #155380); color: #fff;
  padding: 20px 22px; margin: 8px 0 14px; }
.mod-head .mh-icon { font-size: 36px; }
.mod-head .mh-title { font-size: 24px; font-weight: 800; margin-top: 4px; }
.mod-head .mh-sub { font-size: 14px; opacity: 0.9; margin-top: 4px; }

/* 步骤清单 */
.step-list { padding: 0 18px; margin: 4px 0 14px; }
.step-list .sl-step { background: #fff; border-radius: 12px; padding: 12px 16px; margin-bottom: 8px;
  font-size: 16px; line-height: 1.5; box-shadow: var(--shadow-card); }
.step-list .sl-step b { color: #1e6fa5; }

/* 辅助秒表 */
.timer-card { background: #1e6fa5; color: #fff; margin: 12px 18px; padding: 16px; border-radius: 14px; text-align: center; }
.timer-card .t-label { font-size: 14px; opacity: 0.9; }
.timer-card .t-display { font-size: 50px; font-weight: 800; font-family: monospace; letter-spacing: 2px; margin: 8px 0; }
.timer-card .t-btns { display: flex; gap: 8px; justify-content: center; }
.timer-card .btn.small { flex: 1; max-width: 130px; margin: 0; height: 44px; font-size: 15px; }

/* 输入卡 */
.input-card { background: #fff; margin: 12px 18px; padding: 18px 16px; border-radius: 14px; box-shadow: var(--shadow-card); text-align: center; }
.input-card .ic-label { font-size: 16px; color: #5b6b7b; }
.input-card .ic-num { display: flex; gap: 12px; justify-content: center; align-items: center; margin: 12px 0; }
.input-card .ic-num input { width: 100px; height: 60px; font-size: 36px; font-weight: 800; text-align: center;
  border: 2px solid #1e6fa5; border-radius: 12px; color: #1e6fa5; }
.input-card .num-btn { width: 50px; height: 50px; border-radius: 50%; border: 0; font-size: 28px; font-weight: 800;
  background: #1e6fa5; color: #fff; cursor: pointer; }
.input-card .ic-hint { font-size: 14px; color: #5b6b7b; }

/* checkbox 卡 (用药 / 家居) */
.opt-card { display: flex; align-items: center; gap: 12px; background: #fff; margin: 8px 18px;
  padding: 14px 16px; border-radius: 14px; cursor: pointer; box-shadow: var(--shadow-card); transition: all 0.15s; }
.opt-card.sel { background: #eaf3fa; border: 2px solid #1e6fa5; padding: 12px 14px; }
.opt-card .oc-icon { font-size: 26px; min-width: 30px; }
.opt-card .oc-check { font-size: 24px; color: #1e6fa5; min-width: 24px; }
.opt-card .oc-title { font-size: 17px; font-weight: 700; line-height: 1.3; }
.opt-card .oc-sub { font-size: 13px; color: #5b6b7b; margin-top: 4px; line-height: 1.4; }

/* 报告页 */
.report-hero { padding: 24px 22px; color: #fff; text-align: center;
  background: linear-gradient(135deg, #1e6fa5, #155380); }
.report-hero.low    { background: linear-gradient(135deg, #2f8f57, #1e6f3e); }
.report-hero.medium { background: linear-gradient(135deg, #e07a1a, #c46612); }
.report-hero.high   { background: linear-gradient(135deg, #c0392b, #9c2a1f); }
.report-hero .rh-tag { font-size: 14px; opacity: 0.9; }
.report-hero .rh-big { font-size: 40px; font-weight: 800; margin: 6px 0 4px; }
.report-hero .rh-stats { font-size: 16px; opacity: 0.95; }
.report-hero .rh-desc { font-size: 15px; opacity: 0.95; margin-top: 10px; line-height: 1.5;
  background: rgba(255,255,255,0.15); padding: 10px 14px; border-radius: 10px; }

/* 行动卡 */
.action-card { background: #fff; margin: 10px 18px; padding: 16px; border-radius: 16px;
  box-shadow: var(--shadow-card); border-left: 5px solid #e07a1a; }
.action-card.lv-high { border-left-color: #c0392b; }
.action-card.lv-med  { border-left-color: #e07a1a; }
.action-card .ac-head { display: flex; align-items: flex-start; gap: 10px; }
.action-card .ac-icon { font-size: 32px; }
.action-card .ac-name { font-size: 19px; font-weight: 800; color: #1f2933; }
.action-card .ac-detail { font-size: 14px; color: #5b6b7b; margin-top: 2px; }
.action-card .ac-lv { padding: 4px 10px; border-radius: 8px; font-size: 13px; font-weight: 700;
  background: #fde8e3; color: #c0392b; white-space: nowrap; }
.action-card.lv-med .ac-lv { background: #fef0d8; color: #c46612; }
.action-card .ac-why { background: #f5ebe0; padding: 10px 12px; border-radius: 10px; margin-top: 12px;
  font-size: 15px; color: #5b4a30; line-height: 1.5; }
.action-card .ac-why b { color: #1f2933; }
.action-card .ac-actions { margin-top: 12px; }
.action-card .ac-act-title { font-size: 15px; font-weight: 700; color: #1e6fa5; margin-bottom: 4px; }
.action-card .ac-actions ol { padding-left: 22px; margin: 4px 0; }
.action-card .ac-actions li { font-size: 16px; color: #1f2933; line-height: 1.55; margin: 4px 0; }
.action-card .btn.small { margin-top: 12px; height: 48px; font-size: 16px; }

/* 训练 - 顶部 */
.plan-hero { padding: 22px 20px; color: #fff;
  background: linear-gradient(135deg, #2f8f57, #1e6f3e); }
.plan-hero .ph-tag { font-size: 14px; opacity: 0.9; }
.plan-hero h2 { margin: 4px 0 6px; color: #fff; }
.plan-hero .ph-desc { font-size: 14px; opacity: 0.95; line-height: 1.5; }

/* 周卡 */
.week-card { display: flex; align-items: center; gap: 14px; background: #fff; margin: 8px 18px;
  padding: 16px; border-radius: 14px; box-shadow: var(--shadow-card); cursor: pointer; transition: transform 0.1s; }
.week-card:active { transform: scale(0.98); }
.week-card.cur { border: 2px solid #2f8f57; background: #e8f5ec; }
.week-card.past { opacity: 0.7; }
.week-card .wc-num { font-size: 13px; font-weight: 800; color: #2f8f57; min-width: 50px;
  text-align: center; padding: 8px; background: #d6ebdc; border-radius: 10px; }
.week-card.cur .wc-num { background: #2f8f57; color: #fff; }
.week-card .wc-main { flex: 1; }
.week-card .wc-name { font-size: 18px; font-weight: 800; }
.week-card .wc-goal { font-size: 14px; color: #5b6b7b; margin-top: 2px; line-height: 1.4; }
.week-card .wc-sessions { font-size: 13px; color: #2f8f57; margin-top: 4px; font-weight: 700; }
.week-card .wc-arrow { font-size: 26px; color: #1e6fa5; }

/* 单次训练 */
.sess-card { display: flex; align-items: center; gap: 14px; background: #fff; margin: 8px 18px;
  padding: 14px 16px; border-radius: 14px; box-shadow: var(--shadow-card); cursor: pointer; }
.sess-card.done { background: #e8f5ec; border-left: 4px solid #2f8f57; }
.sess-card .sc-day { font-size: 14px; font-weight: 700; color: #1e6fa5; min-width: 38px;
  padding: 6px; background: #eaf3fa; border-radius: 8px; text-align: center; }
.sess-card .sc-name { font-size: 17px; font-weight: 700; }
.sess-card .sc-meta { font-size: 14px; color: #5b6b7b; margin-top: 2px; }
.sess-card .sc-status { font-size: 24px; color: #1e6fa5; }
.sess-card.done .sc-status { color: #2f8f57; }

/* 训练动作卡 */
.exer-card { background: #fff; margin: 12px 18px; padding: 16px; border-radius: 16px; box-shadow: var(--shadow-card); }
.exer-card .ex-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.exer-card .ex-num { width: 36px; height: 36px; background: #f08a3e; color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.exer-card .ex-name { font-size: 19px; font-weight: 800; }
.exer-card .ex-sets { font-size: 14px; color: #c46612; font-weight: 700; margin-top: 2px; }
.exer-card .ex-illus { display: flex; justify-content: center; padding: 8px 0; }
.exer-card .ex-illus .illus.small { width: 220px; max-width: 100%; }
.exer-card .ex-steps { background: #f5ebe0; border-radius: 10px; padding: 10px 14px; margin-top: 8px; }
.exer-card .ex-steps .ex-h { font-size: 14px; font-weight: 700; color: #5b4a30; }
.exer-card .ex-steps ol { padding-left: 20px; margin: 6px 0; }
.exer-card .ex-steps li { font-size: 15px; line-height: 1.55; margin: 2px 0; }
.exer-card .ex-safety { background: #fef6e7; border: 1px solid #f0c87a; padding: 8px 12px; border-radius: 10px;
  margin-top: 8px; font-size: 14px; color: #7a5a14; line-height: 1.5; }
.exer-card .ex-video { margin-top: 10px; }
.exer-card .ex-video iframe { width: 100%; height: 200px; border-radius: 10px; border: 0; }
.ev-empty { display: flex; gap: 12px; background: #eaf3fa; padding: 12px; border-radius: 10px; border: 1px dashed #1e6fa5; }
.ev-empty .ev-ic { font-size: 32px; }
.ev-empty .ev-tx { font-size: 14px; line-height: 1.5; color: #1f2933; }
.ev-empty .kbd { background: #fff; padding: 2px 6px; border-radius: 4px; color: #c46612; font-weight: 700; }
.ev-empty code { background: #fff; padding: 1px 5px; border-radius: 3px; font-size: 12px; }

/* 治疗师卡 */
.pt-card { display: flex; gap: 12px; background: #fff; margin: 8px 18px; padding: 14px 16px;
  border-radius: 14px; box-shadow: var(--shadow-card); cursor: pointer; }
.pt-card:active { transform: scale(0.98); }
.pt-card .pt-avatar { font-size: 46px; }
.pt-card .pt-main { flex: 1; }
.pt-card .pt-name { font-size: 18px; font-weight: 800; }
.pt-card .pt-title { font-size: 13px; color: #5b6b7b; font-weight: 500; margin-left: 4px; }
.pt-card .pt-hosp { font-size: 14px; color: #5b6b7b; margin-top: 2px; }
.pt-card .pt-tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.pt-card .pt-spec { font-size: 13px; color: #1e6fa5; margin-top: 6px; line-height: 1.4; }
.pt-card .pt-arrow { font-size: 24px; color: #1e6fa5; align-self: center; }

.tag-mini { padding: 3px 8px; background: #eaf3fa; color: #155380; border-radius: 6px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.tag-mini.light { background: rgba(255,255,255,0.25); color: #fff; }

/* 家居改造 */
.fix-card { background: #fff; margin: 8px 18px; padding: 14px 16px; border-radius: 14px; box-shadow: var(--shadow-card); }
.fix-card.highlight { border-left: 4px solid #c0392b; background: #fff5f3; }
.fix-card .fc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.fix-card .fc-ic { font-size: 28px; }
.fix-card .fc-title { font-size: 17px; font-weight: 800; }
.fix-card .mine-badge { background: #c0392b; color: #fff; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.fix-card .fc-fix { font-size: 15px; line-height: 1.55; color: #1f2933; }
.fix-card .fc-fix b { color: #1e6fa5; }

/* 通用细节 */
.card.flat { box-shadow: none; }
.illus.small { height: auto; max-height: 140px; }
.btn.danger { background: var(--c-danger); color: #fff; }
.btn:disabled { background: #c5d1d8 !important; color: #fff !important; cursor: not-allowed; opacity: 0.7; }

/* ============================================================
   v7 闭环新组件: 进度条 / 对比报告 / 联系卡片 / 关于卡
   ============================================================ */

/* 训练完成度进度条 (records + plan 主页) */
.plan-pct { display: flex; flex-direction: column; gap: 8px; }
.plan-pct .pp-bar { width: 100%; height: 14px; background: #e3ecf2; border-radius: 8px; overflow: hidden; }
.plan-pct .pp-fill { height: 100%; background: linear-gradient(90deg, #1e6fa5, #2f8f57); border-radius: 8px; transition: width 0.4s; }
.plan-pct .pp-text { font-size: 15px; font-weight: 700; color: #155380; }

/* 周进度条 (plan-week 页, 在蓝色 hero 内, 用反色) */
.wk-pct { margin-top: 14px; }
.wk-pct .wk-bar { width: 100%; height: 12px; background: rgba(255,255,255,0.25); border-radius: 6px; overflow: hidden; }
.wk-pct .wk-fill { height: 100%; background: #f0c87a; border-radius: 6px; transition: width 0.4s; }
.wk-pct .wk-text { margin-top: 8px; font-size: 14px; color: #fff; opacity: 0.9; }

/* 对比报告 hero */
.cmp-hero { margin: 14px 18px; padding: 22px 18px; border-radius: 16px; text-align: center; box-shadow: var(--shadow-card); }
.cmp-hero.up   { background: linear-gradient(135deg,#e8f5ec,#c9e8d5); border: 1px solid #2f8f57; }
.cmp-hero.down { background: linear-gradient(135deg,#fdecea,#f8c9c2); border: 1px solid #c0392b; }
.cmp-hero.same { background: linear-gradient(135deg,#eaf3fa,#cfe2ee); border: 1px solid #1e6fa5; }
.cmp-hero-tag { font-size: 14px; color: #5b6b7b; }
.cmp-hero-vals { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 14px 0 10px; font-size: 26px; font-weight: 800; }
.cmp-hero-prev { color: #5b6b7b; }
.cmp-hero-arrow { font-size: 30px; color: #1e6fa5; }
.cmp-hero-cur { color: #155380; }
.cmp-hero.up .cmp-hero-cur { color: #2f8f57; }
.cmp-hero.down .cmp-hero-cur { color: #c0392b; }
.cmp-hero-text { font-size: 16px; font-weight: 700; margin-top: 6px; color: #1f2933; }

/* 对比报告各项 */
.cmp-row { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-bottom: 1px solid #eef2f5; }
.cmp-row:last-child { border-bottom: 0; }
.cmp-label { font-size: 15px; color: #5b6b7b; }
.cmp-vals { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 700; }
.cmp-vals .cmp-prev { color: #8a98a6; flex: 1; text-align: left; }
.cmp-vals .cmp-arrow { font-size: 26px; flex: 0 0 auto; }
.cmp-vals .cmp-arrow.up { color: #2f8f57; }
.cmp-vals .cmp-arrow.down { color: #c0392b; }
.cmp-vals .cmp-arrow.same { color: #8a98a6; }
.cmp-vals .cmp-cur { color: #1f2933; flex: 1; text-align: right; }
.cmp-delta { font-size: 14px; font-weight: 700; text-align: right; }
.cmp-delta.up { color: #2f8f57; }
.cmp-delta.down { color: #c0392b; }
.cmp-delta.same { color: #8a98a6; }

/* 首页客服 / 咨询卡 */
.contact-card { background: #fff; margin: 8px 18px; padding: 16px; border-radius: 14px; box-shadow: var(--shadow-card); }
.contact-card .cc-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.contact-card .cc-icon { width: 52px; height: 52px; flex: 0 0 52px; background: linear-gradient(135deg,#1e6fa5,#155380); color: #fff; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.contact-card .cc-main { flex: 1; }
.contact-card .cc-title { font-size: 17px; font-weight: 800; color: #1f2933; }
.contact-card .cc-sub { font-size: 14px; color: #5b6b7b; margin-top: 4px; line-height: 1.45; }

/* 关于卡 */
.about-card { background: linear-gradient(135deg,#fff7e6,#fae6c8); margin: 8px 18px; padding: 16px; border-radius: 14px; box-shadow: var(--shadow-card); cursor: pointer; }
.about-card .ab-tag { font-size: 13px; color: #a08145; font-weight: 700; }
.about-card .ab-title { font-size: 17px; font-weight: 800; color: #7a5a14; margin-top: 6px; }
.about-card .ab-sub { font-size: 14px; color: #a08145; margin-top: 4px; }

