/**
 * 分类页面样式
 */

/* ========== 页面容器 ========== */
.page-classification {
    width: 100%;
}

/* ========== 搜索区域 ========== */
.classification-search-section {
    width: 100%;
    height: 200px;
    background-image: url(../../images/pages/classification/bg_search.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 搜索输入框 */
.classification-search-section .search-input {
    width: 35%;
}

.classification-search-section .search-input .el-input__inner {
    height: 60px;
    line-height: 60px;
    font-size: 15px;
    border-radius: 8px;
    padding-right: 50px;
}

.classification-search-section .search-input .el-input__icon {
    font-size: 20px;
    cursor: pointer;
}

/* ========== 内容区域 ========== */
.classification-content-section {
    width: 100%;
    background-image: linear-gradient(hsla(0,0%,88%,.5),hsla(0,0%,88%,.5)), url(../../images/pages/index/bg_content.webp);
    background-repeat: repeat;
    background-size: auto;
    background-color: #ffffff80;
    padding: 0 0 35px;
}

/* ========== 分类筛选区域 ========== */
.classification-filter-section {
    padding: 20px 0;
    margin-bottom: 20px;
}

/* 筛选行 */
.filter-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

/* 筛选标签 */
.filter-label {
    width: 100px;
    font-size: 18px;
    font-weight: 600;
    color: #303133;
    line-height: 28px;
    flex-shrink: 0;
    margin-right: 10px;
}

/* 筛选项容器 */
.filter-options {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* 筛选项（支持 <a> 根相对跳转） */
a.filter-option {
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}

.filter-option {
    padding: 6px 16px;
    font-size: 18px;
    font-weight: 600;
    color: #303133;
    background-color: transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    user-select: none;
}

.filter-option:hover {
    color: #409eff;
}

.filter-option.active {
    background-color: #409eff;
    color: #fff;
}

/* ========== 漫画列表区域 ========== */
.classification-manga-list {
    padding: 20px 0;
}

/* 漫画列表 */
.classification-manga-list .manga-list {
    width: 100%;
}

/* 漫画项（可为 <a> 详情链接） */
.classification-manga-list a.manga-item {
    text-decoration: none;
    color: inherit;
    display: block;
}

.classification-manga-list .manga-item {
    padding: 0 5px;
    margin-bottom: 15px;
    transition: transform 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.classification-manga-list .manga-item:hover {
    transform: translateY(-4px);
    border-bottom-color: #f56c6c;
}

/* 漫画封面 */
.classification-manga-list .manga-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    background-color: #f5f5f5;
    border-radius: 5px;
    overflow: hidden;
}

.classification-manga-list .manga-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 遮罩层 */
.classification-manga-list .manga-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.classification-manga-list .manga-item:hover .manga-cover-overlay {
    opacity: 1;
}

.classification-manga-list .overlay-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    width: 100%;
    box-sizing: border-box;
}

.classification-manga-list .overlay-author {
    font-size: 12px;
    color: #fff;
    text-align: center;
}

.classification-manga-list .overlay-status {
    font-size: 12px;
    color: #fff;
    text-align: center;
}

.classification-manga-list .overlay-read-btn {
    padding: 6px 20px;
    background-color: #f56c6c;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

/* 漫画信息 */
.classification-manga-list .manga-info {
    padding: 6px 0;
    margin: 0;
}

.classification-manga-list .manga-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    color: #606266;
    margin-top: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.classification-manga-list .manga-chapter {
    font-size: 14px;
    line-height: 16px;
    color: #606266;
    margin-top: 6px;
}

/* ========== 分页控件 ========== */
.pagination-wrapper-top,
.pagination-wrapper-bottom {
    display: flex;
    justify-content: flex-end;
    padding: 15px 0;
}

.pagination-wrapper-top {
    border-bottom: 1px solid #e4e7ed;
    margin-bottom: 15px;
}

.pagination-wrapper-bottom {
    border-top: 1px solid #e4e7ed;
    margin-top: 15px;
}

.el-pagination {
    font-weight: 600;
}

.el-pagination.is-background .el-pager li:not(.disabled).active {
    background-color: #409eff;
    color: #fff;
}

/* ========== 夜间模式样式 ========== */

/* 内容区域夜间模式 */
.dark-mode .classification-content-section {
    background-image: linear-gradient(hsla(0,0%,15%,.85),hsla(0,0%,15%,.85)), url(../../images/pages/index/bg_content.webp);
    background-color: #0a0a0ad8;
}

/* 筛选标签夜间模式 */
.dark-mode .filter-label {
    color: var(--el-text-color-primary);
}

/* 筛选项夜间模式 */
.dark-mode .filter-option {
    color: var(--el-text-color-regular);
}

.dark-mode .filter-option:hover {
    color: #409eff;
}

.dark-mode .filter-option.active {
    background-color: #409eff;
    color: #fff;
}

/* 漫画封面夜间模式 */
.dark-mode .classification-manga-list .manga-cover {
    background-color: var(--el-bg-color-overlay);
}

/* 漫画标题和章节夜间模式 */
.dark-mode .classification-manga-list .manga-title {
    color: var(--el-text-color-primary);
}

.dark-mode .classification-manga-list .manga-chapter {
    color: var(--el-text-color-regular);
}

/* 分页控件边框夜间模式 */
.dark-mode .pagination-wrapper-top {
    border-bottom-color: var(--el-border-color-light);
}

.dark-mode .pagination-wrapper-bottom {
    border-top-color: var(--el-border-color-light);
}
