/* site.css —— SEO 站专用样式（图纸库 / 分类页 / 色卡页 / 教程页）
 *
 * ⚠️ 所有类名加 `s-` 前缀。`web/style.css` 是主应用组件库，
 *    独立页面直接复用类名会互相污染（2026-10-05 踩过）。
 *
 * 设计取向：内容优先、加载快、移动端优先。
 *   · 不引字体（用系统字体栈），不引 JS
 *   · 单列为主，详情页两栏（≥900px）
 */

:root {
  --s-bg: #fbfaf7;
  --s-card: #ffffff;
  --s-ink: #1e1e22;
  --s-ink-2: #5a5a62;
  --s-ink-3: #6e6e77;   /* 12px 小字要过 4.5:1：原 #8b8b93 在米白底上只有 2.97:1 */
  --s-line: #e6e3dc;
  --s-accent: #c8412c;
  --s-accent-soft: #fdf1ee;
  --s-accent-line: #e7b7ab;
  --s-on-accent: #ffffff;
  --s-radius: 14px;
  --s-shadow: 0 1px 2px rgba(28, 28, 32, .05), 0 6px 20px rgba(28, 28, 32, .05);
  --s-maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --s-bg: #16161a;
    --s-card: #1f1f24;
    --s-ink: #ececef;
    --s-ink-2: #a8a8b0;
    --s-ink-3: #8b8b95;
    --s-line: #2e2e35;
    --s-accent: #ef6a52;
    --s-accent-soft: #2a1e1b;
    --s-accent-line: #6b3a2f;
    --s-on-accent: #16161a;
    --s-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }

body.s-page {
  margin: 0;
  background: var(--s-bg);
  color: var(--s-ink);
  font: 16px/1.7 system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- 顶栏 ---------- */
.s-top {
  border-bottom: 1px solid var(--s-line);
  background: var(--s-card);
}
.s-top .s-wrap {
  display: flex; align-items: center; gap: 14px;
  height: 60px;
}
.s-logo {
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 16px; color: var(--s-ink);
  text-decoration: none; flex: none;
}
/* ★ 品牌标（2026-10-24 v2）：和主应用 .brand-mark / favicon.svg 同一套图形（AI 拼豆图）。
   ⚠️ 用 <img> 而不是 CSS 画 —— 保证和主应用是同一张图，不会又出现两套画法。 */
.s-mark {
  width: 28px; height: 28px; flex: none;
  display: block; object-fit: contain;
}
.s-nav { margin-left: auto; display: flex; gap: 18px; font-size: 14px; }
.s-nav a { color: var(--s-ink-2); text-decoration: none; }
.s-nav a:hover { color: var(--s-accent); }

/* ---------- 面包屑 ---------- */
.s-crumb {
  font-size: 13px; color: var(--s-ink-3);
  padding: 16px 0 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.s-crumb a { color: var(--s-ink-3); text-decoration: none; }
.s-crumb a:hover { color: var(--s-accent); }

/* ---------- 标题 ---------- */
.s-h1 { font-size: 30px; line-height: 1.3; margin: 10px 0 6px; letter-spacing: -.01em; }
.s-lead { color: var(--s-ink-2); margin: 0 0 20px; font-size: 15px; }
.s-h2 {
  font-size: 20px; margin: 34px 0 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--s-line);
}
.s-h3 { font-size: 16px; margin: 22px 0 8px; }
.s-h1 + .s-specs { margin-top: 14px; }

/* ---------- 规格块 ---------- */
.s-specs {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  background: var(--s-line);
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius);
  overflow: hidden;
  margin: 0 0 22px;
}
.s-specs div { background: var(--s-card); padding: 12px 14px; }
.s-specs dt { font-size: 12px; color: var(--s-ink-3); margin: 0 0 2px; }
.s-specs dd { margin: 0; font-size: 17px; font-weight: 700; }
.s-specs dd small { font-size: 12px; font-weight: 400; color: var(--s-ink-3); }

/* ---------- 详情页两栏 ---------- */
.s-detail {
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
  margin-top: 8px;
}
@media (min-width: 900px) {
  .s-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; }
  .s-detail .s-media { position: sticky; top: 20px; }
}
.s-media img {
  width: 100%; height: auto; display: block;
  border-radius: var(--s-radius);
  border: 1px solid var(--s-line);
  background: #fff;
}
.s-media figcaption {
  font-size: 12px; color: var(--s-ink-3); margin-top: 8px; text-align: center;
}

