/* ==========================================================================
   EzezArt 官网样式表
   分区:TOKENS → BASE → LAYOUT → NAV → BUTTON → HERO/CANVAS → FACTS →
        PAIN/SOLUTION → BENTO → SPLIT → DEMO → SCENES → STEPS →
        MODELS/TABLE → GUIDES/TOC → FAQ → CTA → FOOTER → MOBILE BAR →
        ANIMATIONS → MEDIA → PRINT → REDUCED MOTION
   约定:轻量 BEM(-- 表示修饰);颜色一律走 token,不在组件里写死十六进制。
   ========================================================================== */

/* ── TOKENS ───────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;

  /* 品牌色(双主题共用) */
  --c-brand-600: #4f46e5;
  --c-brand-500: #6366f1;
  --c-brand-400: #818cf8;
  --c-accent-500: #8b5cf6;
  --c-grad-brand: linear-gradient(135deg, var(--c-accent-500), var(--c-brand-500));

  /* 语义色(浅色) */
  --c-bg: #f9fafb;
  --c-surface: #ffffff;
  --c-surface-2: #f3f4f6;
  --c-glass: rgba(255, 255, 255, 0.72);
  --c-text-1: #111827;
  --c-text-2: #6b7280;
  --c-text-3: #9ca3af;
  --c-border: #e5e7eb;
  --c-border-strong: #d1d5db;
  --c-link: #4f46e5;
  --c-primary-btn: #4f46e5;
  --c-primary-btn-text: #ffffff;
  --c-focus: #4f46e5;

  /* 画布母题 */
  --cv-bg: #f9fafb;
  --cv-dot: #e2e8f0;
  --cv-dot-gap: 40px;
  --cv-dot-r: 1.5px;
  --cv-select: #6366f1;

  /* 尺寸与阴影 */
  --s-radius-sm: 10px;
  --s-radius: 16px;
  --s-radius-lg: 22px;
  --s-radius-xl: 28px;
  --s-shadow-card: 0 1px 2px rgba(17, 24, 39, 0.05), 0 8px 24px rgba(17, 24, 39, 0.07);
  --s-shadow-float: 0 2px 6px rgba(17, 24, 39, 0.08), 0 18px 40px rgba(17, 24, 39, 0.12);
  --s-blob-opacity: 0.32;
  --s-nav-h: 64px;

  --f-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", Inter, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* ── SPACING PRIMITIVES(4px 基准)────────────────────────────── */
  --sp-0-5: 2px;
  --sp-1: 4px;
  --sp-1-5: 6px;
  --sp-2: 8px;
  --sp-2-5: 10px;
  --sp-3: 12px;
  --sp-3-5: 14px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 28px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-14: 56px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;
  --sp-32: 128px;

  /* ── SPACING SEMANTICS(区块与堆叠的节奏)─────────────────────── */
  /* 区块纵向留白:整站最大的一级节奏 */
  --space-section-y: clamp(44px, 5.5vw, 72px);
  /* 紧凑区块留白:用于紧跟其它区块的段落 */
  --space-section-y-tight: clamp(32px, 4vw, 48px);
  /* 板块标题组与正文内容之间的距离 */
  --space-head-gap: clamp(28px, 3.5vw, 44px);
  /* 纵向堆叠的层级间距 */
  --space-stack-1: var(--sp-2);
  --space-stack-2: var(--sp-4);
  --space-stack-3: var(--sp-6);
  --space-stack-4: var(--sp-8);
  --space-stack-5: var(--sp-12);
  /* 内容与容器边缘的缩进 */
  --space-inset-1: var(--sp-4);
  --space-inset-2: var(--sp-6);
  --space-inset-3: var(--sp-8);
  /* 栅格之间的间隙 */
  --gap-grid-1: var(--sp-3);
  --gap-grid-2: clamp(16px, 2vw, 24px);
  --gap-grid-3: clamp(24px, 3.5vw, 48px);

  /* ── COMPONENT SPACING(组件自有留白)────────────────────────── */
  --card-pad: clamp(20px, 2vw, 28px);
  --card-pad-sm: var(--sp-4);
  --btn-pad-y: var(--sp-3);
  --btn-pad-x: var(--sp-6);
  --chip-pad-y: var(--sp-2);
  --chip-pad-x: var(--sp-4);
  --table-cell-pad-y: 12px;
  --table-cell-pad-x: 16px;
  --toc-pad: var(--sp-5);
}

[data-theme="dark"] {
  color-scheme: dark;

  --c-bg: #111827;
  --c-surface: #1f2937;
  --c-surface-2: #273244;
  --c-glass: rgba(17, 24, 39, 0.72);
  --c-text-1: #f9fafb;
  --c-text-2: #9ca3af;
  --c-text-3: #6b7280;
  --c-border: #374151;
  --c-border-strong: #4b5563;
  --c-link: #a5b4fc;
  --c-primary-btn: #4f46e5;
  --c-primary-btn-text: #ffffff;
  --c-focus: #a5b4fc;

  --cv-bg: #111827;
  --cv-dot: #334155;
  --cv-select: #818cf8;

  --s-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.45);
  --s-shadow-float: 0 2px 6px rgba(0, 0, 0, 0.45), 0 18px 40px rgba(0, 0, 0, 0.5);
  --s-blob-opacity: 0.2;
}

