/* Poze 官网样式 —— 跟客户端同一套「Critter」贴纸簿设计语言。
   token 与 docs/01-DESIGN-SYSTEM.md 一一对应，改之前先读那份文档。 */

:root {
  /* 基础色（Light）*/
  --paper: #FFF6E9;
  --paper-alt: #FFEBD3;
  --card: #FFFFFF;
  --sunken: #F4E7D5;
  --ink: #2B2118;
  --ink-soft: #6B5B4B;
  --ink-faint: #A3937F;

  /* 角色色板 */
  --honey: #FF8A3D;
  --mint: #3ECFA0;
  --sky: #5BA8FF;
  --berry: #A47BFF;
  --blossom: #FF7FA8;
  --banana: #FFC93D;
  --leaf: #7BC96F;
  --danger: #FF6B6B;

  /* 形状：描边恒为 ink，投影不模糊 —— 这是 Poze 最强的识别特征 */
  --stroke: 2px;
  --stroke-thick: 3px;
  --r-chip: 14px;
  --r-field: 18px;
  --r-card: 24px;
  --r-btn: 22px;
  --r-sheet: 32px;
  --depth: 5px;

  --maxw: 1140px;
  --font: "Nunito", "Quicksand", "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
          "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #241B14;
    --paper-alt: #2F241A;
    --card: #3A2D21;
    --sunken: #1B140E;
    --ink: #FFF2DF;
    --ink-soft: #CBB49A;
    --ink-faint: #8E7A64;
  }
}
:root[data-theme="dark"] {
  --paper: #241B14;
  --paper-alt: #2F241A;
  --card: #3A2D21;
  --sunken: #1B140E;
  --ink: #FFF2DF;
  --ink-soft: #CBB49A;
  --ink-faint: #8E7A64;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  /* 奶油纸底上压一层极淡的纸纹 */
  background-image: radial-gradient(var(--paper-alt) 1px, transparent 1px);
  background-size: 22px 22px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 排版 ---------- */
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.22; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 6vw, 60px); }
h2 { font-size: clamp(26px, 4vw, 38px); }
h3 { font-size: clamp(19px, 2.4vw, 23px); font-weight: 800; }
h4 { font-size: 17px; font-weight: 800; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--ink); text-decoration-color: var(--honey); text-underline-offset: 3px;
    text-decoration-thickness: 2px; }
a:hover { color: var(--honey); }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); max-width: 34em; }
.tabular { font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
           color: var(--ink-faint); margin-bottom: 10px; }

/* ---------- 贴纸卡：所有"可触摸的东西" ---------- */
.sticker {
  /* --tint 由调用方设成一个**不透明**混色。设计规范 §2.2：直接用半透明色，
     硬投影会透过卡片显出来（这是踩过的坑）。 */
  background: var(--tint, var(--card));
  border: var(--stroke) solid var(--ink);
  border-radius: var(--r-card);
  box-shadow: 0 var(--depth) 0 var(--ink);   /* 硬投影，blur = 0 */
  padding: 22px;
}
.sticker--flat { box-shadow: 0 3px 0 var(--ink); }

a.sticker, button.sticker { display: block; text-decoration: none; transition: transform .16s ease,
  box-shadow .16s ease; }
a.sticker:hover, button.sticker:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
a.sticker:active, button.sticker:active { transform: translateY(var(--depth));
  box-shadow: 0 0 0 var(--ink); }   /* 按下位移到投影上，像被压实的实体键 */

.sunken {
  background: var(--sunken);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--r-field);
  padding: 16px 18px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 0 26px;
  border: var(--stroke-thick) solid var(--ink);
  border-radius: var(--r-btn);
  box-shadow: 0 var(--depth) 0 var(--ink);
  font: inherit; font-weight: 800; font-size: 16px;
  text-decoration: none; cursor: pointer;
  transition: transform .16s cubic-bezier(.34,1.56,.64,1), box-shadow .16s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.btn:active { transform: translateY(var(--depth)); box-shadow: 0 0 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
/* 蜜橘底上一律用深墨字 —— 白字在 #FF8A3D 上只有 2.6:1（设计规范 §7） */
.btn--primary { background: var(--honey); color: var(--ink); }
.btn--primary:hover { color: var(--ink); }
.btn--paper { background: var(--card); color: var(--ink); }
.btn--paper:hover { color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { color: var(--paper); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; border-width: var(--stroke);
           box-shadow: 0 3px 0 var(--ink); }
.btn--sm:hover { box-shadow: 0 5px 0 var(--ink); }
.btn--sm:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }

/* ---------- Chip / Badge ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border: var(--stroke) solid var(--ink); border-radius: var(--r-chip);
  background: var(--card); font-size: 13px; font-weight: 800; white-space: nowrap;
}
.chip--fill { background: var(--tint, var(--banana)); }
.badge {
  display: inline-block; padding: 3px 9px; border: 2px solid var(--ink); border-radius: 9px;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  background: var(--banana); color: var(--ink); vertical-align: middle;
}
.badge--new { background: var(--mint); }
.badge--pro { background: var(--berry); }
.badge--hd  { background: var(--sky); }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: var(--stroke) solid var(--ink);
}
.nav__in { display: flex; align-items: center; gap: 18px; height: 70px; }
.nav__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-inline-end: auto; }
.nav__logo img { height: 30px; display: block; }
/* 字标锁定 LTR，阿拉伯语环境下也不镜像（视觉资产规范 §4.4） */
.nav__logo { direction: ltr; }
.nav__links { display: flex; gap: 22px; align-items: center; }
.nav__links a { font-weight: 800; font-size: 15px; text-decoration: none; }
.nav__tools { display: flex; gap: 8px; align-items: center; }
@media (max-width: 860px) { .nav__links { display: none; } }

/* ---------- 区块 ---------- */
section { padding: clamp(56px, 8vw, 104px) 0; }
.band { background: var(--paper-alt); border-top: var(--stroke) solid var(--ink);
        border-bottom: var(--stroke) solid var(--ink); }
.head { max-width: 44em; margin-bottom: 42px; }
.head--center { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 72px); }
.hero__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero__in { grid-template-columns: 1fr; } }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 18px; }
.hero__note { font-size: 13px; color: var(--ink-faint); font-weight: 700; }
.hero__art { position: relative; display: flex; justify-content: center; }
.hero__art svg { width: min(100%, 420px); height: auto; }

