/* ============================================
   乡音记 · 布局与通用组件 v4
   Airbnb Design System 重写版
   设计方向：纯白底 · 1px 发丝边框 · 克制动效
   ------------------------------------------
   设计原则
   1. 去渐变 —— 按钮与卡片使用纯色
   2. 1px 发丝边框 —— border: 1px solid var(--hairline)
   3. hover 轻微上浮 —— translateY(-2px) + shadow 加深
   4. 去掉 spotlight 渐变边框 / mask 技巧
   5. 去掉毛玻璃 backdrop-filter —— 纯白背景
   6. active 按钮按下 —— scale(0.98)
   7. focus-visible —— 金色 3px outline + 2px offset
   8. scroll-behavior: smooth（由 theme.html 提供）
   9. 适老化 —— 按钮高度 ≥ 48px，触控目标充足
   10. 响应式 —— 768px 移动端断点
   ============================================ */

/* ---- Airbnb 设计令牌覆盖（与 theme.css 协同，需在 theme 之后加载） ---- */
:root {
  --header-h: 80px;            /* Airbnb 顶部导航 80px */
  --r-card: 14px;              /* Airbnb 卡片圆角 */
  --r-modal: 14px;             /* Airbnb Modal 圆角 */
  --hairline: var(--rule);     /* 发丝边框色别名 */
  --overlay: rgba(0, 0, 0, 0.4); /* Airbnb 遮罩 */
}

/* ============================================
   顶部导航（白底 · 80px · 底部 1px 发丝线）
   ============================================ */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 80px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--hairline);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
/* scroll 状态：仅加深底部线条与微影 */
.app-header.scrolled {
  border-bottom-color: var(--hairline);
  box-shadow: 0 1px 0 var(--hairline), var(--shadow-xs);
}
.app-header-inner {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.app-logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--ink);
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  transition: opacity var(--dur-fast) var(--ease);
}
.app-logo:hover { opacity: 0.82; }
.app-logo .accent-text { color: var(--gold); }
.app-logo .dot { color: var(--terra); margin: 0 2px; }

.app-nav {
  display: flex;
  gap: var(--sp-1);
  align-items: center;
}
.nav-link {
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
  white-space: nowrap;
  position: relative;
  background: transparent;
  border: none;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}
.nav-link:hover {
  color: var(--ink);
  background: var(--bg-warm);
}
/* active：底部金色实线，不用渐变与背景色 */
.nav-link.active {
  color: var(--gold);
  font-weight: 600;
  background: transparent;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* ============================================
   移动端汉堡菜单（纯白底 · 发丝边框）
   ============================================ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 12px 10px;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
}
.nav-toggle:hover {
  background: var(--bg-warm);
  border-color: var(--gold-soft);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 3px;
  transition: transform 0.35s var(--ease-spring),
              opacity 0.2s var(--ease),
              background var(--dur-fast) var(--ease);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
  background: var(--gold);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
  background: var(--gold);
}

/* ============================================
   页面容器
   ============================================ */
.page {
  display: none;
  padding-top: var(--header-h);
  min-height: 100vh;
  animation: fadeIn var(--dur) var(--ease);
}
.page.active { display: block; }

.container {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.container-sm { max-width: 720px; }
.container-lg { max-width: 1200px; }

/* ============================================
   区块与标题（左对齐编辑感 · 纯色色条）
   ============================================ */
.section { padding: var(--sp-12) 0; }
.section-sm { padding: var(--sp-8) 0; }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 900;
  color: var(--ink);
  text-align: left;
  margin-bottom: var(--sp-2);
  letter-spacing: 0.01em;
  line-height: 1.3;
  position: relative;
  padding-left: var(--sp-4);
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 4px;
  border-radius: var(--r-full);
  background: var(--gold);
}
.section-subtitle {
  text-align: left;
  color: var(--muted);
  margin-bottom: var(--sp-8);
  font-size: 1.02rem;
  max-width: 580px;
  line-height: 1.8;
  padding-left: var(--sp-4);
}

