/* ==========================================================================
   何立足 · 个人简历主页 样式表
   设计方向：浅底墨字 + 深青绿主色
   结构：1.变量 → 2.基础 → 3.通用组件 → 4.导航 → 5.首页 → 6.各板块
        → 7.画廊/灯箱 → 8.页脚 → 9.动效 → 10.响应式
   ========================================================================== */

/* ============================ 1. 设计变量 ============================ */
:root {
  /* 背景与表面 */
  --bg: #F3F6F5;             /* 页面底色：极浅灰绿 */
  --surface: #FFFFFF;        /* 卡片白 */
  --surface-soft: #F7F9F9;   /* 白色板块内的卡片底 */
  --primary-tint: #E1EFEE;   /* 浅青绿底 */
  --primary-tint-2: #EFF6F5; /* 更浅青绿 */
  --blue-tint: #E7EFF8;
  --green-tint: #E8F2EC;
  --gold-tint: #F6EEDB;

  /* 文字 */
  --ink: #14242B;            /* 主文字：深墨青 */
  --ink-2: #3F5259;          /* 次级文字 */
  --ink-3: #6C7E84;          /* 辅助文字 */

  /* 线条 */
  --line: #DEE6E3;
  --line-strong: #CBD6D2;

  /* 主题色 */
  --primary: #0D6A6E;        /* 深青绿 */
  --primary-dark: #0A5255;
  --primary-light: #2B8B8F;
  --blue: #2B659F;
  --green: #3F7A52;
  --gold: #A6711B;
  --gold-deep: #8C5E14;

  /* 圆角 */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;

  /* 阴影 */
  --shadow-sm: 0 2px 10px rgba(20, 36, 43, .05);
  --shadow: 0 12px 32px rgba(20, 36, 43, .09);
  --shadow-hover: 0 18px 42px rgba(13, 106, 110, .16);

  /* 尺寸 */
  --nav-h: 72px;
  --container: 1160px;

  /* 字体栈 */
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-display: "Space Grotesk", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-mono: "IBM Plex Mono", "Noto Sans SC", "Courier New", monospace;
}

/* ============================ 2. 基础样式 ============================ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

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

/* 键盘焦点样式 */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 通用容器 */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* 板块基础 */
.section {
  padding: 100px 0;
  scroll-margin-top: calc(var(--nav-h) + 8px);
}
.section-alt { background: var(--surface); }

/* ============================ 3. 通用组件 ============================ */

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease,
              box-shadow .25s ease, transform .25s ease;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(13, 106, 110, .25);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(13, 106, 110, .32);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary-tint);
  transform: translateY(-2px);
}
.btn-arrow { width: 15px; height: 15px; flex: none; }

/* 卡片 */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.section-alt .card { background: var(--surface-soft); }

/* 卡片图标（圆形浅底） */
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  color: var(--primary);
  background: var(--primary-tint);
}
.card-icon svg { width: 22px; height: 22px; }

.card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.card-head h3 { font-size: 17.5px; font-weight: 700; }
.card-meta { font-size: 13.5px; color: var(--ink-3); }

/* 板块标题 */
.section-head { margin-bottom: 52px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--primary);
}
.eyebrow-bar {
  width: 4px;
  height: 17px;
  border-radius: 2px;
  background: var(--primary);
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: .01em;
  margin: 14px 0 10px;
}
.section-sub { font-size: 15.5px; color: var(--ink-3); }

/* 板块内小标题 */
.block-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  margin: 40px 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.block-title::before {
  content: "";
  width: 6px;
  height: 18px;
  border-radius: 2px;
  background: var(--primary);
}

/* 标签（实心浅底） */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-dark);
  background: var(--primary-tint);
  border: 1px solid rgba(13, 106, 110, .14);
  border-radius: 999px;
  padding: 4px 13px;
}

/* 周期徽章 */
.period-badge {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--primary-dark);
  background: var(--primary-tint);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}

/* 提示 Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  z-index: 1200;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================ 4. 导航栏 ============================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
/* 滚动后样式：白底、模糊、阴影 */
.navbar.scrolled {
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(20, 36, 43, .06);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo */
.nav-logo { display: flex; align-items: center; gap: 11px; flex: none; }
.nav-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(13, 106, 110, .28);
}
.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.15;
}
.nav-logo-text small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .14em;
  color: var(--ink-3);
}

