/* ============================
   郑哲宁 Portfolio · Styles
   ============================ */

/* ---------- 变量 & 主题 ---------- */
:root {
  /* 字体变量 */
  --font-sans: "Noto Sans SC", "Inter", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Noto Serif SC", "ZCOOL XiaoWei", "Songti SC", "SimSun", serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;

  /* Light 主题 */
  --bg: #fafbff;
  --bg-alt: #f1f3fa;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-card-solid: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --text: #1a1d2e;
  --text-soft: #4a5168;
  --text-muted: #8b90a7;

  --brand-1: #7c3aed;      /* 紫色 */
  --brand-2: #2563eb;      /* 蓝 */
  --brand-3: #ec4899;      /* 粉 */
  --brand-4: #06b6d4;      /* 青 */
  --brand-grad: linear-gradient(135deg, #7c3aed 0%, #2563eb 50%, #06b6d4 100%);
  --brand-grad-warm: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);

  --shadow-sm: 0 2px 8px rgba(20, 25, 60, 0.06);
  --shadow: 0 8px 30px rgba(20, 25, 60, 0.08);
  --shadow-lg: 0 20px 60px rgba(20, 25, 60, 0.12);

  --glass: backdrop-filter(blur(14px));
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --nav-h: 68px;
  --max-w: 1200px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="dark"] {
  --bg: #0a0d1a;
  --bg-alt: #0f1326;
  --bg-card: rgba(24, 28, 48, 0.65);
  --bg-card-solid: #181c30;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1fb;
  --text-soft: #c0c6de;
  --text-muted: #7f86a3;

  --brand-1: #a78bfa;
  --brand-2: #60a5fa;
  --brand-3: #f472b6;
  --brand-4: #22d3ee;
  --brand-grad: linear-gradient(135deg, #a78bfa 0%, #60a5fa 50%, #22d3ee 100%);
  --brand-grad-warm: linear-gradient(135deg, #f472b6 0%, #fbbf24 100%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.78;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ---------- 背景系统 ---------- */
/* 噪点颗粒质感：消除渐变断层，增加胶片感 */
#bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.03;
}

html[data-theme="dark"] #bg-noise {
  opacity: 0.05;
}

/* 鼠标跟随柔光：聚光灯氛围 */
#mouse-glow {
  position: fixed;
  top: 0; left: 0;
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.09) 0%,
    rgba(37, 99, 235, 0.05) 35%,
    transparent 70%
  );
  will-change: transform;
  opacity: 0;
  transition: opacity 0.8s ease;
}

#mouse-glow.active {
  opacity: 1;
}

html[data-theme="dark"] #mouse-glow {
  background: radial-gradient(
    circle,
    rgba(167, 139, 250, 0.13) 0%,
    rgba(34, 211, 238, 0.07) 35%,
    transparent 70%
  );
}

/* 触屏设备隐藏柔光 */
@media (hover: none) {
  #mouse-glow { display: none; }
}

/* 网点纹理 */
#bg-dots {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(
    circle,
    rgba(100, 120, 200, 0.12) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

html[data-theme="dark"] #bg-dots {
  background-image: radial-gradient(
    circle,
    rgba(160, 180, 255, 0.1) 1px,
    transparent 1px
  );
  opacity: 0.5;
}

/* 极光色块 */
.aurora {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  will-change: transform;
}

.aurora-1 {
  width: 520px;
  height: 520px;
  top: -120px;
  left: -100px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.28) 0%, transparent 70%);
  animation: aurora-drift-1 22s ease-in-out infinite;
}

.aurora-2 {
  width: 480px;
  height: 480px;
  top: 10%;
  right: -80px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, transparent 70%);
  animation: aurora-drift-2 26s ease-in-out infinite;
}

.aurora-3 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: 30%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, transparent 70%);
  animation: aurora-drift-3 20s ease-in-out infinite;
}

.aurora-4 {
  width: 360px;
  height: 360px;
  bottom: 10%;
  right: 20%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
  animation: aurora-drift-4 24s ease-in-out infinite;
}

html[data-theme="dark"] .aurora-1 {
  background: radial-gradient(circle, rgba(167, 139, 250, 0.32) 0%, transparent 70%);
}
html[data-theme="dark"] .aurora-2 {
  background: radial-gradient(circle, rgba(96, 165, 250, 0.28) 0%, transparent 70%);
}
html[data-theme="dark"] .aurora-3 {
  background: radial-gradient(circle, rgba(244, 114, 182, 0.24) 0%, transparent 70%);
}
html[data-theme="dark"] .aurora-4 {
  background: radial-gradient(circle, rgba(34, 211, 238, 0.24) 0%, transparent 70%);
}

@keyframes aurora-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, 40px) scale(1.05); }
  66% { transform: translate(-30px, 60px) scale(0.95); }
}

@keyframes aurora-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-80px, 30px) scale(0.92); }
  66% { transform: translate(40px, -50px) scale(1.08); }
}

