/* ---- CSS 变量 ---- */
:root {
  --bg-deep:   #0f172a;
  --bg-card:   #1e293b;
  --border:    #334155;
  --accent:    #38bdf8;
  --accent-dim:#0ea5e9;
  --text-main: #e2e8f0;
  --text-sub:  #94a3b8;
  --text-mute: #64748b;
  --danger:    #ef4444;
  --radius:    12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

/* ---- 步骤面板：默认隐藏，active 时显示 ---- */
.step { display: none; min-height: 100vh; padding: 24px 20px; flex-direction: column; }
.step.active { display: flex; }

/* ---- 通用按钮 ---- */
.btn-primary {
  display: block; width: 100%;
  background: var(--accent); color: var(--bg-deep);
  border: none; border-radius: var(--radius);
  padding: 14px; font-size: 16px; font-weight: 700;
  cursor: pointer; margin-top: auto;
  -webkit-appearance: none;
}
.btn-primary:active { background: var(--accent-dim); }

/* ---- 顶部步骤标签 ---- */
.step-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 8px;
}

/* ---- 卡片 ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

/* ---- 圆形采集 UI ---- */
.recorder-wrap {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; flex: 1; gap: 24px;
}
.recorder-ring {
  position: relative; width: 240px; height: 240px;
}
.recorder-ring svg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.ring-bg   { fill: none; stroke: var(--border);  stroke-width: 6; }
.ring-prog { fill: none; stroke: var(--accent);  stroke-width: 6;
             stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.recorder-video {
  position: absolute; top: 8px; left: 8px;
  width: calc(100% - 16px); height: calc(100% - 16px);
  border-radius: 50%; object-fit: cover; background: #000;
}
.recorder-countdown {
  position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%);
  background: var(--bg-deep); border: 1.5px solid var(--accent);
  border-radius: 20px; padding: 2px 12px;
  color: var(--accent); font-size: 18px; font-weight: 700;
  white-space: nowrap;
}
.recorder-instruction {
  text-align: center; color: var(--text-main);
  font-size: 16px; line-height: 1.6; max-width: 280px;
}
.recorder-warning {
  display: none; color: var(--danger);
  font-size: 13px; text-align: center;
}
.recorder-warning.visible { display: block; }

/* ---- 进度条 ---- */
.progress-bar-wrap {
  background: var(--border); border-radius: 4px; height: 6px; overflow: hidden;
}
.progress-bar-fill {
  height: 100%; background: var(--accent);
  border-radius: 4px; transition: width 0.3s;
  width: 0%;
}

/* ---- 报告页 ---- */
.report-chart { width: 100%; height: 300px; }
.report-section { margin-bottom: 24px; }
.report-section h3 { color: var(--accent); font-size: 14px; margin-bottom: 12px; }
