/* ============================================================================
   卷宗 / DOSSIER — 蒋子龙个人简历站
   设计系统：宣纸米白 × 墨黑 × 朱砂红；衬线标题，无衬线正文；细线分隔
   ========================================================================== */

/* ---------- 字体（子集自托管，缺失时回退系统字体） ---------- */
@font-face {
  font-family: "Dossier Serif";
  src: url("../fonts/dossier-serif-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Dossier Serif";
  src: url("../fonts/dossier-serif-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Dossier Sans";
  src: url("../fonts/dossier-sans-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Dossier Sans";
  src: url("../fonts/dossier-sans-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- 设计变量 ---------- */
:root {
  --paper: #F7F2E8;
  --paper-raised: #FFFCF5;
  --paper-sunk: #EFE7D6;
  --ink: #1B1A17;
  --ink-soft: #4A463E;
  --ink-mute: #6B655A;
  --ink-faint: #9C9484;
  --rule: #D9CFBB;
  --rule-ink: #241F1A;
  --cinnabar: #B3261A;
  --cinnabar-deep: #8C1C13;
  --cinnabar-wash: #F2DED8;

  --font-display: "Dossier Serif", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Dossier Sans", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;

  --maxw: 1160px;
  --gutter: clamp(20px, 4.4vw, 48px);
  --plate: 146px;
  --plate-feature: 196px;

  --ease: cubic-bezier(.22, .61, .28, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--cinnabar); color: var(--paper-raised); }

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

/* 跳过导航 */
.skip {
  position: absolute;
  left: 50%; top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  text-decoration: none;
  transition: transform .2s var(--ease);
}
.skip:focus { transform: translate(-50%, 0); }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.micro {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  line-height: 1.6;
  color: var(--ink-mute);
  text-transform: uppercase;
}

.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ---------- 页头（刊头） ---------- */
.masthead { padding-top: 22px; }

.masthead-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-ink);
}
.masthead-bar .brand {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
}
.masthead-bar .brand em {
  font-style: normal;
  color: var(--cinnabar);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 26vw, 320px);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
  padding-block: clamp(30px, 5vw, 60px) clamp(28px, 4vw, 46px);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(14px, 2vw, 22px);
}
.hero-eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(58px, 9.4vw, 118px);
  font-weight: 700;
  line-height: .96;
  letter-spacing: .02em;
  color: var(--ink);
}
.hero-name .dot { color: var(--cinnabar); }

.hero-roles {
  margin-top: clamp(14px, 2vw, 20px);
  font-family: var(--font-display);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.8;
  color: var(--ink-soft);
  letter-spacing: .04em;
}
.hero-roles span { color: var(--cinnabar); padding-inline: 8px; }

.hero-lead {
  margin-top: clamp(18px, 2.4vw, 28px);
  padding-left: 16px;
  border-left: 3px solid var(--cinnabar);
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  max-width: 30ch;
}

.hero-photo { margin: 0; }
.hero-photo-frame {
  position: relative;
  border: 1px solid var(--rule);
  background: var(--paper-sunk);
  padding: 8px;
}
.hero-photo-frame img:not(.seal-img) {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 14%;
}
.hero-photo-cap {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--ink-mute);
}

/* 印章 */
.seal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 42px;
  height: 42px;
  padding: 4px;
  place-items: center;
  background: var(--cinnabar);
  color: var(--paper-raised);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  border-radius: 2px;
  box-shadow: inset 0 0 0 2px rgba(255, 252, 245, .32);
}
.seal--one { grid-template-columns: 1fr; font-size: 22px; }
.seal--sm { width: 34px; height: 34px; font-size: 12.5px; box-shadow: inset 0 0 0 1.5px rgba(255, 252, 245, .3); }
/* 个人印章（位图） */
.seal-img {
  display: block;
  flex: none;
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 2px 10px rgba(36, 31, 26, .26));
}
.seal-img--photo {
  position: absolute;
  left: 10px;
  bottom: 10px;
}