/* ============================================
   按钮（纯色 · 8px 圆角 · ≥48px 高）
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease-spring),
              box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  white-space: nowrap;
  user-select: none;
  position: relative;
  line-height: 1.4;
}
/* 焦点环：金色 3px outline + 2px offset */
.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
/* 悬浮微位移 */
.btn:not(:disabled):hover {
  transform: translateY(-2px);
}
/* 按下反馈 */
.btn:not(:disabled):active {
  transform: translateY(0) scale(0.98);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* 主按钮：金色纯色底白字 */
.btn-primary {
  background: var(--gold);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:not(:disabled):hover {
  background: var(--gold-deep);
  box-shadow: var(--shadow-lg);
}

/* 次按钮：白底金边 */
.btn-outline {
  background: var(--bg-card);
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-outline:not(:disabled):hover {
  background: var(--gold-bg);
  border-color: var(--gold-deep);
  color: var(--gold-deep);
}

/* 幽灵按钮：白底发丝边 */
.btn-ghost {
  background: var(--bg-card);
  color: var(--ink-soft);
  border: 1px solid var(--hairline);
}
.btn-ghost:not(:disabled):hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-bg);
}

/* 赭石按钮：纯色底白字 */
.btn-terra {
  background: var(--terra);
  color: #fff;
  box-shadow: var(--shadow-terra);
}
.btn-terra:not(:disabled):hover {
  background: var(--terra-light);
  box-shadow: var(--shadow-lg);
}

/* tertiary 文字链接按钮 */
.btn-tertiary {
  background: transparent;
  color: var(--gold);
  padding: var(--sp-3) var(--sp-3);
  border: none;
  box-shadow: none;
}
.btn-tertiary::after {
  content: '';
  position: absolute;
  left: var(--sp-3);
  right: var(--sp-3);
  bottom: calc(var(--sp-3) - 2px);
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.btn-tertiary:hover {
  color: var(--gold-deep);
  background: transparent;
}
.btn-tertiary:hover::after {
  transform: scaleX(1);
}
.btn-tertiary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* 尺寸 */
.btn-lg { min-height: 56px; padding: var(--sp-4) var(--sp-6); font-size: 1.05rem; }
.btn-sm { padding: var(--sp-2) var(--sp-3); font-size: 0.85rem; border-radius: var(--r-sm); }
.btn-block { display: flex; width: 100%; }

/* ============================================
   卡片（白底 · 14px 圆角 · 1px 发丝边框）
   ============================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: var(--sp-5);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  position: relative;
}
.card-base {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: var(--sp-5);
}
/* hover：轻微上浮 + 阴影加深 + 金色边框 */
.card.hover { cursor: pointer; }
.card.hover:hover {
  transform: translateY(-2px);
  border-color: var(--gold-soft);
  box-shadow: var(--shadow-lg);
}
.card-accent {
  background: var(--gold-bg);
  border-color: var(--gold-soft);
}
.card-warm {
  background: var(--bg-warm);
  border-color: var(--rule-soft);
}

/* ============================================
   网格
   ============================================ */
.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ============================================
   徽章/标签（纯色 · 发丝边框）
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.6;
}
.badge-gold {
  background: var(--gold-bg);
  color: var(--gold-deep);
  border: 1px solid var(--gold-soft);
}
.badge-terra {
  background: var(--terra-soft);
  color: var(--terra);
  border: 1px solid #f0c5b8;
}
.badge-sage {
  background: var(--sage-soft);
  color: var(--sage);
  border: 1px solid #c5dcc4;
}
.badge-muted {
  background: var(--bg-warm);
  color: var(--muted);
  border: 1px solid var(--hairline);
}

/* ============================================
   Toast 通知（白卡 · 8px 圆角 · 发丝边框 · 左滑入）
   ============================================ */
.toast-container {
  position: fixed;
  top: calc(var(--header-h) + var(--sp-4));
  left: var(--sp-5);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  pointer-events: none;
  max-width: 380px;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  pointer-events: auto;
  animation: toastSlideIn 0.4s var(--ease-spring);
}
.toast.removing {
  animation: toastSlideOut 0.3s var(--ease) forwards;
}
@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(-100%) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}
@keyframes toastSlideOut {
  to {
    opacity: 0;
    transform: translateX(-100%) scale(0.96);
  }
}
.toast-success { border-left: 4px solid var(--success); }
.toast-error   { border-left: 4px solid var(--danger); }
.toast-info    { border-left: 4px solid var(--info); }
.toast-warning { border-left: 4px solid var(--warning); }
.toast-icon    { font-size: 1.2rem; flex-shrink: 0; line-height: 1; }
.toast-body    { flex: 1; }
.toast-title   { font-weight: 700; margin-bottom: 2px; color: var(--ink); }
.toast-msg     { color: var(--muted); font-size: 0.85rem; line-height: 1.5; }