/* ---------- 色号表 ---------- */
.s-swatches { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.s-swatches li {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px;
  background: var(--s-card);
  border: 1px solid var(--s-line);
  border-radius: 10px;
  font-size: 14px;
}
.s-chip {
  width: 26px; height: 26px; border-radius: 7px; flex: none;
  border: 1px solid rgba(0,0,0,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.s-swatches .s-code { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 46px; }
.s-swatches .s-name { color: var(--s-ink-2); flex: 1; }
.s-swatches .s-count { font-variant-numeric: tabular-nums; color: var(--s-ink-2); font-size: 13px; }
.s-swatches .s-bar {
  width: 70px; height: 6px; border-radius: 3px; background: var(--s-line);
  overflow: hidden; flex: none;
}
.s-swatches .s-bar i { display: block; height: 100%; background: var(--s-accent); }

/* ---------- 标签 ---------- */
.s-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.s-tags a {
  display: inline-block; padding: 5px 11px;
  background: var(--s-accent-soft); color: var(--s-accent);
  border-radius: 999px; font-size: 13px; text-decoration: none;
  white-space: nowrap;
}
.s-tags a:hover { background: var(--s-accent); color: var(--s-on-accent); }

/* ---------- 下载 ---------- */
.s-dl { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.s-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--s-line); background: var(--s-card); color: var(--s-ink);
  flex: none; white-space: nowrap;
}
.s-btn:hover { border-color: var(--s-accent); color: var(--s-accent); }
.s-btn--primary { background: var(--s-accent); border-color: var(--s-accent); color: var(--s-on-accent); }
.s-btn--primary:hover { background: #b23724; color: #fff; }
.s-note { font-size: 12.5px; line-height: 1.6; color: var(--s-ink-3); margin: 10px 0 0; }

/* ---------- 卡片网格 ---------- */
.s-grid {
  display: grid; gap: 16px;
  /* 手机保持 160px → 390 宽能排 2 列（186 只能排 1 列，30 张图要滑很久） */
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  margin: 0; padding: 0; list-style: none;
}
/* 桌面上放到 186px：160 在 1080 容器里正好排 6 列，
   7 张图会变成「6 + 1」孤零零一张；186 排 5 列，7 张变「5 + 2」，卡片也更大。 */
@media (min-width: 720px) {
  .s-grid { grid-template-columns: repeat(auto-fill, minmax(186px, 1fr)); }
}
.s-card {
  background: var(--s-card); border: 1px solid var(--s-line);
  border-radius: var(--s-radius); overflow: hidden;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.s-card:hover {
  border-color: var(--s-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -8px rgba(28, 28, 32, .22);
}
.s-card img { width: 100%; height: auto; display: block; aspect-ratio: 1; object-fit: cover; background: #fff; }
.s-card .s-cap { padding: 10px 12px 12px; }
.s-card .s-cap b { display: block; font-size: 14px; font-weight: 700; margin-bottom: 3px; }

/* 卡片信息固定三行：名字 / 时长 / 尺寸+颗数。
   ⚠️ 不能合成一行 —— 「30×30 · 412 颗 · 1 时 58 分」在 186px 里会换行，
      同一行里有的卡两行有的卡一行，底边参差（2026-10-24 修）。 */
.s-card .s-card-time {
  display: block; font-size: 13px; font-weight: 600; line-height: 1.45;
  color: var(--s-ink-2); font-variant-numeric: tabular-nums;
}
.s-card .s-card-meta {
  display: block; font-size: 11.5px; line-height: 1.45;
  color: var(--s-ink-3); font-variant-numeric: tabular-nums;
}

/* ---------- 分组筛选（题材 / 时长 分开） ---------- */
.s-filters { display: grid; gap: 12px; margin: 0 0 24px; }
.s-filter { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 10px; }
.s-filter-k {
  flex: none; white-space: nowrap;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--s-ink-3);
  min-width: 2.4em;
}
.s-filter .s-tags { flex: 1 1 200px; }

/* 详情页的分类标签：不挂 h2（「标签」这个标题没有信息量），
   放在正文和相关图纸之间 —— 读者先知道「这张图属于什么」，再看「同类的还有哪些」。 */
.s-tags--foot { margin: 6px 0 0; }


/* ---------- 表格 ---------- */
.s-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.s-table th, .s-table td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--s-line); }
.s-table th { font-size: 12px; color: var(--s-ink-3); font-weight: 600; }
.s-table td { font-variant-numeric: tabular-nums; }

/* ---------- 提示块 ---------- */
/* ⚠️ 原来是「3px 左侧色条 + 直角右圆角」—— 那是卡片/提示块最默认的做法。
   改成整圈淡描边 + 圆角，和站内其他块（s-specs / s-swatches）同一套语言。 */
.s-tip {
  background: var(--s-accent-soft);
  border: 1px solid color-mix(in srgb, var(--s-accent) 24%, transparent);
  padding: 13px 16px; border-radius: 10px;
  font-size: 14px; color: var(--s-ink-2); margin: 18px 0;
}
.s-tip b { color: var(--s-ink); }

/* ---------- 页脚 ----------
 * 所有内容走同一个 .s-wrap：链接不能落在容器外贴着屏幕左边。
 * 结构：品牌 + 主导航 / 说明 / 帮助与条款。
 */
.s-foot {
  margin-top: clamp(48px, 7vw, 72px);
  border-top: 1px solid var(--s-line);
  font-size: 13px; color: var(--s-ink-3);
}
.s-foot .s-wrap {
  padding-top: clamp(28px, 4vw, 44px);
  padding-bottom: clamp(32px, 4vw, 44px);
}
.s-foot-main {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) repeat(3, minmax(110px, .5fr));
  gap: 28px 40px;
  align-items: start;
}
.s-foot-brand-col { max-width: 36ch; }
.s-foot-brand {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--s-ink); font-size: 16px; font-weight: 700;
  text-decoration: none;
}
.s-foot-mark { width: 26px; height: 26px; display: block; object-fit: contain; }
.s-foot-tagline {
  margin: 14px 0 0;
  font-size: 14px; line-height: 1.65; color: var(--s-ink);
}
.s-foot-note {
  margin: 10px 0 0;
  font-size: 12px; line-height: 1.75; color: var(--s-ink-3);
}
.s-foot-group { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.s-foot-k {
  margin-bottom: 6px;
  font-size: 11px; line-height: 1.4; letter-spacing: .12em;
  color: var(--s-ink-3);
}
.s-foot-group a {
  display: inline-flex; align-items: center; min-height: 32px;
  font-size: 13px; line-height: 1.5; color: var(--s-ink-2);
  text-decoration: none;
}
.s-foot a:hover { color: var(--s-accent); }
.s-foot a:focus-visible { outline: 2px solid var(--s-accent); outline-offset: 4px; border-radius: 2px; }
.s-foot .release-links {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  margin: 0; font-size: 12.5px;
}
/* 兜底：旧页面若把链接直接挂在 footer 下，也与内容列对齐，不再贴屏幕边。 */
.s-foot > .release-links {
  max-width: var(--s-maxw); margin: 14px auto 0; padding-inline: 20px;
}
/* 生成器追加的备用页脚容器 */
.s-foot-extra { padding-bottom: 32px; }

@media (max-width: 760px) {
  .s-foot-main { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 20px; }
  .s-foot-brand-col { grid-column: 1 / -1; max-width: none; }
  .s-foot-group a { min-height: 44px; }
}
@media (max-width: 379px) {
  .s-foot-main { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 14px; }
  .s-foot-group a { font-size: 12.5px; }
}
@media (max-width: 640px) {
  .s-foot .s-wrap { padding-top: 26px; padding-bottom: 30px; }
  .s-foot .release-links { gap: 0 18px; }
}

/* ---------- 图纸详情：开工准备 + 交互预览 ---------- */
.s-make {
  margin: 18px 0 6px; padding: 16px;
  background: var(--s-card);
  border: 1px solid var(--s-line); border-radius: var(--s-radius);
  break-inside: avoid;
}
.s-make-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.s-make-kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--s-ink-3);
}
.s-make-badge {
  padding: 3px 8px; border-radius: 999px;
  background: var(--s-accent-soft); color: var(--s-accent);
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.s-make-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  margin: 0; overflow: hidden;
  background: var(--s-line); border: 1px solid var(--s-line); border-radius: 10px;
}
.s-make-grid > div { padding: 10px 12px; background: var(--s-card); }
.s-make-grid dt { font-size: 11.5px; color: var(--s-ink-3); }
.s-make-grid dd {
  margin: 2px 0 0; font-size: 18px; font-weight: 700; line-height: 1.3;
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.s-make-grid dd small { font-size: 11px; font-weight: 500; color: var(--s-ink-3); }
.s-make-note { margin: 10px 0 0; font-size: 12px; line-height: 1.6; color: var(--s-ink-3); }

.s-view {
  margin: 46px 0 10px; padding-top: 30px;
  border-top: 1px solid var(--s-line);
}
.s-view-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 16px 28px; margin-bottom: 16px;
}
.s-view-eyebrow {
  margin: 0 0 5px; color: var(--s-accent);
  font: 700 11px/1.2 ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: .16em; text-transform: uppercase;
}
.s-view-title {
  margin: 0 0 6px; font-size: clamp(21px, 2.4vw, 26px); line-height: 1.25;
  letter-spacing: -.015em;
}
.s-view-lede { margin: 0; color: var(--s-ink-2); font-size: 14px; line-height: 1.65; }
.s-view-modes {
  display: flex; padding: 3px; gap: 3px;
  background: var(--s-card); border: 1px solid var(--s-line); border-radius: 11px;
}
.s-view-modes button {
  appearance: none; border: 0; background: transparent; color: var(--s-ink-2);
  padding: 9px 14px; border-radius: 8px; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 13px; line-height: 1.2;
  white-space: nowrap;
}
.s-view-modes button[aria-pressed="true"] { background: var(--s-ink); color: var(--s-bg); }
.s-view-stage {
  overflow: hidden; background: var(--s-card);
  border: 1px solid var(--s-line); border-radius: var(--s-radius);
  box-shadow: 0 14px 34px -28px rgb(20 15 10 / .45);
}
.s-view-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 9px; padding: 9px 11px;
  border-bottom: 1px solid var(--s-line);
}
.s-view-toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.s-view-toggle {
  appearance: none; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--s-line); background: var(--s-card); color: var(--s-ink-2);
  cursor: pointer; font-family: inherit; font-weight: 500; font-size: 12.5px; line-height: 1.3;
  white-space: nowrap;
}
.s-view-toggle[aria-pressed="true"] {
  border-color: var(--s-accent-line); background: var(--s-accent-soft); color: var(--s-accent);
}
.s-view-toggle:disabled { opacity: .38; cursor: not-allowed; }
.s-view-zoom { display: flex; align-items: center; gap: 4px; }
.s-view-zoom button {
  appearance: none; width: 36px; height: 34px; padding: 0;
  border: 1px solid var(--s-line); border-radius: 8px;
  background: var(--s-card); color: var(--s-ink);
  cursor: pointer; font-family: inherit; font-weight: 600; font-size: 16px; line-height: 1;
}
.s-view-zoom .s-view-fit { width: auto; padding: 0 10px; font-size: 12.5px; }
.s-view-zoom .s-view-fit[aria-pressed="true"] {
  border-color: var(--s-accent-line); color: var(--s-accent);
}
.s-view-level {
  min-width: 54px; text-align: center; color: var(--s-ink-3);
  font: 600 12px/1 ui-monospace, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
.s-view-canvas-wrap {
  position: relative; height: clamp(340px, 52vw, 610px); background: var(--s-bg);
}
.s-view-canvas {
  display: block; width: 100%; height: 100%;
  touch-action: none; cursor: grab; outline: none;
}
.s-view-canvas.is-dragging { cursor: grabbing; }
.s-view-canvas:focus-visible { box-shadow: inset 0 0 0 3px var(--s-accent); }
.s-view-status {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  margin: 0; padding: 24px; text-align: center;
  background: var(--s-bg); color: var(--s-ink-3); font-size: 13px;
}
.s-view-status[hidden] { display: none; }
.s-view-status.is-error { color: var(--s-accent); }
.s-view-noscript {
  position: absolute; inset: 0; z-index: 3; margin: 0; padding: 30px;
  display: flex; align-items: center; justify-content: center;
  background: var(--s-bg); color: var(--s-ink-2);
  font-size: 13px; line-height: 1.7; text-align: center;
}
.s-view-noscript a { color: var(--s-accent); font-weight: 600; }
.s-view-foot {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 18px; padding: 10px 14px 12px;
  border-top: 1px solid var(--s-line);
}
.s-view-hint { margin: 0; color: var(--s-ink-3); font-size: 12px; line-height: 1.55; }
.s-view-cta {
  color: var(--s-accent); font-size: 13px; font-weight: 700;
  text-decoration: none; white-space: nowrap;
}
.s-view-cta:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 640px) {
  .s-make-grid dd { font-size: 16px; }
  .s-view-head { align-items: flex-start; }
  .s-view-modes { width: 100%; }
  .s-view-modes button { flex: 1; min-height: 44px; padding-inline: 10px; }
  .s-view-toolbar { padding: 8px; }
  .s-view-toggle { min-height: 44px; padding-inline: 13px; }
  .s-view-zoom button { width: 44px; height: 44px; }
  .s-view-zoom .s-view-fit { width: auto; padding-inline: 12px; }
  .s-view-cta { display: inline-flex; align-items: center; min-height: 44px; }
  .s-view-canvas-wrap { height: clamp(300px, 68vw, 400px); }
  .s-view-foot { padding: 11px 13px 13px; }
  .s-view-hint { max-width: 29ch; }
}

