/* ============================================================================
 * 个人简历展示站 · 样式表（清新版）
 * 设计基调：浅色、通透、留白充足
 * 性能约定：动效只碰 transform / opacity，滚动监听走单帧 rAF + passive
 * ========================================================================== */

/* ---------- 变量 ---------- */
:root {
  --bg: #f7fafc;
  --bg-soft: #eef5f9;
  --ink: #0f2027;
  --ink-2: #52697a;
  --ink-3: #6b7c88;
  --line: rgba(15, 32, 39, 0.08);
  --line-soft: rgba(15, 32, 39, 0.05);
  --blue: #0a84ff;
  --blue-soft: rgba(10, 132, 255, 0.1);
  --mint: #12b8a0;
  --mint-soft: rgba(18, 184, 160, 0.1);
  --card: #ffffff;
  --radius-lg: 24px;
  --radius: 18px;
  --maxw: 1080px;
  --gutter: clamp(20px, 5vw, 40px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 1px 2px rgba(15, 32, 39, 0.04), 0 12px 30px -22px rgba(15, 32, 39, 0.4);
  --shadow-lift: 0 20px 46px -26px rgba(15, 32, 39, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-variant-numeric: tabular-nums;
  background: transparent;
}

/* 固定的环境底色：用 fixed 定位而不是 background-attachment，
   避免移动端滚动时整页重绘 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(90% 60% at 12% 0%, #e9f8f3 0%, rgba(233, 248, 243, 0) 58%),
    radial-gradient(80% 55% at 92% 4%, #e8f3fe 0%, rgba(232, 243, 254, 0) 62%),
    linear-gradient(180deg, #fbfdfe 0%, #f5fafc 46%, #f7fafc 100%);
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

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

::selection {
  background: rgba(18, 184, 160, 0.18);
}

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

.wrap {
  width: min(var(--maxw), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

/* ---------- 彩虹涟漪（背景层） ---------- */
.rainbow-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.rainbow-ripple {
  position: absolute;
  width: min(78vmax, 1080px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.18);
  animation: rippleBloom 7.2s var(--ease) forwards;
  background: conic-gradient(
    from var(--spin, 20deg),
    #ffb3c1,
    #ffd9a8,
    #fdf3a8,
    #b6ecbd,
    #a9e2f5,
    #bdb2f7,
    #f3b6e3,
    #ffb3c1
  );
  -webkit-mask: radial-gradient(
    closest-side,
    transparent 42%,
    rgba(0, 0, 0, 0.85) 62%,
    rgba(0, 0, 0, 0.6) 71%,
    transparent 84%
  );
  mask: radial-gradient(
    closest-side,
    transparent 42%,
    rgba(0, 0, 0, 0.85) 62%,
    rgba(0, 0, 0, 0.6) 71%,
    transparent 84%
  );
  will-change: transform, opacity;
}

@keyframes rippleBloom {
  0% {
    transform: translate(-50%, -50%) scale(0.18);
    opacity: 0;
  }
  14% {
    opacity: var(--peak, 0.42);
  }
  55% {
    opacity: calc(var(--peak, 0.42) * 0.6);
  }
  100% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 0;
  }
}

/* ---------- 滚动进度 ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 120;
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #35d6b3, #0a84ff);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.nav-inner {
  width: min(var(--maxw), 100% - var(--gutter) * 2);
  margin-inline: auto;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  flex: none;
}

.brand-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(18, 184, 160, 0.5);
  animation: brandPulse 3.4s var(--ease) infinite;
}

@keyframes brandPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(18, 184, 160, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(18, 184, 160, 0); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-link {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(15, 32, 39, 0.04);
}

.nav-link.is-active {
  color: var(--ink);
  background: rgba(15, 32, 39, 0.06);
}

.nav-cta {
  flex: none;
  padding: 7px 17px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}

.nav-cta:hover {
  background: #1b3540;
  transform: translateY(-1px);
}

.nav.is-solid {
  background: rgba(251, 253, 254, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex: none;
}

.menu-btn span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out);
}

.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 23px; }

.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 19.5px; transform: rotate(-45deg); }

/* ---------- 移动端目录 ---------- */
.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 90;
  padding: 84px var(--gutter) 40px;
  background: rgba(248, 252, 253, 0.96);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease-out),
    visibility 0s linear 0.35s;
}

