/* ============================================================
   设计系统 · 变量
   ============================================================ */
/*
 * 参考方向：创客贴 / 秒哒的浅色装饰路线——冷调纸面打底，
 * 装饰层用低透明度的彩色光晕、点阵和漂浮徽标撑氛围。
 * 原则：正文永远是白纸黑字；彩色只出现在装饰层、图标、强调词和主按钮上，
 * 面积小、透明度低，热闹但不吵。
 */
:root {
  /* 冷调纸面。纯中性的纸白显得素，往蓝里偏一丝，彩色装饰层压上去才融得进 */
  --bg: #f5f7fe;
  --bg-elevated: #ffffff;
  --bg-subtle: #eef1fa;
  --bg-tint: #fafbff;
  --ink: #14161f;
  --ink-1: #383d4f;
  --ink-2: #5f6579;
  --ink-3: #8f95a9;
  --line: #e5e8f3;
  --line-strong: #d3d8e8;
  /*
   * 可交互控件的边界要单独一档，不能跟分隔线共用。
   * 分隔线那两档对白底不足 3:1，画分隔线够了，但输入框、按钮的边界
   * 按 WCAG 1.4.11 要至少 3:1，否则用户根本看不出那里是个能点的东西。
   * 这一档对 #fff 是 3.19:1。
   */
  --control-line: #8790a9;

  --brand: #4f46e5;
  --brand-600: #4338ca;
  --brand-700: #3730a3;
  --brand-soft: #edeefe;
  /* 辅助色：天青用于渐变收尾，紫罗兰和洋红只做装饰点缀，不进正文 */
  --accent: #0ea5e9;
  --accent-soft: #e7f6fe;
  --violet: #8b5cf6;
  --pink: #ec4899;
  --success: #0d9f6e;
  --warn: #b45309;
  --danger: #dc2626;

  /* 品牌渐变只用在小面积：主按钮、步骤编号、强调词、logo 方块 */
  --grad-brand: linear-gradient(120deg, #4f46e5 0%, #7c5ced 52%, #0ea5e9 120%);

  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-sm: 0 1px 2px rgba(23, 26, 46, 0.05);
  --shadow: 0 2px 10px rgba(23, 26, 46, 0.06);
  --shadow-lg: 0 16px 40px rgba(23, 26, 46, 0.1);
  --shadow-brand: 0 6px 16px -6px rgba(79, 70, 229, 0.5);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --maxw: 1120px;
  --gap: 24px;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'JetBrains Mono', Menlo, Consolas,
    monospace;
}

/* ============================================================
   基础重置
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.1rem);
  line-height: 1.14;
}
h2 {
  font-size: clamp(1.4rem, 1.14rem + 1.1vw, 2rem);
}
h3 {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--brand-600);
}

img {
  max-width: 100%;
  display: block;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.35em;
}
li {
  margin-bottom: 0.4em;
}

button {
  font: inherit;
  cursor: pointer;
}

textarea,
input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection {
  background: rgba(79, 70, 229, 0.16);
}

/* ============================================================
   页面色调
   每个栏目一个色，内页页头装饰、工作台顶条、图标瓦片都跟它走。
   按路径后缀匹配，中英文路由（/audio 与 /en/audio）共用一条规则；
   没列出的页面（关于、法务、平台落地页）落回默认的品牌靛蓝。
   ============================================================ */
body[data-page$='/audio'] {
  --page-hue: var(--violet);
}

body[data-page$='/gif'] {
  --page-hue: var(--pink);
}

body[data-page$='/cover'] {
  --page-hue: var(--accent);
}

body[data-page$='/guide'],
body[data-page*='/guide/'] {
  --page-hue: var(--success);
}

body[data-page$='/faq'] {
  --page-hue: #d97706;
}

/* ============================================================
   布局
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  position: relative;
  padding: clamp(52px, 6vw, 92px) 0;
}

.section--tight {
  padding: clamp(38px, 4.5vw, 64px) 0;
}

/* 白面区块的四角压一点极淡的彩晕，白得不那么生 */
.section--surface {
  background:
    radial-gradient(640px 320px at 0% 0%, rgba(79, 70, 229, 0.05), transparent 68%),
    radial-gradient(640px 320px at 100% 100%, rgba(14, 165, 233, 0.05), transparent 68%),
    var(--bg-elevated);
  border-block: 1px solid var(--line);
}

.section--process {
  overflow: hidden;
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(32px, 4vw, 54px);
  text-align: center;
}

.section-head p {
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 1.03rem;
  line-height: 1.8;
}

.section-head--left {
  max-width: none;
  margin: 48px 0 18px;
  text-align: left;
}

.section-head--left:first-child {
  margin-top: 0;
}

/* 左对齐的组标题挂一根色条，长页面里扫一眼就能看清分组 */
.section-head--left h2 {
  position: relative;
  padding-left: 16px;
}

.section-head--left h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.16em;
  bottom: 0.16em;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    var(--page-hue, var(--brand)),
    color-mix(in srgb, var(--page-hue, var(--brand)) 40%, var(--accent))
  );
}

/* 技术小标：保留等宽全大写的骨架，套一层淡彩胶囊，让每个区块开头都有一点颜色 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  border: 1px solid color-mix(in srgb, var(--brand) 18%, #fff);
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-600);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad-brand);
}

.content-narrow {
  max-width: 820px;
  margin-inline: auto;
}

.faq-more {
  margin-top: 26px;
}

.stack > * + * {
  margin-top: 16px;
}

/* ============================================================
   顶栏
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-color: var(--line-strong);
  box-shadow: 0 1px 0 rgba(23, 26, 46, 0.03);
}

.site-header__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
  transition: height 0.3s var(--ease-out);
}

.site-header.is-scrolled .site-header__inner {
  height: 58px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand:hover {
  color: var(--ink);
}

.brand__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  background: var(--grad-brand);
  color: #fff;
  /* 顶边一道内高光，瓦片才有厚度，不然只是一块色卡 */
  box-shadow:
    0 4px 10px -4px rgba(79, 70, 229, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s ease;
}

/* 图形铺满瓦片，水滴自身的留白已经写进 viewBox 里了 */
.brand__mark svg {
  width: 100%;
  height: 100%;
}