/* ---------- 打印 ---------- */
@media print {
  .s-top, .s-nav, .s-foot, .s-crumb, .s-dl, .s-note, .s-tags, .s-view { display: none; }
  body.s-page { background: #fff; }
  .s-media img { border: none; }
}

/* 无链接的标签（如「新手友好」）—— 视觉上要比链接弱一档 */
.s-tags span.s-tag-plain {
  display: inline-block; padding: 5px 11px;
  background: var(--s-line); color: var(--s-ink-2);
  border-radius: 999px; font-size: 13px; white-space: nowrap;
}

/* ---------- 色号表（build_colors.mjs 生成） ----------
 * ⚠️ 这些规则原来写在色卡页的内联 <style> 里 —— 每个品牌页重复一遍，
 *    改一处要改 9 处。样式集中到 site.css（工程规范「单一数据源」）。 */
.s-colors {
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  margin: 0 0 22px; padding: 0; list-style: none;
}
.s-colors li {
  background: var(--s-card); border: 1px solid var(--s-line); border-radius: 10px;
  padding: 8px; font-size: 12px; line-height: 1.4;
}
.s-cbox {
  display: block; height: 34px; border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, .12); margin-bottom: 6px;
}
.s-colors b { display: block; font-size: 13px; font-variant-numeric: tabular-nums; }
.s-colors i { display: block; font-style: normal; font-size: 11px; color: var(--s-ink-3); font-variant-numeric: tabular-nums; }
.s-colors i.s-rgb { font-size: 10.5px; color: var(--s-ink-3); letter-spacing: .02em; }
.s-series h3 small { font-weight: 400; color: var(--s-ink-3); font-size: 12px; }
.s-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.s-jump a {
  padding: 4px 10px; border: 1px solid var(--s-line); border-radius: 999px;
  font-size: 13px; text-decoration: none; color: var(--s-ink-2);
}
.s-jump a:hover { border-color: var(--s-accent); color: var(--s-accent); }


