/* ============================================================
   InsightEye H5 · 慧眼视力筛查
   深色科技风 / 移动优先 / 微信内置浏览器兼容
   ============================================================ */

:root {
  --bg: #0a0e14;
  --bg2: #0f151d;
  --panel: #131a24;
  --panel2: #182130;
  --line: rgba(102, 252, 241, 0.14);
  --line2: rgba(255, 255, 255, 0.08);
  --cyan: #66fcf1;
  --cyan-dim: rgba(102, 252, 241, 0.12);
  --teal: #45a29e;
  --pink: #ff2e63;
  --green: #00e676;
  --amber: #ffb300;
  --red: #ff5252;
  --text: #e8f1f2;
  --text2: #9fb3c8;
  --text3: #5c6f84;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
          "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --mono: "SF Mono", Consolas, "Courier New", monospace;
  --radius: 14px;
  --radius-sm: 9px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(102, 252, 241, 0.06), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(255, 46, 99, 0.05), transparent 60%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: calc(68px + var(--safe-b));
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line2);
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan), 0 0 4px var(--cyan);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.brand-name { font-weight: 800; letter-spacing: 2px; font-size: 15px; color: var(--text); }
.brand-accent { color: var(--cyan); }
.topbar-badge {
  font-size: 11px; color: var(--teal);
  border: 1px solid rgba(69, 162, 158, 0.4);
  border-radius: 999px; padding: 3px 10px;
  background: rgba(69, 162, 158, 0.08);
}

/* ---------- 主容器 ---------- */
.container {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 14px 24px;
}

/* ---------- 视图切换 ---------- */
.view { display: none; animation: fadeIn 0.28s ease; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 18px 8px 14px; }
.hero-sm { padding: 6px 8px 12px; }
.hero-icon { font-size: 44px; line-height: 1; margin-bottom: 10px; filter: drop-shadow(0 0 18px rgba(102,252,241,.4)); }
.hero-title { font-size: 24px; font-weight: 800; letter-spacing: 1px; }
.hero-sub { color: var(--text2); font-size: 13px; margin-top: 6px; }

/* ---------- 卡片 ---------- */
.card {
  background: linear-gradient(160deg, var(--panel), var(--bg2));
  border: 1px solid var(--line2);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}
.card-title {
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  color: var(--cyan); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.card-title::before {
  content: ""; width: 3px; height: 14px; border-radius: 2px;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}

/* ---------- 流程步骤 ---------- */
.steps { list-style: none; margin-bottom: 16px; }
.steps li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 9px 0; border-bottom: 1px dashed var(--line2);
}
.steps li:last-child { border-bottom: none; }
.steps b {
  font-family: var(--mono); color: var(--cyan); font-size: 13px;
  width: 26px; height: 26px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(102, 252, 241, 0.35);
  border-radius: 8px; background: var(--cyan-dim);
}
.steps span { font-size: 14px; font-weight: 600; display: block; }
.steps em { font-style: normal; font-size: 12px; color: var(--text2); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: var(--radius-sm);
  padding: 13px 20px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all 0.18s ease;
  font-family: var(--font);
  min-height: 46px; touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: #06221f; box-shadow: 0 4px 18px rgba(102, 252, 241, 0.25);
}
.btn-primary:active { box-shadow: 0 2px 8px rgba(102, 252, 241, 0.15); }
.btn-ghost {
  background: transparent; color: var(--text2);
  border: 1px solid var(--line2);
}
.btn-ghost:active { background: rgba(255,255,255,0.04); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 14px; min-height: 38px; font-size: 13px; }
.btn-icon {
  background: transparent; border: 1px solid var(--line2); color: var(--text);
  width: 40px; height: 40px; border-radius: 10px; font-size: 17px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- 须知/提示列表 ---------- */
.tips { list-style: none; }
.tips li {
  font-size: 13px; color: var(--text2);
  padding: 7px 0; border-bottom: 1px dashed var(--line2);
}
.tips li:last-child { border-bottom: none; }
.tips b { color: var(--text); }
.note-text { font-size: 12px; color: var(--text3); margin-top: 10px; }

/* ---------- 视力小贴士 ---------- */
.tip-facts { display: flex; gap: 8px; margin-bottom: 8px; }
.fact {
  flex: 1; text-align: center; padding: 10px 4px;
  border: 1px solid var(--line2); border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
}
.fact b { display: block; color: var(--cyan); font-family: var(--mono); font-size: 15px; }
.fact span { font-size: 11px; color: var(--text2); }

/* ---------- 校准 ---------- */
.calib-box-wrap { display: flex; justify-content: center; padding: 8px 0 14px; }
.calib-box {
  border: 2px dashed var(--cyan); border-radius: 12px;
  background: rgba(102, 252, 241, 0.04);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative;
  box-shadow: 0 0 24px rgba(102, 252, 241, 0.08) inset;
  transition: width 0.05s linear;
}
.calib-chip {
  width: 34px; height: 22px; border-radius: 4px;
  background: var(--cyan-dim); border: 1px solid rgba(102,252,241,.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 800; color: var(--cyan); letter-spacing: 1px;
}
.calib-label { font-size: 9px; color: rgba(102, 252, 241, 0.65); margin-top: 4px; }

.slider-row { margin: 4px 0 14px; }
.slider-row input[type="range"] {
  width: 100%; accent-color: var(--cyan); cursor: pointer; height: 26px;
}
.slider-hint {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--text3);
}
.slider-hint b { color: var(--cyan); font-family: var(--mono); }

.calib-info { background: rgba(255,255,255,0.03); border-radius: var(--radius-sm); padding: 10px 12px; }
.info-line {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; padding: 4px 0;
}
.info-line span { color: var(--text2); }
.info-line b { font-family: var(--mono); color: var(--cyan); font-weight: 600; }

/* ---------- 分段按钮 ---------- */
.seg-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.seg {
  flex: 1; min-width: 72px;
  padding: 10px 8px; border-radius: var(--radius-sm);
  border: 1px solid var(--line2); background: transparent;
  color: var(--text2); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all 0.15s ease; font-family: var(--font);
}
.seg.active {
  border-color: var(--cyan); color: var(--cyan);
  background: var(--cyan-dim); box-shadow: 0 0 12px rgba(102,252,241,.12);
}

/* ---------- 测试视图 ---------- */
.test-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 12px;
}
.test-header-info { text-align: left; }
.test-header-info.right { text-align: right; }
.th-label { display: block; font-size: 10px; color: var(--text3); letter-spacing: 1px; }
.th-eye { font-size: 15px; color: var(--cyan); display: flex; align-items: center; gap: 6px; }
.th-eye::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--pink); animation: pulse 1s infinite;
}
.th-dist { font-family: var(--mono); font-size: 13px; color: var(--green); }
.th-dist.bad { color: var(--pink); }