/* ---------- 关键数据条 ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule-ink);
  border-bottom: 1px solid var(--rule);
}
.facts li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 0 15px 0;
  list-style: none;
  min-width: 0;
}
.facts li + li { border-left: 1px solid var(--rule); padding-left: clamp(14px, 2.4vw, 30px); }
.facts-list { display: contents; }
.facts ol, .facts ul { margin: 0; padding: 0; }
.facts .num {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.facts .num i { font-style: normal; font-size: .5em; color: var(--cinnabar); vertical-align: super; margin-left: 2px; }
.facts .lbl { font-size: 12.5px; line-height: 1.5; color: var(--ink-mute); }

/* ---------- 吸顶目录 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-in {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 56px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.nav-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .16em;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  position: relative;
  padding-block: 6px;
  font-size: 13px;
  color: var(--ink-mute);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="true"] { color: var(--cinnabar); }
.nav-links a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--cinnabar);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin-left: 6px;
  padding: 8px 14px;
  border: 1px solid var(--cinnabar);
  color: var(--cinnabar);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-cta:hover { background: var(--cinnabar); color: var(--paper-raised); }

/* ---------- 章节 ---------- */
.section { padding-top: clamp(48px, 6.5vw, 92px); }

.section-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(12px, 2vw, 26px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule-ink);
}
.section-no {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  line-height: .9;
  color: var(--cinnabar);
  font-variant-numeric: tabular-nums;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.6vw, 31px);
  line-height: 1.35;
  letter-spacing: .02em;
  text-wrap: balance;
}
.section-en {
  padding-bottom: 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--ink-mute);
  white-space: nowrap;
}
.section-note {
  margin-top: 14px;
  max-width: 58ch;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-mute);
}

/* ---------- 作品条目 ---------- */
.works { margin-top: 6px; }

.work {
  display: grid;
  grid-template-columns: var(--plate) minmax(0, 1fr);
  gap: clamp(18px, 2.6vw, 32px);
  padding-block: clamp(24px, 3vw, 34px) clamp(28px, 3.4vw, 42px);
  border-bottom: 1px solid var(--rule);
}
.work:last-child { border-bottom: 0; }

.work--feature { grid-template-columns: var(--plate-feature) minmax(0, 1fr); }

.work-plate {
  display: block;
  padding: 6px;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
a.work-plate:hover { border-color: var(--ink-faint); }
.work-plate img {
  width: 100%;
  height: auto;
  transition: transform .5s var(--ease), filter .5s var(--ease);
  transform-origin: center;
}
a.work-plate:hover img { transform: scale(1.015); }

/* 无海报时的字体版式牌：竖排书名，像卡册里的字条 */
.plate-type {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 2 / 3;
  padding: 18px 12px 28px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.5), rgba(255,255,255,0) 45%),
    var(--paper-sunk);
  border: 1px solid var(--rule);
  text-align: center;
  overflow: hidden;
}
.plate-type b {
  writing-mode: vertical-rl;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.55vw, 22px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .16em;
  color: var(--ink);
  max-height: 100%;
}


.work-body { min-width: 0; }

.work-plate-wrap { position: relative; padding-bottom: 22px; }
.work-seal {
  position: absolute;
  right: 2px;
  bottom: 0;
  width: 34px;
  height: 34px;
  font-size: 12px;
  transform: rotate(-3deg);
  box-shadow: inset 0 0 0 1.5px rgba(255, 252, 245, .3), 0 1px 4px rgba(36, 31, 26, .1);
}

.work-indexline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--ink-mute);
}
.work-no {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--cinnabar);
  font-variant-numeric: tabular-nums;
}
.work-indexline .tick { width: 18px; height: 1px; background: var(--rule); flex: none; }