/* 筛选行下面的说明：紧贴筛选区，不额外撑开 */
.s-note--tight { margin: -12px 0 22px; }
.s-note a { color: var(--s-ink-2); border-bottom: 1px solid var(--s-line); text-decoration: none; }
.s-note a:hover { color: var(--s-accent); border-bottom-color: var(--s-accent); }

/* Shared release information uses the same paper, ink and type system. */
.release-prose { max-width: 48rem; padding-block: clamp(32px,6vw,72px); }
.release-prose h2 { margin-top: 2.2rem; margin-bottom: .7rem; font-size: 1.35rem; line-height: 1.4; }
.release-prose p { line-height: 1.85; margin-block: .8rem; overflow-wrap: anywhere; }
.release-kicker { font-size: .75rem; letter-spacing: .08em; color: var(--s-ink-3); }
.release-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-block: 14px; font-size: .8rem; }
.release-links a { color: inherit; text-underline-offset: 4px; }
.release-links a:focus-visible { outline: 2px solid #b32e1d; outline-offset: 3px; }
@media (max-width:640px) { .release-links a { display:inline-flex;align-items:center;min-height:44px; } }
.release-example { margin: 32px 0; }
.release-example img { display: block; width: min(100%, 32rem); height: auto; border:1px solid var(--s-line,#e7e0d5); }
.release-example figcaption { max-width:36rem; margin-top:12px; color:var(--s-ink-3); font-size:.8rem; line-height:1.7; }

/* Shared navigation and content hierarchy, 0.10.1. */
:root[data-theme="dark"] { --s-bg:#16161a;--s-card:#1f1f24;--s-ink:#ececef;--s-ink-2:#b1b1ba;--s-ink-3:#8b8b95;--s-line:#37373f;--s-accent:#ef6a52;--s-accent-soft:#2a1e1b;--s-accent-line:#6b3a2f;--s-on-accent:#16161a; }
:root[data-theme="light"] { --s-bg:#fbfaf7;--s-card:#fff;--s-ink:#1e1e22;--s-ink-2:#5a5a62;--s-ink-3:#6e6e77;--s-line:#e6e3dc;--s-accent:#c8412c;--s-accent-soft:#fdf1ee;--s-on-accent:#fff; }
.s-h1 { font-size:clamp(26px,3vw,36px); max-width:15.75em; }
.s-nav { gap:16px; }
.s-nav a { display:inline-flex; align-items:center; min-height:44px; }
.s-download-jump a { display:inline-flex; align-items:center; min-height:44px; color:var(--s-accent); }
#download { scroll-margin-top:24px; }
.s-note,.s-crumb { font-size:14px; }
@media(max-width:640px) { .s-top .s-wrap { gap:8px; }.s-nav { gap:12px; font-size:13px; }.s-top .s-wrap { padding:0 16px; }.s-card { box-shadow:none; } }

/* ==========================================================================
   工具优先首页（2026-10-26）
   --------------------------------------------------------------------------
   首屏只有两个任务：说明这是「照片转拼豆图纸」的工具，并让用户把照片交进来。
   视觉沿用站内纸张、墨色、豆红；图纸网格只在首屏做底纹，不抢表单。
   ========================================================================== */

.s-landing {
  background:
    radial-gradient(1200px 520px at 82% -10%, color-mix(in srgb, var(--s-accent) 6%, transparent), transparent 70%),
    var(--s-bg);
}
.s-land-noscript {
  margin: 16px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius);
  background: var(--s-card);
  color: var(--s-ink-2);
}
.s-land-noscript a { color: var(--s-accent); }
.s-land-navcta {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--s-line);
  border-radius: 999px;
  color: var(--s-ink) !important;
  background: var(--s-card);
  font-weight: 600;
  white-space: nowrap;
}
.s-land-navcta:hover {
  border-color: var(--s-accent);
  color: var(--s-accent) !important;
}

.s-land-hero {
  position: relative;
  padding: clamp(34px, 5.5vw, 76px) 0 clamp(52px, 7vw, 92px);
  overflow: hidden;
}
.s-land-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: min(78%, 640px);
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(128, 121, 112, .11) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(128, 121, 112, .11) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.45) 58%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.45) 58%, transparent 100%);
}
.s-land-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .82fr);
  grid-template-areas:
    "copy tool"
    "sample tool";
  grid-template-rows: auto 1fr;
  column-gap: clamp(30px, 5vw, 68px);
  row-gap: 0;
  align-items: start;
}
.s-land-copy { grid-area: copy; }
.s-land-tool { grid-area: tool; align-self: center; }
.s-land-example {
  grid-area: sample;
  max-width: 520px;
  margin-top: clamp(24px, 3.2vw, 36px);
}

