/* 核心：纯黑基底 + 心灵杀手2胶片质感 */
body {
  margin: 0;
  background: transparent; /* 透明背景，使用我们创建的背景容器 */
  color: #f0f0f0;
  font-family: 'Courier New', Courier, monospace, "Times New Roman", serif;
  overflow-x: hidden;
  /* 页面过渡基础样式 */
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
  scroll-behavior: smooth; /* 全局平滑滚动 */
}

/* 页面跳转时的淡出样式 */
body.fade-out {
  opacity: 0;
}

/* -------------------------- 导航相关样式 -------------------------- */
.nav-icon-container {
  position: fixed;
  top: 30px;
  left: 40px;
  z-index: 15;
}
.nav-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 5px 0;
}
.icon-label {
  color: #f0f0f0;
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-shadow: 0 0 2px rgba(255,255,255,0.2);
}
.icon-line {
  width: 20px;
  height: 2px;
  background: #f0f0f0;
  border-radius: 1px;
  box-shadow: 0 0 3px rgba(255,255,255,0.3);
  transition: all 0.3s ease;
  position: relative;
}
.icon-line::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 0;
  width: 15px;
  height: 2px;
  background: #f0f0f0;
  border-radius: 1px;
  box-shadow: 0 0 3px rgba(255,255,255,0.3);
}
.nav-icon.active .icon-label {
  color: #c00000;
  text-shadow: 0 0 4px rgba(200,0,0,0.6);
}
.nav-icon.active .icon-line {
  background: #c00000;
  box-shadow: 0 0 4px rgba(200,0,0,0.8);
}
.nav-icon.active .icon-line::after {
  background: #c00000;
  box-shadow: 0 0 4px rgba(200,0,0,0.8);
  width: 20px;
  top: 0;
  transform: rotate(90deg);
}
.nav-dropdown {
  position: absolute;
  top: 40px;
  left: 0;
  width: 120px;
  background: rgba(0,0,0,0.98);
  border: 1px solid rgba(200,0,0,0.4);
  padding: 10px 0;
  border-radius: 0;
  box-shadow: 0 0 15px rgba(0,0,0,0.9);
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
.nav-dropdown.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.dropdown-item {
  display: block;
  padding: 12px 20px;
  color: #f0f0f0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
}
.dropdown-item:hover,
.dropdown-item.active {
  background: rgba(200,0,0,0.15);
  color: #c00000;
  border-left: 2px solid #c00000;
  padding-left: 25px;
  text-shadow: 0 0 3px rgba(200,0,0,0.6);
}
.nav-bar {
  position: fixed;
  top: 30px;
  right: 40px;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  gap: 60px;
  padding: 0 20px;
  background: transparent;
  border: none;
}
.nav-item {
  color: #f0f0f0;
  font-family: 'Courier New', Courier, monospace;
  font-size: 15px;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 5px 0;
  position: relative;
  transition: all 0.3s ease;
  font-weight: 500;
  text-shadow: 0 0 2px rgba(255,255,255,0.2);
}
.nav-item:hover {
  color: #c00000;
  text-shadow: 0 0 6px rgba(200,0,0,0.6);
  animation: navGlitch 0.5s linear;
}
@keyframes navGlitch {
  0% {transform: translateX(0);}
  25% {transform: translateX(-1px) skewX(1deg);}
  50% {transform: translateX(1px) skewX(-1deg);}
  75% {transform: translateX(-0.5px);}
  100% {transform: translateX(0);}
}
.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #c00000;
  box-shadow: 0 0 3px rgba(200,0,0,0.6);
}

