/* ===== CSS 变量 & 重置 ===== */
:root {
  --bg-primary: #050508;
  --bg-secondary: #0a0a10;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.08);

  --mech-primary: #f97316;
  --mech-glow: rgba(249,115,22,0.3);
  --mech-subtle: rgba(249,115,22,0.1);

  --elec-primary: #22d3ee;
  --elec-glow: rgba(34,211,238,0.3);
  --elec-subtle: rgba(34,211,238,0.1);

  --code-primary: #a855f7;
  --code-glow: rgba(168,85,247,0.3);
  --code-subtle: rgba(168,85,247,0.1);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;

  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.18);

  --font-body: 'Noto Sans SC', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-display: 'Orbitron', sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.5);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== 粒子画布 ===== */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ===== 容器 ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ===== 导航栏 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  background: rgba(5,5,8,0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(5,5,8,0.92);
  box-shadow: 0 2px 32px rgba(0,0,0,0.6);
}
.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: 0.8; }
.logo-bracket { color: var(--elec-primary); }
.logo-text {
  background: linear-gradient(135deg, #f97316, #22d3ee, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 0 6px;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}
.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--elec-primary);
  transition: width var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}
.nav-link.active::after { width: 20px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ===== 英雄区 ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 24px 0;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34,211,238,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 20s linear infinite;
}
@keyframes gridShift {
  from { transform: translateY(0); }
  to { transform: translateY(60px); }
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(34,211,238,0.1);
  border: 1px solid rgba(34,211,238,0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--elec-primary);
  margin-bottom: 28px;
  animation: fadeInDown 0.6s ease both;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--elec-primary);
  box-shadow: 0 0 8px var(--elec-primary);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.7s ease 0.1s both;
}
.title-line {
  display: block;
}
.gradient-text {
  background: linear-gradient(135deg, #f97316 0%, #22d3ee 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200%;
  animation: gradientShift 4s ease infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  animation: fadeInUp 0.7s ease 0.2s both;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
  animation: fadeInUp 0.7s ease 0.3s both;
}
.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.stat-plus { color: var(--elec-primary); font-weight: 700; font-size: 1.4rem; }
.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  animation: fadeInUp 0.7s ease 0.4s both;
}

/* ===== 按钮 ===== */
.btn {
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary {
  background: linear-gradient(135deg, #22d3ee, #a855f7);
  color: #fff;
  box-shadow: 0 4px 24px rgba(34,211,238,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(34,211,238,0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-hover);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--elec-primary);
  background: rgba(34,211,238,0.08);
}

/* ===== 英雄视觉 ===== */
.hero-visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 360px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.6;
}
.rotating-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
}
.ring-1 {
  width: 320px;
  height: 320px;
  border-color: rgba(34,211,238,0.3);
  animation: rotateRing 15s linear infinite;
}
.ring-2 {
  width: 240px;
  height: 240px;
  border-color: rgba(249,115,22,0.3);
  animation: rotateRing 10s linear infinite reverse;
}
.ring-3 {
  width: 160px;
  height: 160px;
  border-color: rgba(168,85,247,0.3);
  animation: rotateRing 7s linear infinite;
}
@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.hero-icon-center {
  font-size: 3rem;
  animation: floatIcon 3s ease-in-out infinite;
}
@keyframes floatIcon {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== 滚动指示器 ===== */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  animation: fadeIn 1s 1s both;
}
.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 2px;
  animation: scrollWheel 2s infinite;
}
@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ===== 分类卡区 ===== */
.categories {
  position: relative;
  z-index: 1;
  padding: 60px 24px;
}
.categories .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.category-card {
  position: relative;
  overflow: hidden;
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}
.category-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
}
.card-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  top: -60px;
  right: -60px;
  opacity: 0;
  transition: opacity var(--transition);
  filter: blur(60px);
}
.mech-card .card-glow { background: var(--mech-primary); }
.elec-card .card-glow { background: var(--elec-primary); }
.code-card .card-glow { background: var(--code-primary); }
.mech-card:hover { box-shadow: 0 8px 48px rgba(249,115,22,0.2); border-color: var(--mech-primary); }
.elec-card:hover { box-shadow: 0 8px 48px rgba(34,211,238,0.2); border-color: var(--elec-primary); }
.code-card:hover { box-shadow: 0 8px 48px rgba(168,85,247,0.2); border-color: var(--code-primary); }
.category-card:hover .card-glow { opacity: 0.25; }
.card-icon { font-size: 2.5rem; }
.category-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  font-family: var(--font-display);
}
.category-card p { color: var(--text-secondary); font-size: 0.9rem; }
.card-arrow {
  margin-top: auto;
  font-size: 1.4rem;
  transition: transform var(--transition);
}
.category-card:hover .card-arrow { transform: translateX(8px); }
.mech-card .card-arrow { color: var(--mech-primary); }
.elec-card .card-arrow { color: var(--elec-primary); }
.code-card .card-arrow { color: var(--code-primary); }

