/* ========================================
   极简个人品牌简历站 — 样式文件 v3
   单页滚动 + 星空粒子 + 日夜模式
   ======================================== */

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

/* ---------- CSS Variables ---------- */
:root {
  --nav-height: 56px;
  --sidebar-width: 270px;
  --content-max-width: 930px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme (default) — EVA 配色：紫(EVA-01) / 红(EVA-02) / 橙(NERV) / 蓝(真嗣) / 绿(NERV辅助屏) */
[data-theme="dark"] {
  --bg-body: #08080e;
  --bg-card: rgba(14, 14, 22, 0.72);
  --bg-sidebar: rgba(10, 10, 18, 0.10);
  --bg-navbar: rgba(10, 10, 18, 0.10);
  --border-color: rgba(100, 100, 110, 0.14);
  --border-hover: rgba(160, 160, 170, 0.35);
  --text-primary: #e6e6ea;
  --text-secondary: #b0b0b8;
  --text-muted: #808088;
  --accent: #9b59ff;
  --accent-grad: linear-gradient(135deg, #9b59ff, #ff4466);
  --accent-blue: #4a90d9;
  --accent-purple: #9b59ff;
  --accent-teal: #00d474;
  --accent-orange: #ff6d3a;
  --accent-red: #c0392b;
  --accent-rose: #ff4466;
  --particle-color: rgba(140, 110, 200, 0.3);
  --bg-overlay: rgba(0, 0, 0, 0.30);
  --section-footer-border: rgba(100, 100, 110, 0.1);
}

/* Light Theme — 暖奶油 + 琥珀 + 蓝青 */
[data-theme="light"] {
  --bg-body: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-sidebar: rgba(255, 255, 255, 0.30);
  --bg-navbar: rgba(255, 255, 255, 0.10);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(180, 120, 0, 0.18);
  --text-primary: #1a202c;
  --text-secondary: #374151;
  --text-muted: #5b6d85;
  --accent: #7c3aed;
  --accent-grad: linear-gradient(135deg, #7c3aed, #e11d48);
  --accent-blue: #3b82f6;
  --accent-purple: #7c3aed;
  --accent-teal: #059669;
  --accent-orange: #ea580c;
  --accent-red: #dc2626;
  --accent-rose: #e11d48;
  --particle-color: rgba(120, 90, 160, 0.12);
  --bg-overlay: rgba(255, 255, 255, 0.25);
  --section-footer-border: rgba(0, 0, 0, 0.06);
}

html {
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  transition: color 0.5s ease, background 0.5s ease;
}

/* ---------- 全屏背景：图片 + 微弱光晕 ---------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: transparent;
}

/* 微光纹理叠加层（非常淡的质感） */
.bg-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.015;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 3px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,0.02) 2px, rgba(255,255,255,0.02) 3px);
  pointer-events: none;
}

.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.5s ease;
}
/* 夜间模式：背景图偏灰、降低亮度，不抢中间内容 */
[data-theme="dark"] .bg-image {
  filter: grayscale(40%) brightness(0.55);
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: var(--bg-overlay);
  transition: background 0.5s ease;
}

/* ---------- 启动画面（圆形头像 + 浮动动画） ---------- */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s ease;
  pointer-events: all;
}
.splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  animation: splashIn 0.8s 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes splashIn {
  from { opacity: 0; transform: scale(0.88) translateY(30px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* 头像外圈光晕 — 纯蓝色系 */
.splash-avatar-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #3b82f6, #60a5fa, #2563eb, #3b82f6);
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 40px rgba(59, 130, 246, 0.35),
    0 0 80px rgba(96, 165, 250, 0.28),
    0 0 120px rgba(37, 99, 235, 0.18);
  animation: ringGlow 3s ease-in-out infinite;
  margin-bottom: 24px;
}

@keyframes ringGlow {
  0%, 100% { box-shadow: 0 0 40px rgba(59,130,246,0.35), 0 0 80px rgba(96,165,250,0.28), 0 0 120px rgba(37,99,235,0.18); }
  50%      { box-shadow: 0 0 60px rgba(59,130,246,0.55), 0 0 100px rgba(96,165,250,0.45), 0 0 150px rgba(37,99,235,0.3); }
}

.splash-avatar-frame {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-body);
}

.splash-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 名字 */
.splash-name {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--text-primary);
  margin-bottom: 12px;
  text-align: center;
}

/* 三个身份 */
.splash-roles {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-secondary);
  letter-spacing: 1px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.splash-dot {
  color: var(--accent-purple);
  font-weight: 700;
}

/* 签名 — 蓝色光呼吸 + 清晰可读 */
.splash-signature-text {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  font-style: italic;
  margin-bottom: 28px;
  letter-spacing: 1.5px;
  text-shadow:
    0 0 10px rgba(59, 130, 246, 0.85),
    0 0 28px rgba(59, 130, 246, 0.6),
    0 0 50px rgba(59, 130, 246, 0.4),
    0 0 90px rgba(59, 130, 246, 0.25);
  animation: signatureGlow 2.5s ease-in-out infinite;
}

@keyframes signatureGlow {
  0%, 100% {
    text-shadow:
      0 0 10px rgba(59, 130, 246, 0.85),
      0 0 28px rgba(59, 130, 246, 0.6),
      0 0 50px rgba(59, 130, 246, 0.4),
      0 0 90px rgba(59, 130, 246, 0.25);
  }
  50% {
    text-shadow:
      0 0 16px rgba(59, 130, 246, 1),
      0 0 40px rgba(59, 130, 246, 0.75),
      0 0 70px rgba(59, 130, 246, 0.55),
      0 0 120px rgba(59, 130, 246, 0.35);
  }
}

/* 蒙版圆（以头像+文字为中心的柔光底座，托起内容） */
.splash-mask-circle {
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(0, 0, 0, 0.28) 0%,
    rgba(0, 0, 0, 0.18) 30%,
    rgba(0, 0, 0, 0.1) 55%,
    rgba(0, 0, 0, 0.04) 78%,
    transparent 100%
  );
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}

