/* ========================================
   CSS 变量 & 全局
======================================== */
:root {
  --bg: #09090f;
  --bg-card: #12121c;
  --bg-card2: #1a1a28;
  --border: rgba(255,255,255,0.07);
  --border-glow: rgba(99,102,241,0.35);
  --accent: #6366f1;
  --accent2: #818cf8;
  --accent-grad: linear-gradient(135deg, #6366f1, #a78bfa);
  --text: #e8e8f0;
  --text-muted: #8888a8;
  --text-dim: #55556a;
  --success: #10b981;
  --gold: #f59e0b;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 20px 60px rgba(0,0,0,0.5);
  --glow: 0 0 30px rgba(99,102,241,0.2);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, 'PingFang SC', '微软雅黑', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

::selection { background: rgba(99,102,241,0.3); color: var(--text); }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   NAV
======================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(9,9,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 18px;
  font-weight: 700;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.1em;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--text); }

/* ========================================
   HERO
======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 80px 24px 100px;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(99,102,241,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(167,139,250,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.06) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.04) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeUp 0.8s ease both;
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 100px;
  font-size: 13px;
  color: var(--success);
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}
.hero-name {
  font-size: clamp(64px, 12vw, 100px);
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 40%, rgba(99,102,241,0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.hero-title {
  font-size: clamp(18px, 3vw, 24px);
  color: var(--accent2);
  font-weight: 500;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.8;
}
.hero-sub strong { color: var(--text); }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.tag {
  padding: 6px 14px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 100px;
  font-size: 13px;
  color: var(--accent2);
  transition: var(--transition);
}
.tag:hover {
  background: rgba(99,102,241,0.2);
  border-color: var(--accent);
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.btn-primary {
  padding: 12px 32px;
  background: var(--accent-grad);
  color: #fff;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(99,102,241,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(99,102,241,0.45);
}
.btn-ghost {
  padding: 12px 32px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.1em;
  animation: fadeUp 1s 0.5s ease both;
}
.scroll-arrow {
  width: 1.5px;
  height: 32px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
  animation: scrollDown 1.5s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { opacity: 1; transform: scaleY(1) translateY(0); }
  100% { opacity: 0; transform: scaleY(0.5) translateY(12px); }
}

/* ========================================
   SECTION COMMON
======================================== */
.section {
  padding: 100px 0;
}
.section-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 48px;
  color: var(--text);
}
.gradient-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   ABOUT
======================================== */
.about-section { border-top: 1px solid var(--border); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-text p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 16px;
  line-height: 1.9;
}
.about-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: var(--transition);
}
.info-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}
.info-icon { font-size: 22px; margin-bottom: 8px; }
.info-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.info-value { font-size: 14px; font-weight: 600; color: var(--text); }

/* ========================================
   METRICS
======================================== */
.metrics-section {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99,102,241,0.08) 0%, transparent 60%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  transition: var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.metric-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent-grad);
  opacity: 0;
  transition: var(--transition);
}
.metric-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow);
  transform: translateY(-4px);
}
.metric-card:hover::before { opacity: 1; }
.metric-number {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.metric-unit {
  font-size: 16px;
  color: var(--accent2);
  font-weight: 500;
  margin: 4px 0 12px;
}
.metric-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========================================
   EXPERIENCE TIMELINE
======================================== */
.exp-section { border-top: 1px solid var(--border); }
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 0;
  width: 1.5px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
.timeline-item {
  position: relative;
  margin-bottom: 48px;
}
.timeline-dot {
  position: absolute;
  left: -28px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-grad);
  box-shadow: 0 0 12px rgba(99,102,241,0.6);
  flex-shrink: 0;
}
.timeline-dot--small {
  width: 8px;
  height: 8px;
  left: -25px;
  top: 6px;
  background: var(--bg-card2);
  border: 1.5px solid var(--text-dim);
  box-shadow: none;
}
.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}
.timeline-content:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow);
}
.timeline-content--early {
  background: transparent;
  border: 1px solid var(--border);
  padding: 20px 24px;
}
.exp-header {
  margin-bottom: 12px;
}
.exp-company-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.exp-company {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.exp-badge {
  padding: 2px 8px;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 100px;
  font-size: 11px;
  color: var(--success);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.exp-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.exp-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent2);
}
.exp-period {
  font-size: 13px;
  color: var(--text-dim);
}
.exp-summary {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}
.exp-summary strong { color: var(--text); }
.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.exp-bullets li {
  font-size: 13.5px;
  color: var(--text-muted);
  padding-left: 12px;
  border-left: 2px solid rgba(99,102,241,0.3);
  line-height: 1.7;
}
.exp-bullets li strong { color: var(--text); }
.bullet-tag {
  display: inline-block;
  padding: 1px 8px;
  background: rgba(99,102,241,0.12);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent2);
  margin-right: 6px;
  vertical-align: middle;
  letter-spacing: 0.03em;
}
.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.exp-tags span {
  padding: 3px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-dim);
}

