/* ==========================================================================
   Skylake Lab 主页（/）与独立简历页（/resume.html）共用样式表（纯 CSS，无预处理器、无外部字体 / 图片 / 脚本）

   设计语汇：芯片是一层层叠起来、用通孔（via）连通的；页面用同一套语汇讲作品——玻璃叠层、通孔、焊盘、走线、
            方波、版图。深石墨首屏 + 柔和象牙叙事段落 + 少量电光青（只标“信号”：当前路径、关键数字、焦点、当前分段）。
   两页分工（2026-10-08 按本人要求拆分）：
     主页   吸顶条（品牌 + “我的简历” + 账户位）→ 首屏（主张、求职意向、3D 产品系统）→ 入口（简历纸页 + 两张课程封面）→ 联系
     简历页 吸顶条（返回主页 + 简历分段导航 + 账户位）→ 概览（姓名、求职意向、经历摘要、项目导览、PDF 下载）→ 个人优势
            → 项目案例 → 工作经历 → 能力地图 → 教育 → 联系
     两页的同名组件共用同一套规则；只属于一页的规则在下面各节注明“主页”或“简历页”。
   实验室阶段（同日稍后，LAB-ACCOUNT-TASK.md）：主页改为“Skylake 的实验室”聚合页，并新增账号说明页 /account.html，
     这两页另外加载 assets/lab.css（新组件都在那里），本文件只加了简历页的 PDF 下载按钮（第 6 节 .resume-pdf）。
     上面“主页”一行说的是改版前的主页（已归档在 archive/homepage-resume-freeze-20261008/）：其中 3D 产品系统
     （第 6 节 .system 等）与主页吸顶条写法目前没有页面使用，原样保留作设计资产；简历纸页、课程封面、联系区、吸顶条胶囊
     仍被实验室主页复用。
   结构：1 设计令牌 → 2 基础与可访问性 → 3 色带主题 → 4 版式原件（容器、章节标题、按钮、事实列表、展开区）
         → 5 吸顶条（品牌 / 返回主页、分段导航、账户位） → 6 首屏（主张、求职意向、3D 产品系统、路径单选；
         简历页概览与经历摘要、项目导览） → 7 个人优势
         → 8 项目案例（重点案例吸顶叙事 / FastDO 对比条 / MDD 解耦 / PMU 事件线） → 9 工作经历与甘特图
         → 10 能力地图（芯片版图） → 11 教育、主页入口（简历纸页）与学习空间（课程封面） → 12 联系（四种联系方式）与页脚
         → 13 动效（只在允许动效时） → 14 减少动效 → 15 强制配色与打印
   动效与性能策略（详见第 13 节）：
     - 基础样式里没有任何动画、移动类过渡或平滑滚动；全部写在 prefers-reduced-motion: no-preference 里。
     - 章节揭示与案例图形的演进用原生 CSS 滚动时间线（animation-timeline: view()），由合成线程驱动，不占用脚本；
       且一律 animation-fill-mode: none —— 元素进入视口之前就是最终状态，只在“进入视口”的那一段区间内插值。
       所以整页截图、无脚本、不支持滚动时间线的浏览器都看到完整内容，不会出现大片空白。
     - 关键帧只改 opacity / transform / clip-path / stroke-dashoffset；没有无限循环动画。
     - 首屏 3D 叠层的指针倾斜与光照由 app.js 用 requestAnimationFrame 缓动写入 CSS 变量，到位即停。
   溢出策略：不在 html / body 上隐藏横向溢出。会产生位移或 3D 投影的元素都有自己的边框：
             3D 舞台 .system__stage 与联系区装饰层 .contact__art 在组件级裁切（overflow: clip），并按容器宽度
             （cqi 单位）计算尺寸，保证 320px 起不越界；吸顶分段条在任何宽度都只在自身内部横向滚动（宽屏放得下时
             不出现滚动），账户位与返回主页不收缩、不折行；联系区的长邮箱在极窄时允许在任意位置换行。
   断点：40rem（640px）单行图表、联系方式单行；45rem（720px）吸顶条显示品牌名 / 品牌图标与完整导航；
         48rem（768px）双栏网格；64rem（1024px）首屏非对称分栏、案例分栏、重点案例吸顶叙事、“返回主页”全称。
   单位：字号一律 rem / clamp(rem…)（跟随用户字号设置）或 3D 舞台内的 cqi；对比度由 tests/ 按令牌计算（WCAG AA）。
   依赖：index.html 与 resume.html 的类名与 data 属性（见两页顶部注释）；脚本只写 data-on / data-stage / aria-current /
         hidden / CSS 变量。
   ========================================================================== */

/* ── 1. 设计令牌 ─────────────────────────────────────────────── */

:root {
  /* 底色 */
  --graphite: #1a1d21;        /* 深石墨：首屏、重点案例、能力地图、联系 */
  --graphite-2: #22262b;      /* 石墨上抬一档：图形底板 */
  --graphite-3: #2a2f35;      /* 石墨再上抬：标签、分隔 */
  --ivory: #f1f0ea;           /* 柔和象牙白：叙事段落 */
  --ivory-2: #e7e5dd;         /* 象牙加深：工作经历 */
  /* 文字（对比度：石墨底 14.5 / 7.3，象牙底 14.8 / 5.8，象牙加深 5.2） */
  --text-on-dark: #eeeee8;
  --muted-on-dark: #a3abb2;
  --text-on-light: #1a1d21;
  --muted-on-light: #575e66;
  /* 电光青：石墨底用亮青（10.2:1），象牙底用深青（5.2:1，象牙加深 4.7:1） */
  --cyan: #45dce8;
  --cyan-deep: #006f7b;
  --cyan-glow: rgba(69, 220, 232, 0.35);
  /* 线 */
  --line-on-dark: rgba(226, 232, 236, 0.14);
  --line-strong-on-dark: rgba(226, 232, 236, 0.3);
  --line-on-light: rgba(26, 29, 33, 0.14);
  --line-strong-on-light: rgba(26, 29, 33, 0.3);
  --glass-tint: 196, 236, 244; /* 玻璃的冷白色（rgb 三元组，配合不同透明度使用） */
  --neutral-mark: #6f767d;     /* 图表里的“过去”灰条：象牙底 4.3:1（图形对象要求 3:1） */

  /* 字体：只用系统字体。拉丁字母走系统无衬线（苹果 SF / Windows Segoe），中文依次回退苹方、冬青黑、微软雅黑、思源黑体 */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Segoe UI",
    "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif;

  /* 字号阶梯（约 1.25 倍，最小正文 17px；中文大标题 600 字重，留足行高不裁切） */
  --step--1: 0.8125rem;                                   /* 13 注释、坐标 */
  --step-0: 1.0625rem;                                    /* 17 正文 */
  --step-1: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem); /* 18–21 导语 */
  --step-2: clamp(1.3125rem, 1.15rem + 0.75vw, 1.75rem);  /* 21–28 小标题 */
  --step-3: clamp(1.625rem, 1.3rem + 1.6vw, 2.5rem);      /* 26–40 案例标题 */
  --step-4: clamp(2.125rem, 1.45rem + 3.2vw, 4rem);       /* 34–64 章节标题 */
  --step-5: clamp(2.25rem, 1.2rem + 4.9vw, 5.25rem);      /* 36–84 首屏主张 */

  /* 版式 */
  --wrap: 78rem;                                   /* 内容最大宽度（不含左右留白） */
  --gutter: clamp(1rem, 0.4rem + 3vw, 3.5rem);     /* 左右留白：320px 时 16px */
  --masthead-h: 3.5rem;                            /* 吸顶条高度：手机 56px，桌面 64px（见第 5 节） */
  --chapter-pad: clamp(4.5rem, 2.8rem + 7vw, 9rem);
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 45rem) {
  :root {
    --masthead-h: 4rem;
  }
}

/* ── 2. 基础与可访问性 ───────────────────────────────────────── */

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

[hidden] {
  display: none !important;
}

html {
  /* 锚点落点：让出吸顶条再留 1rem，标题不被遮挡 */
  scroll-padding-top: calc(var(--masthead-h) + 1rem);
  background: var(--graphite);   /* 上下回弹时露出的底色与首屏、页脚一致 */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--graphite);
  color: var(--text-on-dark);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.8;
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
fieldset {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--link, var(--cyan-deep));
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

a:hover {
  text-decoration-thickness: 2px;
}

strong,
b {
  font-weight: 600;
}

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

main:focus {
  outline: none;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-s);
  background: var(--ivory);
  color: var(--text-on-light);
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* 共用 SVG 图案的容器：不可见，但不能 display:none（部分浏览器会因此不渲染被引用的图案） */
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.pattern-grid__line {
  fill: none;
  stroke: rgba(var(--glass-tint), 0.1);
  stroke-width: 0.8;
}

.pattern-docs__tile {
  fill: rgba(var(--glass-tint), 0.3);
}

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

/* ── 3. 色带主题：石墨 / 象牙两套变量；子元素只用变量，不直接写颜色 ── */

[data-theme="graphite"] {
  --bg: var(--graphite);
  --fg: var(--text-on-dark);
  --muted: var(--muted-on-dark);
  --accent: var(--cyan);
  --line: var(--line-on-dark);
  --line-strong: var(--line-strong-on-dark);
  --link: var(--cyan);
  --focus: var(--cyan);
  --surface: rgba(var(--glass-tint), 0.04);
  background-color: var(--bg);
  color: var(--fg);
  color-scheme: dark;
}

[data-theme="ivory"] {
  --bg: var(--ivory);
  --fg: var(--text-on-light);
  --muted: var(--muted-on-light);
  --accent: var(--cyan-deep);
  --line: var(--line-on-light);
  --line-strong: var(--line-strong-on-light);
  --link: var(--cyan-deep);
  --focus: var(--cyan-deep);
  --surface: rgba(255, 255, 255, 0.55);
  background-color: var(--bg);
  color: var(--fg);
  color-scheme: light;
}

/* ── 4. 版式原件 ─────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.chapter {
  position: relative;
  padding-block: var(--chapter-pad);
}

/* 章节标题：上方一条细线，左端一小段青色——“信号从这里开始”，同时是章节分界 */
.chapter__head {
  max-width: 48rem;
  margin-bottom: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

.chapter__head::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: linear-gradient(to right, var(--accent) 0 2.75rem, var(--line) 2.75rem);
}

.chapter__title {
  font-size: var(--step-4);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.chapter__deck {
  margin-top: 1rem;
  max-width: 34em;
  color: var(--muted);
  font-size: var(--step-1);
  line-height: 1.7;
  text-wrap: pretty;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}

.button--primary {
  background: var(--cyan);
  color: var(--graphite);
}

.button--primary:hover {
  background: #8ae9f0;
}

.button--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--fg);
}

.button--ghost:hover {
  border-color: var(--accent);
}