/* -------------------------- 首页核心样式 -------------------------- */
.hero {
  position: relative;
  height: 100vh;
  padding: 0 8vw;
  display: flex;
  align-items: center;
  /* 移除overflow:hidden，确保雾气可以显示在整个页面 */
  background: transparent; /* 改为透明背景，让雾气可见 */
  animation: cameraShake 15s ease-in-out infinite alternate;
  box-sizing: border-box;
  z-index: 1; /* 设置hero的层级，确保雾气可以显示在其上方 */
}
@keyframes cameraShake {
  0% {transform: translate(0px, 0px) rotate(0.02deg);}
  25% {transform: translate(0.5px, 0.3px) rotate(-0.03deg);}
  50% {transform: translate(-0.3px, -0.2px) rotate(0.01deg);}
  75% {transform: translate(0.2px, -0.4px) rotate(-0.02deg);}
  100% {transform: translate(-0.4px, 0.1px) rotate(0.03deg);}
}
.fog {
  position: absolute;
  inset: -50%;
  background: transparent; /* 移除本地雾气，使用全局雾气 */
  animation: none; /* 移除本地动画 */
  z-index: 1;
  opacity: 0; /* 隐藏本地雾气 */
}
@keyframes fogBreath {
  0% {opacity: 0.9; transform: scale(1.0) translate(0, 0);}
  50% {opacity: 1; transform: scale(1.15) translate(5px, -3px);}
  100% {opacity: 0.9; transform: scale(1.0) translate(0, 0);}
}
@keyframes fogDrift {
  0% {transform: translateX(-7%) translateY(-4%) scale(1.05);}
  50% {transform: translateX(3%) translateY(2%) scale(1.08);}
  100% {transform: translateX(4%) translateY(-3%) scale(1.06);}
}
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.12) 0px, transparent 1px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.09) 0px, transparent 1px);
  animation: grainFlicker 0.2s linear infinite alternate;
  opacity: 0.1;
  z-index: 3;
}
@keyframes grainFlicker {
  from {transform: translate(0px, 0px);}
  to {transform: translate(1px, 1px);}
}
.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.18) 50%);
  background-size: 100% 2px;
  z-index: 4;
  opacity: 0.18;
}
.content {
  position: relative;
  z-index: 6; /* 提升层级，确保内容在手电/雾气之上 */
  max-width: 700px;
  padding: 4vw 0;
  background: transparent;
  box-shadow: none;
  transform: rotate(-0.3deg);
  border: none;
}
.chapter {
  font-size: 16px;
  letter-spacing: .8em;
  color: #c00000;
  margin-bottom: 50px;
  text-transform: uppercase;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(200,0,0,0.6);
  opacity: 1;
}
.title-en {
  font-size: clamp(56px,8vw,110px);
  font-weight: 900;
  letter-spacing: .25em;
  margin: 0 0 18px 0;
  color: #ffffff;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  animation: textWarp 8s ease-in-out infinite alternate;
  line-height: 1.2;
}
@keyframes textWarp {
  0% {transform: skewX(0.5deg);}
  50% {transform: skewX(-0.3deg);}
  100% {transform: skewX(0.2deg);}
}
.title-cn {
  font-size: clamp(26px,2.8vw,40px);
  letter-spacing: .6em;
  color: #c00000;
  margin: 0 0 56px 4px;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(200,0,0,0.5);
}
.monologue {
  font-size: 16px;
  line-height: 2.2;
  color: rgba(255,255,255,.8);
  margin: 0 0 32px 0;
  animation: textGlitch 12s linear infinite alternate;
}
.monologue.cn {
  color: rgba(255,255,255,.6);
  font-size: 14px;
  letter-spacing: .15em;
  line-height: 2.3;
  animation: lineFade 4s ease forwards 1s;
  opacity: 0;
}
.title-en, .title-cn, .monologue, .monologue.cn {
  animation: fadeUp 2.5s ease forwards;
  opacity: 0;
}
.title-en { animation-delay: 0.5s; }
.title-cn { animation-delay: 1s; }
.monologue { animation-delay: 1.5s; }
.monologue.cn { animation-delay: 2s; }
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(2px) sepia(0.1);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0) sepia(0.05);
  }
}
@keyframes textGlitch {
  0%, 94% {transform: none; color: rgba(255,255,255,.8);}
  95% {transform: translateX(-1px) skewX(1deg); color: #ffffff;}
  96% {transform: translateX(1px) skewX(-1deg); color: #eeeeee;}
  97% {transform: translateX(-0.5px) skewX(0.5deg); color: #dddddd;}
  98% {transform: none; color: rgba(255,255,255,.8);}
}
@keyframes lineFade {
  from {opacity:0; transform: translateY(15px);}
  to {opacity:1; transform: none;}
}

/* -------------------------- 单页多内容区核心样式 -------------------------- */
.page-section {
  /* 移除display: none，改为正常显示，支持滚动 */
  min-height: 100vh;
  box-sizing: border-box;
  /* 移除滚动吸附，避免可能的视觉跳动 */
  /* scroll-snap-align: start; */
  position: relative;
  z-index: 1; /* 降低层级，确保雾气可以显示在其上方 */
  /* 消除任何可能导致分界线的样式 */
  background: transparent !important; /* 改为透明背景，让雾气可见 */
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  overflow: visible;
  transform: none !important;
}

/* 页面内容容器样式 */
.page-section > div {
  /* 为内容添加优雅的渐入效果 */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* 当页面滚动到视口时，内容渐入 */
.page-section.visible > div {
  opacity: 1;
  transform: translateY(0);
}
/* 移除active的display:block，改为默认显示 */
.about-content {
  padding: 8vw;
  transform: rotate(-0.3deg);
  max-width: 100%;
  position: relative;
  z-index: 6; /* 确保关于我内容在雾气/手电之上 */
}

/* 关于我姓名样式 */
.about-name {
  display: block;
  font-size: clamp(16px,2vw,24px);
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
  font-weight: 400;
  opacity: 1 !important;
  animation: fadeUp 2.5s ease forwards 1.5s !important;
  margin-bottom: 30px;
  margin-top: -10px;
  line-height: 1;
}

/* 技能展示模块 */
.skills-section {
  margin-top: 80px;
  opacity: 1 !important;
  animation: fadeUp 2.5s ease forwards 2.5s !important;
}

/* 确保技能网格不受容器限制 */
.about-content .skills-section {
  max-width: none;
  width: 100%;
}
.about-content .title-en {
  font-size: clamp(56px,8vw,110px);
  font-weight: 900;
  letter-spacing: .25em;
  margin: 0 0 18px 0;
  color: #ffffff;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  animation: textWarp 8s ease-in-out infinite alternate;
  line-height: 1.2;
  opacity: 1 !important;
  animation: fadeUp 2.5s ease forwards 0.5s, textWarp 8s ease-in-out infinite alternate 3s !important;
}
.about-content .title-cn {
  font-size: clamp(26px,2.8vw,40px);
  letter-spacing: .6em;
  color: #c00000;
  margin: 0 0 40px 4px;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(200,0,0,0.5);
  opacity: 1 !important;
  animation: fadeUp 2.5s ease forwards 1s !important;
}
.about-content .monologue.cn {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,.8);
  letter-spacing: 0.05em;
  margin-bottom: 60px;
  opacity: 1 !important;
  animation: fadeUp 2.5s ease forwards 2s !important;
  text-shadow: 0 0 2px rgba(255,255,255,0.1);
  max-width: 800px;
  display: block;
}

/* 技能展示模块样式 */
.skills-section {
  margin-top: 80px;
  opacity: 1 !important;
  animation: fadeUp 2.5s ease forwards 2.5s !important;
}

.skills-title {
  font-size: clamp(28px,3vw,42px);
  color: #ffffff;
  letter-spacing: 0.2em;
  margin-bottom: 15px;
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: 0 0 5px rgba(255,255,255,0.3);
}

.skills-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
  margin-bottom: 60px;
  line-height: 1.6;
}

/* 技能网格布局 */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
  width: 100%;
  max-width: none;
}

/* 技能分类 */
.skills-category {
  width: 100%;
  box-sizing: border-box;
  background: rgba(20,20,20,0.8);
  border: 1px solid rgba(200,0,0,0.3);
  border-radius: 8px;
  padding: 30px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.skills-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(200,0,0,0.2);
  border-color: rgba(200,0,0,0.5);
}

.category-title {
  font-size: 18px;
  color: #c00000;
  letter-spacing: 0.2em;
  margin-bottom: 30px;
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(200,0,0,0.5);
}

/* 技能列表 */
.skills-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* 单个技能项 */
.skill-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-name {
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}

.skill-percentage {
  font-size: 16px;
  color: #c00000;
  font-weight: 700;
  text-shadow: 0 0 4px rgba(200,0,0,0.6);
}

.skill-description {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  line-height: 1.5;
}

/* 技能条容器 */
.skill-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(50,50,50,0.8);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

/* 技能条 - 创意样式 */
.skill-bar {
  height: 100%;
  background: linear-gradient(90deg, #c00000 0%, #ff3333 100%);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  animation: skillFill 2s ease forwards 3s;
  transform-origin: left center;
}

/* 技能条动画 */
@keyframes skillFill {
  from {
    width: 0;
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* 技能条发光效果 */
.skill-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: skillShine 2s infinite;
}

@keyframes skillShine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* 学习路径和未来发展方向模块样式 */
.learning-path-section {
  margin-top: 120px;
  padding: 0;
  opacity: 1 !important;
  animation: fadeUp 2.5s ease forwards 3s !important;
}

/* 模块标题样式 */
.section-title {
  font-size: clamp(28px,3vw,42px);
  color: #ffffff;
  letter-spacing: 0.2em;
  margin-bottom: 15px;
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: 0 0 5px rgba(255,255,255,0.3);
}

.section-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.1em;
  margin-bottom: 60px;
  line-height: 1.6;
}

/* 路径标题样式 */
.path-title {
  font-size: 20px;
  color: #c00000;
  letter-spacing: 0.2em;
  margin-bottom: 40px;
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(200,0,0,0.5);
}

/* 学习路径与未来方向主容器 */
.path-direction-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

/* 学习路径网格布局 */
.learning-path-chart {
  padding: 40px;
}

/* 网格布局容器 */
.chart-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
  height: 350px;
}

/* 网格项 */
.chart-grid-item {
  padding: 25px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.chart-grid-item:hover {
  transform: translateX(10px) scale(1.03);
}

/* 图表年份 */
.chart-year {
  font-size: 14px;
  color: #c00000;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  font-weight: 600;
}

/* 图表阶段 */
.chart-stage {
  font-size: 18px;
  color: #ffffff;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  font-weight: 700;
}

/* 图表描述 */
.chart-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  letter-spacing: 0.05em;
  margin: 0;
  flex: 1;
}

/* 未来方向列表 */
.future-direction-list {
  padding: 40px;
}

/* 方向项 */
.direction-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 35px;
  transition: all 0.3s ease;
}

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