/* ============================================
   模态弹窗（白卡 · 14px 圆角 · 遮罩 rgba(0,0,0,0.4)）
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
  animation: fadeIn var(--dur) var(--ease);
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-modal);
  max-width: 540px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  animation: modalSpring 0.45s var(--ease-spring);
  box-shadow: var(--shadow-lg);
}
@keyframes modalSpring {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(16px);
  }
  60% {
    opacity: 1;
    transform: scale(1.01) translateY(-2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.modal-header {
  padding: var(--sp-5) var(--sp-5) var(--sp-3);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { font-size: 1.25rem; }
.modal-close {
  background: none;
  border: 1px solid transparent;
  font-size: 1.5rem;
  color: var(--muted);
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  line-height: 1;
  transition: color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.modal-close:hover {
  color: var(--ink);
  background: var(--bg-warm);
  border-color: var(--hairline);
  transform: rotate(90deg);
}
.modal-body { padding: var(--sp-5); }
.modal-footer {
  padding: var(--sp-3) var(--sp-5) var(--sp-5);
  display: flex;
  gap: var(--sp-3);
  justify-content: flex-end;
  border-top: 1px solid var(--hairline);
}

/* ============================================
   加载与波形（纯色金条 · 自然呼吸）
   ============================================ */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--hairline);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loading-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-8);
  color: var(--muted);
}

.voice-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 48px;
}
/* 兼容 .wave-bar 与 span 两种写法 */
.voice-wave .wave-bar,
.voice-wave span {
  display: block;
  width: 4px;
  min-height: 6px;
  background: var(--gold);
  border-radius: var(--r-full);
  animation: voiceWave 1.2s ease-in-out infinite;
  transform-origin: center;
}
.voice-wave > :nth-child(1) { animation-delay: 0s;    height: 30%; }
.voice-wave > :nth-child(2) { animation-delay: 0.15s; height: 60%; }
.voice-wave > :nth-child(3) { animation-delay: 0.3s;  height: 90%; }
.voice-wave > :nth-child(4) { animation-delay: 0.45s; height: 100%; }
.voice-wave > :nth-child(5) { animation-delay: 0.3s;  height: 75%; }
.voice-wave > :nth-child(6) { animation-delay: 0.15s; height: 45%; }
.voice-wave > :nth-child(7) { animation-delay: 0s;    height: 25%; }
@keyframes voiceWave {
  0%, 100% {
    transform: scaleY(0.35);
    opacity: 0.6;
  }
  30% {
    transform: scaleY(1);
    opacity: 1;
  }
  60% {
    transform: scaleY(0.6);
    opacity: 0.85;
  }
}

/* ============================================
   步骤指示器（金色圆点 · 完成态金色填充 · 发丝连接线）
   ============================================ */
.steps {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  justify-content: center;
  margin-bottom: var(--sp-8);
  flex-wrap: wrap;
}
.step {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.step-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  color: var(--muted);
  transition: all var(--dur) var(--ease-spring);
  flex-shrink: 0;
}
/* 当前步骤：金色填充 */
.step.active .step-dot {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  box-shadow: 0 0 0 4px var(--gold-bg);
  transform: scale(1.08);
}
/* 完成态：金色填充 */
.step.done .step-dot {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.step-line {
  width: 48px;
  height: 1px;
  background: var(--hairline);
  transition: background var(--dur) var(--ease);
  border-radius: 1px;
}
.step-line.active { background: var(--gold); }
.step-label {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
  font-weight: 500;
}
.step.active .step-label { color: var(--gold); font-weight: 600; }
.step.done .step-label { color: var(--gold-deep); font-weight: 600; }

/* ============================================
   空状态
   ============================================ */
.empty-state {
  text-align: center;
  padding: var(--sp-12) var(--sp-5);
  color: var(--muted);
}
.empty-state-icon {
  font-size: 3.5rem;
  margin-bottom: var(--sp-4);
  opacity: 0.25;
  display: block;
}
.empty-state-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: var(--sp-2);
}
.empty-state-desc {
  font-size: 0.92rem;
  color: var(--muted-dim);
  line-height: 1.7;
  max-width: 420px;
  margin: 0 auto;
}

