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

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

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

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

.site-intro p {
  margin-bottom: 12px;
}

/* 内容区块 */
.content-section {
  background: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 2px solid #667eea;
  padding-bottom: 12px;
}

.section-header h2 {
  font-size: 24px;
  color: #333;
}

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

/* 视频卡片网格 */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.video-card {
  background: #fafafa;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

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

.video-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.video-card h3 a {
  color: #333;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag {
  background: #e0e7ff;
  color: #4338ca;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
}

.tag-site {
  background: #fef3c7;
  color: #92400e;
}

.video-oneline {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.rank-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #d32f2f;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

/* 紧凑列表 */
.video-list-compact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fafafa;
  border-radius: 6px;
  transition: background 0.2s;
}

.list-item:hover {
  background: #f0f0f0;
}

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

.list-item a {
  flex: 1;
  color: #333;
  font-weight: 500;
}

.item-meta {
  color: #666;
  font-size: 13px;
}

/* 导航链接 */
.nav-links {
  text-align: center;
  padding: 20px;
  background: white;
  border-radius: 8px;
  margin-top: 20px;
}

.nav-links a {
  margin: 0 8px;
}

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

.page-header h1 {
  font-size: 28px;
  margin-bottom: 16px;
  color: #333;
}

.page-desc {
  font-size: 15px;
  color: #666;
  line-height: 1.8;
}

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

/* 排行榜 */
.ranking-list {
  background: white;
  border-radius: 8px;
  padding: 20px;
}

.ranking-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.2s;
}

.ranking-item:hover {
  background: #fafafa;
}

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

.rank-number {
  font-size: 24px;
  font-weight: bold;
  min-width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.rank-top {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.rank-normal {
  background: #f0f0f0;
  color: #666;
}

.ranking-content {
  flex: 1;
}

.ranking-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.video-summary {
  color: #666;
  line-height: 1.6;
  margin-top: 8px;
}

/* 专题页 */
.topic-section {
  background: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.topic-title {
  font-size: 22px;
  color: #667eea;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e7ff;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.topic-card {
  background: #fafafa;
  padding: 16px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

.topic-card h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.topic-meta {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}

.topic-desc {
  font-size: 14px;
  color: #666;
}

/* 时间线 */
.latest-timeline {
  background: white;
  padding: 30px;
  border-radius: 8px;
}

.timeline-item {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid #e0e0e0;
}

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

.timeline-date {
  font-size: 20px;
  font-weight: bold;
  color: #667eea;
  min-width: 80px;
}

.timeline-content {
  flex: 1;
}

.timeline-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

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

.detail-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid #667eea;
}

.detail-header h1 {
  font-size: 32px;
  color: #333;
  margin-bottom: 8px;
}

.detail-subtitle {
  font-size: 16px;
  color: #888;
}

.detail-info,
.detail-oneline,
.detail-summary,
.detail-review,
.detail-related {
  margin-bottom: 32px;
}

.detail-info h2,
.detail-oneline h2,
.detail-summary h2,
.detail-review h2,
.detail-related h2 {
  font-size: 22px;
  color: #667eea;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e7ff;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.info-item {
  display: flex;
  padding: 8px 0;
}

.info-label {
  font-weight: 600;
  color: #555;
  min-width: 80px;
}

.info-value {
  color: #333;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.oneline-text {
  font-size: 18px;
  color: #555;
  line-height: 1.8;
  background: #f0f4ff;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.summary-text p {
  font-size: 16px;
  color: #444;
  line-height: 1.8;
  margin-bottom: 12px;
  text-indent: 2em;
}

.review-text {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  background: #fffbeb;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #f59e0b;
}

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

.related-card {
  background: #fafafa;
  padding: 16px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  transition: transform 0.2s;
}

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

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

.related-meta {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}

.related-desc {
  font-size: 14px;
  color: #666;
}

/* 响应式 */
@media (max-width: 768px) {
  .main-container {
    padding: 12px;
  }

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

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

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

  .content-section {
    padding: 20px;
  }

  .section-header h2 {
    font-size: 20px;
  }

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

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

  .timeline-item {
    flex-direction: column;
    gap: 8px;
  }

  .detail-page {
    padding: 20px;
  }

  .detail-header h1 {
    font-size: 24px;
  }

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

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