.s-land-kicker {
  margin: 0 0 12px;
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: .18em;
  font-weight: 700;
  color: var(--s-accent);
}
.s-land-title {
  margin: 0;
  /* ch 是「0」的宽度，不是中文字宽；14ch 会把两行标题各挤成两行。*/
  max-width: 9.2em;
  font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.13;
  letter-spacing: -.035em;
  font-weight: 700;
  color: var(--s-ink);
  text-wrap: balance;
}
.s-land-lead {
  max-width: 33em;
  margin: 20px 0 0;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.8;
  color: var(--s-ink-2);
}
.s-land-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  color: var(--s-ink-2);
}
.s-land-trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.s-land-trust li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--s-accent);
}

.s-land-sample {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 520px;
}
.s-land-sample figure {
  position: relative;
  margin: 0;
  min-width: 0;
}
.s-land-sample figure + figure::before {
  content: "→";
  position: absolute;
  z-index: 2;
  top: 40%;
  left: -10px;
  width: 14px;
  transform: translateY(-50%);
  font-size: 12px;
  line-height: 1;
  text-align: center;
  color: var(--s-ink-3);
}
.s-land-sample img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--s-line);
  background: #fff;
  box-shadow: 0 8px 20px -14px rgba(31, 29, 26, .38);
}
.s-land-sample figcaption {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--s-ink-3);
}
.s-land-sample figcaption b {
  font-size: 12px;
  color: var(--s-ink);
}
.s-land-sample figcaption span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s-land-sample-note {
  max-width: 520px;
  margin: 9px 0 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--s-ink-3);
}

