/* 基础布局 */
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.section { margin: 40px 0; }
h1 { font-size: 28px; margin-bottom: 20px; color: #222; }
h2 { font-size: 22px; margin-bottom: 15px; color: #333; border-left: 4px solid #007bff; padding-left: 10px; }
h3 { font-size: 18px; margin-bottom: 10px; }

/* 首页 */
.hero h1 { text-align: center; font-size: 32px; margin: 40px 0; line-height: 1.4; }
.intro { background: #fff; padding: 20px; border-radius: 8px; margin-bottom: 30px; line-height: 1.8; }

/* 卡片网格 */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: transform 0.3s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.card h3 a { color: #007bff; }
.card h3 a:hover { text-decoration: underline; }
.card .meta { color: #666; font-size: 14px; margin: 8px 0; }
.card .desc { color: #555; font-size: 14px; line-height: 1.6; }

/* 排行列表 */
.rank-list { background: #fff; padding: 20px; border-radius: 8px; }
.rank-item { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid #eee; }
.rank-item:last-child { border-bottom: none; }
.rank-item .rank { display: inline-block; width: 30px; height: 30px; background: #ff6b6b; color: #fff; text-align: center; line-height: 30px; border-radius: 50%; margin-right: 15px; font-weight: bold; }
.rank-item:nth-child(1) .rank { background: #ffd700; }
.rank-item:nth-child(2) .rank { background: #c0c0c0; }
.rank-item:nth-child(3) .rank { background: #cd7f32; }
.rank-item a { flex: 1; color: #333; }
.rank-item a:hover { color: #007bff; }

/* 简单列表 */
.simple-list { background: #fff; padding: 20px; border-radius: 8px; }
.list-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #eee; }
.list-item:last-child { border-bottom: none; }
.list-item a { color: #333; }
.list-item a:hover { color: #007bff; }
.list-item .year { color: #999; font-size: 14px; }

/* 更多链接 */
.more { text-align: center; margin-top: 20px; }
.more a { color: #007bff; font-size: 16px; }
.more a:hover { text-decoration: underline; }

.links { text-align: center; margin: 40px 0; font-size: 16px; }
.links a { color: #007bff; margin: 0 10px; }
.links a:hover { text-decoration: underline; }

/* 列表页 */
.page-desc { background: #fff; padding: 15px; border-radius: 8px; margin-bottom: 20px; line-height: 1.8; }
.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.list-card { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); position: relative; }
.list-card .rank { position: absolute; top: 10px; right: 10px; background: #ff6b6b; color: #fff; padding: 5px 10px; border-radius: 4px; font-weight: bold; }
.list-card .year, .list-card .tags { display: inline-block; color: #999; font-size: 13px; margin-right: 10px; }

/* 详情页 */
.detail article { background: #fff; padding: 30px; border-radius: 8px; }
.detail h1 { font-size: 32px; margin-bottom: 20px; }
.detail .info { background: #f9f9f9; padding: 15px; border-radius: 4px; margin: 20px 0; }
.detail .info p { margin: 8px 0; }
.detail .tags .tag { display: inline-block; background: #e3f2fd; color: #1976d2; padding: 4px 10px; border-radius: 4px; margin-right: 8px; font-size: 13px; }
.detail .highlight { margin: 30px 0; }
.detail .oneline { font-size: 18px; color: #555; font-style: italic; line-height: 1.8; }
.detail .summary, .detail .review { margin: 30px 0; line-height: 1.8; }
.detail .related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; margin-top: 15px; }
.detail .related-item { background: #f9f9f9; padding: 15px; border-radius: 4px; }
.detail .related-item h4 { margin-bottom: 8px; }
.detail .related-item h4 a { color: #007bff; }
.detail .related-item h4 a:hover { text-decoration: underline; }
.detail .related-item p { font-size: 14px; color: #666; }

/* 响应式 */
@media (max-width: 768px) {
  .container { padding: 15px; }
  h1 { font-size: 24px; }
  .hero h1 { font-size: 26px; margin: 20px 0; }
  .card-grid, .list-grid { grid-template-columns: 1fr; }
  .detail h1 { font-size: 26px; }
}