/* 鼠标扫过整个品牌区时瓦片轻轻抬一下，暗示它是回首页的入口 */
.brand:hover .brand__mark,
.footer-brand:hover .brand__mark {
  transform: translateY(-1px) scale(1.04);
  box-shadow:
    0 8px 18px -6px rgba(79, 70, 229, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.brand__name {
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a {
  position: relative;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav a:hover {
  background: var(--bg-subtle);
  color: var(--ink);
}

.nav a.is-active {
  color: var(--ink);
  font-weight: 600;
}

/* 当前页用下划线短横标注，比换底色安静 */
.nav a.is-active::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 1px;
  height: 2px;
  background: var(--brand);
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--ink);
  align-items: center;
  justify-content: center;
}

@media (max-width: 860px) {
  .nav {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 16px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 0.2s ease,
      transform 0.24s var(--ease-out),
      visibility 0.2s;
  }
  .nav a.is-active::after {
    display: none;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .site-header.is-scrolled .nav {
    top: 58px;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

/* ============================================================
   Hero
   ============================================================ */
/*
 * 浅色装饰首屏：居中单栏、正文紧跟工具框的骨架不变，
 * 但纸面上叠三层轻装饰——彩色光晕、渐隐点阵、漂浮的平台徽标。
 * 全部 pointer-events:none、aria-hidden，纯氛围，不碰内容和交互。
 */
.hero {
  position: relative;
  /* 装饰层和漂浮徽标一律就地剪掉，不许把页面撑出横向滚动条 */
  overflow: clip;
  /* 自成层叠上下文：装饰层全用负 z-index 压在文字底下，又不会掉到自身背景之后 */
  isolation: isolate;
  background: var(--bg);
  padding: clamp(52px, 6.5vw, 88px) 0 clamp(16px, 2vw, 28px);
}

/*
 * 光晕用低透明度径向渐变直接画，不用 blur 滤镜——
 * 渐变天然向四周衰减，效果一样，还省掉大面积模糊的合成开销。
 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(640px 380px at 10% -10%, rgba(79, 70, 229, 0.16), transparent 64%),
    radial-gradient(620px 360px at 90% -8%, rgba(14, 165, 233, 0.15), transparent 66%),
    radial-gradient(460px 280px at 32% 112%, rgba(139, 92, 246, 0.07), transparent 70%);
}

/* 点阵向下渐隐：上半屏有质感，正文区域还回干净的纸面 */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: radial-gradient(rgba(79, 70, 229, 0.22) 1px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 76%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 76%);
}

/* 平台落地页的首晕改用自家品牌色，页面之间有区分度 */
.hero--platform::before {
  background:
    radial-gradient(640px 380px at 10% -10%, color-mix(in srgb, var(--pf) 15%, transparent), transparent 64%),
    radial-gradient(620px 360px at 90% -8%, rgba(79, 70, 229, 0.1), transparent 66%);
}

/* ---- 漂浮平台徽标：参考创客贴首页环绕搜索框的悬浮元素 ---- */
.hero__fx {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /*
   * 正文那栏固定 800px 宽居中，两边剩下的就是装饰能用的地方。
   * 各枚徽标一律按这条空当的比例摆位，不用视口百分比——视口百分比是等比缩放的，
   * 而空当是「视口减去固定的 800」，窄下来时缩得快得多，按视口摆的徽标
   * 会一路挤到文字底下去。用 100% 而不是 100vw：这一层的宽度就是版心可用宽度，
   * 不含滚动条。
   */
  --gutter: calc((100% - 800px) / 2);
}

/*
 * 徽标的动画分三层，各自动不同的属性，互不覆盖：
 *   进场 chip-pop  → scale/opacity（一次性，带回弹）
 *   游走 chip-roam → translate（几十秒一圈的闭合路径，无限循环）
 *   摇摆 chip-sway → rotate（无限往复，叠加在 transform 的固定倾角上）
 * 用 translate/rotate/scale 这些独立变换属性而不是都挤进 transform，
 * 三条动画才能同时跑；prefers-reduced-motion 下由页尾的总闸一并关停。
 */
.hero__chip {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  /* 流光从表面扫过时不能溢出圆角 */
  overflow: hidden;
  background: var(--pf, var(--brand));
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  box-shadow:
    0 12px 24px -10px color-mix(in srgb, var(--pf, var(--brand)) 60%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: rotate(var(--tilt, 0deg));
  animation:
    chip-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) var(--pop-delay, 0s) backwards,
    chip-roam var(--roam-dur, 30s) ease-in-out var(--roam-delay, 0s) infinite,
    chip-sway calc(var(--sway, 7s) * 1.4) ease-in-out calc(var(--sway-delay, 0s) - 1.3s) infinite alternate;
}

/* 周期性扫过的流光，像光从 App 图标表面掠过 */
.hero__chip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  transform: translateX(-140%);
  animation: chip-shine 7.2s ease-in-out var(--shine-delay, 0s) infinite;
}

/*
 * --dir 决定游走方向：左列 1、右列 -1。两边都只朝各自那一侧的外面走，
 * 中间那栏文字周围的空隙因此始终不变——窄屏上左右只剩几十像素，
 * 只要允许一点点往里飘，标题就会被压到。
 * 游走周期几十秒且两两不同，配上负延迟错开相位，六枚不会同步摆动。
 */
.hero__chip--1 { left: calc(var(--gutter) * 0.27); top: 15%; --tilt: -9deg; --sway: 6.8s; --pop-delay: 0.05s; --shine-delay: 0.9s; --dir: 1; --roam-dur: 26s; }
.hero__chip--2 { right: calc(var(--gutter) * 0.25); top: 13%; --tilt: 8deg; --sway: 7.7s; --sway-delay: -2.1s; --pop-delay: 0.13s; --shine-delay: 3.1s; --dir: -1; --roam-dur: 31s; --roam-delay: -7s; }
.hero__chip--3 { left: calc(var(--gutter) * 0.585); top: 56%; --tilt: 7deg; --sway: 8.4s; --sway-delay: -3.6s; --pop-delay: 0.21s; --shine-delay: 1.9s; --dir: 1; --roam-dur: 34s; --roam-delay: -13s; }
.hero__chip--4 { right: calc(var(--gutter) * 0.585); top: 54%; --tilt: -7deg; --sway: 7.2s; --sway-delay: -1.4s; --pop-delay: 0.29s; --shine-delay: 4.4s; --dir: -1; --roam-dur: 29s; --roam-delay: -19s; }
.hero__chip--5 { left: calc(var(--gutter) * 0.157); top: 86%; --tilt: 6deg; --sway: 8.9s; --sway-delay: -4.8s; --pop-delay: 0.37s; --shine-delay: 5.6s; --dir: 1; --roam-dur: 40s; --roam-delay: -5s; }
.hero__chip--6 { right: calc(var(--gutter) * 0.135); top: 84%; --tilt: -6deg; --sway: 7.9s; --sway-delay: -0.7s; --pop-delay: 0.45s; --shine-delay: 2.5s; --dir: -1; --roam-dur: 36s; --roam-delay: -24s; }

/* 第二排起小一号，近大远小才有纵深；--roam 跟着收，远的东西看着就该动得少 */
.hero__chip--3,
.hero__chip--4 {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 0.9rem;
  --roam: 0.78;
}

.hero__chip--5,
.hero__chip--6 {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 0.78rem;
  opacity: 0.88;
  --roam: 0.58;
}

/* 进场：从小弹出来。只写 from，终态用元素自己的计算值（含 --5/--6 的半透明） */
@keyframes chip-pop {
  from {
    scale: 0.2;
    opacity: 0;
  }
}

/*
 * 游走路径：一条回到原点的闭合折线，横向分量一律乘 --dir 推向外侧。
 * 原点是离正文最近的一处，路径上其余各点都比它更远，所以无论走到哪一帧
 * 都不会比静止时更挤。--roam 是振幅倍数，越小的徽标走得越少。
 */
@keyframes chip-roam {
  0% {
    translate: 0 0;
  }
  20% {
    translate: calc(-13px * var(--roam, 1) * var(--dir, 1)) calc(-21px * var(--roam, 1));
  }
  42% {
    translate: calc(-31px * var(--roam, 1) * var(--dir, 1)) calc(-3px * var(--roam, 1));
  }
  63% {
    translate: calc(-22px * var(--roam, 1) * var(--dir, 1)) calc(19px * var(--roam, 1));
  }
  82% {
    translate: calc(-7px * var(--roam, 1) * var(--dir, 1)) calc(26px * var(--roam, 1));
  }
  100% {
    translate: 0 0;
  }
}

@keyframes chip-sway {
  from {
    rotate: -4deg;
  }
  to {
    rotate: 4deg;
  }
}

@keyframes chip-shine {
  0%,
  76% {
    transform: translateX(-140%);
  }
  92%,
  100% {
    transform: translateX(140%);
  }
}

/*
 * 中屏以下两侧留白不够，整层收起。
 * 阈值比正文那 800px 宽出一大截：徽标会游走、还带倾角，旋转后的外接框
 * 比本身宽好几像素，留白只够静止摆放是不行的。
 */
@media (max-width: 1119px) {
  .hero__fx {
    display: none;
  }
}

.hero__inner {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero__copy {
  max-width: none;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px 13px 6px 11px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand) 20%, #fff);
  background: rgba(255, 255, 255, 0.85);
  color: var(--brand-600);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px -8px rgba(79, 70, 229, 0.45);
}

.hero__pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(13, 159, 110, 0.5);
  animation: pill-ping 2.6s ease-out infinite;
}

@keyframes pill-ping {
  70%,
  100% {
    box-shadow: 0 0 0 6px rgba(13, 159, 110, 0);
  }
}

.hero h1 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 1.35rem + 3vw, 3.7rem);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero__line {
  display: block;
  overflow: hidden;
}

/* 强调词上品牌渐变，和主按钮、logo 同一条色带 */
.hero__grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  margin: 0 auto;
  max-width: 640px;
  color: var(--ink-2);
  font-size: clamp(0.98rem, 0.94rem + 0.25vw, 1.08rem);
  line-height: 1.85;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.hero--single .hero__copy {
  max-width: 720px;
  margin-inline: auto;
}

.hero__pill-mark {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--pf, var(--brand));
  color: #fff;
}