/* ---------- 首屏交接卡 ---------- */
.s-land-tool {
  position: relative;
  isolation: isolate;
  padding: clamp(18px, 2.5vw, 26px);
  background: var(--s-card);
  border: 1px solid var(--s-line);
  border-radius: 18px;
  box-shadow: 0 1px 0 rgba(255,255,255,.65) inset, 0 24px 60px -40px rgba(31,29,26,.5);
}
.s-land-tool::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10px -10px -10px 10px;
  border: 1px solid color-mix(in srgb, var(--s-accent) 18%, transparent);
  border-top-color: transparent;
  border-left-color: transparent;
  border-radius: 18px;
  pointer-events: none;
}
.s-land-tool-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.s-land-tool-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--s-ink);
}
.s-land-continue {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 34px;
  margin-block: -8px;
  font-size: 12.5px;
  color: var(--s-accent);
  text-underline-offset: 4px;
}
.s-land-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  margin-bottom: 12px;
  background: color-mix(in srgb, var(--s-ink) 5%, var(--s-bg));
  border: 1px solid var(--s-line);
  border-radius: 12px;
}
.s-land-modes button {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  min-height: 58px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--s-ink-2);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.s-land-modes button b {
  font-size: 14px;
  line-height: 1.4;
  color: var(--s-ink);
}
.s-land-modes button small {
  font-size: 11px;
  line-height: 1.45;
  color: var(--s-ink-3);
}
.s-land-modes button[aria-pressed="true"] {
  background: var(--s-card);
  border-color: var(--s-line);
  box-shadow: 0 1px 4px rgba(31,29,26,.08);
}
.s-land-modes button[aria-pressed="true"] b {
  color: var(--s-accent);
}
.s-land-modes button:focus-visible {
  outline: 2px solid var(--s-accent);
  outline-offset: 2px;
}

