/* =============================================================
   VectorShop 官网 v2 设计系统(参照 paper.design)
   规划:Docs/2026-10-16-site-redesign-paper-style-plan.md
   组件样张:Site/redesign/components.html(本地看,不上线)

   结构:
     1. 字体与 token(浅色 / 暗色,跟随系统)
     2. 基础与排版
     3. 画板栏、分段、格子
     4. 母题:标尺、锚点、贝塞尔拱、方格纸、选中框
     5. 组件:导航 按钮 标签 作品卡 对比 窗口/终端 标签页 规格 定价 FAQ 表格 表单 正文 页脚
     6. 窄屏与减少动态

   规则:组件只用 token,不写字面颜色;暗色只重定义 token。
   ============================================================= */

/* ---------- 1. 字体与 token ---------- */
@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.46525b05.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-Variable.3ef2c50d.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* 颜色(浅色):实测自 paper.design,灰行加深到 3:1 */
  --paper:     #EFEFE4;   /* 页面底 */
  --board:     #FCFCF9;   /* 画板 / 面板 / 卡片 */
  --ink:       #181818;   /* 主文字;主按钮底 */
  --on-ink:    #FCFCF9;   /* 主按钮上的字 */
  --ink-hover: #3A3A3A;
  --grey:      #898989;   /* 标题第二行(大字 3.02:1),只用于 ≥24px 的字 */
  --body2:     #666666;   /* 次要正文(4.96:1) */
  --line:      #D7D7D6;   /* 发丝线 */
  --knot:      #A9A9A4;   /* 锚点方块描边 */
  --faint:     rgba(24, 24, 24, .055);  /* 网格、刻度 */
  --tick:      rgba(24, 24, 24, .12);
  --accent:    #4B47D6;   /* 唯一强调色:选中框、控制柄、焦点环 */
  --on-accent: #FFFFFF;
  --ok:        #2F7A4C;   /* 语义色:成功 */
  --err:       #B83A27;   /* 语义色:错误 */
  /* App 界面摹本 */
  --chrome:    #F6F6F1;   /* 窗口标题栏 */
  --pane:      #FAFAF6;   /* 侧面板 */
  --field:     #FFFFFF;   /* 输入框 */
  --dots:      #DCDCD5;   /* 红绿灯(灰) */
  --canvas:    #E9E9E1;   /* 编辑器画布 */
  --canvas-dot: rgba(24, 24, 24, .10);
  --shadow:    rgba(24, 24, 24, .28);

  /* 字体:拉丁走 Geist,中文回落系统(苹方 / 微软雅黑) */
  --f-sans: "Geist", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
            "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, "PingFang SC", "Microsoft YaHei", monospace;

  /* 字号阶梯 12 / 14 / 18 / 48 / 64 */
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-md: 18px;
  --fs-lg: 24px;                          /* 正文页二级标题 */
  --fs-xl: clamp(32px, 4.4vw, 48px);      /* 段标题 */
  --fs-2xl: clamp(40px, 6vw, 64px);       /* 超大标题 */
  --lh-md: 28px;

  /* 尺寸 */
  --col: 1080px;          /* 画板栏宽 */
  --inset: 56px;          /* 画板内边距 */
  --seg-y: 104px;         /* 分段上下留白 */
  --nav-h: 60px;
  --r-sm: 4px;            /* 按钮、输入框 */
  --r-md: 8px;            /* 卡片 */
  --r-lg: 12px;           /* 窗口 */
}

/* 暗色:照 paper.design 的暗色模式——明暗对调,字用浅色的纸色,灰行不变 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111111; --board: #000000; --ink: #EFEFE4; --on-ink: #111111; --ink-hover: #D4D4C8;
    --grey: #8F8F8F; --body2: #A6A6A0; --line: #262626; --knot: #5A5A57;
    --faint: rgba(239, 239, 228, .06); --tick: rgba(239, 239, 228, .14);
    --accent: #8C89FF; --on-accent: #0B0B1A; --ok: #6CC891; --err: #FF8A75;
    --chrome: #1A1A1A; --pane: #141414; --field: #1C1C1C; --dots: #3A3A3A;
    --canvas: #1E1E1E; --canvas-dot: rgba(239, 239, 228, .08); --shadow: rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
/* data-theme 只给样张的明暗切换用;正式站不写这个属性,纯跟随系统 */
:root[data-theme="dark"] {
  --paper: #111111; --board: #000000; --ink: #EFEFE4; --on-ink: #111111; --ink-hover: #D4D4C8;
  --grey: #8F8F8F; --body2: #A6A6A0; --line: #262626; --knot: #5A5A57;
  --faint: rgba(239, 239, 228, .06); --tick: rgba(239, 239, 228, .14);
  --accent: #8C89FF; --on-accent: #0B0B1A; --ok: #6CC891; --err: #FF8A75;
  --chrome: #1A1A1A; --pane: #141414; --field: #1C1C1C; --dots: #3A3A3A;
  --canvas: #1E1E1E; --canvas-dot: rgba(239, 239, 228, .08); --shadow: rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- 2. 基础与排版 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  position: relative;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-md)/var(--lh-md) var(--f-sans);
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }

/* 段标题:两色,第一行墨色,后面灰色 */
.t-display, .t-display-xl {
  margin: 0; font-weight: 360; letter-spacing: -.02em; text-wrap: balance;
  /* 中文标题只在标点和空格处断行,避免「哪 / 台」这种断法;一行实在放不下时才任意断 */
  word-break: keep-all; overflow-wrap: anywhere;
}
.t-display    { font-size: var(--fs-xl);  line-height: 1.16; }
.t-display-xl { font-size: var(--fs-2xl); line-height: 1.1; }
/* 拉丁字母不需要中文那么高的行距,贴近 Paper 的 1.0 */
:lang(en) .t-display, .t-display:lang(en)       { line-height: 1.04; }
:lang(en) .t-display-xl, .t-display-xl:lang(en) { line-height: 1.0; }
.t-display > span, .t-display-xl > span { display: block; }
.ink  { color: var(--ink); }
.grey { color: var(--grey); }
/* 英文标题是否全小写待定(规划第九节第 2 问),先做成可选 */
.lc { text-transform: lowercase; }

.t-title { margin: 0; font-size: var(--fs-md); line-height: var(--lh-md); font-weight: 550; }
.t-body  { margin: 0; }
.t-muted { color: var(--body2); }
.t-small { font-size: var(--fs-sm); line-height: 22px; }
.t-mono  { font-family: var(--f-mono); font-size: var(--fs-xs); line-height: 18px; letter-spacing: 0; }
.t-caps  { font-size: var(--fs-sm); line-height: 22px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--body2); }

