:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --dark: #111827;
  --gray: #4b5563;
  --light: #f9fafb;
  --accent: #10b981;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
  background-color: var(--dark);
  color: var(--light);
  line-height: 1.7;
  opacity: 1;
  transition: opacity 0.3s ease;
  position: relative;
  overflow-x: hidden;
  min-height: 100%;
  padding-bottom: 0;
  margin: 0;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 70% 80%, rgba(16, 185, 129, 0.15) 0%, transparent 60%);
  z-index: -2;
  pointer-events: none;
}

body.loaded {
  opacity: 1;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: all 0.3s ease;
  background-color: transparent;
}

.navbar.scrolled {
  background: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(15px);
  padding: 15px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo span {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  margin-right: 8px;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  opacity: 0.8;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: linear-gradient(to right, var(--primary), var(--accent));
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}

.nav-toggle span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: white;
  border-radius: 2px;
  transition: 0.25s ease-in-out;
}

.nav-toggle span:nth-child(1) {
  top: 0px;
}

.nav-toggle span:nth-child(2),
.nav-toggle span:nth-child(3) {
  top: 9px;
}

.nav-toggle span:nth-child(4) {
  top: 18px;
}

/* 主视觉区域 */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--dark);
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.4) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.4) 0%, transparent 40%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  padding: 0 20px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1, #10b981);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 20px;
  line-height: 1.1;
  animation: fadeUp 1s ease forwards 0.3s;
  opacity: 0;
  transform: translateY(20px);
}

.hero-subtitle {
  font-size: 1.4rem;
  color: var(--light);
  opacity: 0;
  margin-bottom: 40px;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards 0.6s;
}

.hero-btns {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards 0.9s;
}

/* 防止按钮抖动的重置样式 */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  margin: 0 10px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  color: white;
  text-decoration: none;
  overflow: hidden;
  border: none;
  /* 静态transition，避免多个过渡效果叠加 */
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  will-change: transform;
  /* 标准阴影 */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  /* 重要：禁用可能冲突的变换 */
  transform-style: flat !important;
  backface-visibility: visible !important;
  perspective: none !important;
}

/* 重置按钮内span的样式 */
.btn span {
  position: relative;
  z-index: 2;
  transform: none !important; 
  transition: none !important;
}

/* 禁用所有hover时的span变换 */
.btn:hover span {
  transform: none !important;
}

/* 清理按钮装饰类 */
.btn-3d, .hover-glow, .magnetic {
  transform: none !important;
  transition: none !important;
}

/* 主按钮静态样式 */
.btn-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}

/* 主按钮静态悬停样式 */
.btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
}

/* 轮廓按钮静态样式 */
.btn-outline {
  background: transparent;
  color: white;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3) inset;
}

/* 轮廓按钮静态悬停样式 */
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* 关于部分 */
.section {
  padding: 80px 0;
  position: relative;
  opacity: 0.95;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  overflow: hidden;
  background-color: var(--dark);
  color: var(--light);
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
  z-index: -1;
  opacity: 0.8;
  pointer-events: none;
}

.section.in-view {
  opacity: 1;
  transform: translateY(0);
}

.section:not(.section-dark) {
  background-color: var(--dark);
}

.section-dark {
  background: var(--dark);
  color: white;
  position: relative;
  overflow: hidden;
}

.section-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 70% 30%, rgba(99, 102, 241, 0.2) 0%, transparent 70%),
    radial-gradient(circle at 30% 70%, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
  z-index: -1;
  opacity: 0.5;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  display: inline-block;
  position: relative;
}

.section-title.light {
  color: var(--light);
}

.section-title::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  left: 0;
  bottom: -10px;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  margin-bottom: 40px;
  opacity: 0.8;
  max-width: 700px;
}

.about-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.skills-container {
  margin-top: 40px;
}

.skill-title {
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #a5b4fc;
}

/* 技能进度条样式 */
.skills-progress {
  margin-bottom: 30px;
}