.s-land-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: clamp(154px, 18vw, 190px);
  padding: 22px 16px;
  border: 1.5px dashed color-mix(in srgb, var(--s-ink) 26%, transparent);
  border-radius: 13px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--s-accent) 2%, transparent), transparent 70%),
    var(--s-bg);
  color: var(--s-ink);
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background-color .15s, transform .15s;
}
.s-land-pick:hover {
  border-color: var(--s-accent);
  background: var(--s-accent-soft);
}
.s-land-pick:focus-visible {
  outline: 2px solid var(--s-accent);
  outline-offset: 3px;
}
.s-land-pick.is-drag {
  border-style: solid;
  border-color: var(--s-accent);
  background: var(--s-accent-soft);
  transform: scale(.994);
}
.s-land-pick[aria-busy="true"] {
  pointer-events: none;
  opacity: .72;
}
.s-land-pick-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 4px;
  color: var(--s-accent);
}
.s-land-pick b {
  font-size: 15px;
  line-height: 1.5;
}
.s-land-pick span {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--s-ink-3);
}
.s-land-pick kbd {
  display: inline-block;
  padding: 0 4px;
  border: 1px solid var(--s-line);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--s-card);
  font: inherit;
  font-size: 10.5px;
  color: var(--s-ink-2);
}
.s-land-note {
  min-height: 3.2em;
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--s-ink-2);
}
.s-land-status {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--s-ink-2);
}
.s-land-status:empty { display: none; }
.s-land-status[data-tone="error"] { color: var(--s-accent); }
.s-land-privacy {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--s-line);
  font-size: 11px;
  line-height: 1.65;
  color: var(--s-ink-3);
}

/* ---------- 通用区块 ---------- */
.s-land-sec {
  padding: clamp(48px, 7vw, 82px) 0;
  border-top: 1px solid var(--s-line);
}
.s-land-sec-head {
  max-width: 54rem;
  margin-bottom: clamp(22px, 3.5vw, 34px);
}
.s-land-sec-head .s-land-kicker { margin-bottom: 9px; }
.s-land-sec-head h2 {
  margin: 0;
  font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.24;
  letter-spacing: -.025em;
}
.s-land-sec-head > p:last-child {
  max-width: 46em;
  margin: 13px 0 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--s-ink-2);
}

/* ---------- 交付 ---------- */
.s-land-deliver {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.s-land-deliver-figure {
  margin: 0;
  padding: 10px;
  background: var(--s-card);
  border: 1px solid var(--s-line);
  border-radius: 4px;
  box-shadow: 0 22px 48px -34px rgba(31,29,26,.55);
  transform: rotate(-1.2deg);
}
.s-land-deliver-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--s-line);
  background: #fff;
}
.s-land-deliver-figure figcaption {
  padding: 9px 3px 2px;
  font-size: 11px;
  line-height: 1.55;
  color: var(--s-ink-3);
}
.s-land-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.s-land-list li {
  padding: 15px 0;
  border-top: 1px solid var(--s-line);
}
.s-land-list b {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--s-ink);
}
.s-land-list span {
  display: block;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--s-ink-2);
}
.s-land-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}
.s-land-actions .s-btn { white-space: normal; text-align: center; }

/* ---------- 复杂度 ---------- */
.s-land-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.s-land-tier {
  position: relative;
  overflow: hidden;
  padding: 20px 20px 22px;
  background: var(--s-card);
  border: 1px solid var(--s-line);
  border-radius: 12px;
}
.s-land-tier--mid {
  border-color: color-mix(in srgb, var(--s-accent) 45%, var(--s-line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--s-accent) 5%, transparent), transparent 55%),
    var(--s-card);
}
.s-land-tier-letter {
  position: absolute;
  top: -18px;
  right: 6px;
  font-family: "Songti SC", "Noto Serif SC", Georgia, serif;
  font-size: 96px;
  line-height: 1;
  font-weight: 700;
  color: color-mix(in srgb, var(--s-accent) 10%, transparent);
  pointer-events: none;
}
.s-land-tier h3 {
  position: relative;
  margin: 0 0 5px;
  font-size: 18px;
  line-height: 1.4;
}
.s-land-tier-meta {
  position: relative;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--s-accent);
  font-variant-numeric: tabular-nums;
}
.s-land-tier p:last-child {
  position: relative;
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--s-ink-2);
}

/* ---------- 三步 ---------- */
.s-land-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--s-line);
}
.s-land-steps li {
  padding: 22px 26px 0 0;
}
.s-land-steps li + li {
  padding-left: 26px;
  border-left: 1px solid var(--s-line);
}
.s-land-steps span {
  display: block;
  margin-bottom: 16px;
  font-family: "Songti SC", "Noto Serif SC", Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--s-accent);
}
.s-land-steps h3 {
  margin: 0 0 7px;
  font-size: 19px;
  line-height: 1.4;
}
.s-land-steps p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--s-ink-2);
}

