/* ============================================================
   Henri Shen · 个人主页
   黑白极简 + 巨字标题风格（参考 Bingo）
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f2;
  --bg-deep: #ecece8;
  --ink: #111111;
  --ink-soft: #3c3c3c;
  --muted: #8b8b8b;
  --line: #e6e6e1;
  --accent: #0f4c81;
  --accent-deep: #0a3a63;
  --accent-soft: #eef3f8;
  --warn: #8a6d1f;
  --warn-soft: #faf4e2;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas,
    monospace;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(17, 17, 17, 0.04), 0 10px 30px rgba(17, 17, 17, 0.05);
  --header-h: 64px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-deep);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

.container-wide {
  max-width: 1400px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  /* 品牌左缘比 hero 文字块左缘再缩进约 2-3 个字符，视觉对齐 */
  padding-left: clamp(28px, calc(28px + 5vw - 34px), 94px);
  padding-right: clamp(48px, calc(28px + 5vw), 128px);
}

.brand {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand em {
  font-style: normal;
  color: var(--muted);
  font-weight: 400;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  /* 移除 CTA 后，把五个模块整体右移到原来“欢迎交流”所在的位置 */
  margin-left: clamp(60px, 8vw, 120px);
}

.nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
}

.nav a:hover {
  color: var(--ink);
  background: var(--bg-soft);
}

.nav a.active {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

.nav-cta {
  margin-left: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--accent);
  color: #fff;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 10px;
  width: 42px;
  height: 38px;
  cursor: pointer;
  color: var(--ink);
  font-size: 18px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  min-height: 86vh;
  padding: 56px 0 96px;
}

.hero-cn {
  position: absolute;
  top: -0.62em;
  left: 0.02em;
  /* 巨字 H 自带约 0.55vw 的左侧留白（随 15vw 字号缩放），右移补偿与 HenriShen 字形对齐 */
  padding-left: clamp(2px, 0.55vw, 10px);
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.34em;
  color: var(--muted);
  white-space: nowrap;
  /* 中文名在名字左上方、紧贴名字，放在字母之上保证可读 */
  z-index: 3;
}

.hero-main {
  position: relative;
  width: fit-content;
  max-width: 100%;
  /* 文字块略偏左，与右侧更大的人物保持视觉平衡 */
  margin-left: clamp(20px, 5vw, 100px);
  margin-right: auto;
  /* 文字、话、卡片整体下移 */
  margin-top: clamp(40px, 10vh, 120px);
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.hero-name {
  font-size: clamp(64px, 15vw, 230px);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.01em;
  color: var(--ink);
  position: relative;
}

.hero-tagline {
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  /* 限制宽度：保证在人物覆盖区域前折行，不被肩膀遮挡 */
  max-width: 720px;
  /* 与沈裕鸿一致的右移补偿，跟 HenriShen 字形左缘对齐 */
  padding-left: clamp(2px, 0.55vw, 10px);
  font-weight: 500;
}

.hero-tagline strong {
  color: var(--ink);
  font-weight: 700;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* 标签：可点击的胶囊按钮 */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  /* 轻微阴影 + 悬浮抬升，明确传达可点击 */
  box-shadow: 0 4px 12px -2px rgba(17, 17, 17, 0.1);
  transition: background 0.18s ease, color 0.18s ease,
    transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease;
}

.hero-tag::after {
  content: "→";
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.18s ease;
  display: inline-block;
}

.hero-tag:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 22px -4px rgba(17, 17, 17, 0.18);
}

.hero-tag:hover::after {
  transform: translateX(3px);
}

/* 人物抠图：右下角、在文字之上，肩膀轻叠 HenriShen 的 n 右下角 */
.hero-photo {
  position: absolute;
  right: clamp(12px, 2vw, 36px);
  bottom: 0;
  height: 78vh;
  max-height: 740px;
  z-index: 2;
  pointer-events: none;
}

.hero-photo img {
  display: block;
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* ---------- Sections ---------- */

.section-head {
  margin-bottom: 40px;
}

.overline {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-head .lead {
  margin-top: 14px;
  color: var(--muted);
  max-width: 680px;
  font-size: 16px;
}

/* ---------- Sections ---------- */

.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}

.section-alt {
  background: var(--bg-soft);
}

/* ---------- 经历 timeline ---------- */

.timeline {
  position: relative;
  border-left: 2px solid var(--line);
  margin-left: 8px;
}

.timeline-item {
  position: relative;
  padding: 0 0 56px 36px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--ink);
}