/* 事实列表：每条前一个小焊盘，细线分隔 */
.facts {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.facts li {
  position: relative;
  padding: 0.8rem 0 0.8rem 1.4rem;
  border-bottom: 1px solid var(--line);
  line-height: 1.65;
}

.facts li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: calc(0.8rem + 0.55em);
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

/* 可展开详情：原生 details/summary（键盘、读屏、页内查找都由浏览器负责）。
   HTML 默认 open：无脚本时完整展开；app.js 在解析过程中、首帧之前把它们收起。 */
.fold {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.fold__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  padding: 0.75rem 0;
  color: var(--fg);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.fold__summary:hover {
  color: var(--accent);
}

.fold__icon {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fold[open] .fold__icon {
  transform: rotate(180deg);
}

.fold__body {
  padding: 0.5rem 0 1.5rem;
}

.fold--quiet {
  margin-top: 1.5rem;
}

.detail {
  display: grid;
  gap: 1.5rem;
}

.detail dt {
  margin-bottom: 0.4rem;
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 600;
}

.detail dd + dd {
  margin-top: 0.5rem;
}

.original {
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem 1.2rem 1.4rem;
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.fold__body.original {
  margin-top: 0.5rem;
}

.original__label {
  margin-bottom: 0.5rem;
  color: var(--fg);
  font-weight: 600;
}

.original ul {
  display: grid;
  gap: 0.6rem;
}

/* ── 5. 吸顶条：品牌 / 返回主页、分段导航、账户位 ──────────────────
   两页共用一条吸顶条，左右结构相同、内容不同：
     主页   [品牌（#home）] ………………………………… [我的简历] [注册 / 登录 | 课程准备中]
     简历页 [返回主页（/）] [简历分段导航（只在自身内部横向滚动）] [注册 / 登录 | 课程准备中]
   账户位（.account）在任何宽度都靠右、不收缩、不折行；分段条占剩下的宽度。
   宽度核算（默认字号）：320px 时内容区 288px——主页品牌图标 32 + 两枚按钮约 180 + 间距 16，余量约 60px；
   简历页“‹ 主页”约 56 + 账户约 95 + 间距 16，分段条约 120px（窄屏本来就是可横滑的分段条）。
   720px 起简历页一行放下“‹ 品牌 主页”86 + 7 个分段 390 + 账户 110 + 间距 32，约 620px（内容区 664px）；放不下时（例如放大字号）
   分段条仍在自身内部滚动，不会撑出页面。 */

.masthead {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: var(--masthead-h);
  color: var(--bar-fg);
  /* 配色由脚本按“吸顶条下方是哪条色带”切换；无脚本时保持石墨配色（足够不透明，在象牙段落上也清晰）。
     账户主按钮：石墨条上是亮青底石墨字（10.2:1），象牙条上是石墨底象牙字（14.5:1，亮青在象牙上边界对比不足） */
  --bar-bg: rgba(26, 29, 33, 0.86);
  --bar-fg: var(--text-on-dark);
  --bar-muted: var(--muted-on-dark);
  --bar-accent: var(--cyan);
  --bar-line: var(--line-on-dark);
  --bar-line-strong: var(--line-strong-on-dark);
  --bar-primary-bg: var(--cyan);
  --bar-primary-fg: var(--graphite);
  --bar-primary-hover: #8ae9f0;
  --focus: var(--cyan);
}

.masthead[data-on="ivory"] {
  --bar-bg: rgba(241, 240, 234, 0.88);
  --bar-fg: var(--text-on-light);
  --bar-muted: var(--muted-on-light);
  --bar-accent: var(--cyan-deep);
  --bar-line: var(--line-on-light);
  --bar-line-strong: var(--line-strong-on-light);
  --bar-primary-bg: var(--graphite);
  --bar-primary-fg: var(--text-on-dark);
  --bar-primary-hover: var(--graphite-3);
  --focus: var(--cyan-deep);
}

.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom: 1px solid var(--bar-line);
  background: var(--bar-bg);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
}

.masthead__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding-right: 0.25rem;
  color: var(--bar-fg);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand__mark {
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.brand__plate--top {
  stroke: var(--bar-accent);
}

.brand__via {
  stroke: var(--bar-accent);
  stroke-width: 2;
  stroke-linecap: round;
}

/* 手机：品牌只留图标（文字留给读屏） */
.brand__name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* 简历页“返回主页”：左箭头 + 品牌图标（720px 起）+ “主页”（1024px 起写全“返回主页”；读屏始终读“返回主页”） */
.home-link {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.375rem;
  min-height: 44px;
  padding-right: 0.25rem;
  color: var(--bar-fg);
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.home-link:hover .home-link__text {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

.home-link__chevron {
  flex: none;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: var(--bar-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-link__mark {
  display: none;
}

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

/* 分段导航（只在简历页）：占满中间的剩余宽度；列表在自身内部横向滚动，宽屏放得下时靠右排齐 */
.chapters {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;   /* 允许在 flex 行里收缩，横向溢出只发生在下面的滚动列表内部 */
}

.chapters__list {
  display: flex;
  min-width: 0;
  gap: 0.125rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding-right: 1.5rem;
  /* 右端渐隐，提示还能横向滑动 */
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
}

.chapters__list::-webkit-scrollbar {
  display: none;
}

.chapters__list a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  color: var(--bar-muted);
  font-size: 0.9375rem;
  white-space: nowrap;
  text-decoration: none;
}

.chapters__list a::after {
  content: "";
  position: absolute;
  right: 0.75rem;
  bottom: 0.4rem;
  left: 0.75rem;
  height: 2px;
  border-radius: 2px;
  background: var(--bar-accent);
  transform: scaleX(0);
  transform-origin: left center;
}

.chapters__list a:hover,
.chapters__list a[aria-current="true"] {
  color: var(--bar-fg);
}

.chapters__list a[aria-current="true"]::after {
  transform: scaleX(1);
}

.chapters__list a:focus-visible {
  outline-offset: -2px;
}

/* 账户位与“我的简历”：真实链接做成胶囊按钮；“课程准备中”是不可点的状态（虚线框 + 虚线空心环，与学习空间“准备中”同一语汇） */
.account {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.account__link,
.account__pending {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 0.8rem;
  border: 1px solid var(--bar-line-strong);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.account__link {
  position: relative;
  color: var(--bar-fg);
  text-decoration: none;
}

/* 可见胶囊 40px（含 1px 边框）；绝对定位从内边距框（38px）算起，上下各补 3px，点击热区 44px
   （伪元素属于链接本身，点到它就是点到链接） */
.account__link::before {
  content: "";
  position: absolute;
  inset: -0.1875rem 0;
}

.account__link:hover {
  border-color: var(--bar-accent);
}

.account__link--primary {
  border-color: var(--bar-primary-bg);
  background: var(--bar-primary-bg);
  color: var(--bar-primary-fg);
}

.account__link--primary:hover {
  border-color: var(--bar-primary-hover);
  background: var(--bar-primary-hover);
}

.account__pending {
  gap: 0.45rem;
  border-style: dashed;
  color: var(--bar-muted);
  --accent: var(--bar-accent);   /* 里面的 .status-dot 用色带强调色画虚线空心环 */
}

.masthead__progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
}

.masthead__progress span {
  display: block;
  height: 100%;
  background: var(--bar-accent);
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
}

@media (min-width: 45rem) {
  .masthead__inner {
    gap: 1rem;
  }

  .brand__name {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }

  .home-link__mark {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
  }

  .chapters__list {
    margin-left: auto;
    padding-right: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .account__link,
  .account__pending {
    padding: 0 1.1rem;
    font-size: 0.9375rem;
  }
}

@media (min-width: 64rem) {
  .masthead__inner {
    gap: 1.5rem;
  }

  .home-link__verb {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }
}

/* ── 6. 首屏 ───────────────────────────────────────────────────── */

.hero {
  padding-top: calc(var(--masthead-h) + clamp(2rem, 1rem + 3vw, 3rem));
  padding-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  /* 只在右半边铺一层极淡的点阵，像版图底纹；不是全页渐变 */
  background-image: radial-gradient(circle at 1px 1px, rgba(var(--glass-tint), 0.09) 1px, transparent 1.4px);
  background-size: 22px 22px;
  background-position: 0 0;
  -webkit-mask-image: none;
}

.hero::before {
  /* 左侧压暗，让点阵只在主视觉一侧可见（装饰层，不参与布局） */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--graphite) 34%, rgba(26, 29, 33, 0.55) 62%, rgba(26, 29, 33, 0.82));
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: clamp(2.25rem, 1rem + 4vw, 3rem);
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 0.7rem + 1.2vw, 1.75rem);
  font-weight: 600;
}

/* 名字：中号、字距拉开，像落款；主张才是视觉主角 */
.hero__name {
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  letter-spacing: 0.32em;
  line-height: 1.4;
  color: var(--fg);
}

.hero__intro {
  container-type: inline-size;   /* 主张字号按本栏宽度计算（cqi），保证每行一句、不折出孤字 */
}

.hero__claim {
  font-size: min(var(--step-5), 13.4cqi);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.hero__line {
  display: block;
}

/* 求职意向（两页首屏共用，取代原来的“职位 | 城市”一行）：字面写出“求职意向：”，一枚焊盘 + 细框胶囊标出。
   这是意向，不是已任职职位，所以不做成头衔的样子——不与城市并排、不用分隔竖线；文字始终是“求职意向：AI 产品经理”。 */
.intent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.1rem;
  width: fit-content;
  max-width: 100%;
  margin-top: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  padding: 0.45rem 1.05rem 0.45rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 1.5rem;
  font-size: var(--step-1);
  line-height: 1.4;
}

.intent::before {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.6rem;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(69, 220, 232, 0.15);
}

.intent__label {
  color: var(--muted);
}

.intent__value {
  color: var(--fg);
  font-weight: 600;
}

/* 简历页概览：姓名是标题（简历首屏先认人），主张退为一句副标题；主页仍是主张做视觉主角、姓名做落款 */
.resume-name {
  font-size: var(--step-5);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.04em;
}

.resume-claim {
  margin-top: clamp(0.75rem, 0.5rem + 1vw, 1.25rem);
  color: var(--fg);
  font-size: var(--step-2);
  font-weight: 400;
  line-height: 1.5;
  text-wrap: balance;
}

.hero__summary {
  margin-top: 1rem;
  max-width: 31em;
  color: var(--muted);
  font-size: var(--step-0);
  line-height: 1.85;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
}

/* 简历页第一屏的“下载 PDF 简历”（2026-10-08）：亮青主按钮 + 一枚文档下载图标 + 文件大小（细竖线隔开，字号小一档）。
   显著靠的是主按钮的位置与颜色，不靠更大的字号或动效；图标与竖线都用 currentColor（石墨字，10.2:1）。 */
.resume-pdf {
  gap: 0.55rem;
}

.resume-pdf__icon {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.resume-pdf__size {
  padding-left: 0.6rem;
  border-left: 1px solid currentColor;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* 3D 产品系统 ------------------------------------------------------------
   舞台：按自身宽度（cqi）给出全部尺寸，320px 到 1440px 等比缩放；perspective 给出真实透视。
   overflow: clip 是组件级边界：叠层倾斜、光照与标签只在舞台框内绘制，不会扩大页面的横向滚动范围。
   叠层：rotateX/rotateZ 摆成俯视的爆炸图；三块板按 --layer 沿 Z 轴拉开；标签与通孔做“反向旋转”始终面向读者。 */

.system {
  position: relative;
  min-width: 0;
}

.system__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 10 / 7.5;
  container-type: inline-size;
  perspective: 250cqi;
  perspective-origin: 50% 32%;
  overflow: hidden;   /* 不支持 overflow: clip 的浏览器的回退 */
  overflow: clip;
  touch-action: pan-y;
}

.system__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 84cqi;
  height: 84cqi;
  margin: -42cqi 0 0 -42cqi;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(69, 220, 232, 0.16), rgba(69, 220, 232, 0.05) 55%, transparent);
  transform: translate3d(var(--glow-x, 0px), var(--glow-y, 0px), 0);
  pointer-events: none;
}

.system__stack {
  --rx: 58deg;          /* 俯视角 */
  --rz: -42deg;         /* 平面转角：让两条路径在画面上一左一右错开 */
  --plate-w: 52cqi;
  --plate-d: 36.9cqi;   /* 与 viewBox 620×440 同比例 */
  --gap: 17.8cqi;       /* 板间距 */
  position: absolute;
  top: 70.5%;
  left: 50%;
  width: var(--plate-w);
  height: var(--plate-d);
  margin: calc(var(--plate-d) / -2) 0 0 calc(var(--plate-w) / -2);
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--rx) + var(--tilt-x, 0deg))) rotateZ(calc(var(--rz) + var(--tilt-z, 0deg)));
}

.system__floor {
  position: absolute;
  inset: -12% -8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.45), transparent);
  transform: translateZ(-3cqi);
}

