/* 灵境鉴微 v3-2 · 蓝白主题（DNA + 分子网络）
   配色: 琉璃水 #6EC6CA / 澄江蓝 #8CCAE6 / 月笼纱 #AEBADE / 深蓝紫 #6B6FC9 / 白 #FFFFFF
   字体: Ma Shan Zheng 书法标题 + ZCOOL XiaoWei 装饰小字 + Noto Serif SC 副标题 + Noto Sans SC 正文 */

* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --aqua: #6EC6CA;
  --aqua-deep: #3FA3B4;
  --blue: #8CCAE6;
  --blue-deep: #5BA0CC;
  --mist: #AEBADE;
  --mist-deep: #7A85C0;
  --indigo: #6B6FC9;        /* 蓝白主题的"高风险"深紫蓝 */
  --ink: #17585C;
  --ink-soft: #4E7E82;
  --ink-faint: #8FAFB3;
  --paper: #F4FBFB;
  --paper-2: #EAF7F8;
  --paper-3: #DFF2F3;
  --line: rgba(110, 198, 202, .35);
  --line-soft: rgba(110, 198, 202, .20);
  --shadow-card: 0 8px 28px rgba(63, 163, 180, .14), 0 2px 6px rgba(110, 198, 202, .10);
  --shadow-elev: 0 12px 36px rgba(63, 163, 180, .22), 0 4px 10px rgba(110, 198, 202, .14);
  --r-card: 22px;
  --r-pill: 999px;
  --f-display: 'Ma Shan Zheng', 'ZCOOL XiaoWei', 'KaiTi', 'STKaiti', cursive;
  --f-deco: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
  --f-serif: 'Noto Serif SC', 'Songti SC', serif;
  --f-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-weight: 400;
  color: var(--ink);
  min-height: 100vh;
  background:
    radial-gradient(140% 60% at 88% -10%, rgba(140, 202, 230, .22), transparent 55%),
    radial-gradient(120% 70% at -10% 100%, rgba(110, 198, 202, .32), transparent 60%),
    radial-gradient(80% 50% at 50% 30%, rgba(174, 186, 222, .30), transparent 70%),
    linear-gradient(180deg, #EAF7F8 0%, #F4FBFB 45%, #DFF2F3 100%);
  padding: 0 16px 40px;
  overflow-x: hidden;
  position: relative;
}
.hidden { display: none !important; }

/* ============ 全局装饰背景 v3-2（蓝白版：DNA + 分子网络） ============ */
.bg-decor {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* 5 个大散景光斑（全部蓝白主题） */
.bloom {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  mix-blend-mode: screen;
  opacity: .8;
  animation: bloomDrift 18s ease-in-out infinite;
}
.bloom-1 { width: 520px; height: 520px; left: -160px; top: -120px;
  background: radial-gradient(circle, rgba(110, 198, 202, .85) 0%, rgba(110, 198, 202, .35) 35%, transparent 70%); }
.bloom-2 { width: 480px; height: 480px; right: -140px; top: 18%;
  background: radial-gradient(circle, rgba(174, 186, 222, .75) 0%, rgba(174, 186, 222, .3) 35%, transparent 70%);
  animation-delay: -3s; }
.bloom-3 { width: 420px; height: 420px; left: 20%; bottom: -120px;
  background: radial-gradient(circle, rgba(140, 202, 230, .65) 0%, rgba(140, 202, 230, .25) 40%, transparent 70%);
  animation-delay: -6s; }
.bloom-4 { width: 360px; height: 360px; right: 20%; bottom: 10%;
  background: radial-gradient(circle, rgba(110, 198, 202, .7) 0%, rgba(110, 198, 202, .3) 35%, transparent 70%);
  animation-delay: -9s; }
.bloom-5 { width: 300px; height: 300px; left: 40%; top: 35%;
  background: radial-gradient(circle, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, .3) 40%, transparent 70%);
  animation-delay: -12s;
  filter: blur(50px); opacity: .55; }