/* 禁用 JS 时的兜底:跟随系统 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --c-bg: #111827;
    --c-surface: #1f2937;
    --c-surface-2: #273244;
    --c-glass: rgba(17, 24, 39, 0.72);
    --c-text-1: #f9fafb;
    --c-text-2: #9ca3af;
    --c-text-3: #6b7280;
    --c-border: #374151;
    --c-border-strong: #4b5563;
    --c-link: #a5b4fc;
    --c-focus: #a5b4fc;
    --cv-bg: #111827;
    --cv-dot: #334155;
    --cv-select: #818cf8;
    --s-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.45);
    --s-shadow-float: 0 2px 6px rgba(0, 0, 0, 0.45), 0 18px 40px rgba(0, 0, 0, 0.5);
    --s-blob-opacity: 0.2;
  }
}

/* ── BASE ─────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  /* 不设 scroll-behavior:smooth——它会让 Chrome 初次带 # 加载时不定位,
     跨页锚点表现为"点了没反应"。同页平滑滚动由 js/main.js 接管。 */
  scroll-padding-top: calc(var(--s-nav-h) + 16px);
  /* 默认不显示滚动条轨道:滚轮、触控板、键盘、触摸滑动照常可用 */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text-1);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--c-text-1);
  /* 中文标题按行宽均衡断行,避免末行只剩一两个字 */
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 1.15rem + 3.6vw, 3.5rem);
}

h2 {
  font-size: clamp(1.55rem, 1.1rem + 1.9vw, 2.4rem);
}

h3 {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  /* 中文排版:均衡断行,末行不留一两个字(Chrome 对 ≤6 行段落生效) */
  text-wrap: balance;
}

li,
figcaption {
  text-wrap: pretty;
}

/* 禁止行尾把词拆开(用于长段落的结尾短语,避免末行只剩一两个字) */
.nowrap {
  white-space: nowrap;
}

/* 卡片类短文案:行宽均衡,末行不留一两个字 */
.bento__desc,
.demo__desc,
.term__desc,
.step__desc,
.scene__desc,
.ps-card__fix,
.ps-card__pain,
.timeline__desc,
.section__lead,
.page-head__lead,
.hero__lead,
.note,
li,
td,
th {
  text-wrap: balance;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

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

a {
  color: var(--c-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--c-surface);
  color: var(--c-text-1);
  padding: 10px 16px;
  border-radius: 0 0 var(--s-radius-sm) 0;
  border: 1px solid var(--c-border);
}

.skip:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ── LAYOUT ───────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 32px);
}

.section {
  padding-block: var(--space-section-y);
}

.section--alt {
  background: var(--c-surface-2);
}

.section--flush {
  padding-block: 0;
}

/* 功能域等连续子区块:节奏取紧凑档,相邻区块间距恒定 */
.section--tight {
  padding-block: var(--space-section-y-tight);
}

.section__head {
  max-width: 760px;
  margin-bottom: var(--space-head-gap);
}

.section__title {
  margin-bottom: var(--sp-5);
}

.section__lead {
  color: var(--c-text-2);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--sp-4);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-link);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--c-grad-brand);
}

.text-gradient {
  background: var(--c-grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: var(--gap-grid-2);
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.prose {
  max-width: 760px;
  color: var(--c-text-1);
}

.prose h2 {
  margin: var(--sp-14) 0 var(--sp-5);
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
}

.prose h3 {
  margin: var(--sp-10) 0 var(--sp-3);
}

.prose p {
  margin-bottom: var(--sp-5);
  color: var(--c-text-2);
}

.prose strong {
  color: var(--c-text-1);
  font-weight: 600;
}

.prose ul,
.prose ol {
  margin: 0 0 var(--sp-5);
  padding-left: 22px;
  color: var(--c-text-2);
}

.prose li {
  margin-bottom: var(--sp-2-5);
}

.prose li::marker {
  color: var(--c-brand-400);
}

.note {
  padding: var(--sp-5) var(--sp-6);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-brand-500);
  border-radius: var(--s-radius-sm);
  background: var(--c-surface);
  color: var(--c-text-2);
  font-size: 0.9375rem;
}

.updated {
  color: var(--c-text-3);
  font-size: 0.8125rem;
}

/* 子页页头 */
.page-head {
  /* 顶部对齐首页 hero(36–64px):减去面包屑行占位(≈35px),眉标到导航的距离与首页一致 */
  padding-block: clamp(12px, calc(4.5vw - 35px), 29px) clamp(28px, 3.5vw, 44px);
}

.page-head__title {
  margin-bottom: var(--sp-4);
}

.page-head__lead {
  max-width: 720px;
  color: var(--c-text-2);
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.125rem);
}

.page-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: var(--sp-6);
}

/* 面包屑 —— 直接挂在 body 下,自身承担容器宽度,与正文左对齐 */
.crumbs {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-top: var(--sp-3);
  padding-inline: clamp(20px, 5vw, 32px);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  list-style: none;
  font-size: 0.8125rem;
  color: var(--c-text-3);
}

.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--c-text-3);
}

.crumbs a {
  color: var(--c-text-2);
}

