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

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

/* 首页 Hero 区域 */
.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;
  line-height: 1.4;
  margin-bottom: 20px;
  font-weight: 600;
}

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

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

.intro-text a {
  color: #fff;
  text-decoration: underline;
  font-weight: 500;
}

.intro-text a:hover {
  opacity: 0.9;
}

/* 分区样式 */
.hot-section,
.topic-section,
.latest-section {
  margin-bottom: 50px;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

section h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #1a1a1a;
  border-left: 4px solid #667eea;
  padding-left: 15px;
}

.section-intro {
  color: #666;
  margin-bottom: 25px;
  line-height: 1.8;
}

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

.video-card {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-color: #667eea;
}

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

.video-card h3 a {
  color: #1a1a1a;
  text-decoration: none;
}

.video-card h3 a:hover {
  color: #667eea;
}

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

.video-meta span {
  font-size: 13px;
  padding: 3px 10px;
  background: #e8e8e8;
  border-radius: 4px;
  color: #555;
}

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

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

.video-item {
  padding: 15px;
  background: #f9f9f9;
  border-radius: 6px;
  border-left: 3px solid #667eea;
}

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

.video-item h4 a {
  color: #1a1a1a;
  text-decoration: none;
}

.video-item h4 a:hover {
  color: #667eea;
}

.video-item .genre {
  font-size: 13px;
  color: #888;
  margin-right: 10px;
}

.video-item p {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
}

/* 更多链接 */
.more-link {
  text-align: center;
  margin-top: 30px;
}

.more-link a {
  display: inline-block;
  padding: 12px 30px;
  background: #667eea;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.more-link a:hover {
  background: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

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

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

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

/* 地区分组 */
.region-group {
  margin-bottom: 40px;
}

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

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

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

.summary {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 10px;
}

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

.tag {
  font-size: 12px;
  padding: 3px 8px;
  background: #f0f0f0;
  border-radius: 3px;
  color: #666;
}

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

.ranking-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  transition: all 0.3s;
}

.ranking-item:hover {
  background: #f0f0f0;
  transform: translateX(5px);
}

.rank-number {
  font-size: 32px;
  font-weight: bold;
  color: #667eea;
  min-width: 50px;
  text-align: center;
  line-height: 1;
}

.item-content {
  flex: 1;
}

.item-content h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.item-content .meta {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

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

/* 专题分组 */
.topic-group {
  margin-bottom: 40px;
}

.topic-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #764ba2;
  padding-left: 15px;
  border-left: 4px solid #764ba2;
}

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

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

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

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

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

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

/* 最新整理 */
.latest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.latest-card {
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  transition: all 0.3s;
}

.latest-card:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.card-header h4 {
  font-size: 17px;
  flex: 1;
}

.update-date {
  font-size: 13px;
  color: #667eea;
  font-weight: bold;
  white-space: nowrap;
  margin-left: 10px;
}

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

.card-meta span {
  font-size: 12px;
  padding: 2px 8px;
  background: #e8e8e8;
  border-radius: 3px;
  color: #666;
}

.card-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 10px;
}

.review {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  font-style: italic;
  padding-top: 10px;
  border-top: 1px solid #e8e8e8;
}

/* 详情页样式 */
.video-detail {
  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: 20px;
  border-bottom: 2px solid #e8e8e8;
}

.detail-header h1 {
  font-size: 36px;
  margin-bottom: 10px;
  color: #1a1a1a;
}

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

.basic-info,
.highlight,
.summary,
.review,
.viewing-tips,
.related {
  margin-bottom: 40px;
}

.basic-info h2,
.highlight h2,
.summary h2,
.review h2,
.viewing-tips h2,
.related h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #1a1a1a;
  padding-bottom: 10px;
  border-bottom: 2px solid #667eea;
}

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

.info-list dt {
  font-weight: 600;
  color: #555;
}

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

.info-list .tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-style {
  background: #667eea;
  color: white;
}

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

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

.review-content {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  padding: 20px;
  background: #fffbf0;
  border-radius: 8px;
  border-left: 4px solid #ffc107;
}

.viewing-tips p {
  font-size: 15px;
  line-height: 1.8;
  color: #666;
}

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

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

.related-card:hover {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

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

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

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

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

/* Footer 样式 */
.site-footer {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 30px 0;
  margin-top: 60px;
}

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

.footer-container p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.footer-tags {
  color: #bdc3c7;
  font-size: 14px;
}

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

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

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

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

  .hot-section,
  .topic-section,
  .latest-section {
    padding: 20px;
  }

  section h2 {
    font-size: 22px;
  }

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

  .page-header {
    padding: 25px 20px;
  }

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

  .list-content {
    padding: 20px;
  }

  .ranking-item {
    flex-direction: row;
    gap: 15px;
  }

  .rank-number {
    font-size: 24px;
    min-width: 40px;
  }

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

  .video-detail {
    padding: 25px 20px;
  }

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

  .info-list {
    grid-template-columns: 80px 1fr;
    gap: 12px 15px;
  }
}

/* UI 风格变体 */
body.ui-style-7 {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
}
