/* 全局样式 */
body.ui-style-0 {
  --primary-color: #d32f2f;
  --secondary-color: #1976d2;
  --text-color: #333;
  --bg-color: #f5f5f5;
  --card-bg: #fff;
}

main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 5%;
}

/* 首页 Hero */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 3rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.hero .site-intro {
  font-size: 1rem;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
  opacity: 0.95;
}

/* Section 样式 */
section {
  background: var(--card-bg);
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
}

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

.video-card {
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s;
  background: #fafafa;
}

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

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

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

.video-card h3 a:hover {
  color: var(--primary-color);
}

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

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

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

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

.list-item:hover {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.list-item h3 a {
  color: #333;
  text-decoration: none;
}

.list-item h3 a:hover {
  color: var(--primary-color);
}

.list-item .meta {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 0.5rem;
}

.list-item p {
  color: #666;
  line-height: 1.6;
}

.list-item .tags {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.list-item .tags span {
  background: #e3f2fd;
  color: #1976d2;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* 排行榜样式 */
.list-item.ranked {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.list-item.ranked .rank {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  min-width: 3rem;
  text-align: center;
}

.list-item.ranked .content {
  flex: 1;
}

/* 详情页 */
.detail-page article {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.detail-page h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 1rem;
}

.detail-page section {
  margin-bottom: 2rem;
}

.detail-page h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

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

.info-item {
  display: flex;
  gap: 0.5rem;
}

.info-item.full {
  grid-column: 1 / -1;
}

.info-item label {
  font-weight: bold;
  color: #666;
  min-width: 4rem;
}

.one-line p {
  font-size: 1.2rem;
  color: var(--secondary-color);
  font-style: italic;
  padding: 1rem;
  background: #e3f2fd;
  border-radius: 6px;
}

.summary p, .review p {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  text-align: justify;
}

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

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

.related-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

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

.related-item h3 a:hover {
  color: var(--primary-color);
}

/* 更多链接 */
.more-link {
  text-align: center;
  margin-top: 2rem;
}

.more-link a {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s;
}

.more-link a:hover {
  background: #b71c1c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

/* 列表页 */
.list-page h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.list-page .page-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 2rem;
  padding: 1rem;
  background: #fff3e0;
  border-left: 4px solid #ff9800;
  border-radius: 4px;
}

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

/* 响应式 */
@media (max-width: 768px) {
  main {
    padding: 0 3%;
  }

  .hero {
    padding: 2rem 1.5rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero .site-intro {
    font-size: 0.9rem;
  }

  section {
    padding: 1.5rem;
  }

  section h2 {
    font-size: 1.5rem;
  }

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

  .detail-page h1 {
    font-size: 1.8rem;
  }

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

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