.eyebrow { margin: 0 0 16px; color: var(--ink); }
.lead { margin: 20px 0 0; max-width: 37em; text-wrap: pretty; }

/* 段头:眉题 + 两色标题 + 引言;--center 居中 */
.head { max-width: 44em; }
.head--center { margin-inline: auto; text-align: center; }
.head--center .lead { margin-inline: auto; }
.head .actions { margin-top: 28px; }
.head--center .actions { justify-content: center; }

/* ---------- 3. 画板栏、分段、格子 ---------- */
/* 画板栏:页面中间一条两侧带竖线的栏,所有内容排在里面 */
.board {
  position: relative; z-index: 1;
  max-width: min(var(--col), calc(100% - 10px)); margin: 0 auto;  /* keep the 4px corner knots inside a window just the column wide */
  border-inline: 1px solid var(--line);
}
/* 分段:顶边一条横线,两端各一个锚点方块(像选中框的角点) */
.seg { position: relative; border-top: 1px solid var(--line); }
.seg:first-child { border-top: 0; }
.seg::before, .seg::after {
  content: ""; position: absolute; top: -4px; width: 7px; height: 7px; z-index: 2;
  background: var(--board); border: 1px solid var(--knot);
}
.seg::before { left: -4px; }
.seg::after  { right: -4px; }
.seg:first-child::before, .seg:first-child::after { display: none; }
.seg--panel { background: var(--board); }           /* 更白的一块 */
.seg__in { padding: var(--seg-y) var(--inset); }
.seg__in--tight { padding-block: 56px; }

/* 格子:细线分开的 2 / 3 / 4 栏,放在大图或段头下面 */
.cells { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); border-top: 1px solid var(--line); }
.cells--3 { --n: 3; }
.cells--4 { --n: 4; }
.cell { padding: 32px var(--inset) 40px; min-width: 0; }
.cells--3 .cell, .cells--4 .cell { padding-inline: 32px; }
.cells--3 .cell:first-child, .cells--4 .cell:first-child { padding-left: var(--inset); }
.cell + .cell { border-left: 1px solid var(--line); }
.cell .t-title { margin-bottom: 8px; }
.cell p { margin: 0; color: var(--body2); }
.cell__media { margin: -32px calc(-1 * var(--inset)) 28px; border-bottom: 1px solid var(--line); }

/* 行内动作组 */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

/* ---------- 4. 母题 ---------- */
/* 页面边缘标尺:刻度 CSS 画,数字由 v2.js 补(单位 pt) */
.ruler {
  position: absolute; top: 0; bottom: 0; width: 22px; z-index: 0; pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, var(--faint) 0 1px, transparent 1px 8px) right / 6px 100% no-repeat,
    repeating-linear-gradient(to bottom, var(--tick) 0 1px, transparent 1px 40px) right / 12px 100% no-repeat;
}
.ruler--left  { left: calc(50% - var(--col) / 2 - 22px); }
.ruler--right { left: calc(50% + var(--col) / 2); transform: scaleX(-1); }
.ruler span {
  position: absolute; right: 14px; transform: translateY(-50%);
  font: 400 9px/1 var(--f-mono); color: var(--grey); letter-spacing: 0;
}
.ruler--right span { transform: translateY(-50%) scaleX(-1); }

/* 单个锚点方块 / 控制点圆,绝对定位用 */
.knot, .knob { position: absolute; z-index: 2; transform: translate(-50%, -50%); }
.knot { width: 8px; height: 8px; background: var(--board); border: 1.5px solid var(--accent); }
.knob { width: 9px; height: 9px; border-radius: 50%; background: var(--board); border: 1.5px solid var(--accent); }

/* 贝塞尔拱:钢笔工具画半圆的样子——三个锚点 + 四个控制柄,控制柄随滚动轻动(v2.js) */
.arch { position: relative; padding: 150px var(--inset) var(--seg-y); }
.arch__geo { position: absolute; left: calc(var(--inset) + 24px); right: calc(var(--inset) + 24px); top: 64px; bottom: 0; pointer-events: none; }
.arch__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.arch__curve  { fill: none; stroke: var(--line); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.arch__handle { stroke: var(--accent); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .55; }
.arch > .head { position: relative; z-index: 1; }

/* 方格纸:淡网格,配 mask 渐隐 */
.gridpaper {
  background:
    linear-gradient(var(--faint) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, var(--faint) 1px, transparent 1px) 0 0 / 16px 16px;
}

/* 选中框:靛蓝描边 + 四角手柄 + 尺寸标签。给任何 position:relative 的东西套一层 */
.sel { position: absolute; border: 1.5px solid var(--accent); pointer-events: none; }
.sel > i { position: absolute; width: 7px; height: 7px; background: var(--board); border: 1.5px solid var(--accent); }
.sel > i:nth-child(1) { left: -4px; top: -4px; }
.sel > i:nth-child(2) { right: -4px; top: -4px; }
.sel > i:nth-child(3) { left: -4px; bottom: -4px; }
.sel > i:nth-child(4) { right: -4px; bottom: -4px; }
.sel__size {
  position: absolute; left: 50%; top: calc(100% + 7px); transform: translateX(-50%);
  background: var(--accent); color: var(--on-accent); border-radius: 3px; padding: 1px 5px;
  font: 500 10px/15px var(--f-mono); white-space: nowrap; letter-spacing: 0;
}

/* ---------- 5. 组件 ---------- */

/* 导航:左品牌 / 中链接 / 右动作;窄屏链接换到第二行横向滚动 */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
          backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--col); min-height: var(--nav-h); margin: 0 auto; padding-inline: var(--inset);
  display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "brand links actions";
  align-items: center; column-gap: 24px;
}
.brand { grid-area: brand; display: inline-flex; align-items: center; gap: 9px; font-weight: 520; letter-spacing: -.01em; }
.brand img { width: 22px; height: 22px; border-radius: 5px; }
.nav__links { grid-area: links; display: flex; gap: 28px; }
.nav__links a, .nav__lang { transition: color .15s; white-space: nowrap; }
.nav__links a:hover, .nav__lang:hover, .nav__links a[aria-current="true"] { color: var(--body2); }
.nav__actions { grid-area: actions; justify-self: end; display: flex; align-items: center; gap: 16px; }
.nav__lang { font-family: var(--f-mono); font-size: var(--fs-sm); letter-spacing: 0; }

