@charset "UTF-8";
/* ============================================================================
   AI 小工具手账 · handbook.css
   手账纸面：色板 / 纸纹 / 胶带 / 图钉 / 印章 / 排版
   约束：零外部依赖，不引任何字体文件、图片与 CDN；装饰全部由 CSS 与
        SVG data URI 生成，file:// 双击即可完整呈现。
   ============================================================================ */

:root {
  /* 纸与墨 */
  --paper:        #faf7f2;
  --paper-lift:   #fffdf8;
  --paper-deep:   #f1ebdf;
  --ink:          #2b2724;
  --ink-soft:     #4a443e;
  --pencil:       #8b8175;
  --pencil-light: #b8afa2;

  /* 点缀 */
  --tape:         #f3e2a9;
  --stamp:        #c8503c;
  --note:         #cfe3dd;
  --note-ink:     #2f4a44;
  --brown:        #6b4a2f;
  --line:         rgba(139, 129, 117, .16);

  /* 字体栈（全部为系统字体，不下载任何字体文件） */
  --serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", SimSun, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Courier New", monospace;

  /* 尺度 */
  --w-page: 980px;
  --w-text: 720px;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, .95) inset, 0 12px 28px -20px rgba(43, 39, 36, .45);
  --shadow-lift: 0 1px 0 rgba(255, 255, 255, .95) inset, 0 20px 34px -22px rgba(43, 39, 36, .55);

  /* 手绘分隔线：一条会呼吸的波浪，靠 data URI 复用，避免每页写 SVG */
  --rule-uri: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 8'><path d='M2 5.4 Q30 1.6 58 5 T114 4.6 T170 5.2 T226 4.4 T298 5' fill='none' stroke='%238b8175' stroke-width='1.5' stroke-linecap='round' opacity='.55'/></svg>");
}

/* ---------------------------------------------------------------- 基础 ---- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0 20px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  background-color: var(--paper);
  background-image:
    radial-gradient(1200px 600px at 12% -12%, rgba(243, 226, 169, .38), transparent 62%),
    radial-gradient(1000px 520px at 94% 2%, rgba(207, 227, 221, .24), transparent 58%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  letter-spacing: .01em;
}

/* 首页：星空的负外边距在极窄屏可能撑出横向滚动，这里兜住 */
.home { overflow-x: hidden; }

p { margin: 0 0 1.05em; }

a { color: var(--brown); }

img { max-width: 100%; height: auto; }

::selection { background: rgba(243, 226, 169, .85); color: var(--ink); }

:focus-visible {
  outline: 2px dashed var(--stamp);
  outline-offset: 3px;
  border-radius: 2px;
}

/* 手绘下划线式行内链接 */
.link {
  color: var(--brown);
  text-decoration: none;
  border-bottom: 1px solid rgba(107, 74, 47, .38);
  padding-bottom: .5px;
  transition: background-color .15s ease, border-color .15s ease;
}
.link:hover { background: rgba(243, 226, 169, .55); border-bottom-color: var(--brown); }

/* ------------------------------------------------------------ 页头导航 ---- */

.site-head {
  max-width: var(--w-page);
  margin: 0 auto;
  padding: 26px 0 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand { display: block; text-decoration: none; color: inherit; }

.brand-name {
  display: inline-block;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: .05em;
  padding-bottom: 7px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'><path d='M2 5.6 Q28 1.6 56 5 T110 4.4 T166 5.4 T198 3.8' fill='none' stroke='%23c8503c' stroke-width='2' stroke-linecap='round' opacity='.8'/></svg>");
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 7px;
}

.brand-sub {
  display: block;
  margin-top: 5px;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--pencil);
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 14.5px;
}

.nav a {
  color: var(--pencil);
  text-decoration: none;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--pencil-light); }
.nav a.is-here { color: var(--brown); border-bottom-color: var(--stamp); }

/* ------------------------------------------------------------ 页面容器 ---- */

.page {
  max-width: var(--w-page);
  margin: 0 auto;
  padding: 6px 0 10px;
}

.narrow { max-width: var(--w-text); margin: 0 auto; }

/* 一张盖住格线的纸面 */
.sheet {
  position: relative;
  padding: 30px 34px;
  background-color: var(--paper-lift);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 33px,
    rgba(139, 129, 117, .085) 33px 34px
  );
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: var(--shadow-card);
}

