/* ===== 设计 Tokens ===== */
:root {
  --bg-primary: #0b1522;
  --bg-surface: #13263a;
  --bg-elevated: #19344d;
  --bg-card: rgba(13, 25, 39, 0.86);
  --accent: #ff9f1c;
  --accent-hover: #ffc266;
  --accent-glow: rgba(255, 159, 28, 0.16);
  --accent-border: rgba(255, 159, 28, 0.28);
  --accent-2: #36c3ff;
  --text-primary: #f8fbff;
  --text-secondary: #d9e5f1;
  --text-muted: #9cb4ca;
  --text-dim: #6f89a2;
  --terminal-bg: #08111b;
  --terminal-header: #102031;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(255, 159, 28, 0.14);
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 999px;
  --mono: 'IBM Plex Mono', 'JetBrains Mono', 'Fira Code', 'SFMono-Regular',
    Consolas, monospace;
  --sans: 'Sora', 'Noto Sans SC', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei',
    system-ui, sans-serif;
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 全局重置 ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--text-primary);
  background: linear-gradient(180deg, #09131e 0%, #0b1522 40%, #0a1727 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button,
select,
input {
  font: inherit;
  color: inherit;
}

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

a:hover {
  color: var(--accent-hover);
}

/* ===== 背景装饰 ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(
      ellipse 80% 52% at 50% -18%,
      rgba(255, 159, 28, 0.18),
      transparent
    ),
    radial-gradient(
      ellipse 60% 42% at 84% 100%,
      rgba(54, 195, 255, 0.1),
      transparent
    );
  pointer-events: none;
  z-index: 0;
}

/* ===== 布局容器 ===== */
.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== 顶部导航 ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  gap: 16px;
  background: rgba(9, 19, 30, 0.9);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
  color: #fff8ea;
  background: linear-gradient(
    135deg,
    rgba(255, 159, 28, 0.28),
    rgba(54, 195, 255, 0.18)
  );
  border: 1px solid var(--accent-border);
  box-shadow: var(--shadow-glow);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-text strong {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.brand-text span {
  font-size: 12px;
  color: #b8cde0;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid var(--border);
}

.pill--accent {
  background: var(--accent-glow);
  color: #ffd9a3;
  border-color: var(--accent-border);
}

.pill--muted {
  background: rgba(255, 255, 255, 0.08);
  color: #c0d3e6;
  border-color: rgba(255, 255, 255, 0.14);
}

.pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

/* ===== 进度条 ===== */
.progress-bar {
  position: sticky;
  top: 56px;
  z-index: 39;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 16px 28px 34px;
  background: rgba(9, 19, 30, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
  position: relative;
}

.progress-step:not(:last-child)::after {
  content: '';
  width: 80px;
  height: 2px;
  background: var(--border-strong);
  margin: 0 4px;
  transition: background var(--transition-normal);
}

.progress-step:not(:last-child).done::after {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  border: 2px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-muted);
  transition: all var(--transition-normal);
  position: relative;
  flex-shrink: 0;
}

.progress-step.active .step-circle {
  border-color: var(--accent);
  color: #fff6e7;
  background: var(--accent-glow);
  box-shadow: 0 0 20px rgba(255, 159, 28, 0.22);
}

.progress-step.done .step-circle {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent), #ffb649);
  color: #0a1421;
}

.step-circle .check {
  display: none;
}

.progress-step.done .step-circle .num {
  display: none;
}

.progress-step.done .step-circle .check {
  display: block;
  font-size: 15px;
}

.step-label {
  position: absolute;
  top: 44px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  color: #8ea9c0;
  transition: color var(--transition-normal);
}

.progress-step.active .step-label {
  color: var(--accent);
}

.progress-step.done .step-label {
  color: var(--text-muted);
}

/* ===== 向导容器 ===== */
.wizard {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.wizard-step {
  display: none;
  padding: 48px 28px 80px;
  max-width: 960px;
  margin: 0 auto;
  animation: fade-in 0.4s ease;
}

.wizard-step.active {
  display: block;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== 步骤头部 ===== */
.step-header {
  margin-bottom: 36px;
}

.step-header .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.step-header h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.step-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 64ch;
  line-height: 1.75;
}

/* ===== 卡片 ===== */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: 24px;
  transition: border-color var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  border-color: var(--border-strong);
}

.card + .card {
  margin-top: 16px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title .icon {
  font-size: 20px;
}

.card-desc {
  font-size: 14px;
  color: #b7cadc;
  line-height: 1.7;
}

/* ===== 网格布局 ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* ===== 平台选择卡片 ===== */
.os-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.os-card:hover {
  border-color: var(--accent-border);
  background: var(--bg-elevated);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.os-card.selected {
  border-color: var(--accent);
  background: linear-gradient(
    135deg,
    rgba(255, 159, 28, 0.14),
    rgba(54, 195, 255, 0.08)
  );
  box-shadow: var(--shadow-glow);
}

.os-card .os-icon {
  font-size: 36px;
  margin-bottom: 4px;
}

.os-card .os-name {
  font-size: 15px;
  font-weight: 700;
}

.os-card .os-desc {
  font-size: 12px;
  color: #a8bfd3;
  line-height: 1.5;
}

/* ===== 架构/线路切换 ===== */
.toggle-group {
  display: inline-flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  padding: 3px;
  overflow: hidden;
}

.toggle-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.toggle-btn:hover {
  color: var(--text-primary);
}

.toggle-btn.active {
  background: linear-gradient(135deg, var(--accent), #ffb649);
  color: #0a1421;
  box-shadow: 0 2px 10px rgba(255, 159, 28, 0.34);
}

/* ===== 终端代码块 ===== */
.terminal {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--terminal-bg);
  box-shadow: var(--shadow-sm);
}

.terminal + .terminal {
  margin-top: 14px;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  gap: 12px;
  background: var(--terminal-header);
  border-bottom: 1px solid var(--border);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.terminal-dots span:nth-child(1) {
  background: #ff5f57;
}

.terminal-dots span:nth-child(2) {
  background: #febc2e;
}

.terminal-dots span:nth-child(3) {
  background: #28c840;
}

.terminal-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  flex: 1;
  text-align: center;
}

.copy-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.copy-btn.copied {
  background: var(--accent-glow);
  border-color: var(--accent-border);
  color: var(--accent);
}

.terminal pre {
  margin: 0;
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto;
  color: #e6edf3;
}

.terminal pre .comment {
  color: #8b949e;
}

.terminal pre .string {
  color: #a5d6ff;
}

.terminal pre .cmd {
  color: #79c0ff;
}

/* ===== 提示卡片 ===== */
.note-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  padding: 16px 20px;
  margin-top: 14px;
}

.note-box.note-warn {
  border-color: rgba(251, 191, 36, 0.2);
  background: rgba(251, 191, 36, 0.05);
}

.note-box.note-success {
  border-color: var(--accent-border);
  background: var(--accent-glow);
}

.note-box strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 6px;
}

.note-box p,
.note-box li {
  font-size: 13px;
  color: #d4e3f0;
  line-height: 1.75;
  margin: 0;
}

.note-box ul {
  padding-left: 18px;
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

/* ===== 下载卡片 ===== */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.download-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  transition: all var(--transition-fast);
  color: inherit;
}

.download-link:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  color: inherit;
}

