/* mamiprinter-web · Components · v3
 * 大圆角 · 暖光 · Polaroid 框 · 柔和阴影
 */

/* ════════════════════════════════════════
 * 顶部步骤指示
 * ════════════════════════════════════════ */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-5) var(--s-6);
  min-height: var(--touch);
}

.topbar-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--touch);
  height: var(--touch);
  margin-left: calc(var(--s-3) * -1);
  color: var(--ink-soft);
  font-size: 26px;
  transition: color 0.18s var(--ease),
              background 0.18s var(--ease);
  border-radius: 50%;
}

.topbar-back:hover {
  color: var(--peach);
  background: var(--peach-soft);
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--peach);
  letter-spacing: 0.02em;
}

.step-indicator .of {
  color: var(--ink-light);
  margin: 0 4px;
  font-weight: 400;
}

.step-indicator .total {
  color: var(--ink-faint);
}

/* ════════════════════════════════════════
 * 标题块
 * ════════════════════════════════════════ */

.title-block {
  padding: var(--s-6) 0 var(--s-10);
}

.title-block .h1 {
  margin-top: var(--s-2);
}

.title-block .body-sm {
  margin-top: var(--s-3);
}

/* ════════════════════════════════════════
 * 按钮 — 大圆角 · 软阴影 · 暖桃
 * ════════════════════════════════════════ */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 64px;
  padding: var(--s-5) var(--s-6);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  border-radius: var(--r-lg);
  transition: transform 0.15s var(--ease),
              box-shadow 0.2s var(--ease),
              background 0.18s var(--ease),
              opacity 0.18s var(--ease);
  user-select: none;
}

.btn:active { transform: scale(0.98); }

.btn[disabled],
.btn.disabled,
.btn.btn-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 主按钮:暖桃软按钮
 * 文字 = --ink 深暖棕(不用 white)— white on peach #E89B7C 仅 2.23:1 fail WCAG AA;
 * --ink #2C2519 on peach ≈ 5.4:1 过 AA。2026-05-17 codex contrast 修法。
 */
.btn-primary {
  background: linear-gradient(180deg, var(--peach-hi) 0%, var(--peach) 100%);
  color: var(--ink);
  box-shadow: var(--shadow-cta),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(180deg, var(--peach) 0%, var(--peach-deep) 100%);
  box-shadow: 0 16px 40px -8px var(--peach-glow),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 次按钮:white card with peach text */
.btn-outline {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--peach);
  color: var(--peach-deep);
  box-shadow: var(--shadow);
}

/* 微信支付按钮:温和绿 */
.btn-wechat {
  background: linear-gradient(180deg, #4ad682 0%, #2bb86f 100%);
  color: var(--paper);
  box-shadow: 0 12px 32px -8px rgba(43, 184, 111, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-wechat:hover {
  background: linear-gradient(180deg, #2bb86f 0%, #1f9858 100%);
}

.btn-arrow {
  margin-left: var(--s-2);
  font-weight: 500;
  transition: transform 0.18s var(--ease);
}

.btn:hover .btn-arrow { transform: translateX(3px); }

/* 超大动作卡(home 用) */
.action-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--s-8) var(--s-6) var(--s-6);
  min-height: 172px;
  border-radius: var(--r-xl);
  transition: transform 0.2s var(--ease),
              box-shadow 0.25s var(--ease);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.action-card:active { transform: scale(0.985); }

/* 主卡:暖桃渐变 — 文字用 --ink(AA contrast,2026-05-17 codex 修法)*/
.action-card-primary {
  background: linear-gradient(135deg, var(--peach-hi) 0%, var(--peach) 60%, var(--peach-deep) 100%);
  color: var(--ink);
  box-shadow: var(--shadow-lg),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.action-card-primary:hover {
  box-shadow: 0 24px 56px -16px var(--peach-glow),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 次卡:白纸 + 鼠尾草 accent */
.action-card-secondary {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
}

.action-card-secondary:hover {
  border-color: var(--sage);
  box-shadow: var(--shadow-lg);
}

.action-card-eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.action-card-secondary .action-card-eyebrow {
  color: var(--sage-deep);
}

.action-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-top: var(--s-2);
}

.action-card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--s-8);
}

.action-card-cta-text {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  opacity: 0.85;
}

.action-card-arrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  transition: transform 0.18s var(--ease);
}

.action-card:hover .action-card-arrow { transform: translateX(4px); }

/* 装饰圆点(action card 角落) */
.action-card-deco {
  position: absolute;
  top: var(--s-5);
  right: var(--s-5);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0.7;
}

.action-card-secondary .action-card-deco {
  background: var(--sage-soft);
  color: var(--sage-deep);
}

/* ════════════════════════════════════════
 * 上传 zone
 * ════════════════════════════════════════ */

.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 260px;
  padding: var(--s-12) var(--s-6);
  background: var(--paper);
  border: 2px dashed var(--peach-line);
  border-radius: var(--r-xl);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s var(--ease),
              background 0.2s var(--ease),
              box-shadow 0.25s var(--ease);
  box-shadow: var(--shadow-sm);
}

