/* INVITE STUDIO · 提交页 · 雾青工坊（Claude 方向 + 避开暖玫瑰/Inter 套版） */
:root {
  --bg: #eef2f4;
  --surface: #f7f9fa;
  --card: #ffffff;
  --ink: #141820;
  --muted: #5c6570;
  --secondary: #1c4d5e;
  --faint: #8a939e;
  --line: rgba(20, 24, 32, 0.1);
  --soft: #e4ebef;
  --soft-2: #dce5ea;
  --chip: #cfe3e8;
  --danger: #b42318;
  --ok: #1f6b4a;
  --primary: #1c4d5e;
  --primary-soft: #2a6a7e;
  --accent: #1c4d5e;
  --sec-soft: #d4e4d8;

  --r: 0.85rem;
  --gutter: 1rem;
  --max: 540px;
  --top: 64px;
  --dock: 100px;

  --font: "Outfit", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --display: "Cormorant Garamond", "Songti SC", "Noto Serif SC", serif;
  --ease: cubic-bezier(.22, .75, .28, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(120% 80% at 50% -10%, #d9e7ec 0%, transparent 55%),
    radial-gradient(90% 60% at 100% 100%, #e8eef1 0%, transparent 45%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
::-webkit-scrollbar { display: none; }
::selection { background: var(--chip); }

.pt-safe { padding-top: env(safe-area-inset-top, 0); }
.pb-safe { padding-bottom: max(10px, env(safe-area-inset-bottom, 0)); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0; white-space: nowrap;
}
.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
  line-height: 1; user-select: none;
}

.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  box-shadow: 0 1px 12px rgba(20, 27, 43, 0.03);
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: var(--top);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.brand-col { min-width: 0; }
.brand-caps {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.brand-name {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.save-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--chip) 60%, transparent);
  color: #68645f;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.save-pill[hidden] { display: none !important; }
.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--secondary);
  animation: pulse 1.6s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.top-right { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.text-btn {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.text-btn:active { background: var(--soft-2); }
.icon-btn {
  width: 44px; height: 44px;
  border: 0; border-radius: 999px;
  background: transparent;
  color: var(--ink);
  display: grid; place-items: center;
  text-decoration: none;
  cursor: pointer;
}
.icon-btn .material-symbols-outlined { font-size: 20px; }
.icon-btn:active { background: var(--soft-2); }

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding:
    calc(var(--top) + env(safe-area-inset-top, 0) + 10px)
    var(--gutter)
    calc(var(--dock) + env(safe-area-inset-bottom, 0) + 20px);
}
body.is-success .shell {
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0));
}
body.is-success .dock { display: none !important; }
body.is-success .progress-wrap,
body.is-success .draft-banner { display: none !important; }

.progress-wrap { margin-bottom: 12px; }
.progress-wrap[hidden] { display: none !important; }
.step-card {
  background: var(--card);
  border-radius: var(--r);
  padding: 12px 16px;
  box-shadow: 0 1px 4px rgba(20, 27, 43, 0.04);
}
.step-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.step-count {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.step-count strong {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-transform: none;
}
.step-hint {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.step-segs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.seg {
  height: 6px;
  border-radius: 999px;
  background: var(--soft-2);
  transition: background .25s var(--ease);
}
.seg.on { background: var(--primary); }

.draft-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: var(--r);
  background: color-mix(in srgb, var(--chip) 50%, transparent);
  color: #1e1b18;
  font-size: 13px;
}
.draft-banner[hidden] { display: none !important; }
.draft-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.draft-left .material-symbols-outlined { font-size: 18px; color: var(--secondary); }
.draft-banner button {
  border: 0;
  background: none;
  color: var(--secondary);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 999px;
}

.pane {
  margin: 0; padding: 0; border: 0;
  animation: rise .28s var(--ease);
}
.pane[hidden] { display: none !important; }
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.pane-intro { margin: 0 0 14px; padding: 0 2px; }
.eyebrow {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
}
.pane-intro h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.pane-intro p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

/* Step 2 · ultra clean */
.step2-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 28px;
}
.step2-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.step2-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--primary);
}
.step2-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: color-mix(in srgb, var(--faint) 40%, transparent);
  flex-shrink: 0;
}
.step2-occ {
  font-size: 13px;
  color: var(--secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.step2-change {
  border: 0;
  background: none;
  color: var(--secondary);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
}
.step2-change:active { color: var(--primary); }
.step2-intro { margin-bottom: 20px; }
.step2-intro h1 {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.info-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.info-block {
  padding: 16px;
  background: var(--card);
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--soft-2) 80%, transparent);
  box-shadow: 0 1px 4px rgba(30, 27, 28, 0.04);
}
.info-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 14px;
}
.info-block-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.opt-tag,
.info-block .opt {
  font-size: 11px;
  font-weight: 600;
  color: var(--secondary);
  background: var(--sec-soft);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.info-block .field { margin: 0 0 12px; }
.info-block .field:last-child { margin-bottom: 0; }
.info-block .field > label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.info-block .field em {
  color: var(--danger);
  font-style: normal;
}
.info-block input[type="text"],
.info-block input[type="date"],
.info-block input[type="time"],
.info-block textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--soft);
  border: 1.5px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
}
.info-block input[type="date"],
.info-block input[type="time"] {
  min-height: 52px;
  line-height: 1.2;
}
.info-block textarea {
  min-height: 80px;
  resize: none;
  line-height: 1.45;
}
.info-block input:focus,
.info-block textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent);
}
.info-block .field-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--faint);
}
.weekday-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--sec-soft);
  color: #0f1f13;
}
.weekday-badge[hidden] { display: none !important; }

