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

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

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

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

.hero .subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* 区块样式 */
section {
  margin-bottom: 3rem;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.intro p {
  line-height: 1.8;
  color: #555;
}

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

.card {
  background: #fafafa;
  padding: 1.5rem;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-color: #667eea;
}

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

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

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

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

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

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

.card .rank {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #ff6b6b;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.85rem;
}

/* 简单列表 */
.simple-list {
  margin-top: 1rem;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem;
  border-bottom: 1px solid #eee;
}

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

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

.list-item span {
  color: #888;
  font-size: 0.9rem;
}

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

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

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

/* 详情页样式 */
.detail {
  background: white;
  padding: 2rem;
  border-radius: 8px;
}

.detail header {
  margin-bottom: 2rem;
  border-bottom: 2px solid #667eea;
  padding-bottom: 1rem;
}

.detail h1 {
  font-size: 1.8rem;
  color: #2c3e50;
}

.detail .info ul {
  list-style: none;
  margin-top: 1rem;
}

.detail .info li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed #eee;
}

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

.detail .highlight {
  background: #f0f4ff;
  padding: 1.5rem;
  border-left: 4px solid #667eea;
  margin: 1.5rem 0;
}

.detail .highlight p {
  font-size: 1.1rem;
  font-style: italic;
  color: #2c3e50;
  line-height: 1.8;
}

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

/* 页面头部 */
.page-header {
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: 8px;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1rem;
  opacity: 0.9;
}

/* 页脚 */
footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: auto;
}

footer p {
  margin: 0;
}

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

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

  section {
    padding: 1.5rem;
  }

  section h2 {
    font-size: 1.3rem;
  }

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

  .detail {
    padding: 1.5rem;
  }

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

  main {
    padding: 1rem 0.5rem;
  }
}
