/* 全局样式 */
body { font-size: 16px; }
a { color: #3498db; transition: color 0.3s; }
a:hover { color: #2980b9; }

/* 头部 */
header { background: white; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.logo { text-align: center; padding: 20px; }
.logo h1 { font-size: 28px; color: #2c3e50; }

/* 主体容器 */
main { max-width: 1200px; margin: 0 auto; padding: 20px; }

/* 首页英雄区 */
.hero { text-align: center; padding: 60px 20px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-radius: 12px; margin-bottom: 40px; }
.hero h1 { font-size: 32px; margin-bottom: 20px; }
.hero p { font-size: 18px; line-height: 1.8; max-width: 800px; margin: 0 auto; }

/* 介绍区 */
.intro { background: white; padding: 40px; border-radius: 8px; margin-bottom: 40px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.intro h2 { font-size: 24px; margin-bottom: 20px; color: #2c3e50; }
.intro p { font-size: 16px; line-height: 1.8; color: #555; }

/* 列表模块 */
.list-module { margin-bottom: 50px; }
.list-module h2 { font-size: 26px; margin-bottom: 25px; padding-bottom: 10px; border-bottom: 3px solid #3498db; color: #2c3e50; }

/* 卡片网格 */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-bottom: 20px; }
.card { background: white; padding: 20px; 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(-5px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card h3 a { color: #2c3e50; text-decoration: none; }
.card h3 a:hover { color: #3498db; }
.card .meta { font-size: 14px; color: #7f8c8d; margin-bottom: 8px; }
.card .desc { font-size: 14px; color: #555; line-height: 1.6; }
.more { text-align: center; margin-top: 20px; }
.more a { display: inline-block; padding: 10px 30px; background: #3498db; color: white; text-decoration: none; border-radius: 5px; }
.more a:hover { background: #2980b9; }

/* 快速链接 */
.quick-links { text-align: center; padding: 30px; background: #ecf0f1; border-radius: 8px; }
.quick-links a { margin: 0 10px; }

/* 列表页 */
.page-header { text-align: center; padding: 40px 20px; background: white; border-radius: 8px; margin-bottom: 30px; }
.page-header h1 { font-size: 32px; margin-bottom: 15px; color: #2c3e50; }
.page-header p { font-size: 16px; color: #555; line-height: 1.8; max-width: 900px; margin: 0 auto; }

.list-content { background: white; padding: 30px; border-radius: 8px; }
.card-list { display: flex; flex-direction: column; gap: 20px; }
.card-list .card { position: relative; }
.card .rank { position: absolute; top: 10px; left: 10px; background: #e74c3c; color: white; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: bold; }
.card .tags { font-size: 12px; color: #95a5a6; margin: 5px 0; }
.card .review { font-size: 13px; color: #7f8c8d; margin-top: 8px; font-style: italic; }

/* 详情页 */
.detail { background: white; padding: 40px; border-radius: 8px; }
.detail h1 { font-size: 36px; margin-bottom: 30px; color: #2c3e50; border-bottom: 3px solid #3498db; padding-bottom: 15px; }
.detail section { margin-bottom: 35px; }
.detail h2 { font-size: 22px; margin-bottom: 15px; color: #34495e; }
.detail .info ul { list-style: none; }
.detail .info li { padding: 8px 0; border-bottom: 1px solid #ecf0f1; font-size: 15px; }
.detail .oneline p, .detail .summary p, .detail .review p { font-size: 16px; line-height: 1.8; color: #555; }
.detail .oneline { background: #e8f4f8; padding: 20px; border-radius: 8px; border-left: 4px solid #3498db; }

.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; }
.related-card { background: #f8f9fa; padding: 15px; border-radius: 6px; border: 1px solid #e9ecef; }
.related-card h3 { font-size: 16px; margin-bottom: 8px; }
.related-card h3 a { color: #2c3e50; text-decoration: none; }
.related-card h3 a:hover { color: #3498db; }
.related-card .meta { font-size: 13px; color: #6c757d; margin-bottom: 5px; }
.related-card .desc { font-size: 13px; color: #555; }

/* 页脚 */
footer { text-align: center; padding: 30px 20px; color: #7f8c8d; background: #2c3e50; color: white; margin-top: 50px; }

/* 响应式 */
@media (max-width: 768px) {
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 16px; }
  .card-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .detail { padding: 20px; }
  .detail h1 { font-size: 28px; }
  main { padding: 10px; }
}