@media (max-width: 360px) {
  .info-grid { grid-template-columns: 1fr; }
  .step2-intro h1 { font-size: 24px; }
}

.quiet-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 8px;
  color: var(--secondary);
  opacity: 0.65;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.quiet-note .material-symbols-outlined { font-size: 14px; }

.custom-occasion {
  margin-top: 14px;
  padding: 14px;
  background: var(--card);
  border-radius: var(--r);
  box-shadow: 0 1px 4px rgba(20, 27, 43, 0.04);
}
.custom-occasion label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.custom-occasion label em { color: #b12b22; font-style: normal; }
.custom-occasion input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(20, 27, 43, 0.12);
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  background: #fff;
}
.custom-occasion .field-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted, #625e59);
}
.choice-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.choice { position: relative; cursor: pointer; user-select: none; }
.choice input {
  position: absolute; opacity: 0; inset: 0; margin: 0;
}
.choice-face {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 96px;
  padding: 14px;
  background: var(--card);
  border-radius: var(--r);
  box-shadow: 0 1px 4px rgba(20, 27, 43, 0.04);
  transition: background .18s, box-shadow .18s, transform .12s, border-color .18s;
  border: 1px solid transparent;
}
.choice:active .choice-face { transform: scale(0.985); }
.choice-ico {
  width: 40px; height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  color: var(--primary);
  font-size: 22px !important;
  margin-bottom: 10px;
}
.choice-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.choice-sub { display: none; }
.choice:has(input:checked) .choice-face {
  background: color-mix(in srgb, var(--chip) 55%, #fff);
  border-color: color-mix(in srgb, var(--primary) 35%, transparent);
  box-shadow: 0 6px 16px rgba(28, 77, 94, 0.12);
}
.choice:has(input:checked) .choice-ico {
  background: var(--primary);
  color: #fff;
}

.assist {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--r);
  background: var(--soft);
  color: var(--muted);
}
.assist .material-symbols-outlined {
  font-size: 20px;
  color: var(--secondary);
  margin-top: 1px;
  flex-shrink: 0;
}
.assist p { margin: 0; font-size: 13px; line-height: 1.55; }

.stack {
  background: var(--card);
  border-radius: var(--r);
  padding: 16px;
  box-shadow: 0 1px 4px rgba(20, 27, 43, 0.04);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.field { margin: 0; }
.field > label,
.label-row label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.field em {
  color: var(--danger);
  font-style: normal;
}
.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.label-row label { margin: 0; }
.mini-hint {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--secondary);
}
.weekday-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--chip);
  color: #1e1b18;
}
.weekday-badge[hidden] { display: none !important; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.field-row.single { grid-template-columns: 1fr; }

input[type="text"],
input[type="date"],
input[type="time"],
input[type="tel"],
input[type="search"],
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--soft);
  border: 0;
  border-radius: var(--r);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
  transition: background .15s;
}
textarea {
  min-height: 80px;
  resize: none;
  line-height: 1.45;
}
input::placeholder,
textarea::placeholder { color: var(--faint); }
input:focus,
textarea:focus {
  outline: none;
  background: var(--soft-2);
}
.field.invalid input,
.field.invalid textarea {
  background: color-mix(in srgb, var(--danger) 10%, #fff);
}
.field-error {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--danger);
}
.field-error[hidden] { display: none !important; }
.field-hint {
  margin: 6px 0 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--secondary);
}
.mini-help {
  border: 0;
  background: none;
  color: var(--secondary);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 0;
}