.section-alt .timeline-item::before {
  border-color: var(--bg-soft);
}

.timeline-item time {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.04em;
  font-weight: 600;
}

.timeline-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 5px 0 12px;
}

.timeline-item h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.timeline-item .role {
  font-size: 15px;
  color: var(--ink-soft);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.timeline-item ul {
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
  max-width: 960px;
}

.timeline-item li {
  margin-bottom: 7px;
}

.timeline-item li strong {
  color: var(--ink);
  font-weight: 600;
}

.sub-head {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 56px 0 28px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.sub-head:first-of-type {
  margin-top: 0;
}

/* ---------- 卡片网格 ---------- */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* 项目区三卡：等高 + 透气对齐（标题/信息/描述/标签各行对齐，描述区撑开留白） */
.grid-3 .card {
  display: flex;
  flex-direction: column;
  padding: 34px;
  transition: transform 0.4s ease, box-shadow 0.35s ease, opacity 0.5s ease;
}

.grid-3 .card > p:not(.card-meta) {
  flex: 1 1 auto;
  line-height: 1.85;
}

.grid-3 .card .foot {
  margin-top: 28px;
}

/* 悬停上浮 + 阴影加深 */
.grid-3 .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -14px rgba(15, 23, 42, 0.22);
}

/* 滚动入场（仅 JS 就绪后生效，避免无脚本时卡片隐形） */
.reveal-ready .grid-3 .card {
  opacity: 0;
  transform: translateY(24px);
}

.reveal-ready .grid-3 .card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 向上滚动进场时关闭过渡，直接显示（不重播动画） */
.reveal-ready .grid-3 .card.no-anim {
  transition: none !important;
}

/* 教育卡片 / 实习时间线 入场：用独立的 translate 属性，避免与 hover 的 transform 冲突 */
.reveal-ready .edu-card,
.reveal-ready .timeline-item {
  opacity: 0;
  translate: 0 22px;
  transition: opacity 0.6s ease, translate 0.6s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.reveal-ready .edu-card.is-visible,
.reveal-ready .timeline-item.is-visible {
  opacity: 1;
  translate: 0 0;
}

.reveal-ready .edu-card.no-anim,
.reveal-ready .timeline-item.no-anim {
  transition: none !important;
}

@media (min-width: 901px) {
  .grid-3 .card h3 {
    min-height: calc(1.35em * 3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready .grid-3 .card {
    opacity: 1;
    transform: none;
  }
  .reveal-ready .edu-card,
  .reveal-ready .timeline-item,
  .reveal-ready .work-card {
    opacity: 1;
    translate: none;
  }
  .grid-3 .card:hover,
  .work-card:hover {
    transform: none;
  }
}


.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.section-alt .card {
  background: #fff;
}

.card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.card .card-meta {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 14px;
  white-space: nowrap;
}

.card p {
  color: var(--ink-soft);
  font-size: 15px;
}

.card .foot {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.card .foot .btn {
  margin-top: 0;
  margin-left: auto;
}

/* ---------- 教育经历卡片：更有设计感 ---------- */

.edu-grid {
  gap: 24px;
}

.edu-card {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  box-shadow: 0 2px 10px rgba(17, 17, 17, 0.04),
    0 8px 28px rgba(17, 17, 17, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.edu-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--ink);
}

.edu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(17, 17, 17, 0.08),
    0 4px 14px rgba(17, 17, 17, 0.05);
}

.edu-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.edu-year {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.edu-school {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}

.edu-degree {
  margin-left: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}

.edu-pill {
  display: inline-block;
  margin-right: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--ink);
  vertical-align: middle;
  transform: translateY(-2px);
}

.edu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.edu-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.edu-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.pill {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border: 1px solid transparent;
}

.pill.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
  font-weight: 500;
}

.pill.warn {
  background: var(--warn-soft);
  color: var(--warn);
}

/* 可换行的长描述（GitHub 项目卡） */
.card .card-meta.wrap {
  white-space: normal;
  line-height: 1.6;
}

/* 链接型 pill（GitHub / 小红书等） */
.foot--right {
  justify-content: flex-end;
}

.pill-link {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent-deep);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
}

.pill-link::after {
  content: " \2197";
  font-weight: 700;
}

.pill-link:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -6px rgba(15, 76, 129, 0.5);
}

.pill-link:hover::after {
  color: #fff;
}

/* 三步走运作说明列表 */
.workflow {
  list-style: none;
  counter-reset: step;
  margin: 14px 0 0;
  padding: 0;
}

.workflow li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.workflow li:last-child {
  margin-bottom: 0;
}

.workflow li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.workflow li strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 3px;
}