[data-theme="light"] .splash-mask-circle {
  background: radial-gradient(circle,
    rgba(255, 255, 255, 0.70) 0%,
    rgba(255, 255, 255, 0.48) 30%,
    rgba(255, 255, 255, 0.30) 55%,
    rgba(255, 255, 255, 0.12) 78%,
    transparent 100%
  );
}

/* 进度条 */
.splash-progress {
  width: 200px;
  height: 2px;
  background: rgba(128, 128, 128, 0.15);
  border-radius: 1px;
  overflow: hidden;
}
.splash-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-grad);
  border-radius: 1px;
  animation: splashProgress 2.2s 0.3s ease-in-out forwards;
}
@keyframes splashProgress {
  from { width: 0%; }
  to   { width: 100%; }
}

/* ---------- 主应用初始隐藏（启动画面期间） ---------- */
.app-main {
  opacity: 0;
  transition: opacity 0.8s 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.app-main.revealed {
  opacity: 1;
}

/* ---------- 星空粒子 Canvas ---------- */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 1000;
}

.nav-brand {
  font-size: 16px;
  font-weight: 800;
  color: #60a5fa;
  letter-spacing: 1px;
  flex-shrink: 0;
  text-shadow: 0 0 8px rgba(59, 130, 246, 0.6),
               0 0 18px rgba(59, 130, 246, 0.3);
}
[data-theme="light"] .nav-brand {
  color: #1d4ed8;
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6),
               0 0 6px rgba(37, 99, 235, 0.15);
}

.nav-menu {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0 auto;
}