.upload-zone:hover {
  border-color: var(--peach);
  background: var(--peach-soft);
  box-shadow: var(--shadow);
}

.upload-plus {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--peach-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  color: var(--peach);
  line-height: 1;
  margin-bottom: var(--s-5);
}

.upload-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.upload-sub {
  margin-top: var(--s-3);
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

/* ════════════════════════════════════════
 * 照片缩略图 — Polaroid 风
 * ════════════════════════════════════════ */

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}

.thumb {
  position: relative;
  aspect-ratio: 1;
  background: var(--paper);
  padding: 2px 2px 5px;     /* Polaroid 白边 - 上左右 2px, 下 5px (变细) */
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease),
              box-shadow 0.25s var(--ease);
}

.thumb:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.thumb-img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

/* 暖色调照片占位(模拟宝宝照片) */
.thumb-img.a { background: linear-gradient(135deg, #FAE6DC 0%, #D4A574 100%); }
.thumb-img.b { background: linear-gradient(135deg, #FFEFD9 0%, #E8B58F 100%); }
.thumb-img.c { background: linear-gradient(135deg, #F5E3D1 0%, #C99B73 100%); }
.thumb-img.d { background: linear-gradient(135deg, #FFEDDF 0%, #E6A682 100%); }
.thumb-img.e { background: linear-gradient(135deg, #F0DCC4 0%, #B68868 100%); }
.thumb-img.f { background: linear-gradient(135deg, #FFE8D6 0%, #D49572 100%); }

/* 序号 — 在 polaroid 下边白条上 */
.thumb-num {
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 10px;
  color: var(--ink-faint);
  text-align: center;
  letter-spacing: 0.05em;
}

.thumb-rm {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  color: var(--ink-soft);
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}

/* uploading overlay */
.thumb.uploading .thumb-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(232, 155, 124, 0.4),
    transparent 60%
  );
}

.thumb-progress {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  color: var(--ink);           /* AA contrast on peach bg(2026-05-17 codex 修法)*/
  background: var(--peach);
  padding: 3px 8px;
  border-radius: var(--r-pill);
  letter-spacing: 0.02em;
}

.thumb-check {
  position: absolute;
  bottom: 18px;
  right: 8px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sage);
  color: var(--ink);           /* AA contrast on sage bg(2026-05-17 codex 修法)*/
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* ════════════════════════════════════════
 * 滤镜大预览 + chip
 * ════════════════════════════════════════ */

.filter-preview {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #FFEFD9 0%, #E8B58F 100%);
  transition: filter 0.3s var(--ease);
  box-shadow: var(--shadow);
  padding: var(--s-4);
}

.filter-preview-inner {
  width: 100%;
  height: 100%;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, #FFEFD9 0%, #E8B58F 50%, #C99B73 100%);
  position: relative;
}

.filter-preview-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-sm);
  background: radial-gradient(
    ellipse at 30% 30%,
    transparent 30%,
    rgba(180, 130, 90, 0.2) 100%
  );
}

/* 滤镜 */
.f-original { filter: none; }
.f-mono     { filter: grayscale(1) contrast(1.05); }
.f-vintage  { filter: sepia(0.6) saturate(0.85) contrast(1.05); }
.f-warm     { filter: brightness(1.06) saturate(1.18) hue-rotate(-3deg); }
.f-film     { filter: contrast(1.1) saturate(0.85) sepia(0.18); }

.filter-strip {
  display: flex;
  gap: var(--s-4);
  overflow-x: auto;
  padding: var(--s-3) 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.filter-strip::-webkit-scrollbar { display: none; }
.filter-strip { scrollbar-width: none; }

.filter-chip {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  cursor: pointer;
  scroll-snap-align: center;
}

.filter-chip-thumb {
  width: 78px;
  height: 78px;
  border-radius: var(--r);
  overflow: hidden;
  background: linear-gradient(135deg, #FFEFD9 0%, #E8B58F 50%, #C99B73 100%);
  border: 3px solid transparent;
  transition: border-color 0.18s var(--ease),
              transform 0.15s var(--ease),
              box-shadow 0.18s var(--ease);
  position: relative;
}

.filter-chip-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 30% 30%,
    transparent 30%,
    rgba(180, 130, 90, 0.2) 100%
  );
}

.filter-chip.active .filter-chip-thumb {
  border-color: var(--peach);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.filter-chip-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.18s var(--ease);
}

.filter-chip.active .filter-chip-label {
  color: var(--peach-deep);
  font-weight: 700;
}

/* ════════════════════════════════════════
 * 数量 stepper(老人/宝妈友好)
 * ════════════════════════════════════════ */

.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: var(--s-3);
  box-shadow: var(--shadow-sm);
}

.stepper-btn {
  width: var(--touch-lg);
  height: var(--touch-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--peach-soft);
  border-radius: var(--r);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  color: var(--peach-deep);
  transition: background 0.15s var(--ease),
              transform 0.1s var(--ease);
}

.stepper-btn:hover { background: var(--peach);  color: var(--paper); }
.stepper-btn:active { transform: scale(0.94); }

.stepper-btn.disabled {
  background: var(--cream-3);
  color: var(--ink-light);
  pointer-events: none;
}

.stepper-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  color: var(--ink);
  letter-spacing: -0.02em;
  min-width: 60px;
  text-align: center;
}

/* ════════════════════════════════════════
 * 表单 input
 * ════════════════════════════════════════ */

.form-field {
  margin-bottom: var(--s-5);
}

.form-label {
  display: block;
  margin-bottom: var(--s-2);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.form-input,
.form-textarea {
  display: block;
  width: 100%;
  padding: var(--s-4) var(--s-5);
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  color: var(--ink);
  font-size: 16px;
  font-family: var(--font-body);
  font-weight: 500;
  min-height: var(--touch);
  transition: border-color 0.18s var(--ease),
              box-shadow 0.18s var(--ease);
  box-shadow: var(--shadow-sm);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--peach);
  box-shadow: 0 0 0 4px var(--peach-soft);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}

/* ════════════════════════════════════════
 * Section / 卡片
 * ════════════════════════════════════════ */

.section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
}

/* ════════════════════════════════════════
 * Group / 简洁留白分组(无卡、无边框,标题为锚)
 * 用法:.group > .group-title + 内容
 * ════════════════════════════════════════ */

.group {
  margin-top: var(--s-12);
}

.group:first-of-type {
  margin-top: var(--s-8);
}

.group-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.005em;
  color: var(--ink);
  margin: 0 0 var(--s-5) 0;
  padding-bottom: var(--s-2);
  position: relative;
}

.group-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--peach);
  border-radius: 1px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--s-5);
}

.summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: var(--s-3) 0;
}

