/* 
 * 朱涛个人网站 - 样式表
 * 模仿Apple官网风格的高级设计
 */

/* 重置和基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1d1d1f;
  --secondary-color: #86868b;
  --highlight-color: #2997ff;
  --background-color: #000000;
  --text-color: #f5f5f7;
  --section-spacing: 120px;
  --transition-slow: 0.7s cubic-bezier(0.4, 0.01, 0.165, 0.99);
  --transition-medium: 0.5s cubic-bezier(0.4, 0.01, 0.165, 0.99);
  --transition-fast: 0.3s cubic-bezier(0.4, 0.01, 0.165, 0.99);
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.5;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
}

a {
  text-decoration: none;
  color: var(--highlight-color);
  transition: opacity var(--transition-fast);
}

a:hover {
  opacity: 0.8;
}

img {
  max-width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 17px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all var(--transition-fast);
  letter-spacing: 0.5px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.25);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.5s;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--highlight-color), #0072ff);
  color: white;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

/* 英雄标题ZT样式 */
.hero-logo {
  font-size: 56px;
  font-weight: 700;
  margin-right: 10px;
  background: linear-gradient(
    to right,
    var(--text-color) 0%,
    var(--highlight-color) 50%,
    var(--text-color) 100%
  );
  background-size: 200% auto;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 3s linear infinite;
  display: inline-block;
}

/* 联系部分容器修改 */
.contact .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-container {
  padding: 0;
}

/* 确保所有section-header对齐 */
.section-header {
  text-align: center;
  margin-bottom: 50px;
  padding: 0 20px;
}

/* 媒体查询调整 */
@media screen and (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
  
  .hero-logo {
    font-size: 48px;
  }
}

/* 导航栏修复 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--transition-medium);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  padding: 0 40px;
  max-width: 1460px;
  margin: 0 auto;
}

.logo {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--text-color);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  font-size: 24px;
}

nav {
  display: block !important;
}

.nav-items {
  display: flex !important;
  gap: 30px;
  opacity: 1 !important;
  visibility: visible !important;
}

.nav-item {
  color: var(--text-color) !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition-fast);
  padding: 5px 10px;
  border-radius: 4px;
  opacity: 0.8;
  position: relative;
}

.nav-item:hover {
  opacity: 1;
  color: var(--highlight-color) !important;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--highlight-color);
  transition: width var(--transition-fast);
}

.nav-item:hover::after {
  width: 100%;
}

/* 英雄部分 */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 60px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 28px;
  line-height: 1.4;
  color: var(--secondary-color);
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s 0.4s forwards;
}

.hero-cta {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s 0.6s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  opacity: 0.8;
}

/* 关于部分 */
.about {
  padding: var(--section-spacing) 0;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

.about-content {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.about-title {
  font-size: 40px;
  margin-bottom: 20px;
}

.about-text {
  font-size: 18px;
  line-height: 1.6;
  color: var(--secondary-color);
  margin-bottom: 30px;
}

/* 新的关于亮点部分 */
.about-highlights {
  position: relative;
  opacity: 1;
  transform: none;
  padding: 40px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.about-highlights::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 100%
  );
  transform: rotate(30deg);
  z-index: 0;
  pointer-events: none;
}

.highlight-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.highlight-item {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  transition: transform var(--transition-medium), 
              box-shadow var(--transition-medium),
              background-color var(--transition-medium);
}

.highlight-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background: rgba(41, 151, 255, 0.1);
}