.workflow code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  padding: 1px 6px;
  border-radius: 5px;
}

.placeholder-note {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 8px 14px;
  display: inline-block;
  margin-top: 10px;
}

.btn {
  display: inline-block;
  margin-left: auto;
  padding: 0;
  border: none;
  border-bottom: 1px dashed var(--muted);
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}

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

.btn.disabled {
  border-bottom: 1px dashed var(--line);
  color: var(--line);
  cursor: not-allowed;
}

/* 法律写作卡片：横跨两列，避免右侧空缺 */
.work-card--wide {
  grid-column: 1 / -1;
}

/* 卡片内并排动作按钮（起诉状 / 证据目录） */
.actions {
  display: flex;
  gap: 24px;
  margin-top: 8px;
  justify-content: flex-end;
}

.actions .btn {
  margin-left: 0;
}

.status {
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  padding: 2px 10px;
  background: var(--warn-soft);
  color: var(--warn);
  margin-left: 8px;
  white-space: nowrap;
}

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: 40px 28px;
  color: var(--muted);
  background: transparent;
  min-height: 160px;
}

.placeholder .ph-title {
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 16px;
}

.placeholder .ph-hint {
  font-family: var(--mono);
  font-size: 12.5px;
}

/* ---------- 作品 ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.work-card h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.work-card .abstract {
  color: #6f6f6f;
  font-size: 13.5px;
  line-height: 1.8;
  text-indent: 2em;
  margin: 6px 0 6px;
}

/* 作品卡片：悬停上浮 + 阴影加深 */
.work-card {
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -16px rgba(15, 23, 42, 0.2);
}

/* 滚动入场：用 translate 属性，避免与 hover 的 transform 冲突 */
.reveal-ready .work-card {
  opacity: 0;
  translate: 0 22px;
  transition: opacity 0.6s ease, translate 0.6s ease,
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.reveal-ready .work-card.is-visible {
  opacity: 1;
  translate: 0 0;
}

.reveal-ready .work-card.no-anim {
  transition: none !important;
}

details {
  margin-top: 16px;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}

details summary {
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent);
}

details .detail-body {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 15px;
}

details .detail-body ul {
  padding-left: 20px;
}

details .detail-body li {
  margin-bottom: 6px;
}

/* ---------- 联系 ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-list {
  list-style: none;
}

.contact-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 16px;
}

.contact-list .label {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  width: 72px;
  flex-shrink: 0;
  padding-top: 4px;
}

.contact-list a {
  font-weight: 600;
}

.contact-quote {
  display: flex;
  align-items: flex-end;
  gap: 24px;
}

.quote-text {
  flex: 1;
  min-width: 0;
}

.handwriting {
  font-family: "Long Cang", cursive;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.85;
  color: var(--ink);
  margin-bottom: 14px;
  /* 强制三行，避免单行内自动折行变成四行 */
  white-space: nowrap;
  /* 轻微倾斜，更像手写便签 */
  transform: rotate(-1deg);
  transform-origin: left top;
}

.contact-quote .quote-source {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  /* 出处不再贴左，往右缩进一点，但不右对齐到歌词末端 */
  padding-left: clamp(90px, 45%, 240px);
}

.apple-illustration {
  display: block;
  width: clamp(80px, 9vw, 120px);
  height: auto;
  flex-shrink: 0;
  /* 让插画有点手绘的轻松感 */
  transform: rotate(2deg);
}