@keyframes bloomDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(20px, -16px) scale(1.08); }
}

/* 2 层克制飘带（蓝白渐变） */
.ribbon {
  position: absolute; left: -10%; right: -10%; width: 120%;
  filter: blur(8px);
  mix-blend-mode: screen;
  opacity: .85;
}
.ribbon-1 {
  bottom: 8vh;
  height: 38vh; min-height: 260px;
  animation: ribbonFlow 16s ease-in-out infinite alternate;
}
.ribbon-2 {
  bottom: 16vh;
  height: 26vh; min-height: 180px;
  animation: ribbonFlow 20s ease-in-out infinite alternate-reverse;
  animation-delay: -4s;
  opacity: .65;
}
@keyframes ribbonFlow {
  0%   { transform: translateX(-3%) translateY(0) scaleY(1); }
  100% { transform: translateX(3%)  translateY(-12px) scaleY(1.04); }
}

/* DNA 双螺旋（左下） */
.dna-helix {
  position: absolute;
  left: -30px; bottom: 60px;
  width: 160px; height: 480px;
  opacity: .9;
  filter: drop-shadow(0 0 6px rgba(110, 198, 202, .35));
  animation: dnaDrift 30s ease-in-out infinite;
}
@keyframes dnaDrift {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}

/* 分子网络（右上） */
.molecule-net {
  position: absolute;
  right: -50px; top: 80px;
  width: 300px; height: 400px;
  opacity: .9;
  filter: drop-shadow(0 0 4px rgba(110, 198, 202, .35));
  animation: netDrift 28s ease-in-out infinite;
}
@keyframes netDrift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-12px, -16px); }
}