/* ── NAV ──────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--c-glass);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--c-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  min-height: var(--s-nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2-5);
  color: var(--c-text-1);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand__logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

[data-theme="dark"] .brand__logo {
  filter: invert(1);
}

.brand__name {
  font-size: 1.0625rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav__link {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--c-text-2);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav__link:hover {
  background: var(--c-surface-2);
  color: var(--c-text-1);
  text-decoration: none;
}

.nav__link[aria-current="page"] {
  color: var(--c-link);
  background: color-mix(in srgb, var(--c-brand-500) 10%, transparent);
}

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

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--c-text-2);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.theme-toggle:hover {
  color: var(--c-text-1);
  border-color: var(--c-border-strong);
}

.theme-toggle__icon--moon {
  display: none;
}

[data-theme="dark"] .theme-toggle__icon--sun {
  display: none;
}

[data-theme="dark"] .theme-toggle__icon--moon {
  display: block;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  background: var(--c-surface);
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--c-text-1);
}

.nav__drawer {
  border-top: 1px solid var(--c-border);
  background: var(--c-surface);
}

.nav__drawer nav {
  display: flex;
  flex-direction: column;
  padding: var(--sp-2) clamp(20px, 5vw, 32px) var(--sp-4);
}

.nav__drawer .nav__link {
  padding: var(--sp-3) 4px;
  border-radius: 0;
  border-bottom: 1px solid var(--c-border);
}

/* ── BUTTON ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--c-primary-btn);
  color: var(--c-primary-btn-text);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--c-brand-600) 28%, transparent);
}

.btn--primary:hover {
  background: color-mix(in srgb, var(--c-brand-600) 88%, #000);
}

.btn--ghost {
  background: var(--c-surface);
  border-color: var(--c-border-strong);
  color: var(--c-text-1);
}

.btn--ghost:hover {
  border-color: var(--c-brand-400);
}

.btn--sm {
  padding: var(--sp-2) var(--sp-4);
  font-size: 0.875rem;
}

/* ── HERO + CANVAS SCENE ──────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(36px, 4.5vw, 64px) clamp(40px, 5vw, 64px);
}

/* 首屏标题:比全局 h1 大一档、行距更紧,形成张力;
   上限以「在一张无限画布上,」9 字在半栏内不断行为准 */
.hero h1 {
  font-size: clamp(2.3rem, 1.25rem + 4vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-5);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--cv-dot) var(--cv-dot-r), transparent var(--cv-dot-r));
  background-size: var(--cv-dot-gap) var(--cv-dot-gap);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 0%, transparent 70%);
  opacity: 0.7;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.hero__lead {
  margin-bottom: var(--sp-8);
  max-width: 34em;
  color: var(--c-text-2);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.85;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-grid-1);
  margin-bottom: var(--sp-6);
}

.hero__note {
  color: var(--c-text-3);
  font-size: 0.875rem;
}

.hero__note strong {
  color: var(--c-text-2);
  font-weight: 600;
}

/* 画布场景 */
.cv-board {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.2;
  border: 1px solid var(--c-border);
  border-radius: var(--s-radius-xl);
  background: var(--cv-bg);
  box-shadow: var(--s-shadow-float);
  overflow: hidden;
}

.cv-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--cv-dot) var(--cv-dot-r), transparent var(--cv-dot-r));
  background-size: var(--cv-dot-gap) var(--cv-dot-gap);
}

.cv-blob {
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: var(--s-blob-opacity);
  background: var(--c-grad-brand);
}

.cv-blob--1 {
  left: -10%;
  top: -12%;
}

.cv-blob--2 {
  right: -14%;
  bottom: -18%;
  background: linear-gradient(135deg, var(--c-brand-400), var(--c-accent-500));
}

.cv-poster {
  position: absolute;
  left: 7%;
  top: 12%;
  width: 33%;
  height: 46%;
  margin: 0;
  border-radius: var(--s-radius-sm);
  background: var(--c-surface);
  box-shadow: var(--s-shadow-card);
  overflow: hidden;
}

.cv-poster__art {
  position: absolute;
  inset: 0;
}

.cv-poster__day,
.cv-poster__night {
  position: absolute;
  inset: 0;
}

.cv-poster__day {
  background: linear-gradient(180deg, #bfe3ff 0%, #e8f3ff 52%, #fff3d6 100%);
}

.cv-poster__night {
  background: linear-gradient(180deg, #101a3a 0%, #2b1b52 60%, #4a2358 100%);
  opacity: 0;
  animation: cv-night 8s ease-in-out infinite;
}

.cv-poster__night::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.85) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
}

.cv-sun {
  position: absolute;
  right: 14%;
  top: 12%;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff6c2, #ffcf5c);
  box-shadow: 0 0 24px rgba(255, 205, 90, 0.75);
}

.cv-hill {
  position: absolute;
  left: -6%;
  bottom: 0;
  width: 74%;
  height: 42%;
  background: #5f9e78;
  clip-path: polygon(0% 100%, 38% 12%, 100% 100%);
}

.cv-hill--night {
  background: #16203c;
  left: 10%;
  width: 80%;
  height: 38%;
  clip-path: polygon(0% 100%, 52% 18%, 100% 100%);
}

.cv-textbar {
  position: absolute;
  left: 7%;
  top: 62%;
  width: 33%;
  height: 8%;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: var(--c-surface);
  box-shadow: var(--s-shadow-card);
  font-size: clamp(9px, 1.1vw, 13px);
  color: var(--c-text-1);
  white-space: nowrap;
  overflow: hidden;
}

.cv-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--c-brand-500);
  animation: cv-blink 1.1s steps(1) infinite;
}

