/* ═══════════════════════════════════════════════════════════════
   Lucky Bag AI · 设计系统「商品整备台」（BRIEF v1.3 第三节 / 蓝图第十节）
   深海军蓝 #17324D 主色 · 白 #FAFBFC 底 · 橙 #E56A2E 只给按钮和重点；
   绿 / 红只出现在检查结果上。字体：Atkinson Hyperlegible Next（OFL-1.1，自托管，登记在 licenses.json）。
   不用：奶油底配衬线和赤陶色、黑底荧光绿、紫蓝渐变、Inter / Space Grotesk、满屏圆角卡片、emoji 标题。
   不用 v1.0 的纸色 #F2F3EF + 墨色 #1A201D（跟 Paperclip PDF 撞色）。
   ═══════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/vendor/atkinson-hyperlegible-next-5.3.0/latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/vendor/atkinson-hyperlegible-next-5.3.0/latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── tokens ─────────────────────────────────────────────────── */
:root {
  color-scheme: light dark;

  /* 品牌三色（两种模式都不变） */
  --navy: #17324d;
  --orange: #e56a2e;
  --white: #fafbfc;

  /* 语义色：浅色 */
  --bg: #fafbfc;
  --surface: #ffffff;
  --well: #edf1f5;
  --text: #17324d;
  --text-2: #475d73;
  --heading: #17324d;
  --border: #d6dee6;
  --border-2: #aebdcb;
  --band: #17324d;          /* 深色色带：清单表头、页脚 */
  --band-text: #fafbfc;
  --band-text-2: #b8c8d8;
  --on-orange: #10202f;     /* 橙底上的字：对比 5.1:1（白字只有 3.3:1，过不了 AA） */
  --orange-hover: #ef7c43;
  --soon-bg: #fbe8dd;
  --soon-text: #8a3510;
  --pass: #17784a;
  --pass-bg: #e3f3ea;
  --fail: #b8322a;
  --fail-bg: #fbe9e6;
  --ring: #e56a2e;
  --crop: #17324d;

  --font: 'Atkinson Hyperlegible Next', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --r: 4px;
  --wrap: 72rem;
  --gutter: 16px;
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1824;
    --surface: #122131;
    --well: #162a3d;
    --text: #e4ecf4;
    --text-2: #a6b7c8;
    --heading: #f2f6fa;
    --border: #253a4f;
    --border-2: #3a5670;
    --band: #17324d;
    --band-text: #fafbfc;
    --band-text-2: #b8c8d8;
    --soon-bg: #3b2216;
    --soon-text: #ffb68d;
    --pass: #63d09a;
    --pass-bg: #10301f;
    --fail: #ff8f80;
    --fail-bg: #3a1916;
    --ring: #ffb68d;
    --crop: #a6b7c8;
  }
}

/* ── base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variant-numeric: lining-nums;
  overflow-wrap: break-word;
}

h1, h2, h3 {
  color: var(--heading);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.05rem, 1.35rem + 3vw, 3.3rem); font-weight: 760; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.65rem); font-weight: 720; letter-spacing: -0.01em; }
h3 { font-size: 1.0625rem; font-weight: 720; }

p { margin: 0; }
p + p { margin-top: 0.9em; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { text-decoration-color: var(--orange); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 2px;
}

img, svg { display: block; max-width: 100%; }

main { flex: 1 0 auto; }   /* 页面短的时候（404）页脚也贴在底部 */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 8px; top: -60px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--band);
  color: var(--band-text);
  border-radius: var(--r);
  font-weight: 700;
}
.skip:focus { top: 8px; }

.noscript {
  margin-top: 12px;
  padding-block: 10px;
  color: var(--text-2);
  font-size: 0.9375rem;
}

/* ── header ─────────────────────────────────────────────────── */
.bar { border-bottom: 1px solid var(--border); background: var(--bg); }
.bar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--heading);
}
.brand__name { font-weight: 780; font-size: 1.125rem; letter-spacing: -0.01em; white-space: nowrap; }
/* 页眉标志：剪纸福袋（2026-09-28 定稿 V2），108px 的图显示成 36px */
.mark { display: block; width: 36px; height: 36px; flex: none; }
/* 深色页眉上深蓝袋身会跟底色混在一起：描一圈很淡的亮边把轮廓分出来 */
@media (prefers-color-scheme: dark) { .mark { filter: drop-shadow(0 0 0.7px rgba(242, 246, 250, 0.6)); } }