/* 8 个浮光点（全部蓝白主题） */
.star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px #fff, 0 0 14px currentColor;
  animation: twinkle 3.6s ease-in-out infinite;
}
.star-1 { top: 12%; left: 50%; width: 4px;   height: 4px;   color: #6EC6CA; }
.star-2 { top: 22%; right: 30%; width: 3px;   height: 3px;   color: #8CCAE6; animation-delay: .5s; }
.star-3 { top: 38%; left: 16%; width: 2.5px;  height: 2.5px; color: #AEBADE; animation-delay: 1s; }
.star-4 { top: 56%; right: 12%; width: 3.5px; height: 3.5px; color: #6EC6CA; animation-delay: 1.5s; }
.star-5 { top: 68%; left: 60%; width: 2px;   height: 2px;   color: #8CCAE6; animation-delay: 2s; }
.star-6 { top: 78%; left: 28%; width: 4px;   height: 4px;   color: #AEBADE; animation-delay: 2.5s; }
.star-7 { top: 8%;  right: 18%; width: 2.5px; height: 2.5px; color: #6EC6CA; animation-delay: 3s; }
.star-8 { top: 88%; right: 38%; width: 3px;   height: 3px;   color: #8CCAE6; animation-delay: 3.4s; }
@keyframes twinkle {
  0%, 100% { opacity: .35; transform: scale(.8); }
  50%      { opacity: 1; transform: scale(1.6); }
}

/* ============ 主容器 ============ */
.phone {
  position: relative; z-index: 1;
  max-width: 460px; margin: 0 auto;
  padding-top: 28px;
}
.view {
  display: none;
  animation: viewIn .55s cubic-bezier(.2, .8, .2, 1) both;
}
.view.active { display: block; }
@keyframes viewIn {
  0%   { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ============ 顶部品牌 ============ */
.brand {
  text-align: center; padding: 22px 0 18px;
  position: relative;
}
.brand-mark {
  width: 76px; height: 76px;
  margin: 0 auto 14px;
  position: relative;
  filter: drop-shadow(0 8px 16px rgba(63,163,180,.35));
  animation: markFloat 6s ease-in-out infinite;
}
@keyframes markFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-4px) rotate(-2deg); }
}
.brand-svg { width: 100%; height: 100%; }
.brand-logo {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}
.brand-title {
  font-family: var(--f-display);
  font-size: 56px; line-height: 1;
  letter-spacing: 8px;
  color: var(--ink);
  background: linear-gradient(180deg, #17585C 0%, #3FA3B4 40%, #6EC6CA 70%, #AEBADE 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(255,255,255,.5));
  margin-right: -8px;
}
.brand-sub {
  margin-top: 12px;
  display: flex; flex-direction: column; gap: 2px; align-items: center;
}
.brand-sub .zh {
  font-family: var(--f-serif);
  font-size: 14px; font-weight: 500;
  color: var(--ink-soft); letter-spacing: 4px;
}
.brand-sub .en {
  font-family: var(--f-deco);
  font-size: 11px; letter-spacing: 4px;
  color: var(--ink-faint);
}
.brand::after {
  content: ""; display: block;
  width: 60px; height: 2px; margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, var(--blue), var(--mist), transparent);
  border-radius: 1px;
}

/* ============ 卡片 ============ */
.card {
  position: relative;
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 18px;
  margin: 14px 0;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.5) 0%, transparent 35%, transparent 65%, rgba(110,198,202,.08) 100%);
  pointer-events: none;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.card-title {
  font-family: var(--f-serif);
  font-size: 15px; font-weight: 700;
  color: var(--ink);
  letter-spacing: 3px;
  display: inline-flex; align-items: center; gap: 8px;
}
.card-title::before {
  content: ""; width: 3px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, var(--mist), var(--blue), var(--aqua));
}
.card-tag {
  font-family: var(--f-deco);
  font-size: 11px; letter-spacing: 2px;
  color: var(--ink-soft);
  background: rgba(110,198,202,.12);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-soft);
}
.card-desc {
  font-size: 12.5px; color: var(--ink-soft); line-height: 1.6;
  margin-top: 6px; letter-spacing: .5px;
}

/* ============ 按钮 ============ */
.btn {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 14px 18px;
  font-family: var(--f-body);
  font-size: 16px; font-weight: 500;
  letter-spacing: 2px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: #fff; color: var(--ink);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease;
  overflow: hidden;
}
.btn:active { transform: scale(.985); }
.btn-icon { font-size: 18px; line-height: 1; }
.btn-label { display: inline-block; }

.btn-primary {
  background: linear-gradient(120deg, var(--aqua) 0%, var(--blue) 60%, var(--mist) 100%);
  border: none; color: #fff;
  box-shadow: 0 8px 22px rgba(110, 198, 202, .45), inset 0 1px 0 rgba(255,255,255,.5);
  font-weight: 700;
}
.btn-primary .btn-shine {
  position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.55) 50%, transparent 100%);
  transform: skewX(-22deg);
  animation: shine 3.6s ease-in-out infinite;
}
@keyframes shine {
  0%, 70%  { left: -120%; }
  100%     { left: 130%; }
}
.btn-ghost {
  background: rgba(255,255,255,.65);
  border: 1px solid var(--line);
  color: var(--ink);
  backdrop-filter: blur(8px);
}
.btn-ghost.danger { color: var(--indigo); border-color: rgba(107, 111, 201, .35); background: rgba(174, 186, 222, .12); }

.btn-mini {
  width: auto; padding: 6px 14px;
  font-size: 12px;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--ink-soft);
  letter-spacing: 1px;
  cursor: pointer;
}
.btn-debug {
  background: rgba(220, 240, 245, .85);
  border: 1px solid rgba(110, 198, 202, .5);
  color: var(--aqua-deep);
  font-size: 12.5px;
  padding: 8px 10px;
  letter-spacing: 2px;
}
.btn-debug:hover { background: rgba(110, 198, 202, .18); }

.actions { margin: 16px 0; display: flex; flex-direction: column; gap: 10px; }

/* ============ 首页：英雄卡片 ============ */
.card.hero { padding: 22px 20px; }
.hero-deco {
  position: absolute; right: -10px; top: 8px; width: 200px; height: 80px;
  opacity: .6; pointer-events: none;
}
.hero .card-desc { margin-bottom: 16px; }
.hero .actions { margin-top: 4px; }

/* ============ 首页：历史卡片 ============ */
.history-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease;
}
.history-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-elev); }
.history-card .card-deco-l {
  width: 56px; height: 56px; flex: none;
  background: linear-gradient(135deg, rgba(110,198,202,.18), rgba(140,202,230,.16));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-soft);
}
.history-card .card-deco-l svg { width: 80%; height: 80%; }
.history-meta { flex: 1; }
.history-meta .card-title { font-size: 14px; }
.history-meta .card-desc { margin: 2px 0 0; font-size: 12px; }
.history-stat {
  display: flex; align-items: baseline; gap: 2px;
  color: var(--blue-deep);
}
.history-stat .stat-num {
  font-family: var(--f-display);
  font-size: 32px; line-height: 1;
  background: linear-gradient(180deg, #3FA3B4, var(--blue));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.history-stat .stat-unit { font-size: 12px; color: var(--ink-soft); }
.card-arrow {
  font-size: 28px; color: var(--ink-faint); margin-left: -4px;
  font-family: var(--f-deco);
}

/* ============ 首页：演示模式 ============ */
.debug { padding: 0; }
.debug-summary {
  list-style: none;
  padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
}
.debug-summary::-webkit-details-marker { display: none; }
.debug-hint {
  font-family: var(--f-deco);
  font-size: 11px; letter-spacing: 2px;
  color: var(--ink-faint);
}
.debug-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 0 18px 18px;
}

/* ============ 顶部导航 ============ */
.topbar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0 14px;
}
.topbar-back {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.7);
  border-radius: 50%;
  font-size: 22px; color: var(--ink);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding-bottom: 3px;
  backdrop-filter: blur(8px);
  transition: transform .15s ease;
}
.topbar-back:active { transform: scale(.95); }
.topbar-title {
  font-family: var(--f-serif);
  font-size: 17px; font-weight: 700;
  letter-spacing: 4px;
  flex: 1; text-align: center;
  color: var(--ink);
  margin-right: 38px;
}
.topbar-slot { width: 38px; height: 38px; }