.work-title {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.4;
  letter-spacing: .01em;
  text-wrap: balance;
}
.work--feature .work-title { font-size: clamp(23px, 2.8vw, 33px); }
.work-title a {
  text-decoration: none;
  background-image: linear-gradient(var(--cinnabar), var(--cinnabar));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size .3s var(--ease), color .3s var(--ease);
}
.work-title a:hover { color: var(--cinnabar); background-size: 100% 1px; }

.work-flag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--cinnabar);
}
.work-flag::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--cinnabar);
  flex: none;
}

.work-syn {
  margin-top: 12px;
  max-width: 56ch;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.work-syn p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.work-syn.is-open p { display: block; -webkit-line-clamp: unset; overflow: visible; }
.work--feature .work-syn { max-width: 64ch; }
.work--feature .work-syn p { -webkit-line-clamp: 6; }

.work-more {
  margin-top: 8px;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--cinnabar);
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.work-more:hover { color: var(--cinnabar-deep); }
.work-more[hidden] { display: none; }

.work-private {
  margin-top: 12px;
  padding-left: 12px;
  border-left: 2px solid var(--rule);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--ink-mute);
}

/* ---------- 身份区 ---------- */
.identity {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: start;
  margin-top: clamp(24px, 3vw, 34px);
}

.idlist { margin: 0; }
.idlist div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding-block: 13px;
  border-top: 1px solid var(--rule);
}
.idlist div:last-child { border-bottom: 1px solid var(--rule); }
.idlist dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--ink-mute);
}
.idlist dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
}
.idlist dd strong { font-weight: 600; }

.link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.link:hover { color: var(--cinnabar); border-color: var(--cinnabar); }

.vault-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 4px;
  padding: 9px 15px;
  border: 1px solid var(--cinnabar);
  color: var(--cinnabar);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .22s var(--ease), color .22s var(--ease);
}
.vault-link:hover { background: var(--cinnabar); color: var(--paper-raised); }
.vault-link svg { flex: none; }
.vault-link .arw { transition: transform .22s var(--ease); }
.vault-link:hover .arw { transform: translateX(3px); }

.career {
  padding: clamp(18px, 2.4vw, 24px);
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--ink);
}
.career-item + .career-item { margin-top: 20px; }
.career-kind {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--cinnabar);
}
.career-main {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  letter-spacing: .01em;
}
.career-sub { margin-top: 3px; font-size: 12.5px; line-height: 1.7; color: var(--ink-mute); }
.career-edu {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.career-edu b { display: block; margin-bottom: 3px; font-size: 10.5px; font-weight: 600; letter-spacing: .18em; color: var(--ink-mute); }

/* ---------- 作品集横幅 ---------- */
.vault {
  margin-top: clamp(56px, 7vw, 96px);
  background: var(--ink);
  color: var(--paper);
}
.vault-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 4vw, 56px);
  align-items: end;
  padding-block: clamp(30px, 4.4vw, 52px);
}
.vault .micro { color: var(--ink-faint); }
.vault-eyebrow { display: flex; align-items: center; gap: 10px; color: #A79E8D; }
.vault-title {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.3;
  letter-spacing: .02em;
  color: var(--paper);
}
.vault-title i { font-style: normal; color: #E9867A; }
.vault-desc {
  margin-top: 14px;
  max-width: 56ch;
  font-size: 13.5px;
  line-height: 1.85;
  color: #C9C1B2;
}
.vault-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 24px;
  background: var(--cinnabar);
  color: #FFF8F0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
  transition: background .22s var(--ease), transform .22s var(--ease);
}
.vault-btn:hover { background: #C7301F; transform: translateY(-1px); }
.vault-btn .arw { transition: transform .22s var(--ease); }
.vault-btn:hover .arw { transform: translateX(4px); }

/* ---------- 页脚 ---------- */
.foot { margin-top: clamp(40px, 5vw, 64px); padding-bottom: 40px; }
.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding-block: 22px;
  border-top: 1px solid var(--rule-ink);
  border-bottom: 1px solid var(--rule);
}
.foot-title {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.8vw, 21px);
  letter-spacing: .02em;
}
.foot-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 8px; }
.copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid var(--rule);
  background: var(--paper-raised);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.copy:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.copy[data-done="1"] { border-color: var(--cinnabar); color: var(--cinnabar); }