/* 外观切换:导航右上角的图标按钮,依次 跟随系统 → 浅色 → 深色 */
.theme-toggle {
  display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: transparent; color: var(--ink); cursor: pointer;
  transition: border-color .15s;
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle svg { width: 16px; height: 16px; display: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.theme-toggle[data-mode="system"] .i-system,
.theme-toggle[data-mode="light"] .i-light,
.theme-toggle[data-mode="dark"] .i-dark { display: block; }

/* 语言菜单:导航右上角,原生 details,无 JS 也能用 */
.lang-menu { position: relative; }
.lang-menu > summary { white-space: nowrap;
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 8px;
  border: 1px solid transparent; border-radius: var(--r-sm); font: 400 var(--fs-sm)/1 var(--f-mono); letter-spacing: 0; color: var(--ink);
}
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.lang-menu > summary:hover, .lang-menu[open] > summary { border-color: var(--line); }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; list-style: none; margin: 0; padding: 6px; min-width: 160px;
  background: var(--board); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 16px 32px -16px var(--shadow);
}
.lang-menu a { display: flex; justify-content: space-between; gap: 16px; padding: 7px 10px; border-radius: 5px; font-size: var(--fs-sm); line-height: 20px; }
.lang-menu a:hover { background: var(--faint); }
.lang-menu a[aria-current="true"] { font-weight: 550; }
.lang-menu a span { font: 400 var(--fs-xs)/20px var(--f-mono); color: var(--grey); }

/* 按钮:黑色矩形主按钮(暗色下自动变浅底深字)、描边次按钮、文字链 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--r-sm);
  background: var(--ink); color: var(--on-ink);
  font-size: var(--fs-md); font-weight: 480; white-space: nowrap; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--ink-hover); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--line:hover { background: transparent; border-color: var(--ink); }
.btn--sm { height: 32px; padding: 0 12px; font-size: 15px; }
.btn svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.textlink { color: var(--ink); transition: color .15s; }
.textlink:hover { color: var(--body2); }
.textlink--inline { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.textlink--inline:hover { text-decoration-color: currentColor; }

/* 标签:等宽小字 */
.tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 6px;
  border: 1px solid var(--line); border-radius: 3px;
  font: 500 11px/1 var(--f-mono); letter-spacing: .02em; color: var(--body2); white-space: nowrap;
}
.tag--accent { border-color: var(--accent); color: var(--accent); }
/* 标题里的小标签(如平台卡上的「即将上线」),与标题文字居中对齐 */
.t-title > .tag { margin-left: 6px; vertical-align: 2px; }
.tag--ink { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }

/* 筛选:作品类别。沿用现有脚本的 [data-filter] + aria-pressed */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: transparent; color: var(--ink); font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }

/* 作品卡:作品自带颜色,卡片只给细线框;悬停出现选中框 + 尺寸 */
.art { position: relative; margin: 0; }
.art__frame { position: relative; display: block; background: var(--board); box-shadow: 0 0 0 1px var(--line); }
.art__frame img { width: 100%; height: auto; }
.art__frame .sel { inset: -1px; opacity: 0; transition: opacity .15s; }
.art__frame:hover .sel, .art__frame:focus-visible .sel { opacity: 1; }
.art__frame .sel__size { display: none; }   /* 尺寸已写在说明里 */
.art figcaption { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; color: var(--body2); }
.art figcaption .t-mono { color: var(--grey); }

/* 对比:左边「生图 AI」、右边「VectorShop」 */
.ticks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink);
}
.ticks li::after {
  content: ""; position: absolute; left: 4px; top: 10px; width: 6px; height: 3.5px;
  border-left: 1.5px solid var(--on-ink); border-bottom: 1.5px solid var(--on-ink); transform: rotate(-45deg);
}
.ticks--no li { color: var(--body2); }
.ticks--no li::before { background: transparent; box-shadow: inset 0 0 0 1px var(--knot); }
.ticks--no li::after {
  left: 3px; top: 13.5px; width: 8px; height: 0; border-left: 0;
  border-bottom: 1.5px solid var(--knot); transform: none;
}

/* 平台条:Mac / iPad / iPhone 三端 + 插件宿主。设备图标用线框画,随主题变色 */
.platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.platform { display: grid; justify-items: start; align-content: start; gap: 6px; padding: 32px var(--inset) 36px; min-width: 0; }
.platform + .platform { border-left: 1px solid var(--line); }
.platform .t-title { margin-top: 18px; }
.platform p { margin: 0; color: var(--body2); }
.device { position: relative; height: 56px; display: grid; align-items: end; }
.device i { display: block; border: 1.5px solid var(--ink); }
.device--mac i:first-child  { width: 84px; height: 50px; border-radius: 5px 5px 0 0; border-bottom-width: 5px; }
.device--mac i:last-child   { width: 104px; height: 6px; margin-left: -10px; border-radius: 0 0 6px 6px; border-top: 0; }
.device--ipad i  { width: 70px; height: 52px; border-radius: 7px; }
.device--iphone i { width: 28px; height: 54px; border-radius: 7px; }
.device--ipad i::after, .device--iphone i::after { content: ""; display: block; width: 10px; height: 1.5px; margin: 4px auto 0; background: var(--ink); border-radius: 1px; }
.hosts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding: 18px var(--inset); border-top: 1px solid var(--line); color: var(--body2); }
.hosts b { color: var(--ink); font-weight: 500; }

/* 设备组合:Mac 窗口居中,iPad 压左下,iPhone 压右下。截图都是 App 真截图 */
.devices { position: relative; padding: 0 6% 9%; }
.dev { position: relative; margin: 0; }
.dev img { width: 100%; height: auto; }
.dev--mac img { border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px var(--shadow); }
/* iPad / iPhone:苹果官方外框(Apple Design Resources),截图垫在外框的屏幕洞下面。
   百分比来自外框 PNG 实测:iPad Pro 13" 横版 3000×2300,屏幕 2752×2064 @ (124,118);
   iPhone 18 Pro Max 竖版 1470×3000,屏幕 1320×2868 @ (75,66)。外框不得改动。 */
.dev--ipad, .dev--iphone { position: absolute; bottom: 0; filter: drop-shadow(0 30px 34px var(--shadow)); }
.dev--ipad   { left: 0; width: 46%; }
.dev--iphone { right: 1%; width: 17.5%; }
.dev__bezel { position: relative; z-index: 1; width: 100%; height: auto; pointer-events: none; }
.dev__screen { position: absolute; z-index: 0; object-fit: cover; }
/* 截图按屏幕开口的圆角裁切(实测半径 iPad 42px、iPhone 164px,略放大让边缘藏在外框下),否则直角会露出机身轮廓 */
.dev--ipad .dev__screen   { left: 4.133%; top: 5.130%; width: 91.733%; height: 89.739%; border-radius: 1.7% / 2.25%; }
.dev--iphone .dev__screen { left: 5.102%; top: 2.2%; width: 89.796%; height: 95.6%; border-radius: 12.9% / 5.95%; }
.dev figcaption { position: absolute; left: 0; top: calc(100% + 10px); white-space: nowrap; color: var(--body2); }

