/* ============================================================
   黄首志 · 个人主页
   Design system: deep ink + warm gold, editorial executive feel
   ============================================================ */

:root {
  /* 底色 */
  --bg:          #08090C;
  --bg-alt:      #0B0D12;
  --surface:     #101318;
  --surface-2:   #14181F;

  /* 文本 */
  --text:        #EFEDE8;
  --text-soft:   #B4B4B0;
  --muted:       #7C7F88;

  /* 线条 */
  --line:        rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* 强调色 */
  --gold:        #E8B464;
  --gold-soft:   #F3CE96;
  --gold-deep:   #B8843C;
  --blue:        #6FA8FF;
  --green:       #8BD6A8;

  /* 尺寸 */
  --wrap:        1180px;
  --radius:      20px;
  --radius-sm:   12px;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'HarmonyOS Sans SC',
               'Microsoft YaHei', 'Hiragino Sans GB', 'Noto Sans SC', 'Source Han Sans SC', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas,
               'Cascadia Mono', 'DejaVu Sans Mono', monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* 细微噪点，提升质感 */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol, dl, dd, dt { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--gold); color: #10100C; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0A0C10; }
::-webkit-scrollbar-thumb {
  background: #262B33;
  border-radius: 10px;
  border: 2px solid #0A0C10;
}
::-webkit-scrollbar-thumb:hover { background: #3A4049; }

/* ---------- 通用 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 28px;
}

.mono { font-family: var(--font-mono); }

.dot-accent { color: var(--gold); }

/* 滚动进度 */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 120;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft));
  box-shadow: 0 0 12px rgba(232, 180, 100, 0.6);
  transition: width 0.1s linear;
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(8, 9, 12, 0.78);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}

.nav-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(232,180,100,0.22), rgba(232,180,100,0.04));
  border: 1px solid rgba(232, 180, 100, 0.32);
  color: var(--gold);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.brand-text em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--muted);
  font-weight: 400;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative;
  padding: 8px 14px;
  font-size: 13.5px;
  color: var(--text-soft);
  border-radius: 8px;
  transition: color 0.25s, background 0.25s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--gold); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s,
              border-color 0.3s, box-shadow 0.3s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #16120A;
  font-weight: 600;
  box-shadow: 0 8px 26px -10px rgba(232, 180, 100, 0.55);
}
.btn-primary:hover {
  box-shadow: 0 14px 34px -10px rgba(232, 180, 100, 0.7);
}

.btn-outline {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-outline:hover {
  border-color: rgba(232, 180, 100, 0.55);
  color: var(--gold-soft);
  background: rgba(232, 180, 100, 0.06);
}

.btn-ghost {
  color: var(--text-soft);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--gold); background: rgba(255,255,255,0.04); }

.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 15px 28px; font-size: 15px; }

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 18px; height: 1.5px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 130px 0 60px;
  overflow: hidden;
}

.hero-aura {
  position: absolute;
  top: -22%;
  right: -12%;
  width: 900px; height: 900px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(232, 180, 100, 0.16), transparent 58%),
    radial-gradient(circle at 30% 70%, rgba(111, 168, 255, 0.10), transparent 55%);
  filter: blur(30px);
  animation: auraFloat 18s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes auraFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-50px, 60px, 0) scale(1.08); }
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 78%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.68fr);
  gap: 72px;
  align-items: center;
}

/* grid 子项防溢出 */
.hero-copy,
.about-main,
.tl-body,
.project,
.cap-card { min-width: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 12.5px;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  margin-bottom: 26px;
}

.pulse-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #5FD68A;
  box-shadow: 0 0 0 0 rgba(95, 214, 138, 0.7);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(95, 214, 138, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(95, 214, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(95, 214, 138, 0); }
}