.uploader,
.photo-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 160px;
  padding: 28px 18px;
  background: var(--card);
  border-radius: var(--r);
  box-shadow: 0 1px 4px rgba(20, 27, 43, 0.04);
  text-align: center;
  cursor: pointer;
  margin-bottom: 18px;
}
.photo-hero.drag-over,
.uploader.drag-over,
.photo-hero:active,
.uploader:active { background: var(--soft); transform: scale(0.99); }
.photo-hero-ico,
.uploader-ico {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px !important;
  color: var(--ink);
  margin-bottom: 2px;
}
.photo-hero strong,
.uploader strong { font-size: 16px; font-weight: 600; }
.photo-hero-count {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--soft-2);
  color: var(--secondary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.photo-hero em {
  max-width: 18rem;
  font-style: normal;
  font-size: 13px;
  color: var(--secondary);
  line-height: 1.45;
}
.uploader span:not(.material-symbols-outlined) {
  font-size: 13px;
  color: var(--secondary);
}
.photo-hero input[type="file"],
.uploader input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}

.gallery-block { margin: 0 0 8px; }
.gallery-block[hidden] { display: none !important; }
.gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0 2px;
  font-size: 16px;
  font-weight: 600;
}
.gallery-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 400;
  color: var(--secondary);
}
.gallery-hint .material-symbols-outlined { font-size: 16px; }

.thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--soft-2);
  touch-action: manipulation;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  box-shadow: 0 1px 4px rgba(20, 27, 43, 0.05);
}
.thumb img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  pointer-events: none; -webkit-user-drag: none;
  z-index: 0;
}
.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.38) 0%, transparent 42%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}
.thumb.dragging { opacity: .45; transform: scale(0.97); }
.thumb-top,
.thumb-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.thumb .cover-badge,
.thumb .role-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.thumb .cover-badge {
  background: var(--ink);
  color: #fff;
}
.thumb .role-badge {
  background: rgba(255,255,255,.92);
  color: var(--ink);
}
.thumb .remove-btn {
  width: 36px; height: 36px;
  border: 0; border-radius: 50%;
  background: rgba(20, 16, 14, 0.72);
  backdrop-filter: blur(8px);
  color: #fff;
  line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.thumb .remove-btn .material-symbols-outlined { font-size: 18px; }
  .thumb .remove-btn:active { background: rgba(28, 77, 94, 0.92); transform: scale(0.94); }
.thumb .order-num {
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.35);
  background: none;
  padding: 0;
  position: static;
}
.thumb .drag-handle {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  color: #fff;
  display: grid; place-items: center;
  touch-action: none;
  cursor: grab;
  position: relative;
  z-index: 5;
}
.thumb .drag-handle .material-symbols-outlined { font-size: 16px; }
.thumb-add {
  aspect-ratio: 1;
  border: 0;
  border-radius: var(--r);
  background: var(--card);
  box-shadow: 0 1px 4px rgba(20, 27, 43, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  cursor: pointer;
  color: var(--secondary);
  font: inherit;
}
.thumb-add:active { transform: scale(0.97); background: var(--soft); }
.thumb-add-ico {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--soft-2);
  display: grid; place-items: center;
  color: var(--ink);
}
.thumb-add-ico .material-symbols-outlined { font-size: 22px; }
.thumb-add strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}
.thumb-add span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.link-skip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  margin-top: 14px;
  border: 0;
  background: none;
  color: var(--secondary);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 10px;
  cursor: pointer;
  border-radius: 999px;
}
.link-skip .material-symbols-outlined { font-size: 16px; }
.link-skip:active { background: var(--soft); }

.summary {
  margin: 0 0 12px;
  padding: 16px;
  background: var(--card);
  border-radius: var(--r);
  box-shadow: 0 1px 4px rgba(20, 27, 43, 0.04);
}
.summary h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.summary dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}
.summary dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 0 0 2px;
}
.summary dd {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  word-break: break-word;
}
.summary .sum-item { display: flex; flex-direction: column; }

.more {
  margin-top: 10px;
  background: var(--card);
  border-radius: var(--r);
  padding: 0 16px;
  box-shadow: 0 1px 4px rgba(20, 27, 43, 0.04);
}
.more summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--secondary);
}
.more summary::-webkit-details-marker { display: none; }
.more summary .material-symbols-outlined { font-size: 18px; }
.more-body { padding-bottom: 14px; display: flex; flex-direction: column; gap: 12px; }