.skill-progress-item {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.skill-progress-label {
  width: 120px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.skill-progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.skill-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(to right, var(--primary), var(--accent));
  background-size: 200% 100%;
  border-radius: 4px;
  transition: width 1.5s ease;
  animation: gradientMove 2s ease infinite;
}

.skill-progress-percent {
  width: 50px;
  text-align: right;
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  margin-left: 15px;
}

/* 项目部分 */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 30px;
  margin-top: 40px;
  position: relative;
  z-index: 2;
}

/* 新的简化3D卡片样式 */
.simple-3d-card {
  position: relative;
  background: rgba(30, 35, 50, 0.8);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(75, 85, 120, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.simple-3d-card:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(5deg) scale(1.05);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.simple-3d-card-content {
  transform: translateZ(10px);
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}

.simple-3d-card:hover .simple-3d-card-content {
  transform: translateZ(30px);
}

/* 项目卡片样式修复 */
.project-card {
  background: rgba(30, 35, 50, 0.9);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
  position: relative;
  top: 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
  will-change: transform;
  transition: all 0.3s ease-out;
  padding: 25px;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-content {
  position: relative;
  z-index: 1;
}

/* 项目标题样式 */
.project-title {
  font-size: 1.5rem;
  margin: 0.5rem 0;
  font-weight: 600;
  color: var(--light);
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  transition: all 0.3s ease;
}

.project-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
  transition: width 0.4s ease;
}

.project-card:hover .project-title::after {
  width: 100%;
}

/* 项目类别样式 */
.project-category {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 项目描述样式 */
.project-desc {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

/* 项目链接样式 */
.project-link {
  position: relative;
  display: inline-block;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding-bottom: 3px;
  padding-right: 22px; /* 为箭头留出空间 */
  transition: all 0.3s ease;
}

.project-link::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  opacity: 0.8;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.project-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.project-link:hover {
  color: var(--primary);
  text-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

.project-link:hover::after {
  transform: translate(5px, -50%);
  opacity: 1;
}

.project-link:hover::before {
  width: 100%;
}

/* 联系部分 */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 60px;
}

.contact-info {
  color: var(--light);
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  font-weight: 600;
}

.contact-item {
  display: flex;
  margin-bottom: 25px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.2rem;
  color: var(--accent);
  margin-right: 15px;
  flex-shrink: 0;
}

.contact-text h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  font-weight: 500;
}

.contact-text p {
  color: rgba(255, 255, 255, 0.7);
}

.contact-form {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 30px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: rgba(30, 35, 50, 0.6) !important;
  color: white;
  font-size: 1rem;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(30, 35, 50, 0.8) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.error-message {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 5px;
  display: none;
}

.form-success {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
  text-align: center;
  font-weight: 500;
  display: none;
}

.submit-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  transform: translateY(-3px);
}

/* 页脚 */
.footer {
  background: var(--dark);
  padding: 50px 0 20px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 70%),
    radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  z-index: -1;
  opacity: 0.3;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-gap: 40px;
  margin-bottom: 30px;
}

.footer-about {
  max-width: 400px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.footer-logo span {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  margin-right: 8px;
}

.footer-desc {
  color: #9ca3af;
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr;
}

.footer-title {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 3px;
  background: var(--primary);
  left: 0;
  bottom: -10px;
  border-radius: 2px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--light);
}

.footer-bottom {
  text-align: center;
  color: #9ca3af;
  font-size: 0.9rem;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 动画 */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式设计 */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease;
    z-index: 1000;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-toggle {
    display: block;
    z-index: 1001;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* 改进动画背景效果 */
.animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

/* 动画背景粒子 */
.animated-bg span {
  position: absolute;
  display: block;
  pointer-events: none;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  animation: moveBackground 35s linear infinite;
}

/* 为不同区块的粒子设置不同动画 */
.section:nth-child(odd) .animated-bg span {
  animation-direction: alternate-reverse;
}

.section:nth-child(even) .animated-bg span {
  animation-direction: alternate;
}

.section-dark .animated-bg span {
  background: rgba(255, 255, 255, 0.05);
  filter: blur(1px);
}

/* 修改粒子动画 */
@keyframes moveBackground {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
    opacity: 0.5;
    filter: blur(0px);
  }
  50% {
    opacity: 0.2;
    filter: blur(1px);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg) scale(0.2);
    opacity: 0;
    filter: blur(2px);
  }
}

/* 为页面添加微妙的晕影效果 */
.section:not(.section-dark)::after,
.section-dark::after {
  display: none;
}

/* 技能进度条效果增强 */
.skill-progress-fill {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  background-size: 200% 100%;
  animation: gradientMove 2s ease infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

/* 页面滚动指示器 */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  z-index: 9999;
  width: 0%;
  transition: width 0.1s ease;
  pointer-events: none;
}

/* 图像悬停效果 */
.img-hover {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, filter;
}

.img-hover:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* 文字渐变效果 */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* 浮动元素效果 */
.float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* 滚动平滑效果 */
html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--dark);
  overflow-x: hidden;
  overflow-y: auto;
  height: 100%;
  position: relative;
}

