/* ==================== 章节目录页样式 ==================== */

/* 章节页面 */
.chapters-page { background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); padding: 30px; margin: 20px 0; }
.page-title { font-size: 24px; font-weight: bold; color: #333; padding-bottom: 15px; border-bottom: 3px solid #f1c40f; margin-bottom: 20px; display: flex; align-items: center; gap: 15px; }
.page-title .chapter-count { font-size: 14px; color: #999; font-weight: normal; }

/* 操作栏 */
.action-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 15px; background: #fef9e7; border-radius: 5px; }
.action-bar .info { color: #666; font-size: 14px; }
.action-bar .info a { color: #f1c40f; font-weight: bold; }
.action-bar .btn { padding: 8px 20px; background: #f1c40f; color: #333; border-radius: 5px; text-decoration: none; transition: all 0.3s; font-weight: bold; }
.action-bar .btn:hover { background: #d4ac0d; transform: translateY(-2px); }
.action-bar .btn.read { background: #e67e22; color: #fff; }
.action-bar .btn.read:hover { background: #d35400; }

/* 卷分组 */
.volume { margin-bottom: 30px; }
.volume-title { font-size: 18px; font-weight: bold; color: #f1c40f; padding: 12px 20px; background: #fef9e7; border-left: 4px solid #f1c40f; margin-bottom: 15px; border-radius: 0 5px 5px 0; }

/* 章节网格 */
.chapter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.chapter-item { padding: 10px 15px; background: #fef9e7; border: 1px solid #f9e79f; border-radius: 5px; font-size: 13px; transition: all 0.3s; }
.chapter-item:hover { background: #f1c40f; border-color: #f1c40f; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(241,196,15,0.2); }
.chapter-item:hover a { color: #333; }
.chapter-item a { color: #333; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chapter-item .vip-tag { color: #e67e22; font-size: 12px; margin-left: 5px; }
.chapter-item:hover .vip-tag { color: #333; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; }
.pagination a, .pagination span { display: inline-block; padding: 8px 15px; background: #fff; border: 1px solid #f9e79f; color: #333; border-radius: 5px; text-decoration: none; transition: all 0.3s; }
.pagination a:hover { background: #f1c40f; color: #333; border-color: #f1c40f; }
.pagination .active { background: #f1c40f; color: #333; border-color: #f1c40f; }
.pagination .disabled { background: #eee; color: #999; pointer-events: none; }

/* 空状态 */
.empty { text-align: center; padding: 60px; color: #999; }

/* 响应式 */
@media (max-width: 1024px) {
    .chapter-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .chapters-page { padding: 15px; }
    .chapter-grid { grid-template-columns: repeat(2, 1fr); }
    .action-bar { flex-direction: column; gap: 10px; align-items: flex-start; }
    .page-title { font-size: 18px; flex-direction: column; align-items: flex-start; gap: 5px; }
}
@media (max-width: 480px) {
    .chapter-grid { grid-template-columns: 1fr; }
    .chapter-item { padding: 10px 12px; font-size: 12px; }
    .action-bar .btn { padding: 8px 15px; font-size: 12px; }
}