@keyframes aurora-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(70px, -60px) scale(1.1); }
}

@keyframes aurora-drift-4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, 40px) scale(0.9); }
}

/* 响应式缩小极光 */
@media (max-width: 768px) {
  .aurora-1, .aurora-2, .aurora-3, .aurora-4 {
    width: 280px;
    height: 280px;
    filter: blur(60px);
  }
}

/* 减少动画：尊重用户偏好 */
@media (prefers-reduced-motion: reduce) {
  .aurora-1, .aurora-2, .aurora-3, .aurora-4 {
    animation: none;
  }
  #particles,
  #mouse-glow,
  #bg-noise {
    display: none;
  }
}

/* 装饰性背景 */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* ---------- 通用组件 ---------- */
.section {
  position: relative;
  z-index: 1;
  padding: 100px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.section.alt {
  max-width: 100%;
  background: var(--bg-alt);
}
.section.alt > * {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.section-head {
  text-align: center;
  margin-bottom: 60px;
}

.section-kicker {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--brand-2);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: 0;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.section-sub {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 15px;
}

.gradient-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hl {
  font-family: var(--font-serif);
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

/* ---------- 导航栏 ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: all 0.3s var(--ease);
}

.navbar.scrolled {
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: var(--max-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
}

.logo-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--brand-grad);
  color: white;
  border-radius: 10px;
  font-size: 13px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.logo-text {
  font-family: var(--font-serif);
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-link {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s var(--ease);
}

.nav-link:hover {
  color: var(--text);
  background: var(--bg-card);
}

.nav-link.active {
  color: var(--brand-2);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(37, 99, 235, 0.1));
}

.nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.theme-toggle, .menu-toggle {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  color: var(--text-soft);
  transition: all 0.25s var(--ease);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.theme-toggle:hover, .menu-toggle:hover {
  color: var(--brand-2);
  border-color: var(--brand-2);
  transform: translateY(-2px);
}

.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--nav-h) + 40px) 24px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
}

.hero-content {
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}

.pulse-dot {
  width: 8px; height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* 首屏个人信条 */
.hero-philosophy {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--text-soft);
  letter-spacing: 0.08em;
  margin: -4px 0 24px;
  padding: 0 4px;
  animation: fadeDown 1.2s var(--ease) both 0.2s;
}
.phil-quote {
  display: inline-block;
  margin: 0 8px;
  font-size: 22px;
  color: var(--brand-2);
  opacity: 0.7;
  transform: translateY(2px);
}

.phil-divider {
  display: inline-block;
  margin: 0 6px;
  color: var(--text-muted);
  opacity: 0.5;
  font-size: 16px;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 20px;
  min-height: 1.4em;
  display: flex;
  justify-content: center;
  align-items: center;
}

.typing {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cursor {
  display: inline-block;
  animation: blink 1s infinite;
  color: var(--brand-2);
  margin-left: 2px;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-desc {
  font-size: 16px;
  color: var(--text-soft);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-desc br { display: block; height: 0; }

/* 数据仪表盘 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  max-width: 900px;
  margin: 0 auto 40px;
}

.stat-card {
  padding: 20px 12px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: all 0.3s var(--ease);
}

.stat-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-2);
  box-shadow: var(--shadow);
}

.stat-num {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

/* 核心亮点徽章 */
.highlight-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.25s var(--ease);
  border: 1px solid transparent;
}

.badge i { font-size: 12px; }

.badge-primary {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(37, 99, 235, 0.12));
  color: var(--brand-2);
  border-color: rgba(124, 58, 237, 0.25);
}
.badge-primary:hover {
  background: var(--brand-grad);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}

.badge-warm {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(245, 158, 11, 0.12));
  color: #db2777;
  border-color: rgba(236, 72, 153, 0.25);
}
.badge-warm:hover {
  background: var(--brand-grad-warm);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(236, 72, 153, 0.35);
}

.badge-cool {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(37, 99, 235, 0.12));
  color: #0891b2;
  border-color: rgba(6, 182, 212, 0.25);
}
.badge-cool:hover {
  transform: translateY(-2px);
}

.badge-accent {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(59, 130, 246, 0.12));
  color: #059669;
  border-color: rgba(16, 185, 129, 0.25);
}
.badge-accent:hover {
  transform: translateY(-2px);
}

html[data-theme="dark"] .badge-warm { color: #f472b6; }
html[data-theme="dark"] .badge-cool { color: #22d3ee; }
html[data-theme="dark"] .badge-accent { color: #34d399; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brand-grad);
  color: white;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.45);
}

.btn-outline {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--brand-2);
  color: var(--brand-2);
  transform: translateY(-3px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--bg-card);
  border-color: var(--brand-2);
  color: var(--brand-2);
}