/* 录屏片段:真实录屏,标注是否加速 */
.clip { margin: 0; }
.clip video, .clip img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px var(--shadow); background: var(--canvas); }
.clip figcaption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; color: var(--body2); }
.clip__ctl { font: inherit; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; }
.clip__ctl:hover { color: var(--accent); }

/* 插件实录(动画 B):左终端、右画布。默认 DOM 是最后一帧,v2.js 进入视口后回放 */
.agentdemo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.agentdemo .term { display: flex; flex-direction: column; min-width: 0; }
.agentdemo .term__body { flex: 1; min-height: 420px; white-space: normal; }
.agentdemo .term__body > * { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.agentdemo .ln-you { color: var(--ink); margin-bottom: 10px; }
.agentdemo .ln-you::before { content: "> "; color: var(--accent); }
.agentdemo .ln-tool { color: var(--ink); margin-top: 8px; }
.agentdemo .ln-tool::before { content: "⏺ "; color: var(--ok); }
.agentdemo .ln-tool b { font-weight: 600; }
.agentdemo .ln-out { color: var(--body2); padding-left: 2ch; }
.agentdemo .ln-out::before { content: "⎿ "; color: var(--grey); }
.agentdemo .ln-bad { color: var(--err); }
.agentdemo .ln-good { color: var(--ok); }
.agentdemo .ln-say { color: var(--ink); margin-top: 8px; }
.agentdemo .is-off { visibility: hidden; }
.agentdemo__stage {
  position: relative; display: grid; place-items: center; min-width: 0; padding: 28px 24px 52px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: radial-gradient(var(--canvas-dot) 1px, transparent 1.2px) 0 0 / 18px 18px, var(--canvas);
}
.agentdemo__poster { position: relative; width: min(100%, 300px); aspect-ratio: 1080 / 1350; box-shadow: 0 0 0 1px var(--faint), 0 16px 34px -18px var(--shadow); }
.agentdemo__poster img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .45s ease; }
.agentdemo__poster img.is-off { opacity: 0; visibility: visible; }
.agentdemo__flag { position: absolute; border: 1.5px dashed var(--err); border-radius: 2px; transition: opacity .3s; }
.agentdemo__flag span {
  position: absolute; right: 0; top: calc(100% + 4px); white-space: nowrap;
  background: var(--err); color: var(--board); border-radius: 3px; padding: 0 5px;
  font: 500 10px/15px var(--f-mono); letter-spacing: 0;
}
.agentdemo__flag.is-off { opacity: 0; visibility: visible; }
.agentdemo__ver { position: absolute; left: 24px; bottom: 16px; }
.agentdemo__files { position: absolute; right: 24px; bottom: 14px; display: flex; gap: 8px; transition: opacity .3s; }
.agentdemo__files.is-off { opacity: 0; visibility: visible; }

/* 回放通用状态 */
[data-replay] .is-off { visibility: hidden; }

[data-replay] .rp-fade { transition: opacity .45s ease; }
[data-replay] .rp-fade.is-off { visibility: visible; opacity: 0; }

.demo-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; color: var(--body2); }

/* 插件段:效果图 → 复刻 */
.agentdemo__concept { position: absolute; inset: 24px 24px 52px; display: grid; place-items: center; }
.agentdemo__concept img { width: 100%; height: auto; aspect-ratio: 1100 / 619; object-fit: contain; border-radius: 4px; box-shadow: 0 0 0 1px var(--faint), 0 16px 34px -18px var(--shadow); }
.agentdemo__thumb { position: absolute; left: 16px; top: 14px; width: 26%; z-index: 2; }
.agentdemo__thumb img { width: 100%; border-radius: 3px; box-shadow: 0 0 0 1px var(--line), 0 8px 18px -10px var(--shadow); }
.agentdemo__thumb .tag, .agentdemo__concept .tag { margin-top: 6px; }
.agentdemo__concept figure { margin: 0; width: min(100%, 520px); display: grid; justify-items: start; gap: 6px; }
.agentdemo__thumb { margin: 0; display: block; }
.agentdemo__thumb img { height: auto; aspect-ratio: 1100 / 619; object-fit: cover; }
.agentdemo__thumb .tag { display: inline-flex; }
.agentdemo__poster--wide { width: min(100%, 520px); aspect-ratio: 1600 / 900; }
.agentdemo__poster .sel { z-index: 1; }

/* 大图弹层(lightbox.js) */
body.lb-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 3.2rem clamp(3.4rem, 7vw, 5rem) 2.2rem;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.lightbox[hidden] { display: none; }
.lightbox__stage { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; max-height: 100%; margin: 0; }
.lightbox__img { max-width: 100%; width: auto; height: auto; object-fit: contain; max-height: calc(100dvh - 8.5rem); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px var(--shadow); background: var(--board); }
.lightbox__meta { display: flex; align-items: baseline; gap: 14px; max-width: 100%; color: var(--body2); font-size: var(--fs-sm); }
.lightbox__cap { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox__count { font: 400 var(--fs-xs)/1 var(--f-mono); color: var(--grey); white-space: nowrap; }
.lightbox__nav, .lightbox__close {
  position: absolute; z-index: 1; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--board); color: var(--ink); cursor: pointer; transition: border-color .15s;
}
.lightbox__nav:hover, .lightbox__close:hover { border-color: var(--ink); }
.lightbox__nav svg, .lightbox__close svg { width: 20px; height: 20px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: clamp(.6rem, 2.2vw, 1.6rem); }
.lightbox__nav--next { right: clamp(.6rem, 2.2vw, 1.6rem); }
.lightbox__close { top: clamp(.6rem, 2vh, 1.1rem); right: clamp(.6rem, 2.2vw, 1.6rem); }

/* 作品网格:按列排,构建期分好列(P3);样张先用三列 */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; align-items: start; }
.works__col { display: grid; gap: 32px; align-content: start; }