.menu-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease-out), visibility 0s;
}

.menu-panel-inner {
  display: flex;
  flex-direction: column;
}

.menu-panel a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.menu-panel a i {
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
}

.menu-panel-foot {
  margin-top: 28px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-3);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 96px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.6;
}

.orb-a {
  width: 42vmax;
  height: 42vmax;
  left: -12vmax;
  top: -14vmax;
  background: radial-gradient(circle, rgba(18, 184, 160, 0.26), transparent 68%);
}

.orb-b {
  width: 38vmax;
  height: 38vmax;
  right: -12vmax;
  bottom: -16vmax;
  background: radial-gradient(circle, rgba(80, 160, 255, 0.24), transparent 70%);
}

.grid-veil {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 32, 39, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 32, 39, 0.04) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 15%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 15%, transparent 78%);
}

.hero-inner {
  position: relative;
  width: min(1120px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

/* 头像：白边 + 彩虹柔光 + 三个小点，跟合成稿一致 */
.hero-portrait {
  position: relative;
  z-index: 0;
  width: clamp(240px, 27vw, 372px);
  margin: 0;
  justify-self: end;
}

.hero-portrait::before {
  content: "";
  position: absolute;
  inset: -16px;
  z-index: -1;
  border-radius: 52px;
  background: linear-gradient(160deg, #96e2c6, #a6d3f7 48%, #ffd1a8);
  filter: blur(26px);
  opacity: 0.5;
  pointer-events: none;
}

.hero-portrait-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 36px;
  border: 4px solid #fff;
  background: #fff;
  box-shadow: 0 26px 52px -28px rgba(15, 32, 39, 0.42),
    0 0 0 1px rgba(15, 32, 39, 0.05);
}

.portrait-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.dot-a {
  right: -22px;
  top: 46px;
  width: 6px;
  height: 6px;
  background: #96e2c6;
  box-shadow: 0 0 0 6px rgba(150, 226, 198, 0.2), 0 0 18px 6px rgba(150, 226, 198, 0.5);
}

.dot-b {
  right: -30px;
  top: 114px;
  width: 4px;
  height: 4px;
  background: #a6d3f7;
  box-shadow: 0 0 0 5px rgba(166, 211, 247, 0.2), 0 0 14px 5px rgba(166, 211, 247, 0.45);
}

.dot-c {
  right: -14px;
  bottom: 32px;
  width: 5px;
  height: 5px;
  background: #ffd1a8;
  box-shadow: 0 0 0 5px rgba(255, 209, 168, 0.22), 0 0 16px 5px rgba(255, 209, 168, 0.5);
}

/* 首屏入场由 JS 的 Web Animations 序列接管，这里只保留初始隐藏状态 */
.hero-anim {
  opacity: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px 2px rgba(18, 184, 160, 0.45);
}

.hero-name {
  position: relative;
  margin-top: 18px;
  font-size: clamp(60px, 13vw, 160px);
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: -0.045em;
  background: linear-gradient(
    100deg,
    #ef4b5b 0%,
    #f2812f 16%,
    #d9a51b 32%,
    #17a673 48%,
    #0f9bd7 64%,
    #4f5bd5 80%,
    #d6459b 100%
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: nameHue 18s ease-in-out infinite alternate;
}

@keyframes nameHue {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

/* 名字背后两团彩虹光：一层整体氛围随滚动扩散，每个字再各有一团环形光晕 */
.hero-name::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  width: 64%;
  height: 128%;
  background: linear-gradient(
    100deg,
    #ff8fa0,
    #ffb877,
    #ffdb8a,
    #8ce8bd,
    #8fd3ff,
    #a9a4ff,
    #ff9ad5
  );
  -webkit-mask: radial-gradient(closest-side, #000 22%, rgba(0, 0, 0, 0.5) 58%, transparent 80%);
  mask: radial-gradient(closest-side, #000 22%, rgba(0, 0, 0, 0.5) 58%, transparent 80%);
  transform: translate(-50%, -50%) scale(var(--glow-scale, 1));
  opacity: 0;
  transition: opacity 0.9s var(--ease);
  will-change: transform, opacity;
}

.hero-name.is-lit::before {
  opacity: var(--glow-op, 0.45);
}

/* 逐字光晕：由脚本按每个字的实际位置生成 */
.name-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.name-bloom {
  position: absolute;
  display: block;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.86);
  background: conic-gradient(
    from var(--spin, 0deg),
    #ff8fa0,
    #ffc98a,
    #ffe98a,
    #8ce8bd,
    #8fd3ff,
    #a9a4ff,
    #ff9ad5,
    #ff8fa0
  );
  -webkit-mask: radial-gradient(
    closest-side,
    rgba(0, 0, 0, 0.35) 6%,
    rgba(0, 0, 0, 0.72) 38%,
    rgba(0, 0, 0, 0.42) 58%,
    transparent 80%
  );
  mask: radial-gradient(
    closest-side,
    rgba(0, 0, 0, 0.35) 6%,
    rgba(0, 0, 0, 0.72) 38%,
    rgba(0, 0, 0, 0.42) 58%,
    transparent 80%
  );
  will-change: transform, opacity;
}

.hero-name.is-lit .name-bloom {
  animation: charBloom 3.6s var(--ease) infinite;
  animation-delay: var(--d, 0s);
}

/* 从字的中心向外扩散，然后化开 */
@keyframes charBloom {
  0% { transform: scale(0.88); opacity: 0; }
  16% { opacity: 0.46; }
  55% { opacity: 0.24; }
  100% { transform: scale(1.34); opacity: 0; }
}

.hero-intent {
  margin-top: clamp(20px, 3vw, 32px);
  font-size: clamp(17px, 2.1vw, 25px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}

.hero-intent span {
  color: var(--ink);
  font-weight: 600;
}

.hero-intro {
  margin-top: 18px;
  max-width: 620px;
  font-size: clamp(14.5px, 1.5vw, 16.5px);
  line-height: 1.85;
  color: var(--ink-2);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(40px, 6vw, 62px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.stat-num {
  font-size: clamp(22px, 2.9vw, 34px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.stat-num em {
  font-style: normal;
  font-size: 0.5em;
  font-weight: 500;
  margin-left: 2px;
  color: var(--ink-3);
}

.stat-label {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-3);
}

.scroll-cue {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  width: max-content;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
}

.scroll-line {
  position: relative;
  width: 1px;
  height: 42px;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(15, 32, 39, 0.3), transparent);
}

.scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--mint), transparent);
  animation: scrollRun 2.4s var(--ease) infinite;
}

@keyframes scrollRun {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* ---------- 区块 ---------- */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(72px, 9.5vw, 140px) 0;
  scroll-margin-top: 60px;
}

.section--alt {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.4) 100%
  );
  border-block: 1px solid rgba(15, 32, 39, 0.035);
}

.sec-head {
  max-width: 780px;
  margin-bottom: clamp(32px, 4.6vw, 58px);
}

.sec-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
}

.sec-title {
  margin-top: 12px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.sec-lead {
  margin-top: 18px;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.8;
  color: var(--ink-2);
}

/* ---------- 滚动揭示 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-out), transform 0.95s var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

[data-reveal="fade"] {
  transform: none;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

[data-reveal] .bullets li,
[data-reveal] .honor-list li,
[data-reveal] .project-points li,
[data-reveal] .courses .course {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

[data-reveal].is-in :is(.bullets li, .honor-list li, .project-points li, .courses .course) {
  opacity: 1;
  transform: none;
}

[data-reveal] :is(.bullets li, .honor-list li, .project-points li, .course):nth-child(1) { transition-delay: 0.05s; }
[data-reveal] :is(.bullets li, .honor-list li, .project-points li, .course):nth-child(2) { transition-delay: 0.1s; }
[data-reveal] :is(.bullets li, .honor-list li, .project-points li, .course):nth-child(3) { transition-delay: 0.15s; }
[data-reveal] :is(.bullets li, .honor-list li, .project-points li, .course):nth-child(4) { transition-delay: 0.2s; }
[data-reveal] :is(.bullets li, .honor-list li, .project-points li, .course):nth-child(5) { transition-delay: 0.25s; }
[data-reveal] :is(.bullets li, .honor-list li, .project-points li, .course):nth-child(6) { transition-delay: 0.3s; }

/* ---------- 基本信息 ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.fact {
  background: #fff;
  padding: 26px 24px 24px;
}

.fact-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.fact-value {
  margin-top: 9px;
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.fact--strong .fact-value {
  color: var(--blue);
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.chip-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 184, 160, 0.35);
  box-shadow: 0 10px 24px -18px rgba(15, 32, 39, 0.5);
}

.chip-btn span {
  color: var(--ink-3);
  font-weight: 400;
}

/* ---------- 教育背景 ---------- */
.edu-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.6vw, 44px);
  box-shadow: var(--shadow-soft);
}