.form-msg {
  margin: 12px 0 0;
  padding: 12px;
  border-radius: var(--r);
  background: color-mix(in srgb, var(--danger) 12%, #fff);
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.form-msg[hidden] { display: none !important; }

.dock {
  position: fixed;
  inset: auto 0 0;
  z-index: 45;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 -8px 24px rgba(20, 27, 43, 0.04);
}
.dock[hidden] { display: none !important; }
.dock-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px var(--gutter) 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-prev,
.btn-next,
.btn-submit,
.sheet-ok {
  font: inherit;
  border: 0;
  cursor: pointer;
  min-height: 48px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: transform .1s var(--ease), opacity .15s;
}
.btn-prev:active,
.btn-next:active,
.btn-submit:active { transform: scale(0.98); }
.btn-prev {
  width: 48px;
  min-height: 48px;
  padding: 0;
  background: var(--card);
  color: var(--ink);
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(30, 27, 28, 0.06);
}
.btn-prev[hidden] { display: none !important; }
.btn-prev .material-symbols-outlined { font-size: 20px; }
.btn-next,
.btn-submit {
  flex: 1;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 28%, transparent);
}
.btn-next .material-symbols-outlined,
.btn-submit .material-symbols-outlined { font-size: 18px; }
.btn-submit[hidden],
.btn-next[hidden] { display: none !important; }
.btn-submit:disabled,
.btn-next:disabled { opacity: 0.45; }
.dock-note {
  margin: 0;
  padding: 6px var(--gutter) 0;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--muted);
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
body.is-success .dock-note { display: none; }

.poster-submit-block {
  margin-top: 18px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.poster-submit-block .summary {
  margin-bottom: 12px;
}

/* Success */
.success {
  text-align: left;
  padding: 8px 0 24px;
  animation: rise .32s var(--ease);
}
.copy-toast {
  position: fixed;
  top: calc(var(--top) + env(safe-area-inset-top, 0) + 12px);
  left: 50%;
  z-index: 70;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(26,28,28,.2);
  white-space: nowrap;
}
.copy-toast[hidden] { display: none !important; }
.copy-toast .material-symbols-outlined { font-size: 16px; }

.success-hero { text-align: center; padding: 4px 0 18px; }
.success-mark {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--chip);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.success-mark .material-symbols-outlined { font-size: 28px; }
.success-mark .filled {
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}
.success-pill {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 0 10px; padding: 4px 10px; border-radius: 999px;
  background: var(--soft); color: var(--muted);
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
}
.success-pill .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--secondary);
}
.success-hero h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 28px; font-weight: 400;
  line-height: 1.25; letter-spacing: -0.015em;
}
.success-hero h2 em {
  font-style: italic; color: var(--secondary); font-weight: 400;
}
.success-lead {
  margin: 0 auto; max-width: 20rem;
  font-size: 15px; line-height: 1.55; color: var(--muted);
}
.success-lead strong { color: var(--ink); font-weight: 600; }

.proof-card {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 12px; padding: 14px;
  background: var(--card); border-radius: var(--r);
  box-shadow: 0 1px 4px rgba(20,27,43,.04);
}
.proof-thumb {
  position: relative; width: 80px; height: 96px;
  border-radius: 10px; overflow: hidden; background: var(--soft-2); flex-shrink: 0;
}
.proof-thumb[hidden] { display: none !important; }
.proof-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proof-count {
  position: absolute; right: 4px; bottom: 4px;
  padding: 2px 5px; border-radius: 4px;
  background: rgba(26,28,28,.7); color: #fff;
  font-size: 9px; font-weight: 700;
}
.proof-copy { min-width: 0; flex: 1; }
.proof-tag {
  display: inline-flex; align-items: center; gap: 4px;
  margin: 0 0 2px; color: var(--secondary);
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
}
.proof-tag .material-symbols-outlined { font-size: 14px; }
.proof-title {
  margin: 0; font-size: 16px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.proof-meta {
  margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.4;
}

.voucher, .journey {
  margin: 0 0 12px; padding: 16px;
  background: var(--card); border-radius: var(--r);
  box-shadow: 0 1px 4px rgba(20,27,43,.04);
}
.voucher-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
}
.voucher-label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; color: var(--muted);
}
.voucher-code {
  display: block; margin-top: 4px; font-size: 16px; font-weight: 700;
  letter-spacing: 0.02em; word-break: break-all;
}
.voucher-copy {
  display: inline-flex; align-items: center; gap: 4px;
  height: 36px; padding: 0 14px; border: 0; border-radius: 999px;
  background: var(--soft); color: var(--ink);
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; flex-shrink: 0;
}
.voucher-copy .material-symbols-outlined { font-size: 16px; }
.voucher-hint {
  display: flex; align-items: flex-start; gap: 6px;
  margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--soft);
  font-size: 13px; color: var(--muted); line-height: 1.45;
}
.voucher-hint .material-symbols-outlined {
  font-size: 16px; color: var(--secondary); flex-shrink: 0; margin-top: 1px;
}

