/* 全局样式 */
body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

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

.main-content {
  background: white;
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 首页样式 */
.hero {
  text-align: center;
  padding: 2rem 0;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.intro {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 6px;
  line-height: 1.8;
}

.video-section {
  margin-bottom: 3rem;
}

.video-section h2 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #667eea;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

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

.video-card:hover {
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  transform: translateY(-2px);
  border-color: #667eea;
}

.video-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

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

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

.video-card .meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.video-card .desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
}

.more-link {
  text-align: center;
  margin-top: 1.5rem;
}

.more-link a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.more-link a:hover {
  color: #764ba2;
}

/* 列表页样式 */
.page-desc {
  font-size: 1rem;
  color: #666;
  margin-bottom: 2rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 4px;
}

.video-list {
  margin-top: 2rem;
}

.list-item {
  display: flex;
  align-items: flex-start;
  padding: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.3s;
}

.list-item:hover {
  background: #f8f9fa;
}

.list-item .rank {
  font-size: 1.5rem;
  font-weight: bold;
  color: #667eea;
  margin-right: 1rem;
  min-width: 40px;
}

.list-item .date {
  font-size: 0.9rem;
  color: #999;
  margin-right: 1rem;
  min-width: 60px;
}

.list-content {
  flex: 1;
}

.list-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.list-content h3 a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s;
}

.list-content h3 a:hover {
  color: #667eea;
}

.list-content .meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.list-content .desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
}

/* 详情页样式 */
.detail-page h1 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #667eea;
}

.video-info {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 6px;
  margin-bottom: 2rem;
}

.video-info p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.video-detail {
  margin-bottom: 2rem;
}

.video-detail h2 {
  font-size: 1.3rem;
  color: #2c3e50;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.video-detail p {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
}

.related-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #f0f0f0;
}

.related-section h2 {
  font-size: 1.3rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

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

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

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

.related-item h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.related-item h4 a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s;
}

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

.related-item p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
}

/* 页脚 */
footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
}

footer p {
  margin: 0;
}

/* 响应式 */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.5rem;
  }

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

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

  .main-content {
    padding: 1rem;
  }

  .list-item {
    flex-direction: column;
  }

  .list-item .rank,
  .list-item .date {
    margin-bottom: 0.5rem;
  }
}

/* UI 风格变体（基于 body class） */
.ui-style-0 {
  /* 默认紫色渐变 */
}

.ui-style-1 body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ui-style-2 body {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.ui-style-3 body {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.ui-style-4 body {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.ui-style-5 body {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.ui-style-6 body {
  background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.ui-style-7 body {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.ui-style-8 body {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.ui-style-9 body {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.ui-style-10 body {
  background: linear-gradient(135deg, #ff6e7f 0%, #bfe9ff 100%);
}

.ui-style-11 body {
  background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
}

.ui-style-12 body {
  background: linear-gradient(135deg, #f8ceec 0%, #a88beb 100%);
}

.ui-style-13 body {
  background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
}

.ui-style-14 body {
  background: linear-gradient(135deg, #fdcbf1 0%, #e6dee9 100%);
}

.ui-style-15 body {
  background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
}
