/* 全局样式 */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

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

/* 页脚 */
.footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 主内容 */
.main-content {
  min-height: calc(100vh - 200px);
}

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

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

.hero-section .subtitle {
  font-size: 16px;
  opacity: 0.9;
}

/* 介绍区 */
.intro-section {
  background: #fff;
  padding: 40px 20px;
  margin-bottom: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.intro-section h2 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #e63946;
}

.intro-section p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
}

/* 区块 */
section {
  margin-bottom: 40px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

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

.more-link {
  color: #e63946;
  text-decoration: none;
  font-size: 14px;
}

.more-link:hover {
  text-decoration: underline;
}

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

.video-card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.video-card h3,
.video-card h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.video-card h3 a,
.video-card h4 a {
  color: #333;
  text-decoration: none;
}

.video-card h3 a:hover,
.video-card h4 a:hover {
  color: #e63946;
}

.video-card .meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 8px;
}

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

/* 视频列表 */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.video-item {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.video-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.video-item h3 a {
  color: #333;
  text-decoration: none;
}

.video-item h3 a:hover {
  color: #e63946;
}

.video-item .meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 8px;
}

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

/* 榜单链接 */
.rank-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.rank-item {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.rank-item h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.rank-item h3 a {
  color: #e63946;
  text-decoration: none;
}

.rank-item h3 a:hover {
  text-decoration: underline;
}

.rank-item > p {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

.mini-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-item {
  font-size: 14px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-item a {
  color: #333;
  text-decoration: none;
}

.mini-item a:hover {
  color: #e63946;
}

.rank-num {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: #e63946;
  color: #fff;
  text-align: center;
  line-height: 24px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 12px;
}

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

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

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

/* 分组 */
.group-section {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.group-title {
  font-size: 22px;
  color: #e63946;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e63946;
}

/* 排行榜 */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rank-item {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

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

.rank-content {
  flex: 1;
}

.rank-content h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.rank-content h4 a {
  color: #333;
  text-decoration: none;
}

.rank-content h4 a:hover {
  color: #e63946;
}

/* 最新列表 */
.latest-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.latest-item {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.latest-content h4 {
  font-size: 20px;
  margin-bottom: 8px;
}

.latest-content h4 a {
  color: #333;
  text-decoration: none;
}

.latest-content h4 a:hover {
  color: #e63946;
}

/* 详情页 */
.detail-article {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

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

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

.detail-article section {
  margin-bottom: 40px;
}

.detail-article h2 {
  font-size: 24px;
  color: #e63946;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid #e63946;
}

.info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  font-size: 15px;
  line-height: 1.8;
}

.info-list dt {
  font-weight: bold;
  color: #666;
}

.info-list dd {
  color: #333;
}

.oneline-text {
  font-size: 18px;
  color: #555;
  line-height: 1.8;
  font-weight: 500;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  border-left: 4px solid #e63946;
}

.summary-text,
.review-text {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  text-align: justify;
}

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

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

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

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

.related-card h3 a {
  color: #333;
  text-decoration: none;
}

.related-card h3 a:hover {
  color: #e63946;
}

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

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

  .hero-section .subtitle {
    font-size: 14px;
  }

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

  .rank-links {
    grid-template-columns: 1fr;
  }

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

  .detail-article {
    padding: 20px;
  }

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

  .info-list {
    grid-template-columns: 80px 1fr;
    gap: 8px;
    font-size: 14px;
  }
}