.bar__nav { display: flex; gap: 4px; }
.bar__nav a {
  padding: 10px 10px;
  font-weight: 650;
  text-decoration: none;
  border-radius: var(--r);
}
.bar__nav a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.bar__nav a[aria-current='page'] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; }

/* ── buttons, fields, tags ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  font: inherit;
  font-weight: 720;
  line-height: 1.2;
  color: var(--heading);
  background: transparent;
  border: 2px solid currentColor;
  border-radius: var(--r);
  cursor: pointer;
}
.btn:hover { background: var(--well); }
.btn--primary {
  color: var(--on-orange);
  background: var(--orange);
  border-color: var(--orange);
}
.btn--primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); }
.btn--primary:focus-visible { outline-color: var(--heading); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.linkish {
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text-2);
  background: none;
  border: 0;
  padding: 6px 2px;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.field-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 0.9375rem;
}
.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.field-row input { flex: 1 1 14rem; min-width: 0; }

input[type='email'] {
  min-height: 46px;
  padding: 0 12px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  border-radius: var(--r);
}
input[type='email']::placeholder { color: var(--text-2); opacity: 0.75; }
input[type='email']:focus-visible { border-color: var(--orange); }
input[aria-invalid='true'] { border-color: var(--fail); }

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: 0.9375rem;
  cursor: pointer;
  white-space: nowrap;
}
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--orange); flex: none; }
.check--lg { font-size: 1rem; }

.tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-2);
  border: 1px solid var(--border-2);
  border-radius: 3px;
  white-space: nowrap;
}
.tag--soon { color: var(--soon-text); background: var(--soon-bg); border-color: transparent; }

.notify__msg { min-height: 1.5em; margin-top: 8px; font-weight: 650; font-size: 0.9375rem; }
.notify__msg[data-state='ok'] { color: var(--pass); }
.notify__msg[data-state='err'] { color: var(--fail); }

.fine { margin-top: 12px; font-size: 0.875rem; color: var(--text-2); }

/* ── hero ───────────────────────────────────────────────────── */
/* 统帅 2026-09-28：「最好有example给他们看看，还有操作说明」→ 首屏放能拖动的前后对比，下面三步图。
   手机：标题 → 对比图 → 按钮；电脑：左边标题 + 按钮，右边对比图。 */
.hero { padding-block: 28px 44px; }
.hero__grid {
  display: grid;
  gap: 20px;
  grid-template-areas: 'head' 'demo' 'cta';
}
.hero__head { grid-area: head; }
.demo { grid-area: demo; }
.hero__cta { grid-area: cta; }
.hero h1 { max-width: 15ch; }
.hero__for { margin-top: 10px; font-weight: 700; font-size: 1.0625rem; color: var(--text-2); }
.lede { margin-top: 16px; font-size: 1.1875rem; color: var(--text-2); max-width: 34rem; }

.hero__btnrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero__idle .lockline { margin-top: 14px; }
.tray__note { font-size: 0.9375rem; color: var(--text-2); }
.tray__notice {
  padding: 20px;
  background: var(--surface);
  border: 2px dashed var(--border-2);
  border-radius: var(--r);
}
.tray__notice-lead { margin-bottom: 16px; }
.notify-mini { margin-top: 14px; }
.tray__notice .linkish { margin-top: 10px; }
/* 拖着照片经过首屏：对比图的裁切线变橙色、外圈出现虚线，表示「放这里」 */
.hero.is-over .demo__frame { --crop: var(--orange); }
.hero.is-over .demo__stage { outline: 3px dashed var(--orange); outline-offset: 4px; }

@media (min-width: 1000px) {
  .hero { padding-block: 48px 72px; }
  /* 标题 + 按钮这一块跟右边的对比图上下居中：上下两格空行平分剩下的高度 */
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    grid-template-areas: '. demo' 'head demo' 'cta demo' '. demo';
    grid-template-rows: 1fr auto auto 1fr;
    column-gap: 56px;
    row-gap: 0;
    align-items: start;
  }
  .hero__cta { margin-top: 32px; }
  .hero h1 { font-size: clamp(2.75rem, 4.2vw, 3.75rem); }
}

