/* ============================================================
   个人简历网站 · 设计系统
   风格：黑金科技风（Dark + Gold / Tech）· 卡片式 · PPT 分屏节奏
   ============================================================ */

:root {
  /* 金色主色系 */
  --gold: #e8b923;
  --gold-2: #ffd75e;
  --gold-3: #b8860b;
  --gold-line: rgba(232, 185, 35, 0.32);

  /* 品牌别名（沿用旧变量，保证组件一致） */
  --brand: var(--gold);
  --brand-dark: var(--gold-2);
  --brand-soft: rgba(232, 185, 35, 0.1);
  --brand-ring: rgba(232, 185, 35, 0.18);

  /* 深色中性色 */
  --bg: #07080c;
  --bg-soft: #0b0d13;
  --card: rgba(255, 255, 255, 0.035);
  --card-hi: rgba(255, 255, 255, 0.06);
  --ink: #f2f4f8;
  --ink-2: #c4cad6;
  --muted: #8a92a4;
  --muted-2: #5c6474;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.055);

  --ok: #10b981;
  --warn: #f59e0b;

  /* 尺寸 */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 46px rgba(0, 0, 0, 0.55);
  --glow: 0 0 0 1px rgba(232, 185, 35, 0.35), 0 10px 34px rgba(232, 185, 35, 0.14);
  --maxw: 1080px;
  --nav-h: 64px;

  /* 字体 */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono",
    monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1100px 480px at 50% -8%, rgba(232, 185, 35, 0.08), transparent 62%),
    var(--bg);
  background-attachment: fixed;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  counter-reset: slide;
}

/* 科技感网格底纹 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.021) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.021) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(1100px 720px at 50% 0%, #000 15%, transparent 78%);
  mask-image: radial-gradient(1100px 720px at 50% 0%, #000 15%, transparent 78%);
}

main,
.footer {
  position: relative;
  z-index: 1;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.18s ease;
}
a:hover {
  color: var(--gold-2);
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding-left: 1.15em;
}

/* ---------- 布局容器 ---------- */
.container {
  width: min(100% - 40px, var(--maxw));
  margin-inline: auto;
}

.section {
  padding: 66px 0;
  counter-increment: slide;
  position: relative;
}
.section + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - 40px, var(--maxw));
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}
.section--soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 70%);
}

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(7, 8, 12, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  width: min(100% - 40px, var(--maxw));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  white-space: nowrap;
}
.nav__brand:hover {
  color: var(--gold);
}
.nav__logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3));
  color: #1b1405;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: -0.03em;
  box-shadow: 0 2px 10px rgba(232, 185, 35, 0.28);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}

.nav__link {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: all 0.18s ease;
}
.nav__link:hover {
  background: var(--brand-soft);
  color: var(--gold);
}
.nav__link.is-active {
  background: var(--brand-soft);
  color: var(--gold);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--gold-line);
}
.nav__link.is-soon {
  color: var(--muted-2);
}

/* 语言切换 */
.lang-switch {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-switch button {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.lang-switch button.is-active {
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3));
  color: #1b1405;
}

.nav__toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 9px;
  width: 38px;
  height: 34px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
}