.journey-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.journey-head h3 { margin: 0; font-size: 16px; font-weight: 600; }
.journey-head span {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  padding: 3px 8px; border-radius: 999px; background: var(--soft); color: var(--muted);
}
.journey-list {
  list-style: none; margin: 0; padding: 0; position: relative;
  display: flex; flex-direction: column; gap: 14px;
}
.journey-list::before {
  content: ""; position: absolute; left: 15px; top: 12px; bottom: 12px;
  width: 2px; background: var(--soft-2);
}
.journey-list li { position: relative; display: flex; align-items: flex-start; gap: 12px; }
.journey-list li:not(.done):not(.now) { opacity: 0.55; }
.j-ico {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--soft-2); color: var(--muted);
  font-size: 16px !important; flex-shrink: 0; z-index: 1;
}
.journey-list li.done .j-ico { background: var(--ink); color: #fff; }
.journey-list li.now .j-ico { background: var(--chip); color: var(--ink); }
.journey-list li > div { min-width: 0; padding-top: 2px; }
.journey-list strong { display: block; font-size: 15px; font-weight: 600; }
.journey-list span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }

.success-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.btn-success-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 52px; border-radius: 999px;
  background: var(--ink); color: #fff; font: inherit; font-size: 16px; font-weight: 600;
  text-decoration: none; box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.btn-success-primary .material-symbols-outlined { font-size: 18px; }
.success-actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-success-ghost {
  min-height: 48px; border: 0; border-radius: 999px;
  background: var(--soft); color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}

.sheet {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet[hidden] { display: none !important; }
.sheet-mask {
  position: absolute; inset: 0;
  background: rgba(26, 28, 28, 0.4);
}
.sheet-card {
  position: relative;
  width: min(100%, var(--max));
  margin: 0 var(--gutter) max(12px, env(safe-area-inset-bottom, 0));
  padding: 22px 20px 18px;
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(20,27,43,.18);
  animation: rise .28s var(--ease);
}
.sheet-card h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
}
.sheet-card ul {
  margin: 0 0 14px;
  padding-left: 1.1em;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.help-xianyu {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--r);
  background: var(--soft);
}
.help-xianyu strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}
.help-xianyu p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.sheet-ok { width: 100%; }

@media (max-width: 360px) {
  .pane-intro h1 { font-size: 22px; }
  .choice-face { min-height: 108px; padding: 12px; }
}

/* —— 氛围装扮 / 首屏 —— */
.page-atmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.42;
  transition: opacity .45s var(--ease);
}
body.on-gate .page-atmos { opacity: 0.18; }
body.is-success .page-atmos { opacity: 0.28; }
.page-atmos-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(0.96);
  transform: scale(1.04);
}
.float-ornament {
  position: fixed;
  z-index: 1;
  width: min(42vw, 180px);
  height: auto;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: multiply;
  transition: opacity .4s var(--ease), transform .6s var(--ease);
}
.float-ornament-tr {
  top: calc(var(--top) + env(safe-area-inset-top, 0) - 8px);
  right: -18px;
  animation: floaty 7s ease-in-out infinite;
}
.float-ornament-bl {
  left: -28px;
  bottom: 12vh;
  transform: rotate(180deg);
  opacity: 0.4;
  animation: floaty 8.5s ease-in-out infinite reverse;
}
body:not(.on-gate) .float-ornament { opacity: 0.28; }
body.is-success .float-ornament { opacity: 0.2; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.float-ornament-bl {
  animation-name: floatyFlip;
}
@keyframes floatyFlip {
  0%, 100% { transform: rotate(180deg) translateY(0); }
  50% { transform: rotate(180deg) translateY(-6px); }
}

.topbar, .shell, .dock { position: relative; z-index: 2; }
.topbar {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
}
body.on-gate .topbar {
  background: color-mix(in srgb, #f4f8f9 55%, transparent);
}

/* —— 服务类型选择 / 海报流程 —— */
.product-gate {
  padding: 0 0 28px;
  animation: rise .4s var(--ease);
}
.gate-stage {
  position: relative;
  margin: 0 calc(var(--gutter) * -1) 18px;
  min-height: min(52vh, 420px);
  border-radius: 0 0 28px 28px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 18px 40px rgba(20, 40, 48, 0.12);
  animation: heroIn .7s var(--ease);
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.gate-hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.03);
  animation: heroKen 14s ease-in-out infinite alternate;
}
@keyframes heroKen {
  from { transform: scale(1.03) translateY(0); }
  to { transform: scale(1.08) translateY(-1.5%); }
}
.gate-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 28, 34, 0.18) 0%, rgba(12, 28, 34, 0.08) 38%, rgba(238, 242, 244, 0.2) 72%, rgba(238, 242, 244, 0.92) 100%),
    radial-gradient(80% 55% at 50% 35%, rgba(255,255,255,0.28), transparent 70%);
  pointer-events: none;
}
.gate-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(52vh, 420px);
  padding: 28px 20px 26px;
  color: var(--ink);
}
.gate-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--primary);
}
.gate-copy h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(34px, 9vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}
.gate-lead {
  margin: 12px 0 0;
  max-width: 16em;
  font-size: 15px;
  line-height: 1.55;
  color: color-mix(in srgb, var(--ink) 78%, var(--muted));
  font-weight: 500;
}
.gate-pick-head {
  padding: 2px 2px 12px;
}
.gate-pick-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.gate-pick-head p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.product-list {
  display: grid;
  gap: 12px;
}
.product-card {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  column-gap: 12px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 10px;
  cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.product-card:active { transform: scale(0.985); }
.product-card:hover,
.product-card:focus-visible {
  border-color: color-mix(in srgb, var(--primary) 42%, var(--line));
  box-shadow: 0 14px 30px rgba(20, 40, 48, 0.1);
  transform: translateY(-2px);
  outline: none;
}
.product-visual {
  width: 92px;
  height: 92px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--soft);
  flex-shrink: 0;
}
.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s var(--ease);
}
.product-card:hover .product-visual img {
  transform: scale(1.06);
}
.product-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 4px 0;
}
.product-title {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.product-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.product-meta {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
}
.product-go {
  color: var(--primary);
  font-size: 22px !important;
  opacity: 0.75;
}
.trust-row {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.trust-row li {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: color-mix(in srgb, var(--card) 82%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  backdrop-filter: blur(8px);
}
.gate-assist { margin-top: 18px; }
.success-ornament {
  display: block;
  width: 120px;
  margin: 0 auto 4px;
  opacity: 0.7;
  mix-blend-mode: multiply;
  animation: rise .5s var(--ease);
}
.upload-zone.compact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px dashed color-mix(in srgb, var(--primary) 28%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--card) 88%, var(--soft));
  cursor: pointer;
}
.upload-zone.compact input { display: none; }
.upload-zone.compact .material-symbols-outlined {
  font-size: 28px;
  color: var(--primary);
}
.upload-zone.compact strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}
.upload-zone.compact em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}
#posterThumbs,
#styleRefThumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}
#posterThumbs .thumb,
#styleRefThumbs .thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--soft);
}
#posterThumbs .thumb img,
#styleRefThumbs .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#posterThumbs .remove-btn,
#styleRefThumbs .remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 16, 12, 0.55);
  color: #fff;
  display: grid;
  place-items: center;
  padding: 0;
}

