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

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

/* 导航增强 */
nav a:hover {
  background: #f0f0f0;
  color: #007bff;
}

/* Hero 区域 */
.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;
  line-height: 1.4;
}

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

/* 区块 */
.section {
  margin-bottom: 50px;
}

.section h2 {
  font-size: 28px;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 3px solid #007bff;
}

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

.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;
  position: relative;
}

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

.video-card .rank {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff6b6b;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.video-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
}

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

.video-card .meta {
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
}

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

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

.link-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s;
  text-align: center;
}

.link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.link-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.link-card p {
  font-size: 14px;
  opacity: 0.9;
}

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

.list-header h1 {
  font-size: 32px;
  margin-bottom: 15px;
  color: #333;
}

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

.list-content {
  display: grid;
  gap: 20px;
}

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

.detail-content h1 {
  font-size: 36px;
  margin-bottom: 25px;
  color: #333;
  border-bottom: 3px solid #007bff;
  padding-bottom: 15px;
}

.detail-content h2 {
  font-size: 24px;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #555;
}

.meta-info {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
}

.meta-info p {
  margin: 8px 0;
  font-size: 15px;
}

.oneline-section,
.summary-section,
.review-section {
  margin-bottom: 30px;
}

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

.related-section {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid #eee;
}

/* 页脚 */
footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 50px;
}

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

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

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

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

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

  .detail-content {
    padding: 20px;
  }

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

/* 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: #ff9a9e; --secondary: #fecfef; }
.ui-style-8 { --primary: #ffecd2; --secondary: #fcb69f; }
.ui-style-9 { --primary: #ff6e7f; --secondary: #bfe9ff; }
.ui-style-10 { --primary: #e0c3fc; --secondary: #8ec5fc; }
.ui-style-11 { --primary: #f8b500; --secondary: #fceabb; }
.ui-style-12 { --primary: #667eea; --secondary: #764ba2; }
.ui-style-13 { --primary: #f093fb; --secondary: #f5576c; }
.ui-style-14 { --primary: #4facfe; --secondary: #00f2fe; }
.ui-style-15 { --primary: #43e97b; --secondary: #38f9d7; }
