
/* 全局样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif; background: #f5f7fa; color: #333; line-height: 1.6; }
a { color: #3498db; text-decoration: none; transition: color 0.3s; }
a:hover { color: #2980b9; }

/* 头部 */
header { background: #2c3e50; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.logo-container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.site-logo { font-size: 28px; font-weight: 700; }
.site-logo a { color: #fff; }
.main-nav { background: #34495e; }
.nav-list { display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center; list-style: none; max-width: 1200px; margin: 0 auto; padding: 0; }
.nav-list li { flex: 1 1 0; min-width: 0; text-align: center; }
.nav-list a { display: block; padding: 15px 10px; color: #ecf0f1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background 0.3s; }
.nav-list a:hover, .nav-list a.active { background: #2c3e50; }

/* 容器 */
.container { max-width: 1200px; margin: 0 auto; padding: 30px 20px; }

/* 标题 */
.page-title { font-size: 32px; margin-bottom: 15px; color: #2c3e50; }
.page-desc { font-size: 16px; color: #7f8c8d; margin-bottom: 30px; line-height: 1.8; }

/* Hero */
.hero { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; padding: 60px 40px; border-radius: 12px; margin-bottom: 40px; text-align: center; }
.hero .page-title { color: #fff; font-size: 36px; }
.hero .page-desc { color: rgba(255,255,255,0.9); font-size: 18px; }

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

/* 卡片网格 */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-bottom: 40px; }
.card { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.card h3 { font-size: 18px; margin-bottom: 10px; color: #2c3e50; }
.card .meta { font-size: 14px; color: #95a5a6; margin-bottom: 10px; }
.card .one-line { font-size: 14px; color: #555; line-height: 1.6; }

/* 入口卡片 */
.entry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 40px; }
.entry-card { background: #fff; padding: 25px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); text-align: center; transition: transform 0.3s; }
.entry-card:hover { transform: translateY(-4px); }
.entry-card h3 { font-size: 20px; margin-bottom: 10px; color: #2c3e50; }
.entry-card p { font-size: 14px; color: #7f8c8d; }

/* 简单列表 */
.list-simple { list-style: none; background: #fff; padding: 20px 30px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.list-simple li { padding: 12px 0; border-bottom: 1px solid #ecf0f1; }
.list-simple li:last-child { border-bottom: none; }
.list-simple .year { color: #95a5a6; font-size: 14px; }

/* 列表容器 */
.list-container { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.list-item { padding: 20px 0; border-bottom: 1px solid #ecf0f1; position: relative; }
.list-item:last-child { border-bottom: none; }
.list-item h3 { font-size: 20px; margin-bottom: 10px; color: #2c3e50; }
.list-item .meta { font-size: 14px; color: #95a5a6; margin-bottom: 10px; }
.list-item .summary { font-size: 15px; color: #555; line-height: 1.8; }
.list-item.with-rank { padding-left: 60px; }
.list-item .rank { position: absolute; left: 0; top: 20px; width: 40px; height: 40px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; }
.list-item .tags { margin-top: 10px; }
.list-item .tag { display: inline-block; background: #ecf0f1; color: #7f8c8d; padding: 4px 12px; border-radius: 12px; font-size: 12px; margin-right: 8px; margin-top: 4px; }

/* 详情页 */
.detail-page { background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.detail-title { font-size: 32px; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 2px solid #ecf0f1; color: #2c3e50; }
.detail-page section { margin-bottom: 40px; }
.detail-page h2 { font-size: 22px; margin-bottom: 15px; color: #2c3e50; border-left: 4px solid #3498db; padding-left: 12px; }
.basic-info ul { list-style: none; }
.basic-info li { padding: 10px 0; font-size: 16px; line-height: 1.8; }
.basic-info .tag { display: inline-block; background: #ecf0f1; color: #7f8c8d; padding: 4px 12px; border-radius: 12px; font-size: 13px; margin-right: 8px; margin-top: 4px; }
.one-line-section .highlight { font-size: 18px; color: #e74c3c; font-weight: 500; background: #fff5f5; padding: 15px 20px; border-radius: 6px; border-left: 4px solid #e74c3c; }
.summary-section p, .review-section p { font-size: 16px; line-height: 2; color: #555; text-align: justify; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.related-card { background: #f8f9fa; padding: 20px; border-radius: 8px; transition: background 0.3s; }
.related-card:hover { background: #ecf0f1; }
.related-card h3 { font-size: 16px; margin-bottom: 8px; color: #2c3e50; }
.related-card .meta { font-size: 13px; color: #95a5a6; margin-bottom: 8px; }
.related-card .one-line { font-size: 14px; color: #555; }

/* 区块标题 */
section h2 { font-size: 26px; margin-bottom: 20px; color: #2c3e50; padding-bottom: 10px; border-bottom: 2px solid #ecf0f1; }

/* 页脚 */
footer { background: #2c3e50; color: #ecf0f1; text-align: center; padding: 30px 20px; margin-top: 60px; }
footer p { font-size: 14px; }

/* 响应式 */
@media (max-width: 768px) {
  .nav-list a { padding: 12px 5px; font-size: 13px; }
  .page-title { font-size: 24px; }
  .hero { padding: 40px 20px; }
  .hero .page-title { font-size: 26px; }
  .card-grid { grid-template-columns: 1fr; }
  .entry-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .detail-title { font-size: 24px; }
}
