
/* 全局样式 */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding: 40px 0;
}

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

/* 页面头部 */
.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

.page-intro {
  font-size: 1rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

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

.intro-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
}

.intro-content a {
  color: #3498db;
  text-decoration: underline;
}

/* 区块标题 */
.section-title {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #3498db;
}

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

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

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

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

.video-title a {
  color: #2c3e50;
  text-decoration: none;
}

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

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

.meta-tag {
  display: inline-block;
  padding: 2px 8px;
  background: #ecf0f1;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #555;
}

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

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

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

.video-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

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

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

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

.item-info {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 8px;
}

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

/* 专题网格 */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.topic-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 30px;
  border-radius: 8px;
  color: #fff;
  text-align: center;
  transition: transform 0.3s;
}

.topic-card:hover {
  transform: scale(1.05);
}

.topic-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.topic-card h3 a {
  color: #fff;
  text-decoration: none;
}

.topic-card p {
  font-size: 0.9rem;
  opacity: 0.9;
}

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

.video-list-item {
  display: flex;
  gap: 20px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s;
}

.video-list-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.item-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3498db;
  color: #fff;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.1rem;
}

.item-content {
  flex: 1;
}

.item-meta {
  font-size: 0.9rem;
  color: #999;
  margin: 8px 0;
}

.item-summary {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

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

.detail-header h1 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 30px;
  text-align: center;
}

.detail-page section {
  margin-bottom: 30px;
}

.detail-page h2 {
  font-size: 1.3rem;
  color: #2c3e50;
  margin-bottom: 15px;
  padding-left: 10px;
  border-left: 4px solid #3498db;
}

.info-list {
  list-style: none;
}

.info-list li {
  padding: 8px 0;
  border-bottom: 1px solid #ecf0f1;
  font-size: 1rem;
  color: #555;
}

.info-list strong {
  color: #2c3e50;
  margin-right: 10px;
}

.oneline-text {
  font-size: 1.1rem;
  color: #3498db;
  font-weight: 500;
  line-height: 1.8;
  padding: 15px;
  background: #ecf7fd;
  border-radius: 6px;
}

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

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

.related-card {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 6px;
  transition: background 0.3s;
}

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

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

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

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

.related-info {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 6px;
}

.related-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

/* 更多按钮 */
.section-more {
  text-align: center;
  margin-top: 20px;
}

.btn-more {
  display: inline-block;
  padding: 10px 30px;
  background: #3498db;
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  transition: background 0.3s;
}

.btn-more:hover {
  background: #2980b9;
}

/* 页脚 */
.site-footer {
  background: #2c3e50;
  color: #ecf0f1;
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px;
}

.footer-container p {
  margin: 5px 0;
  font-size: 0.9rem;
}

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

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

  .page-header h1 {
    font-size: 1.5rem;
  }

  .intro-section {
    padding: 20px;
  }

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

  .detail-page {
    padding: 20px;
  }

  .detail-header h1 {
    font-size: 1.5rem;
  }

  .video-list-item {
    flex-direction: column;
    gap: 10px;
  }

  .item-number {
    align-self: flex-start;
  }
}

/* UI样式变体 */
.ui-style-0 { --primary-color: #3498db; }
.ui-style-1 { --primary-color: #e74c3c; }
.ui-style-2 { --primary-color: #2ecc71; }
.ui-style-3 { --primary-color: #f39c12; }
.ui-style-4 { --primary-color: #9b59b6; }
.ui-style-5 { --primary-color: #1abc9c; }
.ui-style-6 { --primary-color: #34495e; }
.ui-style-7 { --primary-color: #16a085; }
.ui-style-8 { --primary-color: #27ae60; }
.ui-style-9 { --primary-color: #2980b9; }
.ui-style-10 { --primary-color: #8e44ad; }
.ui-style-11 { --primary-color: #c0392b; }
.ui-style-12 { --primary-color: #d35400; }
.ui-style-13 { --primary-color: #7f8c8d; }
.ui-style-14 { --primary-color: #2c3e50; }
.ui-style-15 { --primary-color: #e67e22; }