.highlight-number {
  display: block;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 5px;
  background: linear-gradient(45deg, var(--highlight-color), #66c1ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight-label {
  display: block;
  font-size: 14px;
  color: var(--secondary-color);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.tech-tag {
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
  transition: all var(--transition-fast);
  cursor: default;
}

.tech-tag:hover {
  background: var(--highlight-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(41, 151, 255, 0.3);
}

/* 打字机效果容器样式改进 */
.typewriter-container {
  margin-top: 30px;
  position: relative;
}

.typewriter-text {
  font-size: 20px;
  font-weight: 500;
  color: var(--highlight-color);
  min-height: 30px;
  position: relative;
  display: inline-block;
}

.typewriter-text::after {
  content: '|';
  position: absolute;
  right: -7px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
  .typewriter-container {
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }
  
  .typewriter-text {
    text-align: center;
  }
}

/* 粒子背景效果增强 */
.particles-container {
  display: none;
}

/* 毛玻璃效果 - 性能优化版 */
.glassmorphism {
  background: rgba(30, 30, 30, 0.5);
  backdrop-filter: blur(8px); /* 减少模糊半径 */
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  will-change: transform, opacity; /* 提高性能 */
}

/* 粒子背景效果 */
#particles-js {
  display: none;
}

/* 页面滚动指示器 */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--highlight-color), var(--accent-color));
  width: 0%;
  z-index: 9999;
  transition: width 0.3s ease-out;
}

/* 3D 效果 */
.hero-title, .about-title, .skills-title, .projects-title, .contact-title {
  transform-style: preserve-3d;
  perspective: 500px;
}

/* 响应式设计 */
@media screen and (max-width: 992px) {
  :root {
    --section-spacing: 80px;
  }
  
  .hero-title {
    font-size: 42px;
  }
  
  .hero-subtitle {
    font-size: 22px;
  }
  
  .about-container,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-image {
    order: -1;
  }
  
  .highlight-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .nav-items {
    position: fixed;
    top: 60px;
    right: -300px;
    width: 300px;
    height: calc(100vh - 60px);
    flex-direction: column;
    gap: 0;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 40px 0;
    transition: right var(--transition-medium);
  }
  
  .nav-items.active {
    right: 0;
  }
  
  .nav-item {
    padding: 15px 40px;
    font-size: 18px;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-logo {
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .highlight-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tech-tags {
    justify-content: center;
  }
}

@media screen and (max-width: 576px) {
  :root {
    --section-spacing: 60px;
  }
  
  .header-content {
    padding: 0 20px;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .highlight-container {
    grid-template-columns: 1fr;
  }
}

/* 动画类 */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.slide-in-left.active {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.slide-in-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* 渐变背景效果 */
.gradient-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  z-index: 0;
  background: linear-gradient(45deg, #000000, #1a1a1a);
}

/* 鼠标跟随效果 */
.cursor {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid var(--highlight-color);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.2s;
}

.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background-color: var(--highlight-color);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 10000;
  mix-blend-mode: difference;
}

.cursor-active {
  transform: translate(-50%, -50%) scale(1.5);
  background: rgba(var(--highlight-color-rgb), 0.1);
  border-width: 1px;
}

.cursor-dot-active {
  transform: translate(-50%, -50%) scale(0.5);
}

.cursor-click {
  transform: translate(-50%, -50%) scale(0.8);
  background: rgba(var(--highlight-color-rgb), 0.2);
}

/* 使原始鼠标透明 */
html {
  cursor: none;
}

/* 页面加载动画增强 */
.page-loader .loader-text {
  position: relative;
  overflow: hidden;
}

.page-loader .loader-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 闪亮文字效果 */
.shine-text {
  position: relative;
  display: inline-block;
  background: linear-gradient(
    to right,
    var(--text-color) 0%,
    var(--highlight-color) 50%,
    var(--text-color) 100%
  );
  background-size: 200% auto;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 3s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

/* 介绍部分高亮数字样式 */
.about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 2rem;
}

.highlight-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.highlight-item {
  text-align: center;
  flex: 1;
  min-width: 120px;
  padding: 1.5rem;
  background: rgba(var(--card-bg-rgb), 0.5);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.highlight-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.highlight-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, var(--highlight-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight-label {
  font-size: 1rem;
  color: var(--secondary-text-color);
}

/* 技术标签云 */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.5rem;
}

.tech-tag {
  padding: 8px 16px;
  background: rgba(var(--card-bg-rgb), 0.5);
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--secondary-text-color);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.tech-tag:hover {
  background: var(--highlight-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(var(--highlight-color-rgb), 0.4);
}

/* 打字机效果 */
.typewriter-container {
  height: 2rem;
  margin-top: 2rem;
  overflow: hidden;
}

.typewriter-text {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--highlight-color);
  border-right: 3px solid var(--highlight-color);
  padding-right: 5px;
  animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--highlight-color); }
}

/* 暗色模式切换按钮 */
.theme-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: background-color var(--transition-fast);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.theme-toggle-icon {
  color: var(--text-color);
  font-size: 24px;
}

/* 技能部分增强样式 */
.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--secondary-text-color);
  margin-bottom: 2rem;
  font-weight: 300;
  letter-spacing: 1px;
}