.plate {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--layer) * var(--gap)));
}

/* 板厚：在玻璃下方再放一层暗面，边缘露出一圈，像有厚度的玻璃片 */
.plate::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(69, 220, 232, 0.12);
  border-radius: 1.6cqi;
  background: rgba(8, 12, 15, 0.38);
  transform: translateZ(-1cqi);
}

.plate__glass {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(var(--glass-tint), 0.28);
  border-radius: 1.6cqi;
  background: linear-gradient(140deg, rgba(var(--glass-tint), 0.13), rgba(var(--glass-tint), 0.035) 55%, rgba(var(--glass-tint), 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.plate--entry .plate__glass {
  border-color: rgba(69, 220, 232, 0.42);
  background: linear-gradient(140deg, rgba(69, 220, 232, 0.16), rgba(var(--glass-tint), 0.04) 55%, rgba(69, 220, 232, 0.09));
}

.plate--flow .plate__glass {
  background: linear-gradient(140deg, rgba(var(--glass-tint), 0.09), rgba(var(--glass-tint), 0.025) 60%, rgba(var(--glass-tint), 0.05));
}

/* 高光：随指针在板内移动（脚本写 --shine-x / --shine-y），只动 transform */
.plate__shine {
  position: absolute;
  top: -30%;
  left: 10%;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.14), transparent);
  transform: translate3d(var(--shine-x, 0%), var(--shine-y, 0%), 0);
}

.plate__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.art-wave,
.art-trace,
.art-boundary,
.art-pins,
.art-scene,
.art-pad,
.art-die,
.art-agent,
.art-classified {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.art-wave {
  stroke: rgba(var(--glass-tint), 0.34);
  stroke-width: 1.2;
}

.art-wave--hot {
  stroke: var(--cyan);
  stroke-width: 1.6;
}

.art-trace {
  stroke: rgba(69, 220, 232, 0.7);
  stroke-width: 1.3;
}

.art-trace--faint {
  stroke: rgba(var(--glass-tint), 0.18);
}

.art-boundary {
  stroke: rgba(69, 220, 232, 0.8);
  stroke-width: 1.3;
  stroke-dasharray: 6 5;
}

.art-classified {
  stroke: var(--cyan);
  stroke-width: 1.3;
}

.art-scene rect,
.art-scene path {
  stroke: rgba(var(--glass-tint), 0.75);
  stroke-width: 1.3;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.art-scene .art-error {
  fill: rgba(69, 220, 232, 0.35);
  stroke: var(--cyan);
}

.art-pins {
  stroke: rgba(var(--glass-tint), 0.55);
  stroke-width: 1.2;
}

.art-die__body,
.art-agent__shell {
  fill: rgba(16, 20, 24, 0.6);
  stroke: rgba(var(--glass-tint), 0.6);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.art-die__core,
.art-agent__core,
.art-pad__core {
  fill: rgba(69, 220, 232, 0.28);
  stroke: var(--cyan);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.art-pad__ring {
  fill: rgba(69, 220, 232, 0.08);
  stroke: rgba(69, 220, 232, 0.75);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

/* 密级边界：一道立在知识入口层上的低矮玻璃墙（绕自身左边缘 rotateY 立起来） */
.wall {
  position: absolute;
  top: 0;
  left: var(--x);
  width: 5.5cqi;
  height: 100%;
  border-left: 1px dashed rgba(69, 220, 232, 0.85);
  background: linear-gradient(to right, rgba(69, 220, 232, 0.2), rgba(69, 220, 232, 0.04));
  transform-origin: 0 0;
  transform: rotateY(-90deg);
}

/* 标签：锚在板上某一点，文字面向读者（反向旋转抵消叠层旋转，含指针倾斜），用折线引线连到锚点。
   引线 = 从锚点竖直向上 --lift，再水平 --reach 接到标签底边——标签整体让开通孔，不会压在通孔上。
   左侧路径（日常知识查询）的标签向左展开，右侧路径（仿真报错归因）向右展开。 */
.flag {
  --lift: 3.2cqi;
  --reach: 2.2cqi;
  --billboard:
    rotateZ(calc(-1 * (var(--rz) + var(--tilt-z, 0deg))))
    rotateX(calc(-1 * (var(--rx) + var(--tilt-x, 0deg))));
  position: absolute;
  top: var(--y);
  left: var(--x);
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  padding: 0.38em 0.62em 0.42em;
  border: 1px solid rgba(var(--glass-tint), 0.22);
  border-radius: 0.55em;
  background: rgba(20, 23, 27, 0.84);
  color: var(--text-on-dark);
  font-size: clamp(0.6875rem, 0.3rem + 1.6cqi, 0.875rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transform-origin: 0 0;
}

.flag::after {
  content: "";
  position: absolute;
  top: 100%;
  width: var(--reach);
  height: var(--lift);
  border-top: 1px solid rgba(69, 220, 232, 0.75);
}

.flag::before {
  /* 锚点上的小焊点 */
  content: "";
  position: absolute;
  top: calc(100% + var(--lift) - 2.5px);
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--cyan);
}

.flag--left {
  transform: var(--billboard) translate(calc(-100% - var(--reach)), calc(-100% - var(--lift)));
}

.flag--left::after {
  left: 100%;
  border-right: 1px solid rgba(69, 220, 232, 0.75);
}

.flag--left::before {
  left: calc(100% + var(--reach) - 2.5px);
}

.flag--right {
  transform: var(--billboard) translate(var(--reach), calc(-100% - var(--lift)));
}

.flag--right::after {
  right: 100%;
  border-left: 1px solid rgba(69, 220, 232, 0.75);
}

.flag--right::before {
  right: calc(100% + var(--reach) - 2.5px);
}

.flag b {
  font-weight: 600;
}

.flag small {
  color: var(--muted-on-dark);
  font-size: 0.88em;
}

/* 层名：锚在每块板的左前边中点，水平引线，像图纸上的层标注；不加底板 */
.flag--layer {
  --reach: 2.4cqi;
  padding: 0 0.2em;
  border: 0;
  background: none;
  color: var(--cyan);
  font-weight: 600;
  transform: var(--billboard) translate(calc(-100% - var(--reach)), -50%);
}

.flag--layer::after {
  top: 50%;
  left: 100%;
  height: 0;
  border-top-color: rgba(69, 220, 232, 0.6);
}

.flag--layer::before {
  top: calc(50% - 2.5px);
  left: calc(100% + var(--reach) - 2.5px);
}

/* 密级边界：立在玻璃墙顶上方，竖直短引线 */
.flag--wall {
  --lift: 7cqi;
  padding: 0.28em 0.55em;
  border-color: rgba(69, 220, 232, 0.45);
  color: var(--cyan);
  font-weight: 600;
  transform: var(--billboard) translate(-50%, calc(-100% - var(--lift)));
}

.flag--wall::after {
  left: 50%;
  width: 0;
  border-top: 0;
  border-left: 1px dashed rgba(69, 220, 232, 0.75);
}

.flag--wall::before {
  display: none;
}

/* 舞台较窄（手机）时，模型层与工作流层的标签只留第一行；完整说明在下方的路径读数里 */
@container (max-width: 30rem) {
  .plate--model .flag small,
  .plate--flow .flag small,
  .flag__quote {
    display: none;   /* 直角引号也省掉：最长的标签「芯片验证助手」因此能留在舞台内（标签整体 aria-hidden，不影响读屏） */
  }
}

/* 极窄舞台（320px 屏幕约 288px）：右侧路径的标签最长，叠层整体左移一点、引线收短，标签不出舞台边框 */
@container (max-width: 22rem) {
  .system__stack {
    --plate-w: 50cqi;
    --plate-d: 35.5cqi;
    left: 47%;
  }

  .flag {
    --reach: 1.6cqi;
  }
}

/* 通孔：一条竖直的细柱，从底层到顶层（rotateX(90deg) 立起来，再绕 Z 反转让宽度面向读者） */
.via {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 2px;
  height: calc(var(--gap) * 2);
  margin-left: -1px;
  background: linear-gradient(to bottom, rgba(69, 220, 232, 0.9), rgba(69, 220, 232, 0.55));
  box-shadow: 0 0 6px rgba(69, 220, 232, 0.55);
  transform-origin: 50% 0;
  transform: rotateZ(calc(-1 * (var(--rz) + var(--tilt-z, 0deg)))) rotateX(90deg);
}

.via__pulse {
  position: absolute;
  top: 0;
  left: -2px;
  width: 6px;
  height: 32%;
  border-radius: 3px;
  background: linear-gradient(to bottom, transparent, #c9f7fb, transparent);
  opacity: 0;
}

/* 路径选择：纯 CSS（:has）驱动，无脚本也能用；脚本同时写 data-route，给不支持 :has 的浏览器兜底。
   未选中的路径整体压暗——这些标签是插图的一部分（WCAG 1.4.3 对“含大量其他视觉内容的图片中的文字”无对比度要求），
   同样的信息由下方的文字读数完整给出。 */
.system:is([data-route="chat"], :has(input[value="chat"]:checked)) [data-route="debug"],
.system:is([data-route="debug"], :has(input[value="debug"]:checked)) [data-route="chat"] {
  opacity: 0.18;
}

.routes {
  min-width: 0;
  margin-top: 0.75rem;
  padding: 0;
  border: 0;
}

/* legend 浮动后参与正常排版：宽度够时与选项同一行，不够时选项自动换到下一行（选项框是独立格式化上下文，会避开浮动） */
.routes__legend {
  float: left;
  margin: 0 0.9rem 0.35rem 0;
  padding: 0;
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 3.3rem;
}

/* 窄屏（<480px）：选项框放在浮动 legend 旁边会被挤窄、在框内折行，所以 legend 改回独占一行 */
@media (max-width: 29.99rem) {
  .routes__legend {
    float: none;
    margin-bottom: 0.5rem;
    line-height: 1.5;
  }
}

.routes__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  background: rgba(var(--glass-tint), 0.03);
}

.routes__option {
  position: relative;
  display: block;
}

/* 原生单选保持可聚焦、铺满整个选项（点击区域 = 选项大小），只是视觉上透明 */
.routes__option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.routes__option span {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border-radius: 1.4rem;
  color: var(--muted);
  font-size: 0.875rem;
  white-space: nowrap;
}

/* 320px 级别：三个选项左右内边距收窄，正好排成一行（触控高度仍是 44px） */
@media (max-width: 22rem) {
  .routes__option span {
    padding: 0 0.55rem;
  }
}

.routes__option input:hover + span {
  color: var(--fg);
}

.routes__option input:checked + span {
  background: rgba(69, 220, 232, 0.14);
  box-shadow: inset 0 0 0 1px rgba(69, 220, 232, 0.55);
  color: var(--fg);
}

.routes__option input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.routes__readout {
  clear: both;
  min-height: 3.4em;
  margin-top: 0.75rem;
  color: var(--fg);
  font-size: 0.9375rem;
  line-height: 1.75;
  text-wrap: pretty;
}

.routes__readout [data-readout] {
  display: none;
}

.system:is([data-route="all"], :has(input[value="all"]:checked)) [data-readout="all"],
.system:is([data-route="chat"], :has(input[value="chat"]:checked)) [data-readout="chat"],
.system:is([data-route="debug"], :has(input[value="debug"]:checked)) [data-readout="debug"] {
  display: block;
}

/* 既不支持 :has、脚本也没运行时，至少显示“全貌”的文字 */
@supports not selector(:has(*)) {
  .system:not([data-route]) [data-readout="all"] {
    display: block;
  }
}

.system__caption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.6;
}

/* 主页：读数下面一行链接，整页跳到简历里这个项目的完整案例（主页不重复案例内容） */
.system__more {
  margin-top: 0.4rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* 宽屏（≥1360px）：图注做成图纸角上的“标题栏”，放进舞台左上角的空白处；更窄时舞台不够宽，
   标题栏会压到「小神灯」标签，所以保留在读数下方 */
@media (min-width: 85rem) {
  .system__caption {
    position: absolute;
    top: 0.25rem;
    left: 0;
    max-width: 15.5em;
    margin: 0;
    padding: 0.55rem 0.75rem 0.6rem;
    border: 1px solid var(--line);
    border-left: 2px solid var(--accent);
    border-radius: 0 var(--radius-s) var(--radius-s) 0;
    background: rgba(26, 29, 33, 0.72);
    font-size: 0.75rem;
    line-height: 1.6;
  }
}

/* 简历页概览右栏：两段工作的真实身份（按本人更正）。每条一枚焊盘 + 细线分隔，像经历时间线的缩略；
   职位是主角并链接到下方工作经历里的对应条目，时间与单位是注脚 */
.roles {
  display: grid;
  border-top: 1px solid var(--line);
}

.roles__item {
  position: relative;
  display: grid;
  gap: 0.15rem;
  padding: 1rem 0 1.1rem 1.4rem;
  border-bottom: 1px solid var(--line);
}

.roles__item::before {
  content: "";
  position: absolute;
  top: 1.4rem;
  left: 0.1rem;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

.roles__period {
  color: var(--muted);
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
}

.roles__role {
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.35;
}

.roles__role a {
  color: var(--fg);
  text-decoration: none;
}

.roles__role a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.roles__org {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* 精选项目导览（简历页概览底部）：四个案例入口，名称 + 一句结果 + 时间 */
.hero__index {
  border-top: 1px solid var(--line);
}

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

.index__item {
  position: relative;
  display: grid;
  gap: 0.3rem;
  padding: 1.1rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  text-decoration: none;
}

.index__item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
}

.index__item:hover::before,
.index__item:focus-visible::before {
  transform: scaleX(1);
}

.index__item:focus-visible {
  outline-offset: -2px;
}

.index__name {
  font-weight: 600;
}

.index__result {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.index__period {
  color: var(--muted);
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 48rem) {
  .index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
  }
}

@media (min-width: 64rem) {
  .hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    padding-top: calc(var(--masthead-h) + 1.5rem);
  }

  .hero__grid {
    flex: 1;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: 1fr auto;
    column-gap: clamp(2rem, 1rem + 3vw, 4.5rem);
    row-gap: 1.5rem;
  }

  .hero__intro {
    align-self: center;
    padding-bottom: 1rem;
  }

  .system {
    align-self: center;
    width: 100%;
    max-width: 44rem;
    justify-self: end;
  }

  .hero__index {
    grid-column: 1 / -1;
  }

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

  .index li + li .index__item {
    padding-left: 1.5rem;
    border-left: 1px solid var(--line);
  }

  .index__item {
    padding-right: 1.5rem;
    border-bottom: 0;
  }

  /* 主页首屏没有底部导览，只有一行两栏 */
  .hero--home .hero__grid {
    grid-template-rows: 1fr;
  }

  /* 简历页概览：不撑满整屏（右栏是经历摘要，不是大图）；左栏姓名与右栏经历底部对齐，项目导览横跨在下面 */
  .hero--resume {
    min-height: 0;
  }

  .hero--resume .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-rows: auto auto;
    align-items: end;
    row-gap: clamp(2.5rem, 1.5rem + 2vw, 3.5rem);
  }

  .hero--resume .hero__intro {
    align-self: end;
    padding-bottom: 0;
  }
}

/* ── 7. 个人优势：2×2 十字细线分格；结论标题 → 一行依据 → 原文 ── */

.claims {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--line);
}

.claim {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.claim__title {
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.claim__proof {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  color: var(--accent);
  font-weight: 600;
  line-height: 1.5;
}

.claim__proof::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  transform: translateY(-0.05em);
}

.claim__text {
  max-width: 32em;
  color: var(--muted);
  text-wrap: pretty;
}

@media (min-width: 48rem) {
  .claims {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 0;
  }

  .claim {
    padding: 2.5rem 2.5rem 2.75rem 0;
  }

  .claim:nth-child(even) {
    padding-left: 2.5rem;
    padding-right: 0;
    border-left: 1px solid var(--line);
  }

  .claim:nth-child(n + 3) {
    border-bottom: 0;
  }
}

/* ── 8. 项目案例 ───────────────────────────────────────────────── */

.work {
  padding-block: 0;
}

.band {
  padding-block: var(--chapter-pad);
}

.case {
  position: relative;
}

.case + .case {
  margin-top: clamp(5rem, 3rem + 8vw, 10rem);
  padding-top: clamp(5rem, 3rem + 8vw, 10rem);
  border-top: 1px solid var(--line);
}

.case__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 600;
}

.case__badge::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(69, 220, 232, 0.15);
}

.case__title {
  font-size: var(--step-3);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.case__badge + .case__title {
  margin-top: 0.75rem;
}

.case--feature .case__title {
  font-size: var(--step-4);
  line-height: 1.16;
}

.case__subtitle {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: var(--step-1);
  line-height: 1.6;
}

.case__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 2.25rem;
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.case__meta div {
  display: grid;
  gap: 0.15rem;
}

.case__meta dt {
  color: var(--muted);
  font-size: var(--step--1);
}

.case__meta dd {
  font-variant-numeric: tabular-nums;
}

.case--feature .case__meta div:last-child {
  flex: 1 1 100%;
}

.case--feature .case__meta div:last-child dd {
  max-width: 40em;
}

.case__lede {
  margin-top: 1.5rem;
  max-width: 34em;
  font-size: var(--step-1);
  line-height: 1.75;
  text-wrap: pretty;
}

/* 8.1 重点案例：分步叙事 + 示意图 --------------------------------------- */

.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}

/* 窄屏：先给完整示意图，再给五步文字（不吸顶） */
.routing {
  order: -1;
}

.story__steps {
  display: grid;
  gap: 2rem;
}

.story__step {
  position: relative;
  padding-left: 1.4rem;
  border-left: 1px solid var(--line);
}

.story__step::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}

.story__label {
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 600;
}

.story__step p + p {
  margin-top: 0.7rem;
}

.story__list {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.7rem;
}

.story__list li {
  position: relative;
  padding-left: 1.1rem;
}

.story__list li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--muted);
}