.summary-row + .summary-row {
  border-top: 1px solid var(--line);
}

.summary-label {
  color: var(--ink-soft);
  font-size: 15px;
}

.summary-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}

/* ════════════════════════════════════════
 * 订单进度横向步骤条 — 鼠尾草色完成态
 * ════════════════════════════════════════ */

.order-progress {
  display: flex;
  align-items: flex-start;
  padding: var(--s-6) 0;
  gap: 0;
}

.order-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  text-align: center;
  min-width: 0;
}

.order-step-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cream-3);
  border: 2px solid var(--cream-3);
  flex-shrink: 0;
  z-index: 1;
  position: relative;
  transition: background 0.3s var(--ease),
              border-color 0.3s var(--ease);
}

/* 完成态:鼠尾草绿 */
.order-step.done .order-step-dot {
  background: var(--sage);
  border-color: var(--sage);
}

.order-step.done .order-step-dot::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font-size: 10px;
  font-weight: 700;
}

/* 当前态:暖桃 + soft glow */
.order-step.current .order-step-dot {
  background: var(--peach);
  border-color: var(--peach);
  animation: pulse-sage 2s var(--ease) infinite;
  animation-name: pulse-peach;
}

@keyframes pulse-peach {
  0%, 100% {
    box-shadow: 0 0 0 4px var(--peach-soft);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(232, 155, 124, 0.18);
  }
}