.nav-item {
  padding: 8px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  user-select: none;
  position: relative;
  white-space: nowrap;
  text-decoration: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5),
               0 0 2px rgba(0, 0, 0, 0.2);
}
[data-theme="light"] .nav-item {
  color: #374151;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.7),
               0 0 1px rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .nav-item:hover {
  color: #111827;
}

.nav-item:hover { color: var(--text-primary); }

.nav-item.active {
  font-weight: 600;
}
/* 导航栏分区颜色 */
.nav-item[data-target="section-hero"].active { color: #b0b0b8; }
.nav-item[data-target="section-works"].active { color: var(--accent-orange); }
.nav-item[data-target="section-cognition"].active { color: var(--accent-blue); }
.nav-item[data-target="section-interests"].active { color: var(--accent-red); }
.nav-item[data-target="section-life"].active { color: var(--accent-teal); }

[data-theme="light"] .nav-item[data-target="section-hero"].active { color: #374151; }
[data-theme="light"] .nav-item[data-target="section-hero"].active::after { background: #374151; box-shadow: 0 0 8px rgba(55, 65, 81, 0.35); }

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%; transform: translateX(-50%);
  width: 20px; height: 3px;
  border-radius: 2px;
}
/* 底部光标按分区颜色 */
.nav-item[data-target="section-hero"].active::after { background: #b0b0b8; box-shadow: 0 0 8px rgba(176, 176, 184, 0.5); }
.nav-item[data-target="section-works"].active::after { background: var(--accent-orange); box-shadow: 0 0 8px rgba(255, 109, 58, 0.5); }
.nav-item[data-target="section-cognition"].active::after { background: var(--accent-blue); box-shadow: 0 0 8px rgba(74, 144, 217, 0.5); }
.nav-item[data-target="section-interests"].active::after { background: var(--accent-red); box-shadow: 0 0 8px rgba(230, 0, 0, 0.5); }
.nav-item[data-target="section-life"].active::after { background: var(--accent-teal); box-shadow: 0 0 8px rgba(0, 212, 116, 0.5); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  color: var(--text-secondary);
}

.theme-toggle:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.theme-icon {
  font-size: 15px;
  line-height: 1;
}

.theme-label {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Page Wrapper (Left + Right) ---------- */
.page-wrapper {
  display: flex;
  padding-top: var(--nav-height);
  padding-left: var(--sidebar-width);
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ---------- Sidebar Card ---------- */
.sidebar-card {
  width: var(--sidebar-width);
  flex-shrink: 0;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  bottom: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-right: none;
  overflow-y: auto;
  z-index: 10;
}

.sidebar-content {
  padding: 24px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.sidebar-content::before {
  content: '';
  position: absolute;
  inset: 4px 8px 2px 8px;
  border-radius: 20px;
  background: rgba(10, 10, 18, 0.20);
  pointer-events: none;
  z-index: 0;
}
.sidebar-content > * {
  position: relative;
  z-index: 1;
}
[data-theme="light"] .sidebar-content::before {
  background: rgba(180, 180, 180, 0.50);
}

/* Avatar */
.sidebar-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent-blue);
  box-shadow: 0 0 24px rgba(74, 144, 217, 0.25);
  margin-bottom: 14px;
  background: var(--bg-body);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}
.sidebar-avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 0 36px rgba(74, 144, 217, 0.45);
  border-color: rgba(155, 89, 255, 0.7);
}

.sidebar-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Name & Title */
.sidebar-name {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 2px;
  color: var(--text-primary);
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7),
               0 0 2px rgba(0, 0, 0, 0.3);
}
[data-theme="light"] .sidebar-name {
  color: #0f172a;
  font-weight: 800;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.8),
               0 0 2px rgba(0, 0, 0, 0.08);
}

.sidebar-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 4px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
[data-theme="light"] .sidebar-title {
  color: #334155;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.75),
               0 0 1px rgba(0, 0, 0, 0.06);
}

.sidebar-signature {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  font-style: italic;
  text-align: center;
  margin-bottom: 16px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
[data-theme="light"] .sidebar-signature {
  color: #1e293b;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.7),
               0 0 1px rgba(0, 0, 0, 0.06);
}

/* Divider */
.sidebar-divider {
  width: 80%;
  height: 1px;
  background: rgba(255, 109, 58, 0.35);
  margin: 12px 0;
  transition: width 0.3s ease, background 0.3s ease;
}
.sidebar-divider:hover {
  width: 94%;
  background: rgba(255, 109, 58, 0.55);
}
[data-theme="light"] .sidebar-divider {
  background: rgba(234, 88, 12, 0.25);
}

/* Contact list (icon + text visible) */
.sidebar-contact-list {
  width: 100%;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease;
  cursor: pointer;
  border-radius: 6px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.contact-row:hover {
  transform: translateX(6px);
  color: #fff;
  background: rgba(155, 89, 255, 0.18);
}
[data-theme="light"] .contact-row {
  color: #1e293b;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.75),
               0 0 1px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .contact-row:hover {
  color: #0f172a;
  background: rgba(124, 58, 237, 0.18);
}

.contact-row-icon {
  font-size: 14px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.contact-row-text {
  word-break: break-all;
}

/* Info list */
.sidebar-info-list {
  width: 100%;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 8px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid rgba(128, 128, 128, 0.06);
  transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease;
  cursor: pointer;
  border-radius: 4px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
[data-theme="light"] .info-row {
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.7),
               0 0 1px rgba(0, 0, 0, 0.06);
}
.info-row:hover {
  transform: translateX(5px);
  background: rgba(155, 89, 255, 0.15);
}
[data-theme="light"] .info-row:hover {
  background: rgba(124, 58, 237, 0.15);
}
.info-row:hover .info-key { color: var(--accent-purple); }
.info-row:hover .info-val { color: #fff; }
[data-theme="light"] .info-row:hover .info-val { color: #0f172a; }

.info-row:last-child { border-bottom: none; }
.info-key { color: var(--text-secondary); font-weight: 500; }
.info-val { color: var(--text-primary); font-weight: 600; }
[data-theme="light"] .info-key { color: #475569; }
[data-theme="light"] .info-val { color: #0f172a; }

/* ---------- Main Content ---------- */
.main-content {
  flex: 1;
  margin: 0 auto;
  padding: 0 28px 60px;
  max-width: var(--content-max-width);
  min-width: 0;
}

/* ---------- Content Sections ---------- */
.content-section {
  padding-top: 28px;
  min-height: 50vh;
}

/* ---------- Hero Area ---------- */
.hero-area {
  margin-bottom: 24px;
}

.hero-tag {
  font-size: 13px;
  font-weight: 800;
  color: #00d474;
  letter-spacing: 5px;
  display: block;
  margin-bottom: 12px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55),
               0 0 12px rgba(0, 212, 116, 0.55),
               0 0 28px rgba(0, 212, 116, 0.25);
}
[data-theme="light"] .hero-tag {
  color: #6d28d9;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.7), 0 1px 2px rgba(0, 0, 0, 0.15),
               0 0 12px rgba(109, 40, 217, 0.35),
               0 0 28px rgba(109, 40, 217, 0.18);
}

.hero-headline {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.2;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5), 0 0 2px rgba(0, 0, 0, 0.3);
}
[data-theme="light"] .hero-headline {
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.75), 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 主页 headline 缓慢辉光（打字机结束后触发）— 蓝色光渐起渐散 */
.hero-headline.glow-in {
  animation: gentleGlow 3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes gentleGlow {
  0%   { text-shadow: 0 0 4px rgba(59, 130, 246, 0.4), 0 0 12px rgba(59, 130, 246, 0.18); }
  25%  { text-shadow: 0 0 14px rgba(59, 130, 246, 0.5), 0 0 28px rgba(59, 130, 246, 0.25); }
  45%  { text-shadow: 0 0 22px rgba(59, 130, 246, 0.7), 0 0 48px rgba(59, 130, 246, 0.4), 0 0 80px rgba(37, 99, 235, 0.18); }
  70%  { text-shadow: 0 0 16px rgba(59, 130, 246, 0.55), 0 0 32px rgba(59, 130, 246, 0.3); }
  100% { text-shadow: 0 0 4px rgba(59, 130, 246, 0.4), 0 0 12px rgba(59, 130, 246, 0.18); }
}
[data-theme="light"] .hero-headline.glow-in {
  animation-name: gentleGlowLight;
}
@keyframes gentleGlowLight {
  0%   { text-shadow: 0 0 3px rgba(59, 130, 246, 0.25), 0 0 8px rgba(59, 130, 246, 0.1); }
  25%  { text-shadow: 0 0 10px rgba(59, 130, 246, 0.35), 0 0 20px rgba(59, 130, 246, 0.16); }
  45%  { text-shadow: 0 0 16px rgba(59, 130, 246, 0.5), 0 0 36px rgba(59, 130, 246, 0.28), 0 0 60px rgba(37, 99, 235, 0.12); }
  70%  { text-shadow: 0 0 12px rgba(59, 130, 246, 0.35), 0 0 24px rgba(59, 130, 246, 0.18); }
  100% { text-shadow: 0 0 3px rgba(59, 130, 246, 0.25), 0 0 8px rgba(59, 130, 246, 0.1); }
}

.hero-sub {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4), 0 0 2px rgba(0, 0, 0, 0.2);
}
[data-theme="light"] .hero-sub {
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.7), 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* ---------- Block Card ---------- */
.block-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 14px;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.45s ease,
              border-color 0.45s ease,
              background 0.45s ease;
  position: relative;
  overflow: hidden;
}

/* 卡片内部微光底座（轻微蒙版，阻挡背景图片颜色侵入文字区域） */
.block-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.04);
  pointer-events: none;
  z-index: 0;
  transition: background 0.45s ease;
}

.block-card > * {
  position: relative;
  z-index: 1;
}

/* 悬停抬高 + 中性蒙版 */
.block-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 40px rgba(0, 0, 0, 0.2),
    0 12px 40px rgba(0, 0, 0, 0.25),
    0 4px 12px rgba(0, 0, 0, 0.12);
  border-color: rgba(255, 255, 255, 0.12);
}
/* 点击瞬态反馈：明显下沉 + 边框高亮 + 微缩放 */
.block-card:active {
  transform: translateY(2px) scale(0.96);
  transition: transform 0.08s ease, box-shadow 0.08s ease, border-color 0.08s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 0 24px rgba(255,255,255,0.06);
  border-color: rgba(255, 255, 255, 0.5);
}
.block-card:hover::after {
  background: rgba(0, 0, 0, 0.14);
}

/* 卡片 hover 时内部文字提亮 */
.block-card:hover .cert-list li,
.block-card:hover .traits-intro {
  color: var(--text-primary);
  transition: color 0.35s ease;
}

/* ====== data-mask 分区：悬停仅微调蒙版，色彩统一中性 ====== */
[data-mask="teal"]:hover::after { background: rgba(0, 0, 0, 0.14); }
[data-mask="blue"]:hover::after { background: rgba(0, 0, 0, 0.14); }
[data-mask="purple"]:hover::after { background: rgba(0, 0, 0, 0.14); }
[data-mask="amber"]:hover::after { background: rgba(0, 0, 0, 0.14); }
[data-mask="orange"]:hover::after { background: rgba(0, 0, 0, 0.14); }
[data-mask="rose"]:hover::after { background: rgba(0, 0, 0, 0.14); }

/* 亮色模式蒙版适配 — 中性 */
[data-theme="light"] .block-card::after {
  background: rgba(255, 255, 255, 0.06);
}
[data-theme="light"] .block-card:hover::after {
  background: rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .block-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1), 0 8px 32px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.06);
  border-color: rgba(124, 58, 237, 0.25);
}

/* 亮色模式：翻转卡 */
[data-theme="light"] .flip-card:hover .flip-card-front,
[data-theme="light"] .flip-card.clicked-flip .flip-card-front {
  background: rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .flip-card:hover .flip-card-back,
[data-theme="light"] .flip-card.clicked-flip .flip-card-back {
  background: rgba(0, 0, 0, 0.05);
}

/* 亮色模式：游戏特性卡片 */
[data-theme="light"] .game-flip-card:hover .game-flip-front,
[data-theme="light"] .game-flip-card.clicked-flip .game-flip-front {
  background: rgba(120, 60, 220, 0.05);
  border-color: rgba(120, 60, 220, 0.18);
  opacity: 0;
}
[data-theme="light"] .game-flip-card:hover .game-flip-back,
[data-theme="light"] .game-flip-card.clicked-flip .game-flip-back {
  background: rgba(120, 60, 220, 0.06);
  border-color: rgba(120, 60, 220, 0.18);
  opacity: 1;
}

/* 亮色模式：启动画面 */
[data-theme="light"] .splash-screen {
  background: transparent;
}

/* ---------- Block Label ---------- */
.block-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-teal);
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 3px solid var(--accent-teal);
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.block-label::after {
  content: '▾';
  font-size: 12px;
  transition: transform 0.35s ease;
  display: inline-block;
  opacity: 0.5;
}
.hover-expand:not(.sticky-expanded) .block-label::after {
  transform: rotate(-90deg);
}
/* 始终展开的卡片：隐藏箭头，内容始终可见 */
.block-label-plain { cursor: default; }
.block-label-plain::after { display: none; }
.always-open .expand-content {
  max-height: 4000px !important;
  opacity: 1 !important;
  margin-top: 0 !important;
  overflow: visible;
}

/* ---------- Advantages ---------- */
.advantage-list { list-style: none; padding: 0; }

.traits-intro {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: rgba(155, 89, 255, 0.06);
  border-left: 3px solid #9b59ff;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.advantage-list li {
  position: relative;
  padding: 14px 0 14px 24px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  border-bottom: 1px solid var(--border-color);
}

.advantage-list li strong {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
}

.advantage-list li:last-child { border-bottom: none; }

.advantage-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 16px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 8px rgba(230, 0, 0, 0.5);
}

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 24px; }