/* ========== UX 全量打磨：输入 / 按钮 / 进度 / 弹层 / 成功 ========== */
.form-progress {
  position: sticky;
  top: calc(var(--top) + env(safe-area-inset-top, 0));
  z-index: 30;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(20, 40, 48, 0.05);
}
.form-progress[hidden] { display: none !important; }
.form-progress-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.form-progress-step {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
}
.form-progress-hint {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.form-progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--soft-2);
  overflow: hidden;
}
.form-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--primary-soft));
  transition: width .35s var(--ease);
}
.form-progress-dots {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.form-progress-dots span {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--soft-2);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.form-progress-dots span.on { background: color-mix(in srgb, var(--primary) 55%, var(--soft-2)); }
.form-progress-dots span.current {
  background: var(--primary);
  transform: scaleY(1.35);
}
.form-progress.is-poster .form-progress-dots span:not(:first-child) { display: none; }

/* 输入控件：边界 + 焦点环 */
input[type="text"],
input[type="date"],
input[type="time"],
input[type="tel"],
input[type="search"],
textarea {
  border: 1px solid transparent;
  background: color-mix(in srgb, var(--soft) 92%, #fff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
  transition: background .15s, border-color .15s, box-shadow .15s;
}
input:hover,
textarea:hover {
  border-color: color-mix(in srgb, var(--primary) 18%, transparent);
}
input:focus,
textarea:focus {
  outline: none;
  background: #fff;
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent);
}
.field.invalid input,
.field.invalid textarea {
  border-color: color-mix(in srgb, var(--danger) 45%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 12%, transparent);
}
.field > label,
.label-row label {
  font-weight: 600;
  letter-spacing: 0.01em;
}
.opt, .opt-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--faint);
  letter-spacing: 0.02em;
}
.mini-help {
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--primary);
  transition: background .15s, color .15s;
}
.mini-help:active { background: var(--soft-2); }