/* 示意图：知识如何按密级分流到两个入口 */
.routing__board {
  padding: clamp(1.1rem, 0.6rem + 2vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background:
    radial-gradient(circle at 1px 1px, rgba(var(--glass-tint), 0.07) 1px, transparent 1.4px) 0 0 / 18px 18px,
    linear-gradient(180deg, rgba(var(--glass-tint), 0.05), rgba(var(--glass-tint), 0.015));
}

.routing__source {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}

/* 文档块：两层重复渐变画出的小方块阵列 */
.routing__docs {
  width: min(15rem, 80%);
  height: 2.6rem;
  background: repeating-linear-gradient(90deg, rgba(var(--glass-tint), 0.42) 0 10px, transparent 10px 14px);
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 12px, transparent 12px 16px);
  mask-image: repeating-linear-gradient(180deg, #000 0 12px, transparent 12px 16px);
}

.routing__source p {
  font-size: 0.9375rem;
  line-height: 1.5;
}

.routing__count {
  display: block;
  color: var(--accent);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
}

/* 分叉：一根竖线下来，横向分成两路，再分别落到两条通道 */
.routing__fork {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4.5rem;
}

.routing__fork-line {
  position: absolute;
  top: 0;
  right: calc(25% - 1.4rem);
  bottom: 0;
  left: calc(25% - 1.4rem);
}

.routing__fork-line::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1.5px;
  height: 50%;
  background: var(--fork-color, var(--line-strong));
}

.routing__fork-line::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 50%;
  border: 1.5px solid var(--fork-color, var(--line-strong));
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.routing__fork p {
  position: relative;
  padding: 0.2rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--graphite-2);
  color: inherit;
  font-size: var(--step--1);
  white-space: nowrap;
}

/* 两条通道共用一套行网格（通道本身 display: contents），任何一格换行时，同一行的两个节点一起变高，
   左右两边的“知识库 / 入口 / 场景 / 用户数”始终对齐 */
.routing__lanes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.25rem minmax(0, 1fr);
  grid-template-rows: repeat(4, auto);
  row-gap: 1.4rem;
}

.routing__lane {
  display: contents;
}

.routing__lane[data-route="chat"] > .routing__node {
  grid-column: 1;
}

.routing__lane[data-route="debug"] > .routing__node {
  grid-column: 3;
}

.routing__node--kb {
  grid-row: 1;
}

.routing__node--entry {
  grid-row: 2;
}

.routing__node--scene {
  grid-row: 3;
}

.routing__node--users {
  grid-row: 4;
}

.routing__node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;     /* 子元素（如“涉密”标签）保持自身宽度，不被拉满 */
  justify-content: center;
  min-width: 0;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--graphite-2);
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
}

/* 节点之间的走线：长度等于行间距 */
.routing__node + .routing__node::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 1.5px;
  height: calc(1.4rem + 1px);
  background: var(--trace-color, var(--line-strong));
}

.routing__node--entry strong {
  display: block;
  font-size: 0.9375rem;
}

.routing__node--entry span {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
}

.routing__node--users {
  color: var(--fg);
  font-size: 1rem;
  font-weight: 600;
}

.routing__tag {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0 0.35rem;
  border: 1px solid currentColor;
  border-radius: 4px;
  color: var(--accent);
  font-size: 0.75rem;
  line-height: 1.5;
}

/* 密级边界：两条通道之间一道竖向虚线，文字竖排 */
.routing__wall {
  position: relative;
  grid-column: 2;
  grid-row: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.routing__wall::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1.5px;
  background: repeating-linear-gradient(180deg, var(--wall-color, var(--muted)) 0 6px, transparent 6px 11px);
}

.routing__wall span {
  position: relative;
  padding: 0.5rem 0;
  background: var(--graphite-2);
  color: var(--wall-color, var(--muted));
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
}

.routing__caption {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.6;
}