.edu-head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: space-between;
  align-items: flex-start;
}

.edu-school {
  font-size: clamp(21px, 2.6vw, 27px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.edu-major {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-2);
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--mint-soft);
  color: #0d8a78;
  font-size: 12px;
  font-weight: 500;
}

.edu-period {
  padding-top: 6px;
  font-size: 14px;
  color: var(--ink-3);
  white-space: nowrap;
}

.edu-note {
  max-width: 760px;
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-2);
}

.course-label {
  margin-top: 26px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.courses {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.course {
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(15, 32, 39, 0.04);
  font-size: 13.5px;
  color: #33474f;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.course:hover {
  background: var(--mint-soft);
  color: #0d8a78;
}

/* ---------- 工作经历 ---------- */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(18, 184, 160, 0.5), var(--line) 32%, var(--line));
  transform: scaleY(var(--line-scale, 1));
  transform-origin: 50% 0;
  will-change: transform;
}

.exp-item {
  position: relative;
  margin-bottom: 24px;
}

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

.exp-dot {
  position: absolute;
  left: -30px;
  top: 32px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--mint);
  box-shadow: 0 0 0 4px rgba(18, 184, 160, 0.1);
}

.exp-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(18, 184, 160, 0.4);
  animation: dotPulse 3.2s var(--ease) infinite;
}