/* App 窗口摹本(动画与截图外框共用) */
.win {
  background: var(--board); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 1px 0 var(--faint), 0 40px 80px -40px var(--shadow);
}
.win__bar {
  height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 14px;
  background: var(--chrome); border-bottom: 1px solid var(--line);
}
.lights { display: flex; gap: 7px; flex: none; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--dots); }
.win__title { font: 400 var(--fs-xs)/1 var(--f-mono); color: var(--body2); letter-spacing: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 终端:插件安装命令、动画 B */
.term { font-family: var(--f-mono); font-size: 13px; line-height: 21px; letter-spacing: 0; }
.term .win__bar { justify-content: space-between; }
.term__body { margin: 0; padding: 16px 18px 18px; overflow-x: auto; background: var(--board); }
.term__line { display: block; white-space: pre; }
.term__line::before { content: "› "; color: var(--accent); }
.term__out { display: block; white-space: pre; color: var(--body2); }
.term__nb { white-space: nowrap; }
.copy {
  height: 24px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--field); color: var(--body2); font: 400 11px/1 var(--f-mono); cursor: pointer; flex: none;
}
.copy:hover { color: var(--ink); border-color: var(--ink); }
.copy[data-state="done"] { color: var(--ok); border-color: var(--ok); }

/* 标签页:下划线式 */
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs [role="tab"] {
  position: relative; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--body2); font-size: 15px; white-space: nowrap;
}
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); }
.tabs [role="tab"][aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1.5px; background: var(--ink); }
.tabpanel { padding-top: 20px; }

/* 规格清单:左等宽键,右值 */
.specs { display: grid; grid-template-columns: max-content minmax(0, 1fr); margin: 0; border-top: 1px solid var(--line); }
.specs dt, .specs dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs dt { padding-right: 32px; font: 400 var(--fs-xs)/28px var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--body2); }

/* 定价卡 */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.plan { background: var(--board); border: 1px solid var(--line); border-radius: var(--r-md); padding: 32px; min-width: 0; }
.plan--pro { border-color: var(--ink); }
.plan__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan__price { margin: 18px 0 4px; font-size: var(--fs-xl); line-height: 1; font-weight: 360; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan__price small { font-size: var(--fs-sm); letter-spacing: .01em; color: var(--body2); margin-left: 6px; }
.plan__opts { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(4em, max-content) 1fr auto; column-gap: 12px; }  /* label column = the longest label (Dauerhaft, De por vida) */
.plan__opts li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.plan__opts b { font-weight: 500; }
.plan .ticks { margin-top: 22px; }
.plan__note { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--fs-sm); line-height: 22px; color: var(--body2); }
.plan__note b { color: var(--ink); font-weight: 550; }
.fineprint { margin: 20px 0 0; font-size: var(--fs-sm); line-height: 22px; color: var(--body2); }

/* FAQ:原生 details,细线分隔,+ 号旋转成 × */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: grid; grid-template-columns: 3em minmax(0, 1fr) 20px; align-items: baseline; gap: 8px;
  padding: 20px 0; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q { font: 400 var(--fs-xs)/1 var(--f-mono); color: var(--grey); letter-spacing: 0; }
.faq summary .plus { position: relative; width: 14px; height: 14px; align-self: center; transition: transform .2s; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--ink); }
.faq summary .plus::after { transform: rotate(90deg); }
.faq details[open] .plus { transform: rotate(45deg); }
.faq summary:hover { color: var(--body2); }
.faq__a { margin: 0; padding: 0 28px 24px 3em; padding-left: calc(3em + 8px); max-width: 44em; color: var(--body2); }

/* 表格:对比页、法务页 */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table th, .table td { text-align: left; vertical-align: top; padding: 14px 24px 14px 0; border-bottom: 1px solid var(--line); }
.table th { font: 500 var(--fs-xs)/18px var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--body2); white-space: nowrap; }
.table td { font-size: 16px; line-height: 26px; }
.table td:first-child { font-weight: 500; }

/* 表单:建议箱 */
.field { display: grid; gap: 8px; }
.field + .field { margin-top: 20px; }
.field label { font-size: var(--fs-sm); line-height: 20px; font-weight: 500; }
.input, .textarea, .select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--field); color: var(--ink); font: 400 16px/24px var(--f-sans); letter-spacing: .01em;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 140px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--grey); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.field__help { font-size: var(--fs-sm); line-height: 20px; color: var(--body2); }
.status { font-size: var(--fs-sm); line-height: 20px; }
.status--ok { color: var(--ok); }
.status--err { color: var(--err); }

/* 建议箱:左说明、右表单 */
.feedback { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.feedback__card { background: var(--board); border: 1px solid var(--line); border-radius: var(--r-md); padding: 32px; min-width: 0; }
.feedback__card form { display: grid; gap: 20px; }
.feedback__card .field + .field { margin-top: 0; }
.feedback-label-row { display: flex; justify-content: space-between; align-items: baseline; }
.feedback-label-row span, .field label span { color: var(--grey); font-weight: 400; font-size: var(--fs-xs); font-family: var(--f-mono); }
.feedback-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.feedback-consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); line-height: 22px; color: var(--body2); }
.feedback-consent input { margin-top: 4px; accent-color: var(--ink); }
.feedback-status { margin: 0; font-size: var(--fs-sm); line-height: 20px; min-height: 20px; color: var(--body2); }
.feedback-status.is-error { color: var(--err); }
.feedback-status.is-success { color: var(--ok); }
.feedback-submit { justify-self: start; }
.feedback-submit:disabled { opacity: .45; cursor: not-allowed; }

/* 正文:隐私政策、第三方许可、新闻稿 */
.prose { max-width: 42em; font-size: 17px; line-height: 30px; }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin: 48px 0 0; font-size: var(--fs-lg); line-height: 32px; font-weight: 450; letter-spacing: -.01em; }
.prose h3 { margin: 32px 0 0; font-size: var(--fs-md); line-height: var(--lh-md); font-weight: 600; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.prose a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose code { font: 400 .86em/1 var(--f-mono); padding: 2px 5px; border-radius: 3px; background: var(--faint); }
.prose .meta { color: var(--body2); font-size: var(--fs-sm); }

/* 法务页沿用的两种段落:作者/许可证一行、补充说明;许可证原文 */
.prose .legal__facts { font: 400 var(--fs-xs)/20px var(--f-mono); letter-spacing: 0; color: var(--body2); }
.prose .legal__facts b { color: var(--ink); font-weight: 500; margin-right: 4px; }
.prose .legal__note { font-size: var(--fs-sm); line-height: 22px; color: var(--body2); padding-left: 14px; border-left: 2px solid var(--line); }
.prose pre { margin-top: 12px; max-height: 260px; overflow: auto; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--board); font: 400 12px/18px var(--f-mono); letter-spacing: 0; color: var(--body2); white-space: pre-wrap; }