.cv-note {
  position: absolute;
  left: 62%;
  top: 14%;
  width: 24%;
  padding: 10px 12px;
  border-radius: var(--s-radius-sm);
  background: color-mix(in srgb, var(--c-accent-500) 16%, var(--c-surface));
  border: 1px solid color-mix(in srgb, var(--c-accent-500) 30%, transparent);
  color: var(--c-text-1);
  font-size: clamp(8px, 0.95vw, 12px);
  line-height: 1.4;
  transform: rotate(-3deg);
  box-shadow: var(--s-shadow-card);
}

.cv-video {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 40%;
  height: 28%;
  border-radius: var(--s-radius-sm);
  background: linear-gradient(135deg, #334155, #1e293b);
  box-shadow: var(--s-shadow-card);
  overflow: hidden;
}

.cv-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  border-left: 14px solid rgba(255, 255, 255, 0.92);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

.cv-progress {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 9%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.cv-progress span {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: 999px;
  background: var(--c-grad-brand);
}

.cv-tag {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--c-glass);
  border: 1px solid var(--c-border);
  font-size: 10px;
  line-height: 1.6;
  color: var(--c-text-2);
  backdrop-filter: blur(6px);
}

.cv-marquee {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cv-marquee rect {
  animation: cv-march 1.4s linear infinite;
}

.cv-handle {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--cv-select);
  border-radius: 2px;
  background: #ffffff;
  transform: translate(-50%, -50%);
}

.cv-handle--tl { left: 5%; top: 10%; }
.cv-handle--tr { left: 42%; top: 10%; }
.cv-handle--bl { left: 5%; top: 72%; }
.cv-handle--br { left: 42%; top: 72%; }

.cv-chat {
  position: absolute;
  right: 5%;
  top: 30%;
  width: 42%;
  padding: 12px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--s-radius);
  background: var(--c-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--s-shadow-float);
  animation: cv-float 6s ease-in-out infinite;
}

.cv-chat__text {
  font-size: clamp(10px, 1.15vw, 14px);
  color: var(--c-text-1);
  line-height: 1.5;
}

.cv-chat__chip {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c-brand-500) 14%, transparent);
  color: var(--c-link);
  font-size: 10px;
}

.cv-caption {
  position: absolute;
  right: 6%;
  bottom: 5%;
  color: var(--c-text-3);
  font-size: 11px;
}

.cv-toolbar {
  position: absolute;
  left: 5%;
  bottom: 6%;
  display: flex;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: var(--c-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--s-shadow-card);
}

.cv-toolbar span {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--c-border-strong);
}

.cv-toolbar span:first-child {
  background: var(--c-grad-brand);
}

.cv-layer-tab {
  position: absolute;
  left: 5%;
  top: 4%;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px dashed var(--c-border-strong);
  color: var(--c-text-3);
  font-size: 10px;
}

@keyframes cv-night {
  0%, 28% { opacity: 0; }
  44%, 68% { opacity: 1; }
  84%, 100% { opacity: 0; }
}

@keyframes cv-march {
  to { stroke-dashoffset: -3.4; }
}

@keyframes cv-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes cv-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ── FACTS ────────────────────────────────────────────────────────────── */
.facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--c-border);
  border-radius: var(--s-radius-lg);
  background: var(--c-border);
  overflow: hidden;
  list-style: none;
}

.fact {
  padding: var(--sp-6) var(--sp-5);
  background: var(--c-surface);
}

.fact__num {
  display: block;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  background: var(--c-grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fact__label {
  display: block;
  margin-top: var(--sp-2);
  color: var(--c-text-2);
  font-size: 0.875rem;
}

/* ── PAIN → SOLUTION ──────────────────────────────────────────────────── */
.ps-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-stack-2);
  padding: var(--card-pad);
  border: 1px solid var(--c-border);
  border-radius: var(--s-radius-lg);
  background: var(--c-surface);
  box-shadow: var(--s-shadow-card);
}

.ps-card__pain {
  color: var(--c-text-2);
  font-size: 0.9375rem;
}

.ps-card__pain::before {
  content: "痛点";
  display: inline-block;
  margin-right: 8px;
  padding: 1px 7px;
  border-radius: 4px;
  background: var(--c-surface-2);
  color: var(--c-text-3);
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: 1px;
}

.ps-card__fix {
  padding-top: 14px;
  border-top: 2px solid var(--c-brand-500);
  color: var(--c-text-1);
  font-weight: 600;
}

.ps-card__fix::before {
  content: "解法";
  display: inline-block;
  margin-right: 8px;
  padding: 1px 7px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--c-brand-500) 14%, transparent);
  color: var(--c-link);
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: 1px;
}