@keyframes dotPulse {
  0% { transform: scale(0.7); opacity: 0.7; }
  70%, 100% { transform: scale(1.6); opacity: 0; }
}

.exp-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3.2vw, 38px);
  box-shadow: var(--shadow-soft);
}

.exp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.exp-company {
  font-size: clamp(19px, 2.3vw, 23px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.exp-role {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--blue);
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px 2px 8px;
  border-radius: 999px;
  background: rgba(18, 184, 160, 0.12);
  color: #0d8a78;
  font-size: 11.5px;
  font-weight: 500;
}

.badge-live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
}

.exp-period {
  margin-left: auto;
  font-size: 13.5px;
  color: var(--ink-3);
  white-space: nowrap;
}

.exp-block {
  margin-top: 20px;
}

.exp-block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.exp-block-title::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--mint);
  opacity: 0.7;
}

.bullets {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 10px;
}

.bullets li {
  position: relative;
  padding-left: 16px;
  font-size: 14.8px;
  line-height: 1.85;
  color: #33474f;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.78em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(15, 32, 39, 0.2);
}

.exp-block--emphasis {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(18, 184, 160, 0.08), rgba(10, 132, 255, 0.05));
  border: 1px solid rgba(18, 184, 160, 0.16);
}

.exp-block--emphasis .exp-block-title {
  color: #0d8a78;
}