/* ============ 拍照卡片 ============ */
.photo-card { padding: 14px; }
.photo-frame {
  position: relative; width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, #EAF7F8, #DFF2F3);
  border: 1px solid var(--line-soft);
}
.photo-ph { position: relative; width: 100%; height: 100%; }
#photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  background: #1a2e35;
  display: block;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}
.photo-mock {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, #F0F8FA 0%, #D8E8EC 30%, #B5C8CD 60%, #8FA5AB 100%);
}
.mock-band {
  position: absolute; left: 8%; right: 8%;
  height: 4%;
  background: rgba(0,0,0,.05);
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(255,255,255,.3);
}

.select-frame {
  position: absolute; left: 6%; top: 44%;
  width: 88%; height: 14%;
  border: 2px solid var(--blue);
  border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(10, 40, 45, .35);
  cursor: move;
}
.sel-handle {
  position: absolute; width: 22px; height: 22px;
  background: radial-gradient(circle at 35% 30%, #BDECEE, var(--aqua));
  border: 2px solid #fff; border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.sel-handle[data-dir=nw] { left: -11px; top: -11px; cursor: nwse-resize; }
.sel-handle[data-dir=ne] { right: -11px; top: -11px; cursor: nesw-resize; }
.sel-handle[data-dir=sw] { left: -11px; bottom: -11px; cursor: nesw-resize; }
.sel-handle[data-dir=se] { right: -11px; bottom: -11px; cursor: nwse-resize; }
.sel-grid {
  position: absolute; inset: 2px;
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 1px;
  height: calc(100% - 4px);
}
.sel-cell {
  pointer-events: none;
  min-height: 14px;
}
.sel-grid::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(100%/16 - 1px), rgba(140,202,230,.85) calc(100%/16 - 1px) calc(100%/16));
  mix-blend-mode: normal;
  border-radius: 4px;
  pointer-events: none;
}

