/* 全局样式 */
:root {
  --primary-color: #2196F3;
  --secondary-color: #1976D2;
  --text-color: #333;
  --light-bg: #f5f5f5;
  --card-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
  margin: 0;
  padding: 20px;
}

/* 英雄区域样式 */
.hero-section {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  color: white;
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: var(--card-shadow);
}

.hero-section h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease;
}

.subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  animation: fadeInUp 1s ease;
}

/* 文章卡片样式 */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.post-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.post-date {
  color: #666;
  font-size: 0.9rem;
}

.post-card h3 {
  margin: 1rem 0;
  font-size: 1.3rem;
}

.post-card a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

.post-card a:hover {
  color: var(--secondary-color);
}

.post-excerpt {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 1rem 0;
}

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

.tag {
  background: var(--light-bg);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  color: var(--text-color);
}

/* 分类列表样式 */
.category-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.category-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.category-item h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.category-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-item li {
  margin-bottom: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.category-item li:last-child {
  border-bottom: none;
}

/* 关于我区域样式 */
.profile-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  margin: 2rem 0;
}

.profile-info h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.profile-info p {
  color: #666;
  margin-bottom: 1rem;
}

.interests {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.interests li {
  background: var(--light-bg);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: var(--light-bg);
  transition: background 0.2s;
}

.social-link:hover {
  background: #e0e0e0;
}

.social-link img {
  width: 20px;
  height: 20px;
}

/* 统计卡片样式 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-3px);
}

.stat-number {
  font-size: 2rem;
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #666;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .hero-section {
    padding: 3rem 1rem;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .interests {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .social-links {
    flex-direction: column;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .category-list {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}