.order-step-label {
  margin-top: var(--s-3);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

.order-step.done .order-step-label {
  color: var(--sage-deep);
}

.order-step.current .order-step-label {
  color: var(--peach-deep);
  font-weight: 700;
}

/* 连接线 */
.order-step::before,
.order-step::after {
  content: '';
  position: absolute;
  top: 8px;
  height: 2px;
  background: var(--cream-3);
  transition: background 0.3s var(--ease);
}

.order-step::before {
  left: 0;
  right: 50%;
  margin-right: 10px;
}

.order-step::after {
  right: 0;
  left: 50%;
  margin-left: 10px;
}

.order-step:first-child::before { display: none; }
.order-step:last-child::after { display: none; }

.order-step.done::before,
.order-step.done::after {
  background: var(--sage);
}

.order-step.current::before {
  background: var(--sage);
}

/* ════════════════════════════════════════
 * 品牌头(home 用)
 * ════════════════════════════════════════ */

.brand-head {
  padding: var(--s-10) 0 var(--s-6);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.brand-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 52px;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.brand-mark .accent {
  display: inline-block;
  color: var(--peach);
  font-style: normal;
  margin-left: 2px;
  font-weight: 600;
  font-size: 0.5em;
  vertical-align: super;
}

.brand-meta {
  text-align: right;
}

.brand-meta-text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.brand-meta-sub {
  margin-top: 2px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light);
}

/* ════════════════════════════════════════
 * 统计数字行
 * ════════════════════════════════════════ */

.stats {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-4) 0;
}

.stat {
  flex: 1;
  padding: var(--s-5) var(--s-4);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--caramel-deep);
}

.stat-label {
  margin-top: var(--s-3);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-soft);
}

/* ════════════════════════════════════════
 * 价格大字
 * ════════════════════════════════════════ */

.price-display {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
}

.price-currency {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink-soft);
}

.price-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.price-num.peach { color: var(--peach-deep); }
.price-num.caramel { color: var(--caramel-deep); }

.price-unit {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-faint);
  margin-left: var(--s-2);
}

/* ════════════════════════════════════════
 * landing index 网格
 * ════════════════════════════════════════ */

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}