.direction-item:hover {
  transform: translateX(10px) scale(1.03);
}

/* 方向图标 */
.direction-icon {
  font-size: 24px;
  color: #c00000;
  margin-top: 2px;
  flex-shrink: 0;
}

/* 方向内容 */
.direction-content {
  flex: 1;
}

/* 方向标题 */
.direction-title {
  font-size: 16px;
  color: #ffffff;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

/* 方向描述 */
.direction-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  letter-spacing: 0.05em;
  margin: 0;
}

/* 底部技术方向卡片容器 */
.tech-direction-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

/* 技术卡片 */
.tech-card {
  padding: 35px;
  transition: all 0.3s ease;
}

.tech-card:hover {
  transform: translateX(10px) scale(1.03);
}

/* 技术图标 */
.tech-icon {
  font-size: 36px;
  margin-bottom: 20px;
  display: block;
}

/* 技术标题 */
.tech-title {
  font-size: 18px;
  color: #ffffff;
  letter-spacing: 0.1em;
  margin-bottom: 15px;
  font-weight: 600;
  margin: 0 0 15px 0;
}

/* 技术描述 */
.tech-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  letter-spacing: 0.05em;
  margin: 0;
}

/* TA卡片 */
.ta-card {
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 30px;
  transition: all 0.3s ease;
}

