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

.main-content {
  min-height: calc(100vh - 140px);
}

/* 页面标题 */
.page-title {
  font-size: 32px;
  color: #e53935;
  margin-bottom: 20px;
  text-align: center;
}

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

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

.hero-section .page-title {
  color: #fff;
  font-size: 36px;
}

.site-intro {
  background: rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
}

.site-intro p {
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
}

/* 区块标题 */
.section-title {
  font-size: 24px;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e53935;
}

.section-link {
  text-align: right;
  margin-top: 20px;
}

.section-link.center {
  text-align: center;
}

.btn-more {
  display: inline-block;
  padding: 10px 20px;
  background: #e53935;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s;
}

.btn-more:hover {
  background: #c62828;
  transform: translateX(5px);
}

.btn-large {
  display: inline-block;
  padding: 15px 40px;
  background: #e53935;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s;
}

.btn-large:hover {
  background: #c62828;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.4);
}

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

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

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

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

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

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

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

.meta-item {
  display: inline-block;
  padding: 4px 10px;
  background: #f0f0f0;
  border-radius: 4px;
  font-size: 14px;
  color: #666;
}

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

/* 视频列表 */
.video-list {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.video-item {
  display: flex;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

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

.item-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #e53935;
  color: #fff;
  border-radius: 50%;
  font-weight: bold;
  margin-right: 15px;
  flex-shrink: 0;
}

.item-content {
  flex: 1;
}

.item-title {
  font-size: 16px;
  margin-bottom: 8px;
}

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

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

.item-tags {
  font-size: 14px;
  color: #999;
}

/* 列表页样式 */
.page-header {
  text-align: center;
  margin-bottom: 40px;
}

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

.video-card-compact {
  background: #fff;
  padding: 15px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: all 0.3s;
}

.video-card-compact:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.video-list-ranked {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
}

.video-item-ranked {
  display: flex;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

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

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  background: #f0f0f0;
  color: #666;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-right: 20px;
  flex-shrink: 0;
}

.rank-num.top-three {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
}

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

.item-info {
  font-size: 14px;
  color: #999;
  margin: 8px 0;
}

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

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

.group-title {
  font-size: 20px;
  color: #e53935;
  margin-bottom: 20px;
  padding-left: 15px;
  border-left: 4px solid #e53935;
}

.video-tags {
  font-size: 13px;
  color: #999;
  margin-top: 8px;
}

.video-list-latest {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
}

.video-item-latest {
  display: flex;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

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

.item-date {
  min-width: 80px;
  padding: 10px;
  background: #e53935;
  color: #fff;
  border-radius: 6px;
  text-align: center;
  font-weight: bold;
  margin-right: 20px;
  flex-shrink: 0;
}

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

/* 详情页样式 */
.detail-page {
  background: #fff;
  border-radius: 8px;
  padding: 40px;
  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 #e53935;
}

.detail-title {
  font-size: 36px;
  color: #e53935;
  margin-bottom: 10px;
}

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

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

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

.info-item {
  padding: 15px;
  background: #f8f8f8;
  border-radius: 6px;
}

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

.info-value {
  color: #333;
}

.oneline-text {
  font-size: 18px;
  line-height: 1.8;
  color: #e53935;
  padding: 20px;
  background: #fff5f5;
  border-left: 4px solid #e53935;
  border-radius: 4px;
}

.summary-text p,
.review-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 15px;
}

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

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

.related-card:hover {
  background: #f0f0f0;
  transform: translateY(-3px);
}

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

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

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

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

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

/* 页脚 */
.site-footer {
  background: #333;
  color: #fff;
  padding: 30px 0;
  margin-top: 60px;
}

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

.footer-inner p {
  font-size: 14px;
  color: #999;
}

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

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

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

  .hero-section .page-title {
    font-size: 28px;
  }

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

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

  .detail-page {
    padding: 20px;
  }

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

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

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

/* UI 风格变体 */
body.ui-style-0 { --primary-color: #e53935; }
body.ui-style-1 { --primary-color: #d32f2f; }
body.ui-style-2 { --primary-color: #c62828; }
body.ui-style-3 { --primary-color: #b71c1c; }
body.ui-style-4 { --primary-color: #ff5252; }
body.ui-style-5 { --primary-color: #ff1744; }
body.ui-style-6 { --primary-color: #d50000; }
body.ui-style-7 { --primary-color: #e91e63; }
body.ui-style-8 { --primary-color: #c2185b; }
body.ui-style-9 { --primary-color: #ad1457; }
body.ui-style-10 { --primary-color: #880e4f; }
body.ui-style-11 { --primary-color: #ff4081; }
body.ui-style-12 { --primary-color: #f50057; }
body.ui-style-13 { --primary-color: #c51162; }
body.ui-style-14 { --primary-color: #e53935; }
body.ui-style-15 { --primary-color: #d32f2f; }