.hero-name {
  position: relative;
  font-size: clamp(56px, 9vw, 104px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.02;
  margin-bottom: 18px;
  background: linear-gradient(170deg, #FFFFFF 8%, #F6E6CE 45%, #C9A472 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-name-en {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(10px, 1.1vw, 12px);
  font-weight: 400;
  letter-spacing: 0.42em;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
  margin-top: 16px;
}

.hero-role {
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--text-soft);
  letter-spacing: 0.06em;
  margin-bottom: 22px;
}
.hero-role .sep {
  margin: 0 12px;
  color: var(--gold-deep);
}

.hero-lead {
  max-width: 620px;
  font-size: 16px;
  line-height: 1.95;
  color: var(--text-soft);
  margin-bottom: 34px;
}
.hero-lead strong { color: var(--text); font-weight: 500; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  max-width: 620px;
}
.hero-stats > div {
  position: relative;
  padding-right: 18px;
}
.hero-stats > div + div { padding-left: 22px; }
.hero-stats > div + div::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 6px;
  width: 1px;
  background: var(--line);
}
.hero-stats dt {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
}
.hero-stats dt i {
  font-style: normal;
  font-size: 13px;
  color: var(--gold);
  margin-left: 3px;
}
.hero-stats dd {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ---------- 右侧影响力卡 ---------- */
.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.impact-card {
  position: relative;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(150deg, rgba(255,255,255,0.055), rgba(255,255,255,0.012) 55%),
    var(--surface);
  backdrop-filter: blur(12px);
  transform-style: preserve-3d;
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.35s var(--ease);
  will-change: transform;
}
.impact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(232,180,100,0.5), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.impact-card:hover {
  border-color: rgba(232, 180, 100, 0.28);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(232,180,100,0.08);
}
.impact-card:hover::before { opacity: 1; }

.impact-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.impact-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--gold);
  padding: 3px 8px;
  border: 1px solid rgba(232, 180, 100, 0.28);
  border-radius: 5px;
  background: rgba(232, 180, 100, 0.07);
}
.impact-tag--live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7FE3A4;
  border-color: rgba(95, 214, 138, 0.28);
  background: rgba(95, 214, 138, 0.07);
}
.impact-tag--live .pulse-dot { width: 5px; height: 5px; }

.impact-card h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}
.impact-num {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--gold-soft);
  margin: 6px 0 10px;
}
.impact-num em {
  font-style: normal;
  font-size: 20px;
  color: var(--gold-deep);
  margin-left: 2px;
}
.impact-desc {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.impact-card--now {
  background:
    linear-gradient(150deg, rgba(95, 214, 138, 0.10), rgba(255,255,255,0.012) 60%),
    var(--surface);
}
.impact-card--now h3 { margin-top: 10px; font-size: 15.5px; }

/* hero foot */
.hero-foot {
  position: relative;
  z-index: 2;
  margin-top: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.28em;
}
.scroll-line {
  width: 70px; height: 1px;
  background: var(--line-strong);
  overflow: hidden;
  position: relative;
}
.scroll-line i {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-100%);
  animation: scrollHint 2.6s var(--ease) infinite;
}
@keyframes scrollHint {
  0%   { transform: translateX(-100%); }
  55%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ---------- 跑马灯 ---------- */
.marquee {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
  overflow: hidden;
  padding: 16px 0;
}
.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }

.marquee-track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  animation: marquee 42s linear infinite;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.marquee-track span:nth-child(even) { color: var(--gold-deep); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SECTION 通用
   ============================================================ */
.section {
  position: relative;
  padding: 120px 0;
  scroll-margin-top: 84px;
}
.section--alt {
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sec-head {
  max-width: 760px;
  margin-bottom: 64px;
}
.sec-index {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 18px;
  position: relative;
  padding-left: 34px;
}
.sec-index::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 24px; height: 1px;
  background: var(--gold-deep);
}
.sec-head h2 {
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.24;
  margin-bottom: 18px;
}
.sec-sub {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.9;
  max-width: 620px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
  gap: 64px;
  align-items: start;
}

.about-p {
  font-size: 15.5px;
  line-height: 2;
  color: var(--text-soft);
  margin-bottom: 20px;
}
.about-p:first-of-type::first-letter {
  float: left;
  font-size: 52px;
  line-height: 0.86;
  font-weight: 600;
  margin: 6px 12px 0 0;
  color: var(--gold);
}

.about-quote {
  position: relative;
  margin: 34px 0;
  padding: 24px 28px 24px 30px;
  border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, rgba(232,180,100,0.07), transparent 70%);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.about-quote p {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--text);
  letter-spacing: 0.01em;
}
.quote-mark {
  position: absolute;
  left: 12px; top: -6px;
  font-size: 50px;
  color: rgba(232, 180, 100, 0.22);
  font-family: Georgia, serif;
}

.strength-list { margin-top: 8px; }
.strength-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.07);
  font-size: 14.5px;
  color: var(--text-soft);
  transition: color 0.3s, padding-left 0.35s var(--ease);
}
.strength-list li:hover {
  color: var(--text);
  padding-left: 6px;
}
.strength-list .num {
  font-size: 11px;
  color: var(--gold-deep);
  letter-spacing: 0.1em;
  flex: none;
  width: 22px;
}