.hero__pill-mark .pf-icon {
  width: 12px;
  height: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  color: var(--ink-1);
  font-size: 0.82rem;
  box-shadow: var(--shadow-sm);
}

.badge__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
}

/* 首屏那排卖点的圆点各给一个色，像一排小指示灯 */
.hero__badges .badge:nth-child(4n + 2) .badge__dot {
  background: var(--accent);
}

.hero__badges .badge:nth-child(4n + 3) .badge__dot {
  background: var(--violet);
}

.hero__badges .badge:nth-child(4n + 4) .badge__dot {
  background: var(--pink);
}

/* ============================================================
   解析工具卡片
   ============================================================ */
.tool {
  position: relative;
  z-index: 2;
  padding-top: 0;
  padding-bottom: clamp(28px, 3.5vw, 44px);
}

/* 卡片背后垫一团柔光，让它看起来是「浮」在纸面上，不是「印」在纸面上 */
.tool::before {
  content: '';
  position: absolute;
  inset: -40px 0 0;
  pointer-events: none;
  background:
    radial-gradient(720px 300px at 50% 8%, rgba(139, 92, 246, 0.1), transparent 68%),
    radial-gradient(560px 260px at 12% 40%, rgba(14, 165, 233, 0.07), transparent 70%);
}

/*
 * 卡片是整页的视觉焦点：一圈品牌渐变描边 + 带品牌色的投影。
 * 双层背景的写法——padding-box 铺白底，border-box 铺渐变，
 * 透明边框处便只露出渐变，比 border-image 圆角处理干净。
 */
.tool__card {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-elevated), var(--bg-elevated)) padding-box,
    linear-gradient(135deg, rgba(79, 70, 229, 0.55), rgba(139, 92, 246, 0.45) 46%, rgba(14, 165, 233, 0.5)) border-box;
  border-radius: var(--radius-xl);
  box-shadow: 0 18px 44px -18px rgba(79, 70, 229, 0.3), var(--shadow);
  padding: clamp(20px, 2.6vw, 30px);
  transition: max-width 0.45s var(--ease-out);
}

/*
 * 图集结果的加宽态（site.js 在图集 ≥3 张时挂上）：
 * 卡片撑到容器宽，图集一行能排四张，十几张图不至于拖成长卷。
 * 输入框那 800px 的阅读宽度只在展示图集时才让位。
 */
.tool__card--wide {
  max-width: var(--maxw);
}

.tool__heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}

.tool__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 5px 12px -5px rgba(79, 70, 229, 0.6);
}

.tool__mark svg {
  width: 18px;
  height: 18px;
}

.tool__label {
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem);
}

.tool__label strong {
  color: var(--ink);
  font-size: 1.02rem;
}

.tool__hint {
  color: var(--ink-3);
  font-size: 0.84rem;
}

.tool__field {
  position: relative;
}

.tool textarea {
  width: 100%;
  /* 占位符在中等宽度会折成 3 行，116px 只差 1px 就裁字，留一点余量 */
  min-height: 124px;
  padding: 14px 16px;
  /*
   * 必须是整像素。1.5px 在 DPR=1 下会被摊到两个物理像素上做混合，
   * 渲染结果达不到描边色本身的对比度。
   */
  border: 2px solid var(--control-line);
  border-radius: var(--radius-lg);
  background: var(--bg-tint);
  resize: vertical;
  line-height: 1.65;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.tool textarea:hover:not(:focus) {
  border-color: var(--ink-2);
}

/* 这里的占位符写的是示例格式，属于要读的内容，不能按纯装饰的浅灰处理 */
.tool textarea::placeholder {
  color: var(--ink-2);
}

.tool textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.tool__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.tool__actions .btn-primary {
  flex: 1 1 220px;
}

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

/* 主按钮：品牌渐变 + 带色投影，悬停整体加深 */
.btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #6157e9 48%, #0ea5e9 138%);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover {
  color: #fff;
  background: linear-gradient(135deg, #4338ca 0%, #5348d8 48%, #0c93cf 138%);
  box-shadow: 0 10px 22px -8px rgba(79, 70, 229, 0.55);
}
.btn-primary[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-ghost {
  background: var(--bg-elevated);
  border-color: var(--control-line);
  color: var(--ink-1);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand-600);
  background: var(--brand-soft);
}
/* 下载/提取进行中会把同组按钮一起禁掉。:hover 对 disabled 元素照样生效，得一并压住，
   否则鼠标扫过去还会亮起来，看着像能点 */
.btn-ghost[disabled],
.btn-ghost[disabled]:hover {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--bg-elevated);
  border-color: var(--control-line);
  color: var(--ink-1);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.87rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

/* ============================================================
   解析结果
   ============================================================ */
.result {
  margin-top: 22px;
  padding: clamp(16px, 2.2vw, 24px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-tint);
}

.result__head {
  display: flex;
  gap: 18px;
  align-items: center;
}

.result__cover {
  flex: none;
  width: 128px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg-subtle);
  border: 1px solid var(--line-strong);
}