.skill-categories {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.skill-category {
  padding: 0.6rem 1.2rem;
  background: rgba(var(--card-bg-rgb), 0.5);
  border-radius: 30px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-category:hover {
  background: rgba(var(--highlight-color-rgb), 0.1);
  transform: translateY(-3px);
}

.skill-category.active {
  background: var(--highlight-color);
  color: white;
}

.skills-showcase {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: start;
}

.skills-chart {
  background: rgba(var(--card-bg-rgb), 0.3);
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 100px;
  height: 400px;
}

.skills-list {
  position: relative;
  min-height: 400px;
}

.skill-item {
  background: rgba(var(--card-bg-rgb), 0.3);
  border-radius: 18px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.skill-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(var(--highlight-color-rgb), 0.3);
}

.skill-icon {
  font-size: 2.5rem;
  color: var(--highlight-color);
  margin-bottom: 1rem;
  transition: all 0.3s;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--highlight-color-rgb), 0.1);
  border-radius: 50%;
}

.skill-content {
  flex: 1;
}

.skill-level {
  height: 8px;
  background: rgba(var(--text-color-rgb), 0.1);
  border-radius: 4px;
  margin: 0.5rem 0 1rem;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--highlight-color), var(--accent-color));
  border-radius: 4px;
  transition: width 1.5s ease-out;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.skill-tags span {
  padding: 0.3rem 0.8rem;
  background: rgba(var(--card-bg-rgb), 0.5);
  border-radius: 20px;
  font-size: 0.8rem;
  transition: all 0.3s;
}

.skill-tags span:hover {
  background: var(--highlight-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(var(--highlight-color-rgb), 0.3);
}

.skills-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.metric-item {
  text-align: center;
  padding: 2rem;
  background: rgba(var(--card-bg-rgb), 0.3);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s;
}

.metric-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.metric-value {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, var(--highlight-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-label {
  font-size: 1rem;
  color: var(--secondary-text-color);
}

/* 联系部分 */
.contact {
  position: relative;
  padding: 120px 0;
  background-color: var(--bg-color);
  overflow: hidden;
}

.contact-container {
  display: flex;
  justify-content: center;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-card {
  background: rgba(30, 30, 30, 0.7);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  padding: 40px;
  width: 100%;
  max-width: 700px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(45deg, rgba(41, 151, 255, 0.1), transparent, rgba(41, 151, 255, 0.1));
  z-index: -1;
  animation: gradient-shift 8s infinite alternate;
}

.contact-profile {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2997ff, #1e54e7);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 24px;
  position: relative;
}

.avatar-initials {
  color: white;
  font-size: 32px;
  font-weight: 600;
}

.avatar-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #2997ff, #1e54e7);
  filter: blur(15px);
  opacity: 0.5;
  z-index: -1;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  font-size: 28px;
  margin: 0 0 5px;
  color: #fff;
}

.contact-info p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 15px;
}

.contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.contact-link i {
  margin-right: 6px;
}

.contact-link:hover {
  background: rgba(41, 151, 255, 0.2);
  color: #fff;
  transform: translateY(-2px);
}

.contact-details {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icp-info {
  width: 100%;
  text-align: center;
  margin-bottom: 30px;
}

.icp-info p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

.contact-qrcode-container {
  text-align: center;
}

.contact-qrcode {
  width: 200px;
  height: 200px;
  margin: 0 auto 15px;
  position: relative;
  padding: 10px;
  background: white;
  border-radius: 10px;
}

.contact-qrcode img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 5px;
}

.qrcode-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  filter: blur(20px);
  opacity: 0.5;
  z-index: -1;
  border-radius: 10px;
}

.contact-qrcode-container p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

/* 资源加载失败的降级处理 */
.chart-fallback,
.particles-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  color: var(--text-color);
  font-size: 18px;
  padding: 30px;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.chart-fallback {
  height: 300px;
  margin-bottom: 30px;
}

.particles-fallback {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  background: transparent;
  border: none;
  opacity: 0.5;
}

/* 页脚样式调整 */
.footer {
  padding: 40px 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  text-align: center;
}

.footer-content p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 992px) {
  .skills-showcase {
    grid-template-columns: 1fr;
  }
  
  .skills-chart {
    position: relative;
    top: 0;
    margin-bottom: 2rem;
  }
}

