
/* 全局样式 */
body { font-size: 16px; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; background: #fff; margin-top: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

/* 头部 */
.site-header { text-align: center; padding: 40px 0; border-bottom: 3px solid #3498db; }
.site-header h1 { font-size: 2.2em; color: #2c3e50; margin-bottom: 10px; }

/* 站点介绍 */
.site-intro { background: #ecf0f1; padding: 30px; border-radius: 8px; margin: 30px 0; }
.site-intro h2 { color: #2c3e50; margin-bottom: 15px; font-size: 1.5em; }
.site-intro p { line-height: 1.8; color: #555; }
.site-intro a { color: #3498db; text-decoration: underline; }

/* 章节 */
section { margin: 40px 0; }
section h2 { color: #2c3e50; border-left: 4px solid #3498db; padding-left: 15px; margin-bottom: 20px; font-size: 1.6em; }

/* 视频网格 */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.video-card { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 20px; transition: all 0.3s; }
.video-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.15); transform: translateY(-2px); }
.video-card h3 { font-size: 1.2em; margin-bottom: 10px; }
.video-card h3 a { color: #2c3e50; text-decoration: none; }
.video-card h3 a:hover { color: #3498db; }
.video-card .meta { color: #7f8c8d; font-size: 0.9em; margin-bottom: 8px; }
.video-card .desc { color: #555; line-height: 1.6; font-size: 0.95em; }

/* 视频列表 */
.video-list { display: flex; flex-direction: column; gap: 15px; }
.video-item { border: 1px solid #e0e0e0; padding: 20px; border-radius: 6px; background: #fafafa; }
.video-item h3 { font-size: 1.2em; margin-bottom: 8px; }
.video-item h3 a { color: #2c3e50; text-decoration: none; }
.video-item .meta { color: #7f8c8d; font-size: 0.9em; margin-bottom: 8px; }
.video-item .desc { color: #555; line-height: 1.6; }

/* 入口卡片 */
.entrance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.entrance-card { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; padding: 30px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.entrance-card h3 { font-size: 1.4em; margin-bottom: 15px; }
.entrance-card h3 a { color: #fff; text-decoration: none; }
.entrance-card p { line-height: 1.6; opacity: 0.95; }

/* 详情页 */
.detail-page h1 { font-size: 2em; color: #2c3e50; border-bottom: 3px solid #3498db; padding-bottom: 15px; margin-bottom: 30px; }
.basic-info ul { list-style: none; background: #f8f9fa; padding: 20px; border-radius: 6px; }
.basic-info li { padding: 8px 0; border-bottom: 1px solid #e0e0e0; }
.basic-info li:last-child { border-bottom: none; }
.one-line p { font-size: 1.2em; color: #e74c3c; font-weight: bold; background: #fef5e7; padding: 15px; border-radius: 6px; }
.summary p, .review p { line-height: 1.8; color: #555; text-align: justify; }

/* 排行榜 */
.ranking-list { display: flex; flex-direction: column; gap: 20px; }
.ranking-item { display: flex; border: 1px solid #ddd; border-radius: 8px; padding: 20px; background: #fafafa; }
.rank-number { background: #3498db; color: #fff; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: bold; font-size: 1.2em; flex-shrink: 0; margin-right: 20px; }
.rank-content { flex: 1; }
.rank-content h3 { font-size: 1.3em; margin-bottom: 8px; }
.rank-content h3 a { color: #2c3e50; text-decoration: none; }
.rank-content .recommend { color: #555; line-height: 1.7; margin-top: 10px; }

/* 专题页 */
.topic-intro { background: #e8f4f8; padding: 30px; border-radius: 8px; margin-bottom: 30px; }
.topic-intro h2 { color: #2c3e50; margin-bottom: 15px; }
.topic-intro p { line-height: 1.8; color: #555; }
.topic-list { display: flex; flex-direction: column; gap: 25px; }
.topic-item { border: 2px solid #3498db; padding: 25px; border-radius: 8px; background: #fff; }
.topic-item h3 { font-size: 1.4em; margin-bottom: 10px; color: #2c3e50; }
.topic-desc { margin-top: 15px; }
.topic-desc p { line-height: 1.7; color: #555; margin-bottom: 10px; }
.topic-review { font-style: italic; background: #f0f8ff; padding: 12px; border-radius: 5px; }

/* 最新列表 */
.latest-list { display: flex; flex-direction: column; gap: 15px; }
.latest-item { display: flex; border: 1px solid #ddd; border-radius: 6px; padding: 18px; background: #fff; }
.latest-date { background: #e74c3c; color: #fff; padding: 10px 15px; border-radius: 5px; font-weight: bold; margin-right: 20px; white-space: nowrap; display: flex; align-items: center; font-size: 0.9em; }
.latest-content { flex: 1; }
.latest-content h3 { font-size: 1.2em; margin-bottom: 8px; }

/* 年份分组 */
.year-group { margin-bottom: 40px; }
.year-group h2 { background: #34495e; color: #fff; padding: 12px 20px; border-radius: 6px; }

/* 响应式 */
@media (max-width: 768px) {
  .container { padding: 15px; margin-top: 10px; }
  .site-header h1 { font-size: 1.6em; }
  .video-grid { grid-template-columns: 1fr; }
  .entrance-grid { grid-template-columns: 1fr; }
  .ranking-item { flex-direction: column; }
  .rank-number { margin-bottom: 15px; margin-right: 0; }
  .latest-item { flex-direction: column; }
  .latest-date { margin-bottom: 10px; margin-right: 0; }
}