/* ------------------------------------------------------------ 页面标题 ---- */

.page-head { margin: 6px 0 26px; }

.kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pencil);
  margin-bottom: 10px;
}

.page-title {
  font-size: clamp(27px, 4.4vw, 40px);
  line-height: 1.25;
}

.page-lede {
  max-width: 620px;
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

/* -------------------------------------------------------------- 纸片卡 ---- */

.card {
  position: relative;
  --tilt: 0deg;
  padding: 26px 26px 22px;
  background: var(--paper-lift);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: var(--shadow-card);
  transform: rotate(var(--tilt));
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: rotate(var(--tilt)) translateY(-3px); box-shadow: var(--shadow-lift); }

/* 三张一循环的轻微歪斜，像手账里随手贴上去的纸片 */
.list > .card:nth-child(3n + 1) { --tilt: -.6deg; }
.list > .card:nth-child(3n + 2) { --tilt: .42deg; }
.list > .card:nth-child(3n)     { --tilt: -.18deg; }

.card-title { font-size: 21px; margin-bottom: 8px; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { background: rgba(243, 226, 169, .55); }

.card-meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--pencil);
}

.card-text { margin-top: 10px; font-size: 14.5px; line-height: 1.8; color: var(--ink-soft); }

/* 胶带：两端锯齿 + 半透明 + 细竖纹 */
.tape {
  position: absolute;
  top: -13px;
  left: 24px;
  width: 92px;
  height: 26px;
  z-index: 2;
  background-color: rgba(243, 226, 169, .94);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, .45) 0 2px,
    transparent 2px 6px
  );
  clip-path: polygon(2% 0, 98% 4%, 100% 94%, 0 100%);
  transform: rotate(-2.6deg);
  box-shadow: 0 2px 5px rgba(43, 39, 36, .08);
  pointer-events: none;
}
.tape--right { left: auto; right: 26px; transform: rotate(2.2deg); width: 70px; }

/* 图钉 */
.pin {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 15px;
  height: 15px;
  margin-left: -7.5px;
  z-index: 3;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff 0 12%, var(--stamp) 46%, #8e3327 100%);
  box-shadow: 0 3px 6px rgba(43, 39, 36, .3);
  pointer-events: none;
}

/* 橡皮印章 */
.stamp {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--stamp);
  border: 1.5px solid currentColor;
  border-radius: 3px;
  padding: 5px 8px 4px;
  transform: rotate(-2.6deg);
  opacity: .92;
}
.stamp--done { color: var(--stamp); }
.stamp--idle { color: var(--pencil-light); border-style: dashed; transform: rotate(1.8deg); }
.stamp--live { color: #2f7a52; }

/* 便签贴纸（标签） */
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  padding: 5px 9px 4px;
  border-radius: 2px;
  background: var(--note);
  color: var(--note-ink);
  text-decoration: none;
  transform: rotate(-.9deg);
  transition: transform .15s ease, filter .15s ease;
}
.tag:hover { transform: rotate(0) translateY(-1px); filter: brightness(.97); }
.tag--tape { background: var(--tape); color: #6b5716; }
.tag--ghost {
  background: transparent;
  color: var(--pencil-light);
  border: 1px dashed var(--pencil-light);
  transform: none;
  cursor: default;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* 手绘分隔线 */
.rule {
  height: 8px;
  margin: 34px 0;
  background-image: var(--rule-uri);
  background-repeat: repeat-x;
  background-position: center;
  background-size: 300px 8px;
  opacity: .9;
  border: 0;
}
.rule--tight { margin: 20px 0; }

/* 便签块 */
.note {
  position: relative;
  padding: 16px 18px 14px;
  background: var(--tape);
  color: #4a3d12;
  font-size: 14px;
  line-height: 1.8;
  transform: rotate(-.5deg);
  box-shadow: 0 8px 18px -14px rgba(43, 39, 36, .5);
}
.note::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, rgba(0, 0, 0, .06) 0 50%, var(--paper) 50% 100%);
}
.note--cyan { background: var(--note); color: var(--note-ink); }
.note--plain { background: var(--paper-deep); color: var(--ink-soft); }

/* 待填占位：明确告知“这里需要你改写” */
.todo {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1.5px dashed var(--pencil-light);
  border-radius: 3px;
  background: rgba(255, 253, 248, .6);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--pencil);
}
.todo strong { color: var(--brown); font-weight: 600; }

