/* 全局样式 */
:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --text-color: #333;
  --text-light: #666;
  --border-color: #e0e0e0;
  --bg-light: #f9f9f9;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

html {
  scroll-behavior: smooth;
}

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

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

/* Hero 区域 */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 0;
  margin-bottom: 40px;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-desc {
  font-size: 16px;
  line-height: 1.8;
  opacity: 0.95;
  max-width: 800px;
}

/* 介绍区域 */
.intro-section {
  background: white;
  padding: 40px 0;
  margin-bottom: 40px;
}

.intro-text {
  max-width: 900px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-light);
}

.intro-text p {
  margin-bottom: 16px;
}

/* 区块样式 */
section {
  margin-bottom: 50px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--secondary-color);
  position: relative;
  padding-bottom: 12px;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

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

.video-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.video-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary-color);
}

.video-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}

.video-title a {
  color: var(--secondary-color);
  transition: color 0.3s;
}

.video-title a:hover {
  color: var(--primary-color);
}

.video-meta {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.video-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-color);
}

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

.video-item {
  background: white;
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  border-left: 4px solid transparent;
}

.video-item:hover {
  border-left-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.video-oneline {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 8px;
  line-height: 1.6;
}

/* 主题链接 */
.topic-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.topic-link {
  background: white;
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  border: 2px solid transparent;
  text-align: center;
}

.topic-link:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.topic-link h3 {
  font-size: 20px;
  color: var(--secondary-color);
  margin-bottom: 12px;
}

.topic-link p {
  font-size: 14px;
  color: var(--text-light);
}

/* 更多按钮 */
.section-more {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 30px;
}

.btn-more {
  display: inline-block;
  padding: 12px 32px;
  background: var(--primary-color);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
}

.btn-more:hover {
  background: #2980b9;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* 列表页样式 */
.list-page {
  background: white;
}

.page-header {
  text-align: center;
  padding: 40px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  margin: -40px 0 40px;
}

.page-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

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

.video-list-container {
  padding: 40px 0;
}

/* 不同列表页的特定样式 */
.video-card-daquan {
  background: white;
  padding: 24px;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary-color);
}

.video-card-top {
  background: white;
  padding: 24px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  position: relative;
}

.rank-badge {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  min-width: 40px;
}

.video-card-topic {
  background: white;
  padding: 24px;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.video-card-topic:hover {
  box-shadow: var(--shadow-lg);
  transform: translateX(8px);
}

.video-card-latest {
  background: white;
  padding: 20px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border-color);
}

.group-title {
  font-size: 20px;
  color: var(--secondary-color);
  margin: 30px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
}

.video-info {
  display: flex;
  gap: 12px;
  margin: 8px 0;
  font-size: 13px;
}

.video-region,
.video-type,
.video-year {
  padding: 4px 12px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  color: var(--text-light);
}

.video-genre {
  font-size: 14px;
  color: var(--text-light);
  margin: 8px 0;
}

.video-summary {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-color);
  margin-top: 12px;
}

.video-review {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 12px;
  padding: 12px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary-color);
}

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

.video-detail {
  max-width: 900px;
  margin: 0 auto;
}

.detail-header {
  padding: 40px 0;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 40px;
}

.detail-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 24px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 15px;
}

.meta-item {
  color: var(--text-light);
}

.meta-item strong {
  color: var(--text-color);
}

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

.section-heading {
  font-size: 24px;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  padding: 6px 16px;
  background: var(--bg-light);
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-light);
  border: 1px solid var(--border-color);
}

.one-line {
  font-size: 18px;
  line-height: 1.8;
  color: var(--primary-color);
  font-weight: 500;
  padding: 20px;
  background: #f0f8ff;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-color);
}

.summary-text,
.review-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-color);
  text-align: justify;
}

.review-text {
  padding: 20px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-color);
}

.related-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid var(--border-color);
}

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

.related-card {
  background: white;
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.related-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
  transform: translateY(-4px);
}

.related-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.related-title a {
  color: var(--secondary-color);
}

.related-title a:hover {
  color: var(--primary-color);
}

.related-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.related-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-color);
}

/* 页脚 */
.site-footer {
  background: var(--secondary-color);
  color: white;
  padding: 30px 0;
  margin-top: 60px;
  text-align: center;
}

.footer-container p {
  font-size: 14px;
  opacity: 0.8;
}

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

  .main-content {
    padding: 20px 0;
  }

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

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

  .hero-desc {
    font-size: 14px;
  }

  .section-title {
    font-size: 22px;
  }

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

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

  .section-more {
    flex-direction: column;
  }

  .page-header {
    padding: 30px 0;
  }

  .page-title {
    font-size: 26px;
  }

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

  .detail-title {
    font-size: 28px;
  }

  .detail-meta {
    flex-direction: column;
    gap: 8px;
  }

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

  .video-card-top {
    flex-direction: column;
  }

  .rank-badge {
    position: absolute;
    top: 24px;
    right: 24px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 20px;
  }

  .section-title {
    font-size: 20px;
  }

  .detail-title {
    font-size: 24px;
  }

  .one-line {
    font-size: 16px;
    padding: 16px;
  }

  .summary-text,
  .review-text {
    font-size: 15px;
  }
}