.photo-tools {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px;
}
.photo-hint {
  font-size: 12px; color: var(--ink-faint); letter-spacing: 1px;
}

/* ============ 报告：评分卡片（蓝白主题，4 档都用蓝白系） ============ */
.score-card {
  text-align: center;
  padding: 26px 18px 18px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(174, 186, 222, .20));
  border: 1px solid var(--line);
}
.score-card.risk-low   { background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(110,198,202,.18)); border-color: rgba(110,198,202,.4); }
.score-card.risk-warn  { background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(140,202,230,.20)); border-color: rgba(140,202,230,.45); }
.score-card.risk-early { background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(174,186,222,.22)); border-color: rgba(174,186,222,.5); }
.score-card.risk-high  { background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(107,111,201,.18));  border-color: rgba(107,111,201,.45); }
.score-glow {
  position: absolute; inset: -40% -20% auto -20%;
  height: 240px;
  background: radial-gradient(ellipse at center, rgba(140,202,230,.30), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.score-num {
  position: relative;
  font-family: var(--f-display);
  font-size: 96px; font-weight: 400; line-height: 1;
  background: linear-gradient(180deg, #17585C 0%, #3FA3B4 35%, #6EC6CA 65%, #AEBADE 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(255,255,255,.6));
  margin-bottom: 4px;
}
.score-label {
  font-family: var(--f-serif);
  font-size: 13px; letter-spacing: 5px;
  color: var(--ink-soft);
}
.risk-pill {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
  padding: 8px 18px;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  backdrop-filter: blur(8px);
}
.risk-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 8px var(--aqua);
}
.risk-low   .risk-dot { background: #6EC6CA; box-shadow: 0 0 8px #6EC6CA; }
.risk-warn  .risk-dot { background: #8CCAE6; box-shadow: 0 0 8px #8CCAE6; }
.risk-early .risk-dot { background: #AEBADE; box-shadow: 0 0 8px #AEBADE; }
.risk-high  .risk-dot { background: #6B6FC9; box-shadow: 0 0 8px #6B6FC9; }
.risk-text {
  font-family: var(--f-serif);
  font-size: 16px; font-weight: 700;
  color: var(--ink);
  letter-spacing: 3px;
}
.risk-tip {
  font-size: 12px; color: var(--ink-soft);
  padding-left: 8px;
  border-left: 1px solid var(--line);
}
.score-meta {
  margin-top: 10px;
  font-size: 11.5px; color: var(--ink-faint);
  letter-spacing: 1px;
}

/* ============ 报告：图表 ============ */
.chart-card { padding: 16px 14px 14px; }
.chart-wrap {
  width: 100%; overflow: hidden;
  background:
    radial-gradient(60% 40% at 20% 100%, rgba(110,198,202,.10), transparent 70%),
    radial-gradient(60% 40% at 80% 0%, rgba(140,202,230,.10), transparent 70%);
  border-radius: 14px;
}
#chart, #chart2 { width: 100%; display: block; }

/* ============ 报告：指标明细表 ============ */
.table-wrap { overflow-x: auto; }
.detail-tbl {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}
.detail-tbl th, .detail-tbl td {
  padding: 9px 6px; text-align: center;
  white-space: nowrap;
}
.detail-tbl th {
  font-family: var(--f-serif);
  font-weight: 700; color: var(--ink-soft);
  letter-spacing: 2px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.detail-tbl td {
  border-bottom: 1px dashed rgba(110,198,202,.20);
  color: var(--ink);
}
.detail-tbl td:first-child { font-weight: 500; color: var(--ink-soft); }
.detail-tbl .val { font-variant-numeric: tabular-nums; }
.detail-tbl .spark {
  display: inline-block; width: 36px; height: 14px;
  vertical-align: middle;
}
.detail-tbl tr:last-child td { border-bottom: none; }

/* ============ 历史记录列表 ============ */
.record-list {
  list-style: none;
}
.record-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px dashed rgba(110,198,202,.25);
  cursor: pointer;
  transition: background .2s ease;
}
.record-item:hover { background: rgba(110,198,202,.05); }
.record-item:last-child { border-bottom: none; }
.record-dot {
  width: 10px; height: 10px;
  border-radius: 50%; flex: none;
  background: var(--aqua);
  box-shadow: 0 0 8px currentColor;
}
.record-dot.risk-low   { color: #6EC6CA;  background: #6EC6CA; }
.record-dot.risk-warn  { color: #8CCAE6;  background: #8CCAE6; }
.record-dot.risk-early { color: #AEBADE;  background: #AEBADE; }
.record-dot.risk-high  { color: #6B6FC9;  background: #6B6FC9; }
.record-main { flex: 1; min-width: 0; }
.record-date {
  font-size: 12.5px; color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.record-level {
  font-family: var(--f-serif);
  font-size: 13px; font-weight: 500;
  color: var(--ink);
  margin-top: 2px;
}
.record-score {
  font-family: var(--f-display);
  font-size: 24px; line-height: 1;
  color: var(--aqua-deep);
}
.empty-tip {
  list-style: none;
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
  padding: 30px 0;
}

/* ============ 底部 ============ */
.page-foot {
  text-align: center;
  padding: 18px 0 6px;
}
.foot-tag {
  font-family: var(--f-deco);
  font-size: 10.5px; letter-spacing: 2.5px;
  color: var(--ink-faint);
  padding: 4px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.5);
  backdrop-filter: blur(6px);
}

/* ============ 小屏微调 ============ */
@media (max-width: 380px) {
  .brand-title { font-size: 46px; letter-spacing: 6px; }
  .score-num { font-size: 80px; }
  .photo-frame { aspect-ratio: 3 / 4; }
}

/* ============ Mobile 性能降级（max-width: 768px，含手机/小平板） ============
   v3-2 装饰在桌面表现优秀，但中低端手机上 8 个 infinite 动画 + 6 个
   backdrop-filter blur 同时跑会让滑动/点击掉帧。这里只动 mobile：
   - 关闭 4 个高开销动画（高频 + 大尺寸 blur）
   - 保留 DNA / 分子网 / 品牌 logoCore（慢频 transform + 不重绘 SVG 内部）
   - 6 处 backdrop-filter 改为关闭，提高对应元素不透明度保证可读 */
@media (max-width: 768px) {
  /* 关动画 */
  .bloom, .ribbon, .star, .btn-shine { animation: none !important; }
  /* 保留视觉：散景/飘带仍模糊但缩小 blur 半径 */
  .bloom { filter: blur(36px); }
  .ribbon { filter: blur(3px); }
  /* 关 backdrop-filter（mobile GPU 杀手），并提不透明度保持可读 */
  .card, .btn-ghost, .topbar-back, .risk-pill, .foot-tag {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .card        { background: rgba(255, 255, 255, .94); }
  .btn-ghost   { background: rgba(255, 255, 255, .92); }
  .topbar-back { background: rgba(255, 255, 255, .88); }
  .risk-pill   { background: rgba(255, 255, 255, .88); }
  .foot-tag    { background: rgba(255, 255, 255, .72); }
}

/* ============ 系统级降级（用户开了「减少动效」时全局静默） ============ */
@media (prefers-reduced-motion: reduce) {
  .bloom, .ribbon, .star, .btn-shine,
  .dna-helix, .molecule-net, .brand-mark, .view {
    animation: none !important;
  }
}

/* ICP 备案页脚 */
.icp-footer {
  text-align: center;
  padding: 18px 0 26px;
  font-size: 11px;
  color: #7a9ea2;
}
.icp-footer a { color: inherit; text-decoration: none; }
.icp-footer a:active { opacity: .7; }

/* 备案号：固定在视口最底部、弱化显示 */
body { display: flex; flex-direction: column; }
main.phone { flex: 1 0 auto; }
.icp-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding: 10px 0 8px;
  font-size: 10px;
  opacity: .3;
}