/* 吉祥物呼吸：设计规范只允许三处持续动画，这是其中一处 */
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.bob { animation: bob 3.6s ease-in-out infinite; }

/* ---------- 工具宫格 ---------- */
.tool { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 10px;
        text-align: center; text-decoration: none; }
.tool__ico {
  width: 62px; height: 62px; border-radius: 50%;
  border: var(--stroke) solid var(--ink);
  background: var(--tint, var(--paper-alt));
  display: grid; place-items: center;
}
.tool__ico img { width: 40px; height: 40px; display: block; }
.tool__name { font-size: 13px; font-weight: 800; line-height: 1.3; }

/* ---------- 主入口卡 ---------- */
.entry { display: flex; flex-direction: column; gap: 12px; min-height: 220px; text-decoration: none; }
.entry__kicker { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
                 color: var(--ink-soft); }
.entry__title { font-size: 24px; font-weight: 800; }
.entry__desc { font-size: 14px; color: var(--ink-soft); margin: 0; }
.entry__ico { margin-top: auto; width: 58px; height: 58px; }

/* ---------- 步骤 ---------- */
.step__n {
  width: 46px; height: 46px; border-radius: 50%; border: var(--stroke) solid var(--ink);
  background: var(--tint, var(--banana)); display: grid; place-items: center;
  font-weight: 800; font-size: 19px; margin-bottom: 14px;
}

/* ---------- 权益清单 ---------- */
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.perks li { display: flex; gap: 11px; align-items: flex-start; font-weight: 700; font-size: 15px; }
.perks svg { flex: none; margin-top: 2px; }

/* ---------- 页脚 ---------- */
.foot { border-top: var(--stroke) solid var(--ink); background: var(--paper-alt);
        padding: 52px 0 36px; }
.foot__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .foot__cols { grid-template-columns: 1fr 1fr; } }
.foot h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot a { font-size: 14px; font-weight: 700; text-decoration: none; }
.foot__legal { margin-top: 38px; padding-top: 22px; border-top: 2px dashed var(--ink-faint);
               font-size: 13px; color: var(--ink-faint); display: flex; flex-wrap: wrap;
               gap: 14px; justify-content: space-between; }

/* ---------- 法务 / 文档页 ---------- */
.doc { max-width: 780px; margin: 0 auto; }
.doc h2 { margin-top: 1.8em; font-size: clamp(22px, 3vw, 28px); scroll-margin-top: 90px; }
.doc h3 { margin-top: 1.4em; font-size: 18px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul, .doc ol { padding-inline-start: 22px; margin: 0 0 1em; }
.doc li { margin-bottom: .5em; }
.doc table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 1.4em;
             border: var(--stroke) solid var(--ink); border-radius: var(--r-field); overflow: hidden; }
.doc th, .doc td { padding: 11px 14px; text-align: start; font-size: 14px;
                   border-bottom: 2px solid var(--ink); }
.doc th { background: var(--paper-alt); font-weight: 800; color: var(--ink); }
.doc td { color: var(--ink-soft); background: var(--card); }
.doc tr:last-child th, .doc tr:last-child td { border-bottom: none; }
.doc__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.toc { margin: 0 0 36px; }
.toc ul { columns: 2; column-gap: 26px; margin: 0; padding-inline-start: 0; list-style: none; }
.toc li { break-inside: avoid; margin-bottom: 6px; }
@media (max-width: 640px) { .toc ul { columns: 1; } }
.toc a { font-size: 14px; font-weight: 700; }