/* ---------- Modal（专题卡片） ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(17, 17, 17, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--bg);
  border-radius: 20px;
  max-width: 640px;
  width: 100%;
  max-height: 84vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 36px;
  position: relative;
  box-shadow: 0 30px 80px rgba(17, 17, 17, 0.25);
  animation: modal-in 0.2s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-soft);
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  color: var(--ink-soft);
  line-height: 1;
}

.modal-close:hover {
  background: var(--bg-deep);
}

.modal .overline {
  margin-bottom: 8px;
}

.modal h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.modal .modal-desc {
  color: var(--ink-soft);
  font-size: 15.5px;
  margin-bottom: 24px;
}

.modal .exp-mini {
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}

.modal .exp-mini:last-child {
  margin-bottom: 0;
}

.modal .exp-mini h4 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
  line-height: 1.4;
}

.modal .exp-mini .meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 14px;
}

.modal .sub-item {
  position: relative;
  padding-left: 14px;
  margin-top: 14px;
}

.modal .sub-item:first-of-type {
  margin-top: 4px;
}

.modal .exp-mini .sub-h {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
  line-height: 1.5;
}

.modal .exp-mini .sub-h::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
}

.modal .exp-mini .sub-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
}

.modal .exp-mini p {
  font-size: 14.5px;
  color: var(--ink-soft);
}

.modal .exp-bullets {
  margin: 8px 0 0;
  padding-left: 1.1em;
  list-style: disc;
}

.modal .exp-bullets li {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 6px;
  padding-left: 0.2em;
}

.modal .exp-bullets li:last-child {
  margin-bottom: 0;
}

.modal .ev-link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 600;
  font-size: 14.5px;
}

/* ---------- Modal 论文正文 ---------- */

#paper-platform[hidden] {
  display: none;
}

.paper-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin-bottom: 16px;
}

.paper-tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.paper-keywords {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.paper-h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 10px;
}

.paper-h3 {
  font-size: 15.5px;
  font-weight: 700;
  margin: 20px 0 6px;
}

.paper-p {
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--ink-soft);
  text-indent: 2em;
  margin-bottom: 12px;
}

/* 诉讼文书表格（证据目录） */
.paper-table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 22px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.paper-table th,
.paper-table td {
  border: 1px solid var(--line);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.paper-table thead th {
  background: #f3f3f3;
  font-weight: 600;
  color: var(--ink);
}

.paper-table th:nth-child(1),
.paper-table td:nth-child(1) { width: 11%; }
.paper-table th:nth-child(2),
.paper-table td:nth-child(2) { width: 21%; }
.paper-table th:nth-child(3),
.paper-table td:nth-child(3) { width: 56%; }
.paper-table th:nth-child(4),
.paper-table td:nth-child(4) { width: 12%; }

.paper-table tbody tr:not(.group-row) td:first-child {
  white-space: nowrap;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.paper-table .group-row td {
  background: #fafafa;
  font-weight: 600;
  color: var(--ink);
  text-indent: 0;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  width: 100%;
}

/* ---------- GitHub 项目（二）占位卡片 ---------- */

.interview-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 260px;
  gap: 16px;
}

.interview-card h3 {
  margin-bottom: 0;
}

.interview-illustration {
  width: 100%;
  max-width: 220px;
}

.interview-illustration svg,
.interview-illustration img {
  width: 100%;
  height: auto;
  display: block;
}

.interview-caption {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 44px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}

.site-footer .beian {
  margin-top: 10px;
  font-size: 12.5px;
}

.site-footer a {
  color: var(--muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2,
  .work-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px;
    transform: translateY(-120%);
    transition: transform 0.2s ease;
    gap: 2px;
  }
  .nav.open {
    transform: translateY(0);
  }
  .nav a {
    padding: 13px 14px;
  }
  .nav-cta {
    margin: 8px 0 0;
    text-align: center;
  }
  .nav-toggle {
    display: block;
  }

  .hero {
    padding-top: 32px;
  }
  .hero-inner {
    min-height: 0;
    padding: 48px 0 0;
  }
  .hero-cn {
    font-size: 13px;
    top: -0.62em;
    left: 0.02em;
  }
  .hero-main {
    max-width: 100%;
    gap: 22px;
    /* 移动端照片在文字下方，下移量调小避免把照片挤出屏 */
    margin-top: 16px;
    width: 100%;
  }
  .hero-name {
    font-size: clamp(48px, 14vw, 72px);
  }
  .hero-tagline {
    font-size: 17px;
    max-width: 100%;
  }
  .hero-tag {
    padding: 9px 18px;
    font-size: 15px;
    border-width: 1.5px;
  }
  .hero-photo {
    position: relative;
    right: auto;
    bottom: auto;
    height: 360px;
    width: 100%;
  }
  .hero-photo img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    object-position: center bottom;
  }
  .section {
    padding: 64px 0;
  }
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .timeline-item {
    padding-left: 26px;
  }
  .timeline-head {
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
  }
  .timeline-item .role {
    text-align: left;
    white-space: normal;
  }
  .timeline-item ul {
    max-width: 100%;
  }
}