/* 子项目 */
.project-block {
  margin-bottom: 16px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.project-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}
.project-period {
  color: var(--text-dim);
  font-weight: 400;
  font-size: 12px;
  margin-left: 8px;
}

/* 早期经历 */
.early-jobs { display: flex; gap: 24px; flex-wrap: wrap; }
.early-job {
  flex: 1;
  min-width: 200px;
}
.early-job strong { color: var(--text); font-size: 14px; }
.early-job span { color: var(--text-dim); font-size: 12px; }
.early-job p { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }

/* ========================================
   EDUCATION
======================================== */
.edu-section { border-top: 1px solid var(--border); }
.edu-card {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 600px;
  transition: var(--transition);
}
.edu-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow);
}
.edu-icon { font-size: 44px; flex-shrink: 0; }
.edu-school { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.edu-degree { font-size: 14px; color: var(--accent2); font-weight: 500; margin-bottom: 4px; }
.edu-period { font-size: 13px; color: var(--text-dim); }
.edu-badge-wrap { margin-left: auto; text-align: right; flex-shrink: 0; }
.edu-honor {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 100px;
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 6px;
}
.edu-rank { font-size: 13px; color: var(--text-muted); }

/* ========================================
   CONTACT
======================================== */
.contact-section { border-top: 1px solid var(--border); }
.contact-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
  line-height: 1.8;
}
.contact-cards {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.contact-card {
  flex: 1;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  cursor: pointer;
}
.contact-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow);
  transform: translateY(-4px);
}
.contact-icon { font-size: 28px; margin-bottom: 10px; }
.contact-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.contact-value { font-size: 14px; font-weight: 600; color: var(--text); }

/* ========================================
   FOOTER
======================================== */
.footer {
  padding: 32px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13px;
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   滚动进度条
======================================== */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #a78bfa);
  z-index: 9998;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(99,102,241,0.5);
}

/* ========================================
   语言切换按钮
======================================== */
#lang-toggle {
  padding: 5px 14px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
#lang-toggle:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* ========================================
   Footer 统计
======================================== */
.footer-stats {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-dim);
}

/* ========================================
   RESPONSIVE — 平板 ≤ 768px
======================================== */
@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav-links { display: none; }
  .nav-inner { padding: 0 16px; }
  .hero { padding: 80px 16px 80px; }
  .hero-tags { gap: 8px; }
  .tag { font-size: 12px; padding: 5px 12px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-info-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .metric-card { padding: 24px 16px; }
  .metric-number { font-size: 36px; }
  .edu-card { flex-direction: column; text-align: center; gap: 16px; padding: 24px 20px; }
  .edu-badge-wrap { margin-left: 0; text-align: center; }
  .contact-cards { flex-direction: column; }
  .early-jobs { flex-direction: column; gap: 16px; }
  .timeline { padding-left: 24px; }
  .timeline-content { padding: 20px 16px; }
  .exp-meta { flex-wrap: wrap; gap: 6px; }
}

/* ========================================
   RESPONSIVE — 手机 ≤ 480px
======================================== */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-name { font-size: 52px; letter-spacing: 0.08em; }
  .hero-title { font-size: 16px; }
  .hero-sub { font-size: 14px; }
  .hero-cta { flex-direction: column; align-items: center; gap: 12px; }
  .btn-primary, .btn-ghost { width: 200px; text-align: center; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-number { font-size: 40px; }
  .section-title { font-size: 26px; }
  .timeline { padding-left: 20px; }
  .timeline-content { padding: 16px 14px; }
  .exp-company { font-size: 15px; }
  .project-block { padding: 12px; }
}

/* ========================================
   RESPONSIVE — 小屏手机 ≤ 375px
======================================== */
@media (max-width: 375px) {
  .hero-name { font-size: 44px; }
  .about-info-grid { grid-template-columns: 1fr; }
  .nav-inner { height: 56px; }
}