/* 摄像头卡片 */
.cam-card { padding: 12px; }
.cam-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text2); margin-bottom: 10px;
}
.cam-status { font-size: 11px; color: var(--amber); }
.cam-status.ok { color: var(--green); }
.cam-status.err { color: var(--pink); }
.cam-stage {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  background: #05080c; aspect-ratio: 4/3;
}
.cam-stage video { display: none; }
.cam-stage canvas { width: 100%; height: 100%; display: block; object-fit: cover; }
.cam-loading {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--text2); font-size: 12px; text-align: center; padding: 12px;
}
.cam-error {
  position: absolute; inset: 0; z-index: 6;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: rgba(5, 8, 12, 0.92); color: var(--text2); font-size: 13px;
  text-align: center; padding: 16px;
}
.spinner {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid rgba(102, 252, 241, 0.2); border-top-color: var(--cyan);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.cam-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px;
}
.metric {
  text-align: center; padding: 7px 2px;
  background: rgba(255,255,255,0.03); border-radius: var(--radius-sm);
  border: 1px solid var(--line2);
}
.metric span { display: block; font-size: 10px; color: var(--text3); }
.metric b { font-family: var(--mono); font-size: 14px; color: var(--cyan); }

.dist-bar {
  margin-top: 10px; height: 8px; border-radius: 999px;
  background: rgba(255,255,255,0.06); position: relative; overflow: hidden;
}
.dist-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 50%;
  background: linear-gradient(90deg, var(--pink), var(--amber) 45%, var(--green));
  border-radius: 999px; transition: width 0.3s ease;
}
.dist-bar span {
  position: absolute; right: 0; top: -18px;
  font-size: 10px; color: var(--text3);
}

/* 手动距离卡 */
.manual-card { text-align: center; }
.manual-card p { font-size: 14px; margin-bottom: 12px; }
.manual-card b { color: var(--cyan); }