/* ---------------------------------------------------------- 目录式列表 ---- */

.entry-list { list-style: none; margin: 0; padding: 0; }

.entry {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 4px 18px;
  padding: 15px 0;
  border-bottom: 1px dashed rgba(139, 129, 117, .28);
}
.entry:last-child { border-bottom: 0; }

.entry-date {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  color: var(--pencil);
  padding-top: 5px;
}

.entry-title { font-family: var(--serif); font-size: 18px; }
.entry-title a { color: inherit; text-decoration: none; }
.entry-title a:hover { background: rgba(243, 226, 169, .55); }

.entry-note { grid-column: 2; font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; }

.entry-tags { grid-column: 2; display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }

/* -------------------------------------------------------------- 步骤 ------ */

.steps { counter-reset: step; list-style: none; margin: 1.2em 0; padding: 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 42px;
  margin-bottom: 14px;
  line-height: 1.85;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 24px;
  color: var(--brown);
  border: 1.5px solid rgba(107, 74, 47, .5);
  border-radius: 50%;
  transform: rotate(-5deg);
}

/* -------------------------------------------------------------- 对比 ------ */

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }

.compare-col {
  padding: 16px 18px 14px;
  background: var(--paper-lift);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.compare-col.is-good { background: rgba(207, 227, 221, .38); border-color: rgba(47, 74, 68, .22); }

.compare-h {
  font-family: var(--serif);
  font-size: 15.5px;
  margin-bottom: 10px;
  color: var(--ink);
}
.compare-col ol { margin: 0; padding-left: 1.3em; font-size: 14px; line-height: 1.95; }
.compare-col ol li::marker { color: var(--pencil); font-family: var(--mono); font-size: 12px; }
.compare-col.is-good ol { padding-left: 0; list-style: none; }

/* ------------------------------------------------------ 浏览器示意图 ------ */

.figure { margin: 26px 0; }

.window {
  position: relative;
  border: 1.5px solid #d5ccbd;
  border-radius: 8px;
  background: var(--paper-lift);
  overflow: hidden;
  box-shadow: 0 16px 32px -26px rgba(43, 39, 36, .6);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #efe9df;
  border-bottom: 1px solid #ddd5c7;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #cfc6b8; }
.dot--r { background: #e2a49a; }
.dot--y { background: #e8d49a; }
.dot--g { background: #a8c9ae; }
.window-url {
  flex: 1;
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--pencil);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.window-body {
  position: relative;
  min-height: 158px;
  padding: 18px;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 27px,
    rgba(139, 129, 117, .09) 27px 28px
  );
}
.window-tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--pencil);
}

/* 手绘感的蓝色书签图标（与扩展工具栏图标一致） */
.bookmark-icon {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #2563eb;
  box-shadow: 0 2px 5px rgba(37, 99, 235, .32);
}
.bookmark-icon::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 10px;
  height: 13px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%);
}