/* 对比图：外圈四角裁切线（排版台上的裁切记号），里面两张同尺寸的图叠着，上面那张按 --cut 裁掉左边。 */
.demo { margin: 0; }
.demo__frame {
  --m: 16px;
  padding: 10px;
  background:
    linear-gradient(var(--crop), var(--crop)) left top / var(--m) 2px,
    linear-gradient(var(--crop), var(--crop)) left top / 2px var(--m),
    linear-gradient(var(--crop), var(--crop)) right top / var(--m) 2px,
    linear-gradient(var(--crop), var(--crop)) right top / 2px var(--m),
    linear-gradient(var(--crop), var(--crop)) left bottom / var(--m) 2px,
    linear-gradient(var(--crop), var(--crop)) left bottom / 2px var(--m),
    linear-gradient(var(--crop), var(--crop)) right bottom / var(--m) 2px,
    linear-gradient(var(--crop), var(--crop)) right bottom / 2px var(--m);
  background-repeat: no-repeat;
}
.demo__stage {
  --cut: 50%;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(16 32 47 / 0.08), 0 14px 36px rgb(16 32 47 / 0.14);
}
.demo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.demo__img--after { clip-path: inset(0 0 0 var(--cut)); }
.demo__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--cut);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(16 32 47 / 0.12);
  pointer-events: none;
}
.demo__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  color: #17324d;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgb(16 32 47 / 0.3);
}
.demo__knob svg { width: 24px; height: 24px; }
.demo__tag {
  position: absolute;
  top: 12px;
  padding: 3px 10px;
  font-size: 0.8125rem;
  font-weight: 780;
  border-radius: 999px;
  pointer-events: none;
}
.demo__tag--before { left: 12px; color: #fff; background: rgb(16 32 47 / 0.72); }
.demo__tag--after { right: 12px; color: #17324d; background: #fff; box-shadow: 0 0 0 1px rgb(16 32 47 / 0.14); }
/* 看不见的滑杆盖满整张图：哪里都能拖，键盘左右键也能动；上下滑照样能卷页面 */
.demo__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.demo__stage:has(.demo__range:focus-visible) { outline: 3px solid var(--orange); outline-offset: 3px; }
.demo__facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.demo__picks { display: flex; gap: 10px; margin-top: 14px; }
.demo__pick {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}
.demo__pick img { display: block; width: 100%; height: 100%; object-fit: cover; }
.demo__pick:hover { border-color: var(--border-2); }
.demo__pick[aria-pressed='true'] { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange); }
.demo__pick:focus-visible { outline: 3px solid var(--heading); outline-offset: 3px; }

.verdict {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px 2px 6px;
  font-weight: 760;
  font-size: 0.875rem;
  white-space: nowrap;
  border-radius: 3px;
}
.verdict svg { width: 14px; height: 14px; }
.verdict--pass { color: var(--pass); background: var(--pass-bg); }
.verdict--fail { color: var(--fail); background: var(--fail-bg); }
.chip {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--heading);
  background: var(--well);
  border-radius: 999px;
}

/* 大按钮和一行小字 */
.btn--xl { font-size: 1.1875rem; padding: 16px 30px; }
.lockline { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.lockline svg { width: 16px; height: 16px; flex: none; }

/* ── 操作说明：三步，每步一张图、一两个词 ──────────────────────── */
.howto { padding-block: 40px 44px; background: var(--well); }
.howto h2 { margin-bottom: 18px; }
.howto__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.howto__step {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.howto__pic {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
}
.howto__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.howto__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 100%; height: 100%; background: var(--surface); }
.howto__pic--fix img { position: absolute; inset: 0; }
.howto__pic--fix .howto__after { clip-path: inset(0 0 0 50%); }
.howto__cut { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgb(16 32 47 / 0.12); }
.howto__badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--on-orange);
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgb(16 32 47 / 0.25);
}
.howto__badge svg { width: 18px; height: 18px; }
.howto__text { display: grid; gap: 8px; }
.howto__cap { display: flex; align-items: center; gap: 10px; font-weight: 780; font-size: 1.25rem; color: var(--heading); line-height: 1.2; }
.howto__n {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  font-size: 0.9375rem;
  color: var(--band-text);
  background: var(--band);
  border-radius: 50%;
}
.step__chips { display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 860px) {
  .howto { padding-block: 56px 64px; }
  .howto__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .howto__step { grid-template-columns: none; align-items: start; padding: 16px; }
}