/* ---------- 指南 ---------- */
.s-land-guides {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.s-land-guide {
  display: flex;
  flex-direction: column;
  min-height: 168px;
  padding: 20px;
  background: var(--s-card);
  border: 1px solid var(--s-line);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.s-land-guide:hover {
  border-color: var(--s-accent);
  transform: translateY(-2px);
}
.s-land-guide:focus-visible {
  outline: 2px solid var(--s-accent);
  outline-offset: 3px;
}
.s-land-guide span {
  margin-bottom: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--s-accent);
}
.s-land-guide b {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.5;
}
.s-land-guide small {
  margin-top: auto;
  font-size: 12px;
  line-height: 1.7;
  color: var(--s-ink-2);
}

/* ---------- FAQ ---------- */
.s-land-faq-wrap .s-land-sec-head { max-width: 52rem; }
.s-land-faq {
  max-width: 52rem;
  border-top: 1px solid var(--s-line);
}
.s-land-faq details {
  border-bottom: 1px solid var(--s-line);
}
.s-land-faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.65;
  cursor: pointer;
  list-style: none;
}
.s-land-faq summary::-webkit-details-marker { display: none; }
.s-land-faq summary::after {
  content: "+";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 1px solid var(--s-line);
  border-radius: 50%;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  color: var(--s-ink-2);
}
.s-land-faq details[open] summary::after {
  content: "−";
  border-color: var(--s-accent);
  color: var(--s-accent);
}
.s-land-faq summary:focus-visible {
  outline: 2px solid var(--s-accent);
  outline-offset: 2px;
}
.s-land-faq details p {
  max-width: 46em;
  margin: -3px 0 20px;
  padding-right: 42px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--s-ink-2);
}

/* ---------- 收尾 ---------- */
.s-land-cta {
  padding: clamp(38px, 5vw, 62px) 0;
  background: var(--s-ink);
  color: var(--s-bg);
}
.s-land-cta .s-land-kicker { color: color-mix(in srgb, var(--s-bg) 65%, var(--s-accent)); }
.s-land-cta h2 {
  max-width: 13.1em;
  margin: 0;
  font-family: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.32;
  letter-spacing: -.02em;
}
.s-land-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.s-land-cta-btn {
  flex: none;
  min-height: 46px;
  padding-inline: 24px;
}
.s-landing ~ .s-foot,
.s-landing .s-foot { margin-top: 0; }

@media (max-width: 900px) {
  .s-land-hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "tool" "sample";
    grid-template-rows: auto;
    gap: 26px;
  }
  .s-land-copy { max-width: 640px; }
  .s-land-tool { max-width: 560px; align-self: start; }
  .s-land-example { max-width: 560px; margin-top: 0; }
  .s-land-deliver { grid-template-columns: 1fr; }
  .s-land-deliver-figure { max-width: 360px; }
  .s-land-tiers, .s-land-guides { grid-template-columns: 1fr; }
  .s-land-tier { padding-right: 84px; }
  .s-land-guide { min-height: 0; }
  .s-land-guide span { margin-bottom: 12px; }
  .s-land-steps { grid-template-columns: 1fr; border-top: 0; }
  .s-land-steps li { padding: 20px 0; border-top: 1px solid var(--s-line); }
  .s-land-steps li + li { padding-left: 0; border-left: 0; }
  .s-land-steps span { margin-bottom: 7px; }
}
@media (max-width: 700px) {
  .s-nav a.s-land-hide-sm { display: none; }
  .s-land-hero { padding-top: 26px; }
  .s-land-title { max-width: none; font-size: clamp(34px, 9vw, 46px); }
  .s-land-lead { margin-top: 14px; font-size: 14.5px; }
  .s-land-trust { margin-top: 15px; }
  .s-land-sample { gap: 7px; }
  .s-land-sample figure + figure::before { display: none; }
  .s-land-sample figcaption span { display: none; }
  .s-land-tool { max-width: none; }
  .s-land-list { grid-template-columns: 1fr; }
  .s-land-cta-inner { align-items: flex-start; flex-direction: column; }
  .s-land-cta-btn { width: 100%; justify-content: center; }
  .s-land-faq summary { padding: 15px 0; font-size: 14px; }
  .s-land-faq details p { padding-right: 0; }
}
@media (max-width: 379px) {
  .s-land-hero-grid { gap: 22px; }
  .s-land-tool { padding: 15px; }
  .s-land-tool::after { inset: 7px -7px -7px 7px; }
  .s-land-modes button { padding-inline: 9px; }
  .s-land-modes button b { font-size: 13px; }
  .s-land-pick { min-height: 138px; padding-inline: 10px; }
  .s-land-pick span { font-size: 10.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .s-land-pick, .s-land-guide, .s-card { transition: none; }
  .s-land-guide:hover { transform: none; }
}
@media print {
  .s-land-hero::before, .s-land-tool, .s-land-cta { display: none; }
}
