/* 全站样式 - UI Style 0 - Layout B */

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

.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.page-intro {
  font-size: 1rem;
  color: #666;
  max-width: 800px;
  margin: 1rem auto 0;
  line-height: 1.8;
}

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

.site-intro a {
  color: #3498db;
  text-decoration: underline;
}

section {
  margin-bottom: 3rem;
}

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

.section-intro {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.section-intro a {
  color: #3498db;
  text-decoration: underline;
}

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

.video-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  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.1);
}

.video-card .rank-badge {
  position: absolute;
  top: -10px;
  left: -10px;
  background: #e74c3c;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
}

.video-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: #2c3e50;
}

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

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

.video-card .meta {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.video-card .meta span {
  font-size: 0.85rem;
  color: white;
  background: #95a5a6;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.video-card .meta .region {
  background: #3498db;
}

.video-card .meta .type {
  background: #9b59b6;
}

.video-card .meta .year {
  background: #e67e22;
}

.video-card .one-line {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.video-card .tags {
  font-size: 0.85rem;
  color: #7f8c8d;
}

/* 详情页样式 */
.video-detail {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.detail-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #ecf0f1;
}

.detail-header h1 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.detail-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.detail-meta span {
  font-size: 0.9rem;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  background: #95a5a6;
}

.info-block {
  margin-bottom: 2rem;
}

.info-block h2 {
  font-size: 1.3rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  border-bottom: 2px solid #3498db;
  padding-bottom: 0.5rem;
}

.info-list {
  list-style: none;
}

.info-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #ecf0f1;
  line-height: 1.6;
}

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

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

.one-line {
  font-size: 1.1rem;
  color: #34495e;
  line-height: 1.8;
  font-style: italic;
}

.summary {
  line-height: 1.8;
  color: #555;
  text-align: justify;
}

.review {
  line-height: 1.8;
  color: #555;
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 4px;
  border-left: 4px solid #3498db;
}

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

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

footer p {
  max-width: 1200px;
  margin: 0 auto;
  line-height: 1.6;
}

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

  .page-header h1 {
    font-size: 1.5rem;
  }

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

  .video-detail {
    padding: 1rem;
  }

  .detail-header h1 {
    font-size: 1.5rem;
  }
}

/* UI 变体特定样式 */
body.ui-style-0 {
  /* 可根据 UI 索引添加特定样式变化 */
}

/* 布局变体 */
body[data-layout="B"] {
  /* 可根据布局变体添加特定布局调整 */
}