/* 点亮：data-from 不大于当前步骤（data-stage）的部件为“已讲到”，其余转暗。转暗只换颜色、不降不透明度：
   文字改用次要色（石墨上抬底上 6.5:1），边框与走线退成细灰线——任何一步的截图里文字都满足 AA。
   data-stage="all" 时全部点亮；这是无脚本、减少动效、叙事区离视口较远时的状态。 */
.routing [data-from] {
  --trace-color: rgba(69, 220, 232, 0.75);
  --fork-color: rgba(69, 220, 232, 0.75);
  --wall-color: var(--cyan);
}

.routing__node[data-from] {
  border-color: rgba(69, 220, 232, 0.5);
}

.routing[data-stage="1"] :is([data-from="2"], [data-from="3"], [data-from="4"], [data-from="5"]),
.routing[data-stage="2"] :is([data-from="3"], [data-from="4"], [data-from="5"]),
.routing[data-stage="3"] :is([data-from="4"], [data-from="5"]),
.routing[data-stage="4"] [data-from="5"] {
  --trace-color: var(--line);
  --fork-color: var(--line-strong);
  --wall-color: var(--muted);
  border-color: var(--line);
  background-color: transparent;
  color: var(--muted);
}

/* 转暗的部件里，装饰性的文档块和青色标签一起退色（文档块是图形；“涉密”标签改用次要色，仍可读） */
.routing[data-stage="1"] :is([data-from="3"]) .routing__tag {
  color: var(--muted);
}

.routing[data-stage="2"] [data-from="3"] .routing__tag {
  color: var(--muted);
}

/* 当前这一步的部件：青色描边加一圈很淡的光 */
.routing[data-stage="1"] [data-from="1"] .routing__docs,
.routing[data-stage="5"] .routing__count {
  filter: drop-shadow(0 0 6px rgba(69, 220, 232, 0.45));
}

.routing[data-stage="3"] .routing__node[data-from="3"],
.routing[data-stage="4"] .routing__node[data-from="4"],
.routing[data-stage="5"] .routing__node[data-from="5"] {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(69, 220, 232, 0.12);
}

@media (min-width: 64rem) {
  .story {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(2.5rem, 1rem + 4vw, 5rem);
    align-items: start;
  }

  .routing {
    order: 0;
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: calc(var(--masthead-h) + 1.5rem);
  }

  .story__steps {
    grid-column: 1;
    grid-row: 1;
    gap: 0;
  }

  .story__step {
    padding-block: 1.75rem;
  }

  /* 吸顶叙事时每一步留出阅读停留的距离（约三分之一屏），不做成大段空白 */
  .story[data-active] .story__step {
    min-height: 32vh;
  }

  /* 脚本接管叙事时：当前步骤左侧亮起，其余步骤文字转为次要色（对比度仍 ≥ 7:1） */
  .story[data-active] .story__step {
    color: var(--muted);
  }

  .story[data-active] .story__step.is-active {
    border-left-color: var(--accent);
    color: var(--fg);
  }

  .story[data-active] .story__step.is-active::before {
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(69, 220, 232, 0.16);
  }
}

/* 8.2 FastDO：加载时间对比条 --------------------------------------------
   坐标 0–70 分钟：灰条到 60（1 小时），后接渐隐开口表示“以上”；青条到 10，浅青区间段 10–15。
   条宽 ≤ 24px，数据端 4px 圆角、基线端方角；条与区间段之间 2px 底色间隙；文字只用文字色。 */

.loadtime {
  --axis-max: 70;
  min-width: 0;
}

.loadtime__title {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.loadtime__plot {
  --label-w: 4.25rem;
  --value-w: 6.75rem;
  display: grid;
  gap: 1.1rem;
  padding: 1.25rem 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}

.loadtime__axis {
  position: relative;
  height: 1.4rem;
  margin: 0 calc(var(--value-w) + 0.75rem) 0 calc(var(--label-w) + 0.75rem);
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.loadtime__axis span {
  position: absolute;
  bottom: 0.4rem;
  left: calc(var(--at) / var(--axis-max) * 100%);
  transform: translateX(-50%);
}

.loadtime__axis span:first-child {
  transform: none;
}

.loadtime__row {
  display: grid;
  grid-template-columns: var(--label-w) minmax(0, 1fr) var(--value-w);
  align-items: center;
  gap: 0.75rem;
}

.loadtime__label {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* 轨道：背后画 15 分钟一格的竖向网格线（实线、比底色深一档） */
.loadtime__track {
  position: relative;
  height: 20px;
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(15 / var(--axis-max) * 100%));
}

.loadtime__bar,
.loadtime__more {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
}

.loadtime__bar--before {
  width: calc(60 / var(--axis-max) * 100%);
  background: var(--neutral-mark);
}

.loadtime__more {
  left: calc(60 / var(--axis-max) * 100% + 2px);
  width: calc(7 / var(--axis-max) * 100%);
  border-radius: 0 4px 4px 0;
  background: linear-gradient(to right, rgba(111, 118, 125, 0.75), rgba(111, 118, 125, 0));
}

.loadtime__bar--after {
  width: calc(10 / var(--axis-max) * 100%);
  background: var(--cyan-deep);
}

.loadtime__bar--range {
  left: calc(10 / var(--axis-max) * 100% + 2px);
  width: calc(5 / var(--axis-max) * 100% - 2px);
  border-radius: 0 4px 4px 0;
  background: rgba(0, 111, 123, 0.4);
}

.loadtime__value {
  font-size: 1.0625rem;
  font-weight: 600;
  white-space: nowrap;
}

.loadtime__caption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.6;
}

@media (max-width: 39.99rem) {
  /* 窄屏：标签和数值在一行，条单独占满一行，保证条足够长 */
  .loadtime__row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "label value" "track track";
    row-gap: 0.45rem;
  }

  .loadtime__label {
    grid-area: label;
  }

  .loadtime__value {
    grid-area: value;
  }

  .loadtime__track {
    grid-area: track;
  }

  .loadtime__axis {
    margin: 0;
  }
}

/* 8.3 MDD：耦合 → 模块 ------------------------------------------------- */

.untangle {
  min-width: 0;
}

/* 舞台：图形占满两列，下方两条说明分别对齐“重构前 / 重构后” */
.untangle__stage {
  display: grid;
  grid-template-columns: 41% 17% minmax(0, 1fr);
  padding: 1.25rem 1.25rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}

.untangle__art {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.untangle__edge {
  fill: none;
  stroke: rgba(26, 29, 33, 0.42);
  stroke-width: 1.3;
  vector-effect: non-scaling-stroke;
}

.untangle__node {
  fill: var(--ivory);
  stroke: var(--text-on-light);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.untangle__arrow path {
  fill: none;
  stroke: var(--muted-on-light);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.untangle__module rect {
  fill: rgba(0, 111, 123, 0.06);
  stroke: var(--cyan-deep);
  stroke-width: 1.3;
  vector-effect: non-scaling-stroke;
}

.untangle__module path,
.untangle__flow {
  fill: none;
  stroke: var(--cyan-deep);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.untangle__module circle {
  fill: var(--cyan-deep);
  stroke: var(--ivory);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.untangle__label {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.5;
  word-break: keep-all;   /* 只在标点处换行，避免“耦 / 合”这类断词；短语都很短，不会撑出容器 */
}

.untangle__art {
  grid-column: 1 / -1;
}

.untangle__label--after {
  grid-column: 3;
}

/* 一键流程：设计图 → 按子图自动展开 → C 代码 */
.untangle__pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0;
  margin-top: 1rem;
  font-size: 0.9375rem;
}

.untangle__pipeline span {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  white-space: nowrap;
}

.untangle__pipeline span + span {
  position: relative;
  margin-left: 1.5rem;
}

.untangle__pipeline span + span::before {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(100% + 1px);
  width: 1.5rem;
  height: 1.5px;
  background: var(--cyan-deep);
}

.untangle__pipeline .untangle__step {
  border-color: var(--cyan-deep);
  color: var(--cyan-deep);
  font-weight: 600;
}

.untangle__caption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.6;
}

@media (max-width: 29.99rem) {
  /* 很窄的屏幕：流程竖排，连线改为竖线 */
  .untangle__pipeline {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .untangle__pipeline span + span {
    margin: 1rem 0 0;
  }

  .untangle__pipeline span + span::before {
    top: auto;
    right: auto;
    bottom: calc(100% + 1px);
    left: 1.25rem;
    width: 1.5px;
    height: 1rem;
  }
}

/* 8.4 PMU：事件时间线 --------------------------------------------------- */

.eventline {
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.eventline__board {
  padding: clamp(1rem, 0.5rem + 2.5vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}

.eventline__manager {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 0.65rem 1.25rem;
  border: 1.5px solid var(--cyan-deep);
  border-radius: var(--radius-m);
  background: var(--ivory);
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.eventline__manager span {
  color: var(--muted);
  font-size: var(--step--1);
  font-weight: 400;
}

/* 运行区：上沿是汇总总线（连到管理器），中间是时间轴，埋点从总线垂到轴上 */
.eventline__run {
  --axis-y: 4.6rem;
  position: relative;
  height: 7.2rem;
  margin-top: 1.25rem;
}

.eventline__bus {
  position: absolute;
  top: 0;
  left: 10%;
  width: 74%;
  height: 1.5px;
  background: var(--cyan-deep);
}

.eventline__bus::before {
  /* 总线中点向上连到管理器 */
  content: "";
  position: absolute;
  bottom: 0;
  left: calc(50% - 0.75px);
  width: 1.5px;
  height: 1.25rem;
  background: var(--cyan-deep);
}

.eventline__axis {
  position: absolute;
  top: var(--axis-y);
  right: 0;
  left: 0;
  height: 2px;
  background: var(--text-on-light);
}

.eventline__axis::after {
  /* 时间轴末端的箭头 */
  content: "";
  position: absolute;
  top: -4px;
  right: -1px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--text-on-light);
}

.eventline__span {
  position: absolute;
  top: calc(var(--axis-y) - 1.05rem);
  left: calc(var(--from) * 1% + 5px);
  width: calc((var(--to) - var(--from)) * 1% - 10px);
  height: 0.6rem;
  border: 1.5px solid var(--cyan-deep);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}

.eventline__span span {
  position: absolute;
  bottom: calc(100% + 0.15rem);
  left: 50%;
  color: var(--cyan-deep);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transform: translateX(-50%);
}

.eventline__pin {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--at) * 1%);
  width: 0;
}

.eventline__pin::before {
  content: "";
  position: absolute;
  top: 0;
  left: -0.75px;
  width: 1.5px;
  height: var(--axis-y);
  background: var(--cyan-deep);
}

.eventline__pin::after {
  content: "";
  position: absolute;
  top: calc(var(--axis-y) - 5px);
  left: -6px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--ivory);
  border-radius: 50%;
  background: var(--cyan-deep);
}

.eventline__pin span {
  position: absolute;
  top: calc(var(--axis-y) + 0.7rem);
  left: 0;
  color: var(--fg);
  font-size: 0.8125rem;
  line-height: 1.3;
  white-space: nowrap;
  transform: translateX(-50%);
}

.eventline__pin--new::before {
  background: repeating-linear-gradient(180deg, var(--cyan-deep) 0 5px, transparent 5px 9px);
}

.eventline__pin--new::after {
  border: 1.5px dashed var(--cyan-deep);
  background: var(--ivory);
}

.eventline__pin--new span {
  color: var(--cyan-deep);
  font-weight: 600;
}

.eventline__end {
  position: absolute;
  top: calc(var(--axis-y) - 1.6rem);
  right: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.2;
}

@media (max-width: 39.99rem) {
  .eventline__end {
    display: none;
  }
}

.eventline__before {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.9rem;
  margin-top: 0.75rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 0.875rem;
}

.eventline__before-line {
  position: relative;
  flex: 1 1 8rem;
  height: 2px;
  background: var(--neutral-mark);
  order: 2;
}

.eventline__before-line::after {
  /* 唯一的读数：只在末端给出总时延 */
  content: "";
  position: absolute;
  top: -5px;
  right: 0;
  width: 2px;
  height: 12px;
  background: var(--neutral-mark);
}

.eventline__caption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.6;
}

.case__head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 3rem;
}

.case__head--row .case__meta {
  margin-top: 0;
}

.case__columns {
  display: grid;
  gap: 0.5rem;
  margin-top: 2rem;
}

.case__columns .case__lede {
  margin-top: 0;
}

/* 分栏案例：左文右图（MDD 镜像为左图右文）；展开区横跨两栏 */
.case--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}