/* 英文独有页沿用的块:对比表、适合谁卡片、FAQ、新闻资料事实表与素材卡 */
.prose .cmp-table-wrap { margin-top: 20px; overflow-x: auto; border-top: 1px solid var(--line); }
.prose .cmp-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 24px; }
.prose .cmp-table caption { caption-side: bottom; text-align: left; padding-top: 12px; font-size: var(--fs-sm); line-height: 22px; color: var(--body2); }
.prose .cmp-table th, .prose .cmp-table td { text-align: left; vertical-align: top; padding: 12px 18px 12px 0; border-bottom: 1px solid var(--line); }
.prose .cmp-table thead th { font: 500 var(--fs-xs)/18px var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--body2); }
.prose .cmp-table tbody th { font-weight: 550; width: 22%; }
.prose .cmp-table td.us { color: var(--ink); }
.prose .cmp-table td.them { color: var(--body2); }
.prose .fit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.prose .fit-card { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--board); padding: 24px; min-width: 0; }
.prose .fit-card h3 { margin: 0 0 10px; }
.prose .fit-card ul { margin: 0; }
.prose .faq__list { border-top: 1px solid var(--line); margin-top: 20px; }
.prose .faq__item { border-bottom: 1px solid var(--line); }
.prose .faq__item summary { display: grid; grid-template-columns: 3em minmax(0, 1fr) 20px; align-items: baseline; gap: 8px; padding: 16px 0; cursor: pointer; list-style: none; }
.prose .faq__item summary::-webkit-details-marker { display: none; }
.prose .faq__item .q { font: 400 var(--fs-xs)/1 var(--f-mono); color: var(--grey); }
.prose .faq__item .plus { position: relative; width: 14px; height: 14px; align-self: center; transition: transform .2s; }
.prose .faq__item .plus::before, .prose .faq__item .plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--ink); }
.prose .faq__item .plus::after { transform: rotate(90deg); }
.prose .faq__item[open] .plus { transform: rotate(45deg); }
.prose .faq__answer { margin: 0; padding: 0 0 18px calc(3em + 8px); color: var(--body2); }
.prose .with-badge { margin-top: 28px; }
.prose .with-badge a { text-decoration: none; }
.prose .press-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; border-top: 1px solid var(--line); }
.prose .press-facts__row { padding: 12px 18px 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.prose .press-facts__row dt { font: 400 var(--fs-xs)/18px var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--body2); }
.prose .press-facts__row dd { margin: 4px 0 0; font-size: 15px; line-height: 24px; }
.prose .press-assets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.prose .press-asset { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--board); padding: 16px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.prose .press-asset img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); }
.prose .press-asset__meta { margin: 0; font-size: var(--fs-sm); line-height: 22px; color: var(--body2); }
.prose .press-asset .btn { justify-self: start; text-decoration: none; }
.prose .press-pending { color: var(--body2); font-size: var(--fs-sm); }
@media (max-width: 640px) {
  .prose .fit-grid, .prose .press-facts, .prose .press-assets { grid-template-columns: minmax(0, 1fr); }
  .prose .faq__answer { padding-left: 0; }
}

/* 页脚:分组链接 + 底部超大淡色字标 */
.foot { position: relative; overflow: hidden; padding: 72px var(--inset) 0; }
.foot__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot__brand img { width: 30px; height: 30px; border-radius: 7px; }
.foot__group { display: grid; gap: 10px; align-content: start; }
.foot__group .t-caps { margin-bottom: 6px; }
.foot__group a { transition: color .15s; }
.foot__group a:hover { color: var(--body2); }
.foot__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 64px; color: var(--body2); }
.foot__note { margin: 12px 0 0; max-width: 46em; font-size: var(--fs-sm); line-height: 22px; color: var(--body2); }
.foot__mark {
  display: block; margin: 40px 0 -0.22em; white-space: nowrap; user-select: none;
  font-size: clamp(64px, 15.5vw, 196px); line-height: 1; font-weight: 600; letter-spacing: -.045em;
  color: color-mix(in srgb, var(--ink) 5%, transparent);
}

