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

header {
  background: #2c3e50;
  color: #ecf0f1;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
  text-align: center;
  padding: 1.5rem;
  font-size: 1.8rem;
  font-weight: bold;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.logo a {
  color: #fff;
  text-decoration: none;
}

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

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

/* 首页样式 */
.hero {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 10px;
  margin-bottom: 3rem;
}

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

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

section {
  margin-bottom: 3rem;
}

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

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

.video-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

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

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

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

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

.video-card .oneline {
  color: #555;
  line-height: 1.6;
}

.video-list {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.list-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #ecf0f1;
}

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

.list-item .rank {
  font-size: 1.5rem;
  font-weight: bold;
  color: #667eea;
  min-width: 3rem;
  text-align: center;
}

.list-item h3 {
  flex: 1;
  font-size: 1.1rem;
  margin: 0 1rem;
}

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

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

.list-item .tags {
  color: #7f8c8d;
  font-size: 0.9rem;
}

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

.more-link a {
  color: #667eea;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
}

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

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

.page-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 2rem;
  padding: 1rem;
  background: #f8f9fa;
  border-left: 4px solid #667eea;
}

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

.list-item-full {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
}

.rank-badge,
.year-badge,
.genre-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #667eea;
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
}

.year-badge {
  background: #f39c12;
}

.genre-badge {
  background: #27ae60;
}

.list-item-full h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

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

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

.list-item-full .meta {
  color: #7f8c8d;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.list-item-full .oneline {
  color: #555;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.list-item-full .tags {
  color: #95a5a6;
  font-size: 0.9rem;
}

/* 详情页样式 */
.detail-page {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.detail-page article {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.detail-page h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #2c3e50;
  border-bottom: 3px solid #667eea;
  padding-bottom: 1rem;
}

.detail-page h2 {
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
  color: #2c3e50;
}

.info-list {
  list-style: none;
  line-height: 2;
}

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

.info-list strong {
  color: #667eea;
  min-width: 5rem;
  display: inline-block;
}

.highlight {
  font-size: 1.2rem;
  color: #667eea;
  font-weight: bold;
  padding: 1rem;
  background: #f8f9fa;
  border-left: 4px solid #667eea;
}

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

.related {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  height: fit-content;
}

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

.related-item {
  padding: 1rem 0;
  border-bottom: 1px solid #ecf0f1;
}

.related-item:last-child {
  border-bottom: none;
}

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

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

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

.related-item .meta {
  color: #7f8c8d;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

.related-item .oneline {
  color: #777;
  font-size: 0.9rem;
}

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

  .hero .intro {
    font-size: 1rem;
  }

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

  .detail-page {
    grid-template-columns: 1fr;
  }

  .list-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .list-item h3 {
    margin: 0.5rem 0;
  }
}

/* UI风格变体 */
.ui-style-0 { --primary-color: #667eea; }
.ui-style-1 { --primary-color: #f093fb; }
.ui-style-2 { --primary-color: #4facfe; }
.ui-style-3 { --primary-color: #43e97b; }
.ui-style-4 { --primary-color: #fa709a; }
.ui-style-5 { --primary-color: #30cfd0; }
.ui-style-6 { --primary-color: #a8edea; }
.ui-style-7 { --primary-color: #ff9a56; }
.ui-style-8 { --primary-color: #ee9ca7; }
.ui-style-9 { --primary-color: #42e695; }
.ui-style-10 { --primary-color: #3bb2b8; }
.ui-style-11 { --primary-color: #f093fb; }
.ui-style-12 { --primary-color: #4facfe; }
.ui-style-13 { --primary-color: #f093fb; }
.ui-style-14 { --primary-color: #667eea; }
.ui-style-15 { --primary-color: #764ba2; }