.ta-card:hover {
  transform: translateX(10px) scale(1.03);
}

/* TA图标 */
.ta-icon {
  font-size: 48px;
  flex-shrink: 0;
}

/* TA内容 */
.ta-content {
  flex: 1;
}

/* TA标题 */
.ta-title {
  font-size: 24px;
  color: #ffffff;
  letter-spacing: 0.1em;
  margin-bottom: 15px;
  font-weight: 700;
  margin: 0 0 15px 0;
}

/* TA描述 */
.ta-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  letter-spacing: 0.05em;
  margin: 0;
}

/* 确保非首次访问时动画被禁用 */
body.not-first-visit .learning-path-section,
body.not-first-visit .section-title,
body.not-first-visit .section-subtitle,
body.not-first-visit .path-title,
body.not-first-visit .chart-grid-item,
body.not-first-visit .direction-item,
body.not-first-visit .tech-card,
body.not-first-visit .ta-card {
  animation: none !important;
  opacity: 1 !important;
}

/* 移动端适配 */
@media (max-width: 1024px) {
  /* 调整主容器为单列 */
  .path-direction-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  /* 调整技术方向卡片为2列 */
  .tech-direction-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .skills-category {
    padding: 25px;
  }
  
  /* 学习路径网格布局移动端适配 */
  .learning-path-chart,
  .future-direction-list {
    padding: 25px;
  }
  
  .chart-grid-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    gap: 25px;
  }
  
  .chart-grid-item {
    padding: 20px;
  }
  
  /* 技术方向卡片移动端适配 */
  .tech-direction-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .tech-card {
    padding: 25px;
  }
  
  /* TA卡片移动端适配 */
  .ta-card {
    flex-direction: column;
    text-align: center;
    padding: 30px 25px;
  }
  
  .ta-icon {
    font-size: 40px;
  }
}