/* ---------- 6. 窄屏与减少动态 ---------- */
@media (max-width: 1180px) {
  .ruler { display: none; }
}
/* nav goes to two rows before the longest language's links (es, ja) stop fitting on one */
@media (max-width: 1080px) {
  .nav__inner { grid-template-columns: 1fr auto; grid-template-areas: "brand actions" "links links"; }
  .nav__links {
    gap: 22px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 10px;
    margin-inline: calc(-1 * var(--inset)); padding-inline: var(--inset);
    font-size: 15px;
  }
  .nav__links::-webkit-scrollbar { display: none; }
}
@media (max-width: 900px) {
  :root { --inset: 28px; --seg-y: 80px; }
  .cells--3, .cells--4 { --n: 2; }
  .cells--3 .cell, .cells--4 .cell { padding-inline: var(--inset); }
  .cells--4 .cell:nth-child(3) { border-left: 0; }
  .cells--4 .cell:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cells--3 .cell:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .platform { padding-inline: 28px; }
  .foot__grid { grid-template-columns: repeat(3, 1fr); }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --inset: 16px; --seg-y: 64px; }
  .board { border-inline: 0; max-width: none; }
  .seg::before, .seg::after { display: none; }
  .cells, .cells--3, .cells--4 { --n: 1; }
  .cell + .cell, .cells--3 .cell:nth-child(3), .cells--4 .cell:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); grid-column: auto; }
  .platforms { grid-template-columns: minmax(0, 1fr); }
  .lightbox { padding: 2.8rem .9rem 2rem; }
  .lightbox__nav { width: 38px; height: 38px; }
  .works { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 16px; }
  .agentdemo { grid-template-columns: minmax(0, 1fr); }
  .feedback { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .agentdemo .term__body { min-height: 0; }
  .devices { padding: 0 0 14%; }
  .dev--ipad { width: 54%; }
  .dev--iphone { width: 23%; right: 0; }
  .platform { grid-template-columns: 112px minmax(0, 1fr); align-items: center; column-gap: 16px; padding: 24px var(--inset); }
  .platform .device { grid-row: span 3; }
  .platform .tag { grid-column: 2; justify-self: start; max-width: 100%; height: auto; min-height: 20px; padding-block: 4px; white-space: normal; line-height: 13px; }  /* fr: « macOS 26 ou version ultérieure » */
  .platform .t-title { margin-top: 0; }
  .platform + .platform { border-left: 0; border-top: 1px solid var(--line); }
  .arch { padding-top: 96px; }
  .arch__geo { display: none; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan { padding: 24px; }
  .feedback__card { padding: 20px; }
  .specs { grid-template-columns: minmax(0, 1fr); }
  .specs dt { padding-bottom: 0; border-bottom: 0; }
  .faq__a { padding-left: 0; padding-right: 0; }
  .faq summary { grid-template-columns: 2.4em minmax(0, 1fr) 20px; }
  .foot__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* 360px phones: the header keeps the icon, drops the wordmark, so the longest download label (fr) still fits */
@media (max-width: 380px) {
  .brand span { display: none; }
}

/* =============================================================
   范例库(examples.html,只在本机,不发布)+ 策展工作台(curate.js)
   工作台的规则全部挂在 body.curating 下:线上永远不加载 curate.js,这段没有效果。
   ============================================================= */
.examples .cat-section { margin-top: 56px; scroll-margin-top: 90px; }
.examples .cat-section[hidden] { display: none; }
.cat-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 20px; padding-bottom: 12px;
            border-bottom: 1px solid var(--line); font-size: 20px; line-height: 28px; font-weight: 500; letter-spacing: -.01em; }
.cat-head em { font: 400 var(--fs-xs)/1 var(--f-mono); font-style: normal; color: var(--grey); }
.examples .masonry { column-count: 4; column-gap: 20px; }
.examples .masonry figure { break-inside: avoid; margin: 0 0 20px; }
.examples .masonry .shot { display: block; background: var(--board); box-shadow: 0 0 0 1px var(--line); }
.examples .masonry img { display: block; width: 100%; height: auto; }
.examples .masonry figcaption { margin-top: 8px; font: 400 var(--fs-xs)/18px var(--f-mono); color: var(--body2);
                                white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.examples-empty { color: var(--body2); }
@media (max-width: 900px) { .examples .masonry { column-count: 2; } }

body.curating { overflow: hidden; }
body.curating > .nav, body.curating > .board, body.curating > .ruler { display: none; }
body.curating [hidden] { display: none !important; }

.cw { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100vh; height: 100dvh;
      background: var(--paper); color: var(--ink); font-size: var(--fs-sm); }
.cw-bar, .cw-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; background: var(--board); }
.cw-bar { border-bottom: 1px solid var(--line); }
.cw-foot { border-top: 1px solid var(--line); }

/* 步骤、分段、按钮、输入:与站内 .btn / .chip 同一套方角发丝线 */
.cw-steps { display: flex; align-items: center; gap: 6px; }
.cw-steps span { color: var(--grey); }
.cw-steps button, .cw-btn, .cw-seg button, .cw-search, .cw-select {
  appearance: none; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: transparent; color: var(--ink); font: inherit; font-size: var(--fs-sm); cursor: pointer; }
.cw-steps button { display: inline-flex; align-items: center; gap: 8px; color: var(--body2); }
.cw-steps button i { font: 500 11px/1 var(--f-mono); font-style: normal; color: var(--grey); }
.cw-steps button.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.cw-steps button.on i { color: inherit; opacity: .7; }
.cw-search { flex: 0 1 240px; min-width: 120px; cursor: text; }
.cw-search:focus, .cw-select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.cw-select { padding-right: 8px; }
.cw-seg { display: inline-flex; }
.cw-seg button { border-radius: 0; color: var(--body2); }
.cw-seg button + button { margin-left: -1px; }
.cw-seg button:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.cw-seg button:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.cw-seg button.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); position: relative; }
.cw-btn:hover, .cw-seg button:hover, .cw-steps button:hover { border-color: var(--ink); }
.cw-btn.cw-solid { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.cw-btn.cw-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 500; }
.cw-btn[disabled] { opacity: .4; cursor: not-allowed; border-color: var(--line); }
.cw-tally { margin-left: auto; font: 400 var(--fs-xs)/1 var(--f-mono); color: var(--body2); white-space: nowrap; }
.cw-tally b { color: var(--accent); font-weight: 500; }
.cw-grow { margin-left: auto; }
.cw-dirty { font: 400 var(--fs-xs)/1 var(--f-mono); color: var(--grey); }
.cw-dirty.on { color: var(--accent); }
.cw-dirty.on::before { content: "●"; margin-right: 6px; }

/* ---------- 步骤 1:选图 ---------- */
.cw-stage { min-height: 0; }
.cw-pick { overflow: auto; padding: 16px 16px 40px; }
.cw-pool { column-count: 5; column-gap: 16px; }
@media (max-width: 1500px) { .cw-pool { column-count: 4; } }
@media (max-width: 1150px) { .cw-pool { column-count: 3; } }
.cw-card { position: relative; break-inside: avoid; margin: 0 0 16px; cursor: pointer;
           background: var(--board); box-shadow: 0 0 0 1px var(--line); }
.cw-card img { display: block; width: 100%; height: auto; }
.cw-card figcaption { padding: 6px 8px; font: 400 11px/16px var(--f-mono); color: var(--grey);
                      white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-card figcaption b { color: var(--body2); font-weight: 500; }
.cw-card:hover { box-shadow: 0 0 0 1px var(--ink); }
.cw-card.on { box-shadow: 0 0 0 2px var(--accent); }
.cw-card.on img { opacity: .55; }
.cw-tick { position: absolute; top: 8px; left: 8px; z-index: 3; width: 20px; height: 20px; display: grid; place-items: center;
           background: var(--board); border: 1.5px solid var(--knot); color: var(--on-accent); font-size: 12px; }
.cw-card.on .cw-tick { background: var(--accent); border-color: var(--accent); }
.cw-tag { position: absolute; left: 8px; bottom: 36px; z-index: 3; padding: 1px 6px; border-radius: 3px;
          background: var(--accent); color: var(--on-accent); font: 500 10px/15px var(--f-mono); }
.cw-tag.is-wait { background: var(--ink); color: var(--on-ink); }
.cw-tag.is-work { left: auto; right: 8px; background: var(--board); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.cw-zoom { position: absolute; top: 8px; right: 8px; z-index: 4; width: 24px; height: 24px; display: grid; place-items: center;
           border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--board); color: var(--ink);
           cursor: pointer; opacity: 0; transition: opacity .15s; }
.cw-card:hover .cw-zoom { opacity: 1; }

/* ---------- 步骤 2:排序 ---------- */
.cw-sort { display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.cw-tray { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--board); }
.cw-tray__head { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cw-tray__head p { margin: 6px 0 0; font-size: var(--fs-xs); line-height: 18px; color: var(--body2); }
.cw-board h3, .cw-tray__head h3 { display: flex; align-items: center; gap: 8px; margin: 0;
           font-size: var(--fs-xs); line-height: 18px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--body2); }
.cw-board h3 em, .cw-tray__head h3 span { font: 400 var(--fs-xs)/1 var(--f-mono); font-style: normal; color: var(--grey); letter-spacing: 0; }
.cw-board h3 small { font-size: var(--fs-xs); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--grey); }
.cw-tray__list { flex: 1; overflow: auto; padding: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-content: start; }
.cw-tray__empty { grid-column: 1 / -1; padding: 32px 8px; text-align: center; color: var(--body2); font-size: var(--fs-xs); line-height: 20px; }
.cw-chip { position: relative; aspect-ratio: 1; cursor: grab; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.cw-chip img { position: absolute; inset: 4px; margin: auto; max-width: calc(100% - 8px); max-height: calc(100% - 8px); width: auto; height: auto; }
.cw-chip:hover { box-shadow: 0 0 0 1.5px var(--accent); }
.cw-chip.is-dragging { opacity: .3; }
.cw-chip span { position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); z-index: 9;
                padding: 2px 6px; border-radius: 3px; background: var(--ink); color: var(--on-ink);
                font: 400 11px/16px var(--f-mono); white-space: nowrap; opacity: 0; pointer-events: none; }
