
/* 章节排序样式 */
.chapter-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.sort-buttons {
    display: flex;
    gap: 10px;
}

.sort-btn {
    padding: 6px 16px;
    background: #f1f5f9;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: none;
}

.sort-btn.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.sort-btn:hover {
    background: #e2e8f0;
}

.chapter-list-container {
    max-height: 500px;
    overflow-y: auto;
    border-radius: 16px;
}

.chapter-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
}

.chapter-list li {
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #f0f2f5;
}

.chapter-list li:hover {
    background: #e2e8f0;
    /* 没有任何位移效果 */
}

.chapter-list li a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
    .chapter-controls {
        justify-content: flex-start;
    }
    
    .chapter-list {
        grid-template-columns: 1fr;
    }
}