.result__meta {
  min-width: 0;
  flex: 1;
}

.result__title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.result__author {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.9rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-600);
  font-size: 0.78rem;
  font-weight: 600;
}

.result__downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.result__hint {
  margin: 12px 0 0;
  color: var(--ink-3);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* ---- 清晰度选择 ---- */
.quality {
  margin-top: 14px;
}

.quality__label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-3);
  font-size: 0.82rem;
}

/* 档位常有三四个，按可用宽度自己折行。列宽给上限而不是 1fr：结果区在宽屏上有一千多像素，
   摊成 1fr 会把每一对拉得老长，文字缩在正中间，反而不好扫 */
.quality__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 250px));
  gap: 8px;
}

.quality__row {
  display: flex;
  gap: 6px;
}

/* 下载占满剩下的宽度，复制只要放得下自己就行——两者的分量本来就不一样 */
.quality__get {
  flex: 1 1 auto;
  gap: 6px;
}

.quality__copy {
  flex: 0 0 auto;
}

/* 体积压一号字、淡一档：挑档位时先看清晰度，体积是第二眼的信息 */
.quality__size {
  color: var(--ink-3);
  font-size: 0.76rem;
  font-style: normal;
}

.result__player {
  /* codec-note 要压在画面上，得有个定位参照 */
  position: relative;
  margin-top: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line-strong);
}

.result__player video {
  display: block;
  width: 100%;
  max-height: 460px;
  background: #000;
}

/* 预览流被 CDN 拒绝时顶上来的那块占位，尺寸和播放器一致，不会让页面跳动 */
.result__blocked {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 28px 22px;
  text-align: center;
  overflow: hidden;
}

/* 封面压暗当背景，保留「这是个视频」的上下文 */
.result__blocked-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) brightness(0.4);
  transform: scale(1.1);
}

.result__blocked-body {
  position: relative;
  max-width: 420px;
  color: #e8ebf6;
}

.result__blocked-title {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 1rem;
}

.result__blocked-text {
  margin: 0 0 16px;
  color: #b6bdd0;
  font-size: 0.86rem;
  line-height: 1.65;
}

/*
 * 播放器上的编码提示条：浏览器解不出 HEVC 画面（黑屏只有声音）时压在画面顶部说明原因。
 * 结果区播放器和抽帧工作台共用；贴顶不贴底——底部是原生控制条的位置；
 * pointer-events 放行，别挡住播放控制。
 */
.codec-note {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 2;
  margin: 0;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(11, 16, 32, 0.78);
  color: #dce1f0;
  font-size: 0.78rem;
  line-height: 1.55;
  text-align: center;
  pointer-events: none;
}

/* 下载按钮那排下面的编码说明，比正文用 hint 再收一点，跟按钮离得近 */
.result__hint--codec {
  margin-top: 8px;
  font-size: 0.78rem;
}

/* ---- 页内抽帧工具条 ---- */
.frame {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-subtle);
}

.frame__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.frame__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  /* 时间码逐帧跳动，等宽数字才不会让整行左右抖 */
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
}

.frame__sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink-3);
}

/* 主操作推到最右，和左边的步进按钮分开 */
.frame__save {
  margin-left: auto;
}

.frame__note {
  margin: 10px 0 0;
  color: var(--success);
  font-size: 0.82rem;
}

.frame__note--bad {
  color: var(--danger);
}

.frame__more {
  margin: 10px 0 0;
  color: var(--ink-3);
  font-size: 0.82rem;
}

/* 下载进度。几十分钟的视频要下上百 MB，没有这条会以为按钮点了没反应 */
.frame__bar {
  display: block;
  margin-top: 10px;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

.frame__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width 0.2s ease;
}

/* 页内提取不了时的兜底两行。挨着那句说明放，省得人再去别处找入口 */
.frame__rescue {
  margin-top: 10px;
}

.frame__rescue .frame__meta {
  flex: 1 1 auto;
}

/* 抽帧和音频两组操作之间拉一条虚线，免得挤成一堆分不出是两回事 */
.frame__row--split {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
}

.frame__row--split .frame__meta {
  margin-right: auto;
}

@media (max-width: 560px) {
  .frame__save {
    margin-left: 0;
    width: 100%;
  }
}

.gallery {
  margin-top: 18px;
}

.gallery__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.gallery__note {
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
}
.gallery__note--bad {
  color: var(--danger);
}

/*
 * 瀑布流：CSS 多列实现，每张按原生高度沿列往下码，行与行不再互相等高，
 * 比例不一的图也不会在旁边空出一块。列基准 224px 和旧网格一致：
 * 默认卡宽两列，加宽态四列。视觉顺序沿列走，但打包下载和灯箱翻页
 * 仍严格按发布顺序，两边互不影响。
 * 瓦片要大到能看出这张图值不值得下——128px 的方块什么也判断不了。
 */
.gallery__grid {
  columns: 4 224px;
  column-gap: 16px;
}

.gallery__item {
  position: relative;
  margin: 0 0 16px;
  /* 多列布局会把跨列的块从中间劈开，图片卡必须整块落进某一列 */
  break-inside: avoid;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gallery__item:hover {
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line-strong));
  box-shadow: 0 10px 24px -10px rgba(79, 70, 229, 0.3);
}

/*
 * --shot 是脚本按已加载图片算出的中位比例，只当加载占位用：
 * 图片一加载完，脚本会把瓦片改成这张图自己的原生宽高比（内联 aspect-ratio），
 * 原图什么形状就显示什么形状，不为了拉齐把异形图框出灰边。
 * 一张都没加载出来时按 4:3 占位；加载失败的瓦片也停留在占位形状上。
 */
.gallery__view {
  display: block;
  position: relative;
  aspect-ratio: var(--shot, 4 / 3);
  overflow: hidden;
  background: var(--bg-subtle);
}

.gallery__view img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.gallery__item:hover .gallery__view img {
  transform: scale(1.04);
}

.gallery__gone {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 12px;
  text-align: center;
  color: var(--ink-3);
  font-size: 0.82rem;
}

/*
 * 功能条压在图片底部：平时全隐藏，悬停或键盘聚焦到瓦片里才浮出，
 * 触屏没有悬停、由下面的 (hover: none) 分支改为常显。
 * 隐藏态关掉 pointer-events，免得看不见的按钮挡住「点图开灯箱」。
 */