@media (min-width: 48rem) {
  .detail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}

@media (min-width: 64rem) {
  .case--split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: clamp(3rem, 1rem + 5vw, 6rem);
    align-items: center;
  }

  .case--split .fold {
    grid-column: 1 / -1;
  }

  .case--mirror {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  }

  .case--mirror .case__text {
    order: 2;
  }

  .case--mirror .untangle {
    order: 1;
  }

  .case--mirror .fold {
    order: 3;
  }

  .case__columns {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: clamp(3rem, 1rem + 5vw, 6rem);
  }

  .case__columns .facts {
    margin-top: 0;
  }
}

/* ── 9. 工作经历：竖向时间线（刻度纹理）+ 项目甘特图 ─────────────── */

.experience {
  background-color: var(--ivory-2);
}

.timeline {
  position: relative;
}

.job {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0 0 clamp(3rem, 2rem + 4vw, 5rem) 1.9rem;
}

/* 时间线：一条细线 + 旁边一列量尺刻度（每 12px 一格），节点是方形焊盘 */
.job::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  bottom: 0;
  left: 5px;
  width: 7px;
  border-left: 1px solid var(--line-strong);
  background: repeating-linear-gradient(180deg, var(--line-strong) 0 1px, transparent 1px 12px) right top / 4px 100% no-repeat;
  transform-origin: top center;
}

.job:last-child::before {
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
}

.job::after {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 0;
  width: 11px;
  height: 11px;
  border: 2px solid var(--accent);
  border-radius: 3px;
  background: var(--ivory-2);
}

.job__period {
  color: var(--muted);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.8;
}

.job__company {
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.4;
  text-wrap: balance;
  word-break: keep-all;   /* “上海华为技术有限公司”不拆开，在“（外企德科 OD）”前换行 */
}

/* 职位（按本人更正：软件研发工程师 / 客户经理）用正文色与粗体，和单位名一样一眼可见，不再退成次要色 */
.job__role {
  margin-top: 0.2rem;
  color: var(--fg);
  font-weight: 600;
}

.job__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.job__tags li {
  padding: 0.25rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.875rem;
  line-height: 1.6;
}

.job__figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  margin-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.job__figures li {
  position: relative;
  padding: 0.8rem 1rem 0.8rem 1.2rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.55;
}

.job__figures li::before {
  content: "";
  position: absolute;
  top: calc(0.8rem + 0.6em);
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
}

.job__highlights {
  display: grid;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.job__highlights strong {
  color: var(--fg);
}

/* 甘特图：2024-08 至 2026-06，共 23 个月；条宽按月份比例 */
.gantt {
  --months: 23;
  --name-w: 11.5rem;
  margin-top: 1.75rem;
  padding: 1.1rem 1.25rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, 0.35);
}

.gantt__caption {
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.gantt__axis {
  position: relative;
  height: 1.5rem;
  margin-left: var(--name-w);
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.gantt__axis span {
  position: absolute;
  bottom: 0.4rem;
  left: calc(var(--at) / var(--months) * 100%);
  white-space: nowrap;
  transform: translateX(-50%);
}

.gantt__axis span:first-child {
  transform: none;
}

.gantt__axis span:last-child {
  transform: translateX(-100%);
}

.gantt__link {
  display: grid;
  grid-template-columns: var(--name-w) minmax(0, 1fr);
  align-items: center;
  min-height: 3rem;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  text-decoration: none;
}

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

.gantt__name {
  padding-right: 1rem;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.gantt__when {
  grid-column: 1;
  grid-row: 2;
  padding-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.gantt__name {
  grid-row: 1;
  padding-top: 0.45rem;
}

/* 条：年份分界处有竖向网格线；条本身 10px 高、两端 3px 圆角（区间两端都是数据端） */
.gantt__bar {
  position: relative;
  grid-column: 2;
  grid-row: 1 / span 2;
  height: 100%;
  background:
    linear-gradient(var(--line), var(--line)) calc(5 / var(--months) * 100%) 0 / 1px 100% no-repeat,
    linear-gradient(var(--line), var(--line)) calc(17 / var(--months) * 100%) 0 / 1px 100% no-repeat;
}

.gantt__bar::before {
  content: "";
  position: absolute;
  top: calc(50% - 5px);
  left: calc(var(--from) / var(--months) * 100%);
  width: calc((var(--to) - var(--from)) / var(--months) * 100%);
  height: 10px;
  border-radius: 3px;
  background: var(--cyan-deep);
  transform-origin: left center;
}

.gantt__link:hover .gantt__name,
.gantt__link:focus-visible .gantt__name {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.24em;
}

.gantt__link:hover .gantt__bar::before,
.gantt__link:focus-visible .gantt__bar::before {
  box-shadow: 0 0 0 3px rgba(0, 111, 123, 0.18);
}

.gantt__link:focus-visible {
  outline-offset: 2px;
}

@media (max-width: 39.99rem) {
  .gantt {
    --name-w: 0px;
    padding-inline: 1rem;
  }

  .gantt__link {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 0.6rem;
  }

  .gantt__name {
    padding-right: 0;
  }

  .gantt__bar {
    grid-column: 1;
    grid-row: 3;
    height: 16px;
  }

  .gantt__axis span:nth-child(2),
  .gantt__axis span:nth-child(3) {
    /* 窄屏只留两端的日期，避免挤在一起 */
    display: none;
  }
}

@media (min-width: 64rem) {
  .job {
    grid-template-columns: 11rem minmax(0, 1fr);
    column-gap: 3.5rem;
    padding-left: 0;
  }

  .job::before {
    left: calc(11rem + 1.75rem - 3px);
  }

  .job::after {
    left: calc(11rem + 1.75rem - 5.5px);
  }

  .job__period {
    text-align: right;
  }
}

/* ── 10. 能力地图：芯片版图 ─────────────────────────────────────── */

.die {
  position: relative;
  padding: clamp(0.75rem, 0.4rem + 1.5vw, 1.5rem);
  border: 1px solid rgba(var(--glass-tint), 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 1px 1px, rgba(var(--glass-tint), 0.07) 1px, transparent 1.4px) 0 0 / 16px 16px,
    linear-gradient(180deg, rgba(var(--glass-tint), 0.04), rgba(var(--glass-tint), 0.01));
}

/* 引脚：外框四周一圈细刻度（装饰层，向外 8px，留在页面左右留白之内） */
.die::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 24px;
  background:
    repeating-linear-gradient(90deg, rgba(var(--glass-tint), 0.32) 0 1px, transparent 1px 18px) 24px 0 / calc(100% - 48px) 5px no-repeat,
    repeating-linear-gradient(90deg, rgba(var(--glass-tint), 0.32) 0 1px, transparent 1px 18px) 24px 100% / calc(100% - 48px) 5px no-repeat,
    repeating-linear-gradient(180deg, rgba(var(--glass-tint), 0.32) 0 1px, transparent 1px 18px) 0 24px / 5px calc(100% - 48px) no-repeat,
    repeating-linear-gradient(180deg, rgba(var(--glass-tint), 0.32) 0 1px, transparent 1px 18px) 100% 24px / 5px calc(100% - 48px) no-repeat;
  pointer-events: none;
}

.die__layer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--line);
}

.die__layer:first-child {
  border-top: 0;
}

.die__layer-name {
  padding: 0.9rem 0.75rem 0;
  color: var(--accent);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.die__block {
  min-width: 0;
  padding: 0.6rem 0.75rem 1.4rem;
}

.die__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.4;
}

.die__title::before {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border: 1.5px solid var(--accent);
  border-radius: 2px;
}

.die__cells {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.die__cells li {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: rgba(var(--glass-tint), 0.035);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.die__evidence {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
}


@media (min-width: 48rem) {
  .die__layer {
    grid-template-columns: 8.5rem minmax(0, 1fr);
  }

  .die__layer-name {
    padding: 1.6rem 1rem 1rem 0.5rem;
    border-right: 1px solid var(--line);
  }

  .die__block {
    padding: 1.4rem 1.5rem 1.6rem;
  }

  .die__layer--base {
    grid-template-columns: 8.5rem minmax(0, 5fr) minmax(0, 4fr);
  }

  .die__layer--base .die__layer-name {
    grid-row: 1 / span 2;
  }

  .die__block--collaboration {
    border-left: 1px solid var(--line);
  }

  .die__block--tools {
    grid-column: 2 / -1;
    border-top: 1px solid var(--line);
  }
}

@media (min-width: 64rem) {
  .die__layer--base {
    grid-template-columns: 8.5rem minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
  }

  .die__layer--base .die__layer-name {
    grid-row: auto;
  }

  .die__block--tools {
    grid-column: auto;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

/* ── 11. 教育（简历页）、主页入口（简历纸页）与学习空间（课程封面） ─────────── */

.education {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.4rem;
  padding-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}

.education__period {
  color: var(--muted);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.education__school {
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.4;
}

.education__degree {
  color: var(--muted);
}

.education__courses {
  max-width: 40em;
  margin-top: 0.8rem;
}

.education__activities {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.8rem;
  color: var(--muted);
}

.education__activities li {
  position: relative;
  padding-left: 1.1rem;
}

.education__activities li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--accent);
}

@media (min-width: 64rem) {
  .education {
    grid-template-columns: 11rem minmax(0, 1fr);
    column-gap: 3.5rem;
  }

  .education__period {
    text-align: right;
  }
}

/* 简历页的教育分段里，教育块就是最后一块（学习空间入口在主页），去掉原来与学习空间之间的分隔 */
.education:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

/* 主页入口区的简历入口（.door）：和下面两张课程封面同一套“实物封面 + 文字”构图，但封面是一张纸——
   简历是文档、不是课程：白纸、细框、几行字的轮廓、一枚青色焊盘。链接全部整页跳到 /resume.html。
   不用 .path__* 类名：#learning .path__actions 只放课程链接（后端测试与浏览器检查按顺序核对 /courses/、/learn/、/private/）。
   版式：窄屏上下堆叠；26rem 起纸页在左、文字在右，按钮在文字下；64rem 起按钮移到最右并与纸页垂直居中。 */
.door {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  background: var(--surface);
}

.sheet {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: min(100%, 9.5rem);
  aspect-ratio: 3 / 4;
  padding: 0.85rem 0.9rem 0.9rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 0 0 1px var(--line-strong),
    0 18px 30px -20px rgba(26, 29, 33, 0.45);
  color: var(--text-on-light);
}

.sheet__imprint,
.sheet__note {
  color: var(--muted);
  font-size: 0.6875rem;
  line-height: 1.4;
  letter-spacing: 0.06em;
}

.sheet__imprint {
  font-weight: 600;
}

.sheet__title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
}

.sheet__title::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--cyan-deep);
}

/* 几行字的轮廓：六段长短不一的细线，两两一组，像简历里的条目（纯装饰，整个纸页 aria-hidden）。
   最后一段落在 3.2rem：纸页最窄 8rem 宽（高约 10.7rem）时，这一区域约 3.8rem 高，六段都画得下 */
.sheet__lines {
  flex: 1;
  background:
    linear-gradient(var(--line-strong) 0 0) 0 0.2rem / 86% 2px,
    linear-gradient(var(--line-strong) 0 0) 0 0.7rem / 62% 2px,
    linear-gradient(var(--line-strong) 0 0) 0 1.45rem / 92% 2px,
    linear-gradient(var(--line-strong) 0 0) 0 1.95rem / 54% 2px,
    linear-gradient(var(--line-strong) 0 0) 0 2.7rem / 78% 2px,
    linear-gradient(var(--line-strong) 0 0) 0 3.2rem / 46% 2px;
  background-repeat: no-repeat;
}

.door__title {
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.35;
}

.door__text {
  max-width: 34em;
  margin-top: 0.5rem;
  color: var(--muted);
}

/* 章节直达：小胶囊，每个都整页跳到简历的对应章节 */
.door__chapters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.door__chapters a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--fg);
  font-size: 0.875rem;
  line-height: 1.4;
  text-decoration: none;
}

