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

.main {
  flex: 1;
  padding: 2rem 0;
}

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

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

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

.section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #667eea;
  color: #333;
}

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

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

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

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #667eea;
}

.card h3 a:hover {
  text-decoration: underline;
}

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

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

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

.more-link a {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: #667eea;
  color: #fff;
  border-radius: 6px;
  transition: all 0.3s;
}

.more-link a:hover {
  background: #764ba2;
  transform: translateX(4px);
}

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

.quick-item {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
  padding: 2rem;
  border-radius: 8px;
  transition: all 0.3s;
  display: block;
}

.quick-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(245, 87, 108, 0.3);
}

.quick-item h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.quick-item p {
  opacity: 0.9;
}

/* 列表页样式 */
.list-page {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.list-page h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #667eea;
}

.page-intro {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #eee;
}

.list-container {
  display: grid;
  gap: 1rem;
}

.list-card {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #667eea;
  transition: all 0.3s;
  position: relative;
}

.list-card:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateX(4px);
}

.list-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #333;
}

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

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

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

.rank {
  display: inline-block;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-weight: bold;
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

.genre-tag, .year-tag {
  display: inline-block;
  background: #764ba2;
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  margin-right: 0.5rem;
  font-size: 0.85rem;
}

/* 详情页样式 */
.detail {
  background: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.detail h1 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: #667eea;
  border-bottom: 3px solid #667eea;
  padding-bottom: 0.8rem;
}

.info-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

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

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

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

.info-list li {
  padding: 0.5rem 0;
  font-size: 1rem;
  line-height: 1.8;
}

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

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

.tag {
  display: inline-block;
  background: #f0f0f0;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #666;
}

.highlight {
  font-size: 1.15rem;
  color: #667eea;
  font-weight: 500;
  line-height: 1.8;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border-radius: 6px;
}

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

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

.related-card {
  background: #f9f9f9;
  padding: 1.2rem;
  border-radius: 6px;
  transition: all 0.3s;
}

.related-card:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.related-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #667eea;
}

.related-card h4 a:hover {
  text-decoration: underline;
}

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

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

/* 页脚 */
.footer {
  background: #2d3748;
  color: #cbd5e0;
  padding: 2rem 0;
  text-align: center;
  margin-top: 3rem;
}

.footer p {
  font-size: 0.9rem;
}

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

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

  .section-title {
    font-size: 1.4rem;
  }

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

  .detail {
    padding: 1.5rem;
  }

  .detail h1 {
    font-size: 1.6rem;
  }

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

  .quick-nav {
    grid-template-columns: 1fr;
  }
}

/* UI 风格变体 */
.ui-style-0 { --primary: #667eea; --secondary: #764ba2; }
.ui-style-1 { --primary: #f093fb; --secondary: #f5576c; }
.ui-style-2 { --primary: #4facfe; --secondary: #00f2fe; }
.ui-style-3 { --primary: #43e97b; --secondary: #38f9d7; }
.ui-style-4 { --primary: #fa709a; --secondary: #fee140; }
.ui-style-5 { --primary: #30cfd0; --secondary: #330867; }
.ui-style-6 { --primary: #a8edea; --secondary: #fed6e3; }
.ui-style-7 { --primary: #ff9a9e; --secondary: #fecfef; }
.ui-style-8 { --primary: #ffecd2; --secondary: #fcb69f; }
.ui-style-9 { --primary: #ff6e7f; --secondary: #bfe9ff; }
.ui-style-10 { --primary: #e0c3fc; --secondary: #8ec5fc; }
.ui-style-11 { --primary: #f8b500; --secondary: #fceabb; }
.ui-style-12 { --primary: #d299c2; --secondary: #fef9d7; }
.ui-style-13 { --primary: #667eea; --secondary: #764ba2; }
.ui-style-14 { --primary: #89f7fe; --secondary: #66a6ff; }
.ui-style-15 { --primary: #fddb92; --secondary: #d1fdff; }
