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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  flex: 1;
}

/* 页面标题 */
.page-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #2c3e50;
  text-align: center;
}

.page-desc {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

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

.intro-text p {
  line-height: 1.8;
  color: #555;
  margin-bottom: 1rem;
}

/* 章节标题 */
.section-title {
  font-size: 1.5rem;
  margin: 2rem 0 1.5rem;
  color: #2c3e50;
  border-left: 4px solid #e74c3c;
  padding-left: 1rem;
}

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

.video-card {
  background: #fff;
  padding: 1.5rem;
  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 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.video-card h3 a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s;
}

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

.video-meta {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.video-desc {
  color: #555;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.video-review {
  color: #666;
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 0.5rem;
  border-left: 3px solid #3498db;
  padding-left: 0.5rem;
}

/* 列表卡片特殊样式 */
.list-card {
  border-left: 3px solid #e74c3c;
}

.rank-num {
  display: inline-block;
  background: #e74c3c;
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-right: 0.5rem;
}

.year-tag {
  display: inline-block;
  background: #3498db;
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-left: 0.5rem;
}

/* 快速链接 */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.link-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.link-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

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

/* 详情页 */
.detail-page {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

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

.detail-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #2c3e50;
  border-bottom: 3px solid #e74c3c;
  padding-bottom: 1rem;
}

.video-detail section {
  margin-bottom: 2rem;
}

.video-detail h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #34495e;
}

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

.info-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #ecf0f1;
  line-height: 1.6;
}

.info-list strong {
  color: #2c3e50;
  min-width: 80px;
  display: inline-block;
}

.highlight-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #e74c3c;
  font-weight: 500;
  padding: 1rem;
  background: #fef5f5;
  border-left: 4px solid #e74c3c;
  border-radius: 4px;
}

.summary-text, .review-text {
  line-height: 1.8;
  color: #555;
  text-indent: 2em;
}

/* 相关推荐 */
.related-section {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  height: fit-content;
}

.related-section h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.related-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-card {
  padding: 1rem;
  border: 1px solid #ecf0f1;
  border-radius: 6px;
  transition: border-color 0.3s, background 0.3s;
}

.related-card:hover {
  border-color: #e74c3c;
  background: #fef5f5;
}

.related-card h4 {
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

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

.related-card h4 a:hover {
  color: #e74c3c;
}

.related-meta {
  font-size: 0.85rem;
  color: #7f8c8d;
  margin-bottom: 0.3rem;
}

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

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

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

  .page-title {
    font-size: 1.5rem;
  }

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

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

  .detail-page {
    grid-template-columns: 1fr;
  }

  .detail-title {
    font-size: 1.8rem;
  }
}

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