/* ============================================
   分割线
   ============================================ */
.divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: var(--sp-6) 0;
}
.divider-accent {
  width: 60px;
  border: none;
  border-top: 3px solid var(--gold);
  margin: var(--sp-4) auto;
  border-radius: 2px;
}

/* ============================================
   表单元素（56px 高 · 8px 圆角 · focus 金色 2px 边框）
   ============================================ */
.form-group {
  margin-bottom: var(--sp-5);
}
.form-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: var(--sp-2);
  letter-spacing: 0.01em;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  min-height: 56px;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: var(--bg-card);
  color: var(--ink);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
  outline: none;
}
/* focus：金色 2px 边框（1px border + 1px 外环，无位移抖动） */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 0 0 4px var(--gold-bg);
}
.form-input::placeholder { color: var(--muted-dim); }
.form-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238a7d6b' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* ============================================
   滚动入场动画
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ============================================
   工具类
   ============================================ */
.hidden { display: none !important; }

/* ============================================
   响应式断点
   ============================================ */

/* 平板：768px */
@media (max-width: 768px) {
  html { font-size: 16px; }

  /* 汉堡菜单显示 */
  .nav-toggle { display: flex; }

  /* 导航下拉面板（纯白底） */
  .app-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    padding: var(--sp-3);
    gap: var(--sp-1);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease-spring),
                opacity 0.3s var(--ease);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .app-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link {
    width: 100%;
    text-align: left;
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--r-sm);
    justify-content: flex-start;
  }
  .nav-link.active::after {
    left: var(--sp-4);
    transform: none;
    width: 24px;
  }

  /* 网格降列 */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* 容器 */
  .container { padding: 0 var(--sp-4); }

  /* 区块 */
  .section { padding: var(--sp-8) 0; }

  /* 标题：移动端仍左对齐 */
  .section-title { font-size: 1.5rem; }
  .section-subtitle { font-size: 0.95rem; }

  /* 模态 */
  .modal {
    max-width: 100%;
    border-radius: var(--r-modal);
    margin: var(--sp-4);
  }

  /* Toast */
  .toast-container {
    left: var(--sp-4);
    right: var(--sp-4);
    max-width: none;
  }
  .toast { max-width: 100%; }

  /* 步骤 */
  .steps { gap: var(--sp-1); }
  .step-line { width: 24px; }
  .step-dot { width: 34px; height: 34px; font-size: 0.82rem; }
  .step-label { display: none; }
  .step.active .step-label,
  .step.done .step-label { display: inline; }
}

/* 手机：480px */
@media (max-width: 480px) {
  html { font-size: 15px; }

  .app-header-inner { padding: 0 var(--sp-3); }
  .container { padding: 0 var(--sp-3); }

  .section { padding: var(--sp-6) 0; }
  .section-title {
    font-size: 1.35rem;
    padding-left: var(--sp-3);
  }
  .section-subtitle {
    font-size: 0.9rem;
    padding-left: var(--sp-3);
  }

  /* 按钮：全宽优先 */
  .btn { width: 100%; }
  .btn-sm { width: auto; }

  /* 卡片 */
  .card { padding: var(--sp-4); }

  /* 模态 */
  .modal-overlay { padding: var(--sp-3); }
  .modal {
    margin: 0;
    border-radius: var(--r-modal);
  }
  .modal-header,
  .modal-body,
  .modal-footer { padding-left: var(--sp-4); padding-right: var(--sp-4); }
  .modal-footer { flex-direction: column; }
  .modal-footer .btn { width: 100%; }

  /* Toast */
  .toast {
    padding: var(--sp-3) var(--sp-4);
    font-size: 0.85rem;
  }

  /* 步骤器隐藏标签 */
  .step-label { display: none; }
}
