/* =====================================================================
   MemoryVoice · 旧照片 Editorial Luxury
   暖米纸 #F7F1E8 / 墨 #33291F / 复古金褐 #A67C3D
   大字大按钮（长辈可直接操作）· 焦点环 3px · 过渡 cubic-bezier(0.32,0.72,0,1)
   ===================================================================== */

:root {
  /* —— 色彩令牌（浅暖色系） —— */
  --paper: #F7F1E8;
  --paper-deep: #EFE6D6;
  --card: #FFFDF8;
  --card-core: #FAF4E9;
  --ink: #33291F;
  --ink-soft: #6E6152;
  --ink-faint: #7E7159;
  --accent: #A67C3D;        /* 复古金褐（饱和 < 70%） */
  --accent-deep: #85622F;   /* 深金褐：主按钮底（白字对比 5.5:1） */
  --accent-ink: #7A5423;    /* 金褐系文字（对比 6.4:1） */
  --accent-wash: #F1E5CF;
  --accent-wash-2: #E9D9BC;
  --ok: #3F6E50;
  --ok-wash: #E3EBE2;
  --warn: #96501F;
  --warn-wash: #F6E8D4;
  --danger: #96382A;
  --danger-wash: #F4DFD7;
  --line: #E7DCC9;
  --line-strong: #D6C5A5;
  --amber-edge: #C98E3F;    /* 逝者警示 · 暖琥珀左边框 */

  /* —— 字体 —— */
  --font-display: "Songti SC", "Noto Serif SC", "STSong", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "MiSans",
    "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Courier New", monospace;

  /* —— 形状 / 动效 / 影 —— */
  --radius: 20px;
  --radius-s: 13px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --t-fast: 250ms;
  --t-mid: 400ms;
  --t-slow: 600ms;
  --shadow-card: 0 1px 2px rgba(80, 60, 30, 0.05), 0 18px 44px -20px rgba(166, 124, 61, 0.22);
  --shadow-photo: 0 1px 2px rgba(80, 60, 30, 0.08), 0 14px 30px -14px rgba(166, 124, 61, 0.38);
  --focus-ring: 3px solid var(--accent);
}

* { box-sizing: border-box; }

/* —— 纸感噪点（fixed 伪元素 · 0.05） —— */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 720px) { body { font-size: 18px; } }

::selection { background: var(--accent-wash-2); color: var(--ink); }

h1, h2, h3 { line-height: 1.3; margin: 0; }
.display { font-family: var(--font-display); font-weight: 700; color: var(--ink); }

/* —— 眉题：衬线斜体小字（统一用法） —— */
.eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--accent-ink);
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--accent);
  flex: none;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.ic {
  width: 1.2em;
  height: 1.2em;
  display: inline-block;
  vertical-align: -0.24em;
  flex: none;
}

/* —— 布局 —— */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.2rem 1.15rem 4.5rem;
}

/* —— 顶栏 —— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem clamp(1rem, 4vw, 2.2rem);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.brand .ic { width: 1.35em; height: 1.35em; color: var(--accent-deep); }
.topnav { display: flex; gap: 1rem; align-items: center; }
.topnav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 16.5px;
  padding: 0.45rem 0.15rem;
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.topnav a:hover { color: var(--accent-ink); }
.topnav a.active {
  color: var(--accent-ink);
  border-bottom-color: var(--accent);
  font-weight: 600;
}
.ghost-btn {
  background: none;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  min-height: 44px;
  padding: 0 1.1rem;
  font-size: 15.5px;
  font-family: inherit;
  cursor: pointer;
  color: var(--ink-soft);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}
.ghost-btn:hover {
  background: var(--card);
  color: var(--accent-ink);
  border-color: var(--accent);
}

/* —— 页脚 —— */
.footer {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.6rem 1.15rem 3.6rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 15.5px;
}
.foot-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--accent-ink);
  margin-bottom: 0.5rem;
}
.footer a { color: var(--accent-ink); }
.footer .tiny { font-size: 13.5px; color: var(--ink-faint); margin-top: 0.9rem; }

