/* 分类页面特定样式 */

.category-container {
    width: 100%;
    margin-top: 20px;
}

/* 筛选区域样式 */
.filter-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.night-mode .filter-section {
    background: #2d2d2d;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.filter-group {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label-wrapper {
    display: flex;
    align-items: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.filter-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.night-mode .filter-label {
    color: #e0e0e0;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    flex: 1;
}

/* a标签样式的筛选标签 */
.filter-tag {
    display: inline-block;
    padding: 4px 8px;
    background: white;
    color: #666;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
    white-space: nowrap;
    font-weight: 400;
    text-decoration: none;
}

.filter-tag:hover {
    background: #ffffff;
    color: #333;
    border-color: #ccc;
    text-decoration: none;
}

.filter-tag.active {
    background: #ff6b35 !important;
    color: white !important;
    border-color: #ff6b35 !important;
    text-decoration: none;
}

.night-mode .filter-tag {
    background: #333;
    color: #999;
    border-color: #555;
}

.night-mode .filter-tag:hover {
    background: #444;
    color: #e0e0e0;
    border-color: #666;
    text-decoration: none;
}

.night-mode .filter-tag.active {
    background: #ff6b35 !important;
    color: white !important;
    border-color: #ff6b35 !important;
    text-decoration: none;
}

/* 漫画列表区域 */
.manga-list-section {
    margin-top: 20px;
}

.manga-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.manga-card {
    overflow: hidden;
    transition: all 0.3s ease;
}

.manga-cover {
    cursor: pointer;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.manga-cover:hover .cover-image {
    transform: scale(1.02);
}

.manga-info {
    cursor: pointer;
    padding: 12px 8px;
    transition: background-color 0.3s ease;
}

.manga-info:hover {
    background-color: rgba(0,0,0,0.05);
}

.night-mode .manga-info:hover {
    background-color: rgba(255,255,255,0.1);
}




.manga-cover {
    width: 100%;
    height: 249px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.cover-image {
    width: 180px;
    height: 249px;
    border-radius: 12px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.cover-placeholder {
    font-size: 14px;
    color: #999;
    text-align: center;
    padding: 20px;
}

.night-mode .manga-cover {
    background: #333;
}

.night-mode .cover-placeholder {
    color: #666;
}

.manga-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.night-mode .manga-title {
    color: #e0e0e0;
}

.manga-author {
    font-size: 12px;
    color: #999;
    margin-bottom: 0;
}

.night-mode .manga-author {
    color: #666;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    background: white;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-decoration: none;
}

.page-btn:hover {
    background: #ffffff;
    border-color: #ff6b35;
    color: #ff6b35;
    text-decoration: none;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.night-mode .page-btn {
    background: #2d2d2d;
    border-color: #555;
    color: #e0e0e0;
}

.night-mode .page-btn:hover {
    background: #333;
    border-color: #ff6b35;
    color: #ff6b35;
    text-decoration: none;
}

.page-numbers {
    display: flex;
    gap: 4px;
    align-items: center;
}

/* a标签样式的页码 */
.page-number {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    background: white;
    color: #666;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 40px;
    text-align: center;
    text-decoration: none;
}

.page-number:hover {
    background: #ffffff;
    border-color: #ccc;
    color: #333;
    text-decoration: none;
}

.page-number.active {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
    text-decoration: none;
}

.night-mode .page-number {
    background: #2d2d2d;
    border-color: #555;
    color: #999;
}

.night-mode .page-number:hover {
    background: #333;
    border-color: #666;
    color: #e0e0e0;
    text-decoration: none;
}

.night-mode .page-number.active {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
    text-decoration: none;
}

.page-ellipsis {
    padding: 8px 4px;
    color: #999;
    font-size: 14px;
}

.night-mode .page-ellipsis {
    color: #666;
}

/* 页脚间距 */
#footer-container {
    margin-top: 40px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .manga-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .manga-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .manga-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 10px;
    }
    
    .manga-cover {
        height: 200px;
    }
    
    .cover-image {
        width: 120px;
        height: 200px;
    }
    
    .manga-title {
        font-size: 12px;
    }
    
    .manga-author {
        font-size: 10px;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-label {
        margin-bottom: 8px;
        margin-right: 0;
    }
}

@media (max-width: 600px) {
    .manga-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .manga-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .page-number {
        min-width: 32px;
        padding: 6px 8px;
        font-size: 12px;
    }
}