.timeline::before {
  content: '';
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--accent-teal);
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
  padding: 8px 12px 8px 28px;
  border-radius: var(--radius-sm);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.3s ease,
              box-shadow 0.3s ease;
  margin-left: -12px;
  margin-right: -4px;
}
.timeline-item:hover {
  transform: translateX(10px);
  background: rgba(0, 0, 0, 0.12);
  box-shadow: inset 4px 0 0 var(--accent-teal);
}
.timeline-item:hover .timeline-achievements li,
.timeline-item:hover .timeline-company,
.timeline-item:hover p {
  color: var(--text-primary);
  transition: color 0.35s ease;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -10px; top: 16px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--bg-body);
  border: 2px solid var(--accent-teal);
  transition: background 0.5s ease, transform 0.3s ease, border-color 0.3s ease;
}
/* 各分区圆球颜色：教育→绿，工作→绿，实践→绿 — 始终绿色 */
.always-open .timeline-item::before { 
  border-color: #00d474; 
  background: rgba(0, 212, 116, 0.15);
}
.always-open .timeline-item:hover::before { 
  border-color: #00d474; 
  background: rgba(0, 212, 116, 0.35);
  box-shadow: 0 0 14px rgba(0, 212, 116, 0.6); 
}
.always-open .timeline::before {
  background: #00d474;
}

.timeline-item:hover::before {
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(0, 212, 116, 0.35);
}

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

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}

.timeline-company { font-size: 16px; font-weight: 700; }
.timeline-position { font-size: 13px; color: var(--accent-orange); font-weight: 600; margin-bottom: 4px; }
.timeline-time { font-size: 15px; color: #fff; font-weight: 700; font-family: "SF Mono", "Fira Code", "Consolas", monospace; text-shadow: 0 0 6px rgba(255,255,255,0.3); letter-spacing: 0.5px; }

.timeline-achievements { list-style: none; padding: 0; margin-top: 8px; }

.timeline-achievements li {
  position: relative;
  padding: 3px 0 3px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-achievements li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-orange);
  opacity: 0.8;
}

/* 亮色模式：时间文字深色可见 */
[data-theme="light"] .timeline-time {
  color: #111827;
  font-weight: 700;
  text-shadow: none;
}
[data-theme="light"] .always-open .timeline-item::before {
  border-color: #059669;
  background: rgba(5, 150, 105, 0.12);
}
[data-theme="light"] .always-open .timeline-item:hover::before {
  border-color: #059669;
  background: rgba(5, 150, 105, 0.25);
  box-shadow: 0 0 10px rgba(5, 150, 105, 0.4);
}
[data-theme="light"] .always-open .timeline::before {
  background: #059669;
}

