/* ===== 设计系统：按 1.0 搭建文案附录 E 示意图的浅蓝医用质感 ===== */
:root {
  --blue: #2F6BF2;
  --blue-deep: #1B3F9E;
  --blue-2: #59A7FB;
  --cyan: #33C4F0;
  --blue-3: #CFE4FF;
  --ink: #0B2742;
  --ink-2: #33506B;
  --ink-3: #7E93AA;
  --bg: #EFF6FF;
  --card: #FFFFFF;
  --glass: rgba(255, 255, 255, .82);
  --line: #E3EFFC;
  --good: #2F9E6A;
  --warn: #E07B39;
  --bad: #C4552F;
  --r: 18px;
  --shadow: 0 12px 30px rgba(31, 86, 168, .09);
  --shadow-s: 0 6px 18px rgba(31, 86, 168, .07);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: #EFF6FF;
  color: var(--ink-2);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

body {
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
  background:
    radial-gradient(1200px 600px at 12% -8%, rgba(126, 189, 255, .40), transparent 62%),
    radial-gradient(900px 520px at 96% 6%, rgba(160, 214, 255, .34), transparent 60%),
    radial-gradient(700px 420px at 30% 100%, rgba(196, 226, 255, .36), transparent 65%),
    linear-gradient(180deg, #F9FCFF 0%, #EDF5FF 42%, #E7F0FE 100%);
  background-attachment: fixed;
}
/* 极细科技网格 + 星光点，呼应参考图的背景质感 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(120, 170, 235, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 235, .055) 1px, transparent 1px);
  background-size: 26px 26px, 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .25) 70%, transparent);
}

#app {
  max-width: 480px;
  margin: 0 auto;
  background: transparent;
  min-height: 100vh;
  position: relative;
}

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

.wrap { padding: 0 16px; }

/* ---------- 通用顶部（子页 / 孙页） ---------- */
.hero {
  position: relative;
  padding: 22px 20px 24px;
  color: var(--ink);
  border-radius: 0 0 26px 26px;
  overflow: hidden;
  background:
    radial-gradient(420px 200px at 88% -30%, rgba(255, 255, 255, .95), transparent 70%),
    linear-gradient(160deg, #FBFDFF 0%, #EEF6FF 52%, #E5EFFE 100%);
  border-bottom: 1px solid rgba(210, 230, 252, .9);
  box-shadow: 0 10px 26px rgba(31, 86, 168, .07);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 26%, rgba(63, 132, 246, .10), transparent 34%),
    radial-gradient(circle at 78% 12%, rgba(96, 195, 245, .12), transparent 32%);
  pointer-events: none;
}
.hero .brand { position: relative; font-size: 12px; letter-spacing: 2px; color: var(--blue); opacity: .9; }
.hero h1 { position: relative; margin: 8px 0 4px; font-size: 20px; line-height: 1.32; font-weight: 800; color: #14306E; letter-spacing: .3px; background: linear-gradient(96deg, #17309A 0%, #2A5BD8 52%, #2F8BE8 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .sub { position: relative; font-size: 13px; color: var(--ink-3); }
.hero .row { position: relative; }

/* 子页里内联写的“白字白底”按钮与标签，统一改回浅色玻璃 */
.hero .btn.ghost,
.hero [data-back] {
  background: rgba(255, 255, 255, .88) !important;
  color: var(--blue) !important;
  border: 1px solid #D8E7FB !important;
  box-shadow: 0 6px 16px rgba(47, 107, 242, .10) !important;
}
.hero .btn,
.hero .btn.soft { position: relative; }
.hero .chip {
  background: rgba(47, 107, 242, .10) !important;
  color: var(--blue) !important;
}

/* ---------- 首页标题板块 + 神经元 ---------- */
.heroHome {
  position: relative;
  padding: 14px 18px 6px;
  overflow: hidden;
  border-radius: 0 0 30px 30px;
  background:
    radial-gradient(300px 170px at 6% -2%, rgba(130, 190, 255, .42), transparent 68%),
    radial-gradient(420px 230px at 92% 2%, rgba(196, 226, 255, .5), transparent 72%),
    linear-gradient(170deg, #FBFDFF 0%, #EDF5FF 60%, #E6F0FE 100%);
}
.heroHome .topRow { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; }
.heroHome .brand { font-size: 12px; letter-spacing: 2px; color: var(--blue); opacity: .92; }
.orbWrap { flex: none; width: 56px; height: 56px; margin-right: 8px; }
.orbWrap svg { width: 56px; height: 56px; display: block; }
.brandCol { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.brandCol .en { font-size: 8.5px; letter-spacing: 1.4px; color: #8FAED2; }
.topRight { display: flex; align-items: center; gap: 8px; }
.statusPill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .8); border: 1px solid rgba(210, 230, 252, .95);
  font-size: 11.5px; color: var(--blue); box-shadow: var(--shadow-s);
}
.statusPill i { width: 6px; height: 6px; border-radius: 50%; background: #35C27E; box-shadow: 0 0 0 3px rgba(53, 194, 126, .16); }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .9); border: 1px solid rgba(208, 228, 252, .95);
  display: flex; align-items: center; justify-content: center; color: var(--blue);
  box-shadow: var(--shadow-s); flex: none;
}
.avatar svg { width: 21px; height: 21px; }

.homeTitle {
  position: relative;
  margin: 12px 0 2px;
  font-size: 29px;
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: .2px;
  color: #16307F;
  background: linear-gradient(96deg, #17309A 0%, #2A5BD8 42%, #2F8BE8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.homeTitle small { display: block; font-size: 16px; font-weight: 600; letter-spacing: .6px; margin-top: 2px; }
.homeSub {
  position: relative;
  font-size: 14px;
  color: #2E62B8;
  letter-spacing: .6px;
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.homeSub b { font-weight: 600; color: #2F8BE8; }
.homeSub .rule { flex: none; width: 74px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #2F6BF2, rgba(47, 107, 242, 0)); opacity: .55; }
/* 标题下的手绘感弧线，呼应参考图 */
.titleUnder { display: block; width: 118px; height: 9px; margin: 2px 0 4px; opacity: .7; }
.titleUnder svg { width: 118px; height: 9px; display: block; }

/* 神经元插画：光晕 + 树突 + 轴突 */
.neuroLayer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.neuroLayer svg { position: absolute; filter: drop-shadow(0 0 5px rgba(60, 130, 245, .18)); }
.neuroA { width: 182px; height: 182px; left: -56px; top: -56px; animation: nPulse 5.5s ease-in-out infinite; }
.neuroB { width: 152px; height: 152px; right: -30px; top: 4px; animation: nPulse 7s ease-in-out infinite .8s; }
.neuroC { width: 116px; height: 116px; right: 26px; bottom: -20px; animation: nPulse 6.2s ease-in-out infinite 1.6s; }
@keyframes nPulse {
  0%, 100% { transform: scale(.98); opacity: .62; }
  50% { transform: scale(1.06); opacity: 1; }
}
/* 标题背后的大网状光晕：只做呼吸，不缩放，避免干扰文字 */
.neuroD { width: 340px; height: 340px; left: 50%; top: 20px; margin-left: -170px; animation: nBreatheSoft 10s ease-in-out infinite; }
@keyframes nBreatheSoft {
  0%, 100% { opacity: .045; }
  50% { opacity: .10; }
}

/* 首页主卡：开始评估 + 拍照 + 人体插图 */
.heroPanel {
  position: relative;
  margin: 10px 0 0;
  padding: 14px 0 12px 18px;
  min-height: 230px;
  border-radius: 26px;
  background:
    radial-gradient(240px 170px at 82% 74%, rgba(255, 255, 255, .98), transparent 72%),
    radial-gradient(300px 220px at 96% 6%, rgba(206, 232, 255, .85), transparent 70%),
    linear-gradient(150deg, rgba(255, 255, 255, .97) 0%, rgba(240, 248, 255, .94) 46%, rgba(214, 234, 255, .92) 100%);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 18px 40px rgba(31, 86, 168, .14), inset 0 1px 0 rgba(255, 255, 255, .95);
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 4px;
}
.heroPanel::after {
  content: "";
  position: absolute; inset: auto -10% -42% 34%;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 107, 242, .16), transparent 62%);
  pointer-events: none;
}
.ctaCol { position: relative; z-index: 3; display: flex; align-items: center; gap: 12px; flex: none; }
.ctaPill {
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  color: #fff;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: .5px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(100deg, #2C6BF6 0%, #2F8BF0 52%, #34C6F1 100%);
  box-shadow: 0 10px 22px rgba(47, 107, 242, .34), inset 0 1px 0 rgba(255, 255, 255, .5);
  cursor: pointer;
  white-space: nowrap;
}
.ctaPill:active { transform: scale(.98); }
.camBtn {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  border: 1px solid rgba(208, 228, 252, .95);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); box-shadow: 0 8px 18px rgba(47, 107, 242, .16);
  cursor: pointer; flex: none;
}
.camBtn svg { width: 22px; height: 22px; }
.figWrap {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 218px;
  display: flex; align-items: flex-end; justify-content: flex-end;
}
.figWrap svg.fig { height: 208px; width: auto; display: block; }
.figWrap picture { display: block; position: relative; z-index: 2; }
/* 参考图同款线描人体：透明 PNG，随容器高度自适应 */
.figImg {
  position: relative; z-index: 2;
  height: 228px; width: auto; display: block;
  margin-right: 4px;
  filter: drop-shadow(0 10px 22px rgba(47, 107, 242, .16));
  animation: figFloat 6.5s ease-in-out infinite;
}
@keyframes figFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.figHalo {
  position: absolute; right: -6%; top: 6%; width: 210px; height: 210px; border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 180, 250, .16), transparent 66%);
  animation: nBreatheSoft 8s ease-in-out infinite;
  pointer-events: none;
}
.figGlow {
  position: absolute; right: 6%; bottom: 8%;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 150, 245, .22), transparent 66%);
  animation: nPulse 6s ease-in-out infinite;
  pointer-events: none;
}
.figRing {
  position: absolute; right: 2%; bottom: 0%;
  width: 200px; height: 62px;
  border-radius: 50%;
  border: 1px solid rgba(74, 143, 235, .3);
  box-shadow: 0 0 24px rgba(74, 143, 235, .18) inset;
  pointer-events: none;
}
.figRing::before {
  content: ""; position: absolute; inset: 8px 22px;
  border-radius: 50%; border: 1px solid rgba(74, 143, 235, .22);
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--glass);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 16px;
  margin: 12px 0;
  box-shadow: 0 12px 30px rgba(31, 86, 168, .09), inset 0 1px 0 rgba(255, 255, 255, .95);
  border: 1px solid rgba(255, 255, 255, .92);
}
.card.flat { box-shadow: none; }
.card.tint { background: linear-gradient(150deg, rgba(255, 255, 255, .95), rgba(236, 246, 255, .95)); }

.h1 { font-size: 19px; color: var(--ink); font-weight: 700; margin: 0 0 6px; }
.h2 { font-size: 16px; color: var(--ink); font-weight: 700; margin: 0 0 6px; }
.h3 { font-size: 14px; color: var(--ink); font-weight: 600; margin: 0; }
.tiny { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.mute { color: var(--ink-3); }
.mono { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.code { color: var(--ink-3); font-size: 11px; letter-spacing: .5px; }

.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row { display: flex; align-items: center; gap: 8px; }
.gap-s { gap: 6px; }
.gap-m { gap: 12px; }
.grow { flex: 1; min-width: 0; }
.mt { margin-top: 10px; }
.mt2 { margin-top: 18px; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.row > .btn { width: auto; flex: 1 1 0; min-width: 0; }
.between > .col { flex: 1 1 auto; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  padding: 0 18px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(100deg, #2C6BF6, #33B9F2);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(47, 107, 242, .26);
  cursor: pointer;
  transition: transform .12s ease, opacity .2s ease;
  width: 100%;
}
.btn:active { transform: scale(.98); }
.btn.ghost {
  background: rgba(255, 255, 255, .96);
  color: var(--blue);
  border: 1px solid #D8E7FB;
  box-shadow: 0 6px 16px rgba(47, 107, 242, .09);
}
.btn.soft {
  background: #EAF3FF;
  color: var(--blue);
  box-shadow: none;
}
.btn.mini { height: 36px; font-size: 13px; padding: 0 12px; border-radius: 11px; width: auto; white-space: nowrap; flex: none; }
.btn[disabled] { opacity: .5; filter: grayscale(.15); cursor: not-allowed; box-shadow: none; }
.btn.danger { background: #fff; color: var(--bad); border: 1px solid #F2C9BE; box-shadow: none; }

/* ---------- chip / 标签 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  background: #EAF3FF;
  color: var(--blue);
  white-space: nowrap;
}
.chip.good { background: #E8F6EE; color: var(--good); }
.chip.warn { background: #FFF1E8; color: var(--warn); }
.chip.bad { background: #FDECE7; color: var(--bad); }
.chip.gray { background: #EFF3F8; color: var(--ink-3); }

/* ---------- 进度条 ---------- */
.bar { position: relative; height: 8px; border-radius: 999px; background: #E8F0FA; overflow: hidden; }
.bar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, #59A7FB, #2C6BF6); }
.bar.thin { height: 6px; }

/* ---------- 首页功能卡 ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.func {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(6px);
  border-radius: 22px;
  padding: 15px 13px;
  box-shadow: 0 10px 24px rgba(31, 86, 168, .09), inset 0 1px 0 rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .96);
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  cursor: pointer;
  min-height: 80px;
}
.func .ico {
  grid-row: 1 / span 2;
  width: 38px; height: 38px; border-radius: 0;
  background: none;
  display: flex; align-items: center; justify-content: center;
  color: #2E66E8;
}
.func .nm { font-size: 15px; color: var(--ink); font-weight: 700; line-height: 1.25; letter-spacing: .2px; }
.func .ds { font-size: 10.5px; color: var(--ink-3); line-height: 1.4; margin-top: 2px; }
.func .ico svg { width: 28px; height: 28px; filter: drop-shadow(0 3px 8px rgba(47, 107, 242, .22)); }

/* ---------- 底部导航 ---------- */
#tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(219, 234, 252, .95);
  box-shadow: 0 -8px 26px rgba(31, 86, 168, .08);
  padding-bottom: env(safe-area-inset-bottom);
}
#tabbar .inner {
  max-width: 480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 60px;
}
#tabbar .tab {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  color: #9AAFC5;
  cursor: pointer;
}
#tabbar .tab::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 8px; left: 50%;
  width: 46px; height: 30px;
  margin-left: -23px;
  border-radius: 15px;
  background: linear-gradient(150deg, rgba(233, 243, 255, .95), rgba(214, 234, 255, .95));
  box-shadow: 0 4px 12px rgba(47, 107, 242, .16), inset 0 1px 0 rgba(255, 255, 255, .9);
  opacity: 0;
  transform: scale(.9);
  transition: opacity .18s ease, transform .18s ease;
}
#tabbar .tab.on { color: var(--blue); font-weight: 700; }
#tabbar .tab.on::before { opacity: 1; transform: scale(1); }
#tabbar .tab svg { width: 21px; height: 21px; position: relative; z-index: 1; }
#tabbar .tab.on svg { filter: drop-shadow(0 4px 10px rgba(47, 107, 242, .3)); }

/* ---------- 拍摄 ---------- */
.cam {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #0B1A2B;
  border-radius: 20px;
  overflow: hidden;
}
.cam video, .cam canvas.still { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam video.mirror { transform: scaleX(-1); }
.overlay { position: absolute; inset: 0; pointer-events: none; }
.hintbar {
  position: absolute;
  left: 10px; right: 10px; bottom: 10px;
  background: rgba(6, 22, 40, .72);
  color: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.5;
  backdrop-filter: blur(6px);
}
.hintbar b { color: #9ED0FF; font-weight: 600; }
.count {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 6px 24px rgba(0,0,0,.45);
}
.shutterRow { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.shutter {
  width: 64px; height: 64px; border-radius: 50%;
  border: 3px solid #CFE1F7;
  background: radial-gradient(circle at 50% 40%, #fff, #E6F1FF);
  box-shadow: 0 6px 16px rgba(46,123,224,.22);
  cursor: pointer;
  flex: none;
}
.shutter.rec { border-color: #F3B7A6; background: radial-gradient(circle at 50% 40%, #fff, #FFE9E2); }
.shutter.busy { opacity: .6; }
.steps { display: flex; gap: 6px; margin: 10px 0 0; }
.steps span { flex: 1; height: 3px; border-radius: 2px; background: #DCE9F9; }
.steps span.on { background: var(--blue); }

.slotGrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.slot {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #E8F0FA;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  border: 2px solid transparent;
}
.slot img, .slot video { width: 100%; height: 100%; object-fit: cover; display: block; }
.slot.sel { border-color: var(--blue); }
.slot .nm { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, .9); backdrop-filter: blur(4px); color: #14306E; font-size: 10.5px; font-weight: 600; text-align: center; padding: 3px 0; }
.slot .dot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--good); }

/* ---------- 表单 ---------- */
.field { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid #F0F5FB; }
.field:last-child { border-bottom: none; }
.field .lb { font-size: 13.5px; color: var(--ink-2); }
.field .lb small { display: block; font-size: 11px; color: var(--ink-3); }
.input {
  width: 92px; height: 34px; border-radius: 10px; border: 1px solid #D6E6F8;
  text-align: center; font-size: 14px; color: var(--ink); background: #FBFDFF;
  font-variant-numeric: tabular-nums;
}
.input.wide { width: 130px; text-align: left; padding: 0 10px; }
.field.field-num { align-items: flex-start; padding: 12px 0; }
.field.field-num .lb { padding-top: 6px; max-width: 58%; }
.field.field-num .col { align-items: flex-end; flex: none; }
.input:focus { outline: 2px solid #BFDCFF; border-color: var(--blue-2); }
.input.area {
  width: 100%; height: auto; min-height: 104px; text-align: left; padding: 10px 12px;
  line-height: 1.62; font-family: inherit; font-size: 13.5px; resize: none;
}
.btn.disabled {
  background: #E7EEF7; color: #A6B7C9; box-shadow: none; pointer-events: auto; cursor: not-allowed;
}
.range { width: 130px; accent-color: var(--blue); }
.seg { display: inline-flex; border: 1px solid #D6E6F8; border-radius: 10px; overflow: hidden; background: #FBFDFF; }
.seg button {
  border: none; background: transparent; padding: 6px 10px; font-size: 12.5px; color: var(--ink-3); cursor: pointer;
}
.seg button.on { background: var(--blue); color: #fff; }
.gradePill {
  min-width: 62px; text-align: center; height: 26px; line-height: 26px;
  border-radius: 999px; font-size: 12px; background: #EFF3F8; color: var(--ink-3);
}

/* ---------- 报告 ---------- */
.ring { position: relative; width: 148px; height: 148px; margin: 6px auto 0; }
.ring .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .num b { font-size: 38px; color: var(--ink); line-height: 1; }
.ring .num span { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

.zoneRow { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #F2F7FC; cursor: pointer; }
.zoneRow:last-child { border-bottom: none; }
.zoneRow .bar { flex: 1; }

/* ---------- 人形图 ---------- */
.bodyMap { position: relative; width: 100%; aspect-ratio: 3 / 5; }
.bodyMap svg { width: 100%; height: 100%; display: block; }
.zoneHit { fill: transparent; cursor: pointer; }
.zoneHit:hover, .zoneHit.on { fill: rgba(47, 107, 242, .18); }

/* ---------- 其他 ---------- */
.empty { padding: 26px 0; text-align: center; color: var(--ink-3); font-size: 13px; }
.tag { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 6px; background: #EEF4FB; color: var(--ink-3); margin-right: 4px; }
.notice { background: linear-gradient(150deg, #FFFDF7, #FFF6E8); border: 1px solid #F7E0BE; color: #8A5A17; border-radius: 14px; padding: 12px 14px; font-size: 12.5px; line-height: 1.6; }
.disclaimer { font-size: 11.5px; color: var(--ink-3); line-height: 1.6; padding: 18px 4px calc(18px + env(safe-area-inset-bottom)); }
.toast {
  position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%);
  background: rgba(11, 39, 66, .92); color: #fff; padding: 10px 16px; border-radius: 12px;
  font-size: 13px; z-index: 40; opacity: 0; transition: opacity .2s ease;
}
.toast.show { opacity: 1; }
.sheetMask { position: fixed; inset: 0; background: rgba(8, 24, 42, .45); z-index: 30; display: flex; align-items: flex-end; }
.sheet {
  width: 100%; max-width: 480px; margin: 0 auto; background: #fff; border-radius: 22px 22px 0 0;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 80vh; overflow: auto;
}
.pillRow { display: flex; flex-wrap: wrap; gap: 8px; }
.pillRow button {
  border: 1px solid #D6E6F8; background: #FBFDFF; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; color: var(--ink-2); cursor: pointer;
}
.pillRow button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0; }
.thumb { width: 72px; height: 96px; border-radius: 10px; overflow: hidden; flex: none; background: #E8F0FA; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 选项 pill / 开关 ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 34px; padding: 4px 14px;
  border: 1px solid #D6E6F8; background: #FBFDFF; border-radius: 999px;
  font-size: 12.5px; color: var(--ink-2); cursor: pointer;
  white-space: nowrap;
}
.pill.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.wrap-pills, .row.wrap { flex-wrap: wrap; }

.switch {
  position: relative; width: 46px; height: 26px; border-radius: 999px;
  background: #DDE7F3; flex: none; cursor: pointer; transition: background .18s ease;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(15, 44, 76, .18); transition: left .18s ease;
}
.switch.on { background: var(--blue); }
.switch.on::after { left: 23px; }

/* ---------- 客户卡 / 时间轴 / 照片对照 ---------- */
.ava {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #EAF3FF, #DCECFF); color: var(--blue); font-size: 15px; font-weight: 650;
}
.tl { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #F2F7FC; cursor: pointer; }
.tl:last-child { border-bottom: none; }
.tl .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; }
.phBox {
  margin-top: 4px; border-radius: 12px; overflow: hidden;
  background: #E8F0FA; aspect-ratio: 3 / 4;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 6px;
}
.phBox img { width: 100%; height: 100%; object-fit: cover; }

.func .ico { font-size: 18px; line-height: 1; }
.func .ico svg * { vector-effect: non-scaling-stroke; }

/* 小屏微调 */
@media (max-width: 380px) {
  .orbWrap { width: 46px; height: 46px; margin-right: 6px; }
  .orbWrap svg { width: 46px; height: 46px; }
  .heroHome .brand { font-size: 11px; letter-spacing: .6px; white-space: nowrap; }
  .statusPill { display: none; }
  .avatar { width: 34px; height: 34px; }
  .homeSub { font-size: 12.8px; letter-spacing: 0; }
  .homeSub .rule { width: 48px; }
}
@media (max-width: 360px) {
  .homeTitle { font-size: 26px; }
  .heroPanel { min-height: 220px; padding-left: 14px; }
  .figWrap { height: 204px; }
  .figWrap svg.fig { height: 186px; }
  .figImg { height: 200px; }
  .ctaPill { height: 46px; padding: 0 20px; font-size: 15px; }
}

/* 授权访问门禁 */
.stepRow { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #F0F5FB; align-items: flex-start; }
.stepRow:last-child { border-bottom: none; }
.stepNo {
  width: 24px; height: 24px; border-radius: 50%; flex: none; margin-top: 2px;
  background: #E8F2FF; color: #2E7BE0; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.gateLock { min-height: 100vh; background: #EDF4FE; }
