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

main {
  flex: 1;
  padding: 40px 20px;
}

/* 首页样式 */
.index-page .hero-section {
  background: #fff;
  padding: 60px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-bottom: 50px;
  text-align: center;
}

.index-page .hero-section h1 {
  font-size: 32px;
  color: #667eea;
  margin-bottom: 20px;
  line-height: 1.4;
}

.index-page .intro {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  max-width: 900px;
  margin: 0 auto;
}

.index-page section {
  margin-bottom: 50px;
}

.index-page section h2 {
  font-size: 28px;
  color: #333;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 3px solid #667eea;
  display: inline-block;
}

.index-page .section-desc {
  color: #666;
  margin-bottom: 25px;
  font-size: 15px;
}

.index-page .section-links {
  text-align: center;
  margin-top: 30px;
}

.index-page .section-links a {
  display: inline-block;
  margin: 0 15px;
  padding: 12px 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  transition: transform 0.3s, box-shadow 0.3s;
  font-size: 15px;
}

.index-page .section-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* 列表页样式 */
.list-page .list-header {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-bottom: 40px;
}

.list-page .list-header h1 {
  font-size: 30px;
  color: #667eea;
  margin-bottom: 15px;
}

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

.list-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

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

.video-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

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

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

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

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

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

.video-card .meta span {
  background: #f0f0f0;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  color: #666;
}

.video-card .oneline {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card .rank,
.video-card .date,
.video-card .genre,
.video-card .badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

/* 详情页样式 */
.detail-page {
  max-width: 900px;
}

.detail-content {
  background: #fff;
  padding: 50px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

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

.detail-content section {
  margin-bottom: 40px;
}

.detail-content h2 {
  font-size: 22px;
  color: #667eea;
  margin-bottom: 15px;
}

.basic-info dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  line-height: 1.8;
}

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

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

.oneline-section p,
.summary-section p,
.review-section p {
  font-size: 16px;
  line-height: 1.9;
  color: #444;
  text-align: justify;
}

.review-section {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

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

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

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

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

.related-item h3 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

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

.related-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 页脚样式 */
footer {
  background: #333;
  color: #fff;
  padding: 30px 0;
  text-align: center;
  margin-top: 60px;
}

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

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

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

  .index-page .intro {
    font-size: 14px;
  }

  .index-page section h2 {
    font-size: 22px;
  }

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

  .detail-content {
    padding: 30px 20px;
  }

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

  .basic-info dl {
    grid-template-columns: 80px 1fr;
    gap: 10px;
  }

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

  .index-page .section-links a {
    display: block;
    margin: 10px 0;
  }
}

/* UI 风格变体 */
.ui-style-0 { --primary: #667eea; --secondary: #764ba2; }
.ui-style-1 { --primary: #f093fb; --secondary: #f5576c; }
.ui-style-2 { --primary: #4facfe; --secondary: #00f2fe; }
.ui-style-3 { --primary: #43e97b; --secondary: #38f9d7; }
.ui-style-4 { --primary: #fa709a; --secondary: #fee140; }
.ui-style-5 { --primary: #30cfd0; --secondary: #330867; }
.ui-style-6 { --primary: #a8edea; --secondary: #fed6e3; }
.ui-style-7 { --primary: #ff9a56; --secondary: #ff6a88; }
.ui-style-8 { --primary: #9795f0; --secondary: #fbc8d4; }
.ui-style-9 { --primary: #48c6ef; --secondary: #6f86d6; }
.ui-style-10 { --primary: #f77062; --secondary: #fe5196; }
.ui-style-11 { --primary: #a1c4fd; --secondary: #c2e9fb; }
.ui-style-12 { --primary: #fccb90; --secondary: #d57eeb; }
.ui-style-13 { --primary: #e0c3fc; --secondary: #8ec5fc; }
.ui-style-14 { --primary: #f093fb; --secondary: #f5576c; }
.ui-style-15 { --primary: #ffecd2; --secondary: #fcb69f; }