.gallery__bar {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 30px 10px 10px;
  background: linear-gradient(to top, rgba(12, 16, 32, 0.68), rgba(12, 16, 32, 0.3) 58%, transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.16s ease, transform 0.22s var(--ease-out);
  pointer-events: none;
}

.gallery__item:hover .gallery__bar,
.gallery__item:focus-within .gallery__bar {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

@media (hover: none) {
  .gallery__bar {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

.gallery__dim {
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 3px rgba(8, 10, 24, 0.5);
  /* 分辨率一列列排下来，等宽数字才不会左右抖 */
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery__save {
  flex: none;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-600);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background 0.16s ease,
    color 0.16s ease;
}
.gallery__save:hover {
  background: var(--brand);
  color: #fff;
}

@media (max-width: 560px) {
  /* 竖图两列刚好：看得清，也不用一直划 */
  .gallery__grid {
    columns: 2;
    column-gap: 10px;
  }

  .gallery__item {
    margin-bottom: 10px;
  }

  /* 窄瓦片的浮层放不下两样东西，分辨率让位给「保存原图」 */
  .gallery__dim {
    display: none;
  }

  .gallery__bar {
    justify-content: center;
    padding: 22px 8px 8px;
  }
}

.alert {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding: 13px 16px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.6;
}

.alert--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #a32020;
}

.alert--info {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #4338ca;
}

.alert--warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

/* ============================================================
   抽帧工作台
   ============================================================ */

/* ---- 选择视频 ---- */
.dropzone {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: clamp(28px, 5vw, 46px) 22px;
  border: 2px dashed var(--control-line);
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dropzone.is-over {
  border-color: var(--page-hue, var(--brand));
  background: color-mix(in srgb, var(--page-hue, var(--brand)) 7%, #fff);
}

/* 拖动过程中指针会掠过内部元素，子元素接管事件的话 dragleave 会疯狂误触发 */
.dropzone > * {
  pointer-events: none;
}

.dropzone .btn {
  pointer-events: auto;
}

.dropzone__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--page-hue, var(--brand)) 9%, #fff);
  border: 1px solid color-mix(in srgb, var(--page-hue, var(--brand)) 22%, #fff);
  color: var(--page-hue, var(--brand));
}

.dropzone__icon .app-icon {
  width: 26px;
  height: 26px;
}

.dropzone__title {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.dropzone__text {
  max-width: 460px;
  margin: 0 0 16px;
  color: var(--ink-2);
  font-size: 0.88rem;
}

.studio__url {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.studio__url input {
  flex: 1 1 280px;
  min-width: 0;
  padding: 12px 16px;
  border: 2px solid var(--control-line);
  border-radius: var(--radius);
  background: var(--bg-subtle);
  box-shadow: inset 0 1px 3px rgba(15, 21, 38, 0.07);
}

.studio__url input:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
}

.studio__tip {
  margin: 14px 0 0;
  color: var(--ink-3);
  font-size: 0.82rem;
  line-height: 1.7;
}

/* ---- 已载入 ---- */
.studio__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.studio__name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 600;
}

.studio__bar .chip {
  margin-top: 0;
  flex: none;
}

.studio__stage {
  /* codec-note 要压在画面上，得有个定位参照 */
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
}

.studio__stage video {
  display: block;
  width: 100%;
  max-height: 62vh;
  background: #000;
}

.studio__broken {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 220px;
  padding: 28px 22px;
  text-align: center;
  color: #e8ebf6;
}

.studio__broken-title {
  margin: 0;
  font-weight: 600;
}

.studio__broken-text {
  max-width: 420px;
  margin: 0 0 8px;
  color: #b6bdd0;
  font-size: 0.86rem;
}

/* ---- 时间轴 ---- */
.studio__timeline {
  margin-top: 14px;
}

.studio__scrub {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.studio__scrub::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: var(--line-strong);
}

.studio__scrub::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  /* (轨道 8 - 滑块 20) / 2，让滑块压在轨道中线上 */
  margin-top: -6px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--brand);
  box-shadow: 0 2px 6px rgba(15, 21, 38, 0.28);
}

.studio__scrub::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: var(--line-strong);
}

.studio__scrub::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--brand);
  box-shadow: 0 2px 6px rgba(15, 21, 38, 0.28);
}

.studio__scrub:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.studio__readout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--ink-2);
  /* 时间和帧号一直在跳，等宽数字才不会让整行左右抖 */
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
}

.studio__clock {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
}

.studio__dim {
  color: var(--ink-3);
}

/* ---- 控制行 ---- */
.studio__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.studio__seg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.studio__jump {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--ink-2);
  font-size: 0.86rem;
}

.studio__jump input {
  width: 116px;
  padding: 8px 12px;
  border: 1px solid var(--control-line);
  border-radius: 10px;
  background: #fff;
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
}

.studio__panel {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-subtle);
}

.studio__panel .studio__row:first-child {
  margin-top: 0;
}

.studio__field {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 0.86rem;
}

.studio__field select {
  padding: 8px 12px;
  border: 1px solid var(--control-line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-1);
  font-size: 0.88rem;
}

.studio__field input[type='number'] {
  /* 「整段」会把秒数原样填进来，一小时的片子是 3661.238 这样八位，78px 放不下 */
  width: 96px;
  padding: 8px 10px;
  border: 1px solid var(--control-line);
  border-radius: 10px;
  background: #fff;
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
}

.studio__field input[type='text'] {
  /* 放得下 01:05.200 这样的完整时间码 */
  width: 104px;
  padding: 8px 10px;
  border: 1px solid var(--control-line);
  border-radius: 10px;
  background: #fff;
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
}

.studio__plan {
  margin: 10px 0 0;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
}

.studio__plan--bad {
  color: var(--danger);
}

.studio__field input[type='range'] {
  width: 130px;
  accent-color: var(--brand);
}

.studio__inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.studio__row--actions {
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
}

.studio__progress {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  font-size: 0.84rem;
}

/* ---- 待存列表 ---- */
.shots {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
}

.shots__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.shots__head strong {
  color: var(--ink);
}

.shots__ops {
  display: flex;
  gap: 8px;
}

.shots__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.shots__item {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-subtle);
}

.shots__peek {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.shots__item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
}

/* 平时不占视线，鼠标移上去才提示这张能点开 */
.shots__zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: rgba(15, 23, 42, 0.42);
  color: #fff;
  transition: opacity 0.15s ease;
}

.shots__zoom .app-icon {
  width: 26px;
  height: 26px;
}

.shots__peek:hover .shots__zoom,
.shots__peek:focus-visible .shots__zoom {
  opacity: 1;
}

.shots__item figcaption {
  padding: 7px 10px 0;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  text-align: center;
}

.shots__item-ops {
  display: flex;
  padding: 6px;
  gap: 4px;
}

.shots__item-ops button {
  flex: 1;
  padding: 5px 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-2);
  font-size: 0.76rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.shots__item-ops button:hover {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--brand-600);
}

/* ── 放大预览 ── */
.is-locked {
  overflow: hidden;
}

/*
 * 铺满整屏，不套白面板。
 *
 * 之前是一块定宽 1080 的白卡片，图在里面居中。横屏素材还行，竖屏就废了：
 * 720×1280 的一帧受高度限制只能显示到 412 宽，两边各留 334px 黑边，图只占面板 38%。
 * 抖音快手抽出来的基本都是竖的，这是主场景不是边角。
 * 现在图直接贴着屏幕排，多出来的地方就是背景本身，横竖都不留空当。
 */
.peek {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  /* 压得这么实是因为顶栏那行字正好压在站点导航上，背景透一点就糊成一片认不出来 */
  background: rgba(9, 13, 26, 0.95);
}