/* 小屏手机优化 */
@media (max-width: 480px) {
  .path-direction-container {
    gap: 30px;
  }
  
  .learning-path-chart,
  .future-direction-list {
    padding: 20px;
  }
  
  .chart-item {
    padding: 20px;
  }
  
  .chart-stage {
    font-size: 16px;
  }
  
  .tech-card {
    padding: 20px;
  }
  
  .tech-icon {
    font-size: 30px;
  }
  
  .ta-card {
    padding: 25px 20px;
  }
}

/* -------------------------- 兼容样式：确保内容不被雾气/手电遮挡 -------------------------- */
.cases-container {
  position: relative;
  z-index: 6; /* 作品集内容层级提升 */
}

/* -------------------------- 移动端适配 -------------------------- */
@media (max-width: 768px) {
  /* 优化导航栏和音频控件位置 */
  .nav-icon-container {
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
  }
  .icon-label {
    font-size: 12px;
  }
  .icon-line {
    width: 18px;
  }
  .icon-line::after {
    width: 13px;
  }
  .nav-dropdown {
    width: 100px;
    top: 35px;
    left: -10px;
  }
  .dropdown-item {
    font-size: 12px;
    padding: 10px 15px;
  }
  .dropdown-item:hover {
    padding-left: 20px;
  }
  /* 移除右上角导航栏，简化移动端导航 */
  .nav-bar {
    display: none;
  }
  /* 优化音频控件位置，避免遮挡导航 */
  .audio-control {
    margin-left: 15px !important;
    padding: 8px 12px !important;
  }
  .audio-control img {
    width: 20px !important;
    height: 20px !important;
  }
  /* 优化首页内容 */
  .content {
    padding: 6vw 0;
    transform: rotate(-0.5deg);
  }
  .title-en {
    letter-spacing: .18em;
    font-size: clamp(40px, 10vw, 80px);
  }
  .chapter {
    font-size: 14px;
    letter-spacing: .6em;
  }
  /* 优化视觉效果，减少移动端性能消耗 */
  .grain {
    opacity: 0.1;
    background-size: 2px 2px;
  }
  .scanlines {
    opacity: 0.15;
  }
  /* 优化移动端单页内容区 */
  .about-content {
    padding: 10vw 5vw;
  }
  /* 优化移动端打字机效果 */
  .typewriter {
    font-size: 14px;
    line-height: 1.8;
  }
  .typewriter .typewriter-text {
    letter-spacing: 0.05em;
  }
  /* 优化相机抖动动画，减少移动端性能消耗 */
  .hero {
    animation: cameraShake 20s ease-in-out infinite alternate;
  }
}