/* ---------- Skills ---------- */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  padding-top: 20px;
  padding-bottom: 14px;
  padding-left: 6px;
  overflow: visible;
}
/* 专业技能卡片不裁剪 hover 放大的标签 */
.skills-card { overflow: visible !important; }
.skills-card::after { display: none; }
.skills-card > * { z-index: 2; }

.skill-tag {
  padding: 6px 16px;
  font-size: 13px;
  color: var(--text-primary);
  background: rgba(155, 89, 255, 0.1);
  border: 1px solid rgba(155, 89, 255, 0.2);
  border-radius: 20px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease,
              color 0.3s ease;
  cursor: default;
}
.skill-tag:hover {
  background: rgba(155, 89, 255, 0.25);
  border-color: rgba(155, 89, 255, 0.6);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 22px rgba(155, 89, 255, 0.3);
  color: #fff;
}
/* 亮色模式：hover 时文字用深色，背景更扎实 */
[data-theme="light"] .skill-tag {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.16);
}
[data-theme="light"] .skill-tag:hover {
  background: rgba(124, 58, 237, 0.28);
  border-color: rgba(124, 58, 237, 0.6);
  color: #fff;
  box-shadow: 0 6px 22px rgba(124, 58, 237, 0.25);
}

/* Skills Detail — 互动卡片 */
.skills-detail {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.skill-detail-group {
  background: var(--bg-card);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: default;
  position: relative;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.45s ease,
              border-color 0.45s ease,
              background 0.4s ease;
}
.skill-detail-group:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 2px 10px rgba(0,0,0,0.15);
  background: rgba(0, 0, 0, 0.18);
}
[data-theme="light"] .skill-detail-group:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* 每个卡片左侧装饰条（不同颜色） */
.skill-detail-group::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 0 2px 2px 0;
  transition: width 0.35s ease, opacity 0.35s ease;
  opacity: 0.5;
}
.skill-detail-group:nth-child(1)::before { background: var(--accent-orange); }
.skill-detail-group:nth-child(2)::before { background: var(--accent-purple); }
.skill-detail-group:nth-child(3)::before { background: var(--accent-red); }
.skill-detail-group:hover::before {
  width: 4px;
  opacity: 1;
}

.skill-detail-category {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  padding-left: 4px;
  transition: transform 0.3s ease, color 0.3s ease;
}
.skill-detail-group:nth-child(1) .skill-detail-category { color: var(--accent-orange); }
.skill-detail-group:nth-child(2) .skill-detail-category { color: var(--accent-purple); }
.skill-detail-group:nth-child(3) .skill-detail-category { color: var(--accent-red); }
.skill-detail-group:hover .skill-detail-category {
  transform: translateX(4px);
}

.skill-detail-items {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.9;
  padding-left: 6px;
  transition: color 0.3s ease;
}
.skill-detail-items span.item-line {
  display: block;
  position: relative;
  padding-left: 14px;
}
.skill-detail-items span.item-line::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  opacity: 0.8;
}
.skill-detail-group:nth-child(1) .skill-detail-items span.item-line::before { background: var(--accent-orange); }
.skill-detail-group:nth-child(2) .skill-detail-items span.item-line::before { background: var(--accent-purple); }
.skill-detail-group:nth-child(3) .skill-detail-items span.item-line::before { background: var(--accent-red); }
.skill-detail-group:hover .skill-detail-items {
  color: var(--text-primary);
}

/* 移动端：单列 */
@media (max-width: 900px) {
  .skills-detail {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ---------- Interests ---------- */
.interests-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---- Tag bar ---- */
.interest-tags-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.interest-tag {
  padding: 8px 22px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-orange));
  border: none;
  border-radius: 20px;
  letter-spacing: 1px;
  box-shadow: 0 2px 12px rgba(155, 89, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.interest-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(155, 89, 255, 0.5);
}

/* ---- Rows wrap ---- */
.interest-rows-wrap {
  width: 100%;
  line-height: 0;
}

/* Single row — zero gap, fills full width */
.interest-row {
  display: flex;
  line-height: 0;
}

/* Cell — exact pixel size set by JS, matches image aspect ratio */
.interest-collage-item {
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  line-height: 0;
}

/* Image fills cell exactly — no crop because cell dimensions match aspect ratio */
.interest-collage-item img,
.interest-collage-item video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s ease;
}

.interest-collage-item:hover img,
.interest-collage-item:hover video {
  transform: scale(1.05);
  filter: brightness(1.08);
}

.interest-collage-item:hover {
  z-index: 2;
  box-shadow: 0 0 0 2px var(--accent-red), 0 6px 24px rgba(230, 0, 0, 0.4);
}

.interest-video-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.interest-collage-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  border-radius: 10px;
  pointer-events: none;
}

/* ---------- Certifications ---------- */
.cert-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cert-list li {
  padding: 6px 16px 6px 30px;
  font-size: 13px;
  color: var(--text-secondary);
  background: rgba(0, 212, 116, 0.08);
  border: 1px solid rgba(0, 212, 116, 0.18);
  border-radius: 20px;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease,
              color 0.3s ease;
  cursor: default;
}

.cert-list li::before {
  content: '🏆';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  line-height: 1;
}

.cert-list li:hover {
  background: rgba(0, 212, 116, 0.22);
  border-color: rgba(0, 212, 116, 0.5);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 22px rgba(0, 212, 116, 0.3);
  color: #fff;
}

[data-theme="light"] .cert-list li {
  background: rgba(5, 150, 105, 0.07);
  border-color: rgba(5, 150, 105, 0.14);
}
[data-theme="light"] .cert-list li:hover {
  background: rgba(5, 150, 105, 0.22);
  border-color: rgba(5, 150, 105, 0.45);
  color: #fff;
  box-shadow: 0 6px 22px rgba(5, 150, 105, 0.25);
}

/* ---------- Section Footer ---------- */
.section-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 14px;
}

.section-footer-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 3px;
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4), 0 0 8px rgba(155, 89, 255, 0.25);
}
[data-theme="light"] .section-footer-name {
  color: #374151;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.7), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.section-footer-line {
  flex: 1;
  height: 0;
  border-top: 1px dashed var(--section-footer-border);
}