/* ---------- 通用组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.eyebrow::before {
  content: counter(slide, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--brand-soft);
  border: 1px solid var(--gold-line);
  color: var(--gold);
  letter-spacing: 0.08em;
}

.section__title {
  font-size: 28px;
  margin-bottom: 8px;
  background: linear-gradient(120deg, #fff 10%, var(--gold-2) 55%, var(--gold-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section__desc {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 62ch;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease,
    background 0.25s ease;
}
.card:hover {
  transform: translateY(-3px);
  background: var(--card-hi);
  border-color: var(--gold-line);
  box-shadow: var(--glow);
}

.grid {
  display: grid;
  gap: 16px;
}
.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--gold-2);
  border: 1px solid var(--gold-line);
  white-space: nowrap;
}
.tag--plain {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border-color: var(--line);
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}
.btn--primary {
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3));
  color: #1b1405;
  box-shadow: 0 4px 16px rgba(232, 185, 35, 0.28);
}
.btn--primary:hover {
  color: #1b1405;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(232, 185, 35, 0.42);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-2);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--gold-line);
  color: var(--gold);
  background: var(--brand-soft);
}

/* ---------- Hero ---------- */
.hero {
  padding: 66px 0 46px;
  position: relative;
  background:
    radial-gradient(900px 400px at 14% -12%, rgba(232, 185, 35, 0.16), transparent 62%),
    radial-gradient(700px 340px at 90% 6%, rgba(94, 156, 255, 0.08), transparent 60%),
    linear-gradient(180deg, #0a0c12 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
/* Hero 大卡片（PPT 封面感） */
.hero-card {
  padding: 34px 34px 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--gold-line);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 185, 35, 0.14), transparent 65%);
  pointer-events: none;
}
.hero-card:hover {
  transform: none;
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-line);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
}
.hero__name {
  font-size: clamp(32px, 5vw, 44px);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  background: linear-gradient(120deg, #fff 15%, var(--gold-2) 60%, var(--gold-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 14px;
}
.hero__tagline {
  font-size: 15.5px;
  color: var(--ink-2);
  max-width: 60ch;
  margin-bottom: 24px;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 26px;
}
.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
/* 金色渐变环 + 圆形头像（用 padding 造环，避免 mask 把图片一起遮掉） */
.avatar {
  width: 152px;
  height: 152px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3));
  box-shadow: 0 10px 34px rgba(232, 185, 35, 0.24), var(--shadow-lg);
  flex: none;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 50%;
  background: #fff;
  display: block;
}

/* 亮点数据 */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 40px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}
.stat:hover {
  border-color: var(--gold-line);
  box-shadow: var(--glow);
}
.stat__value {
  font-size: 25px;
  font-weight: 800;
  line-height: 1.2;
  font-family: var(--font-mono);
  background: linear-gradient(120deg, var(--gold-2), var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat__label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* ---------- 时间线（卡片式） ---------- */
.timeline {
  position: relative;
  padding-left: 26px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), rgba(232, 185, 35, 0.12));
  border-radius: 2px;
}
.tl-item {
  position: relative;
  padding: 18px 20px;
  margin-bottom: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}
.tl-item:last-child {
  margin-bottom: 0;
}
.tl-item:hover {
  border-color: var(--gold-line);
  background: var(--card-hi);
  box-shadow: var(--glow);
}
.tl-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--brand-ring), 0 0 14px rgba(232, 185, 35, 0.6);
}
.tl-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}
.tl-item__title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
}
.tl-item__sub {
  font-size: 14px;
  color: var(--muted);
}
.tl-item__date {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  background: var(--brand-soft);
  border: 1px solid var(--gold-line);
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.tl-item__desc {
  color: var(--ink-2);
  font-size: 14.5px;
}
.tl-item__points {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 14.5px;
}
.tl-item__points li {
  margin-bottom: 4px;
}
.tl-item__points li::marker {
  color: var(--gold);
}

/* ---------- 技能 ---------- */
.skill-group {
  padding: 22px;
}
.skill-group__title {
  font-size: 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.skill-group__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand-soft);
  border: 1px solid var(--gold-line);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 14px;
  flex: none;
}
.skill {
  margin-bottom: 14px;
}
.skill:last-child {
  margin-bottom: 0;
}
.skill__head {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 500;
}
.skill__level {
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 700;
  font-family: var(--font-mono);
}
.skill__bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
}
.skill__fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-3), var(--gold-2));
  box-shadow: 0 0 12px rgba(232, 185, 35, 0.45);
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 项目卡片 ---------- */
.project {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.project__cover {
  position: relative;
  height: 158px;
  background: linear-gradient(135deg, #171a22, #0b0d13);
  display: grid;
  place-items: center;
  font-size: 40px;
  font-weight: 800;
  color: rgba(232, 185, 35, 0.35);
  letter-spacing: -0.04em;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.project__cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.project:hover .project__cover img {
  transform: scale(1.06);
}
.project__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(232, 185, 35, 0.07) 0%, rgba(7, 8, 12, 0.88) 100%);
}
.cover-badge {
  position: absolute;
  left: 14px;
  bottom: 11px;
  z-index: 2;
  color: var(--gold-2);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}
.project__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.project__title {
  font-size: 17px;
}
.project__meta {
  font-size: 13px;
  color: var(--muted);
}
.project__summary {
  font-size: 14.5px;
  color: var(--ink-2);
  flex: 1;
}
.project__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid var(--line-2);
  margin-top: 4px;
}
.project__link {
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--gold);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.filter {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.filter:hover {
  border-color: var(--gold-line);
  color: var(--gold);
}
.filter.is-active {
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3));
  border-color: transparent;
  color: #1b1405;
  font-weight: 600;
}