/* 距离警告遮罩 */
.dist-warning {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(5, 8, 12, 0.94);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.dist-warning.hidden { display: none; }
.dw-box {
  text-align: center; border: 1px solid rgba(255, 82, 82, 0.4);
  border-radius: var(--radius); padding: 26px 22px; max-width: 340px;
  background: rgba(255, 82, 82, 0.06);
}
.dw-box h3 { color: var(--red); margin-bottom: 10px; }
.dw-box p { font-size: 14px; color: var(--text2); }
.dw-box b { color: var(--cyan); }
.dw-tip { font-size: 12px; color: var(--text3); margin-top: 10px; }

/* 测试指令 */
#testIntro .tips li { padding: 9px 0; }

/* 遮眼提示 */
.eye-cover {
  text-align: center; padding: 8px 0 2px;
}
.eye-cover span {
  display: inline-block; font-size: 13px; font-weight: 600;
  color: var(--cyan);
  background: var(--cyan-dim); border: 1px solid rgba(102,252,241,.3);
  border-radius: 999px; padding: 6px 16px;
}

/* 视标展示区 */
.optotype-stage {
  background: #000;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  min-height: 200px;
  display: flex; align-items: center; justify-content: center;
  margin: 12px 0 8px;
  padding: 18px;
  position: relative;
}
.optotype-letter {
  font-weight: 800; color: #fff; font-family: var(--font);
  line-height: 1; user-select: none; -webkit-user-select: none;
  letter-spacing: 0.02em;
  transition: font-size 0.2s ease;
}

.progress-dots { display: flex; justify-content: center; gap: 7px; margin: 10px 0 4px; }
.progress-dots i {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.12); font-style: normal;
}
.progress-dots i.done { background: var(--teal); }
.progress-dots i.current { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

/* 作答区 */
.answer-pad { margin-top: 10px; }
.answer-hint { text-align: center; font-size: 12px; color: var(--text3); margin-bottom: 8px; }
.letter-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.letter-grid button {
  aspect-ratio: 1.3 / 1;
  border: 1px solid var(--line2); border-radius: var(--radius-sm);
  background: var(--panel2); color: var(--text);
  font-size: 20px; font-weight: 800; cursor: pointer; font-family: var(--font);
  transition: all 0.12s ease;
}
.letter-grid button:active { background: var(--cyan-dim); border-color: var(--cyan); transform: scale(0.94); }
.letter-grid button.correct { background: rgba(0, 230, 118, 0.18); border-color: var(--green); color: var(--green); }
.letter-grid button.wrong { background: rgba(255, 82, 82, 0.16); border-color: var(--red); color: var(--red); }

/* 单眼完成过渡 */
.transition-ok {
  width: 56px; height: 56px; margin: 0 auto 12px;
  border-radius: 50%; background: rgba(0, 230, 118, 0.12);
  border: 1px solid var(--green); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
#testTransition { text-align: center; padding: 28px 18px; }
#testTransition h3 { margin-bottom: 6px; font-size: 17px; }
#testTransition p { color: var(--text2); font-size: 14px; margin-bottom: 18px; }
#testTransition b { color: var(--cyan); font-family: var(--mono); }

/* ---------- 报告 ---------- */
.report-hero { text-align: center; padding: 14px 0 4px; }
.report-score-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.report-score {
  text-align: center; padding: 12px 6px;
  border-radius: var(--radius-sm); border: 1px solid var(--line2);
  background: rgba(255,255,255,0.02);
}
.report-score .rs-eye { font-size: 11px; color: var(--text3); display: block; }
.report-score .rs-val { font-family: var(--mono); font-size: 17px; font-weight: 700; color: var(--cyan); display: block; margin-top: 2px; }
.report-score.good .rs-val { color: var(--green); }
.report-score.mid .rs-val { color: var(--amber); }
.report-score.bad .rs-val { color: var(--red); }

.report-section { margin-bottom: 14px; }
.report-section h4 {
  font-size: 13px; color: var(--cyan); letter-spacing: 1px;
  margin-bottom: 8px; display: flex; align-items: center; gap: 7px;
}
.report-section h4::before { content: ""; width: 3px; height: 12px; background: var(--cyan); border-radius: 2px; }

.risk-flags { display: flex; flex-direction: column; gap: 8px; }
.risk-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line2); font-size: 13px;
}
.risk-item .risk-ico { font-size: 16px; }
.risk-item.alert { border-color: rgba(255, 82, 82, 0.35); background: rgba(255, 82, 82, 0.06); }
.risk-item.ok { border-color: rgba(0, 230, 118, 0.3); background: rgba(0, 230, 118, 0.05); }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.stat-box { padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.03); border: 1px solid var(--line2); }
.stat-box span { font-size: 11px; color: var(--text3); display: block; }
.stat-box b { font-family: var(--mono); font-size: 16px; color: var(--text); }