/* ── 工具卡：「做之前 → 做之后」小示范图 + 两三个词 + Soon。整张卡是一个按钮，点了弹出小窗（.sheet）。 ── */
.tools { padding-block: 48px 72px; }
.tools > .wrap > h2 { margin-bottom: 16px; }
/* 用 flex 不用 grid：卡片数不是整行时（现在 7 张），最后一行居中，不会在角落空一格。 */
.toolgrid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.toolgrid > li { display: flex; flex: 0 0 calc((100% - 12px) / 2); }
@media (min-width: 760px) {
  .toolgrid { gap: 16px; }
  .toolgrid > li { flex-basis: calc((100% - 3 * 16px) / 4); }
}
.toolcard {
  flex: 1;
  width: 100%;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  padding: 8px 8px 14px;
  font: inherit;
  text-align: center;
  color: var(--heading);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
}
.toolcard:hover { border-color: var(--orange); }
.toolcard:focus-visible { outline: 3px solid var(--heading); outline-offset: 2px; }
/* balance：窄屏断成「Signature / cut-out」，不会断成「Signature cut- / out」 */
.toolcard__name { font-weight: 740; font-size: 1.0625rem; line-height: 1.25; text-wrap: balance; }
.toolcard__pv,
.sheet__pv {
  display: grid;
  /* 行高要定死：不然照片的原始尺寸会把行撑高，里面的百分比高度就按撑高后的算，照片被裁成横条 */
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  width: 100%;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  background: var(--well);
  border-radius: 3px;
}

