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

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

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

.hero h1 {
  font-size: 28px;
  line-height: 1.5;
  font-weight: 600;
}

.intro {
  background: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  line-height: 1.8;
}

.intro a {
  color: #1a73e8;
  text-decoration: underline;
}

.intro a:hover {
  color: #1557b0;
}

section {
  margin-bottom: 50px;
}

section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #1a73e8;
}

/* 视频卡片网格 */
.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.08);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

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

.video-card .rank {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff6b6b;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
}

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

.video-card h3 a {
  color: inherit;
  transition: color 0.3s;
}

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

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

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

/* 列表样式 */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

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

.video-item {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: relative;
}

.video-item .rank-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
}

.video-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.video-item h3 a {
  color: #333;
  transition: color 0.3s;
}

.video-item h3 a:hover {
  color: #1a73e8;
}

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

.video-item .summary {
  color: #555;
  line-height: 1.6;
}

/* 页面头部 */
.page-header {
  background: white;
  padding: 40px 30px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

.page-header p {
  color: #666;
  line-height: 1.8;
}

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

.video-detail {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.video-detail h1 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #333;
  padding-bottom: 15px;
  border-bottom: 3px solid #1a73e8;
}

.video-detail section {
  margin-bottom: 30px;
}

.video-detail h2 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #1a73e8;
  border-bottom: 2px solid #e8f0fe;
  padding-bottom: 8px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.info-list strong {
  color: #666;
  margin-right: 10px;
}

.one-line-text {
  font-size: 18px;
  color: #1a73e8;
  font-weight: 500;
  line-height: 1.6;
  padding: 15px;
  background: #e8f0fe;
  border-radius: 6px;
}

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

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

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

.related-card:hover {
  border-color: #1a73e8;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.2);
}

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

.related-card h3 a {
  color: #333;
}

.related-card h3 a:hover {
  color: #1a73e8;
}

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

.related-card .desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* 底部 */
footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: auto;
}

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

  .hero {
    padding: 40px 20px;
  }

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

  .intro {
    padding: 20px;
  }

  section h2 {
    font-size: 20px;
  }

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

  .video-detail {
    padding: 25px;
  }

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

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

/* UI风格变体 */
.ui-style-0 { --primary-color: #1a73e8; }
.ui-style-1 { --primary-color: #ea4335; }
.ui-style-2 { --primary-color: #34a853; }
.ui-style-3 { --primary-color: #fbbc04; }
.ui-style-4 { --primary-color: #9c27b0; }
.ui-style-5 { --primary-color: #00bcd4; }
.ui-style-6 { --primary-color: #ff5722; }
.ui-style-7 { --primary-color: #607d8b; }
.ui-style-8 { --primary-color: #e91e63; }
.ui-style-9 { --primary-color: #009688; }
.ui-style-10 { --primary-color: #ff9800; }
.ui-style-11 { --primary-color: #3f51b5; }
.ui-style-12 { --primary-color: #795548; }
.ui-style-13 { --primary-color: #4caf50; }
.ui-style-14 { --primary-color: #f44336; }
.ui-style-15 { --primary-color: #2196f3; }