/* 侧栏卡片 */
.about-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
}
.info-card {
  padding: 26px 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,0.04), transparent 60%), var(--bg-alt);
}
.info-card h4 {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.kv li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
  font-size: 13.5px;
}
.kv span { color: var(--muted); flex: none; }
.kv b { font-weight: 500; color: var(--text); text-align: right; }

.line-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
}
.line-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.line-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c, var(--gold));
  margin-top: 9px;
  flex: none;
  box-shadow: 0 0 12px var(--c, var(--gold));
}
.line-list b { font-size: 14px; font-weight: 500; display: block; }
.line-list p { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ============================================================
   CAPABILITY
   ============================================================ */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cap-card {
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.4s, background 0.4s;
}
.cap-card::after {
  content: '';
  position: absolute;
  top: -40%; right: -30%;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,180,100,0.14), transparent 65%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.cap-card:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 180, 100, 0.25);
  background: var(--surface-2);
}
.cap-card:hover::after { opacity: 1; }

.cap-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--gold);
  margin-bottom: 20px;
  transition: border-color 0.4s, color 0.4s;
}
.cap-icon svg { width: 21px; height: 21px; }
.cap-card:hover .cap-icon {
  border-color: rgba(232, 180, 100, 0.4);
  color: var(--gold-soft);
}
.cap-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0;
}
.cap-card p {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
  min-height: 48px;
}

/* tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}
.tags li {
  font-size: 11.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-soft);
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.cap-card:hover .tags li,
.project:hover .tags li {
  border-color: rgba(232, 180, 100, 0.2);
  color: var(--gold-soft);
}
.tags--sm li { font-size: 11px; padding: 3px 9px; }

/* ---------- AI 实践带 ---------- */
.ai-band {
  position: relative;
  margin-top: 18px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 40px;
  padding: 36px 36px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 0% 0%, rgba(199, 155, 255, 0.10), transparent 45%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.035), transparent 55%),
    var(--surface);
  overflow: hidden;
}
.ai-band-head h3 {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.5;
  margin: 14px 0 12px;
}
.ai-band-label {
  font-size: 10px;
  letter-spacing: 0.26em;
  color: #C79BFF;
}
.ai-band-head p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.ai-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 28px;
}
.ai-list li {
  min-width: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  transition: border-color 0.35s;
}
.ai-list li:hover { border-top-color: rgba(199, 155, 255, 0.55); }
.ai-num {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: #8A6BB5;
}
.ai-list b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin: 6px 0;
  letter-spacing: 0;
}
.ai-list p {
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 178px;
  top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-strong) 6%, var(--line-strong) 94%, transparent);
}

.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 56px;
  padding: 30px 0;
}
.tl-item + .tl-item { border-top: 1px solid rgba(255, 255, 255, 0.05); }

.tl-year {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: right;
  padding-top: 4px;
  padding-right: 30px;
  transition: color 0.4s;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: 174px;
  top: 37px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--line-strong);
  transition: border-color 0.4s, box-shadow 0.4s, background 0.4s;
}
.tl-item:hover::before {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(232, 180, 100, 0.12);
}
.tl-item:hover .tl-year { color: var(--gold); }

.tl-body {
  padding: 0 0 0 4px;
}
.tl-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
}
.tl-head h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0;
}
.tl-co {
  font-size: 13px;
  color: var(--gold-deep);
  letter-spacing: 0.02em;
}
.tl-desc {
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--text-soft);
  max-width: 780px;
}

.tl-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed rgba(255,255,255,0.07);
}
.tl-metrics div { display: flex; flex-direction: column; gap: 2px; }
.tl-metrics b {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 500;
  color: var(--gold-soft);
  letter-spacing: -0.02em;
}
.tl-metrics b span { font-size: 13px; color: var(--gold-deep); margin-left: 2px; }
.tl-metrics em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

/* ============================================================
   PROJECTS
   ============================================================ */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-soft);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.filter-btn:hover {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255,255,255,0.03);
}
.filter-btn.is-active {
  background: rgba(232, 180, 100, 0.12);
  border-color: rgba(232, 180, 100, 0.42);
  color: var(--gold-soft);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.project {
  position: relative;
  padding: 30px 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255,255,255,0.032), transparent 55%), var(--surface);
  transition: transform 0.45s var(--ease), border-color 0.4s, box-shadow 0.4s, opacity 0.4s;
  overflow: hidden;
}
.project::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,180,100,0.5), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.project:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 180, 100, 0.24);
  box-shadow: 0 30px 60px -34px rgba(0,0,0,0.95);
}
.project:hover::before { opacity: 1; }