/* ── BENTO ────────────────────────────────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-5);
}

.bento__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-stack-2);
  padding: var(--card-pad);
  border: 1px solid var(--c-border);
  border-radius: var(--s-radius-lg);
  background: var(--c-surface);
  box-shadow: var(--s-shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bento__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--s-shadow-float);
}

.bento__item--wide {
  grid-column: span 2;
}

.bento__item--tall {
  grid-row: span 2;
}

.bento__item--tall .viz {
  flex: 1;
  align-self: stretch;
}

.bento__item--tall .viz-canvas {
  height: auto;
  min-height: 170px;
}

.bento__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--c-brand-500) 12%, transparent);
  color: var(--c-link);
}

.bento__title {
  font-size: 1.0625rem;
}

.bento__desc {
  color: var(--c-text-2);
  font-size: 0.9375rem;
}

.bento__item--full {
  grid-column: span 4;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "icon title viz"
    "icon desc  viz"
    "icon more  viz";
  align-items: center;
  gap: 6px clamp(14px, 2vw, 24px);
}

.bento__item--full .bento__icon { grid-area: icon; }
.bento__item--full .bento__title { grid-area: title; }
.bento__item--full .bento__desc { grid-area: desc; }
.bento__item--full .bento__more { grid-area: more; margin-top: 4px; }

.bento__item--full .viz {
  grid-area: viz;
  margin-top: 0;
  min-width: 190px;
}

.bento__more {
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 600;
}

/* 微示意图 */
.viz {
  margin-top: auto;
  padding: var(--sp-4);
  border: 1px dashed var(--c-border-strong);
  border-radius: var(--s-radius);
  background: var(--c-bg);
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viz-canvas {
  position: relative;
  width: 100%;
  height: 132px;
  border-radius: var(--s-radius-sm);
  background-image: radial-gradient(circle, var(--cv-dot) 1px, transparent 1px);
  background-size: 16px 16px;
  overflow: hidden;
}

.viz-canvas i {
  position: absolute;
  left: 14%;
  top: 16%;
  width: 34%;
  height: 56%;
  border-radius: 6px;
  background: var(--c-grad-brand);
  opacity: 0.85;
}

.viz-canvas b {
  position: absolute;
  left: 10%;
  top: 12%;
  width: 46%;
  height: 64%;
  border: 1.5px dashed var(--c-brand-400);
  border-radius: 5px;
}

/* 功能域示意图:真实照片 + 原有界面符号(比例条/进度条/对话气泡等) */
.viz--stack {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.viz--stack > img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: var(--s-radius-sm);
}

.viz-canvas__shot {
  position: absolute;
  left: 14%;
  top: 14%;
  width: 40%;
  height: 66%;
  border-radius: 6px;
  object-fit: cover;
}

.viz-ratios {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.viz-ratios span {
  padding: 4px 10px;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  background: var(--c-surface);
  font-size: 0.75rem;
  color: var(--c-text-2);
}

.viz-ratios span:first-child {
  border-color: var(--c-brand-400);
  color: var(--c-link);
}

.viz-video {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.viz-video i {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  position: relative;
}

.viz-video i::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 11px;
  border-left: 10px solid var(--c-brand-500);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.viz-video u {
  display: block;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: var(--c-border);
  text-decoration: none;
  overflow: hidden;
}

.viz-video u::after {
  content: "";
  display: block;
  width: 45%;
  height: 100%;
  background: var(--c-grad-brand);
}

.viz-chat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  width: 100%;
}

.viz-chat span {
  padding: 6px 12px;
  border-radius: 12px 12px 12px 3px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  font-size: 0.75rem;
  color: var(--c-text-2);
}

.viz-chat span:last-child {
  align-self: flex-end;
  border-radius: 12px 12px 3px 12px;
  background: color-mix(in srgb, var(--c-brand-500) 12%, transparent);
  border-color: transparent;
  color: var(--c-link);
}

.viz-models {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.viz-models span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  font-size: 0.75rem;
  color: var(--c-text-2);
}

.viz-team {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.viz-team i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c-grad-brand);
  opacity: 0.85;
}

.viz-team i:nth-child(2) { opacity: 0.6; }
.viz-team i:nth-child(3) { opacity: 0.4; }

.viz-team span {
  font-size: 0.75rem;
  color: var(--c-text-2);
}

/* ── SPLIT(图文交替)─────────────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-grid-3);
  align-items: center;
}

.split + .split {
  margin-top: var(--gap-grid-3);
}

.split--flip .split__media {
  order: 2;
}

.split__body h3 {
  margin-bottom: var(--sp-4);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
}

.split__body p {
  color: var(--c-text-2);
  margin-bottom: var(--sp-5);
  /* 中文阅读宽度上限:约 36 字/行,避免宽屏下一行过长 */
  max-width: 36em;
  line-height: 1.85;
}

/* split 内标题与正文拉开一档,不贴在一起 */
.split__body h2,
.split__body h3 {
  margin-bottom: var(--sp-5);
}

/* 整幅照片画板:图铺满画布区,蚂蚁线选框叠在上面呼应「收进同一块画布」 */
.viz--panel {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: var(--c-surface-2);
  border-style: solid;
  aspect-ratio: 4 / 3;
}

.viz--panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.viz--panel b {
  position: absolute;
  inset: 9%;
  border: 1.5px dashed var(--c-brand-400);
  border-radius: 8px;
  pointer-events: none;
}

.split__media {
  border: 1px solid var(--c-border);
  border-radius: var(--s-radius-lg);
  background: var(--c-surface);
  box-shadow: var(--s-shadow-card);
  overflow: hidden;
}

.split__list {
  list-style: none;
  margin-top: 4px;
}

.split__list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: var(--sp-2-5);
  color: var(--c-text-2);
  max-width: 38em;
  font-size: 0.9375rem;
}

.split__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--c-grad-brand);
}

/* ── DEMO(改前/改后)──────────────────────────────────────────────────── */
.demo {
  padding: var(--card-pad);
  border: 1px solid var(--c-border);
  border-radius: var(--s-radius-lg);
  background: var(--c-surface);
  box-shadow: var(--s-shadow-card);
}

.demo__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.demo__title {
  font-size: 1.0625rem;
}

.demo__badge {
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--c-border-strong);
  color: var(--c-text-3);
  font-size: 0.75rem;
  white-space: nowrap;
}

.demo__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3-5);
  margin-bottom: var(--sp-4);
  align-items: center;
}