.mockup-card {
  display: flex;
  flex-direction: column;
  padding: var(--s-5);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  min-height: 144px;
  transition: border-color 0.2s var(--ease),
              transform 0.15s var(--ease),
              box-shadow 0.2s var(--ease);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.mockup-card:hover {
  border-color: var(--peach);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.mockup-card-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--peach);
  letter-spacing: -0.02em;
  line-height: 1;
}

.mockup-card-title {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}

.mockup-card-sub {
  margin-top: var(--s-1);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-faint);
}

/* ════════════════════════════════════════
 * 杂项
 * ════════════════════════════════════════ */

.footer-meta {
  padding: var(--s-12) var(--s-6) var(--s-8);
  text-align: center;
  font-size: 12px;
  color: var(--ink-faint);
}

.footer-meta a {
  color: var(--ink-soft);
}

.footer-meta a:hover { color: var(--peach); }

.footer-meta .dot {
  margin: 0 8px;
  color: var(--ink-light);
}

/* 倒计时文字提示 */
.countdown-inline {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  background: var(--peach-soft);
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-soft);
}

.countdown-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--peach-deep);
}

/* ════════════════════════════════════════
 * 地址 · 省市区 3 联选择(quantity 用)
 * ════════════════════════════════════════ */

.region-picker {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.region-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-3) var(--s-5);
  min-height: var(--touch);
  cursor: pointer;
  transition: background 0.18s var(--ease);
}

.region-cell:hover,
.region-cell:active {
  background: var(--cream-2);
}

.region-cell + .region-cell {
  border-top: 1px solid var(--line);
}

.region-cell-label {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

.region-cell-value {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s-3);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
}

.region-caret {
  font-size: 11px;
  color: var(--ink-faint);
  font-weight: 700;
}

.region-cell.placeholder .region-cell-value {
  color: var(--ink-faint);
  font-family: var(--font-display);
  font-style: italic;
}

/* ════════════════════════════════════════
 * 订单列表(order.html 用)
 * ════════════════════════════════════════ */

/* 状态徽章 — peach (进行中) / sage (已完成) */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 10px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.status-badge.peach {
  background: var(--peach-soft);
  color: var(--peach-deep);
}

.status-badge.peach::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--peach);
  animation: pulse-peach-mini 2s var(--ease) infinite;
}

@keyframes pulse-peach-mini {
  0%, 100% { box-shadow: 0 0 0 2px var(--peach-soft); }
  50%      { box-shadow: 0 0 0 4px rgba(232, 155, 124, 0.18); }
}

.status-badge.sage {
  background: var(--sage-soft);
  color: var(--sage-deep);
}

.status-badge.sage::before {
  content: '✓';
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

/* amber — 等待支付 / 支付超时(钱命脉提醒) */
.status-badge.amber {
  background: #FDF3E0;
  color: #8B5E1D;
}
.status-badge.amber::before {
  content: '💰';
  font-size: 10px;
  font-style: normal;
  filter: grayscale(0.2);
}

/* blue — 制作中 / 可取件(active 动态) */
.status-badge.blue {
  background: #E6F0F8;
  color: #2C5E8F;
}
.status-badge.blue::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4A82B5;
  animation: pulse-blue-mini 2s var(--ease) infinite;
}
@keyframes pulse-blue-mini {
  0%, 100% { box-shadow: 0 0 0 2px #E6F0F8; }
  50%      { box-shadow: 0 0 0 4px rgba(74, 130, 181, 0.18); }
}

/* red — 失败 / 异常 */
.status-badge.red {
  background: #FDECEA;
  color: #9C2A1A;
}
.status-badge.red::before {
  content: '⚠';
  font-size: 11px;
  font-style: normal;
}

/* muted — 已取消 / 终态非完成 */
.status-badge.muted {
  background: #EEEAE3;
  color: #888076;
}
.status-badge.muted::before {
  content: '✕';
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

/* 订单号 */
.order-id {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* 进行中大卡片 */
.order-card-active {
  display: block;
  background: var(--paper);
  border: 1px solid var(--peach-line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s var(--ease),
              box-shadow 0.25s var(--ease);
}

.order-card-active:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.order-card-active:active { transform: scale(0.99); }

.order-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}

/* 迷你 5 点进度条 */
.mini-progress {
  display: flex;
  align-items: center;
  margin-top: var(--s-5);
  gap: 3px;
}

.mini-progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cream-3);
  flex-shrink: 0;
}

.mini-progress-dot.done {
  background: var(--sage);
}

.mini-progress-dot.current {
  background: var(--peach);
  box-shadow: 0 0 0 3px var(--peach-soft);
}

.mini-progress-line {
  flex: 1;
  height: 2px;
  background: var(--cream-3);
  border-radius: 1px;
}

.mini-progress-line.done {
  background: var(--sage);
}

/* 3 张小 polaroid 预览 */
.mini-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-5);
}