/* ===== 知识区通用 ===== */
.knowledge-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}
.section-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.06;
  filter: blur(2px);
}
.section-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg-primary) 0%, rgba(5,5,8,0.6) 50%, var(--bg-primary) 100%);
}
.elec-overlay {
  background: linear-gradient(to bottom, var(--bg-primary) 0%, rgba(0,15,20,0.7) 50%, var(--bg-primary) 100%);
}
.code-overlay {
  background: linear-gradient(to bottom, var(--bg-primary) 0%, rgba(15,5,25,0.7) 50%, var(--bg-primary) 100%);
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.mech-tag { border-color: var(--mech-primary); color: var(--mech-primary); background: var(--mech-subtle); }
.elec-tag { border-color: var(--elec-primary); color: var(--elec-primary); background: var(--elec-subtle); }
.code-tag { border-color: var(--code-primary); color: var(--code-primary); background: var(--code-subtle); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 12px;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ===== 文章卡片 ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all var(--transition);
  cursor: pointer;
  overflow: hidden;
}
.article-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.02), transparent);
  border-radius: inherit;
  pointer-events: none;
}
.article-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}
.article-card.featured {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
}
.article-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.article-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.article-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
}
.article-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  padding: 3px 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 40px;
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: all var(--transition);
}
.article-card:hover .tag {
  border-color: var(--border-hover);
  color: var(--text-secondary);
}
.article-footer { margin-top: auto; }
.difficulty {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.diff-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
}
.diff-bar span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--mech-primary), rgba(249,115,22,0.4));
}
.elec-bar span { background: linear-gradient(90deg, var(--elec-primary), rgba(34,211,238,0.4)); }
.code-bar span { background: linear-gradient(90deg, var(--code-primary), rgba(168,85,247,0.4)); }

/* ===== 代码展示区 ===== */
.code-showcase {
  margin-bottom: 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: #0d0d12;
}
.code-tabs {
  display: flex;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  gap: 4px;
}
.code-tab {
  padding: 12px 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  margin-bottom: -1px;
}
.code-tab:hover { color: var(--text-secondary); }
.code-tab.active {
  color: var(--code-primary);
  border-bottom-color: var(--code-primary);
}
.code-window { position: relative; }
.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.code-filename {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 8px;
}
.code-content {
  padding: 24px;
  overflow-x: auto;
  max-height: 320px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  color: #abb2bf;
  background: transparent;
  white-space: pre;
}

/* ===== 技能区 ===== */
.skills-section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  background: linear-gradient(to bottom, transparent, rgba(10,10,16,0.8), transparent);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--transition);
}
.skill-group:hover { border-color: var(--border-hover); }
.skill-group-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.skill-items { display: flex; flex-direction: column; gap: 18px; }
.skill-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.skill-name {
  font-size: 0.85rem;
  color: var(--text-secondary);
  min-width: 110px;
}
.skill-bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.07);
  border-radius: 6px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  border-radius: 6px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
}
.mech-fill { background: linear-gradient(90deg, var(--mech-primary), #fbbf24); }
.elec-fill { background: linear-gradient(90deg, var(--elec-primary), #06b6d4); }
.code-fill { background: linear-gradient(90deg, var(--code-primary), #ec4899); }
.skill-pct {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  min-width: 36px;
  text-align: right;
}

/* ===== 时间轴 ===== */
.timeline-section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border) 10%, var(--border) 90%, transparent);
  transform: translateX(-50%);
}
.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 40px);
  margin-bottom: 48px;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.timeline-item.right {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 40px);
  transform: translateX(30px);
}
.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  z-index: 2;
}
.mech-dot { background: var(--mech-primary); box-shadow: 0 0 12px var(--mech-glow); }
.elec-dot { background: var(--elec-primary); box-shadow: 0 0 12px var(--elec-glow); }
.code-dot { background: var(--code-primary); box-shadow: 0 0 12px var(--code-glow); }
.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  width: 100%;
  transition: all var(--transition);
}
.timeline-content:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}
.tl-year {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 8px;
}
.timeline-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.timeline-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== 关于区 ===== */
.about-section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}
.about-card {
  display: flex;
  align-items: center;
  gap: 60px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px;
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,0.08), transparent 70%);
  top: -100px;
  left: -100px;
  pointer-events: none;
}
.about-avatar {
  position: relative;
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--mech-primary), var(--elec-primary), var(--code-primary)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: rotateRing 8s linear infinite;
}
.avatar-inner {
  font-size: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.about-info { flex: 1; }
.about-info h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.about-desc {
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-size: 0.95rem;
}
.about-desc strong { color: var(--elec-primary); }
.about-links {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}
.about-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition);
}
.about-link:hover {
  color: var(--text-primary);
  border-color: var(--elec-primary);
  background: rgba(34,211,238,0.1);
  box-shadow: 0 4px 16px rgba(34,211,238,0.15);
}

/* ===== 页脚 ===== */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 8px;
}
.footer-nav {
  display: flex;
  gap: 24px;
}
.footer-nav a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--elec-primary); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
}
.footer-tech { font-family: var(--font-mono); color: var(--text-muted); }

/* ===== 动画 ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 滚动入场 */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .hero-visual { display: none; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .categories .container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 72px 0 0;
    background: rgba(5,5,8,0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-link { font-size: 1.1rem; }

  .hero-stats { gap: 20px; }
  .hero-actions { flex-direction: column; align-items: center; }

  .categories .container { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }

  .timeline::before { left: 24px; }
  .timeline-item { padding-right: 0; padding-left: 64px; justify-content: flex-start; }
  .timeline-item.right { padding-left: 64px; }
  .timeline-dot { left: 24px; }

  .about-card { flex-direction: column; padding: 36px 24px; gap: 32px; }

  .footer-content { flex-direction: column; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.4rem; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { width: 60px; height: 1px; }
}