.section-footer-num {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.7;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
[data-theme="light"] .section-footer-num {
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.6), 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* ---------- Works Grid ---------- */
/* (works grid has been removed — douyin + project cards are used instead) */

/* ---------- Douyin Body (left-right: all info | screenshot) ---------- */
.douyin-body {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.douyin-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.douyin-highlights {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ---------- Douyin Card Base ---------- */
.douyin-card { padding: 18px; margin-bottom: 16px; }
.douyin-card:hover .douyin-bio {
  color: var(--text-primary);
  transition: color 0.35s ease;
}

.douyin-header {
  display: flex;
  gap: 20px;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.douyin-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-purple);
  flex-shrink: 0;
}

.douyin-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.douyin-badge {
  font-size: 14px;
  font-weight: 500;
  color: #a78bfa;
  background: rgba(155, 89, 255, 0.15);
  padding: 3px 10px;
  border-radius: 10px;
  margin-left: 8px;
}
[data-theme="light"] .douyin-badge {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.12);
}

.douyin-time {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 8px;
}

.douyin-bio {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.douyin-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.douyin-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.douyin-stat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.douyin-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.douyin-link {
  display: block;
  text-align: center;
  padding: 14px 28px;
  font-size: 15px;
  color: white;
  background: #00d474;
  border-radius: 22px;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 600;
  margin-top: 0;
}
[data-theme="light"] .douyin-link {
  background: #059669;
}

.douyin-link:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 212, 116, 0.5);
}
[data-theme="light"] .douyin-link:hover {
  box-shadow: 0 6px 22px rgba(5, 150, 105, 0.45);
}

/* ---------- Game Project Card ---------- */
.game-card {
  position: relative;
}

.game-project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.game-project-title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.game-project-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}
/* 独立开发标签（紫色，用于游戏卡片） */
.game-role-tag {
  font-size: 13px;
  font-weight: 600;
  color: #a78bfa;
  background: rgba(155, 89, 255, 0.12);
  padding: 3px 12px;
  border-radius: 12px;
  white-space: nowrap;
}
[data-theme="light"] .game-role-tag {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
}
.game-project-time {
  font-size: 15px;
  color: #fff;
  font-weight: 700;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  letter-spacing: 0.5px;
  text-shadow: 0 0 6px rgba(255,255,255,0.3);
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}
[data-theme="light"] .game-project-time {
  color: #111827;
  font-weight: 700;
  text-shadow: none;
}
.game-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tech-tag {
  padding: 4px 12px;
  font-size: 11px;
  color: var(--accent-purple);
  background: rgba(155, 89, 255, 0.08);
  border: 1px solid rgba(155, 89, 255, 0.2);
  border-radius: 12px;
  font-family: "SF Mono", "Fira Code", monospace;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease,
              background 0.3s ease;
}
.tech-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(155, 89, 255, 0.25);
  background: rgba(155, 89, 255, 0.18);
}
.game-project-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
  transition: color 0.35s ease;
}
.game-card:hover .game-project-desc {
  color: var(--text-primary);
}
.game-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
/* 游戏功能标签 — 渐变淡入方块 */
.game-flip-card {
  min-height: 70px;
  cursor: default;
}
.game-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 70px;
}
.game-flip-front,
.game-flip-back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s ease,
              border-color 0.3s ease;
}
.game-flip-front {
  background: var(--bg-card);
  flex-direction: column;
  gap: 4px;
  padding: 12px 8px;
  opacity: 1;
}
.game-flip-card:hover .game-flip-front,
.game-flip-card.clicked-flip .game-flip-front {
  background: rgba(155, 89, 255, 0.08);
  border-color: rgba(155, 89, 255, 0.25);
  opacity: 0;
  pointer-events: none;
}
.game-flip-back {
  background: var(--bg-card);
  padding: 10px 12px;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
}
.game-flip-card:hover .game-flip-back,
.game-flip-card.clicked-flip .game-flip-back {
  background: rgba(155, 89, 255, 0.1);
  border-color: rgba(155, 89, 255, 0.25);
  opacity: 1;
  pointer-events: auto;
}
.game-flip-back p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: center;
  margin: 0;
  transition: color 0.35s ease;
}
.game-flip-card:hover .game-flip-back p,
.game-flip-card.clicked-flip .game-flip-back p {
  color: var(--text-primary);
}
.game-flip-front strong {
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}
.game-flip-front .feature-icon { font-size: 18px; flex-shrink: 0; }
/* 游戏媒体区域 */
.game-media {
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.game-media:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.12);
}
.game-video {
  width: 100%;
  display: block;
  background: #000;
  border-radius: var(--radius-md);
}
.game-download-area {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.game-download-btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 13px;
  color: white;
  background: #00d474;
  border-radius: 20px;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease,
              filter 0.3s ease;
  font-weight: 600;
}
[data-theme="light"] .game-download-btn {
  background: #059669;
}
.game-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 212, 116, 0.5);
  filter: brightness(1.1);
}
[data-theme="light"] .game-download-btn:hover {
  box-shadow: 0 6px 24px rgba(5, 150, 105, 0.45);
}
.game-file-info {
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .game-features { grid-template-columns: 1fr 1fr; }
  .game-project-header { flex-direction: column; }
}
.project-card {
  padding: 20px;
  margin-top: 12px;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.45s ease,
              border-color 0.45s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}
.project-card:hover .project-details li,
.project-card:hover .project-name {
  color: var(--text-primary);
  transition: color 0.35s ease;
}

.project-header {
  margin-bottom: 18px;
}

.project-title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.project-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 0;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.project-role {
  font-size: 13px;
  font-weight: 600;
  color: #a78bfa;
  background: rgba(155, 89, 255, 0.12);
  padding: 3px 12px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
[data-theme="light"] .project-role {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
}

.project-time {
  font-size: 15px;
  color: #fff;
  font-weight: 700;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  letter-spacing: 0.5px;
  text-shadow: 0 0 6px rgba(255,255,255,0.3);
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}
[data-theme="light"] .project-time {
  color: #111827;
  font-weight: 700;
  text-shadow: none;
}

.project-details {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-details li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.project-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-red);
  opacity: 0.7;
}

