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

main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  width: 100%;
}

/* 首页样式 */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 40px;
  border-radius: 12px;
  margin-bottom: 40px;
  text-align: center;
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.4;
}

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

/* 章节 */
section {
  margin-bottom: 50px;
}

section h2 {
  font-size: 28px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid #667eea;
  color: #2d3748;
}

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

.video-card {
  background: white;
  padding: 20px;
  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 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #2d3748;
}

.video-card h3 a {
  color: #667eea;
  transition: color 0.3s;
}

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

.video-card .meta {
  color: #718096;
  font-size: 13px;
  margin-bottom: 8px;
}

.video-card .oneline {
  color: #4a5568;
  font-size: 14px;
  line-height: 1.6;
}

/* 列表链接 */
.list-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.list-link {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  border-left: 4px solid #667eea;
}

.list-link:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.list-link h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #2d3748;
}

.list-link p {
  color: #718096;
  font-size: 14px;
}

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

.video-list li {
  border-bottom: 1px solid #e2e8f0;
}

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

.video-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  transition: background 0.3s;
}

.video-list a:hover {
  background: #f7fafc;
}

.video-list .title {
  font-size: 16px;
  color: #2d3748;
}

.video-list .year {
  font-size: 14px;
  color: #718096;
}

/* 列表页 */
.list-page {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.list-page h1 {
  font-size: 32px;
  margin-bottom: 16px;
  color: #2d3748;
}

.page-intro {
  color: #4a5568;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e2e8f0;
}

.video-list-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.video-item {
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.3s;
}

.video-item:hover {
  border-color: #667eea;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.video-item .rank,
.video-item .index {
  display: inline-block;
  background: #667eea;
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 14px;
  margin-right: 12px;
  font-weight: 600;
}

.video-item h3 {
  display: inline;
  font-size: 20px;
  color: #2d3748;
}

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

.video-item h3 a:hover {
  color: #764ba2;
}

.video-item .meta {
  margin: 10px 0;
  color: #718096;
  font-size: 14px;
}

.video-item .genre {
  background: #edf2f7;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 8px;
}

.video-item .date {
  font-style: italic;
}

.video-item .summary {
  color: #4a5568;
  line-height: 1.6;
  font-size: 15px;
}

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

.detail-page h1 {
  font-size: 32px;
  margin-bottom: 30px;
  color: #2d3748;
  padding-bottom: 20px;
  border-bottom: 3px solid #667eea;
}

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

.info-section h2,
.oneline-section h2,
.summary-section h2,
.review-section h2,
.related-section h2 {
  font-size: 22px;
  margin-bottom: 16px;
  color: #2d3748;
}

.info-list {
  background: #f7fafc;
  padding: 20px;
  border-radius: 8px;
}

.info-list li {
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 15px;
  line-height: 1.6;
}

.info-list li:last-child {
  border-bottom: none;
}

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

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

.summary,
.review {
  font-size: 16px;
  line-height: 1.8;
  color: #4a5568;
  text-align: justify;
}

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

.related-item {
  background: #f7fafc;
  padding: 20px;
  border-radius: 8px;
  transition: all 0.3s;
}

.related-item:hover {
  background: #edf2f7;
}

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

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

.related-item p {
  font-size: 14px;
  color: #718096;
}

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

footer p {
  font-size: 14px;
  opacity: 0.9;
}

/* UI风格变体 */
.ui-style-0 { --primary-color: #667eea; --secondary-color: #764ba2; }
.ui-style-1 { --primary-color: #f093fb; --secondary-color: #f5576c; }
.ui-style-2 { --primary-color: #4facfe; --secondary-color: #00f2fe; }
.ui-style-3 { --primary-color: #43e97b; --secondary-color: #38f9d7; }
.ui-style-4 { --primary-color: #fa709a; --secondary-color: #fee140; }
.ui-style-5 { --primary-color: #30cfd0; --secondary-color: #330867; }
.ui-style-6 { --primary-color: #a8edea; --secondary-color: #fed6e3; }
.ui-style-7 { --primary-color: #ff9a56; --secondary-color: #ff6a88; }
.ui-style-8 { --primary-color: #f77062; --secondary-color: #fe5196; }
.ui-style-9 { --primary-color: #69b7eb; --secondary-color: #b3dbd3; }
.ui-style-10 { --primary-color: #fcb045; --secondary-color: #fd1d1d; }
.ui-style-11 { --primary-color: #833ab4; --secondary-color: #fd1d1d; }
.ui-style-12 { --primary-color: #4e54c8; --secondary-color: #8f94fb; }
.ui-style-13 { --primary-color: #0ba360; --secondary-color: #3cba92; }
.ui-style-14 { --primary-color: #ee0979; --secondary-color: #ff6a00; }
.ui-style-15 { --primary-color: #2193b0; --secondary-color: #6dd5ed; }

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

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

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

  main {
    padding: 15px;
  }

  section h2 {
    font-size: 22px;
  }

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

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

  .list-page,
  .detail-page {
    padding: 20px;
  }

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

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