/* 全局样式 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 首页 */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 40px;
  border-radius: 12px;
  margin-bottom: 40px;
  text-align: center;
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: 700;
}

.site-intro {
  font-size: 16px;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
  opacity: 0.95;
}

.module {
  background: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.module h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #2c3e50;
  border-left: 4px solid #667eea;
  padding-left: 12px;
}

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

.video-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  transition: all 0.3s;
}

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

.video-card h3, .video-card h4 {
  margin-bottom: 8px;
  color: #2c3e50;
}

.video-card a {
  color: #667eea;
  font-weight: 600;
}

.video-card a:hover {
  color: #764ba2;
}

.meta {
  color: #7f8c8d;
  font-size: 14px;
  margin-bottom: 8px;
}

.intro {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
}

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

.link-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px 20px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s;
}

.link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.link-card h3 {
  margin-bottom: 10px;
  color: white;
}

.link-card p {
  font-size: 14px;
  opacity: 0.9;
}

.video-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.video-item {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  transition: all 0.3s;
}

.video-item:hover {
  background: #e9ecef;
}

.video-item h4 {
  margin-bottom: 8px;
}

.video-item a {
  color: #667eea;
  font-weight: 600;
  font-size: 16px;
}

.tag {
  background: #667eea;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  margin-left: 8px;
}

.more-link {
  text-align: center;
  margin-top: 20px;
}

.more-link a {
  color: #667eea;
  font-weight: 600;
}

/* 列表页 */
.page-header {
  background: white;
  padding: 40px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
}

.page-header h1 {
  font-size: 32px;
  color: #2c3e50;
  margin-bottom: 15px;
}

.page-intro {
  color: #555;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

.list-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.year-group, .topic-group {
  margin-bottom: 40px;
}

.year-group h3, .topic-group h3 {
  font-size: 20px;
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
}

.ranking-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
}

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

.rank {
  font-size: 24px;
  font-weight: bold;
  color: #667eea;
  min-width: 40px;
}

.ranking-item .content {
  flex: 1;
}

.review {
  color: #666;
  font-style: italic;
  margin-top: 8px;
  font-size: 14px;
}

.latest-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
}

.date-badge {
  background: #667eea;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: bold;
  min-width: 60px;
  text-align: center;
}

/* 详情页 */
.detail-page {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
}

.detail-page article {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.detail-header h1 {
  font-size: 36px;
  color: #2c3e50;
  margin-bottom: 20px;
}

.detail-info h2,
.detail-highlight h2,
.detail-summary h2,
.detail-review h2 {
  font-size: 20px;
  color: #2c3e50;
  margin: 30px 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
}

.info-list {
  list-style: none;
}

.info-list li {
  padding: 8px 0;
  color: #555;
}

.highlight-text {
  background: #f0f4ff;
  padding: 20px;
  border-left: 4px solid #667eea;
  font-size: 16px;
  line-height: 1.8;
  color: #2c3e50;
}

.detail-summary p,
.detail-review p {
  line-height: 1.8;
  color: #555;
}

.related-section {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  height: fit-content;
}

.related-section h2 {
  font-size: 20px;
  color: #2c3e50;
  margin-bottom: 20px;
}

.related-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.related-card {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 6px;
  transition: all 0.3s;
}

.related-card:hover {
  background: #e9ecef;
}

.related-card h4 {
  margin-bottom: 8px;
}

.related-card a {
  color: #667eea;
  font-size: 14px;
}

.related-card p {
  color: #666;
  font-size: 13px;
  line-height: 1.5;
}

/* 页脚 */
footer {
  text-align: center;
  padding: 30px;
  color: #7f8c8d;
  background: white;
  margin-top: 40px;
}

/* 响应式 */
@media (max-width: 968px) {
  .detail-page {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 24px;
  }

  .site-intro {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .hero {
    padding: 40px 20px;
  }

  .module {
    padding: 20px;
  }

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

  .detail-page article {
    padding: 20px;
  }
}