.project-attach {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.project-attach-link {
  display: inline-block;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  background: #00d474;
  border-radius: 20px;
  text-decoration: none;
  transition: var(--transition);
}
[data-theme="light"] .project-attach-link {
  background: #059669;
}

.project-attach-link:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 212, 116, 0.5);
}
[data-theme="light"] .project-attach-link:hover {
  box-shadow: 0 6px 22px rgba(5, 150, 105, 0.45);
}

.project-attach-info {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- Cognition Grid ---------- */
.cognition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cognition-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.45s ease,
              border-color 0.45s ease,
              background 0.45s ease;
}
.cognition-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.14);
}
.cognition-card:hover .cognition-desc {
  color: var(--text-primary);
  transition: color 0.35s ease;
}

.cognition-card-title {
  padding: 14px 16px 0;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cognition-img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  display: block;
  margin-top: 12px;
  background: transparent;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.cognition-img:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

.cognition-desc {
  padding: 12px 16px 16px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Masonry ---------- */
.masonry { columns: 3; column-gap: 16px; }

.masonry-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease;
}
.masonry-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
  z-index: 2;
}

.masonry-item img,
.masonry-item video {
  width: 100%;
  display: block;
  border-radius: var(--radius-md);
}

.masonry-video-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  pointer-events: none;
  z-index: 1;
  backdrop-filter: blur(4px);
}

.masonry-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 12px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  pointer-events: none;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  backdrop-filter: blur(8px);
}

.lightbox.open { display: flex; animation: fadeIn 0.3s ease; }

.lightbox-img-wrapper {
  max-width: 90vw; max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%; max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-video {
  max-width: 90vw; max-height: 80vh;
  border-radius: var(--radius-sm);
}

.lightbox-caption {
  margin-top: 16px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  width: 40px; height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }

.lightbox-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-nav:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter { position: absolute; bottom: 24px; font-size: 13px; color: rgba(255, 255, 255, 0.5); }

/* ---------- Animation ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 移除默认动画，统一用 reveal 滚动触发 */
.block-card { }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }

::selection { background: rgba(56, 189, 248, 0.3); color: var(--text-primary); }

/* ========================================
   互动功能新增样式
   ======================================== */

/* ========================================
   互动功能 v3 — 永久展开 / 翻转卡 / 点击展开
   ======================================== */

