/* 全局样式 */
.container {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* 首页样式 */
.intro-section {
  margin-bottom: 3rem;
}

.intro-section h1 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.intro-text {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.8;
}

.featured-section,
.rankings-section,
.latest-section {
  margin-bottom: 3rem;
}

.featured-section h2,
.rankings-section h2,
.latest-section h2 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #3498db;
}

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

.video-card {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

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

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

.video-card h3 a:hover {
  color: #3498db;
}

.video-card .meta {
  font-size: 0.9rem;
  color: #7f8c8d;
  margin-bottom: 0.8rem;
}

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

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.link-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 2rem;
  border-radius: 8px;
  transition: transform 0.3s;
}

.link-card:hover {
  transform: scale(1.05);
}

.link-card h3 {
  margin-bottom: 0.5rem;
}

.link-card h3 a {
  color: #fff;
  text-decoration: none;
  font-size: 1.3rem;
}

.link-card p {
  font-size: 0.95rem;
  opacity: 0.9;
}

.video-list {
  list-style: none;
  padding: 0;
}

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

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

.video-list li a {
  color: #2c3e50;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
}

.video-list li a:hover {
  color: #3498db;
}

.video-list .meta {
  margin-left: 1rem;
  font-size: 0.9rem;
  color: #95a5a6;
}

.more-link {
  text-align: right;
  margin-top: 1rem;
}

.more-link a {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
}

.more-link a:hover {
  text-decoration: underline;
}

/* 列表页样式 */
.list-section h1 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.video-list-grid {
  display: grid;
  gap: 1.5rem;
}

.video-item {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  position: relative;
}

.video-item .rank {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #e74c3c;
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
}

.video-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.video-item h3 a {
  color: #2c3e50;
  text-decoration: none;
}

.video-item h3 a:hover {
  color: #3498db;
}

.video-item .meta {
  font-size: 0.9rem;
  color: #7f8c8d;
  margin-bottom: 0.8rem;
}

.video-item .date {
  font-size: 0.85rem;
  color: #95a5a6;
  margin-bottom: 0.5rem;
}

.video-item .summary {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

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

.basic-info,
.highlight,
.summary,
.review,
.related {
  margin-bottom: 2.5rem;
}

.basic-info h2,
.highlight h2,
.summary h2,
.review h2,
.related h2 {
  font-size: 1.4rem;
  color: #34495e;
  margin-bottom: 1rem;
}

.info-list {
  list-style: none;
  padding: 0;
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
}

.info-list li {
  padding: 0.5rem 0;
  font-size: 1rem;
  color: #555;
}

.info-list strong {
  color: #2c3e50;
  display: inline-block;
  width: 80px;
}

.oneline {
  font-size: 1.15rem;
  color: #2c3e50;
  background: #ecf0f1;
  padding: 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  line-height: 1.6;
}

.summary p,
.review p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.8;
}

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

.related-item {
  background: #f8f9fa;
  padding: 1.2rem;
  border-radius: 8px;
  transition: transform 0.3s;
}

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

.related-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.related-item h3 a {
  color: #2c3e50;
  text-decoration: none;
}

.related-item h3 a:hover {
  color: #3498db;
}

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

/* UI 风格变体 */
.ui-style-0 { --primary-color: #3498db; }
.ui-style-1 { --primary-color: #2ecc71; }
.ui-style-2 { --primary-color: #e74c3c; }
.ui-style-3 { --primary-color: #9b59b6; }
.ui-style-4 { --primary-color: #f39c12; }
.ui-style-5 { --primary-color: #1abc9c; }
.ui-style-6 { --primary-color: #34495e; }
.ui-style-7 { --primary-color: #16a085; }
.ui-style-8 { --primary-color: #27ae60; }
.ui-style-9 { --primary-color: #2980b9; }
.ui-style-10 { --primary-color: #8e44ad; }
.ui-style-11 { --primary-color: #c0392b; }
.ui-style-12 { --primary-color: #d35400; }
.ui-style-13 { --primary-color: #7f8c8d; }
.ui-style-14 { --primary-color: #2c3e50; }
.ui-style-15 { --primary-color: #e67e22; }

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

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

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

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

  .container {
    padding: 1rem;
  }
}
