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

main {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

h1 {
  font-size: 28px;
  color: #1a1a1a;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 3px solid #1a73e8;
}

h2 {
  font-size: 22px;
  color: #333;
  margin: 30px 0 15px;
}

h3 {
  font-size: 18px;
  color: #1a73e8;
  margin-bottom: 8px;
}

/* 站点介绍 */
.site-intro {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 25px;
  border-radius: 8px;
  margin: 20px 0 30px;
  line-height: 1.8;
}

.site-intro a {
  color: #fff;
  text-decoration: underline;
  font-weight: bold;
}

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

.video-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s ease;
}

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

.video-card h3 {
  margin-bottom: 10px;
}

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

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

/* 列表视图 */
.video-list {
  list-style: none;
}

.video-list li {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

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

.video-list a {
  font-size: 18px;
  font-weight: 500;
  color: #1a73e8;
}

.video-list .meta {
  color: #888;
  font-size: 13px;
  margin-left: 10px;
}

.video-list p {
  margin-top: 8px;
  color: #666;
  font-size: 14px;
}

/* 入口卡片 */
.entry-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.entry-card {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
  padding: 25px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

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

.entry-card h3 a {
  color: #fff;
  font-size: 20px;
}

.entry-card p {
  margin-top: 10px;
  opacity: 0.95;
  line-height: 1.6;
}

/* 更多链接 */
.more-link {
  text-align: right;
  margin-top: 20px;
  font-size: 16px;
}

.more-link a {
  color: #1a73e8;
  font-weight: 500;
}

/* 页面介绍 */
.page-intro {
  background: #f8f9fa;
  padding: 20px;
  border-left: 4px solid #1a73e8;
  margin: 20px 0 30px;
  line-height: 1.8;
}

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

.list-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s ease;
}

.list-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: #1a73e8;
}

.list-card .rank,
.list-card .vid,
.list-card .genre,
.list-card .year {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  margin-right: 10px;
  margin-bottom: 10px;
}

.list-card .rank {
  background: #ff6b6b;
  color: #fff;
}

.list-card .vid {
  background: #4ecdc4;
  color: #fff;
}

.list-card .genre {
  background: #95e1d3;
  color: #333;
}

.list-card .year {
  background: #ffd93d;
  color: #333;
}

.list-card h3 {
  margin-bottom: 10px;
}

.list-card .summary {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 10px;
}

/* 详情页 */
.video-detail section {
  margin-bottom: 30px;
}

.basic-info ul {
  list-style: none;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
}

.basic-info li {
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
}

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

.oneline p {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.8;
}

.summary p,
.review p {
  line-height: 2;
  color: #444;
  text-align: justify;
  font-size: 15px;
}

/* 相关推荐 */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.related-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  transition: all 0.3s ease;
}

.related-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-3px);
}

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

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

.related-card .oneline {
  color: #555;
  font-size: 13px;
  line-height: 1.5;
}

/* 响应式 */
@media (max-width: 768px) {
  main {
    padding: 20px 15px;
    border-radius: 0;
  }

  h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 18px;
  }

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

  .entry-cards {
    grid-template-columns: 1fr;
  }

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

  .site-intro {
    padding: 15px;
    font-size: 14px;
  }
}

/* UI变体样式 */
.ui-style-0 { --primary-color: #1a73e8; }
.ui-style-1 { --primary-color: #e91e63; }
.ui-style-2 { --primary-color: #9c27b0; }
.ui-style-3 { --primary-color: #673ab7; }
.ui-style-4 { --primary-color: #3f51b5; }
.ui-style-5 { --primary-color: #2196f3; }
.ui-style-6 { --primary-color: #00bcd4; }
.ui-style-7 { --primary-color: #009688; }
.ui-style-8 { --primary-color: #4caf50; }
.ui-style-9 { --primary-color: #8bc34a; }
.ui-style-10 { --primary-color: #ff9800; }
.ui-style-11 { --primary-color: #ff5722; }
.ui-style-12 { --primary-color: #795548; }
.ui-style-13 { --primary-color: #607d8b; }
.ui-style-14 { --primary-color: #e74c3c; }
.ui-style-15 { --primary-color: #1abc9c; }