.callout {
  border: var(--stroke) solid var(--ink); border-radius: var(--r-field);
  background: var(--tint, var(--paper-alt)); padding: 16px 18px; margin: 0 0 1.6em;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--ink); }

/* ---------------------------------------------------------------- 成品展示
   官网原来一张成品都没有 —— 一个做 AI 出图出视频的产品，这说不过去。
   会动的放视频，静态的放前后对比滑块：一拖就明白，不用读文案。            */
.shots { align-items: start; }

.shot { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.shot figcaption { font-size: 14px; color: var(--ink-2); line-height: 1.5; }

.shot__media { position: relative; }
.shot video, .shot__media video {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block;
  border: var(--line-w) solid var(--ink); border-radius: var(--r-md);
  box-shadow: var(--shadow); background: var(--ink);
}
.shot__tag {
  position: absolute; left: 10px; bottom: 10px;
  background: var(--card); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 3px 10px; font-size: 12px; font-weight: 700;
}

/* 两块之间的分隔：一句话说清下面这组是另一回事，不用再起一个 h2 */
.shots__split {
  display: flex; align-items: center; gap: 14px; margin: 34px 0 22px;
  color: var(--ink-2); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
}
.shots__split::before, .shots__split::after {
  content: ""; flex: 1; height: 2px; background: var(--ink); opacity: .13;
}

/* 前后对比滑块。
   叠两张图，上面那张用 clip 宽度露出一部分；拖动的是一个**原生 range**，
   透明地铺在上面 —— 这样键盘、读屏、触摸全都免费拿到，不用自己写手势。 */
.ba {
  position: relative; overflow: hidden; touch-action: pan-y;
  border: var(--line-w) solid var(--ink); border-radius: var(--r-md);
  box-shadow: var(--shadow); background: var(--card);
}
.ba__img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.ba__clip {
  position: absolute; inset: 0; width: var(--pos); overflow: hidden;
  /* 定宽的内层图：裁切的是「露出多少」，不是把图压扁 */
  container-type: inline-size;
}
.ba__clip .ba__img { position: absolute; inset: 0; width: auto; height: 100%;
  max-width: none; aspect-ratio: 3 / 4; }
.ba__line {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px;
  background: var(--card); box-shadow: 0 0 0 2px var(--ink); pointer-events: none;
}
.ba__grip {
  position: absolute; top: 50%; left: 50%; width: 34px; height: 34px;
  transform: translate(-50%, -50%);
  background: var(--card); border: 3px solid var(--ink); border-radius: 999px;
}
.ba__grip::before, .ba__grip::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0;
  border-block: 5px solid transparent;
}
.ba__grip::before { left: 5px; border-right: 7px solid var(--ink); transform: translateY(-50%); }
.ba__grip::after { right: 5px; border-left: 7px solid var(--ink); transform: translateY(-50%); }
.ba__side {
  position: absolute; top: 10px; font-size: 11px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink); background: var(--card);
  border: 2px solid var(--ink); border-radius: 999px; padding: 2px 9px; pointer-events: none;
}
.ba__side--l { left: 10px; }
.ba__side--r { right: 10px; }
/* range 铺满整块并且完全透明：看得见的是上面那根线和圆钮 */
.ba__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; appearance: none; background: none;
}
.ba__range::-webkit-slider-thumb { appearance: none; width: 44px; height: 100%; }
.ba__range::-moz-range-thumb { width: 44px; height: 100%; border: 0; }
.ba__range:focus-visible { outline: none; }
.ba:has(.ba__range:focus-visible) { outline: 3px solid var(--honey); outline-offset: 3px; }

@media (max-width: 900px) {
  .shot video, .shot__media video, .ba__img { aspect-ratio: 4 / 5; }
}

/* ---------- 首页问答 ---------- */
/* 用原生 <details>：不写 JS 就能展开，禁用脚本、爬虫抓取、Ctrl+F 页内搜索
   （Chrome 会展开命中的折叠块）全都照常工作。手写的 aria-expanded 这三件事
   一件也拿不到。 */
.wrap--narrow { max-width: 780px; }
.qa {
  border: var(--stroke) solid var(--ink);
  border-radius: 18px;
  background: var(--card);
  margin-bottom: 12px;
}
.qa[open] { box-shadow: 0 4px 0 var(--ink); }
.qa summary {
  cursor: pointer;
  list-style: none;                    /* Firefox 的默认三角 */
  padding: 16px 54px 16px 20px;
  font-weight: 800;
  font-size: clamp(16px, 1.8vw, 18px);
  position: relative;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+";
  position: absolute; right: 20px; top: 50%; translate: 0 -50%;
  font-size: 26px; line-height: 1; font-weight: 800; color: var(--honey);
}
.qa[open] summary::after { content: "−"; }
.qa summary:focus-visible { outline: 3px solid var(--sky); outline-offset: -3px;
                            border-radius: 18px; }
.qa__a { padding: 0 20px 18px; color: var(--ink-soft); line-height: 1.6; }
.qa__more { margin-top: 24px; font-size: 14px; color: var(--ink-faint); }