/* 画布上的画板:同一份素材在不同投放比例下的样子 */
.artboard {
  position: absolute;
  inset: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: var(--c-surface-2);
}

.artboard--checker {
  background-color: #f8fafc;
  background-image: linear-gradient(45deg, #e5e7eb 25%, transparent 25%),
    linear-gradient(-45deg, #e5e7eb 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e5e7eb 75%),
    linear-gradient(-45deg, transparent 75%, #e5e7eb 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}

.shot-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.16);
}

/* 演示用真实照片:夜景滤镜 / 白底混合抠图 / 扩图延展 */
.shot-img--night {
  filter: brightness(0.5) contrast(1.15) saturate(0.8) hue-rotate(-12deg);
}

.shot-img--multiply {
  mix-blend-mode: multiply;
  box-shadow: none;
}

.artboard--extend {
  background: #f3ebdd;
}

.shot-img--extend {
  width: 52%;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.12);
}

/* 铺满画板 / 三种比例裁切(同一素材裁成 1:1、4:3、9:16) */
.shot-img--fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-img--sq {
  width: 75%;
  height: 100%;
  object-fit: cover;
}

.shot-img--ar916 {
  width: 42%;
  height: 100%;
  object-fit: cover;
}

.demo__pair--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.demo__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--s-radius-sm);
  overflow: hidden;
  border: 1px solid var(--c-border);
}

.demo__label {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--c-glass);
  backdrop-filter: blur(6px);
  font-size: 0.6875rem;
  color: var(--c-text-2);
}

.demo__desc {
  color: var(--c-text-2);
  font-size: 0.9375rem;
  margin-bottom: var(--sp-4);
  max-width: 42em;
}

.demo__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  list-style: none;
}

.demo__tags li {
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c-brand-500) 10%, transparent);
  color: var(--c-link);
  font-size: 0.75rem;
}

/* 演示画面:场景素材(图与画板规则见上方 .artboard / .shot-img) */

/* 图上叠加的文字 */
.shot-text {
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: 9%;
  z-index: 2;
  color: #3b2a1c;
  font-size: clamp(11px, 1.1vw, 15px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.45);
}

.shot-text--light {
  color: #fdf6ec;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

.shot-text--bar {
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, rgba(12, 8, 4, 0) 0%, rgba(12, 8, 4, 0.78) 62%);
  color: #ffffff;
  font-weight: 600;
  text-shadow: none;
}

/* ── SCENES ───────────────────────────────────────────────────────────── */
.scene {
  padding: var(--card-pad);
  border: 1px solid var(--c-border);
  border-radius: var(--s-radius-lg);
  background: var(--c-surface);
  box-shadow: var(--s-shadow-card);
}

/* 场景/指南卡的配图头:图贴满卡片上沿(负外边距抵消卡片内边距) */
.scene__media,
.bento__media {
  display: block;
  margin: calc(var(--card-pad) * -1) calc(var(--card-pad) * -1) var(--space-stack-2);
  border-radius: var(--s-radius-lg) var(--s-radius-lg) 0 0;
  overflow: hidden;
  border-bottom: 1px solid var(--c-border);
  aspect-ratio: 4 / 3;
  background: var(--c-surface-2);
}

.scene__media img,
.bento__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento__media--contain {
  background-color: #f8fafc;
  background-image: linear-gradient(45deg, #e2e8f0 25%, transparent 25%, transparent 75%, #e2e8f0 75%),
    linear-gradient(45deg, #e2e8f0 25%, transparent 25%, transparent 75%, #e2e8f0 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}

.scene__title {
  margin-bottom: 8px;
  font-size: 1.0625rem;
}

.scene__desc {
  color: var(--c-text-2);
  font-size: 0.9375rem;
}

/* ── STEPS ────────────────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-grid-2);
  counter-reset: step;
  position: relative;
}

.step {
  position: relative;
  padding-top: var(--sp-12);
}

.step::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--c-border-strong) 0 6px, transparent 6px 12px);
}

.step:last-child::before {
  right: 30%;
}

.step__num {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px dashed var(--c-brand-400);
  background: var(--c-bg);
  color: var(--c-link);
  font-size: 0.875rem;
  font-weight: 700;
}

.step__title {
  margin-bottom: 8px;
  font-size: 1.0625rem;
}

.step__desc {
  color: var(--c-text-2);
  font-size: 0.9375rem;
}

/* ── MODELS / CHIPS / TABLE ──────────────────────────────────────────── */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2-5);
  list-style: none;
}

.chip {
  padding: var(--chip-pad-y) var(--chip-pad-x);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: var(--c-surface);
  color: var(--c-text-2);
  font-size: 0.875rem;
}

.chip--accent {
  border-color: color-mix(in srgb, var(--c-brand-500) 40%, transparent);
  background: color-mix(in srgb, var(--c-brand-500) 10%, transparent);
  color: var(--c-link);
}

.chip:hover {
  text-decoration: none;
  border-color: var(--c-brand-400);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  border: 1px solid var(--c-border);
  border-radius: var(--s-radius);
  overflow: hidden;
}

.table caption {
  text-align: left;
  padding: 0 0 10px;
  color: var(--c-text-3);
  font-size: 0.8125rem;
}

.table th,
.table td {
  padding: var(--table-cell-pad-y) var(--table-cell-pad-x);
  text-align: left;
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
}

.table th {
  background: var(--c-surface-2);
  color: var(--c-text-1);
  font-weight: 600;
  font-size: 0.875rem;
}

.table td {
  color: var(--c-text-2);
}

.table tr:last-child td {
  border-bottom: 0;
}

/* ── GUIDES / TOC / TERMS / TIMELINE ─────────────────────────────────── */
.guide-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.toc {
  position: sticky;
  top: calc(var(--s-nav-h) + 20px);
  padding: var(--toc-pad);
  border: 1px solid var(--c-border);
  border-radius: var(--s-radius);
  background: var(--c-surface);
}

.toc__title {
  margin-bottom: var(--sp-2-5);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--c-text-3);
  letter-spacing: 0.04em;
}