.mini-thumb {
  aspect-ratio: 1;
  background: var(--paper);
  padding: 2px 2px 5px;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

.mini-thumb-img {
  width: 100%;
  height: 100%;
  border-radius: 3px;
}

.mini-thumb-img.a { background: linear-gradient(135deg, #FAE6DC 0%, #D4A574 100%); }
.mini-thumb-img.b { background: linear-gradient(135deg, #FFEFD9 0%, #E8B58F 100%); }
.mini-thumb-img.c { background: linear-gradient(135deg, #F5E3D1 0%, #C99B73 100%); }

/* 大卡片底部 meta */
.order-card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px dashed var(--line-2);
}

.order-card-meta-left {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-soft);
}

.order-card-meta-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--peach-deep);
}

/* 历史订单小卡片 */
.order-card-history {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s-4) var(--s-5);
  margin-top: var(--s-3);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s var(--ease),
              box-shadow 0.22s var(--ease),
              border-color 0.18s var(--ease);
}

.order-card-history:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: var(--sage);
}

.order-card-history:active { transform: scale(0.995); }

.order-card-history-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}

.order-card-history-bot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: var(--s-3);
}

.order-card-history-meta {
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--ink-faint);
}

.order-card-history-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}

.reorder-row {
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px dashed var(--line);
  text-align: right;
}

.reorder-link {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 13px;
  color: var(--sage-deep);
  letter-spacing: 0.02em;
}

.reorder-link::after {
  content: ' →';
  display: inline-block;
  transition: transform 0.18s var(--ease);
}

.order-card-history:hover .reorder-link::after {
  transform: translateX(2px);
}

/* ════════════════════════════════════════
 * Option Toggle — 通用可选项卡(quantity.html PIPL 协议勾选)
 * ════════════════════════════════════════ */

.option-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-4);
  background: var(--paper);
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-5);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.option-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  pointer-events: none;
}

.option-toggle:focus-within {
  outline: 2px solid var(--peach-line);
  outline-offset: 3px;
  border-radius: var(--r-lg);
}

.option-toggle:hover {
  border-color: var(--peach-line);
}

.option-toggle-on {
  border-color: var(--peach);
  background: var(--peach-soft);
  box-shadow: 0 4px 14px var(--peach-glow);
}

.option-toggle-mark {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: transparent;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.option-toggle-on .option-toggle-mark {
  background: var(--peach);
  border-color: var(--peach);
  color: var(--ink);   /* AA contrast on peach bg(2026-05-17 codex 修法)*/
}

.option-toggle-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.option-toggle-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}

.option-toggle-tag {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--sage-deep);
  background: var(--sage-soft);
  padding: 2px var(--s-2);
  border-radius: 999px;
  text-transform: uppercase;
}

.option-toggle-sub {
  font-size: 12.5px;
  color: var(--ink-soft);
  font-style: italic;
  font-family: var(--font-display);
}

.option-toggle-price {
  flex: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--peach-deep);
}