.assessment-box {
  border-left: 3px solid var(--cyan);
  background: var(--cyan-dim);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 14px; font-size: 13px; color: var(--text2);
}
.assessment-box b { color: var(--cyan); }

.report-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.disclaimer {
  font-size: 11px; color: var(--text3); text-align: center; margin-top: 14px; line-height: 1.7;
}
.report-ts { text-align: center; font-size: 11px; color: var(--text3); margin-bottom: 10px; font-family: var(--mono); }

/* ---------- 实验室 ---------- */
.lab-stage {
  background: #fff; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  min-height: 170px; padding: 14px; margin-bottom: 4px;
  border: 1px solid rgba(255,255,255,0.1);
}
.lab-stage svg { max-width: 140px; max-height: 140px; }
.lab-letters { margin-top: 8px; }
.lab-letters .seg { font-family: var(--mono); font-weight: 800; }

.preset-row { display: flex; gap: 8px; margin-bottom: 14px; }

.lab-param {
  margin-bottom: 12px;
}
.lab-param .lp-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text2); margin-bottom: 4px;
}
.lab-param .lp-head b { font-family: var(--mono); color: var(--cyan); font-size: 11px; }
.lab-param input[type="range"] { width: 100%; accent-color: var(--cyan); height: 22px; }

.lab-row-actions { display: flex; gap: 8px; margin-bottom: 12px; }
.lab-row-actions .btn { flex: 1; }
.lab-output { margin-top: 6px; }
.lab-output .chart-card {
  background: #fff; border-radius: var(--radius-sm); overflow: hidden;
  display: flex; justify-content: center; padding: 10px 4px;
}
.lab-output svg { max-width: 100%; height: auto; }
.lab-output .chart-meta {
  font-size: 11px; color: var(--text3); text-align: center; margin-top: 6px; font-family: var(--mono);
}

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: flex; background: rgba(13, 18, 26, 0.95);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line2);
  padding-bottom: var(--safe-b);
}
.tab {
  flex: 1; background: transparent; border: none; color: var(--text3);
  font-size: 11px; padding: 8px 0 9px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-family: var(--font);
}
.tab-ico { font-size: 18px; line-height: 1; filter: grayscale(0.6) opacity(0.7); }
.tab.active { color: var(--cyan); }
.tab.active .tab-ico { filter: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%);
  background: rgba(20, 28, 38, 0.96); color: var(--text);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 20px; font-size: 13px; z-index: 90;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  white-space: nowrap; max-width: 86vw; overflow: hidden; text-overflow: ellipsis;
  transition: opacity 0.25s ease;
}
.toast.hidden { opacity: 0; pointer-events: none; }

/* ============================================================
   筛查模块（散光/色觉/阿姆斯勒/对比度/视野/问卷）
   ============================================================ */

/* 模块头栏 */
.mod-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 12px;
}
.link-btn {
  background: none; border: none; color: var(--cyan);
  font-size: 12px; cursor: pointer; padding: 0; font-family: var(--font);
}

/* 筛查项目网格（首页 / 筛查中心） */
.screen-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.screen-grid.single { grid-template-columns: 1fr; }
.screen-item {
  border: 1px solid var(--line2); border-radius: var(--radius);
  padding: 13px 12px; background: linear-gradient(160deg, var(--panel), var(--bg2));
  cursor: pointer; text-align: left; font-family: var(--font); color: var(--text);
  position: relative; transition: all 0.15s ease; min-height: 86px;
}
.screen-item:active { transform: scale(0.96); border-color: var(--cyan); }
.screen-item .si-ico { font-size: 22px; line-height: 1; }
.screen-item .si-name { font-weight: 700; font-size: 14px; margin-top: 7px; }
.screen-item .si-desc { font-size: 11px; color: var(--text2); margin-top: 3px; line-height: 1.45; }
.screen-item .si-state {
  position: absolute; top: 10px; right: 10px; font-size: 10px;
  padding: 2px 8px; border-radius: 999px; font-weight: 700;
}
.si-state.done { color: var(--green); border: 1px solid rgba(0,230,118,.35); background: rgba(0,230,118,.07); }
.si-state.todo { color: var(--text3); border: 1px solid var(--line2); }

/* 黑底测试舞台通用 */
.dark-stage {
  background: #000; border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  padding: 16px; margin: 12px 0; position: relative; overflow: hidden;
}
.dial-svg { width: 100%; max-width: 320px; display: block; }

/* 12 点钟方向按钮 */
.clock-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.clock-grid .seg { min-width: 0; padding: 10px 4px; font-size: 12px; }