.peek__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  color: #fff;
}

.peek__bar strong {
  font-variant-numeric: tabular-nums;
}

.peek__bar span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.peek__x {
  margin-left: auto;
  display: flex;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.peek__x:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.42);
}

.peek__stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  /* flex 子项默认不肯小于内容，不写这条图会把底下那排按钮顶出屏幕 */
  min-height: 0;
  padding: 0 18px;
}

.peek__stage img {
  display: block;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

.peek__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 56px;
  border: 0;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.44);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  transition: background 0.15s ease;
}

.peek__nav:hover {
  background: rgba(15, 23, 42, 0.72);
}

.peek__nav--prev {
  left: 10px;
}

.peek__nav--next {
  right: 10px;
}

.peek__ops {
  display: flex;
  justify-content: center;
  padding: 14px 18px;
}

/* 按钮沿用亮色那套，所以给它们垫一块浅色托盘，别直接摆在深色背景上 */
.peek__tray {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
}

.peek__note {
  flex: 1 1 100%;
  text-align: center;
  color: var(--ink-2);
  font-size: 0.82rem;
}

.peek__note--bad {
  color: var(--danger);
}

@media (max-width: 560px) {
  .peek__bar,
  .peek__ops {
    padding: 10px 12px;
  }

  .peek__stage {
    padding: 0 8px;
  }
}

kbd {
  display: inline-block;
  min-width: 20px;
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #fff;
  color: var(--ink-1);
  font-family: inherit;
  font-size: 0.78rem;
  text-align: center;
}

@media (max-width: 720px) {
  .studio__jump {
    margin-left: 0;
    width: 100%;
  }

  .studio__jump input {
    flex: 1;
    width: auto;
  }

  .studio__seg {
    width: 100%;
  }

  .studio__seg .btn {
    flex: 1 1 auto;
  }

  .studio__row--actions .btn {
    flex: 1 1 132px;
  }
}

/* ============================================================
   音频工作台
   复用抽帧那套 studio__* 骨架，这里只补音频和文字稿特有的部分
   ============================================================ */
.audio__player {
  width: 100%;
  margin-top: 16px;
}

.audio__facts {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  font-size: 0.84rem;
}

/* 识别过程中先把已经认出来的半句显示出来，让人看得见它在动 */
.audio__partial {
  margin: 10px 0 0;
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.8;
}

.audio__out {
  margin-top: 16px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.audio__lines {
  max-height: 420px;
  margin: 12px 0 0;
  padding: 4px 0 0;
  overflow-y: auto;
  list-style: none;
}

.audio__lines li {
  display: flex;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  line-height: 1.75;
}

.audio__lines li:last-child {
  border-bottom: 0;
}

/* 时间戳等宽，几十行摞在一起时正文才会齐 */
.audio__at {
  flex: 0 0 auto;
  padding: 0;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  line-height: 1.75;
}

.audio__at:hover {
  text-decoration: underline;
}

.audio__plain {
  margin: 12px 0 0;
  white-space: pre-wrap;
  font-size: 0.92rem;
  line-height: 1.85;
}

/* ---- AI 校对 ---- */
.audio__ai {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: rgba(79, 70, 229, 0.03);
}

.audio__ai-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* 这一段是交给外部 AI 改的，标出来，别让人以为下面那些字是站里自动改好的 */
.audio__ai-tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-600);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.audio__ai-lead {
  margin-right: auto;
  color: var(--ink-2);
  font-size: 0.84rem;
}

.audio__ai-pick {
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 0.84rem;
}

.audio__ai-paste {
  margin-top: 10px;
}

.audio__ai-paste textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.7;
  resize: vertical;
}

.audio__ai-paste textarea:focus-visible {
  border-color: var(--brand);
  outline: none;
}

.audio__ai-ops {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* 改过的行标一下，不然一长串文字里看不出 AI 动了哪儿 */
.audio__lines li.is-fixed {
  margin-left: -10px;
  padding-left: 10px;
  border-left: 2px solid var(--brand);
  background: rgba(79, 70, 229, 0.045);
}

/* ============================================================
   平台宫格
   ============================================================ */
/* 桌面端一行三张。列数写死而不用 auto-fill：平台数不一定是列数的整数倍，
   最后一行落单的那张要能居中，靠 grid 的自动填充做不到，只能交给 flex。 */
.platforms {
  --pf-cols: 3;
  --pf-gap: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--pf-gap);
}

/* 基准宽和上限取同一个值，卡片就只会是这一个宽度：整行铺满，落单的那张也不会被拉长 */
.platforms > .platform-card {
  --pf-track: calc(
    (100% - (var(--pf-cols) - 1) * var(--pf-gap)) / var(--pf-cols)
  );
  flex: 1 1 var(--pf-track);
  max-width: var(--pf-track);
}

@media (max-width: 900px) {
  .platforms {
    --pf-cols: 2;
  }
}

@media (max-width: 560px) {
  .platforms {
    --pf-cols: 1;
  }
}

.platform-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 78px;
  padding: 15px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  transition: border-color 0.15s ease, box-shadow 0.18s ease, transform 0.18s var(--ease-out);
}

/* 悬停时借平台自己的品牌色描边打光，比统一的灰边有精神 */
.platform-card:hover {
  border-color: color-mix(in srgb, var(--pf) 45%, var(--line-strong));
  box-shadow: 0 12px 28px -12px color-mix(in srgb, var(--pf) 35%, rgba(23, 26, 46, 0.25));
  transform: translateY(-2px);
}

/* 平台色瓦片：淡底 + 同色描边，色彩来自平台本身 */
.platform-card__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  color: var(--pf);
  background: color-mix(in srgb, var(--pf) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--pf) 25%, #fff);
}

.pf-icon {
  width: 21px;
  height: 21px;
}

.platform-card__text {
  min-width: 0;
}

.platform-card__name {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.96rem;
}

.platform-card__tag {
  display: block;
  color: var(--ink-3);
  margin-top: 1px;
  font-size: 0.8rem;
  line-height: 1.5;
}

.platform-card__arrow {
  flex: none;
  width: 16px;
  height: 16px;
  margin-left: auto;
  opacity: 0;
  color: var(--ink-3);
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.platform-card:hover .platform-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   通用卡片 / 特性 / 步骤
   ============================================================ */
/* 6 张卡排 3 列，正好两行；4 列会变成 4+2，右下角空一块 */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  padding: 26px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s ease, box-shadow 0.18s ease, transform 0.18s var(--ease-out);
}

.card:hover {
  border-color: color-mix(in srgb, var(--card-hue, var(--brand)) 32%, var(--line-strong));
  box-shadow: 0 12px 28px -12px color-mix(in srgb, var(--card-hue, var(--brand)) 28%, rgba(23, 26, 46, 0.25));
  transform: translateY(-3px);
}

.card h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.92rem;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--card-hue, var(--brand)) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--card-hue, var(--brand)) 22%, #fff);
  color: var(--card-hue, var(--brand));
}