.exp-block--emphasis .bullets li {
  color: var(--ink);
}

.exp-block--emphasis .bullets li::before {
  background: var(--mint);
}

/* ---------- 项目经历 ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(16px, 2.2vw, 24px);
}

.project-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-soft);
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.project-result {
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(18, 184, 160, 0.12);
  color: #0d8a78;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}

.project-name {
  margin-top: 16px;
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.project-role {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--blue);
}

.project-points {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.pp-title {
  font-size: 13px;
  font-weight: 600;
}

.pp-title span {
  margin-right: 7px;
  color: var(--ink-3);
  font-weight: 500;
}

.pp-text {
  margin-top: 5px;
  font-size: 14.3px;
  line-height: 1.85;
  color: #3d525c;
}

/* ---------- 技能 ---------- */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(16px, 2.2vw, 22px);
}

.skill-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2.8vw, 32px);
  box-shadow: var(--shadow-soft);
}

.skill-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(18, 184, 160, 0.14), rgba(10, 132, 255, 0.1));
  color: #0d8a78;
}

.skill-icon svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skill-name {
  margin-top: 16px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.skill-tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(15, 32, 39, 0.04);
  font-size: 12.5px;
  color: #46595f;
  line-height: 1.6;
}

.skill-desc {
  margin-top: 16px;
  font-size: 13.8px;
  line-height: 1.85;
  color: var(--ink-2);
}

/* ---------- 荣誉分组 ---------- */
.honor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 2.2vw, 22px);
}

.honor-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2.8vw, 30px);
  box-shadow: var(--shadow-soft);
}

.honor-title {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #0d8a78;
}

.honor-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.honor-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 14.2px;
  line-height: 1.7;
  color: #33474f;
}

.honor-year {
  flex: none;
  width: 46px;
  font-size: 12px;
  color: var(--ink-3);
}

/* ---------- 亮点 ---------- */
.highlights {
  background: linear-gradient(
    165deg,
    rgba(18, 184, 160, 0.1) 0%,
    rgba(10, 132, 255, 0.07) 46%,
    rgba(255, 255, 255, 0.5) 100%
  );
  border-block: 1px solid rgba(18, 184, 160, 0.12);
}

.hl-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 26px 0 30px;
  border-block: 1px solid rgba(15, 32, 39, 0.08);
}

.hl-num {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.hl-num em {
  font-style: normal;
  margin-left: 3px;
  font-size: 0.45em;
  font-weight: 500;
  color: var(--mint);
}

.hl-label {
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

.hl-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 20px);
  margin-top: clamp(26px, 3.6vw, 42px);
}

.hl-item {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: clamp(20px, 2.6vw, 26px);
  box-shadow: 0 12px 30px -24px rgba(15, 32, 39, 0.5);
}

.hl-index {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--mint);
}

.hl-title {
  margin-top: 10px;
  font-size: clamp(17px, 2vw, 19px);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.hl-text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.85;
  color: #3d525c;
}

.hl-proof {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 32, 39, 0.07);
  font-size: 12px;
  line-height: 1.6;
  color: #0d8a78;
}

.hl-closing {
  max-width: 860px;
  margin-top: clamp(24px, 3.2vw, 36px);
  font-size: clamp(15px, 1.9vw, 18px);
  line-height: 1.9;
  color: var(--ink);
}

/* ---------- 个人优势 ---------- */
.strength-list {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border-block: 1px solid var(--line-soft);
}

.strength-row {
  display: grid;
  grid-template-columns: 84px minmax(140px, 220px) 1fr;
  gap: clamp(14px, 3vw, 34px);
  align-items: start;
  padding: clamp(22px, 3vw, 34px) clamp(16px, 2.4vw, 30px);
  background: rgba(255, 255, 255, 0.72);
}