/* 复刻扩展右下角的提示条 */
.toast-demo {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: min(288px, 78%);
  padding: 9px 12px 8px;
  background: #17181d;
  color: #f4f5f7;
  border-left: 3px solid #16a34a;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .3);
}
.toast-demo .ok { color: #4ade80; font-weight: 700; }
.toast-demo .meta { color: #9aa1ac; font-size: 11px; }
.toast-demo .ts { color: #c7cdd6; font-family: var(--mono); font-size: 11px; }
.toast-demo .acts { margin-top: 6px; color: #8ab4ff; font-size: 11px; }

.fig-cap {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--pencil);
  text-align: center;
}

/* 手绘箭头（纯 CSS 曲线 + 箭头，指向提示条） */
.arrow {
  display: block;
  height: 34px;
  margin: 6px 0 2px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40'><path d='M6 6 C 40 4, 60 24, 96 28' fill='none' stroke='%23c8503c' stroke-width='2' stroke-linecap='round' stroke-dasharray='4 5'/><path d='M88 22 L98 29 L86 32' fill='none' stroke='%23c8503c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: .8;
}

/* ------------------------------------------------------------ 正文排版 ---- */

.article-head { margin-bottom: 30px; }

.article-title { font-size: clamp(26px, 4vw, 36px); }

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.article-body { font-size: 17px; line-height: 1.9; color: var(--ink); }

.article-body h2 {
  font-size: 23px;
  margin: 2.1em 0 .65em;
  padding-bottom: .3em;
  border-bottom: 1px dashed rgba(139, 129, 117, .3);
}
.article-body h3 { font-size: 18.5px; margin: 1.7em 0 .55em; color: var(--ink); }
.article-body p { margin: 0 0 1.15em; }
.article-body ul, .article-body ol { margin: 0 0 1.15em; padding-left: 1.4em; }
.article-body li { margin-bottom: .45em; }
.article-body li::marker { color: var(--pencil); }

.article-body blockquote {
  margin: 1.5em 0;
  padding: 12px 20px;
  border-left: 3px solid var(--tape);
  background: rgba(243, 226, 169, .26);
  color: var(--ink-soft);
  font-size: 15.5px;
}
.article-body blockquote p:last-child { margin-bottom: 0; }

.article-body code {
  font-family: var(--mono);
  font-size: .88em;
  background: rgba(139, 129, 117, .15);
  padding: 1px 5px;
  border-radius: 2px;
  word-break: break-word;
}
.article-body pre {
  margin: 1.4em 0;
  padding: 15px 17px;
  overflow-x: auto;
  background: #17181d;
  color: #e9edf5;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.7;
}
.article-body pre code { background: none; padding: 0; color: inherit; }

.article-body table {
  width: 100%;
  margin: 1.4em 0;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.7;
}
.article-body th, .article-body td {
  border: 1px solid rgba(139, 129, 117, .3);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.article-body thead th {
  background: rgba(243, 226, 169, .34);
  font-family: var(--serif);
  font-weight: 600;
}

.article-body hr {
  height: 8px;
  margin: 2em 0;
  border: 0;
  background-image: var(--rule-uri);
  background-repeat: repeat-x;
  background-position: center;
  background-size: 300px 8px;
}

/* ------------------------------------------------------------ 相关链接 ---- */

.related { margin-top: 44px; padding-top: 22px; border-top: 1px dashed rgba(139, 129, 117, .32); }

.related-title {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pencil);
  margin-bottom: 12px;
}

.related ul { list-style: none; margin: 0; padding: 0; }
.related li {
  padding: 9px 0;
  font-size: 15px;
  border-bottom: 1px dashed rgba(139, 129, 117, .2);
}
.related li:last-child { border-bottom: 0; }
.related .rel-meta { font-family: var(--mono); font-size: 11px; color: var(--pencil); margin-left: 8px; }

/* ------------------------------------------------------------ 首页区块 ---- */

.home-lede {
  font-family: var(--serif);
  font-size: clamp(19px, 2.7vw, 23px);
  line-height: 1.95;
  color: var(--ink);
  margin: 10px 0 0;
}
.home-lede em { font-style: normal; background: linear-gradient(transparent 62%, rgba(243, 226, 169, .8) 62%); }

.section-h {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 20px;
  margin: 0 0 10px;
}
.section-sub { font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--pencil); letter-spacing: 0; }

.closing p { font-size: 16.5px; line-height: 2; color: var(--ink-soft); }
.closing p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ 作品墙 ------ */

.works { display: grid; gap: 28px; }

.work-card {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 30px;
  align-items: center;
  padding: 32px;
}

.work-card .card-title { font-size: 25px; }

.work-ghost {
  padding: 22px 26px;
  border: 1.5px dashed var(--pencil-light);
  background: rgba(255, 253, 248, .5);
  box-shadow: none;
}
.work-ghost .card-title { font-size: 18px; color: var(--pencil); }

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 9px 18px;
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.7;
}
.facts dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .07em;
  color: var(--pencil);
  padding-top: 3px;
}
.facts dd { margin: 0; color: var(--ink-soft); }

/* ------------------------------------------------------------ 页脚 -------- */

.site-foot {
  max-width: var(--w-page);
  margin: 50px auto 0;
  padding: 22px 0 44px;
  border-top: 1px dashed rgba(139, 129, 117, .3);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--pencil);
}
.site-foot a { color: var(--pencil); text-decoration: none; border-bottom: 1px solid rgba(139, 129, 117, .35); }
.site-foot a:hover { color: var(--ink); }

/* ------------------------------------------------------------ 小工具 ------ */