/* 主按钮体感 */
.btn-prev,
.btn-next,
.btn-submit,
.sheet-ok,
.btn-success-primary,
.btn-success-ghost,
.text-btn,
.product-card,
.choice-face {
  -webkit-tap-highlight-color: transparent;
}
.btn-prev,
.btn-next,
.btn-submit,
.sheet-ok {
  border-radius: 14px;
  letter-spacing: 0.01em;
  transition: transform .12s var(--ease), opacity .15s, box-shadow .2s, background .15s, filter .15s;
}
.btn-prev {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  box-shadow: 0 1px 3px rgba(20, 40, 48, 0.04);
}
.btn-prev:hover { border-color: color-mix(in srgb, var(--primary) 30%, var(--line)); }
.btn-next,
.btn-submit,
.sheet-ok {
  background: linear-gradient(180deg, var(--primary-soft), var(--primary));
  box-shadow:
    0 1px 0 rgba(255,255,255,0.18) inset,
    0 8px 20px color-mix(in srgb, var(--primary) 28%, transparent);
}
.btn-next:hover,
.btn-submit:hover,
.sheet-ok:hover { filter: brightness(1.04); }
.btn-next:focus-visible,
.btn-submit:focus-visible,
.btn-prev:focus-visible,
.sheet-ok:focus-visible,
.btn-success-primary:focus-visible,
.btn-success-ghost:focus-visible,
.text-btn:focus-visible,
.product-card:focus-visible,
.mini-help:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 55%, transparent);
  outline-offset: 2px;
}
.btn-submit:disabled,
.btn-next:disabled {
  opacity: 0.42;
  filter: grayscale(0.15);
  box-shadow: none;
}

.dock {
  border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: color-mix(in srgb, #f4f8f9 86%, transparent);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.dock-inner { padding: 12px var(--gutter) 4px; }
.dock-note { padding-bottom: 8px; color: var(--faint); }

/* 上传区 */
.photo-hero,
.uploader {
  border: 1.5px dashed color-mix(in srgb, var(--primary) 28%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--card) 90%, transparent), color-mix(in srgb, var(--soft) 70%, transparent));
  transition: border-color .2s, background .2s, transform .15s, box-shadow .2s;
}
.photo-hero:hover,
.uploader:hover,
.upload-zone.compact:hover {
  border-color: color-mix(in srgb, var(--primary) 48%, var(--line));
  box-shadow: 0 10px 24px rgba(20, 40, 48, 0.06);
}
.photo-hero:active,
.upload-zone.compact:active { transform: scale(0.99); }

/* 场合选择按压反馈 */
.choice-face {
  border: 1px solid var(--line);
  box-shadow: none;
}
.choice:has(input:checked) .choice-face {
  transform: none;
}
.choice:has(input:focus-visible) .choice-face {
  outline: 2px solid color-mix(in srgb, var(--primary) 45%, transparent);
  outline-offset: 2px;
}

/* 信息块 */
.info-block {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 94%, transparent);
  box-shadow: 0 6px 18px rgba(20, 40, 48, 0.03);
}
.info-block-head h3 {
  font-family: var(--display);
  letter-spacing: -0.02em;
}

/* 摘要 / 更多 */
.summary {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--soft) 55%, #fff);
}
.more {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--card) 90%, transparent);
  overflow: hidden;
}
.more summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--primary);
}
.more summary:hover { background: var(--soft); }

/* 弹层 */
.sheet-mask {
  background: rgba(12, 24, 30, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.sheet-card {
  border-radius: 22px 22px 0 0;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  box-shadow: 0 -12px 40px rgba(12, 24, 30, 0.16);
  padding: 22px 18px calc(18px + env(safe-area-inset-bottom, 0));
}
.sheet-card h3 {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.02em;
}
.sheet-card ul { color: var(--muted); line-height: 1.6; }

/* 成功页按钮 */
.btn-success-primary {
  border: 0;
  border-radius: 14px;
  min-height: 50px;
  background: linear-gradient(180deg, var(--primary-soft), var(--primary));
  color: #fff;
  font: inherit;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 26%, transparent);
  transition: transform .12s var(--ease), filter .15s;
}
.btn-success-primary:active { transform: scale(0.98); }
.btn-success-ghost {
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 46px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .12s;
}
.btn-success-ghost:hover {
  border-color: color-mix(in srgb, var(--primary) 30%, var(--line));
  background: #fff;
}
.btn-success-ghost:active { transform: scale(0.98); }

.quiet-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ok) 8%, #fff);
  color: var(--ok);
  font-size: 13px;
  font-weight: 500;
}
.quiet-note .material-symbols-outlined { font-size: 18px; }

.link-skip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  padding: 10px 4px;
  border: 0;
  background: none;
  color: var(--primary);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.link-skip:hover { text-decoration: underline; text-underline-offset: 3px; }

.text-btn {
  border-radius: 999px;
  transition: background .15s, color .15s;
}
.text-btn:hover { background: var(--soft); color: var(--primary); }

body.has-dock .shell {
  padding-bottom: calc(var(--dock) + env(safe-area-inset-bottom, 0) + 28px);
}

