:root {
  --bg: #FFF8F0;
  --surface: #FFFFFF;
  --border: #E7E0D6;
  --text: #1C1917;
  --text-2: #44403C;
  --muted: #78716C;
  --orange: #EA580C;
  --orange-light: #FFEDD5;
  --sky: #0284C7;
  --green: #059669;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 30px rgba(234, 88, 12, 0.08), 0 2px 8px rgba(0,0,0,0.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html, body {
  min-height: 100%;
  min-height: 100dvh;
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(251, 191, 36, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 5% 90%, rgba(56, 189, 248, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, #FFFCF8 0%, #FFF8F0 100%);
  pointer-events: none;
}

.app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
}

.screen { display: none; min-height: 100vh; min-height: 100dvh; animation: fadeIn 0.35s ease; }
.screen.active { display: flex; flex-direction: column; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }

}

/* ===== 首页 ===== */
#welcome {
  flex: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px calc(20px + env(safe-area-inset-bottom));
  width: 100%;
  justify-content: center;
}

.top-nav {
  padding: calc(14px + env(safe-area-inset-top)) 0 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  color: inherit;
}
.brand.small { font-size: 15px; }

.brand-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 3px 8px rgba(234, 88, 12, 0.22));
}
img.brand-logo { object-fit: contain; }
svg.brand-logo { overflow: visible; }
.brand.small .brand-logo {
  width: 32px;
  height: 32px;
}
.brand-name {
  background: linear-gradient(135deg, #1C1917 40%, #EA580C 75%, #0284C7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.02em;
}

/* 首页主容器 */
.hero-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.hero-intro { margin-bottom: 24px; }

.hero-intro h1 {
  font-size: clamp(24px, 5.5vw, 32px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.hero-intro h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #EA580C, #F59E0B, #0284C7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--orange-light);
  color: #C2410C;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}
.pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.lead {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.lead strong { color: var(--text-2); font-weight: 600; }

/* 首页品质承诺 */
.hero-promise {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin-bottom: 14px;
  line-height: 1.4;
}

.promise-contrast {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  color: #A8A29E;
  letter-spacing: 0.04em;
}

.promise-contrast::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #D6D3D1;
  transform: rotate(-4deg);
}

.promise-focus {
  font-size: clamp(15px, 3.5vw, 17px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.promise-trail {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FFFBF5 0%, #F0F9FF 100%);
  border: 1px solid #F0EBE3;
}

.trail-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.2;
}

.trail-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.trail-chip.c1 { background: #E0F2FE; color: #0369A1; }
.trail-chip.c1::before { background: #0284C7; }
.trail-chip.c2 { background: #FFEDD5; color: #C2410C; }
.trail-chip.c2::before { background: #EA580C; }
.trail-chip.c3 { background: #D1FAE5; color: #047857; }
.trail-chip.c3::before { background: #059669; }

.trail-arrow {
  width: 14px;
  height: 1px;
  background: linear-gradient(90deg, #FDBA74, #7DD3FC);
  position: relative;
  flex-shrink: 0;
}

.trail-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-top: 1.5px solid #F59E0B;
  border-right: 1.5px solid #F59E0B;
  transform: translateY(-50%) rotate(45deg);
}

/* 流程四宫格 */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.flow-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 8px 14px;
  background: #FFFCF8;
  border: 1px solid var(--border);
  border-radius: 12px;
  gap: 6px;
}

.flow-num {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}

.flow-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-top: 4px;
}
.flow-icon svg { width: 18px; height: 18px; }
.fi-1 { background: #FEF3C7; color: #D97706; }
.fi-2 { background: #E0F2FE; color: #0284C7; }
.fi-3 { background: #FFEDD5; color: #EA580C; }
.fi-4 { background: #D1FAE5; color: #059669; }

.flow-cell b {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.flow-cell span {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.35;
}

.hero-cta { text-align: center; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  min-height: 50px;
  width: 100%;
  max-width: 360px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #F59E0B, #EA580C);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.32);
  touch-action: manipulation;
  user-select: none;
  transition: transform 0.15s;
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.fine-print {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

/* ===== 表单 ===== */
#wizard {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 20px 32px;
  width: 100%;
}

.wizard-header { margin-bottom: 14px; }
.wizard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.btn-link {
  border: none; background: none;
  color: var(--sky);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  padding: 6px;
  min-height: 44px;
}

.progress-bar {
  height: 4px;
  background: #EDE8E0;
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #F59E0B, #0284C7);
  border-radius: 999px;
  transition: width 0.3s;
  width: 20%;
}
.step-label { margin-top: 6px; font-size: 12px; color: var(--muted); }

.wizard-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.step { display: none; }
.step.active { display: block; animation: fadeIn 0.25s ease; }
.step h2 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.step-desc { font-size: 12px; color: var(--muted); margin-bottom: 14px; }

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}
.template-card {
  padding: 12px;
  min-height: 72px;
  border-radius: var(--radius-sm);
  border: 2px solid #EDE8E0;
  background: #FFFCF8;
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.15s;
}
.template-card:active { transform: scale(0.98); }
.template-card.selected {
  border-color: var(--orange);
  background: var(--orange-light);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}
.template-preview {
  height: 28px;
  border-radius: 5px;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--tc1), var(--tc2));
}
.template-card h3 { font-size: 12px; font-weight: 600; }
.template-card .meta { font-size: 10px; color: var(--muted); }
.template-card p { display: none; }

.animation-list { display: grid; gap: 8px; }
.anim-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 12px;
  min-height: 56px;
  border-radius: var(--radius-sm);
  border: 2px solid #EDE8E0;
  background: #FFFCF8;
  cursor: pointer;
  touch-action: manipulation;
}
.anim-card:active { transform: scale(0.99); }
.anim-card.selected {
  border-color: var(--orange);
  background: var(--orange-light);
}
.anim-level {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #F59E0B, #EA580C);
  color: #fff;
  font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.anim-info h3 { font-size: 14px; font-weight: 600; }
.anim-info p { font-size: 12px; color: var(--muted); }

.info-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FFFBEB 0%, #F0F9FF 100%);
  border: 1px solid #FDE68A;
}
.info-notice-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #FEF3C7;
  color: #D97706;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.info-notice-icon svg { width: 16px; height: 16px; }
.info-notice-body strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #92400E;
  margin-bottom: 4px;
}
.info-notice-body p {
  font-size: 12px;
  line-height: 1.65;
  color: #78716C;
  margin: 0;
}
.info-notice-body em {
  font-style: normal;
  font-weight: 600;
  color: #0369A1;
}

/* 弹窗 */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  background: rgba(28, 25, 23, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: modalFadeIn 0.25s ease;
}
.modal-overlay.hidden { display: none; }

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  width: min(360px, 100%);
  padding: 28px 24px 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(28, 25, 23, 0.18);
  text-align: center;
  animation: modalSlideUp 0.28s ease;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.modal-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #FEF3C7, #FFEDD5);
  color: #D97706;
  display: grid;
  place-items: center;
}
.modal-icon svg { width: 26px; height: 26px; }

.modal-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.modal-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 20px;
  text-align: left;
}
.modal-text em {
  font-style: normal;
  font-weight: 600;
  color: #0369A1;
}

.modal-btn {
  width: 100%;
  max-width: none;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.page-count-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.page-count-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.page-count-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.page-count-hint {
  font-size: 11px;
  color: var(--muted);
}

.page-count-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.page-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #FFFCF8;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  min-height: 56px;
}

.page-chip:hover {
  border-color: #FDBA74;
  background: #FFFBF5;
}

.page-chip.selected {
  border-color: var(--orange);
  background: var(--orange-light);
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.12);
}

.page-chip b {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.page-chip span {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.2;
}

.page-chip.selected b { color: #C2410C; }

/* 演讲稿生成 */
.option-block-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 4px;
}

.option-block-hint {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 8px;
}

.speech-audience-hint {
  margin: 10px 0 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  font-size: 12px;
  line-height: 1.6;
  color: #9A3412;
}

.speech-audience-hint:empty { display: none; }

.speech-audience-hint strong { color: #C2410C; font-weight: 600; }

.speech-need-block { margin-bottom: 16px; }

.speech-need-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.speech-need-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 12px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: #FFFCF8;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  min-height: 72px;
}

.speech-need-card:hover { border-color: #FDBA74; background: #FFFBF5; }

.speech-need-card.selected {
  border-color: var(--orange);
  background: var(--orange-light);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.speech-need-card b { font-size: 15px; font-weight: 700; color: var(--text); }
.speech-need-card span { font-size: 11px; color: var(--muted); }
.speech-need-card.selected b { color: #C2410C; }

.speech-options-panel {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #FFFCF8 0%, #F8FAFC 100%);
}

.speech-options-panel.hidden { display: none; }

.speech-preview {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
}

.speech-preview-icon { font-size: 22px; line-height: 1; flex-shrink: 0; }

.speech-preview p {
  font-size: 12px;
  line-height: 1.65;
  color: #475569;
  margin: 0;
}

.speech-preview strong { color: #0369A1; font-weight: 600; }

.speech-option-group { margin-bottom: 14px; }

.option-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.option-chip-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.option-chip-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.option-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  min-height: 52px;
  text-align: center;
}

.option-chip:hover { border-color: #93C5FD; background: #F0F9FF; }

.option-chip.selected {
  border-color: #0284C7;
  background: #E0F2FE;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.12);
}

.option-chip b { font-size: 12px; font-weight: 700; color: var(--text); line-height: 1.25; }
.option-chip span { font-size: 10px; color: var(--muted); line-height: 1.25; }
.option-chip.selected b { color: #0369A1; }

.speech-check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.speech-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-2);
  transition: border-color 0.15s, background 0.15s;
}

.speech-check-item:hover { border-color: #93C5FD; }

.speech-check-item.checked {
  border-color: #0284C7;
  background: #E0F2FE;
  color: #0369A1;
  font-weight: 600;
}

.speech-check-item input { display: none; }

.speech-check-item .check-dot {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid #CBD5E1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 10px;
  color: transparent;
}

.speech-check-item.checked .check-dot {
  border-color: #0284C7;
  background: #0284C7;
  color: #fff;
}

.field { display: flex; flex-direction: column; gap: 5px; }
.field-spaced { margin-top: 12px; }
.field span { font-size: 12px; font-weight: 500; color: var(--text-2); }
.field input, .field textarea, textarea {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #FFFCF8;
  color: var(--text);
  font: inherit; font-size: 14px;
  outline: none;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field textarea:focus, textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
  background: #fff;
}

.brand-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.field.compact { flex-direction: row; align-items: center; gap: 8px; flex-wrap: wrap; }
.field.compact span { white-space: nowrap; }
.field.compact input[type="color"] {
  width: 36px; height: 32px;
  border: 1px solid var(--border);
  border-radius: 6px; cursor: pointer;
}
.color-text { flex: 1; min-width: 80px; }

.content-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #FFFCF8;
  color: var(--muted);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  touch-action: manipulation;
}
.tab.active {
  background: var(--orange-light);
  border-color: var(--orange);
  color: #C2410C;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.upload-zone {
  border: 2px dashed #D6D0C4;
  border-radius: var(--radius-sm);
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  background: #FFFCF8;
  color: var(--text-2);
  font-size: 14px;
  touch-action: manipulation;
}
.upload-icon { color: var(--orange); margin-bottom: 8px; display: flex; justify-content: center; }
.upload-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.upload-result {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #D1FAE5;
  color: #047857;
  font-size: 13px;
}
.hidden { display: none !important; }

.summary-card { display: grid; gap: 8px; }
.summary-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 11px 12px;
  border-radius: 8px;
  background: #FFFCF8;
  border: 1px solid #EDE8E0;
  font-size: 13px;
}
.summary-row .label { color: var(--muted); font-size: 12px; flex-shrink: 0; }
.summary-row .value { font-weight: 500; text-align: right; word-break: break-all; }

.wizard-footer {
  display: flex; justify-content: space-between;
  margin-top: 14px; gap: 10px;
}
.btn-ghost {
  padding: 12px 18px;
  min-height: 48px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-ghost:active:not(:disabled) { transform: scale(0.98); }
.btn-ghost:disabled { opacity: 0.4; cursor: not-allowed; }

#success {
  align-items: center; justify-content: center;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
}
.success-card {
  text-align: center;
  max-width: 400px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: var(--shadow);
}
.success-check {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #D1FAE5;
  color: var(--green);
  display: grid; place-items: center;
}
.success-card h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.success-sub { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.order-box {
  padding: 14px;
  border-radius: 10px;
  background: #FFFCF8;
  border: 1px solid #EDE8E0;
  margin-bottom: 14px;
}
.order-label { font-size: 11px; color: var(--muted); display: block; margin-bottom: 4px; }
.order-no { font-size: 20px; font-weight: 800; color: var(--orange); }
.success-detail { font-size: 12px; color: var(--muted); margin-bottom: 16px; line-height: 1.6; }
.success-card .btn-primary { max-width: none; }

/* ===== 手机端 ===== */
@media (max-width: 720px) {
  #welcome {
    padding: 0 12px calc(16px + env(safe-area-inset-bottom));
    justify-content: flex-start;
  }

  .top-nav {
    padding: calc(10px + env(safe-area-inset-top)) 0 12px;
  }

  .hero-shell {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .hero-intro {
    margin-bottom: 18px;
    text-align: center;
  }

  .hero-intro h1 {
    font-size: 22px;
  }

  .hero-promise {
    justify-content: center;
    margin-bottom: 12px;
  }

  .promise-trail {
    justify-content: center;
    padding: 10px;
    gap: 5px;
  }

  .trail-chip {
    font-size: 11px;
    padding: 4px 8px;
  }

  .trail-arrow {
    width: 10px;
  }

  .pill {
    margin-bottom: 12px;
  }

  /* 手机：2x2 流程格 */
  .flow-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 20px;
  }

  .flow-cell {
    padding: 14px 10px 12px;
    border-radius: 10px;
  }

  .flow-cell b { font-size: 13px; }
  .flow-cell span { font-size: 11px; }

  .hero-cta .btn-primary {
    max-width: none;
    width: 100%;
  }

  /* 表单向导 */
  #wizard {
    padding: 0 0 calc(88px + env(safe-area-inset-bottom));
    max-width: 100%;
  }

  .wizard-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg);
    padding: calc(8px + env(safe-area-inset-top)) 12px 10px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border);
  }

  .wizard-body {
    margin: 10px 12px 0;
    padding: 16px;
    border-radius: 14px;
  }

  .step h2 { font-size: 18px; }

  .form-grid, .brand-row { grid-template-columns: 1fr; }

  .page-count-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .page-chip {
    min-height: 52px;
    padding: 8px 4px;
  }

  .speech-need-grid { gap: 8px; }
  .speech-need-card { min-height: 64px; padding: 12px 8px; }
  .option-chip-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .option-chip-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .speech-check-grid { grid-template-columns: 1fr; }

  .field.compact span { width: 100%; margin-bottom: 2px; }

  .field input, .field textarea, textarea {
    font-size: 16px;
    padding: 12px;
    min-height: 48px;
  }

  textarea { min-height: 120px; }

  .template-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .template-card h3 { font-size: 13px; }

  .summary-row {
    flex-direction: column;
    gap: 4px;
    padding: 12px;
  }
  .summary-row .value { text-align: left; font-size: 14px; }

  .wizard-footer {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 100;
    margin-top: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
  }

  .wizard-footer .btn-primary,
  .wizard-footer .btn-ghost {
    flex: 1;
  }
}

@media (max-width: 380px) {
  .flow-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .flow-icon { width: 32px; height: 32px; }
  .flow-icon svg { width: 16px; height: 16px; }
}

@media (min-width: 721px) {
  .hero-shell {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    grid-template-rows: auto auto;
    gap: 0 32px;
    padding: 32px 36px;
  }

  .hero-intro {
    grid-column: 1;
    grid-row: 1 / 3;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .flow-grid {
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 0;
  }

  .hero-cta {
    grid-column: 2;
    grid-row: 2;
    text-align: left;
    margin-top: 16px;
  }

  .hero-cta .btn-primary {
    width: auto;
    max-width: none;
  }

  .fine-print { text-align: left; }
}

@media (hover: hover) {
  .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(234, 88, 12, 0.38); }
  .template-card:hover { border-color: #D6D0C4; }
  .anim-card:hover { border-color: #D6D0C4; }
  .upload-zone:hover { border-color: var(--orange); background: var(--orange-light); }
  .btn-ghost:hover:not(:disabled) { background: #FFFCF8; }
  .btn-link:hover { text-decoration: underline; }
}
