/* 全局样式重置与基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #333;
}

a {
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0d6efd !important;
}


/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 搜索框样式优化 */
.search-form {
    width: 100%;
    max-width: 380px;
}

.search-form input:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-color: #0d6efd;
}

/* 内容模块通用样式 */
.content-section {
    scroll-margin-top: 80px; /* 适配吸顶导航的锚点滚动 */
}

.section-title {
    border-left: 4px solid #0d6efd;
    padding-left: 12px;
    color: #212529;
}

/* 热搜列表样式 */
.hot-search-item span.badge {
    width: 24px;
    height: 24px;
    line-height: 24px;
    padding: 0;
    text-align: center;
}

.hot-search-item a {
    color: #212529;
    font-weight: 500;
}

/* 漫画卡片样式 */
.comic-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border: none;
}

.comic-card:hover {
    transform: translateY(-6px);
}

.comic-cover {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.comic-card:hover .comic-cover {
    transform: scale(1.05);
}

.comic-card .card-title a {
    color: #212529;
    font-weight: 600;
}

/* 猜你喜欢列表样式 */
.recommend-list a {
    color: #212529;
}

/* 页脚样式 */
footer {
    margin-top: 20px;
}

.friend-link a:hover {
    text-decoration: underline !important;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .comic-cover {
        height: 160px;
    }

    .search-form {
        max-width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    h1.fs-2 {
        font-size: 1.5rem !important;
    }

    .section-title {
        font-size: 1.25rem !important;
    }
}



/* ==================== 漫画分类筛选页 新增样式 ==================== */
/* 筛选区域基础样式 */
.filter-section {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: none;
}

/* 筛选组标题 */
.filter-title {
    
    color: #495057;
}

/* 筛选滑条容器 - 实现横向滚动 */
.filter-slider-wrapper {
    overflow-x: auto;
    /* 隐藏滚动条（兼容主流浏览器） */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.filter-slider-wrapper::-webkit-scrollbar {
    display: none;
}

/* 筛选滑条列表 */
.filter-slider {
    white-space: nowrap;
    flex-wrap: nowrap !important;
}

/* 筛选选项样式 */
.filter-link {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background-color: #f1f3f5;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* 筛选选项激活/悬停状态 */
.filter-link.active,
.filter-link:hover {
    background-color: #0d6efd;
    color: #fff !important;
}

/* 分页组件样式优化 */
.pagination-nav .page-link {
    color: #0d6efd;
    padding: 6px 12px;
}

.pagination-nav .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.pagination-nav .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
}

/* 筛选页漫画卡片适配 */
.comic-card .card-text {
    line-height: 1.4;
}

/* 小屏幕适配优化 */
@media (max-width: 768px) {
    .filter-group {
        margin-bottom: 1rem !important;
    }
    .filter-title {
        min-width: 40px;
        font-size: 0.875rem !important;
    }
    .filter-link {
        padding: 3px 8px;
        font-size: 0.875rem;
    }
}

/* 漫画详情页样式 */
.comic-detail-cover {
    max-height: 360px;
    object-fit: cover;
}
.comic-title {
    color: #212529;
}
.chapter-link {
    color: #212529;
    transition: all 0.2s;
}
.chapter-link:hover {
    background-color: #e9ecef;
    text-decoration: none;
}
.comment-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* ==================== 漫画阅读页 新增样式 ==================== */
/* 顶部固定阅读导航栏 */
.read-header {
    height: 56px;
    z-index: 1050;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.read-title {
    max-width: 50%;
}

/* 阅读主体区域内边距 适配固定导航栏 */
.read-main {
    padding-top: 70px;
    padding-bottom: 70px;
}

/* VIP遮罩层样式 */
.vip-mask {
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 100;
}
.mask-content {
    max-width: 90%;
    width: 400px;
}

/* 底部固定功能栏 */
.read-footer {
    height: 56px;
    z-index: 1050;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

/* 章节选集弹窗样式 */
.chapter-item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 猜你喜欢-文字链列表样式 */
.like-text-list a {
    font-weight: 500;
    transition: color 0.3s ease;
}
.like-text-list a:hover {
    color: #0d6efd !important;
    text-decoration: none;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .read-header, .read-footer {
        padding: 0.5rem 1rem;
    }
    .read-title {
        font-size: 0.875rem !important;
    }
    .read-footer .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    .mask-content {
        padding: 1.5rem !important;
    }
}

/* 小屏幕隐藏按钮文字，保留图标 */
@media (max-width: 576px) {
    .read-footer .btn span {
        display: none;
    }
}