/* 色觉图谱 */
.plate-wrap {
  background: #fff; border-radius: var(--radius);
  padding: 12px; display: flex; justify-content: center; margin: 12px 0;
}
.plate-wrap canvas { width: min(100%, 300px); height: auto; display: block; }
.plate-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.plate-opts button {
  aspect-ratio: 1.15 / 1;
  border: 1px solid var(--line2); border-radius: var(--radius-sm);
  background: var(--panel2); color: var(--text);
  font-size: 18px; font-weight: 800; cursor: pointer; font-family: var(--mono);
  transition: all 0.12s ease;
}
.plate-opts button:active { transform: scale(0.94); }
.plate-opts button.correct { background: rgba(0,230,118,.18); border-color: var(--green); color: var(--green); }
.plate-opts button.wrong { background: rgba(255,82,82,.16); border-color: var(--red); color: var(--red); }

/* 阿姆斯勒 */
.amsler-canvas { width: 100%; border-radius: 8px; display: block; touch-action: manipulation; }

/* 对比敏感度 */
.cs-letter {
  font-weight: 800; font-family: var(--font); color: #fff;
  line-height: 1; user-select: none; -webkit-user-select: none;
}
.cs-meta {
  position: absolute; top: 8px; right: 12px; font-size: 10px;
  color: rgba(255,255,255,.25); font-family: var(--mono);
}

/* 周边视野 */
.field-stage {
  position: relative; background: #000; border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 1 / 1; margin: 12px 0;
  touch-action: manipulation;
}
.field-cross {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  color: var(--cyan); font-size: 24px; font-weight: 700;
  text-shadow: 0 0 12px rgba(102,252,241,.8); user-select: none;
}
.field-dot {
  position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan);
}
.field-msg {
  position: absolute; left: 0; right: 0; bottom: 12px; text-align: center;
  font-size: 12px; color: var(--text2); pointer-events: none; padding: 0 12px;
}
.field-tap-hint {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--text3); font-size: 13px; pointer-events: none;
}

/* 问卷 */
.q-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.q-opt {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border: 1px solid var(--line2); border-radius: var(--radius-sm);
  background: transparent; color: var(--text); font-size: 14px; cursor: pointer;
  font-family: var(--font); transition: all 0.12s ease;
}
.q-opt:active, .q-opt.sel { border-color: var(--cyan); background: var(--cyan-dim); }
.q-opt b { color: var(--text3); font-size: 12px; font-family: var(--mono); font-weight: 600; }

/* 模块内进度 */
.mod-progress { display: flex; justify-content: center; gap: 7px; margin: 10px 0 4px; }
.mod-progress i {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.12); font-style: normal;
}
.mod-progress i.done { background: var(--teal); }
.mod-progress i.current { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

/* 模块结果 */
.result-line {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 9px 0; border-bottom: 1px dashed var(--line2); font-size: 13px;
}
.result-line:last-child { border-bottom: none; }
.result-line span { color: var(--text2); }
.result-line b { font-family: var(--mono); text-align: right; }
.verdict-chip {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700; margin-top: 6px;
}
.verdict-chip.good { color: var(--green); border: 1px solid rgba(0,230,118,.4); background: rgba(0,230,118,.08); }
.verdict-chip.mid  { color: var(--amber); border: 1px solid rgba(255,179,0,.4); background: rgba(255,179,0,.08); }
.verdict-chip.bad  { color: var(--red); border: 1px solid rgba(255,82,82,.4); background: rgba(255,82,82,.08); }
.result-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

/* ---------- 隐藏工具类 ---------- */
.hidden { display: none !important; }

/* ---------- 打印样式（报告） ---------- */
@media print {
  body { background: #fff; color: #111; padding: 0; }
  .topbar, .tabbar, .report-actions, .disclaimer, .btn, .brand-dot { display: none !important; }
  .container { max-width: 100%; padding: 0; }
  .card {
    background: #fff; border: 1px solid #ddd; box-shadow: none;
    break-inside: avoid; color: #111;
  }
  .card-title { color: #0b7285; }
  .card-title::before { background: #0b7285; }
  .report-score .rs-val { color: #0b7285; }
  .assessment-box { border-left-color: #0b7285; background: #eef8fa; color: #333; }
  .stat-box { background: #f7f7f7; border-color: #ddd; }
  .stat-box b { color: #111; }
  .risk-item { border-color: #ddd; }
  .risk-item.alert { background: #fdeeee; border-color: #e0a0a0; }
  .risk-item.ok { background: #eefaf1; border-color: #a0d8b0; }
  .report-ts { color: #666; }
  .section-title, h4 { color: #0b7285 !important; }
}
