/* ==================== 章节目录页样式 ==================== */

/* 章节页面 */
.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 #e74c3c; 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: #fef7f7; border-radius: 5px; }
.action-bar .info { color: #666; font-size: 14px; }
.action-bar .info a { color: #e74c3c; font-weight: bold; }
.action-bar .btn { padding: 8px 20px; background: #e74c3c; color: #fff; border-radius: 5px; text-decoration: none; transition: all 0.3s; }
.action-bar .btn:hover { background: #c0392b; transform: translateY(-2px); }
.action-bar .btn.read { background: #ff6600; }
.action-bar .btn.read:hover { background: #e55c00; }

/* 卷分组 */
.volume { margin-bottom: 30px; }
.volume-title { font-size: 18px; font-weight: bold; color: #e74c3c; padding: 12px 20px; background: #fef0f0; border-left: 4px solid #e74c3c; 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: #fef7f7; border: 1px solid #f0d0d0; border-radius: 5px; font-size: 13px; transition: all 0.3s; }
.chapter-item:hover { background: #e74c3c; border-color: #e74c3c; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(231,76,60,0.2); }
.chapter-item:hover a { color: #fff; }
.chapter-item a { color: #333; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chapter-item .vip-tag { color: #ff6600; font-size: 12px; margin-left: 5px; }
.chapter-item:hover .vip-tag { color: #fff; }

/* 分页 */
.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 #f0d0d0; color: #333; border-radius: 5px; text-decoration: none; transition: all 0.3s; }
.pagination a:hover { background: #e74c3c; color: #fff; border-color: #e74c3c; }
.pagination .active { background: #e74c3c; color: #fff; border-color: #e74c3c; }
.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; }
}