/* 特性卡的图标按位置轮一圈色相，一排看过去像调色盘，而不是六个一样的蓝块 */
.cards > .card:nth-child(6n + 1) { --card-hue: var(--brand); }
.cards > .card:nth-child(6n + 2) { --card-hue: var(--accent); }
.cards > .card:nth-child(6n + 3) { --card-hue: var(--violet); }
.cards > .card:nth-child(6n + 4) { --card-hue: var(--success); }
.cards > .card:nth-child(6n + 5) { --card-hue: #f59e0b; }
.cards > .card:nth-child(6n + 6) { --card-hue: var(--pink); }

.app-icon {
  width: 20px;
  height: 20px;
}

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  position: relative;
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .steps::before,
  .steps::after {
    content: '';
    position: absolute;
    left: 6%;
    right: 6%;
    top: 42px;
    height: 2px;
    pointer-events: none;
  }

  .steps::before {
    background: var(--line);
  }

  .steps::after {
    background: linear-gradient(90deg, var(--brand), var(--accent));
    transform: scaleX(var(--steps-progress, 0));
    transform-origin: left center;
  }

  .steps li {
    z-index: 1;
  }
}

.steps li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 24px 22px 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--ink-1);
  font-size: 0.94rem;
  transition: border-color 0.15s ease, box-shadow 0.18s ease, transform 0.18s var(--ease-out);
}

.steps li:hover {
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line-strong));
  box-shadow: 0 12px 26px -12px rgba(79, 70, 229, 0.3);
  transform: translateY(-3px);
}

/* 步骤编号：等宽字 + 品牌渐变方块，和进度线是同一条色带 */
.steps li::before {
  content: '0' counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  background: var(--grad-brand);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  box-shadow: 0 6px 14px -6px rgba(79, 70, 229, 0.55);
}

/* 使用说明末尾那条提醒，收窄居中，别跟着通栏一路拉长 */
.usage-note {
  max-width: 780px;
  margin: 18px auto 0;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

/* 展开的那条用品牌色描边标出来，一眼能找到自己刚点开的是哪条 */
.faq details[open] {
  border-color: color-mix(in srgb, var(--brand) 32%, var(--line-strong));
  box-shadow: 0 8px 22px -14px rgba(79, 70, 229, 0.35);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
  list-style: none;
  transition: background 0.15s ease;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  background: var(--bg-subtle);
}

.faq summary::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  content: '−';
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.faq__body {
  padding: 0 20px 18px;
  color: var(--ink-2);
  font-size: 0.93rem;
}

.faq__body p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   文章正文
   ============================================================ */
.prose {
  max-width: 800px;
  margin: 0 auto;
}

.prose--card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
}

/* 正文卡顶上一道页面色调的细条，跟工作台、首页工具卡同一套语言 */
.prose--card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(
    120deg,
    var(--page-hue, var(--brand)),
    color-mix(in srgb, var(--page-hue, var(--brand)) 40%, var(--accent))
  );
}

.prose h2 {
  position: relative;
  margin: 44px 0 14px;
  padding-top: 6px;
  padding-left: 16px;
}

.prose h2:first-child {
  margin-top: 0;
}

/* 和 FAQ 组标题同款的色条标记，长文里一眼扫得出小节 */
.prose h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: calc(0.16em + 6px);
  bottom: 0.16em;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    var(--page-hue, var(--brand)),
    color-mix(in srgb, var(--page-hue, var(--brand)) 40%, var(--accent))
  );
}

.prose p,
.prose li {
  color: var(--ink-1);
  line-height: 1.9;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin-bottom: 1.2em;
}

/* 内页页头：左对齐大标题 + 一根底线的骨架不变，角上补两团淡彩和渐隐点阵 */
.page-hero {
  position: relative;
  overflow: clip;
  isolation: isolate;
  padding: clamp(44px, 5.5vw, 72px) 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

/* 右晕跟页面色调走（装饰瓦片落在右侧），左晕固定品牌靛蓝压阵 */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(
      620px 340px at 96% -50%,
      color-mix(in srgb, var(--page-hue, var(--accent)) 15%, transparent),
      transparent 66%
    ),
    radial-gradient(640px 360px at 4% -60%, rgba(79, 70, 229, 0.13), transparent 66%);
}

/* 点阵只留在右侧留白处，别铺到左对齐的标题底下 */
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: radial-gradient(
    color-mix(in srgb, var(--page-hue, var(--brand)) 20%, transparent) 1px,
    transparent 1.4px
  );
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(105deg, transparent 55%, rgba(0, 0, 0, 0.85) 96%);
  mask-image: linear-gradient(105deg, transparent 55%, rgba(0, 0, 0, 0.85) 96%);
}

/* ---- 页头右侧的漂浮装饰：图标瓦片 + 圆环 + 圆点 ---- */
/* 装饰全在右侧留白里，游走方向统一朝右，不会往左边的标题上压 */
.page-fx {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  --dir: -1;
}

.page-fx__tile {
  position: absolute;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--page-hue, var(--brand)) 24%, #fff);
  color: var(--page-hue, var(--brand));
  box-shadow: 0 14px 28px -12px color-mix(in srgb, var(--page-hue, var(--brand)) 45%, transparent);
  transform: rotate(var(--tilt, 0deg));
  /* 和首页徽标同款：先弹出进场，再沿闭合路径慢慢游走 */
  animation:
    chip-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) var(--pop-delay, 0.1s) backwards,
    chip-roam var(--roam-dur, 30s) ease-in-out var(--roam-delay, 0s) infinite;
}

.page-fx__tile--1 {
  right: 11%;
  top: 22%;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  --tilt: 7deg;
  --pop-delay: 0.12s;
  --roam-dur: 28s;
}

.page-fx__tile--1 .app-icon {
  width: 28px;
  height: 28px;
}

.page-fx__tile--2 {
  right: 4.5%;
  top: 56%;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  --tilt: -8deg;
  --pop-delay: 0.24s;
  --roam: 0.8;
  --roam-dur: 33s;
  --roam-delay: -11s;
  opacity: 0.92;
}

.page-fx__tile--2 .app-icon {
  width: 21px;
  height: 21px;
}

.page-fx__ring {
  position: absolute;
  right: 17.5%;
  top: 64%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--page-hue, var(--brand)) 55%, #fff);
  --roam: 0.6;
  animation:
    chip-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.34s backwards,
    chip-roam 38s ease-in-out -20s infinite;
}

.page-fx__dot {
  position: absolute;
  right: 7%;
  top: 16%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--page-hue, var(--brand)) 70%, #fff);
  --roam: 0.5;
  animation:
    chip-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.42s backwards,
    chip-roam 42s ease-in-out -6s infinite;
}

/* 中屏以下右侧留白不够，装饰会压到标题，整层收起 */
@media (max-width: 1019px) {
  .page-fx {
    display: none;
  }
}

.page-hero--article .page-head {
  max-width: 860px;
}

.page-hero--studio {
  padding-bottom: clamp(44px, 5.5vw, 72px);
}

.page-head {
  position: relative;
  max-width: 820px;
  margin: 0;
  text-align: left;
}