.hero-socials {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.social-link {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: all 0.3s var(--ease);
  font-size: 16px;
}

.social-link:hover {
  color: white;
  background: var(--brand-grad);
  border-color: transparent;
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}

.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.scroll-indicator span:first-child {
  width: 24px; height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 20px;
  position: relative;
}

.scroll-indicator span:first-child::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--brand-2);
  border-radius: 2px;
  animation: scroll-dot 1.8s infinite;
}

@keyframes scroll-dot {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 14px); opacity: 0; }
}

/* ---------- 关于 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.about-card {
  padding: 40px 28px 36px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  text-align: center;
  height: fit-content;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(124, 58, 237, 0.3);
}

.about-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand-grad);
  opacity: 0.06;
  pointer-events: none;
}

.about-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--brand-grad);
  opacity: 0.8;
}

.avatar-wrap {
  position: relative;
  width: 150px; height: 150px;
  margin: 0 auto 20px;
}

.avatar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #7c3aed, #ec4899, #06b6d4, #7c3aed);
  animation: ring-rotate 4s linear infinite;
  z-index: 1;
}

.avatar-ring::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--bg-card);
}

@keyframes ring-rotate {
  to { transform: rotate(360deg); }
}

.avatar-placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-size: 56px;
  background: var(--brand-grad);
  color: white;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.4);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.4);
  border: 4px solid var(--bg-card);
}

.avatar-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: var(--brand-grad);
  filter: blur(24px);
  opacity: 0.5;
  z-index: 1;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.about-card h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-tagline {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 16px;
  font-weight: 500;
}

.about-divider {
  width: 40px;
  height: 3px;
  background: var(--brand-grad);
  border-radius: 2px;
  margin: 0 auto 20px;
}

.about-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--text-soft);
}

.about-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: var(--bg-alt);
  border-radius: 999px;
  width: fit-content;
  margin: 0 auto;
  font-weight: 500;
  transition: all 0.3s var(--ease);
}

.about-meta span:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(37, 99, 235, 0.08));
  color: var(--brand-2);
}

.about-text {
  padding: 40px 40px 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.about-text .text-accent-bar {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--brand-grad);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 2;
}

.about-text mark {
  background: transparent;
  color: var(--text);
  font-weight: 700;
  padding: 0 2px;
  position: relative;
  display: inline;
  font-family: var(--font-serif);
  font-size: 1.05em;
}

.about-text mark::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 3px;
  background: var(--brand-grad);
  border-radius: 2px;
  opacity: 0.7;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.about-text p:hover mark::after {
  transform: scaleX(1);
}

.about-tags {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* About 引用块 */
.about-quote {
  position: relative;
  margin: 36px 0 28px;
  padding: 28px 32px;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(236, 72, 153, 0.04));
  border-left: 3px solid transparent;
  border-image: var(--brand-grad) 1;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-serif);
}
.about-quote::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--brand-grad);
  opacity: 0.03;
  z-index: -1;
}
.about-quote p {
  font-size: 19px;
  line-height: 1.6;
  text-align: center;
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0;
  font-style: italic;
}
.about-quote .quote-mark {
  position: absolute;
  font-size: 18px;
  color: var(--brand-2);
  opacity: 0.45;
}
.about-quote .quote-mark:first-child {
  top: 10px;
  left: 14px;
}
.about-quote .quote-mark-end {
  bottom: 10px;
  right: 14px;
}

.tag {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: white;
  transition: all 0.3s var(--ease);
  font-weight: 600;
  border: none;
  cursor: default;
}