.strength-index {
  padding-top: 5px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.strength-title {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.strength-text {
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-2);
}

/* ---------- 页脚 ---------- */
.footer {
  position: relative;
  z-index: 1;
  padding: clamp(64px, 9vw, 118px) 0 32px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(233, 247, 245, 0.85) 100%
  );
  border-top: 1px solid rgba(15, 32, 39, 0.06);
}

.footer-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.footer-title {
  margin-top: 16px;
  font-size: clamp(28px, 5.2vw, 56px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.035em;
  background: linear-gradient(170deg, #0f2027 30%, #2f7d78 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(10px, 1.4vw, 14px);
  margin-top: clamp(34px, 5vw, 56px);
}

.footer-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 32, 39, 0.06);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

a.footer-link:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 184, 160, 0.3);
}

.footer-link-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

.footer-link-value {
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 500;
  letter-spacing: -0.01em;
  word-break: break-all;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 28px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.to-top {
  color: var(--ink-2);
  transition: color 0.3s var(--ease);
}

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

.noscript {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 200;
  padding: 14px;
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 14px;
}

/* ============================================================================
 * 响应式
 * ========================================================================== */
@media (max-width: 1024px) {
  .nav-link { padding: 7px 9px; font-size: 13px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .hero-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .hero-portrait {
    justify-self: start;
    width: min(240px, 60vw);
  }
  .hero-portrait::before {
    inset: -12px;
    filter: blur(20px);
  }
  .dot-a, .dot-b { right: -16px; }
  .dot-c { right: -10px; }
}

@media (max-width: 860px) {
  .nav-links,
  .nav-cta { display: none; }
  .menu-btn { display: block; }

  .hero { padding: 108px 0 88px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
  .scroll-cue { display: none; }

  .strength-row { grid-template-columns: 44px 1fr; row-gap: 10px; }
  .strength-text { grid-column: 1 / -1; padding-left: 58px; }

  .exp-period { margin-left: 0; }
  .edu-period { padding-top: 0; }
  .timeline { padding-left: 22px; }
  .exp-dot { left: -22px; }
  .hero-intro { max-width: 100%; }

  .hl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
}

@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { padding: 20px 18px; }
  .fact-value { font-size: 15px; }
  .section { padding: 60px 0; }
  .hl-list { grid-template-columns: 1fr; }
  .project-grid, .skill-grid, .honor-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
  .strength-row { grid-template-columns: 1fr; }
  .strength-index { padding-top: 0; }
  .strength-text { padding-left: 0; }
  .rainbow-ripple { width: 130vmax; }
}

/* 触屏设备不做 hover 位移 */
@media (hover: none) {
  .chip-btn:hover,
  .nav-cta:hover,
  a.footer-link:hover { transform: none; }
}

/* ============================================================================
 * 降低动效
 * ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .hero-anim,
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  [data-reveal] :is(.bullets li, .honor-list li, .project-points li, .course) {
    opacity: 1 !important;
    transform: none !important;
  }

  .rainbow-stage { display: none; }
}

/* ============================================================================
 * 打印
 * ========================================================================== */
@media print {
  .nav, .progress, .menu-panel, .scroll-cue, .lightbox, .rainbow-stage {
    display: none !important;
  }
  body::before { display: none; }
  body { background: #fff; }
  [data-reveal], .hero-anim { opacity: 1 !important; transform: none !important; }
  [data-reveal] :is(.bullets li, .honor-list li, .project-points li, .course) {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero { min-height: auto; padding: 24px 0; }
  .hero-name {
    background: none;
    -webkit-text-fill-color: #000;
    color: #000;
    font-size: 40px;
  }
  .hero-name::before,
  .hero-name::after { display: none; }
  .section { padding: 24px 0; break-inside: avoid; }
  .footer { background: #fff; padding: 24px 0; }
  .footer-title { background: none; -webkit-text-fill-color: #000; }
}