.foot-up {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.foot-up:hover { color: var(--cinnabar); border-bottom-color: currentColor; }

.foot-fine {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--ink-mute);
}

/* ---------- 入场动画 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .hero-photo { max-width: 260px; }
  .hero-lead { max-width: none; }
  .identity { grid-template-columns: minmax(0, 1fr); }
  .vault-in { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .vault-btn { justify-self: start; }
  :root { --plate: 130px; --plate-feature: 172px; }
}

@media (max-width: 640px) {
  :root { --plate: 104px; --plate-feature: 118px; }
  body { font-size: 14.5px; }

  .masthead { padding-top: 16px; }
  .masthead-bar .micro { font-size: 10px; letter-spacing: .14em; }
  .hero { padding-block: 24px 26px; gap: 22px; }
  .hero-name { font-size: clamp(52px, 17vw, 68px); }
  .hero-lead { font-size: 16.5px; }
  .hero-photo { max-width: 100%; }
  .hero-photo-frame img:not(.seal-img) { aspect-ratio: 16 / 10; object-position: center 16%; }
  .hero-photo-cap { font-size: 9.5px; letter-spacing: .12em; }
  .seal-img--photo { width: 44px; height: 44px; left: 8px; bottom: 8px; }

  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts li { flex-direction: column; gap: 4px; padding-block: 12px; }
  .facts li + li { padding-left: 12px; }
  .facts .num { font-size: 22px; }
  .facts .lbl { font-size: 11px; }

  .nav-in { height: 50px; gap: 8px; }
  .nav-name { display: none; }
  .nav-links { gap: 10px; margin-left: 0; }
  .nav-links a { font-size: 12px; }
  .nav-cta { margin-left: 0; padding: 7px 10px; font-size: 12px; white-space: nowrap; }

  .section { padding-top: 40px; }
  .section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    padding-bottom: 12px;
  }
  .section-no { font-size: 19px; }
  .section-title { font-size: 18.5px; line-height: 1.5; flex: 1; min-width: 0; }
  .section-en { display: none; }
  .section-note { font-size: 12.5px; margin-top: 11px; }

  .work { gap: 12px; padding-block: 20px; }
  .work--feature { grid-template-columns: var(--plate) minmax(0, 1fr); }
  .work-plate { padding: 4px; }
  .work-title, .work--feature .work-title { font-size: 16.5px; margin-top: 4px; line-height: 1.45; }
  .work-indexline { font-size: 10px; letter-spacing: .1em; gap: 7px; }
  .work-indexline .tick { width: 10px; }
  .work-no { font-size: 12px; }
  .work-flag { margin-top: 6px; font-size: 10.5px; }
  .work-plate-wrap { padding-bottom: 18px; }
  .work-seal { right: 0; bottom: 0; width: 28px; height: 28px; font-size: 10px; transform: rotate(-3deg); }
  .work-syn { margin-top: 9px; font-size: 13px; line-height: 1.85; }
  .work-syn p { -webkit-line-clamp: 3; }
  .work--feature .work-syn p { -webkit-line-clamp: 4; }
  .work-more { margin-top: 2px; padding-block: 8px; font-size: 11px; }
  .work-private { font-size: 12px; margin-top: 9px; }

  .identity { gap: 20px; }
  .idlist div { grid-template-columns: 1fr; gap: 3px; padding-block: 11px; }
  .career { padding: 16px; }
  .career-main { font-size: 15.5px; }

  .vault-in { padding-block: 28px; }
  .vault-title { font-size: 22px; }
  .vault-desc { font-size: 12.5px; }
  .vault-btn { width: 100%; justify-content: center; padding: 13px 18px; font-size: 13.5px; }

  .foot-top { grid-template-columns: minmax(0, 1fr); }
  .foot-up { justify-self: start; padding-block: 8px; }
  .foot-fine { font-size: 9.5px; letter-spacing: .12em; }
}

/* ---------- 打印（A4 简历） ---------- */
@media print {
  @page { size: A4; margin: 14mm 14mm; }
  body { background: #fff; color: #000; font-size: 9.5pt; line-height: 1.6; }
  .nav, .skip, .work-more, .copy, .vault-btn, .hero-eyebrow::after { display: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .masthead { padding-top: 0; }
  .hero { grid-template-columns: minmax(0, 1fr) 42mm; gap: 8mm; padding-block: 4mm 6mm; }
  .hero-name { font-size: 34pt; }
  .hero-photo-frame { padding: 2mm; }
  .hero-lead { font-size: 11pt; }
  .facts { border-color: #999; }
  .facts .num { font-size: 14pt; }
  .section { padding-top: 7mm; }
  /* 小节标题不要孤零零留在页脚 */
  .section-head { break-after: avoid; }
  /* 身份里的表格整块不跨页；经历卡在纸上拆掉卡片外壳，改成可续页的条列 */
  .idlist, .facts { break-inside: avoid; }
  .career {
    padding: 0;
    background: none;
    border: 0;
    border-top: .5pt solid #000;
    padding-top: 3mm;
    break-inside: auto;
  }
  .career-item, .career-edu { break-inside: avoid; }
  .career-main { font-size: 11pt; }
  /* 收尾页：横幅和页脚一起走，不要留一条孤零零的地址 */
  .vault { break-inside: avoid; break-after: avoid; margin-top: 6mm; }
  .vault-in { padding-block: 6mm; }
  .foot { margin-top: 6mm; padding-bottom: 0; }
  .section-head { border-color: #000; padding-bottom: 2mm; }
  .section-no { font-size: 16pt; color: #000; }
  .section-title { font-size: 13pt; }
  .work { grid-template-columns: 28mm minmax(0, 1fr); gap: 5mm; padding-block: 3.5mm; break-inside: avoid; }
  .work--feature { grid-template-columns: 28mm minmax(0, 1fr); }
  .work-syn p, .work--feature .work-syn p { display: block; -webkit-line-clamp: unset; overflow: visible; }
  .work-title, .work--feature .work-title { font-size: 11pt; }
  .work-syn { font-size: 8.5pt; line-height: 1.55; max-width: none; }
  .seal { background: #000 !important; color: #fff !important; box-shadow: none !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .vault { background: #fff !important; color: #000; border-top: 1px solid #000; }
  .vault-title, .vault-desc, .vault .micro { color: #000; }
  .foot { padding-bottom: 0; }
  .foot-top, .foot-fine { border-color: #999; }
  .hero-photo-cap, .work-indexline, .career-sub, .section-en, .vault-desc { color: #444; }

  /* 照片下方的说明在纸上挤成两行，去掉 */
  .hero-photo-cap { display: none; }
  /* 头像印章挪回照片内，避免压住装裱框边线 */
  .seal-img--photo { left: 1.2mm; bottom: 1.2mm; width: 10mm; height: 10mm; filter: none; }
  /* 署名印章：纸上不做压图方块，改成海报下方的一行小字 */
  .work-plate-wrap { padding-bottom: 0; }
  .work-seal {
    position: static;
    display: flex;
    justify-content: center;
    gap: .04em;
    width: auto; height: auto;
    margin-top: 1.6mm;
    padding: 0;
    background: none !important;
    color: #000 !important;
    box-shadow: none !important;
    outline: none;
    font-size: 7pt;
    letter-spacing: .1em;
    transform: none;
  }
  .work-seal span { display: inline; }
  /* 屏幕上的交互件不上纸 */
  .foot-up, .vault-link, .nav-cta, .skip { display: none !important; }
  .idlist div:has(.vault-link) dd::after { content: "加密作品档案（口令向本人索取）"; }
}