.project--feature { grid-column: span 2; }

.project.is-hidden {
  display: none;
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  min-height: 22px;
}
.project-badge {
  font-size: 10.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--gold);
  padding: 3px 9px;
  border-radius: 5px;
  border: 1px solid rgba(232, 180, 100, 0.3);
  background: rgba(232, 180, 100, 0.08);
}
.project-period {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-left: auto;
}

.project h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  line-height: 1.45;
}
.project--feature h3 { font-size: 24px; }

.project-role {
  font-size: 12px;
  color: var(--gold-deep);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.project-desc {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-soft);
}

.project-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.project-metrics li {
  flex: 1 1 150px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.022);
}
.project-metrics b {
  display: block;
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 500;
  color: var(--gold-soft);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.project-metrics span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.55;
}

.filter-empty {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 40px 0;
}

/* ============================================================
   HONOR
   ============================================================ */
.honor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.honor {
  position: relative;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.45s var(--ease), border-color 0.4s, background 0.4s;
  overflow: hidden;
}
.honor::after {
  content: '';
  position: absolute;
  right: -50px; bottom: -60px;
  width: 140px; height: 140px;
  border-radius: 50%;
  border: 1px solid rgba(232, 180, 100, 0.1);
  transition: transform 0.6s var(--ease), border-color 0.4s;
}
.honor:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 180, 100, 0.28);
  background: var(--surface-2);
}
.honor:hover::after {
  transform: scale(1.5);
  border-color: rgba(232, 180, 100, 0.22);
}

.honor--big {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 110px minmax(0, 0.9fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 26px;
  padding: 34px 32px;
  background:
    linear-gradient(100deg, rgba(232, 180, 100, 0.10), transparent 45%),
    var(--surface);
}
.honor-year {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: -0.01em;
}
.honor h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0;
}
.honor--big h3 { font-size: 24px; }
.honor p {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
  margin-top: 8px;
}
.honor--big p { margin-top: 0; font-size: 14px; color: var(--text-soft); }

/* 攻坚故事卡：略强一点的暖色调，和前两张“官方名单”区分开 */
.honor--special {
  border-color: rgba(232, 180, 100, 0.2);
  background:
    linear-gradient(100deg, rgba(232, 180, 100, 0.15), rgba(232, 180, 100, 0.03) 42%, transparent 62%),
    var(--surface);
}
.honor--special .honor-year { color: var(--gold-soft); }
.honor--big p strong { color: var(--gold-soft); font-weight: 600; }