/* ════════════════════════════════════════
 * Paper.html — 两张大卡(图 + 按钮),老人/宝妈友好
 * 一张图 + 一个大暖桃按钮 = 点哪张就用哪种纸,直跳下一步
 * ════════════════════════════════════════ */

.paper-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--s-5) var(--s-5) var(--s-5);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.18s var(--ease), box-shadow 0.22s var(--ease), border-color 0.18s var(--ease);
}

.paper-card:hover {
  transform: translateY(-2px);
  border-color: var(--peach-line);
  box-shadow: var(--shadow-lg);
}

.paper-card-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 28% 30%, rgba(255, 240, 222, 0.95) 0%, rgba(248, 215, 188, 0.55) 28%, transparent 56%),
    radial-gradient(ellipse at 78% 68%, rgba(168, 184, 155, 0.55) 0%, rgba(168, 184, 155, 0.18) 38%, transparent 60%),
    radial-gradient(ellipse at 92% 22%, rgba(232, 155, 124, 0.5) 0%, transparent 40%),
    linear-gradient(155deg, #FFEFD9 0%, #F0B294 28%, #D4A574 58%, #C99B73 82%, #8AA180 100%);
  box-shadow: inset 0 0 0 1px rgba(44, 37, 25, 0.06);
}

.paper-card-photo-glossy {
  filter: saturate(1.18) contrast(1.05);
}

.paper-card-photo-matte {
  filter: saturate(0.72) brightness(0.96) contrast(0.92);
}

.paper-card-photo-matte::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 60%, rgba(44, 37, 25, 0.06) 100%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(44, 37, 25, 0.03));
  pointer-events: none;
}

.paper-card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg,
    rgba(255, 255, 255, 0) 26%,
    rgba(255, 255, 255, 0.55) 42%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.4)  60%,
    rgba(255, 255, 255, 0) 76%
  );
  mix-blend-mode: screen;
  pointer-events: none;
}

/* 角落案例缩略图:模拟实物 Polaroid(右上倾斜,白边) */
.paper-card-sample {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 76px;
  background: var(--paper);
  padding: 4px 4px 14px;
  border-radius: 4px;
  box-shadow: 0 10px 22px -6px rgba(44, 37, 25, 0.32),
              0 0 0 1px rgba(255, 255, 255, 0.6);
  transform: rotate(7deg);
  transform-origin: center;
  z-index: 1;
}

.paper-card-sample-img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 2px;
  background:
    radial-gradient(ellipse at 35% 32%, rgba(255, 240, 222, 0.95) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 72%, rgba(232, 155, 124, 0.55) 0%, transparent 55%),
    linear-gradient(150deg, #FFE3CB 0%, #E89B7C 55%, #B8765A 100%);
}

.paper-card-sample-img-glossy { filter: saturate(1.2) contrast(1.08) brightness(1.02); }
.paper-card-sample-img-matte  { filter: saturate(0.7) brightness(0.95) contrast(0.92); }

.paper-card-sample-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

.paper-card-body {
  padding: var(--s-5) var(--s-2) var(--s-2);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.paper-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.paper-card-title-em {
  font-style: italic;
  color: var(--peach-deep);
  font-weight: 600;
  margin-left: 6px;
  font-size: 22px;
}

.paper-card-desc {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.paper-card-btn {
  margin-top: var(--s-5);
}

/* ── 花瓣分隔线(❀) ── */
.petal-divider {
  display: inline-flex;
  align-items: center;
  gap: var(--s-4);
}

.petal-divider .petal-line {
  display: inline-block;
  width: 48px;
  height: 1px;
  background: var(--line-2);
}

.petal-divider .petal-flower {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--peach);
  line-height: 1;
  transform: translateY(-1px);
}

/* ════════════════════════════════════════
 * 找亲友帮付 — pay.html 副按钮 + pay-friend.html 发起者卡片
 * ════════════════════════════════════════ */

/* 副按钮 — 透明底 + 细描边 · 视觉权重比主按钮低一档 */
.btn-friend {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line-2);
  font-weight: 500;
  font-size: 15.5px;
  letter-spacing: 0.005em;
}