.toc__list {
  list-style: none;
}

.toc__link {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--s-radius-sm);
  color: var(--c-text-2);
  font-size: 0.875rem;
  line-height: 1.5;
}

.toc__link:hover {
  background: var(--c-surface-2);
  color: var(--c-text-1);
  text-decoration: none;
}

.toc__link[aria-current="true"] {
  background: color-mix(in srgb, var(--c-brand-500) 10%, transparent);
  color: var(--c-link);
  font-weight: 600;
}

/* 横向目录(法务页等长文) */
.toc--inline {
  position: static;
  margin-bottom: var(--space-head-gap);
  padding: var(--sp-4) var(--sp-5);
}

.toc--inline .toc__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.toc--inline .toc__link {
  display: inline-block;
  padding: var(--sp-1-5) var(--sp-3);
  font-size: 0.875rem;
}

/* 复制邮箱 */
.copy-email {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2-5);
  flex-wrap: wrap;
}

.copy-btn {
  padding: 3px 12px;
  border: 1px solid var(--c-border-strong);
  border-radius: 999px;
  background: var(--c-surface);
  color: var(--c-text-2);
  font-family: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.copy-btn:hover {
  color: var(--c-link);
  border-color: var(--c-brand-400);
}

.copy-btn[data-state="ok"] {
  color: var(--c-link);
  border-color: var(--c-brand-400);
  background: color-mix(in srgb, var(--c-brand-500) 10%, transparent);
}

.copy-btn[data-state="fail"] {
  color: var(--c-text-1);
  border-color: var(--c-border-strong);
}

.guide {
  padding-bottom: var(--space-section-y-tight);
  margin-bottom: var(--space-section-y-tight);
  border-bottom: 1px solid var(--c-border);
}

.guide:last-child {
  border-bottom: 0;
}

.guide__head {
  margin-bottom: var(--sp-6);
}

.guide__title {
  margin-bottom: 8px;
}

.guide__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--c-text-3);
  font-size: 0.8125rem;
}

/* 指南文章的配图:卡片式画板,图按素材比例呈现 */
.guide__media {
  margin: var(--sp-6) 0;
  border: 1px solid var(--c-border);
  border-radius: var(--s-radius-lg);
  overflow: hidden;
  background: var(--c-surface-2);
}

.guide__media img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.guide__media--contain img {
  object-fit: contain;
}

.guide__media--full img {
  object-fit: contain;
}

.guide__media--contain {
  background-color: #f8fafc;
  background-image: linear-gradient(45deg, #e2e8f0 25%, transparent 25%, transparent 75%, #e2e8f0 75%),
    linear-gradient(45deg, #e2e8f0 25%, transparent 25%, transparent 75%, #e2e8f0 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}

.guide__media figcaption {
  padding: 10px 16px;
  font-size: 0.8125rem;
  color: var(--c-text-3);
  border-top: 1px solid var(--c-border);
}

.checklist {
  list-style: none;
  counter-reset: cl;
  margin: 0 0 20px;
}

.checklist li {
  position: relative;
  counter-increment: cl;
  padding-left: 40px;
  margin-bottom: var(--sp-4);
  color: var(--c-text-2);
}

.checklist li::before {
  content: counter(cl);
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--c-brand-500) 12%, transparent);
  color: var(--c-link);
  font-size: 0.8125rem;
  font-weight: 700;
}

.checklist strong {
  color: var(--c-text-1);
}

.terms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-grid-2);
  list-style: none;
}

.term {
  padding: var(--sp-5) var(--sp-6);
  border: 1px solid var(--c-border);
  border-radius: var(--s-radius);
  background: var(--c-surface);
}

.term__name {
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 0.9375rem;
}

.term__name a {
  color: var(--c-text-1);
}

.term__name a:hover {
  color: var(--c-link);
  text-decoration: none;
  box-shadow: inset 0 -1px 0 var(--c-brand-400);
}

.term__desc {
  color: var(--c-text-2);
  font-size: 0.875rem;
  line-height: 1.6;
}

.timeline {
  list-style: none;
  border-left: 2px solid var(--c-border);
  padding-left: var(--sp-6);
}

.timeline li {
  position: relative;
  padding-bottom: var(--sp-8);
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-grad-brand);
}