.page-head h1 {
  max-width: 820px;
  text-wrap: balance;
}

.page-head__lead {
  max-width: 700px;
  margin: 14px 0 0;
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.85;
}

.page-hero .post-card__meta {
  color: var(--ink-3);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-3);
}

.breadcrumb a {
  color: var(--ink-2);
}

.breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb li {
  margin: 0;
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 8px;
  color: var(--line-strong);
}

/* ============================================================
   文章列表
   ============================================================ */
.post-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.post-card {
  position: relative;
  display: flex;
  min-height: 210px;
  flex-direction: column;
  padding: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s ease, box-shadow 0.18s ease, transform 0.18s var(--ease-out);
}

.post-card h2 {
  position: relative;
  max-width: 88%;
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.post-card h2 a {
  color: var(--ink);
}

.post-card h2 a:hover {
  color: var(--brand);
}

.post-card:hover {
  border-color: color-mix(in srgb, var(--card-hue, var(--brand)) 34%, var(--line-strong));
  box-shadow: 0 12px 28px -12px color-mix(in srgb, var(--card-hue, var(--brand)) 30%, rgba(23, 26, 46, 0.2));
  transform: translateY(-3px);
}

/* 教程卡也轮色相：编号瓦片和悬停光晕一张一个色 */
.post-list > .post-card:nth-child(4n + 1) { --card-hue: var(--brand); }
.post-list > .post-card:nth-child(4n + 2) { --card-hue: var(--accent); }
.post-list > .post-card:nth-child(4n + 3) { --card-hue: var(--violet); }
.post-list > .post-card:nth-child(4n + 4) { --card-hue: var(--success); }

/* 编号从灰色小字升级成淡彩瓦片，当卡片的视觉锚点 */
.post-card__index {
  position: absolute;
  right: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--card-hue, var(--brand)) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--card-hue, var(--brand)) 24%, #fff);
  color: color-mix(in srgb, var(--card-hue, var(--brand)) 78%, #1c2130);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.post-card h3 {
  margin-bottom: 8px;
}

.post-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.94rem;
}

.related-panel,
.closing-panel {
  margin-top: 40px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
}

.faq-groups > .faq + .section-head {
  margin-top: 52px;
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--ink-3);
  font-size: 0.83rem;
}

/* ============================================================
   广告位
   ============================================================ */
.ad {
  margin: clamp(28px, 4vw, 44px) auto;
  text-align: center;
}

.ad__label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-3);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.ad__slot {
  display: block;
  width: 100%;
  min-height: 90px;
}

/* ============================================================
   CTA 条
   ============================================================ */
/* 收尾的一记重音：靛蓝渐变底，两角压光晕，铺一层细点阵 */
.cta {
  position: relative;
  overflow: clip;
  padding: clamp(32px, 4vw, 48px);
  border-radius: var(--radius-xl);
  background-image:
    radial-gradient(560px 300px at 10% -40%, rgba(139, 92, 246, 0.55), transparent 66%),
    radial-gradient(520px 280px at 94% 130%, rgba(14, 165, 233, 0.5), transparent 66%),
    radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1.4px),
    linear-gradient(135deg, #3a30d2 0%, #4f46e5 55%, #4569e8 100%);
  background-size: auto, auto, 22px 22px, auto;
  color: #c9cffb;
  text-align: center;
  box-shadow: 0 20px 48px -20px rgba(67, 56, 202, 0.55);
}

.cta h2 {
  color: #fff;
  margin-bottom: 10px;
}

.cta p {
  max-width: 560px;
  margin: 0 auto 22px;
  color: #c9cffb;
}

.cta .btn-primary {
  background: #fff;
  color: var(--brand-600);
  box-shadow: 0 10px 24px -10px rgba(10, 14, 60, 0.6);
}

.cta .btn-primary:hover {
  background: #eef0ff;
  color: var(--brand-700);
}

.error-page {
  min-height: 62vh;
  display: grid;
  align-items: center;
}

.error-card h1 {
  color: #fff;
  font-family: var(--font-mono);
  font-size: clamp(3.4rem, 2rem + 6vw, 6.5rem);
  letter-spacing: -0.04em;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  margin-top: clamp(48px, 6vw, 80px);
  padding: clamp(40px, 5vw, 56px) 0 26px;
  /* 墨底顶部渗一点品牌色，和上方内容接得柔和些 */
  background:
    radial-gradient(720px 320px at 12% -30%, rgba(79, 70, 229, 0.22), transparent 68%),
    radial-gradient(640px 300px at 92% -36%, rgba(14, 165, 233, 0.14), transparent 68%),
    var(--ink);
  color: #9aa2bb;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer h4 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 0.94rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 700;
}

.footer-brand:hover {
  color: #fff;
}

.footer-brand .brand__mark {
  width: 30px;
  height: 30px;
}

.footer-contact {
  margin-top: 12px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 9px;
}

.site-footer a {
  color: #9aa2bb;
}

.site-footer a:hover {
  color: #fff;
}

.footer-about p {
  max-width: 320px;
  color: #828aa5;
  font-size: 0.89rem;
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #737b96;
  font-size: 0.84rem;
}

/* ============================================================
   杂项
   ============================================================ */
.disclaimer-note {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.88rem;
  line-height: 1.65;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* 白色那版只在主按钮上看得见，浅底上要换成墨色 */
.spinner--ink {
  border-color: rgba(15, 21, 38, 0.18);
  border-top-color: var(--brand);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.related-links a {
  padding: 7px 14px;
  border: 1px solid var(--control-line);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--ink-1);
  font-size: 0.88rem;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.related-links a:hover {
  border-color: var(--ink);
  background: var(--bg-elevated);
  color: var(--ink);
}

@media (max-width: 560px) {
  /* 窄屏首屏空间紧张，这句提示挤成两行反而更乱，占位符里已经说明了怎么粘 */
  .tool__hint {
    display: none;
  }

  /* 390px 下占位符要折成 4 行、实测需要 142px，不给够就会从中间裁断 */
  .tool textarea {
    min-height: 152px;
  }

  .result__head {
    flex-direction: column;
  }
  .result__cover {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  .tool__actions .btn {
    width: 100%;
  }
}

/* ============================================================
   滚动进场
   用 CSS 滚动驱动动画，不需要 JS，也就没有 IntersectionObserver 的水合成本。
   初始隐藏状态写在 @supports 里：不支持的浏览器整块规则不生效，
   内容直接正常显示，绝不会出现「永远 opacity:0」的空白页。
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 4% cover 24%;
    }
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    /* 进场动画带 backwards 延迟，不清零的话装饰会先隐身半秒再闪现 */
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  /*
   * 装饰层要整个停在静止位，得显式关掉。
   * 光把上面那条时长压到 0.01ms 是不够的：这些都是 infinite 循环，
   * 零时长的循环每一瞬的进度都是随机的，徽标会歪在游走路径中间某处不动。
   */
  .hero__chip,
  .hero__chip::after,
  .page-fx__tile,
  .page-fx__ring,
  .page-fx__dot {
    animation: none !important;
    translate: none !important;
    rotate: none !important;
    scale: none !important;
  }
}