/* ---------- 翻转卡（hover翻转，离开复原） ---------- */
.flip-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.flip-card {
  min-height: 160px;
  cursor: default;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 160px;
}
.flip-card-face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1px solid var(--border-color);
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.flip-card-front {
  background: var(--bg-card);
  flex-direction: column;
  gap: 12px;
  opacity: 1;
  text-align: center;
  transition: background 0.3s ease, opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.flip-card:hover .flip-card-front,
.flip-card.clicked-flip .flip-card-front {
  background: rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
}
.flip-card-back {
  background: var(--bg-card);
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  justify-content: flex-start;
  padding: 18px 20px;
  opacity: 0;
  pointer-events: none;
  transition: background 0.3s ease, opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.flip-card:hover .flip-card-back,
.flip-card.clicked-flip .flip-card-back {
  background: rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 1;
  pointer-events: auto;
}
.flip-card-back p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  text-align: center;
  margin: 0;
  transition: color 0.35s ease;
}
.flip-card:hover .flip-card-back p {
  color: var(--text-primary);
}
.flip-card-back .flip-card-img {
  margin-top: 6px;
  max-height: 100px;
}
.flip-card-icon {
  font-size: 32px;
  flex-shrink: 0;
  animation: firePulse 2s ease-in-out infinite;
  line-height: 1;
}
.flip-card-front strong {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.5;
  display: block;
  text-align: center;
}
.flip-card-img {
  max-height: 110px;
  max-width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}
.flip-card-img:hover {
  filter: brightness(1.1);
  transform: scale(1.03);
}
.flip-card-caption {
  font-size: 11px;
  color: var(--text-muted);
}

@keyframes firePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@media (max-width: 768px) {
  .flip-cards-row { grid-template-columns: 1fr; }
}

/* ---------- 3D 卡片倾斜（已禁用） ---------- */
/* .sidebar-card.tilt-active 倾斜效果已停用，侧边栏保持固定不动 */

/* ---------- 打字机效果 ---------- */
.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.0em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.8s infinite;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ========================================
   卷轴铺展动画系统 v4
   三层互动：入场铺展 → 悬停抬起 → 点击展开
   ======================================== */

/* ------ 1. 卡片入场：从下方舒缓升起（大位移 + 长时 + 减速曲线） ------ */
.reveal {
  opacity: 0;
  transform: translateY(70px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ------ 2. 卡片内容逐层渐现（卷轴从上往下铺开） ------ */
.block-card.reveal.visible > .block-label {
  animation: cascadeDrop 0.55s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.block-card.reveal.visible > .expand-content {
  animation: cascadeDrop 0.55s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.block-card.reveal.visible .timeline,
.block-card.reveal.visible .skills-grid,
.block-card.reveal.visible .cert-list,
.block-card.reveal.visible .interests-grid,
.block-card.reveal.visible .douyin-header,
.block-card.reveal.visible .project-header,
.block-card.reveal.visible .advantage-cards-grid {
  animation: cascadeDrop 0.55s 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cascadeDrop {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 个人优势卡片 ---------- */
.advantage-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.advantage-hover-card {
  position: relative;
  padding: 16px 20px;
  background: var(--bg-card);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-height: 48px;
  transition: box-shadow 0.3s ease,
              border-color 0.3s ease,
              background 0.3s ease;
  overflow: hidden;
}
/* 优势卡片左侧彩色装饰条 + 微妙渐变背景 */
.advantage-hover-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 0 2px 2px 0;
  opacity: 0.6;
  transition: width 0.35s ease, opacity 0.35s ease;
}
.advantage-hover-card:nth-child(1)::before { background: #a78bfa; }
.advantage-hover-card:nth-child(2)::before { background: var(--accent-orange); }
.advantage-hover-card:nth-child(3)::before { background: var(--accent-teal); }
.advantage-hover-card:nth-child(4)::before { background: var(--accent-red); }
.advantage-hover-card:nth-child(5)::before { background: var(--accent-blue); }
.advantage-hover-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}
.advantage-hover-card:hover .advantage-detail-text {
  color: var(--text-primary);
  transition: color 0.35s ease;
}
.advantage-hover-card:hover::before { width: 5px; opacity: 1; }
[data-theme="light"] .advantage-hover-card:hover {
  background: rgba(0, 0, 0, 0.06);
}
.advantage-hover-card.sticky-expanded {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}
.advantage-big-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.advantage-hover-card:nth-child(1) .advantage-big-title { color: #a78bfa; }
.advantage-hover-card:nth-child(2) .advantage-big-title { color: #fb923c; }
.advantage-hover-card:nth-child(3) .advantage-big-title { color: #34d399; }
.advantage-hover-card:nth-child(4) .advantage-big-title { color: #f87171; }
.advantage-hover-card:nth-child(5) .advantage-big-title { color: #60a5fa; }
.advantage-hover-card.sticky-expanded .advantage-big-title {
  opacity: 0.8;
}
.advantage-detail-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease,
              opacity 0.3s ease,
              margin-top 0.3s ease;
  margin-top: 0;
}
.advantage-hover-card.sticky-expanded .advantage-detail-text {
  max-height: 600px;
  opacity: 1;
  margin-top: 14px;
}
@media (max-width: 768px) {
  .advantage-detail-text {
    max-height: 600px;
    opacity: 1;
    margin-top: 12px;
  }
  .advantage-hover-card .advantage-big-title {
    opacity: 0.8;
  }
}

/* ---------- 荣格八维+IQ 卷轴展开 ---------- */
.scroll-expand {
  overflow: hidden;
}
.scroll-expand .scroll-expand-arrow {
  display: inline-block;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 14px;
}
.scroll-expand .scroll-expand-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.85s cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
              margin-top 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  margin-top: 0;
}
.scroll-expand.unfurled .scroll-expand-content {
  max-height: 2000px;
  opacity: 1;
  margin-top: 16px;
}
.scroll-expand.unfurled .scroll-expand-arrow {
  transform: rotate(180deg);
}
@media (max-width: 768px) {
  .scroll-expand .scroll-expand-content {
    max-height: 2000px;
    opacity: 1;
    margin-top: 12px;
  }
  .scroll-expand.unfurled .scroll-expand-arrow {
    transform: rotate(180deg); /* 保持一致性 */
  }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 900px) {
  .sidebar-card {
    width: 100%;
    position: relative;
    top: auto; left: auto; bottom: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .sidebar-content {
    padding: 20px 16px;
  }

  .page-wrapper { flex-direction: column; padding-left: 0; }
  .main-content { margin-left: 0; margin-right: 0; padding: 0 20px 60px; }
  .hero-headline { font-size: 28px; }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-item { padding: 8px 14px; font-size: 13px; flex-shrink: 0; }

  .works-grid { grid-template-columns: 1fr; gap: 16px; }
  .masonry { columns: 2; column-gap: 10px; }
  .cognition-grid { grid-template-columns: 1fr; gap: 16px; }
  .block-card { padding: 18px; }
  .lightbox-nav { width: 36px; height: 36px; font-size: 18px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }

  .douyin-body { flex-direction: column; }

  /* 移动端：所有展开内容默认可见，动画简化 */
  .hover-expand .expand-content {
    max-height: 4000px; opacity: 1; margin-top: 16px;
  }
  .douyin-card.hover-expand .expand-content {
    max-height: 4000px; opacity: 1; margin-top: 24px;
  }
  .project-card.hover-expand .expand-content {
    max-height: 4000px; opacity: 1; margin-top: 16px;
  }
  .advantage-detail-text {
    max-height: 500px; opacity: 1; margin-top: 14px;
  }
  .advantage-hover-card .advantage-big-title {
    transform: translateY(-4px); opacity: 0.7;
  }
  .scroll-expand .scroll-expand-content {
    max-height: 2000px; opacity: 1; margin-top: 16px;
  }
  .reveal {
    opacity: 1; transform: none; transition: none;
  }
  .block-card.reveal.visible > .block-label,
  .block-card.reveal.visible > .expand-content,
  .block-card.reveal.visible .timeline,
  .block-card.reveal.visible .skills-grid,
  .block-card.reveal.visible .cert-list,
  .block-card.reveal.visible .interests-grid,
  .block-card.reveal.visible .douyin-header,
  .block-card.reveal.visible .project-header,
  .block-card.reveal.visible .advantage-cards-grid {
    animation: none; opacity: 1; transform: none;
  }
  .timeline-item { margin-left: 0; margin-right: 0; padding: 8px 12px 8px 28px; }
}

/* ========================================
   取消点击收纳 — 所有内容始终展开
   ======================================== */
.hover-expand { cursor: default; }
.hover-expand .expand-content {
  max-height: none !important;
  overflow: visible !important;
  opacity: 1 !important;
  margin-top: 20px !important;
}
.hover-expand .block-label::after { display: none; }

/* 抖音卡片 */
.douyin-card.hover-expand .expand-content {
  margin-top: 24px !important;
}

/* 项目卡片 */
.project-card.hover-expand .expand-content {
  margin-top: 18px !important;
}

/* scroll-expand（荣格八维+IQ） */
.scroll-expand { cursor: default; }
.scroll-expand .scroll-expand-content {
  max-height: none !important;
  overflow: visible !important;
  opacity: 1 !important;
  margin-top: 16px !important;
}
.scroll-expand .scroll-expand-arrow { display: none; }

/* 优势卡片 */
.advantage-hover-card { cursor: default; }
.advantage-hover-card .advantage-detail-text {
  max-height: none !important;
  overflow: visible !important;
  opacity: 1 !important;
  margin-top: 14px !important;
}
.advantage-hover-card .advantage-big-title {
  transform: translateY(-4px); opacity: 0.7;
}

@media (max-width: 480px) {
  .masonry { columns: 1; }
  .hero-headline { font-size: 24px; }
  .timeline-header { flex-direction: column; gap: 2px; }
}