/* 防止滚动抖动修复 */
html, body {
  scroll-padding-bottom: 1px;
}

/* 改进链接悬停效果 */
a {
  transition: color 0.3s ease, opacity 0.3s ease;
}

/* 强化3D效果的特定类 */
.card-3d-effect {
  transform-style: preserve-3d !important;
  perspective: 1000px !important;
  transform: perspective(1000px) rotateX(2deg) rotateY(0deg) translateZ(0) scale3d(1, 1, 1) !important;
  transition: transform 0.4s cubic-bezier(0.17, 0.67, 0.3, 0.96), box-shadow 0.4s ease !important;
  will-change: transform, box-shadow !important;
}

.card-3d-effect:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(5deg) translateZ(10px) scale3d(1.05, 1.05, 1.05) !important;
}

/* 确保3D内容嵌套正确 */
.card-3d-effect > * {
  transform-style: preserve-3d;
}

/* 添加鼠标互动光效 */
.card-3d-effect::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 3;
  transform: translateZ(30px);
}

.card-3d-effect:hover::before {
  opacity: 1;
  transform: translate(var(--mouse-x, 0), var(--mouse-y, 0)) translateZ(30px);
}

/* 滚动显示动画效果 */
.animated {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.in-view .animated {
  opacity: 1;
  transform: translateY(0);
}

/* 页面主要部分动画延迟 */
.section:nth-child(2) {
  transition-delay: 0.1s;
}

.section:nth-child(3) {
  transition-delay: 0.2s;
}

.section:nth-child(4) {
  transition-delay: 0.3s;
}

/* 为已经进入视口的部分自动显示 */
.section:first-child .animated {
  opacity: 1;
  transform: translateY(0);
}

/* 内容强调效果 */
.highlight {
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background-color: rgba(99, 102, 241, 0.2);
  z-index: -1;
  transition: height 0.3s ease;
}

.highlight:hover::after {
  height: 100%;
}

/* 悬停光晕效果 */
.hover-glow {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hover-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 50%);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: -1;
  pointer-events: none;
}

.hover-glow:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* 导航链接效果增强 */
.nav-links a {
  position: relative;
}

.nav-links a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -10px;
  width: 5px;
  height: 5px;
  background: var(--primary);
  border-radius: 50%;
  transform: translateY(-50%) scale(0);
  opacity: 0;
  transition: all 0.3s ease;
}

.nav-links a:hover::before {
  transform: translateY(-50%) scale(1);
  opacity: 1;
}

/* 项目链接样式增强 */
.project-link::after {
  content: "→";
  position: relative;
  margin-left: 5px;
  transition: transform 0.3s ease;
  color: var(--accent);
}

.project-link:hover::after {
  transform: translateX(5px);
  color: var(--light);
} 