/* 示范图里的东西。纸、卡、证件照是实物，深色模式也保持浅色，才像真的。 */
.pv { display: block; width: 100%; height: 100%; }
.pv-paper { fill: #fff; stroke: #aebdcb; stroke-width: 1.2; }
.pv-paper--warm { fill: #fffdf7; }
.pv-hot { stroke: #e56a2e; stroke-width: 2.4; }
.pv-line-box { fill: none; stroke: #c3cfdb; stroke-width: 1; }
.pv-line { fill: none; stroke: #b4c2d0; stroke-width: 2.2; stroke-linecap: round; }
.pv-line--thick { stroke-width: 4.5; }
.pv-bar { stroke: #17324d; stroke-width: 1.3; }
.pv-arrow { fill: none; stroke: var(--orange); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pv-ink { fill: none; stroke: #1f3f9a; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pv-rule { fill: none; stroke: #c9d6e6; stroke-width: 0.8; }
.pv-ck1 { fill: #fff; }
.pv-ck2 { fill: #dde3ea; }
.pv-card { fill: #e3ecf6; stroke: #aebdcb; stroke-width: 1.2; }
.pv-soft { fill: #c6d3e2; }
.pv-sil { fill: #8fa3ba; }
.pv-wm { fill: #e56a2e; font: 800 8.5px var(--font); letter-spacing: 0.04em; opacity: 0.9; }
.pv-red { fill: #d0342c; }
.pv-blue { fill: #2a64c9; }
.pv-edge { stroke: #fff; stroke-width: 3; }
.pv-skin { fill: #f0d7c2; }
.pv-shirt { fill: #17324d; }
.pv-frame { fill: none; stroke: var(--heading); stroke-width: 1.5; }
.pv-dim { fill: none; stroke: var(--orange); stroke-width: 1.6; stroke-linecap: round; }
.pv-label { fill: var(--heading); font: 800 11px var(--font); }
/* 照片类示范图（压缩、改尺寸） */
.pv-photo { position: relative; display: block; height: 78%; aspect-ratio: 1; }
.pv-photo img,
.pv-resize img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; box-shadow: 0 3px 10px rgb(16 32 47 / 0.18); }
.pv-chip {
  position: absolute;
  left: 50%;
  bottom: -6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--pass);
  background: var(--pass-bg);
  border-radius: 3px;
  box-shadow: 0 1px 3px rgb(16 32 47 / 0.15);
  transform: translateX(-50%);
}
.pv-chip svg { width: 12px; height: 12px; }
.pv-chip--plain { color: var(--heading); background: var(--surface); }
/* 手机上一张卡只有约 145px 宽：大图 70%、小图 42% 高，小图底下的「1024 px」才不会被切掉 */
.pv-resize { display: flex; align-items: center; justify-content: center; gap: 5%; width: 100%; height: 100%; }
.pv-resize__big { height: 70% !important; width: auto !important; aspect-ratio: 1; }
.pv-resize__small { position: relative; display: block; height: 42%; aspect-ratio: 1; }
.pv-resize__arrow { flex: none; width: 18px; height: 18px; color: var(--orange); stroke-width: 2.6; }
.pv-resize .pv-chip { font-size: 0.6875rem; padding-inline: 5px; }

/* 点工具卡弹出的小窗：手机上从底部升起，电脑上在正中。名字、示范图、三步、Opens soon、邮箱框。
   dialog 本身零内边距（全在 .sheet__in），site.js 靠这个分辨「点到外面的暗处」。 */
.sheet {
  width: min(100% - 2 * var(--gutter), 28rem);
  max-width: none;
  padding: 0;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 24px 64px rgb(8 18 28 / 0.28);
}
.sheet::backdrop { background: rgb(8 18 28 / 0.55); }
.sheet__in { position: relative; padding: 20px 24px 24px; }
.sheet__name { margin: 0; padding-right: 44px; font-size: 1.375rem; line-height: 1.3; }
.sheet__pv { margin-top: 14px; border-radius: 6px; }
.sheet__steps { list-style: none; counter-reset: step; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sheet__steps li {
  counter-increment: step;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px 3px 3px;
  font-weight: 720;
  font-size: 0.9375rem;
  color: var(--heading);
  background: var(--well);
  border-radius: 999px;
}
.sheet__steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  font-size: 0.8125rem;
  color: var(--band-text);
  background: var(--band);
  border-radius: 50%;
}
.sheet__lead { margin: 18px 0 12px; font-weight: 740; font-size: 1.125rem; color: var(--heading); }
.sheet__x {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--text-2);
  background: none;
  border: 0;
  border-radius: var(--r);
  cursor: pointer;
}
.sheet__x:hover { color: var(--heading); background: var(--well); }
.sheet__x svg { width: 22px; height: 22px; }
@media (max-width: 599px) {
  .sheet {
    width: 100%;
    max-height: calc(100% - 24px);
    margin: auto 0 0;
    border-width: 1px 0 0;
    border-radius: 14px 14px 0 0;
  }
  .sheet__in { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}

.notify {
  margin-top: 32px;
  padding: 24px var(--gutter);
  margin-inline: calc(var(--gutter) * -1);
  background: var(--well);
}
.notify h2 { margin-bottom: 14px; }
.notify .field-row { max-width: 34rem; }
@media (min-width: 720px) {
  .notify { margin-inline: 0; padding: 32px; border-radius: var(--r); }
}

/* ── 商品图工具：工作台（选了照片之后换掉首屏；photo-tool.js 画的） ──────────
   一个状态一个大按钮：准备中（进度条）→ 修图中（一张张变白底）→ Download all。 */
.bench { padding-block: 32px 64px; }
.bench__head { max-width: 46rem; }
.bench__title { font-size: clamp(1.875rem, 4vw, 2.5rem); }
.bench__status { margin-top: 8px; font-weight: 700; font-size: 1.0625rem; color: var(--text-2); }
.bench__bar { margin-top: 12px; height: 8px; overflow: hidden; background: var(--well); border-radius: 999px; }
.bench__bar span { display: block; width: 0; height: 100%; background: var(--orange); border-radius: 999px; }
.bench__note { margin-top: 8px; font-size: 0.9375rem; color: var(--text-2); }
.bench__grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .bench__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.shot { display: grid; gap: 8px; align-content: start; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.shot__img { position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; background: #fff; border-radius: 4px; }
.shot__img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.shot[data-state='waiting'] .shot__img,
.shot[data-state='working'] .shot__img { background: var(--well); }
.shot[data-state='working'] .shot__img img { opacity: 0.55; }
.shot__spin {
  position: absolute;
  z-index: 1;
  width: 34px;
  height: 34px;
  border: 4px solid rgb(23 50 77 / 0.15);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: lb-spin 0.9s linear infinite;
}
.shot[data-state='done'] .shot__spin,
.shot[data-state='error'] .shot__spin { display: none; }
@keyframes lb-spin { to { transform: rotate(360deg); } }
.shot__name { overflow: hidden; font-size: 0.875rem; font-weight: 700; color: var(--heading); white-space: nowrap; text-overflow: ellipsis; }
.shot__facts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 36px; }
.shot__facts .verdict { padding: 1px 6px 1px 4px; font-size: 0.75rem; }
.shot__facts .verdict svg { width: 12px; height: 12px; }
.shot__save { display: grid; place-items: center; width: 36px; height: 36px; margin-left: auto; color: var(--on-orange); background: var(--orange); border-radius: 50%; }
.shot__save svg { width: 18px; height: 18px; }
.shot__save:focus-visible { outline: 3px solid var(--heading); outline-offset: 2px; }
.shot__err { padding: 12px; font-size: 0.875rem; font-weight: 700; color: var(--fail); text-align: center; }
.bench__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.bench__actions .btn svg { width: 22px; height: 22px; }
.bench__lock { margin-top: 14px; }
@media (prefers-reduced-motion: no-preference) { .bench__bar span { transition: width 0.3s ease; } }
@media (prefers-reduced-motion: reduce) { .shot__spin { animation-duration: 3s; } }

/* ── documents（法务与说明页） ──────────────────────────────── */
.doc { max-width: 46rem; padding-block: 40px 72px; }
.doc--short { padding-block: 56px 96px; }
.doc__head { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 3px solid var(--band); }
.doc__date { margin-top: 10px; font-size: 0.9375rem; color: var(--text-2); }
.doc__code { font-weight: 780; color: var(--orange); font-size: 1.25rem; margin-bottom: 6px; }
.doc .lede { margin-top: 14px; }
.doc h2 { margin-top: 36px; margin-bottom: 10px; scroll-margin-top: 16px; }
.doc p, .doc li { max-width: 68ch; }
.doc ul { margin: 0; padding-left: 0; list-style: none; }
.doc ul li { position: relative; padding-left: 28px; }
.doc ul li + li { margin-top: 8px; }

.ticks li::before,
.crosses li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.38em;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.ticks li::before {
  color: var(--pass);
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.4l3 3 6.6-6.8' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.crosses li::before {
  color: var(--fail);
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 4.5l7 7M11.5 4.5l-7 7' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.plain-links li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 10px;
  height: 3px;
  background: var(--orange);
}

.table-wrap { margin-top: 16px; }
.data { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 0.9375rem; }
.data th, .data td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--border); }
.data thead th { font-size: 0.8125rem; color: var(--band-text); background: var(--band); border-bottom: 0; }
.data thead th:nth-child(1) { width: 19%; }
.data thead th:nth-child(2) { width: 41%; }
.data thead th:nth-child(3) { width: 22%; }
.data thead th:nth-child(4) { width: 18%; }
.data tbody th { color: var(--heading); font-weight: 720; }

@media (max-width: 699px) {
  .data thead { display: none; }
  .data, .data tbody, .data tr, .data th, .data td { display: block; width: 100%; }
  .data tr { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .data tbody th { padding: 0 0 6px; border: 0; font-size: 1.0625rem; }
  .data td { padding: 4px 0; border: 0; }
  .data td::before { content: attr(data-label) ': '; font-weight: 700; color: var(--text-2); }
}

/* 许可证页 */
.lic { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.doc__head + .lic { margin-top: 0; padding-top: 0; border-top: 0; }
.lic h2 { margin: 0 0 12px; }
.lic__ver { font-weight: 500; color: var(--text-2); font-size: 1rem; }
.lic__meta { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0; }
.lic__meta dt { font-weight: 700; color: var(--text-2); }
.lic__meta dd { margin: 0; overflow-wrap: anywhere; }
.lic details { margin-top: 16px; }
.lic summary { cursor: pointer; font-weight: 700; }
.lic pre {
  margin: 12px 0 0;
  padding: 16px;
  max-height: 28rem;
  overflow: auto;
  font-size: 0.8125rem;
  line-height: 1.5;
  white-space: pre-wrap;
  background: var(--well);
  border-radius: var(--r);
}

/* ── footer ─────────────────────────────────────────────────── */
.foot {
  background: var(--band);
  color: var(--band-text);
  padding-block: 28px 32px;
  font-size: 0.9375rem;
}
.foot__in { display: grid; gap: 14px; }
.foot a { color: var(--band-text); }
.foot a:hover { text-decoration-color: var(--orange); }
.foot__nav { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--band-text-2); }
.foot__nav a[aria-current='page'] { text-decoration-color: var(--orange); text-decoration-thickness: 3px; }
.foot :focus-visible { outline-color: #ffb68d; }

@media (prefers-color-scheme: dark) {
  .foot { background: #09121c; border-top: 1px solid var(--border); }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .toolcard, .demo__pick, input[type='email'] { transition: background-color 0.15s ease, border-color 0.15s ease; }
}