.timeline__date {
  display: block;
  color: var(--c-text-3);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.timeline__title {
  margin: 2px 0 4px;
  font-size: 1rem;
  font-weight: 600;
}

.timeline__desc {
  color: var(--c-text-2);
  font-size: 0.9375rem;
  max-width: 42em;
}

/* 动态列表 */
.updates {
  list-style: none;
  display: grid;
  gap: var(--sp-4);
}

.updates li {
  display: flex;
  gap: var(--sp-4);
  align-items: baseline;
  padding: var(--sp-5) var(--sp-6);
  border: 1px solid var(--c-border);
  border-radius: var(--s-radius);
  background: var(--c-surface);
}

.updates time {
  color: var(--c-link);
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.updates p {
  color: var(--c-text-2);
  font-size: 0.9375rem;
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq {
  max-width: 840px;
}

.faq__item {
  border: 1px solid var(--c-border);
  border-radius: var(--s-radius);
  background: var(--c-surface);
  margin-bottom: var(--sp-3);
  overflow: hidden;
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 1.6px solid var(--c-text-3);
  border-bottom: 1.6px solid var(--c-text-3);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.faq__item[open] .faq__q::after {
  transform: rotate(-135deg) translateY(-2px);
}

.faq__a {
  padding: 0 var(--sp-6) var(--sp-5);
  color: var(--c-text-2);
  font-size: 0.9375rem;
}

/* ── CTA ──────────────────────────────────────────────────────────────── */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 80px) clamp(32px, 5vw, 72px);
  border-radius: var(--s-radius-xl);
  background: var(--c-grad-brand);
  color: #ffffff;
  text-align: center;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.28;
  pointer-events: none;
}

.cta__title {
  position: relative;
  z-index: 1;
  margin-bottom: var(--sp-3);
  color: #ffffff;
}

.cta__lead {
  position: relative;
  z-index: 1;
  margin-bottom: var(--sp-6);
  color: rgba(255, 255, 255, 0.86);
  max-width: 32em;
}

.cta .btn--ghost {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.cta .btn--primary {
  background: #ffffff;
  color: var(--c-brand-600);
  box-shadow: none;
}

/* ── FOOTER ───────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--c-border);
  background: var(--c-surface);
  padding-block: clamp(48px, 6vw, 80px) var(--sp-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}

.footer__desc {
  margin-top: var(--sp-3);
  max-width: 320px;
  color: var(--c-text-2);
  font-size: 0.875rem;
}

.footer__title {
  margin-bottom: var(--sp-3);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-text-1);
}

.footer__list {
  list-style: none;
}

.footer__list li {
  margin-bottom: var(--sp-2-5);
}

.footer__list a {
  color: var(--c-text-2);
  font-size: 0.875rem;
}

.footer__list a:hover {
  color: var(--c-link);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--c-border);
}

.footer__copy,
.footer__icp {
  color: var(--c-text-3);
  font-size: 0.8125rem;
}

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

.footer__icp a {
  color: var(--c-text-2);
}

.footer__sep {
  color: var(--c-border-strong);
}

/* ── MOBILE BAR ───────────────────────────────────────────────────────── */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4) calc(var(--sp-3) + env(safe-area-inset-bottom, 0px));
  background: var(--c-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--c-border);
}

.mobile-bar__btn {
  flex: 1;
  text-align: center;
  padding: var(--sp-3) var(--sp-3);
  border-radius: 999px;
  border: 1px solid var(--c-border-strong);
  background: var(--c-surface);
  color: var(--c-text-1);
  font-size: 0.875rem;
  font-weight: 600;
}

.mobile-bar__btn:hover {
  text-decoration: none;
}

.mobile-bar__btn--primary {
  background: var(--c-primary-btn);
  border-color: transparent;
  color: var(--c-primary-btn-text);
}

/* ── 相关页面 ─────────────────────────────────────────────────────────── */
.related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-10);
  /* 相关页卡片是正文最后一块,与页脚之间留出呼吸空间 */
  margin-bottom: var(--sp-16);
}

.related a {
  display: block;
  padding: var(--sp-5) var(--sp-6);
  border: 1px solid var(--c-border);
  border-radius: var(--s-radius);
  background: var(--c-surface);
  color: var(--c-text-1);
  font-weight: 600;
  font-size: 0.9375rem;
}

.related a:hover {
  border-color: var(--c-brand-400);
  text-decoration: none;
}

.related span {
  display: block;
  margin-top: 4px;
  color: var(--c-text-2);
  font-size: 0.8125rem;
  font-weight: 400;
}

/* ── ANIMATIONS ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

/* ── MEDIA QUERIES ────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento__item--tall {
    grid-row: auto;
  }

  .bento__item--full {
    grid-column: span 2;
  }

  .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3,
  .terms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .split--flip .split__media {
    order: 0;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .step::before {
    right: 0;
  }

  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc {
    position: static;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-bar {
    display: flex;
  }

  /* 吸底条是 fixed 定位,给页面底部留出等高空间,避免压住页脚备案号 */
  body {
    padding-bottom: 88px;
  }

  .cv-toolbar,
  .cv-layer-tab,
  .cv-textbar {
    display: none;
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .terms,
  .related {
    grid-template-columns: minmax(0, 1fr);
  }

  .bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .bento__item--wide {
    grid-column: auto;
  }

  .bento__item--full {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "icon"
      "title"
      "desc"
      "more"
      "viz";
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo__pair,
  .demo__pair--three {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .cv-note {
    left: 58%;
    top: 12%;
    width: 30%;
  }

  .cv-chat {
    width: 56%;
    right: 4%;
    top: 30%;
  }

  .cv-video {
    display: none;
  }
}

/* ── PRINT(仅协议与政策页使用)───────────────────────────────────────── */
@media print {
  .nav,
  .footer__grid,
  .mobile-bar,
  .cta,
  .toc,
  .related,
  .hero__bg {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  .prose h2 {
    page-break-after: avoid;
  }

  .faq__a {
    display: block !important;
  }
}

/* ── REDUCED MOTION ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