/* =====================================================================
   按钮 · 主 CTA 大胶囊（≥52px）+ button-in-button 尾随图标
   ===================================================================== */
.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  width: 100%;
  min-height: 52px;
  padding: 10px 12px 10px 24px;
  border: none;
  border-radius: 999px;
  background: var(--accent-deep);
  color: #FFFCF5;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 26px -14px rgba(133, 98, 47, 0.6);
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}
.btn:hover { background: #76551F; box-shadow: 0 16px 30px -14px rgba(133, 98, 47, 0.65); }
.btn:active { transform: translateY(1px); background: #6A4C1C; }
.btn.big { min-height: 58px; font-size: 19px; }
.btn .label { display: inline-flex; align-items: center; gap: 0.55rem; min-width: 0; }
.btn .tail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 252, 245, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 252, 245, 0.3);
  color: #FFFCF5;
  flex: none;
  transition: transform var(--t-mid) var(--ease);
}
.btn:hover .tail { transform: translateX(4px); }
.btn.secondary {
  background: var(--card);
  color: var(--accent-ink);
  box-shadow: inset 0 0 0 1.5px var(--accent-wash-2), 0 8px 20px -14px rgba(166, 124, 61, 0.4);
}
.btn.secondary:hover { background: #FBF3E3; }
.btn.secondary .tail {
  background: var(--accent-wash);
  color: var(--accent-ink);
  box-shadow: none;
}
.btn.ghost {
  background: transparent;
  color: var(--ink-soft);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn.ghost:hover { background: var(--card); color: var(--ink); }
.btn.small {
  width: auto;
  display: inline-flex;
  min-height: 48px;
  padding: 8px 20px;
  font-size: 16.5px;
  gap: 0.55rem;
}
.btn.small .tail { width: 30px; height: 30px; }
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.btn.secondary:disabled:hover,
.btn.secondary:disabled:active { background: var(--card); }

/* —— 焦点环（长辈看得清） —— */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

/* =====================================================================
   卡片 · 双圈嵌套（外壳白纸微暖影 + 内核 inset 高光）
   ===================================================================== */
.card {
  background: var(--card);
  border: 1px solid rgba(231, 220, 201, 0.8);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  margin: 1.7rem 0;
  box-shadow: var(--shadow-card);
}
.card h2 { font-size: 26px; margin-bottom: 0.9rem; }
.card h3 { font-size: 19px; margin: 1.2rem 0 0.5rem; }
.card-core {
  background: var(--card-core);
  border-radius: 15px;
  padding: 1.15rem 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 0 0 1px rgba(166, 124, 61, 0.09);
}
.muted { color: var(--ink-soft); }
.small { font-size: 15px; }
.tiny { font-size: 13.5px; }
a { color: var(--accent-ink); text-underline-offset: 3px; }

/* —— 相纸白边照片容器（岁月感） —— */
.photo-frame {
  background: #FFFDF8;
  padding: 8px 8px 9px;
  border-radius: 6px;
  box-shadow: var(--shadow-photo), inset 0 0 0 1px rgba(166, 124, 61, 0.1);
}
.ph {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 4 / 3;
  background: radial-gradient(120% 90% at 30% 18%, #E9DCC3, #D8C19C 62%, #C3A87D);
}
.ph.auto { aspect-ratio: auto; }
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 44px rgba(59, 41, 20, 0.32);
}
.ph svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ph video, .ph img { display: block; width: 100%; border-radius: 2px; background: var(--paper-deep); }
.ph-cap {
  font-family: var(--font-display);
  font-size: 14.5px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-align: center;
  padding-top: 7px;
}
.chip {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 253, 248, 0.93);
  color: var(--ink);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: 0 4px 12px -6px rgba(59, 41, 20, 0.4);
}

/* =====================================================================
   首页 · 温情首屏（Z 轴层叠：桌面微旋转 -2°~2.5° + 负边距叠压）
   ===================================================================== */
.hero { padding: 2.6rem 0 0.6rem; }
.hero .eyebrow { font-size: 17px; }
.headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 5.4vw, 44px);
  line-height: 1.26;
  letter-spacing: 0.01em;
  margin: 0.5rem 0 0.9rem;
}
.hero .sub { color: var(--ink-soft); font-size: 18px; max-width: 36em; margin: 0 0 1.8rem; }