.btn-friend:hover {
  border-color: var(--peach-line);
  background: var(--peach-soft);
  color: var(--peach-deep);
}

.btn-friend-dot {
  display: inline-block;
  margin: 0 var(--s-3);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 18px;
  color: var(--peach);
  line-height: 1;
  transform: translateY(-1px);
}

/* 发起者卡片 — 头像 + 名字 + 留言 */
.friend-card {
  text-align: center;
  padding: var(--s-8) var(--s-6) var(--s-8);
  background: var(--paper);
  border: 1px solid var(--peach-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

/* 卡片右上角小花瓣装饰 */
.friend-card::before {
  content: '❀';
  position: absolute;
  top: var(--s-4);
  right: var(--s-5);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--peach-line);
  line-height: 1;
}

.friend-avatar {
  width: 76px;
  height: 76px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--peach-hi) 0%, var(--peach) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 20px -4px var(--peach-glow),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.friend-card-name {
  margin-top: var(--s-5);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink-soft);
  letter-spacing: 0.005em;
}

.friend-card-name-em {
  font-style: italic;
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  margin-right: 4px;
  letter-spacing: -0.005em;
}

.friend-card-msg {
  margin-top: var(--s-4);
  padding: 0 var(--s-2);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}

.friend-card-msg .friend-card-msg-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 22px;
  color: var(--peach);
  line-height: 1;
  margin: 0 2px;
  vertical-align: -2px;
}

/* ════════════════════════════════════════
 * 找亲友帮付 — 发起者引导页(pay-friend-share.html)
 * 二维码卡片 + 长按转发提示
 * ════════════════════════════════════════ */

.qr-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.qr-card-head {
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-5);
  border-bottom: 1px dashed var(--line-2);
  text-align: center;
}

.qr-card-head-text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.qr-card-head-text-em {
  font-style: italic;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  margin-right: 2px;
}

/* 二维码图本身 */
.qr-display {
  width: 240px;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0 auto;
  padding: var(--s-3);
  background: var(--paper);
}

.qr-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-svg .qr-bg { fill: var(--paper); }
.qr-svg .qr-fg { fill: var(--ink); }

/* QR 下价格行 */
.qr-card-price {
  margin-top: var(--s-4);
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.qr-card-price-currency {
  font-size: 18px;
  color: var(--ink-soft);
  font-weight: 600;
}

.qr-card-price-num {
  font-size: 32px;
  line-height: 1;
  color: var(--peach-deep);
}

/* 长按提示 — 卡片下方一行 */
.qr-hint {
  display: block;
  max-width: 320px;
  margin: var(--s-6) auto 0;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: 0.005em;
}

.qr-hint-em {
  font-style: italic;
  font-weight: 700;
  color: var(--peach-deep);
}

/* ════════════════════════════════════════
 * 成功反馈 — pay-friend-success.html(朋友端)
 *                pay-friend-thanks.html(发起者端)
 * 大圆徽章 + 大标题 + 温暖说明
 * ════════════════════════════════════════ */

.success-block {
  padding: var(--s-12) 0 var(--s-6);
  text-align: center;
}

.success-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-deep) 100%);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 52px;
  line-height: 1;
  box-shadow: 0 14px 36px -10px rgba(168, 184, 155, 0.55),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: success-pop 0.55s var(--ease-spring) backwards;
  animation-delay: 0.15s;
}

/* peach 版(发起者端) */
.success-icon-peach {
  background: linear-gradient(135deg, var(--peach-hi) 0%, var(--peach) 100%);
  color: var(--paper);
  box-shadow: 0 14px 36px -10px var(--peach-glow),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
  font-size: 44px;
  font-style: italic;
}

@keyframes success-pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