.door__chapters a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 主按钮：与课程入口的主按钮同一外观（象牙色带上用石墨实底，14.5:1） */
.door__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1.15rem;
  border: 1px solid var(--graphite);
  border-radius: 999px;
  background: var(--graphite);
  color: var(--text-on-dark);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.door__link:hover {
  border-color: var(--graphite-3);
  background: var(--graphite-3);
}

@media (min-width: 26rem) {
  .door {
    grid-template-columns: 8rem minmax(0, 1fr);
    align-items: start;
  }

  .sheet {
    grid-row: span 2;
  }

  .door__actions {
    grid-column: 2;
  }
}

@media (min-width: 64rem) {
  .door {
    grid-template-columns: 9.5rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.75rem;
    padding: 1.75rem 2.25rem 1.75rem 1.75rem;
  }

  .sheet {
    grid-row: auto;
  }

  .door__actions {
    grid-column: 3;
  }
}

.space {
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
}

.door + .space {
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.space__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.space__title {
  font-size: var(--step-3);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

/* “准备中”：空心环 + 虚线，不用代表“在线”的实心绿点。原学习空间标题旁的状态胶囊（.space__status）已移到吸顶条账户位
   （.account__pending，未发布时显示“课程准备中”），这枚环跟着它走 */
.status-dot {
  flex: none;
  width: 0.65rem;
  height: 0.65rem;
  border: 2px dashed var(--accent);
  border-radius: 50%;
}

.space__intro {
  max-width: 40em;
  margin-top: 1rem;
  color: var(--muted);
}

.paths {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.path {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}

/* 公共课程：实线框 + 左侧青色“开放路径”；私人空间：虚线框（封闭路径） */
.path--public {
  box-shadow: inset 3px 0 0 var(--cyan-deep);
}

.path--private {
  border-style: dashed;
  border-color: var(--line-strong);
  background: transparent;
}

/* 课程封面：书一样的比例与书脊；公共是石墨封面，私人是象牙压印封面 */
.cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  width: min(100%, 9.5rem);
  aspect-ratio: 3 / 4;
  padding: 0.85rem 0.85rem 0.9rem 1.1rem;
  border-radius: 4px 12px 12px 4px;
}

.cover::before {
  /* 书脊 */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 6px;
  background: rgba(0, 0, 0, 0.18);
}

.cover--public {
  background:
    radial-gradient(circle at 1px 1px, rgba(var(--glass-tint), 0.12) 1px, transparent 1.4px) 0 0 / 12px 12px,
    linear-gradient(160deg, var(--graphite-3), var(--graphite));
  box-shadow: 0 18px 30px -18px rgba(26, 29, 33, 0.7);
  color: var(--text-on-dark);
}

.cover--private {
  background: var(--ivory-2);
  box-shadow:
    inset 0 0 0 1px var(--line-strong),
    inset 0 0 0 7px var(--ivory-2),
    inset 0 0 0 8px var(--line),
    0 18px 30px -20px rgba(26, 29, 33, 0.45);
  color: var(--text-on-light);
}

.cover__imprint {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.cover__title {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
}

.cover__track {
  display: flex;
  gap: 3px;
}

.cover__seg {
  flex: 1;
  height: 5px;
  border-radius: 2px;
  background: rgba(var(--glass-tint), 0.2);
}

.cover__seg--open {
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(69, 220, 232, 0.5);
}

.cover__note {
  font-size: 0.6875rem;
  opacity: 0.85;
}

.cover__lock {
  width: 2.25rem;
  height: 2.25rem;
  fill: none;
  stroke: var(--cyan-deep);
  stroke-width: 2;
  stroke-linecap: round;
}

.path__title {
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.35;
}

.path__text {
  margin-top: 0.5rem;
  color: var(--muted);
}

.path__steps {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.9rem;
  font-size: 0.9375rem;
}

.path__steps li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.6rem;
}

.path__step-name {
  padding: 0 0.5rem;
  border: 1px solid var(--cyan-deep);
  border-radius: 5px;
  color: var(--cyan-deep);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.6;
}

.path__state {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.35rem 0.8rem;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--fg);
  font-size: 0.9375rem;
  font-weight: 600;
}

.path__state::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border: 2px dashed var(--accent);
  border-radius: 50%;
}

@media (min-width: 26rem) {
  .path {
    grid-template-columns: 8rem minmax(0, 1fr);
    align-items: start;
  }
}

@media (min-width: 48rem) {
  .paths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 64rem) {
  .path {
    grid-template-columns: 9.5rem minmax(0, 1fr);
    gap: 1.75rem;
    padding: 1.75rem;
  }
}

/* ── 12. 联系与页脚（两页共用） ───────────────────────────────── */

.contact {
  padding-block: clamp(5rem, 3rem + 8vw, 10rem);
}

/* 装饰层：一块倾斜的玻璃板，一根通孔垂向联系方式。容器在分段内部裁切，不影响页面宽度 */
.contact__art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.contact__plate {
  position: absolute;
  top: 8%;
  right: -14%;
  width: min(62%, 40rem);
  aspect-ratio: 62 / 44;
  border: 1px solid rgba(var(--glass-tint), 0.24);
  border-radius: 18px;
  background: linear-gradient(140deg, rgba(69, 220, 232, 0.12), rgba(var(--glass-tint), 0.03) 60%);
  transform: perspective(1400px) rotateX(58deg) rotateZ(-42deg);
}

.contact__via {
  position: absolute;
  top: calc(8% + min(62vw, 40rem) * 0.5);
  right: calc(14% + 1rem);
  width: 2px;
  height: 9rem;
  background: linear-gradient(to bottom, rgba(69, 220, 232, 0), rgba(69, 220, 232, 0.85));
  box-shadow: 0 0 8px rgba(69, 220, 232, 0.35);
}

.contact__via::after {
  /* 通孔末端的焊盘 */
  content: "";
  position: absolute;
  bottom: -5px;
  left: -5px;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--cyan);
  border-radius: 3px;
  background: rgba(69, 220, 232, 0.2);
}

@media (max-width: 63.99rem) {
  .contact__via {
    display: none;
  }

  .contact__plate {
    opacity: 0.6;
  }
}

.contact__inner {
  position: relative;
}

.contact__lead {
  max-width: 24em;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: var(--step-2);
  line-height: 1.55;
  text-wrap: balance;
}

/* 四种联系方式（两页相同）：一行一项——名称（焊盘 + 次要色）、值（大号粗体）、复制按钮。
   邮箱、手机的值本身就是 mailto / tel 链接（青色下划线）；微信号是普通文字，点一下整段选中（user-select: all），
   不放二维码、不做跳转。复制按钮默认 hidden，由 app.js 在剪贴板可用时显示。
   宽度：列表最宽 46rem，宽屏右侧留给装饰玻璃板与通孔，二者不重叠；320px 时值约 20px，最长的邮箱一行放下，
   极端情况下允许在任意位置换行（overflow-wrap: anywhere），绝不溢出。
   版式：窄屏“名称 + 复制”一行、值独占一行；40rem 起三列同一行。 */
.reach {
  max-width: 46rem;
  margin-top: clamp(1.75rem, 1rem + 3vw, 3rem);
  border-top: 1px solid var(--line);
}

.reach__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label copy"
    "value value";
  align-items: center;
  gap: 0.2rem 1rem;
  padding: 0.9rem 0 1.05rem;
  border-bottom: 1px solid var(--line);
}

