/* 关于页面样式 */
:root {
  --primary-color: #4a6cf7;
  --secondary-color: #36cbcb;
  --bg-color: #f5f7fa;
  --card-bg: #ffffff;
  --text-color: #333333;
  --text-light: #666666;
  --border-radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 关于页面容器 */
.about-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 40px 0;
}

/* 英雄区域 */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 80px 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0); }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.avatar-container {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 40px;
  transform: translateY(-10px);
  z-index: 2;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 6px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(74, 108, 247, 0.2);
  transition: all 0.4s ease;
  display: block;
  z-index: 2;
}

.avatar-container:hover .avatar-img {
  box-shadow: 0 6px 20px rgba(74, 108, 247, 0.3);
}

.avatar-border {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px solid rgba(74, 108, 247, 0.3);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  z-index: 1;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.name {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
  background: linear-gradient(220.55deg, #D7003A 0%, #19087E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title {
  font-size: 1.4rem;
  margin-bottom: 25px;
  opacity: 0.9;
}

.description {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  opacity: 0.9;
}

/* 统计数据区 */
.stats-section {
  background: var(--card-bg);
  padding: 60px 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.stat-item {
  text-align: center;
  background: rgba(74, 108, 247, 0.05);
  border-radius: var(--border-radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(74, 108, 247, 0.2);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(220.55deg, #D7003A 0%, #19087E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* 通用section样式 */
.tech-section, .blog-section, .social-section {
  background: var(--card-bg);
  padding: 60px 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  background: linear-gradient(220.55deg, #D7003A 0%, #19087E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

/* 技术栈区 */
.tech-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.tech-category {
  background: #f8f9fa;
  padding: 30px;
  border-radius: var(--border-radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.category-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 10px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-tag {
  padding: 8px 16px;
  background: rgba(74, 108, 247, 0.1);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* 关于博客区 */
.blog-content {
  max-width: 800px;
  margin: 0 auto;
}

.blog-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 30px;
}

.blog-purposes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.purpose-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.purpose-item:hover {
  background: #e6f0ff;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.purpose-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.purpose-text {
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.6;
}

/* 社交链接区 */
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: #f8f9fa;
  color: var(--text-color);
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.social-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(74, 108, 247, 0.4);
}

.social-icon {
  font-size: 1.2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .about-container {
    gap: 30px;
    padding: 30px 0;
  }

  .hero-section {
    padding: 60px 20px;
  }

  .name {
    font-size: 2.5rem;
  }

  .title {
    font-size: 1.2rem;
  }

  .description {
    font-size: 1rem;
  }

  .avatar {
    width: 150px;
    height: 150px;
  }

  .stats-section, .tech-section, .blog-section, .social-section {
    padding: 40px 20px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .stats-grid, .tech-categories, .blog-purposes {
    grid-template-columns: 1fr;
  }

  .social-links {
    flex-direction: column;
    align-items: center;
  }

  .social-link {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section, .stats-section, .tech-section, .blog-section, .social-section {
  animation: fadeInUp 0.8s ease forwards;
}

.hero-section {
  animation-delay: 0.1s;
}

.stats-section {
  animation-delay: 0.3s;
}

.tech-section {
  animation-delay: 0.5s;
}

.blog-section {
  animation-delay: 0.7s;
}

.social-section {
  animation-delay: 0.9s;
}