/* 小屏手机优化 */
@media (max-width: 480px) {
  .nav-icon-container {
    top: 15px;
    left: 15px;
  }
  .audio-control {
    margin-left: 10px !important;
    padding: 6px 10px !important;
  }
  .audio-control img {
    width: 18px !important;
    height: 18px !important;
  }
  /* 进一步减少粒子数量和视觉效果，优化性能 */
  .grain {
    opacity: 0.08;
    background-image: none;
  }
  .scanlines {
    opacity: 0.1;
  }
  /* 优化内容边距 */
  .content {
    padding: 8vw 5vw;
  }
  .hero {
    padding: 0 5vw;
  }
  .chapter {
    margin-bottom: 30px;
  }
  .title-en {
    font-size: clamp(32px, 12vw, 70px);
    margin-bottom: 12px;
  }
  .title-cn {
    font-size: clamp(20px, 5vw, 32px);
    margin-bottom: 30px;
  }
  /* 优化导航下拉菜单 */
  .nav-dropdown {
    width: 90px;
    top: 32px;
    left: -15px;
  }
  .dropdown-item {
    font-size: 11px;
    padding: 8px 12px;
  }
}

/* -------------------------- 经历模块样式 -------------------------- */
/* 经历内容容器 */
.experience-content {
  padding: 8vw;
  transform: rotate(-0.3deg);
  max-width: 100%;
  position: relative;
  z-index: 6;
}

/* 经历介绍文字 */
.experience-intro {
  max-width: 600px;
  margin-bottom: 60px;
  opacity: 1 !important;
  animation: fadeUp 2.5s ease forwards 1s !important;
}

/* 筛选按钮容器 */
.experience-filters {
  display: flex;
  gap: 20px;
  margin-bottom: 60px;
  justify-content: center;
}

/* 筛选按钮 */
.filter-btn {
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid rgba(200, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.8);
  padding: 10px 25px;
  font-size: 14px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  text-transform: uppercase;
}

.filter-btn:hover {
  background: rgba(30, 30, 30, 0.9);
  border-color: #c00000;
  color: #ffffff;
}

.filter-btn.active {
  background: rgba(200, 0, 0, 0.2);
  border-color: #c00000;
  color: #c00000;
  box-shadow: 0 0 10px rgba(200, 0, 0, 0.3);
}

/* 时间轴容器 */
.timeline-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 时间轴中心线 */
.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #c00000, rgba(200, 0, 0, 0.3));
  transform: translateX(-50%);
  z-index: 1;
}

/* 时间轴项 */
.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
  opacity: 1 !important;
  animation: fadeUp 1s ease forwards;
}

/* 时间轴内容 */
.timeline-content {
  background: transparent;
  border: none;
  padding: 30px;
  width: 45%;
  transition: all 0.3s ease;
  backdrop-filter: none;
  position: relative;
}

.timeline-content.left {
  margin-right: auto;
  margin-left: 0;
  text-align: right;
}

.timeline-content.right {
  margin-left: auto;
  margin-right: 0;
  text-align: left;
}

.timeline-content:hover {
  transform: scale(1.02);
  box-shadow: none;
}