.download-link strong {
  font-size: 13px;
}

.download-link span {
  font-size: 12px;
  color: #abc1d3;
}

/* ===== KV 表格 ===== */
.kv-list {
  display: grid;
  gap: 10px;
}

.kv-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 13px;
}

.kv-row strong {
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding-top: 2px;
}

.kv-row span {
  color: #d4e3f0;
  line-height: 1.65;
}

/* ===== 选项 Tab ===== */
.option-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.option-tab {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-muted);
  padding: 9px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.option-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.option-tab.active {
  background: linear-gradient(135deg, var(--accent), #ffb649);
  border-color: var(--accent);
  color: #0a1421;
  box-shadow: 0 2px 12px rgba(255, 159, 28, 0.28);
}

.option-panel {
  display: none;
}

.option-panel.active {
  display: block;
}

/* ===== 检测信息区域 ===== */
.detect-card {
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    135deg,
    rgba(255, 159, 28, 0.08),
    rgba(54, 195, 255, 0.06)
  );
  padding: 24px;
  margin-bottom: 28px;
}

.detect-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 14px;
}

.detect-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detect-item .label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detect-item .value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ===== 节点探测 ===== */
.probe-grid {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.probe-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  transition: border-color var(--transition-fast);
}

.probe-row.fastest {
  border-color: var(--accent-border);
}