.cw-chip:hover span { opacity: 1; }

.cw-board { min-height: 0; overflow: auto; padding: 16px 20px 48px; }
.cw-chiprow { margin-bottom: 24px; }
.cw-chiprow h3 { margin-bottom: 10px; }
.cw-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cw-chips span { height: 26px; padding: 0 10px; display: inline-flex; align-items: center; font-size: var(--fs-xs);
                 border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--body2); }
.cw-chips span:first-child { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.cw-chips span.moved { border-color: var(--accent); color: var(--accent); }
.cw-galhead { flex-wrap: wrap; margin-bottom: 12px !important; }
.cw-view { margin-left: auto; text-transform: none; letter-spacing: 0; }
.cw-view button { height: 26px; font-size: var(--fs-xs); }
.cw-dragbar { display: none; align-items: center; gap: 8px; margin: 0 0 10px; padding: 6px 10px;
              border: 1px solid var(--accent); border-radius: var(--r-sm); color: var(--accent); font-size: var(--fs-xs); }
.cw-dragbar.on { display: flex; }
.cw-dragbar img { width: 26px; height: 26px; object-fit: contain; background: var(--board); }
.cw-dragbar b { font-family: var(--f-mono); }

/* 排序视图:等大瓦片,读序号 */
.cw-gal { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.cw-tile { position: relative; aspect-ratio: 4 / 5; overflow: hidden; cursor: grab; background: var(--board); box-shadow: 0 0 0 1px var(--line); }
.cw-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cw-tile img, .cw-tile span, .cw-tile b { pointer-events: none; }   /* 子元素各自触发 dragover 会让指示条闪 */
.cw-tile .cw-frame { display: block; width: 100%; height: 100%; }
.cw-tile b { position: absolute; left: 6px; top: 6px; z-index: 2; min-width: 20px; height: 18px; padding: 0 5px; display: grid; place-items: center;
             border-radius: 3px; background: var(--accent); color: var(--on-accent); font: 500 10px/1 var(--f-mono); }
.cw-tile.is-work b { background: var(--ink); color: var(--on-ink); }
.cw-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 5px; font: 400 10px/14px var(--f-mono); color: #fff;
          white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }
.cw-meta { display: none; }
.cw-tile.is-dragging { opacity: .3; }
.cw-tile.is-just { animation: cw-pop .65s ease; }
@keyframes cw-pop { from { box-shadow: 0 0 0 4px var(--accent); } }
.cw-tile.is-tail { display: grid; place-items: center; padding: 8px; cursor: default; text-align: center;
                   background: transparent; box-shadow: none; border: 1.5px dashed var(--line); color: var(--grey); font-size: var(--fs-xs); }
.cw-gal-empty { grid-column: 1 / -1; padding: 40px 16px; text-align: center; color: var(--body2); line-height: 22px; border: 1.5px dashed var(--line); }
.cw-marker { position: absolute; z-index: 6; width: 3px; background: var(--accent); pointer-events: none;
             transition: left .09s ease, top .09s ease, height .09s ease; }
.cw-marker::after { content: attr(data-n); position: absolute; left: 50%; top: -22px; transform: translateX(-50%);
                    padding: 1px 6px; border-radius: 3px; background: var(--accent); color: var(--on-accent);
                    font: 500 10px/15px var(--f-mono); white-space: nowrap; }

/* 首页版式:与首页 .works 同一套三栏、同一个"放进最矮一栏"算法(Site/tools/sync_homepage.py) */
.cw-gal.home { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; max-width: 1080px; }
.cw-col { display: grid; gap: 28px; align-content: start; }
.cw-gal.home .cw-tile { aspect-ratio: auto; overflow: visible; background: none; box-shadow: none; }
.cw-gal.home .cw-frame { height: auto; aspect-ratio: var(--ar, 1); background: var(--board); box-shadow: 0 0 0 1px var(--line); }
.cw-gal.home .cw-frame img { height: auto; }   /* 首页卡按自己的比例,不随栏高拉伸 */
.cw-gal.home .cw-cap { display: none; }
.cw-gal.home .cw-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; color: var(--body2); }
.cw-gal.home .cw-meta i { font: 400 var(--fs-xs)/18px var(--f-mono); font-style: normal; color: var(--grey); }
.cw-gal.home .cw-tile.is-tail { aspect-ratio: 3 / 2; }

/* 右键菜单 / 大图 / 提示 */
.cw-menu { position: fixed; z-index: 999; min-width: 180px; padding: 4px; display: flex; flex-direction: column;
           background: var(--board); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 16px 32px -16px var(--shadow); }
.cw-menu button { appearance: none; padding: 7px 10px; border: 0; border-radius: var(--r-sm); background: none;
                  color: var(--ink); font: inherit; font-size: var(--fs-sm); text-align: left; cursor: pointer; }
.cw-menu button:hover { background: var(--faint); }
.cw-menu button.danger { color: var(--err); }
.cw-menu hr { margin: 4px 6px; border: 0; border-top: 1px solid var(--line); }
.cw-lb { position: fixed; inset: 0; z-index: 99; display: none; place-items: center;
         background: color-mix(in srgb, var(--paper) 92%, transparent); }
.cw-lb.on { display: grid; }
.cw-lb img { max-width: 82vw; max-height: 86vh; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px var(--shadow); background: var(--board); }
.cw-toast { position: fixed; left: 50%; bottom: 72px; z-index: 120; max-width: 70vw; padding: 8px 14px; border-radius: var(--r-sm);
            background: var(--ink); color: var(--on-ink); font-size: var(--fs-sm); text-align: center;
            opacity: 0; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s; pointer-events: none; }
.cw-toast.on { opacity: 1; transform: translate(-50%, 0); }