/* 桌面导航链接 */
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 8px 12px;
  border-radius: 8px;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: translateX(-50%);
  transition: width .25s ease;
}
.nav-link:hover { color: var(--primary); }
.nav-link.active { color: var(--primary); }
.nav-link.active::after { width: 18px; }

.nav-cta { padding: 9px 20px; font-size: 14px; flex: none; }

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================ 5. 首页 Hero ============================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 50px) 0 90px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .22em;
  color: var(--primary);
  margin-bottom: 18px;
}
.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(56px, 7.5vw, 92px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: .02em;
  color: var(--ink);
}
.hero-title {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 500;
  color: var(--ink-2);
  margin-top: 14px;
}
.hero-title-dot { color: var(--primary); padding: 0 4px; }
.hero-desc {
  font-size: 16.5px;
  color: var(--ink-2);
  max-width: 570px;
  margin-top: 22px;
}
.hero-tags { margin-top: 22px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* 首页关键数据 */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 40px;
}
.stat {
  background: var(--primary-tint-2);
  border: 1px solid rgba(13, 106, 110, .12);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.stat dt {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.stat dt strong {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--primary);
}
.stat dd { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

/* 人物照片 */
.hero-portrait { display: flex; justify-content: center; }
.portrait-frame {
  position: relative;
  width: min(100%, 390px);
  border-radius: var(--radius-lg);
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
/* 背景装饰色块 */
.portrait-frame::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -16px;
  right: -16px;
  width: 55%;
  height: 55%;
  border-radius: var(--radius-lg);
  background: var(--primary-tint);
}
.portrait-frame img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 8px);
  /* 照片为 1:1 正方形素材，按原始比例完整展示，不裁切 */
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* 向下滚动提示 */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-hint-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .28em;
  color: var(--ink-3);
}
.scroll-hint-line {
  width: 1.5px;
  height: 38px;
  background: linear-gradient(to bottom, var(--primary-light), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .35; transform: scaleY(.85); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================ 6. 个人信息板块 ============================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 22px;
  align-items: start;
}

/* 教育亮点 */
.edu-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}
.edu-highlight-item {
  background: var(--primary-tint-2);
  border: 1px solid rgba(13, 106, 110, .12);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.edu-num {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink);
}
.edu-num strong { font-family: var(--font-display); font-size: 18px; color: var(--primary); }
.edu-sub { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

.edu-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 10px;
}
.course-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 16px;
}
.course-list li {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--ink-2);
  padding-bottom: 7px;
  border-bottom: 1px dashed var(--line);
}
.course-list strong {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 14px;
}

/* 基本信息行 */
.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.info-list li:last-child { border-bottom: none; }
.info-list span { color: var(--ink-3); font-size: 13.5px; flex: none; }
.info-list strong { font-size: 14px; font-weight: 600; text-align: right; }

/* 个人评价四特质 */
.trait-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 22px;
}
.trait-card {
  background: var(--primary-tint-2);
  border: 1px solid rgba(13, 106, 110, .12);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.trait-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.trait-card h4::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--primary);
}
.trait-card p { font-size: 13.5px; color: var(--ink-2); }

/* ============================ 7. 能力集合板块 ============================ */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.skill-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.skill-card-head h3 { font-size: 17px; font-weight: 700; }
.skill-card-head .card-icon { width: 42px; height: 42px; }
.skill-icon-ai { color: var(--gold-deep); background: var(--gold-tint); }
.skill-icon-tech { color: var(--blue); background: var(--blue-tint); }
.skill-icon-tool { color: var(--green); background: var(--green-tint); }

/* 技能 Chip */
.chip-list { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-size: 13.5px;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 6px 13px;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.section-alt .chip { background: var(--surface); }
.chip:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-tint-2);
}

/* ============================ 8. 实习经历板块 ============================ */
.exp-hero { padding: 32px; }
.exp-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.exp-hero-top h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
}
.exp-role { font-size: 15px; color: var(--ink-2); margin-top: 8px; }
.exp-note { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.exp-hero .tag-list { margin-top: 18px; }

/* 背景/工作双栏 */
.exp-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.exp-text-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--line-strong);
}
.exp-text-card p { font-size: 14.5px; color: var(--ink-2); }