.probe-name {
  font-size: 14px;
  font-weight: 600;
}

.probe-url {
  font-size: 12px;
  color: #9ab3c7;
}

.probe-status {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.probe-status.ok {
  color: var(--accent);
  background: var(--accent-glow);
}

.probe-status.fail {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.probe-status.pending {
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
}

/* ===== 底部操作栏 ===== */
.wizard-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  gap: 24px;
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
}

.footer-hint {
  font-size: 13px;
  color: #bfd2e4;
  max-width: 60ch;
  line-height: 1.6;
  text-align: center;
}

.footer-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-primary);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn:hover {
  background: var(--bg-surface);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #ffb649);
  border-color: var(--accent);
  color: #0a1421;
  box-shadow: 0 4px 14px rgba(255, 159, 28, 0.28);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--accent-hover), #ffd089);
  border-color: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(255, 159, 28, 0.36);
}

/* ===== 配置表单区域 ===== */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 12px;
  font-weight: 700;
  color: #9bb4c8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-primary);
  appearance: auto;
}

.field input[type='text'],
.field input[type='password'] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--mono);
  font-size: 13px;
  transition: border-color var(--transition-fast);
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ===== FAQ 折叠 ===== */
.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

details.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  overflow: hidden;
}

details.faq-item[open] {
  border-color: var(--border-strong);
}

details.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition-fast);
}

details.faq-item summary:hover {
  background: rgba(255, 255, 255, 0.03);
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: '›';
  font-size: 18px;
  color: var(--text-dim);
  transition: transform var(--transition-fast);
}

details.faq-item[open] summary::after {
  transform: rotate(90deg);
}

.faq-body {
  padding: 0 18px 16px;
  font-size: 13px;
  color: #d4e3f0;
  line-height: 1.75;
}

.faq-body ul {
  padding-left: 18px;
  margin-top: 6px;
  display: grid;
  gap: 6px;
}

/* ===== 完成页面 ===== */
.completion-hero {
  text-align: center;
  padding: 40px 0 24px;
}

.completion-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(
    135deg,
    rgba(255, 159, 28, 0.12),
    rgba(54, 195, 255, 0.12)
  );
  border: 2px solid var(--accent);
  font-size: 36px;
  animation: bounce-in 0.6s ease;
}

@keyframes bounce-in {
  0% {
    transform: scale(0);
  }

  60% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

.completion-hero h1 {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.completion-hero p {
  font-size: 16px;
  color: var(--text-secondary);
}

/* ===== Chip 标签 ===== */
.chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* ===== 结果徽章 ===== */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.badge {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

.badge.good {
  background: var(--accent-glow);
  color: var(--accent);
}

.badge.warn {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  box-shadow: var(--shadow-md);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 间距工具 ===== */
.mt-4 {
  margin-top: 16px;
}

.mt-6 {
  margin-top: 24px;
}

.mt-8 {
  margin-top: 32px;
}

.mb-4 {
  margin-bottom: 16px;
}

.gap-4 {
  gap: 16px;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .topbar {
    padding: 12px 16px;
  }

  .progress-bar {
    padding: 14px 16px;
  }

  .progress-step:not(:last-child)::after {
    width: 32px;
  }

  .step-label {
    display: none;
  }

  .wizard-step {
    padding: 32px 16px 90px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .detect-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wizard-footer {
    padding: 12px 16px;
  }

  .footer-hint {
    display: none;
  }

  .step-header h1 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .topbar-meta {
    display: none;
  }

  .detect-grid {
    grid-template-columns: 1fr;
  }

  .option-tabs {
    flex-direction: column;
  }

  .option-tab {
    width: 100%;
    text-align: center;
  }
}