.muted { color: var(--pencil); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* 首页纸区顶部只有导航（站名已经留在星空里） */
.nav--paper {
  max-width: var(--w-page);
  margin: 0 auto;
  padding: 20px 0 10px;
  justify-content: flex-end;
  border-bottom: 1px dashed rgba(139, 129, 117, .28);
}

/* 长文页的回到顶部 */
.back-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--brown);
  text-decoration: none;
  background: var(--paper-lift);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: var(--shadow-card);
  opacity: .78;
  transition: opacity .15s ease;
}
.back-top:hover { opacity: 1; }

/* ------------------------------------------------------ 链路示意（垂直） ---- */

.chain { margin: 26px 0 8px; }

.chain-step {
  position: relative;
  margin-left: 13px;
  padding: 10px 14px 10px 34px;
  border-left: 1.5px dashed rgba(139, 129, 117, .55);
}
.chain-step::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 17px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper-lift);
  border: 1.5px solid var(--brown);
}
.chain-step:first-child { border-top: 0; }
.chain-step:last-child::before { background: var(--stamp); border-color: var(--stamp); }

.chain-t { display: block; font-family: var(--serif); font-size: 16px; line-height: 1.5; }
.chain-d { display: block; font-size: 13px; line-height: 1.7; color: var(--pencil); }

.chain-hop {
  margin-left: 13px;
  padding: 3px 0 3px 34px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--pencil-light);
  border-left: 1.5px dashed rgba(139, 129, 117, .55);
}

/* ------------------------------------------------------ 语音板示意 -------- */

.device-demo {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 22px 18px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.device-box {
  position: relative;
  width: 152px;
  height: 94px;
  border-radius: 10px;
  background: #17181d;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px -18px rgba(0, 0, 0, .7);
}
.device-box::after {
  content: "";
  position: absolute;
  bottom: -6px;
  width: 42px;
  height: 6px;
  border-radius: 0 0 6px 6px;
  background: #2a2c36;
}
.device-screen {
  width: 104px;
  height: 58px;
  border-radius: 4px;
  background: #0b1026;
  color: #8ab4ff;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  display: grid;
  place-items: center;
}

.device-bubble {
  position: relative;
  margin: 0;
  padding: 9px 13px;
  max-width: 280px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  box-shadow: var(--shadow-card);
}
.device-bubble::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 26px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}

.device-flow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--pencil);
  text-align: center;
}

/* ------------------------------------------------------------ 响应式 ------ */

@media (max-width: 880px) {
  .work-card { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 760px) {
  body { padding: 0 14px; }

  .site-head { padding: 20px 0 12px; gap: 10px; }
  .brand-name { font-size: 21px; }
  .brand-sub { font-size: 11.5px; }
  .nav, .nav--paper { gap: 14px; font-size: 13.5px; }

  .sheet { padding: 22px 18px; }

  /* 窄屏撤掉全部"手工痕迹"：歪斜、图钉、胶带 —— 避免溢出与误触 */
  .card { --tilt: 0deg !important; padding: 22px 18px; }
  .card:hover { transform: none; }
  .pin, .tape { display: none; }
  .note, .stamp, .tag { transform: none; }

  .compare { grid-template-columns: 1fr; gap: 12px; }

  .entry { grid-template-columns: 1fr; gap: 3px; padding: 13px 0; }
  .entry-date { padding-top: 0; }
  .entry-note, .entry-tags { grid-column: 1; }

  .article-body { font-size: 16.5px; line-height: 1.88; }
  .article-body h2 { font-size: 21px; }
  .article-body h3 { font-size: 17.5px; }
  .article-body table { font-size: 13px; }
  .article-body th, .article-body td { padding: 7px 8px; }
  .article-body pre { font-size: 12px; padding: 12px 13px; }

  .facts { grid-template-columns: 1fr; gap: 2px 0; }
  .facts dd { margin-bottom: 10px; }

  .work-card { padding: 24px 18px; }
  .window-body { min-height: 148px; padding: 12px; }
  .toast-demo { position: static; width: 100%; margin-top: 58px; }

  .rule { margin: 26px 0; }
  .site-foot { margin-top: 36px; padding-bottom: 32px; }
}

/* ------------------------------------------------------- 减少动态效果 ---- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .card:hover { transform: rotate(var(--tilt)); }
}