/* 时间轴标签容器 - 调整为居中显示 */
.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

/* 时间轴标记 */
.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 3;
  animation: breathe 2s ease-in-out infinite;
}

/* 呼吸动画 */
@keyframes breathe {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    filter: drop-shadow(0 0 5px rgba(200, 0, 0, 0.5));
  }
  50% {
    transform: translateX(-50%) scale(1.2);
    filter: drop-shadow(0 0 15px rgba(200, 0, 0, 0.8));
  }
}

.timeline-marker:hover {
  animation: none;
  transform: translateX(-50%) scale(1.3);
  filter: drop-shadow(0 0 20px rgba(200, 0, 0, 1));
}

/* 不同类别的标记图标 */
.work-marker::before {
  content: '';
  background-image: url('../pic/work.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 32px;
  height: 32px;
  display: block;
}

.education-marker::before {
  content: '';
  background-image: url('../pic/education.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 32px;
  height: 32px;
  display: block;
}

.award-marker::before {
  content: '';
  background-image: url('../pic/prize.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 32px;
  height: 32px;
  display: block;
}

/* 时间轴日期 */
.timeline-date {
  font-size: 12px;
  color: #c00000;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
}

/* 时间轴标题 */
.timeline-title {
  font-size: 20px;
  color: #ffffff;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  font-weight: 700;
}

/* 时间轴公司 */
.timeline-company {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
  font-style: italic;
}

/* 时间轴描述 */
.timeline-description {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

/* 时间轴标签 */
.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: rgba(200, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.8);
  padding: 5px 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  border-radius: 15px;
  text-transform: uppercase;
}

/* 隐藏的时间轴项 */
.timeline-item.hidden {
  display: none;
}

/* 确保非首次访问时动画被禁用 */
body.not-first-visit .experience-content,
body.not-first-visit .experience-intro,
body.not-first-visit .timeline-item,
body.not-first-visit .filter-btn {
  animation: none !important;
  opacity: 1 !important;
}

/* 经历模块移动端适配 */
@media (max-width: 1024px) {
  /* 调整时间轴为单列布局 */
  .timeline-container::before {
    left: 30px;
  }
  
  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 50px;
  }
  
  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 80px !important;
    margin-right: 0 !important;
  }
  
  .timeline-marker {
    left: 30px;
    transform: none;
    animation: breathe 2s ease-in-out infinite;
  }
  
  @keyframes breathe {
    0%, 100% {
      transform: scale(1);
      filter: drop-shadow(0 0 5px rgba(200, 0, 0, 0.5));
    }
    50% {
      transform: scale(1.2);
      filter: drop-shadow(0 0 15px rgba(200, 0, 0, 0.8));
    }
  }
  
  .timeline-marker:hover {
    animation: none;
    transform: scale(1.3);
    filter: drop-shadow(0 0 20px rgba(200, 0, 0, 1));
  }
}

@media (max-width: 768px) {
  .experience-content {
    padding: 10vw 5vw;
  }
  
  .experience-filters {
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .filter-btn {
    padding: 8px 20px;
    font-size: 13px;
  }
  
  .timeline-content {
    padding: 25px;
    width: calc(100% - 70px);
    margin-left: 70px !important;
  }
  
  .timeline-container::before {
    left: 25px;
  }
  
  .timeline-marker {
    left: 25px;
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .experience-filters {
    gap: 10px;
  }
  
  .filter-btn {
    padding: 7px 15px;
    font-size: 12px;
  }
  
  .timeline-content {
    padding: 20px;
    width: calc(100% - 60px);
    margin-left: 60px !important;
  }
  
  .timeline-container::before {
    left: 20px;
  }
  
  .timeline-marker {
    left: 20px;
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  
  .timeline-title {
    font-size: 18px;
  }
  
  .timeline-company {
    font-size: 13px;
  }
  
  .timeline-description {
    font-size: 12px;
  }
  
  .tag {
    padding: 4px 10px;
    font-size: 10px;
  }
}