.hero-grid { display: grid; gap: 2.2rem; align-items: center; }
.hero-copy .toolbar { margin-top: 1rem; }

/* —— 照片卡叠压（≥880px 生效；小屏单列、去旋转去叠压） —— */
.stack { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 1rem 0 0.6rem; }
.stack .pf-a, .stack .pf-b { display: none; }
.stack .pf-c { width: min(340px, 100%); }
@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.04fr 0.96fr; }
  .stack { position: relative; height: 350px; display: block; padding: 0; }
  .stack .photo-frame {
    position: absolute;
    transition: transform var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease);
  }
  .stack .pf-a { display: block; width: 52%; right: 1%; top: 0; transform: rotate(2.5deg); opacity: 0.96; }
  .stack .pf-b { display: block; width: 54%; left: 0; top: 13%; transform: rotate(-2deg); }
  .stack .pf-c { display: block; width: 56%; right: 12%; top: 26%; transform: rotate(1.2deg); z-index: 2; }
  .stack .photo-frame:hover {
    transform: rotate(0deg) translateY(-6px);
    box-shadow: 0 24px 48px -18px rgba(166, 124, 61, 0.5), inset 0 0 0 1px rgba(166, 124, 61, 0.1);
    z-index: 3;
  }
}

/* —— 前后对比（桌面微旋转 + 轻微叠压） —— */
.compare { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 1.2rem; }
.compare .pane .ph svg g { fill: #5C4936; opacity: 0.88; }
.pane.before .ph {
  background: linear-gradient(160deg, #57503F, #403A2E);
  filter: saturate(0.72);
}
.pane.before .ph svg g { fill: #2B2620; opacity: 0.9; }
.pane.after .ph { background: radial-gradient(120% 90% at 30% 18%, #EDDEBF, #DBBF92 62%, #C6A375); }
.pane.after .ph svg { animation: drift 9s var(--ease) infinite alternate; transform-origin: 50% 62%; }
@keyframes drift {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.07) translate(-1.2%, -1%); }
}
@media (min-width: 880px) {
  .compare { grid-template-columns: 1fr 1fr; }
  .compare .pane.before { transform: rotate(-1.7deg); z-index: 1; }
  .compare .pane.after { margin-left: -2.4rem; margin-top: 1.5rem; transform: rotate(1.7deg); z-index: 2; }
}

/* —— 三步就出片（编号 · 非等宽卡） —— */
.steps-list { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.steps-list li {
  display: flex;
  gap: 1.2rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.steps-list li:last-child { border-bottom: none; }
.steps-list .no {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 21px;
  color: var(--accent);
  min-width: 44px;
  line-height: 1.4;
}
.steps-list p { margin: 0; font-size: 17px; }

/* =====================================================================
   表单
   ===================================================================== */
label.field { display: block; margin: 1.05rem 0; }
label.field > span {
  display: block;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
label.field > span.field-hint {
  font-weight: 400;
  font-size: 15px;
  margin-bottom: 0.55rem;
}
input[type="text"], input[type="number"], select, textarea {
  width: 100%;
  font-size: 17px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: #FFFDF8;
  color: var(--ink);
  font-family: inherit;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(166, 124, 61, 0.16);
}
select { cursor: pointer; }

/* —— 稿纸感旁白编辑器（衬线 + 行距 1.8/2 + 横线） —— */
textarea.manuscript {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 36px;
  min-height: 320px;
  resize: vertical;
  padding: 18px 20px 12px;
  background-color: #FFFDF8;
  background-image: repeating-linear-gradient(
    to bottom, transparent 0 35px, rgba(166, 124, 61, 0.14) 35px 36px);
  background-position: 0 18px;
  background-attachment: local;
}
input[type="number"].num { font-family: var(--font-mono); }

/* —— 上传落件区 —— */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 158px;
  margin-top: 1rem;
  padding: 1.4rem 1rem;
  background: var(--card-core);
  border: 1.5px dashed var(--line-strong);
  border-radius: 16px;
  cursor: pointer;
  text-align: center;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease);
}
.dropzone:hover {
  border-color: var(--accent);
  background: #FBF4E6;
  transform: translateY(-2px);
}
.dropzone .dz-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--card);
  color: var(--accent-deep);
  box-shadow: inset 0 0 0 1px rgba(166, 124, 61, 0.18);
  margin-bottom: 0.4rem;
}
.dropzone .dz-ic .ic { width: 27px; height: 27px; }
.dropzone .dz-t { font-size: 18.5px; font-weight: 700; font-family: var(--font-display); }
.dropzone .dz-h { color: var(--ink-soft); }

/* —— 折叠表单 —— */
details.meta-fold {
  background: var(--card);
  border: 1px solid rgba(231, 220, 201, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 0.2rem 1.5rem;
  margin: 1.7rem 0;
}
details.meta-fold summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
}
details.meta-fold summary::-webkit-details-marker { display: none; }
details.meta-fold summary .chev {
  margin-left: auto;
  color: var(--accent-deep);
  transition: transform var(--t-mid) var(--ease);
}
details.meta-fold[open] summary .chev { transform: rotate(-90deg); }
details.meta-fold[open] { padding-bottom: 0.8rem; }

.checkline {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin: 1.05rem 0;
  font-size: 17px;
}
.checkline input[type="checkbox"] {
  width: 1.65rem;
  height: 1.65rem;
  min-width: 1.65rem;
  margin-top: 0.25rem;
  accent-color: var(--accent-deep);
  cursor: pointer;
}
.checkline .ic { color: var(--accent-deep); width: 1.35em; height: 1.35em; }

/* =====================================================================
   同意与警示（文案原文不动 · 排版庄重化）
   ===================================================================== */
.consent-quote .quote {
  font-family: var(--font-display);
  font-size: 18.5px;
  line-height: 2;
  margin: 0 0 1rem;
  color: var(--ink);
}
.deceased-gate {
  background: #FBF1E1;
  border-left: 4px solid var(--amber-edge);
  border-radius: 6px 16px 16px 6px;
  padding: 1.4rem 1.5rem;
  margin: 1.2rem 0;
}
.deceased-gate h3 { margin-top: 0; }
.deceased-gate .quote {
  font-family: var(--font-display);
  font-size: 18.5px;
  line-height: 2;
  font-weight: 700;
  margin: 0.6rem 0 1.1rem;
}
.deceased-gate .btn { margin-top: 0.4rem; }

/* =====================================================================
   质检卡 / 徽章
   ===================================================================== */
.qc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.qc-item {
  background: var(--card);
  border-radius: var(--radius-s);
  padding: 0.75rem 0.95rem;
  font-size: 17px;
  box-shadow: inset 0 0 0 1px rgba(166, 124, 61, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.qc-item b {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--ink-faint);
  margin-bottom: 0.1rem;
}
.advice { margin: 0.4rem 0; padding: 0; list-style: none; }
.advice li { margin: 0.4rem 0; padding-left: 1.3em; position: relative; }
.advice li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.era-line { margin: 1.1rem 0 0.4rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-wash);
  color: var(--accent-ink);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: inset 0 0 0 1px rgba(166, 124, 61, 0.16);
}
.badge.era { font-family: var(--font-display); font-style: italic; font-size: 17px; }
.badge.ok { background: var(--ok-wash); color: var(--ok); box-shadow: inset 0 0 0 1px rgba(63, 110, 80, 0.25); }
.badge.warn { background: var(--warn-wash); color: var(--warn); box-shadow: inset 0 0 0 1px rgba(150, 80, 31, 0.22); }
.pill-row { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; margin: 0.6rem 0; }
.style-row .muted { font-size: 15px; }

/* —— 敏感词温和波浪线 —— */
.softened .badge.warn { font-weight: 500; }
.softened .badge.warn .w {
  text-decoration: underline wavy rgba(150, 80, 31, 0.6) 1.5px;
  text-underline-offset: 4px;
  font-weight: 700;
}

/* =====================================================================
   等待页 · 三段 stepper（修复 → 微动 → 合成）
   ===================================================================== */
.stepper { margin: 1.6rem 0 1.2rem; }
.seg { display: flex; gap: 1.15rem; position: relative; padding-bottom: 1.8rem; }
.seg:last-child { padding-bottom: 0.6rem; }
.seg::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 56px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}
.seg:last-child::before { display: none; }
.seg .dot {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  background: var(--card);
  color: var(--ink-faint);
  box-shadow: inset 0 0 0 1.5px var(--line-strong), 0 5px 12px -8px rgba(166, 124, 61, 0.3);
  transition: background var(--t-mid) var(--ease), color var(--t-mid) var(--ease),
    box-shadow var(--t-mid) var(--ease);
}
.seg .dot .ic { width: 22px; height: 22px; }
.seg .dot.running {
  background: var(--accent-wash);
  color: var(--accent-ink);
  box-shadow: inset 0 0 0 1.5px var(--accent);
  animation: breathe 2.4s var(--ease) infinite;
}
.seg .dot.success {
  background: var(--ok-wash);
  color: var(--ok);
  box-shadow: inset 0 0 0 1.5px rgba(63, 110, 80, 0.5);
}
.seg .dot.failed {
  background: var(--warn-wash);
  color: var(--warn);
  box-shadow: inset 0 0 0 1.5px rgba(150, 80, 31, 0.4);
}
@keyframes breathe {
  0%, 100% { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 0 rgba(166, 124, 61, 0.32); }
  50% { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 11px rgba(166, 124, 61, 0); }
}
.seg .seg-body { flex: 1; padding-top: 0.2rem; min-width: 0; }
.seg .seg-head {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  flex-wrap: wrap;
  font-size: 18px;
}
.seg .seg-head b { font-family: var(--font-display); font-size: 18.5px; }
.seg .seg-status { font-size: 14.5px; font-weight: 600; color: var(--ink-faint); }
.seg .seg-status.success { color: var(--ok); }
.seg .seg-status.running { color: var(--accent-ink); }
.seg .seg-status.failed { color: var(--warn); }
.seg-preview { margin-top: 0.7rem; }
.seg-preview img {
  width: 150px;
  border-radius: 3px;
  background: var(--paper-deep);
  box-shadow: 0 0 0 7px #FFFDF8, 0 14px 26px -14px rgba(166, 124, 61, 0.45);
}

/* =====================================================================
   成片页 · 双版切换预览 / 下载 / 分享卡
   ===================================================================== */
.ver-switch {
  display: inline-flex;
  gap: 4px;
  background: var(--card-core);
  border-radius: 999px;
  padding: 5px;
  box-shadow: inset 0 0 0 1px rgba(166, 124, 61, 0.16);
}
.ver-switch button {
  min-height: 48px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-family: inherit;
  font-size: 16.5px;
  color: var(--ink-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}
.ver-switch button[aria-pressed="true"] {
  background: var(--card);
  color: var(--accent-ink);
  font-weight: 700;
  box-shadow: 0 3px 10px -4px rgba(80, 60, 30, 0.18);
}
.center-row { display: flex; justify-content: center; margin: 0.4rem 0 1.4rem; }
.screen-wrap { display: flex; justify-content: center; padding-bottom: 0.4rem; }
.screen[data-panel="9x16"] { width: min(310px, 100%); }
.screen[data-panel="16x9"] { width: min(640px, 100%); }
.empty-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 180px;
  color: var(--ink-soft);
}
.note-line {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0.8rem 0 0;
}
.note-line .ic { color: var(--accent-deep); margin-top: 0.22em; }

.downloads { display: grid; gap: 0.65rem; margin-top: 0.4rem; }
.downloads .btn { justify-content: flex-start; padding-left: 20px; }

.share-card #card-area { margin-top: 1.4rem; }
.share-card #card-area h3 { margin-top: 0; }
.share-card #card-area img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 0 0 8px #FFFDF8, var(--shadow-photo);
}