/* 子项目卡片 */
.subproject-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.subproject-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.subproject-head h5 { font-size: 15px; font-weight: 700; line-height: 1.45; }
.phase-tag {
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 7px;
  padding: 3px 9px;
  flex: none;
}
.phase-early { color: var(--primary-dark); background: var(--primary-tint); }
.phase-late { color: var(--blue); background: var(--blue-tint); }
.phase-post { color: var(--gold-deep); background: var(--gold-tint); }
.subproject-card p { font-size: 13.8px; color: var(--ink-2); }

/* 核心贡献卡片 */
.contrib-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.contrib-grid-2 { grid-template-columns: repeat(2, 1fr); }
.contrib-card {
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.contrib-card:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 106, 110, .3);
  box-shadow: var(--shadow-hover);
}
.contrib-num {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: .01em;
}
.contrib-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 4px 0 10px;
}
.contrib-card p { font-size: 13.8px; color: var(--ink-2); }

/* 飞书文档按钮容器 */
.doc-link-wrap { display: flex; justify-content: center; margin-top: 36px; }

/* ============================ 9. 项目作品板块 ============================ */
.project-block { margin-bottom: 90px; }
.project-block:last-child { margin-bottom: 0; }

/* 项目头部（概念图全宽置顶 + 文字） */
.project-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
  /* hover 轻微上浮阴影 */
  transition: transform .3s ease, box-shadow .3s ease;
}
.project-head:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.project-head-img {
  position: relative;
  background: var(--primary-tint);
}
/* 概念图为 16:9 信息密集图，使用其原始比例完整展示，不裁切 */
.project-head-img img {
  width: 100%;
  height: auto;
  aspect-ratio: 2720 / 1520;
  object-fit: cover;
}
.project-head-text { padding: 30px 32px 28px; }
.project-index {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .2em;
  color: var(--primary);
}
.project-head-text h3 {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 700;
  margin: 10px 0 8px;
  line-height: 1.35;
}
.project-meta { font-size: 13.5px; color: var(--ink-3); }
.project-head-text .tag-list { margin: 14px 0 16px; }
.project-bg, .project-duty { font-size: 14px; color: var(--ink-2); margin-top: 10px; }
.project-bg strong, .project-duty strong { color: var(--primary-dark); }

/* 成果横幅 */
.result-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  padding: 18px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(166, 113, 27, .25);
  background: var(--gold-tint);
}
.result-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  color: var(--gold-deep);
  background: rgba(255, 255, 255, .7);
}
.result-medal svg { width: 24px; height: 24px; }
.result-label { font-size: 13px; font-weight: 700; color: var(--gold-deep); letter-spacing: .04em; }
.result-text { font-size: 15.5px; color: var(--ink); margin-top: 2px; }

/* ============================ 10. 画廊与灯箱 ============================ */
.gallery {
  display: grid;
  gap: 14px;
}
.gallery-3 { grid-template-columns: repeat(3, 1fr); }

