/* 关于页面样式 */

/* 容器 */
.about-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

/* 个人信息卡片 */
.about-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out;
}

/* 渐变背景 */
.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  z-index: 0;
}

/* 头像 */
.about-avatar {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
  padding-top: 30px;
}

.about-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  object-fit: cover;
}

.about-avatar img:hover {
  transform: scale(1.1) rotate(5deg);
}

/* 名字 */
.about-name {
  position: relative;
  z-index: 1;
  font-size: 28px;
  font-weight: bold;
  color: var(--font-color);
  margin: 15px 0 10px;
}

/* 描述 */
.about-description {
  position: relative;
  z-index: 1;
  font-size: 16px;
  color: var(--font-color);
  opacity: 0.8;
  margin-bottom: 20px;
}

/* 社交图标 */
.about-social {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.about-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: #667eea;
  font-size: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.about-social a:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  background: #667eea;
  color: #fff;
}

/* 内容区块 */
.about-section {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: forwards;
  opacity: 0;
}

.about-section:nth-child(2) { animation-delay: 0.1s; }
.about-section:nth-child(3) { animation-delay: 0.2s; }
.about-section:nth-child(4) { animation-delay: 0.3s; }
.about-section:nth-child(5) { animation-delay: 0.4s; }
.about-section:nth-child(6) { animation-delay: 0.5s; }

.about-section h3 {
  font-size: 22px;
  font-weight: bold;
  color: var(--font-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #667eea;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-section h3 i {
  color: #667eea;
}

.about-section p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--font-color);
  margin-bottom: 15px;
}

.about-section ul {
  list-style: none;
  padding: 0;
}

.about-section ul li {
  font-size: 16px;
  line-height: 2;
  color: var(--font-color);
  padding-left: 10px;
}

/* 技能标签 */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-tag {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: default;
}

.skill-tag:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 博客统计 */
.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.stat-value {
  font-size: 32px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

/* 联系方式 */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: var(--font-color);
  padding: 12px;
  background: rgba(102, 126, 234, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(102, 126, 234, 0.1);
  transform: translateX(5px);
}

.contact-item i {
  color: #667eea;
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.contact-item a {
  color: #667eea;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* 座右铭 */
.about-quote {
  border-left: 4px solid #667eea;
  padding: 20px 30px;
  background: rgba(102, 126, 234, 0.05);
  border-radius: 8px;
  margin: 0;
}

.about-quote p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--font-color);
  font-style: italic;
  margin-bottom: 10px;
}

.about-quote p:last-child {
  margin-bottom: 0;
}

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

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

  .about-card {
    padding: 30px 20px;
  }

  .about-card::before {
    height: 150px;
  }

  .about-avatar {
    padding-top: 20px;
  }

  .about-avatar img {
    width: 100px;
    height: 100px;
  }

  .about-name {
    font-size: 24px;
  }

  .about-description {
    font-size: 14px;
  }

  .about-social a {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .about-section {
    padding: 20px;
  }

  .about-section h3 {
    font-size: 20px;
  }

  .about-section p,
  .about-section ul li {
    font-size: 15px;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-value {
    font-size: 28px;
  }

  .contact-item {
    font-size: 15px;
  }

  .about-quote {
    padding: 15px 20px;
  }

  .about-quote p {
    font-size: 15px;
  }
}

/* 深色模式适配 */
[data-theme="dark"] .about-card {
  background: #1f1f1f;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .about-section {
  background: #1f1f1f;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .about-social a {
  background: rgba(255, 255, 255, 0.1);
  color: #667eea;
}

[data-theme="dark"] .about-social a:hover {
  background: #667eea;
  color: #fff;
}

[data-theme="dark"] .contact-item {
  background: rgba(102, 126, 234, 0.1);
}

[data-theme="dark"] .contact-item:hover {
  background: rgba(102, 126, 234, 0.15);
}

[data-theme="dark"] .about-quote {
  background: rgba(102, 126, 234, 0.1);
}