/* =====================================================================
   设置页
   ===================================================================== */
.fp-warn {
  border-left: 4px solid var(--amber-edge);
  background: #FBF2E2;
  border-radius: 6px 14px 14px 6px;
  padding: 1.05rem 1.2rem;
  margin: 1.3rem 0;
}
.fp-warn .checkline { margin: 0; }
.fp-warn b { font-size: 17px; }
.consent-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.consent-table th {
  text-align: left;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--ink-faint);
  padding: 0.55rem 0.6rem;
  border-bottom: 1.5px solid var(--line-strong);
}
.consent-table td { padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--line); }
.consent-table .ic { color: var(--accent-deep); }
/* 窄屏（≤480px）：紧凑列距 + 哈希/日期允许断行，保证表格不横向溢出 */
@media (max-width: 480px) {
  .consent-table { font-size: 13.5px; }
  .consent-table th { padding: 0.5rem 0.32rem; letter-spacing: 0.03em; }
  .consent-table td { padding: 0.55rem 0.32rem; }
  .consent-table td.num { word-break: break-all; }
}
.invite-link { font-size: 14px; word-break: break-all; font-family: var(--font-mono); }

/* =====================================================================
   向导
   ===================================================================== */
.steps { display: flex; gap: 0.45rem; margin: 1.1rem 0 1.5rem; }
.steps .s {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: var(--line);
  transition: background var(--t-mid) var(--ease), flex-grow var(--t-mid) var(--ease);
}
.steps .s.on { background: var(--accent); flex-grow: 2; }
#wiz-body h3 { font-size: 21px; margin: 0.2rem 0 0.7rem; }
#wiz-body .btn { margin-top: 1rem; }
.invite-note { font-size: 14px; color: var(--ink-faint); margin-top: 0.8rem; }

