
/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #004499;
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

/* 导航栏 */
nav {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

nav li {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

nav a {
  display: block;
  padding: 1rem 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  color: #333;
}

nav a:hover {
  background: #f0f0f0;
  text-decoration: none;
}

nav li:first-child a {
  font-weight: 700;
  color: #0066cc;
}

/* 移动端导航优化 */
@media (max-width: 768px) {
  nav a {
    padding: 0.8rem 0.3rem;
    font-size: 0.85rem;
  }
}

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

/* 页面头部 */
.page-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #0066cc;
}

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

.page-desc {
  color: #666;
  max-width: 800px;
  margin: 1rem auto 0;
}

/* 介绍区块 */
.intro-section {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

/* 区块标题 */
section h2 {
  font-size: 1.5rem;
  color: #333;
  margin: 2rem 0 1rem;
  padding-left: 0.5rem;
  border-left: 4px solid #0066cc;
}

.section-desc {
  color: #666;
  margin-bottom: 1rem;
}

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

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

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

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

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

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

/* 榜单列表 */
.rank-list {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.rank-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.3s;
}

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

.rank-item:hover {
  background: #f9f9f9;
}

.rank-num {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  text-align: center;
  background: #0066cc;
  color: #fff;
  border-radius: 4px;
  margin-right: 1rem;
  font-weight: bold;
}

.rank-item a {
  flex: 1;
  font-weight: 500;
}

.rank-item .year {
  color: #999;
  font-size: 0.9rem;
}

/* 列表页卡片 */
.list-card {
  background: #fff;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: relative;
}

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

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

.list-card .genre {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

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

.list-card .review {
  color: #777;
  font-size: 0.9rem;
  line-height: 1.5;
  font-style: italic;
}

/* 标签徽章 */
.rank-badge, .date-badge, .topic-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: bold;
}

.rank-badge {
  background: #ff6b6b;
  color: #fff;
}

.date-badge {
  background: #51cf66;
  color: #fff;
}

.topic-badge {
  background: #339af0;
  color: #fff;
}

/* 详情页 */
.detail-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 8px;
}

.detail-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.detail-header .subtitle {
  font-size: 1rem;
  opacity: 0.9;
}

.detail-info, .detail-highlight, .detail-summary, .detail-review, .detail-related {
  background: #fff;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.detail-info h2, .detail-highlight h2, .detail-summary h2, .detail-review h2, .detail-related h2 {
  font-size: 1.3rem;
  margin: 0 0 1rem 0;
  padding-left: 0;
  border-left: none;
  color: #0066cc;
}

.detail-info dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
}

.detail-info dt {
  font-weight: bold;
  color: #666;
}

.detail-info dd {
  color: #333;
}

.highlight-text {
  font-size: 1.1rem;
  color: #0066cc;
  line-height: 1.8;
  font-weight: 500;
}

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

/* 相关推荐 */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.related-card {
  padding: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  transition: border-color 0.3s;
}

.related-card:hover {
  border-color: #0066cc;
}

.related-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

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

/* 页脚 */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
}

footer p {
  font-size: 0.9rem;
}

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

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

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

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

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