.reach__label {
  grid-area: label;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.reach__label::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

.reach__value {
  grid-area: value;
  justify-self: start;   /* 下划线只画在文字下面，不铺满整列 */
  min-width: 0;
  max-width: 100%;
  color: var(--fg);
  font-size: clamp(1.25rem, 0.85rem + 2vw, 2.25rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

a.reach__value {
  padding-bottom: 0.06em;
  background: linear-gradient(var(--cyan), var(--cyan)) 0 100% / 100% 2px no-repeat;
  text-decoration: none;
}

a.reach__value:hover {
  color: var(--cyan);
}

.reach__value--text {
  -webkit-user-select: all;
  user-select: all;
}

.reach__copy {
  grid-area: copy;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

.reach__copy:hover {
  border-color: var(--accent);
}

.reach__status {
  min-height: 1.7em;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (min-width: 40rem) {
  .reach__item {
    grid-template-columns: 6.5rem minmax(0, 1fr) auto;
    grid-template-areas: "label value copy";
    column-gap: 1.25rem;
  }
}

.contact__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.contact__facts div {
  display: grid;
  gap: 0.2rem;
}

.contact__facts dt {
  color: var(--muted);
  font-size: var(--step--1);
}

.contact__facts dd {
  font-weight: 600;
}

/* 页脚不在任何色带里：链接（简历页的“返回主页”）与焦点框显式用石墨底上的颜色（链接 14.5:1，焦点框亮青 10.2:1） */
.colophon {
  padding-block: 1.75rem;
  border-top: 1px solid var(--line-on-dark);
  background: var(--graphite);
  color: var(--muted-on-dark);
  font-size: 0.875rem;
  --link: var(--text-on-dark);
  --focus: var(--cyan);
}

.colophon__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

/* ── 13. 动效：只在用户允许动效时出现 ─────────────────────────────
   1) 首屏一次性编排（约 1.3 秒）：玻璃板从压叠状态沿 Z 轴展开 → 通孔生长 → 标签浮现 → 两条路径各走一次光点。
      只动 transform / opacity；叠层内部不对带 3D 子元素的板做 opacity（那会把 3D 压平），只淡入板内的玻璃与线稿。
   2) 章节揭示：CSS 滚动时间线，fill-mode none —— 进入视口前就是最终状态，只在“进入视口的前 ~150px”插值。
   3) 案例图形随阅读演进：同样挂在各自图形的视图时间线上（命名时间线 --loadtime / --untangle / --eventline / --gantt）。
   4) 交互反馈：导航下划线、项目导览顶线、展开图标旋转、路径切换的光点、按钮与链接的颜色过渡；都是一次性的，没有循环。
   两页各只有一次首屏编排：主页是主张 + 玻璃叠层展开；简历页没有 3D 图，只有姓名、主张、求职意向、简介、按钮依次浮现。
   主页入口区的简历纸页卡与课程封面卡一样用“浮上来”的视图时间线；吸顶条账户位、联系方式列表没有任何非用户触发的动效。 */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .masthead::before {
    transition: background-color 0.3s ease, border-color 0.3s ease;
  }

  .chapters__list a::after,
  .index__item::before {
    transition: transform 0.28s var(--ease-out);
  }

  .chapters__list a,
  .fold__summary,
  .button,
  .routes__option span,
  .gantt__name,
  .home-link,
  .account__link,
  .door__chapters a,
  .door__link,
  .roles__role a,
  .reach__value,
  .reach__copy {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .fold__icon {
    transition: transform 0.3s var(--ease-out);
  }

  .routing [data-from],
  .routing__docs,
  .routing__count,
  .routing__tag {
    transition: color 0.45s ease, background-color 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease, filter 0.45s ease;
  }

  .system [data-route] {
    transition: opacity 0.35s ease;
  }

  .story[data-active] .story__step {
    transition: color 0.3s ease, border-color 0.3s ease;
  }

  /* 1) 首屏编排 ------------------------------------------------------- */
  .hero__intro > * {
    animation: hero-rise 0.9s var(--ease-out) both;
  }

  .hero__intro > :nth-child(2) {
    animation-delay: 0.08s;
  }

  .hero__intro > :nth-child(3) {
    animation-delay: 0.16s;
  }

  /* 简历页概览的第五项（按钮）；主页首屏只有四项 */
  .hero__intro > :nth-child(5) {
    animation-delay: 0.32s;
  }

  .hero__intro > :nth-child(4) {
    animation-delay: 0.24s;
  }

  .plate {
    animation: plate-open 1.1s var(--ease-out) both;
    animation-delay: calc(0.12s + var(--layer) * 0.09s);
  }

  .plate__glass,
  .plate__art,
  .plate::before {
    animation: fade-in 0.7s ease both;
    animation-delay: calc(0.1s + var(--layer) * 0.09s);
  }

  .wall {
    animation: wall-rise 0.7s var(--ease-out) both;
    animation-delay: 0.85s;
  }

  .via {
    animation: via-grow 0.7s var(--ease-out) both;
    animation-delay: 0.7s;
  }

  .flag {
    animation: fade-in 0.5s ease both;
    animation-delay: calc(0.95s + var(--layer) * 0.06s);
  }

  .system:is([data-route="all"], :has(input[value="all"]:checked)) .via__pulse {
    animation: via-pulse 1.2s var(--ease-out) 1.35s 1 both;
  }

  .system:is([data-route="chat"], :has(input[value="chat"]:checked)) .via[data-route="chat"] .via__pulse,
  .system:is([data-route="debug"], :has(input[value="debug"]:checked)) .via[data-route="debug"] .via__pulse {
    animation: via-pulse 1.1s var(--ease-out) 1 both;
  }

  @keyframes hero-rise {
    from {
      opacity: 0;
      transform: translateY(1.25rem);
    }
  }

  @keyframes fade-in {
    from {
      opacity: 0;
    }
  }

  @keyframes plate-open {
    from {
      transform: translateZ(calc(var(--layer) * 3cqi));
    }
  }

  @keyframes wall-rise {
    from {
      transform: rotateY(-90deg) scaleX(0);
    }
  }

  @keyframes via-grow {
    from {
      transform: rotateZ(calc(-1 * (var(--rz) + var(--tilt-z, 0deg)))) rotateX(90deg) scaleY(0);
    }
  }

  /* 光点：沿通孔从工作流层走到知识入口层（通孔本地 +Y 指向上层） */
  @keyframes via-pulse {
    0% {
      opacity: 0;
      transform: translateY(-40%);
    }

    20% {
      opacity: 1;
    }

    100% {
      opacity: 0;
      transform: translateY(320%);
    }
  }

  /* 展开区高度过渡（支持 ::details-content 与 interpolate-size 的浏览器才有；其余直接开合） */
  @supports (interpolate-size: allow-keywords) and selector(::details-content) {
    :root {
      interpolate-size: allow-keywords;
    }

    .fold::details-content {
      height: 0;
      overflow: clip;
      transition: height 0.35s var(--ease-out), content-visibility 0.35s allow-discrete;
    }

    .fold[open]::details-content {
      height: auto;
    }
  }

  /* 2) + 3) 滚动时间线 ------------------------------------------------- */
  @supports (animation-timeline: view()) {
    /* 章节与内容分组：上移 + 渐显 + 轻微缩放（景深） */
    .chapter__head,
    .claim,
    .case__head,
    .case__lede,
    .facts,
    .story__step,
    .job,
    .die__layer,
    .education,
    .space__head,
    .space__intro,
    .contact__inner > * {
      animation: rise linear none;
      animation-timeline: view();
      animation-range: entry 0% entry 150px;
    }

    .claim:nth-child(even),
    .contact__inner > :nth-child(2) {
      animation-range: entry 40px entry 190px;
    }

    @keyframes rise {
      from {
        opacity: 0;
        transform: translateY(2rem) scale(0.985);
      }
    }

    /* 示意图板块：更明显的景深（从稍远处浮上来） */
    .routing__board,
    .untangle__stage,
    .eventline__board,
    .loadtime__plot,
    .gantt,
    .door,
    .path {
      animation: surface linear none;
      animation-timeline: view();
      animation-range: entry 0% entry 220px;
    }

    @keyframes surface {
      from {
        opacity: 0;
        transform: perspective(900px) translateY(2.5rem) rotateX(6deg) scale(0.97);
      }
    }

    /* FastDO：两条加载条以同样的速度生长，短的先到终点（青条 15/67 处完成，灰条走完全程） */
    .loadtime {
      view-timeline-name: --loadtime;
    }

    .loadtime__bar--before,
    .loadtime__more,
    .loadtime__bar--after,
    .loadtime__bar--range,
    .loadtime__value {
      animation-timing-function: linear;
      animation-fill-mode: none;
      animation-timeline: --loadtime;
      animation-range: entry 35% cover 55%;
    }

    .loadtime__bar--before {
      animation-name: grow-before;
    }

    .loadtime__more {
      animation-name: grow-more;
    }

    .loadtime__bar--after {
      animation-name: grow-after;
    }

    .loadtime__bar--range {
      animation-name: grow-range;
    }

    .loadtime__row--before .loadtime__value {
      animation-name: value-late;
    }

    .loadtime__row--after .loadtime__value {
      animation-name: value-early;
    }

    @keyframes grow-before {
      0% {
        clip-path: inset(0 100% 0 0);
      }

      90% {
        clip-path: inset(0 0 0 0);
      }
    }

    @keyframes grow-more {
      0%,
      90% {
        clip-path: inset(0 100% 0 0);
      }

      100% {
        clip-path: inset(0 0 0 0);
      }
    }

    @keyframes grow-after {
      0% {
        clip-path: inset(0 100% 0 0);
      }

      15% {
        clip-path: inset(0 0 0 0);
      }
    }

    @keyframes grow-range {
      0%,
      15% {
        clip-path: inset(0 100% 0 0);
      }

      23% {
        clip-path: inset(0 0 0 0);
      }
    }

    @keyframes value-early {
      0%,
      18% {
        opacity: 0;
      }

      28% {
        opacity: 1;
      }
    }

    @keyframes value-late {
      0%,
      92% {
        opacity: 0;
      }

      100% {
        opacity: 1;
      }
    }

    /* MDD：先画出缠绕的连线，再让三个模块依次就位 */
    .untangle {
      view-timeline-name: --untangle;
    }

    .untangle__edge {
      stroke-dasharray: 1;
      animation: draw-edges linear none;
      animation-timeline: --untangle;
      animation-range: entry 30% cover 45%;
    }

    .untangle__arrow,
    .untangle__module,
    .untangle__flow {
      animation: module-in linear none;
      animation-timeline: --untangle;
      animation-range: entry calc(55% + var(--i, 0) * 12%) cover 52%;
      transform-box: fill-box;
      transform-origin: center;
    }

    @keyframes draw-edges {
      from {
        stroke-dashoffset: 1;
      }
    }

    @keyframes module-in {
      from {
        opacity: 0;
        transform: translateX(-18px) scale(0.92);
      }
    }

    /* PMU：埋点依次落在时间轴上，再出现子时延区段 */
    .eventline {
      view-timeline-name: --eventline;
    }

    .eventline__pin {
      animation: pin-drop linear none;
      animation-timeline: --eventline;
      animation-range: entry calc(40% + var(--i) * 9%) cover 50%;
    }

    .eventline__span {
      animation: fade-in linear none;
      animation-timeline: --eventline;
      animation-range: entry calc(70% + var(--i) * 8%) cover 55%;
    }

    @keyframes pin-drop {
      from {
        opacity: 0;
        transform: translateY(-0.9rem);
      }
    }

    /* 甘特图：项目条从各自起点向右展开 */
    .gantt {
      view-timeline-name: --gantt;
    }

    .gantt__bar::before {
      animation: bar-extend linear none;
      animation-timeline: --gantt;
      animation-range: entry 40% cover 45%;
    }

    @keyframes bar-extend {
      from {
        transform: scaleX(0);
      }
    }

    /* 经历时间线：竖线随阅读向下延伸 */
    .job::before {
      animation: rail-draw linear none;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }

    @keyframes rail-draw {
      from {
        transform: scaleY(0);
      }
    }
  }
}

/* ── 14. 减少动效：即时显示全部信息，取消视差、平滑滚动、逐步点亮 ──────────
   基础样式本来就没有动画；这里再兜一层，防止任何遗漏（包括第三方浏览器扩展注入的过渡）。
   app.js 同时停用指针倾斜，并把重点案例示意图固定在 data-stage="all"。 */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ── 15. 强制配色与打印 ─────────────────────────────────────────── */

@media (forced-colors: active) {
  .plate__glass,
  .routing__node,
  .die__block,
  .path,
  .door,
  .sheet,
  .loadtime__bar,
  .gantt__bar::before {
    border: 1px solid CanvasText;
  }

  /* 实底按钮在强制配色下底色被抹掉，补上边框，按钮边界仍可见 */
  .button,
  .account__link,
  .door__link,
  .reach__copy {
    border: 1px solid ButtonText;
  }

  .chapters__list a[aria-current="true"] {
    text-decoration: underline;
  }

  .routes__option input:checked + span {
    outline: 2px solid Highlight;
  }
}

/* 打印：简历页是主要的打印对象——展开区由 app.js 在打印前全部展开；吸顶条、复制按钮与复制提示不进纸面，
   联系方式的值（邮箱、手机号、微信号）照常打印 */
@media print {
  .masthead,
  .skip-link,
  .system__stage,
  .routes,
  .system__more,
  .contact__art,
  .reach__copy,
  .reach__status {
    display: none !important;
  }

  html,
  body,
  [data-theme] {
    background: #fff !important;
    color: #000 !important;
  }

  .hero {
    min-height: 0;
    padding-top: 1rem;
  }

  .hero::before {
    display: none;
  }

  .chapter,
  .band {
    padding-block: 1.5rem;
  }

  .routing {
    position: static;
  }

  a {
    color: #000;
  }
}