/* =====================================================================
   空态 / 错误 / 杂项
   ===================================================================== */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.7rem 0 1.2rem;
  color: var(--ink-soft);
}
.empty .ic { width: 34px; height: 34px; color: var(--accent); opacity: 0.85; }

.nf { text-align: center; padding: 3rem 1.7rem 2.6rem; }
.nf-art {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--accent-wash);
  color: var(--accent-deep);
  transform: rotate(-4deg);
  margin-bottom: 1rem;
  box-shadow: inset 0 0 0 1px rgba(166, 124, 61, 0.2);
}
.nf-art .ic { width: 38px; height: 38px; }
.nf h2 { font-size: 44px; margin-bottom: 0.4rem; }
.nf .btn { max-width: 300px; margin: 1.4rem auto 0; }

.error { color: var(--danger); }
.errline:not(:empty) {
  display: block;
  margin-top: 0.9rem;
  background: var(--danger-wash);
  color: var(--danger);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 17px;
  line-height: 1.6;
}

.toolbar { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 0.9rem 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.hidden { display: none !important; }
[hidden] { display: none !important; }

/* =====================================================================
   入场（IntersectionObserver · 缓慢 600ms，长辈友好不花哨）
   ===================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* —— 小屏（<768px）：单列 · 去旋转 · 去叠压 —— */
@media (max-width: 767.98px) {
  .card { padding: 1.6rem 1.25rem; }
  .row2 { grid-template-columns: 1fr; }
  .qc-grid { gap: 0.55rem; }
  .seg { gap: 0.9rem; }
  .seg .dot { width: 46px; height: 46px; min-width: 46px; }
  .seg::before { left: 23px; top: 50px; }
  .seg-preview img { width: 128px; }
}
