/* 全局样式重置 */
body, html {
  margin: 0;
  padding: 0;
}

/* 主内容区域 */
.main-content {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

/* 首页样式 */
.hero-section {
  background: white;
  padding: 3rem 0;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #667eea;
  text-align: center;
}

.site-intro {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  line-height: 1.8;
}

.content-section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #333;
  border-left: 4px solid #667eea;
  padding-left: 1rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.video-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.video-title {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.video-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.video-title a:hover {
  color: #667eea;
}

.video-meta {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: #888;
}

.meta-item {
  display: inline-block;
}

.video-desc {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

.video-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.video-item {
  background: white;
  padding: 1.2rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: box-shadow 0.3s;
}

.video-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.item-badge, .item-date {
  flex-shrink: 0;
  background: #667eea;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: bold;
}

.item-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.item-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.item-title a:hover {
  color: #667eea;
}

.item-desc {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

.more-link {
  text-align: center;
  margin-top: 1.5rem;
}

.more-link a {
  color: #667eea;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s;
}

.more-link a:hover {
  color: #764ba2;
}

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

.link-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  color: #667eea;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s;
}

.link-card:hover {
  background: #667eea;
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* 列表页样式 */
.list-page .page-header {
  background: white;
  padding: 2rem 0;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.list-page .page-intro {
  max-width: 800px;
  margin: 1rem auto 0;
  text-align: center;
  color: #666;
  font-size: 1.05rem;
}

.list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.list-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s;
}

.list-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.list-card.ranked {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.rank-badge {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
}

.card-content {
  flex: 1;
}

.card-header {
  margin-bottom: 0.8rem;
}

.card-category, .topic-tag {
  display: inline-block;
  background: #f0f0f0;
  color: #666;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.card-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.card-title a:hover {
  color: #667eea;
}

.card-meta {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.card-desc {
  color: #666;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.card-review {
  color: #777;
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.6;
  border-left: 3px solid #667eea;
  padding-left: 0.8rem;
  margin-top: 0.8rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.tag {
  background: #f0f0f0;
  color: #666;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.list-card.latest {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.date-badge {
  flex-shrink: 0;
  background: #667eea;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: bold;
}

/* 详情页样式 */
.detail-page {
  background: #f9f9f9;
}

.detail-container {
  background: white;
  padding: 2rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.detail-header {
  padding: 2rem 0;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 2rem;
}

.detail-title {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
  text-align: center;
}

.detail-tagline {
  font-size: 1.2rem;
  color: #667eea;
  text-align: center;
  font-weight: 500;
}

.section-heading {
  font-size: 1.6rem;
  color: #333;
  margin-bottom: 1.5rem;
  border-left: 4px solid #667eea;
  padding-left: 1rem;
}

.detail-info {
  margin-bottom: 3rem;
}

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

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-item.full-width {
  grid-column: 1 / -1;
}

.info-label {
  font-weight: bold;
  color: #888;
  font-size: 0.9rem;
}

.info-value {
  color: #333;
  font-size: 1.05rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.detail-summary {
  margin-bottom: 3rem;
}

.summary-content p {
  color: #555;
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.detail-review {
  margin-bottom: 3rem;
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.review-content p {
  color: #555;
  line-height: 1.8;
  font-size: 1.05rem;
  font-style: italic;
}

.detail-related {
  margin-bottom: 2rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.related-card {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  transition: all 0.3s;
}

.related-card:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.related-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.related-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.related-title a:hover {
  color: #667eea;
}

.related-meta {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.related-desc {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 页脚样式 */
.site-footer {
  background: #333;
  color: white;
  padding: 2rem 0;
  text-align: center;
  margin-top: 3rem;
}

.site-footer p {
  color: #ccc;
  font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .page-title {
    font-size: 1.5rem;
  }

  .site-intro {
    font-size: 1rem;
  }

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

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

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

  .detail-tagline {
    font-size: 1rem;
  }

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

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