/* 详情页大图 */
.detail-cover {
  position: relative;
  height: 240px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.credit {
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 6px;
  line-height: 1.5;
}

/* 页面横幅 */
.page-banner {
  position: relative;
  height: 210px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 30px;
  border: 1px solid var(--line);
}
.page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 8, 12, 0.88) 0%, rgba(7, 8, 12, 0.35) 62%, rgba(184, 134, 11, 0.18) 100%);
}
.page-banner__text {
  position: absolute;
  left: 28px;
  bottom: 22px;
  z-index: 2;
  color: #fff;
}
.page-banner__text h2 {
  color: #fff;
  font-size: 25px;
  margin-bottom: 2px;
}
.page-banner__text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

/* ---------- 联系方式卡片 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.contact-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
}
.contact-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--brand-soft);
  border: 1px solid var(--gold-line);
  color: var(--gold);
  display: grid;
  place-items: center;
  flex: none;
  font-size: 17px;
}
.contact-card__label {
  font-size: 12.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.contact-card__value {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
}
.contact-card__hint {
  font-size: 13px;
  color: var(--muted);
}
.copy-btn {
  border: 0;
  background: none;
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(232, 185, 35, 0.04), transparent 60%);
  padding: 28px 0;
  margin-top: 40px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13.5px;
}
.footer__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- 滚动动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 空状态（博客占位） ---------- */
.empty {
  text-align: center;
  padding: 56px 20px;
  color: var(--muted);
}
.empty__icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.empty__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gold-line);
  background: rgba(11, 13, 19, 0.9);
  color: var(--gold);
  box-shadow: var(--shadow);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 40;
}
.to-top.is-show {
  opacity: 1;
  pointer-events: auto;
}
.to-top:hover {
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3));
  color: #1b1405;
}

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .grid--3,
  .grid--2,
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .avatar {
    width: 112px;
    height: 112px;
  }
}

@media (max-width: 680px) {
  .nav__toggle {
    display: inline-flex;
  }
  .nav__links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #0b0d13;
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 16px;
    gap: 2px;
    box-shadow: var(--shadow);
    display: none;
    margin-left: 0;
  }
  .nav__links.is-open {
    display: flex;
  }
  .nav__link {
    padding: 10px 12px;
  }
  .lang-switch {
    margin-top: 8px;
    align-self: flex-start;
  }
  .grid--3,
  .grid--2,
  .stats {
    grid-template-columns: 1fr;
  }
  .tl-item__date {
    margin-left: 0;
  }
  .section {
    padding: 44px 0;
  }
}

/* ---------- 打印（导出 PDF 简历） ---------- */
@media print {
  .nav,
  .to-top,
  .footer__links,
  .filters,
  .hero__actions {
    display: none !important;
  }
  body {
    background: #fff;
    color: #111;
    font-size: 12px;
  }
  body::before {
    display: none;
  }
  .card,
  .stat,
  .tl-item {
    background: #fff !important;
    border-color: #ddd !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    break-inside: avoid;
  }
  .section__title,
  .hero__name,
  .stat__value {
    background: none !important;
    -webkit-text-fill-color: #111 !important;
    color: #111 !important;
  }
  h1,
  h2,
  h3,
  h4,
  .tl-item__title,
  .contact-card__value {
    color: #111 !important;
  }
  .muted,
  .tl-item__sub,
  .section__desc,
  .project__meta {
    color: #555 !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .section {
    padding: 16px 0;
  }
}