.gallery-item {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform .3s ease, box-shadow .3s ease;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item figcaption {
  font-size: 12.8px;
  color: var(--ink-2);
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  line-height: 1.5;
}

/* 灯箱遮罩 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: rgba(10, 22, 25, .9);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: fadeIn .25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox[hidden] { display: none; }
.lightbox-figure { text-align: center; max-width: 92vw; }
.lightbox-figure img {
  max-width: 92vw;
  max-height: 78vh;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}
.lightbox-figure figcaption {
  color: #D8E4E2;
  font-size: 14px;
  margin-top: 16px;
}
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 28px;
  width: 46px;
  height: 46px;
  font-size: 26px;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .26); }

/* ============================ 11. 奖项荣誉板块 ============================ */
.award-counts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}
.award-count {
  text-align: center;
  padding: 26px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-soft);
}
.award-count-num {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.award-count-label { font-size: 14px; color: var(--ink-2); margin-top: 8px; }

.award-lists {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.award-list-card { padding: 0; overflow: hidden; }
.award-group-title {
  font-size: 15px;
  font-weight: 700;
  padding: 13px 22px;
}
.award-group-national { color: var(--gold-deep); background: var(--gold-tint); }
.award-group-provincial { color: var(--primary-dark); background: var(--primary-tint); }
.award-group-school { color: var(--blue); background: var(--blue-tint); }
.award-list { padding: 8px 22px 14px; }
.award-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.award-list li:last-child { border-bottom: none; }
.award-rank {
  flex: none;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-tint);
  border-radius: 7px;
  padding: 3px 9px;
  margin-top: 2px;
}
.award-group-national .award-rank { color: var(--gold-deep); background: var(--gold-tint); }
.award-group-school .award-rank { color: var(--blue); background: var(--blue-tint); }
.award-list p { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.award-list time {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
}

/* ============================ 12. 校园经历板块 ============================ */
.campus-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  align-items: start;
}
.campus-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.campus-card-head h3 { font-size: 17.5px; font-weight: 700; }
.campus-card > p { font-size: 14.3px; color: var(--ink-2); }
.campus-results { margin-top: 12px; }
.campus-results li {
  position: relative;
  font-size: 13.8px;
  color: var(--ink-2);
  padding-left: 18px;
  margin-top: 9px;
}
.campus-results li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--primary);
}

/* ============================ 13. 联系方式板块 ============================ */
.contact-card {
  display: grid;
  grid-template-columns: .85fr 1.4fr;
  gap: 36px;
  padding: 42px;
}
.contact-intro h3 {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 700;
}
.contact-intro p { font-size: 14.5px; color: var(--ink-2); margin-top: 12px; }
.contact-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
a.contact-item:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
  color: var(--primary);
  background: var(--primary-tint);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-item-text { font-size: 15px; font-weight: 600; line-height: 1.3; }
.contact-item-text small {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-3);
}

/* ============================ 14. 页脚 ============================ */
.footer {
  background: #0F2F34;
  color: #A8C0BD;
  padding: 30px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13.5px;
}
.footer-note { color: #7E9C98; font-family: var(--font-mono); font-size: 12px; }

/* ============================ 15. 滚动揭示动效 ============================ */
/* 仅在 JS 启用时隐藏，避免无 JS 时内容不可见 */
.js-enabled .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}
.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================ 16. 响应式适配 ============================ */

/* 中等屏幕：小平板 */
@media (max-width: 1024px) {
  .hero-grid { gap: 40px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .project-head-text { padding: 26px; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; gap: 24px; }
}

/* 导航折叠断点 */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }

  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: rgba(255, 255, 255, .98);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 10px 20px 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
  }
  .nav-links.open { max-height: 440px; }
  .nav-link {
    padding: 13px 14px;
    font-size: 15px;
    border-radius: 9px;
  }
  .nav-link::after { display: none; }
  .nav-link.active { background: var(--primary-tint); }

  .skills-grid { grid-template-columns: 1fr; }
  .trait-grid { grid-template-columns: 1fr 1fr; }
  .contrib-grid-2 { grid-template-columns: 1fr; }
  .campus-grid { grid-template-columns: 1fr; }
  .award-lists { grid-template-columns: 1fr; }
}

/* 手机端 */
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero { padding: calc(var(--nav-h) + 30px) 0 80px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { order: -1; }
  .portrait-frame { width: min(78%, 320px); }
  .scroll-hint { display: none; }

  .exp-two-col { grid-template-columns: 1fr; }
  .subproject-grid { grid-template-columns: 1fr; }
  .contrib-grid { grid-template-columns: 1fr; }
  .gallery-3 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-item figcaption { font-size: 11.5px; padding: 7px 9px; }

  .award-counts { gap: 10px; }
  .award-count-num { font-size: 36px; }
  .contact-items { grid-template-columns: 1fr; }
  .contact-card { padding: 26px; }
  .card { padding: 22px; }

  .exp-hero { padding: 24px; }
  .result-banner { padding: 16px 18px; gap: 12px; }
  .result-text { font-size: 14px; }
  .footer-inner { justify-content: center; text-align: center; }
}

@media (max-width: 380px) {
  .trait-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

/* ============================ 17. 降低动效偏好 ============================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js-enabled .reveal { opacity: 1; transform: none; }
}