/* —— 专业素材版微调（不改整体气质） —— */
.gate-stage {
  min-height: min(54vh, 440px);
}
.gate-hero {
  object-position: center 38%;
  filter: saturate(0.9) contrast(1.02);
}
.gate-copy h1 {
  font-weight: 550;
  letter-spacing: -0.035em;
}
.product-visual {
  width: 88px;
  height: 110px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(20, 40, 48, 0.1);
}
.product-card.has-visual {
  grid-template-columns: 88px 1fr auto;
  padding: 12px;
}
.float-ornament {
  opacity: 0.42;
  filter: saturate(0.85);
}
.float-ornament-tr { width: min(36vw, 150px); }
.float-ornament-bl { width: min(34vw, 140px); opacity: 0.32; }
.form-progress {
  border-radius: 14px;
  border-color: color-mix(in srgb, var(--line) 80%, transparent);
}
.product-card:hover {
  box-shadow: 0 14px 28px rgba(20, 40, 48, 0.09);
}

/* 认单：手机号查闲鱼单 */
.claim-card {
  padding: 16px;
  background: var(--card, #fff);
  border-radius: var(--r, 16px);
  box-shadow: 0 1px 4px rgba(20, 27, 43, 0.05);
}
.claim-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.claim-row input {
  flex: 1;
  min-width: 0;
}
.claim-row .btn-dark,
.claim-row .btn-line {
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.claim-row .btn-dark {
  border: 0;
  background: var(--ink, #141b2d);
  color: #fff;
}
.claim-row .btn-line {
  border: 1px solid color-mix(in srgb, var(--ink, #141b2d) 18%, transparent);
  background: #fff;
  color: var(--ink, #141b2d);
}
.claim-row .btn-dark:disabled,
.claim-row .btn-line:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.claim-card .msg {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--danger, #8f100d);
}
.claim-card .msg.ok {
  color: color-mix(in srgb, #1b6b3a 85%, #000);
}
.claim-card .msg[hidden] { display: none !important; }
.claim-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.claim-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--line, #ddd) 90%, transparent);
  border-radius: 12px;
  background: var(--soft, #f6f4f1);
  font: inherit;
  cursor: pointer;
}
.claim-item:active,
.claim-item:hover {
  background: var(--soft-2, #efece7);
}
.claim-item-title {
  font-size: 14px;
  font-weight: 650;
  color: var(--ink, #141b2d);
}
.claim-item-meta {
  font-size: 12px;
  color: var(--muted, #625e59);
  line-height: 1.35;
}
.claim-ok {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, #1b6b3a 8%, #fff);
}
.claim-ok-title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  color: #1b6b3a;
}
.claim-ok-meta {
  margin: 0;
  font-size: 13px;
  color: var(--ink, #141b2d);
  line-height: 1.4;
  word-break: break-word;
}
.claim-ok .linkish {
  margin-top: 8px;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--secondary, #625e59);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.claim-item.is-blocked{opacity:.72;cursor:default;background:#f3f1ee;border-style:dashed}
.claim-item-block{margin-top:4px;font-size:12px;font-weight:650;color:#8f100d;line-height:1.35}

.gate-claim{margin:18px 0 8px}
.gate-claim .claim-card{margin-top:12px}
.gate-pick-wrap{margin-top:8px;animation:gatePickIn .35s ease}
@keyframes gatePickIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.claim-ok-inline{margin:12px 0 16px;padding:12px 14px;border-radius:12px;background:color-mix(in srgb,#1b6b3a 8
.gate-claim { margin: 18px 0 8px; }
.gate-claim .claim-card { margin-top: 12px; }
.gate-pick-wrap { margin-top: 8px; animation: gatePickIn .35s ease; }
@keyframes gatePickIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.claim-ok-inline {
  margin: 12px 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, #1b6b3a 8%, #fff);
}

/* 认单成功：只留选类型，藏掉 Hero / 认单表单 */
body.gate-claimed .gate-stage,
body.gate-claimed .gate-claim-form,
body.gate-claimed .float-ornament,
body.gate-claimed .page-atmos {
  display: none !important;
}
body.gate-claimed .product-gate {
  padding-top: 8px;
}
body.gate-claimed .gate-claimed-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, #1b6b3a 9%, #fff);
}
.gate-claimed-strip[hidden] { display: none !important; }
.gate-claimed-copy { min-width: 0; }
.gate-claimed-strip .claim-ok-title {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 700;
  color: #1b6b3a;
}
.gate-claimed-strip .claim-ok-meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink, #141b2d);
  word-break: break-word;
}
.gate-claimed-strip .linkish {
  flex: 0 0 auto;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--secondary, #625e59);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
body.gate-claimed .gate-pick-wrap {
  margin-top: 0;
}
body.step-clean .float-ornament,
body.step-clean .page-atmos {
  opacity: 0.12;
}