.tag-1 { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.tag-2 { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.tag-3 { background: linear-gradient(135deg, #ec4899, #f97316); }
.tag-4 { background: linear-gradient(135deg, #10b981, #06b6d4); }
.tag-5 { background: linear-gradient(135deg, #f59e0b, #ef4444); }

.tag:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.35);
}

/* 教育背景 */
.sub-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sub-title i {
  color: var(--brand-2);
}

.edu-block {
  margin-top: 48px;
}

.edu-timeline {
  position: relative;
  padding-left: 32px;
}

.edu-timeline::before {
  content: '';
  position: absolute;
  left: 9px; top: 8px; bottom: 8px;
  width: 3px;
  background: linear-gradient(to bottom, var(--brand-1), var(--brand-2), var(--brand-3), var(--brand-4));
  border-radius: 2px;
  opacity: 0.5;
}

.edu-item {
  position: relative;
  margin-bottom: 24px;
}

.edu-dot {
  position: absolute;
  left: -28px; top: 10px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--brand-grad);
  border: 3px solid var(--bg-card-solid);
  box-shadow: 0 0 0 3px var(--brand-grad), 0 0 12px rgba(124, 58, 237, 0.5);
  z-index: 2;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.edu-item:hover .edu-dot {
  transform: scale(1.2);
  box-shadow: 0 0 0 3px var(--brand-grad), 0 0 20px rgba(124, 58, 237, 0.7);
}

/* 不同学段圆点主题色 */
.edu-college .edu-dot {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  box-shadow: 0 0 0 3px #7c3aed, 0 0 12px rgba(124, 58, 237, 0.5);
}
.edu-high .edu-dot {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 0 0 3px #2563eb, 0 0 12px rgba(37, 99, 235, 0.5);
}
.edu-mid .edu-dot {
  background: linear-gradient(135deg, #06b6d4, #10b981);
  box-shadow: 0 0 0 3px #06b6d4, 0 0 12px rgba(6, 182, 212, 0.5);
}
.edu-primary .edu-dot {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 0 0 3px #f59e0b, 0 0 12px rgba(245, 158, 11, 0.5);
}

.edu-body {
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.edu-body::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--brand-grad);
  opacity: 0.6;
}

.edu-college .edu-body::before { background: linear-gradient(to bottom, #7c3aed, #2563eb); }
.edu-high .edu-body::before { background: linear-gradient(to bottom, #2563eb, #06b6d4); }
.edu-mid .edu-body::before { background: linear-gradient(to bottom, #06b6d4, #10b981); }
.edu-primary .edu-body::before { background: linear-gradient(to bottom, #f59e0b, #ef4444); }

.edu-body:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(124, 58, 237, 0.3);
}

.edu-college .edu-body:hover { border-color: rgba(124, 58, 237, 0.3); }
.edu-high .edu-body:hover { border-color: rgba(37, 99, 235, 0.3); }
.edu-mid .edu-body:hover { border-color: rgba(6, 182, 212, 0.3); }
.edu-primary .edu-body:hover { border-color: rgba(245, 158, 11, 0.3); }

.edu-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.edu-head strong {
  font-size: 16px;
  color: var(--text);
  font-weight: 700;
}

.edu-time {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--brand-2);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(37, 99, 235, 0.1));
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.edu-college .edu-time { color: #7c3aed; }
.edu-high .edu-time { color: #2563eb; }
.edu-mid .edu-time { color: #06b6d4; }
.edu-primary .edu-time { color: #f59e0b; }

.edu-major {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 8px;
  font-style: italic;
}

.edu-list {
  padding-left: 0;
  margin-top: 10px;
  list-style: none;
}

.edu-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 6px;
  line-height: 1.75;
}

.edu-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 2px;
  background: var(--brand-grad);
  border-radius: 2px;
}

/* 列表内加粗字与正文完全一致（不加粗、同字体） */
.edu-list li strong {
  font-family: var(--font-sans);
  font-weight: 400;
  color: inherit;
}

.edu-college .edu-list li::before { background: linear-gradient(to right, #7c3aed, #2563eb); }
.edu-high .edu-list li::before { background: linear-gradient(to right, #2563eb, #06b6d4); }
.edu-mid .edu-list li::before { background: linear-gradient(to right, #06b6d4, #10b981); }
.edu-primary .edu-list li::before { background: linear-gradient(to right, #f59e0b, #ef4444); }

/* ---------- 技能（Bento 网格） ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  grid-auto-rows: auto;
}

.skill-card {
  position: relative;
  padding: 32px 28px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  transition: all 0.4s var(--ease);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 240px;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--brand-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-2);
}

.skill-card:hover::before {
  transform: scaleX(1);
}

/* 特色卡片 - AI 全栈 */
.skill-featured {
  grid-column: span 2;
  grid-row: span 1;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(37, 99, 235, 0.06), rgba(236, 72, 153, 0.05));
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.skill-featured-inner {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.skill-featured .skill-icon {
  width: 72px;
  height: 72px;
  font-size: 36px;
  flex-shrink: 0;
}

.skill-featured .skill-info {
  flex: 1;
}

.skill-tag {
  position: absolute;
  top: 18px; right: 18px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  background: var(--brand-grad);
  color: white;
  border-radius: 999px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.skill-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  font-size: 26px;
  border-radius: 14px;
  margin-bottom: 16px;
  background: var(--bg-alt);
  transition: transform 0.4s var(--ease);
  flex-shrink: 0;
}

.skill-card:hover .skill-icon {
  transform: scale(1.08) rotate(-3deg);
}

.icon-broadcast { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }
.icon-planning { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.icon-content { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.icon-visual { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.icon-ai {
  background: linear-gradient(135deg, #c4b5fd, #818cf8);
  color: white;
}

html[data-theme="dark"] .icon-broadcast { background: linear-gradient(135deg, #831843, #be185d); }
html[data-theme="dark"] .icon-planning { background: linear-gradient(135deg, #1e3a8a, #1d4ed8); }
html[data-theme="dark"] .icon-content { background: linear-gradient(135deg, #92400e, #b45309); }
html[data-theme="dark"] .icon-visual { background: linear-gradient(135deg, #065f46, #047857); }
html[data-theme="dark"] .icon-ai { background: linear-gradient(135deg, #5b21b6, #4f46e5); }

.skill-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.skill-card h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.skill-card p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 16px;
  flex: 1;
}

.skill-featured p {
  font-size: 14.5px;
  line-height: 1.85;
}

.skill-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.skill-tags-list span {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

html[data-theme="dark"] .skill-tags-list span {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border-color: rgba(139, 92, 246, 0.3);
}

html[data-theme="dark"] .about-text mark {
  color: #e2e8f0;
}

html[data-theme="dark"] .about-text mark::after {
  opacity: 0.85;
}

.skill-level {
  position: relative;
  height: 5px;
  background: var(--bg-alt);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 4px;
}

.skill-bar {
  height: 100%;
  background: var(--brand-grad);
  border-radius: 999px;
  width: 0;
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.skill-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  animation: bar-shine 2s infinite;
}

@keyframes bar-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.skill-percent {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-2);
  text-align: right;
}

@keyframes bar-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.skill-percent {
  position: absolute;
  right: 0;
  top: -22px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--brand-2);
  font-weight: 600;
}

/* ---------- 经历 Timeline ---------- */
.timeline {
  position: relative;
  padding: 20px 0;
  max-width: 960px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--brand-2), transparent);
  transform: translateX(-50%);
  opacity: 0.3;
}

.tl-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
}

.tl-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.tl-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.tl-dot {
  position: absolute;
  top: 36px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--brand-2);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px rgba(37, 99, 235, 0.25);
  z-index: 2;
}

.tl-item:nth-child(odd) .tl-dot { right: -9px; }
.tl-item:nth-child(even) .tl-dot { left: -9px; }

.tl-dot-top { top: 32px; }
.tl-dot-bottom { top: 36px; }

.tl-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: all 0.35s var(--ease);
  text-align: left;
}

.tl-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--brand-2);
}

.tl-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.tl-head h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.tl-role {
  font-size: 13px;
  color: var(--brand-2);
  font-weight: 500;
}

.tl-time {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.tl-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 8px;
  line-height: 1.7;
}

.tl-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--brand-2);
  font-size: 11px;
  top: 3px;
}

.tl-list li strong {
  color: var(--brand-2);
  font-weight: 700;
}

/* ---------- 项目 ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.project-card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  transition: all 0.35s var(--ease);
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-2);
}

.project-featured {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(236, 72, 153, 0.1)),
    var(--bg-card-solid);
  border-color: rgba(124, 58, 237, 0.3);
}

.project-badge {
  position: absolute;
  top: 20px; right: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  background: var(--brand-grad);
  color: white;
  border-radius: 999px;
}

/* 通栏旗舰卡：横向布局（左侧照片 + 右侧内容） */
.project-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: stretch;
}

.project-photo {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.18);
  border: 1px solid var(--border);
}
.project-photo img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.project-card:hover .project-photo img {
  transform: scale(1.04);
}
.project-photo-caption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.project-wide .project-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 720px) {
  .project-wide {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .project-photo img {
    min-height: 180px;
  }
}

/* 访谈实拍合辑 */
.project-showcase {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.showcase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.showcase-head h4 {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.showcase-head h4 i {
  color: var(--brand-2);
  font-size: 15px;
}
.showcase-tip {
  font-size: 12px;
  color: var(--text-muted);
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.showcase-item {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.showcase-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.showcase-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.showcase-item:hover img {
  transform: scale(1.04);
}
.showcase-item figcaption {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--border);
}
.showcase-item figcaption strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.showcase-item figcaption span {
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  .project-showcase {
    padding: 20px;
  }
}
@media (min-width: 721px) and (max-width: 960px) {
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 外链卡片（抖音引流） */
a.project-card {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
a.project-card:hover .project-tags span {
  background: var(--brand-grad);
  color: #fff;
}

@media (max-width: 640px) {
  .project-wide {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .project-wide .project-icon {
    margin-bottom: 18px;
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
}

.project-icon {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  font-size: 24px;
  border-radius: 16px;
  background: var(--brand-grad);
  color: white;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
}

.project-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.project-head h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.project-time {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.project-desc {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 18px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tags span {
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--text-soft);
  border: 1px solid var(--border);
}

/* ---------- 荣誉 Tabs ---------- */
.award-tabs {
  max-width: 1000px;
  margin: 0 auto;
}

.tab-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 20px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s var(--ease);
}

.tab-btn:hover {
  color: var(--brand-2);
  border-color: var(--brand-2);
}

.tab-btn.active {
  background: var(--brand-grad);
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
}

.tab-panel {
  display: none;
  animation: fade-in 0.4s var(--ease);
}

.tab-panel.active { display: block; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.cert-card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.cert-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60px; height: 60px;
  background: var(--brand-grad);
  opacity: 0.1;
  border-radius: 0 0 0 60px;
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--brand-2);
}

.cert-issuer {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--brand-2);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(37, 99, 235, 0.1));
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.cert-card h4 {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.cert-id {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
}

/* 语言类奖项 */
.award-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.award-group {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.award-group ul li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 8px;
  line-height: 1.7;
}

.award-group ul li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--brand-2);
  font-size: 10px;
  top: 4px;
}

.award-group ul li strong {
  color: var(--text);
  font-weight: 600;
}

.award-level {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  padding: 4px 14px;
  border-radius: 6px;
  color: white;
}

.award-level.national { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.award-level.provincial { background: linear-gradient(135deg, #ea580c, #c2410c); }
.award-level.city { background: linear-gradient(135deg, #d97706, #b45309); }
.award-level.district { background: linear-gradient(135deg, #059669, #047857); }
.award-level.school { background: linear-gradient(135deg, #2563eb, #1d4ed8); }

/* ---------- 精彩瞬间 / Gallery ---------- */
.gallery-section {
  background: var(--bg-alt);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 230px;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
  grid-auto-flow: dense;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
  background: var(--card);
  border: 1px solid var(--border);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.22);
  z-index: 2;
}

.gallery-item.gallery-large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--text-muted);
  background: linear-gradient(135deg, var(--card-hover), var(--card));
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 16px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 40%, transparent 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 3px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  display: inline-block;
  width: fit-content;
}

.gallery-caption {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

/* Gallery lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.gallery-lightbox.active {
  display: flex;
}

.gallery-lightbox img {
  max-width: 92vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.gallery-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.gallery-lightbox-caption {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 15px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Gallery responsive */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .gallery-item.gallery-large {
    grid-column: span 2;
    grid-row: span 1;
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .skill-featured {
    grid-column: span 2;
  }
  .skill-featured-inner {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 500px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 140px;
    gap: 10px;
  }
  .gallery-item.gallery-large {
    grid-column: span 2;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .skill-featured {
    grid-column: span 1;
  }
}

/* ---------- 联系 ---------- */
.contact-section {
  background: var(--bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 260px);
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

.contact-card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  position: relative;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--brand-2);
}

.contact-card-muted {
  background: transparent;
  border: 1px dashed var(--border);
  backdrop-filter: none;
}
.contact-card-muted:hover {
  transform: translateY(-2px);
  box-shadow: none;
  border-color: var(--brand-2);
  background: var(--bg-card);
}
.contact-card-muted .contact-icon {
  background: transparent;
  color: var(--text-muted);
  box-shadow: none;
}
.contact-card-muted .contact-value {
  font-weight: 500;
}

.contact-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--brand-grad);
  color: white;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-value {
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-arrow {
  margin-left: auto;
  color: var(--text-muted);
  transition: all 0.25s var(--ease);
}

.contact-card:hover .contact-arrow {
  color: var(--brand-2);
  transform: translate(3px, -3px);
}

.contact-cta {
  text-align: center;
  padding: 48px 32px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(236, 72, 153, 0.1)),
    var(--bg-card-solid);
  border: 1px solid rgba(124, 58, 237, 0.2);
  position: relative;
  overflow: hidden;
}

.contact-cta::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: var(--brand-grad);
  opacity: 0.04;
  animation: float-bg 20s linear infinite;
}

@keyframes float-bg {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.contact-cta h3 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
}

.contact-cta p {
  color: var(--text-soft);
  margin-bottom: 28px;
  position: relative;
}

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ---------- QR 二维码区域 ---------- */
.qr-section {
  margin: 40px 0;
  text-align: center;
}

.qr-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.qr-title i {
  color: var(--brand-2);
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.qr-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.qr-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-2);
}

.qr-card.qr-featured {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.06)), var(--bg-card-solid);
  border-color: rgba(37, 99, 235, 0.3);
  position: relative;
}
.qr-card.qr-featured::after {
  content: '推荐';
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  background: var(--brand-grad);
  color: #fff;
  border-radius: 999px;
}

.qr-image {
  width: 180px;
  height: 180px;
  border-radius: var(--radius);
  background: white;
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.qr-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  padding: 12px;
  background: repeating-linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.02),
    rgba(0, 0, 0, 0.02) 10px,
    rgba(0, 0, 0, 0.04) 10px,
    rgba(0, 0, 0, 0.04) 20px
  );
}

html[data-theme="dark"] .qr-placeholder {
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.02) 10px,
    rgba(255, 255, 255, 0.04) 10px,
    rgba(255, 255, 255, 0.04) 20px
  );
}

.qr-placeholder i {
  font-size: 36px;
  color: var(--brand-2);
  opacity: 0.5;
}

.qr-wechat {
  background: white;
}
.qr-douyin {
  background: white;
}
.qr-video {
  background: white;
}

.qr-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.qr-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.qr-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.qr-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  margin-top: 6px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-2);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: all 0.25s var(--ease);
  cursor: pointer;
}

.qr-copy:hover {
  background: var(--brand-grad);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

.qr-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.qr-open {
  text-decoration: none;
}

.qr-open:hover {
  background: linear-gradient(135deg, #000, #1a1a1a);
  color: #fff;
  border-color: transparent;
}

html[data-theme="dark"] .qr-open:hover {
  background: linear-gradient(135deg, #25f4ee, #fe2c55);
  color: #000;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  padding: 60px 24px 30px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-slogan {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--brand-2);
  opacity: 0.8;
  margin-top: 4px;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links h5 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover {
  color: var(--brand-2);
}
.footer-links a i {
  font-size: 12px;
  width: 16px;
  text-align: center;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

/* 滚动进度条 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--brand-grad);
  z-index: 10000;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.4);
}

@media (max-width: 720px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---------- 背景音乐按钮 ---------- */
.music-widget {
  position: fixed;
  bottom: 30px; left: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 50;
}

.music-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  display: grid; place-items: center;
  color: var(--text-soft);
  box-shadow: var(--shadow-md);
  transition: all 0.3s var(--ease);
}

.music-btn:hover {
  transform: translateY(-4px) scale(1.08);
  border-color: var(--brand-2);
  color: var(--brand-2);
}

/* 黑胶唱片 */
.music-btn .vinyl {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--brand-2) 0 26%, transparent 27%),
    repeating-radial-gradient(
      circle at center,
      #14141c 0 2px,
      #20202c 2px 4px
    );
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

/* 播放中：唱片点亮 + 旋转 + 发光 */
.music-btn.playing {
  border-color: var(--brand-1);
  color: white;
  animation: btn-glow 2.2s ease-in-out infinite;
}

@keyframes btn-glow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25), 0 8px 24px rgba(124, 58, 237, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.18), 0 8px 32px rgba(124, 58, 237, 0.65); }
}

.music-btn.playing .vinyl {
  opacity: 0.95;
  animation: vinyl-spin 3.5s linear infinite;
}

@keyframes vinyl-spin {
  to { transform: rotate(360deg); }
}

/* 播放/律动图标切换 */
.music-btn .music-icon-play { grid-area: 1 / 1; z-index: 1; filter: drop-shadow(0 1px 3px rgba(0,0,0,.7)); }

.eq {
  display: none;
  grid-area: 1 / 1;
  align-items: flex-end;
  gap: 2.5px;
  height: 15px;
  position: relative;
  z-index: 1;
}

.music-btn.playing .music-icon-play { display: none; }
.music-btn.playing .eq {
  display: flex;
  color: #fff;
}

.eq i {
  width: 3px;
  background: currentColor;
  border-radius: 2px;
  transform-origin: bottom;
  transform: scaleY(0.35);
  animation: eq-bounce 0.9s ease-in-out infinite;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.8));
}

.eq i:nth-child(1) { height: 100%; animation-delay: 0s; }
.eq i:nth-child(2) { height: 100%; animation-delay: 0.2s; }
.eq i:nth-child(3) { height: 100%; animation-delay: 0.4s; }
.eq i:nth-child(4) { height: 100%; animation-delay: 0.6s; }

@keyframes eq-bounce {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

/* 播放中的音波光环 */
.music-widget.playing .music-btn::after,
.music-btn.playing::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(124, 58, 237, 0.45);
  pointer-events: none;
  animation: music-wave 1.6s ease-out infinite;
}

@keyframes music-wave {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* 播放状态文字标签 */
.music-tip {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-1);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-8px);
  transition: all 0.4s var(--ease);
  white-space: nowrap;
  pointer-events: none;
}

.music-widget.playing .music-tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

@media (max-width: 500px) {
  .music-tip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .music-btn.playing .vinyl,
  .music-btn.playing::after,
  .eq i,
  .music-btn.playing {
    animation: none;
  }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--brand-grad);
  color: white;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s var(--ease);
  z-index: 50;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.08);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 40px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 24px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
  z-index: 200;
  box-shadow: var(--shadow-lg);
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Reveal 动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-card {
    max-width: 360px;
    margin: 0 auto;
  }
  .skill-featured, .project-featured {
    grid-column: span 1;
  }
  /* 通栏旗舰卡在平板区间保持全宽，避免横向图文被挤压成竖条 */
  .project-featured.project-wide {
    grid-column: 1 / -1;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }

  /* Timeline 在移动端改为单侧 */
  .timeline::before { left: 16px; }
  .tl-item, .tl-item:nth-child(even) {
    width: 100%;
    left: 0;
    padding: 20px 20px 20px 48px;
    text-align: left;
  }
  .tl-item:nth-child(odd) .tl-dot,
  .tl-item:nth-child(even) .tl-dot {
    left: 7px;
    right: auto;
  }
}

@media (max-width: 720px) {
  :root { --nav-h: 60px; }

  .section { padding: 70px 20px; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    background: var(--bg-card);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-150%);
    transition: transform 0.35s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-link { width: 100%; padding: 12px 16px; }
  .menu-toggle { display: grid; }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat-card { padding: 14px 10px; }

  .hero-title { letter-spacing: -0.5px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }

  .about-text { padding: 24px 20px; }

  .tab-bar { flex-direction: column; }
  .tab-btn { width: 100%; justify-content: center; }

  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 720px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(5) { grid-column: span 2; }
  .project-grid, .cert-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* 打印模式 */
@page { margin: 12mm; }
@media print {
  /* 暗色模式下打印：强制亮色变量，避免白底配浅字 */
  html[data-theme="dark"] {
    --bg: #ffffff;
    --bg-alt: #ffffff;
    --bg-card: #ffffff;
    --bg-card-solid: #ffffff;
    --text: #000000;
    --text-soft: #222222;
    --text-muted: #555555;
    --border: #dddddd;
    --border-strong: #bbbbbb;
  }
  .navbar, .scroll-indicator, .back-to-top, #particles, #bg-noise, #mouse-glow,
  .music-widget, .toast,
  .hero-actions, .theme-toggle, .menu-toggle, .nav-links,
  .highlight-badges, .qr-copy, .contact-arrow, .qr-placeholder,
  .hero-philosophy, .about-quote,
  .project-showcase, .scroll-progress,
  .aurora, #bg-dots, .cert-view-hint, .modal {
    display: none !important;
  }
  body { background: white; color: #000; }
  .section, .section.alt {
    padding: 20px 0;
    max-width: 100%;
    background: white !important;
    color: #000;
  }
  .hero { min-height: auto; padding: 20px; }
  .section-title, .gradient-text, .hl { color: #000 !important; background: none; -webkit-text-fill-color: #000; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .stat-card, .skill-card, .project-card, .tl-card, .cert-card,
  .award-group, .contact-card, .qr-card, .edu-body, .about-card, .about-text {
    break-inside: avoid;
    background: white !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    color: #000;
  }
  .qr-image { border-color: #ccc; }
  .qr-copy { display: none !important; }
  a { color: #000; text-decoration: none; }
  .preloader { display: none !important; }
  .modal { display: none !important; }
}

/* ========== 首屏加载动画 ========== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  width: 80px; height: 80px;
  margin: 0 auto 24px;
  display: grid; place-items: center;
  background: var(--brand-grad);
  color: white;
  border-radius: 20px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1px;
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.4);
  animation: logo-pulse 2s ease-in-out infinite;
}

@keyframes logo-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.loader-ring {
  position: relative;
  width: 60px; height: 60px;
  margin: 0 auto 20px;
}

.loader-ring span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--brand-1);
  animation: ring-spin 1.4s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loader-ring span:nth-child(2) {
  border-top-color: var(--brand-2);
  animation-delay: -0.35s;
}
.loader-ring span:nth-child(3) {
  border-top-color: var(--brand-3);
  animation-delay: -0.7s;
}
.loader-ring span:nth-child(4) {
  border-top-color: var(--brand-4);
  animation-delay: -1.05s;
}

@keyframes ring-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-text {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 2px;
  animation: text-fade 2s ease-in-out infinite;
}

@keyframes text-fade {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ========== AI 认证弹窗 ========== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 26, 0.7);
  backdrop-filter: blur(6px);
}

.modal-content {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px 36px 32px;
  border-radius: 24px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text-soft);
  transition: all 0.25s ease;
}

.modal-close:hover {
  background: var(--brand-grad);
  color: white;
  transform: rotate(90deg);
}

.modal-body h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.modal-body .modal-issuer {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(37, 99, 235, 0.15));
  color: var(--brand-2);
  border-radius: 6px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-body .modal-section {
  margin-bottom: 20px;
}

/* 证书原图 */
.modal-cert-wrap {
  margin: -10px -10px 24px;
}

.modal-cert-img {
  width: 100%;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.modal-body .modal-section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.modal-body .modal-desc {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.8;
}

.modal-body .modal-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-body .modal-skills span {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-soft);
}

.modal-body .modal-id {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 14px;
  background: var(--bg-alt);
  border-radius: 8px;
  display: inline-block;
}

/* 证书卡片点击样式 */
.cert-clickable {
  cursor: pointer;
  position: relative;
}

.cert-clickable::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: var(--brand-grad);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.cert-clickable:hover::before {
  opacity: 1;
}

.cert-clickable:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(124, 58, 237, 0.2);
}

.cert-view-hint {
  position: absolute;
  bottom: 12px; right: 14px;
  font-size: 11px;
  color: var(--brand-2);
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cert-clickable:hover .cert-view-hint {
  opacity: 1;
  transform: translateY(0);
}

.cert-card {
  position: relative;
}

/* Modal 滚动条 */
.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-track { background: transparent; }
.modal-content::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}

/* 响应式 */
@media (max-width: 600px) {
  .modal-content {
    padding: 32px 24px 24px;
    border-radius: 18px;
  }
  .loader-logo { width: 64px; height: 64px; font-size: 22px; }
  .loader-ring { width: 48px; height: 48px; }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  .preloader, .loader-logo, .loader-ring span, .loader-text,
  .cert-clickable, .skill-bar, .skill-bar::after {
    animation: none !important;
    transition: none !important;
  }
}