/* 区块标题样式 */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section-subtitle {
  font-size: 18px;
  color: var(--secondary-color);
  max-width: 600px;
  margin: 0 auto;
}

/* 页面加载动画 */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-text {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 20px;
  background: linear-gradient(
    to right,
    var(--text-color) 0%,
    var(--highlight-color) 50%,
    var(--text-color) 100%
  );
  background-size: 200% auto;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 3s linear infinite;
}

.loader-spinner {
  font-size: 32px;
  color: var(--highlight-color);
}

/* 修复关于部分的高亮数字 */
.highlight-number {
  display: block !important;
  font-size: 36px !important;
  font-weight: 700 !important;
  margin-bottom: 5px !important;
  background: linear-gradient(45deg, var(--highlight-color), #66c1ff) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* 在触控设备上禁用自定义鼠标 */
@media (hover: none) and (pointer: coarse) {
  .cursor, .cursor-dot {
    display: none !important;
  }
  
  html {
    cursor: auto !important;
  }
}

/* 确保导航显示在移动设备上 */
@media screen and (max-width: 768px) {
  .nav-items {
    background-color: rgba(0, 0, 0, 0.95);
    position: fixed;
    top: 60px;
    right: 0;
    width: 100%;
    height: auto;
    padding: 20px 0;
    flex-direction: column;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  
  .nav-items.active {
    transform: translateX(0);
  }
  
  .nav-item {
    margin: 10px 0;
    padding: 10px 0;
    text-align: center;
    width: 100%;
  }
  
  .nav-toggle {
    display: block;
  }
}

/* 删除不需要的decoration-wave样式 */
.decoration-wave {
  display: none;
}

@media (max-width: 768px) {
  .contact-profile {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-avatar {
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .contact-social {
    justify-content: center;
  }
  
  .contact-card {
    padding: 30px 20px;
  }
}

/* 添加渐变背景替代装饰形状 */
body {
  background: linear-gradient(135deg, #000 0%, #121212 100%);
  position: relative;
  overflow-x: hidden;
}

/* 为主要区域添加轻微渐变背景效果 */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 20%, rgba(41, 151, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.about::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 70%, rgba(120, 80, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.skills::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 80%, rgba(255, 70, 130, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* 滚动指示器 */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--highlight-color), var(--accent-color));
  width: 0%;
  z-index: 9999;
  transition: width 0.3s ease-out;
}

/* 增强项目部分效果 */
.project-item {
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.project-image {
  overflow: hidden;
}

.project-image img {
  transition: transform 0.5s;
}

.project-info {
  transition: transform 0.3s, opacity 0.3s;
}

/* 增强技能部分效果 */
.skill-icon {
  transition: transform 0.3s, color 0.3s;
}

.skill-item:hover .skill-icon {
  color: var(--highlight-color);
}

/* 高亮数字特效 */
.highlight-number {
  transition: transform 0.3s, color 0.3s;
  position: relative;
  z-index: 1;
}

.highlight-item:hover .highlight-number {
  color: var(--highlight-color);
} 