/* 教育 */
.edu-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.edu-card {
  padding: 28px 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.015);
}
.edu-label {
  font-size: 10px;
  letter-spacing: 0.26em;
  color: var(--muted);
  display: block;
  margin-bottom: 18px;
}
.edu-card li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
}
.edu-card li:last-child { border-bottom: 0; padding-bottom: 0; }
.edu-card b { font-size: 15.5px; font-weight: 500; }
.edu-card span { font-size: 13px; color: var(--muted); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  position: relative;
  padding: 140px 0 130px;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  overflow: hidden;
}
.contact-aura {
  position: absolute;
  left: 50%; bottom: -45%;
  width: 1100px; height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(232, 180, 100, 0.13), transparent 62%);
  filter: blur(40px);
  pointer-events: none;
}
.contact-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}
.contact .sec-index { padding-left: 0; }
.contact .sec-index::before { display: none; }
.contact h2 {
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.contact-lead {
  font-size: 16px;
  line-height: 1.95;
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 auto 40px;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 44px;
}
.contact-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.contact-meta span { display: inline-flex; align-items: center; gap: 7px; }
.meta-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.contact-meta a {
  color: var(--gold-soft);
  border-bottom: 1px solid rgba(232, 180, 100, 0.3);
  padding-bottom: 1px;
  transition: color 0.3s, border-color 0.3s;
}
.contact-meta a:hover { color: var(--gold); border-color: var(--gold); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12.5px;
  color: var(--muted);
}
/* 页脚座右铭 */
.footer-note {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  font-style: italic;
  color: var(--gold);
  opacity: 0.72;
  transition: opacity 0.4s var(--ease);
}
.footer-note:hover { opacity: 1; }
.to-top {
  color: var(--muted);
  transition: color 0.3s;
}
.to-top:hover { color: var(--gold); }

/* 简历下载提示 */
.cv-toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 300;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: calc(100% - 40px);
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(232, 180, 100, 0.32);
  background: rgba(16, 19, 24, 0.95);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 14px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.cv-toast.is-on {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.cv-toast-alt {
  pointer-events: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold);
  font-family: inherit;
  font-size: 12.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.3s;
}
.cv-toast-alt:hover { color: var(--gold-soft); }
.cv-toast-alt[hidden] { display: none; }

/* ============================================================
   滚动进场动画
   ============================================================ */
/* 首屏使用纯 CSS 入场动画（不依赖 JS 定时器，避免首帧空白） */
.hero .reveal,
.hero-panel .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}
.hero-copy > *,
.hero-panel > * {
  animation: heroIn 0.95s var(--ease) backwards;
}
.hero-copy > *:nth-child(1) { animation-delay: 0.06s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.14s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.22s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.30s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.38s; }
.hero-copy > *:nth-child(6) { animation-delay: 0.46s; }
.hero-panel > *:nth-child(1) { animation-delay: 0.34s; }
.hero-panel > *:nth-child(2) { animation-delay: 0.44s; }
.hero-panel > *:nth-child(3) { animation-delay: 0.54s; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { --d: 1; }
.reveal[data-delay="2"] { --d: 2; }
.reveal[data-delay="3"] { --d: 3; }
.reveal[data-delay="4"] { --d: 4; }
.reveal[data-delay="5"] { --d: 5; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 54px; }
  .hero-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .impact-num { font-size: 32px; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-side { position: static; grid-template-columns: 1fr 1fr; display: grid; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-band { grid-template-columns: 1fr; gap: 26px; padding: 30px 26px; }
  .ai-list { grid-template-columns: repeat(3, 1fr); gap: 20px 24px; }
  .honor-grid { grid-template-columns: repeat(2, 1fr); }
  .honor--big { grid-column: span 2; grid-template-columns: 90px 1fr; }
  .honor--big p { grid-column: 2; margin-top: 8px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 860px) {
  .section { padding: 86px 0; }
  .wrap { padding-inline: 20px; }
  .nav-inner { padding: 14px 20px; }

  .hero { padding-top: 110px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
  .hero-stats > div:nth-child(3) { padding-left: 0; }
  .hero-stats > div:nth-child(3)::before { display: none; }

  .timeline::before { left: 0; }
  .tl-item { grid-template-columns: 1fr; gap: 12px; padding-left: 26px; }
  .tl-item::before { left: -4px; top: 34px; }
  .tl-year { text-align: left; padding-top: 0; padding-right: 0; }

  .project-grid { grid-template-columns: 1fr; }
  .project--feature { grid-column: span 1; }
  .project--feature h3 { font-size: 21px; }

  .honor-grid { grid-template-columns: 1fr; }
  .honor--big { grid-column: span 1; grid-template-columns: 1fr; gap: 10px; }
  .honor--big p { grid-column: 1; }
  .honor--big h3 { font-size: 21px; }

  .edu-row { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: 1fr; }
  .cap-card p { min-height: 0; }
  .ai-list { grid-template-columns: repeat(2, 1fr); }

  .nav-actions .btn-ghost { display: none; }

  .footer-inner { justify-content: center; text-align: center; }
}

@media (max-width: 560px) {
  .hero-name { font-size: 52px; letter-spacing: 0.04em; }
  .hero-role { font-size: 15px; }
  .hero-role .sep { margin: 0 8px; }
  .hero-actions .btn { width: 100%; }
  .hero-panel { grid-template-columns: 1fr; }
  .about-side { grid-template-columns: 1fr; }
  .sec-head h2 { font-size: 28px; }
  .contact h2 { font-size: 28px; }
  .contact-actions .btn { width: 100%; }
  .contact-meta { gap: 14px; font-size: 12px; }
  .project, .cap-card, .honor { padding: 24px 20px; }
  .project-metrics li { flex: 1 1 100%; }
  .ai-list { grid-template-columns: 1fr; gap: 16px; }
  .ai-band { padding: 24px 20px; }
  .ai-band-head h3 { font-size: 18px; }
}

/* 移动端下拉菜单 */
@media (max-width: 1080px) {
  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 20px 22px;
    background: rgba(10, 11, 15, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.is-open a {
    padding: 13px 10px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-links.is-open a::after { display: 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;
  }
  .reveal { opacity: 1; transform: none; }
}
