/* ================= 基础样式 ================= */
/* ================= 基础布局 ================= */
.search-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 15px;
}
.search-input {
    width: 100%;
    padding: 12px 25px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.3s;
}
/* ================= 卡片核心样式 ================= */
/* ================= 响应式布局 ================= */
/* 平板竖屏（768-991px）4列 */
/* 手机横屏（576-767px）3列 */
@media (max-width: 767px) {
    .search-container {
        max-width: 500px;
        margin: 20px auto;
        padding: 0 15px;
    }
}
/* 手机竖屏（≤575px）2列 */
@media (max-width: 575px) {
    .search-container {
        max-width: 300px;
        margin: 20px auto;
        padding: 0 15px;
    }
}
.drama-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    z-index: 1001;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}
.modal-title {
    font-size: 14px;
    margin-bottom: 15px;
    color: #333;
}
.modal-content {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    max-height: 60vh;
    overflow-y: auto;
}
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 20px;
    text-align: center;
    line-height: 30px;
}
/* 添加到样式表 */
#searchBtn:hover {
    color: #2196F3;
}
#noResult {
    text-align: center;
    min-width: 250px;
}
#noResult button {
    background: #2196F3;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
}
/* 修改返回顶部按钮样式 */
#backToTop {
    bottom: 30px;
    right:2%;
    width: 45px;
    height: 45px;
}
#backToTop:hover {
    background: #1976D2;
    transform: scale(1.1);
    transition: all 0.3s;
}
.featured-section{
    padding-bottom: 0px;
}
.featured-section .row{
    margin-bottom: -140px;
}
.nav-tabs{
    margin-bottom: 80px;
    margin-top:30px;
}
/* 弹窗样式 */
.custom-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    z-index: 2000;
    padding: 24px;
    animation: modalFade 0.3s;
    width: min(80%, 400px);
    background: rgb(255 255 255 / 70%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
/* 修改弹窗头部样式 */
.modal-header {
    position: relative;
    height: 30px;
}
/* 修改弹窗关闭按钮定位 */
.modal-close {
    position: absolute;
    right: 10px;
    background: none;
    box-shadow: none;
    color: #666;
    font-size: 40px;
    width: auto;
    cursor: pointer;
    height: auto;
    border: none;
    z-index: 1;
    margin-left: 93%;
}
.modal-close:hover {
    color: #333;
}
.modal-body {
    text-align: center;
}
.modal-body p {
    color: #333;
    margin-bottom: 20px;
    font-size: 16px;
}
@keyframes modalFade {
    from { opacity: 0; transform: translate(-50%, -40%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}
/* 分享按钮提示信息 */
.toast {
    position: fixed;
    bottom: 160px;
    right: 2%;
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    display: none;
    animation: slideIn 0.5s;
}
@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
/* 分享按钮 */
#shareBtn.float-btn {
    position: fixed;
    bottom: 160px;
    right: 2%;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #2196f3;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(33,150,243,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 100;
}
#shareBtn.float-btn:hover {
    transform: scale(1.1);
    background: #1976d2;
}
#shareBtn.float-btn i {
    font-size: 20px;
}
/* 移动端适配 */
@media (max-width: 768px) {
    #shareBtn.float-btn {
        bottom: 140px;
        right: 2%;
        width: 40px;
        height: 40px;
    }
    #backToTop {
        bottom: 30px;
        right:2%;
        width: 40px;
        height: 40px;
    }
    .toast {
        right: -30%;
        font-size: 12px;
    }
}
@media (max-width: 575px) {
    #shareBtn.float-btn {
        bottom: 100px;
        right: 2%;
        width: 38px;
        height: 38px;
    }
    #shareBtn.float-btn i {
        font-size: 18px;
    }
    #backToTop {
        bottom: 30px;
        right:2%;
        width: 38px;
        height: 38px;
    }
}
/* 新增标题样式 */
.nav-tabs {
    border-bottom: none;
    justify-content: center;
}
.nav-item span.nav-link {
    width: 300px;
    max-width: 80%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    font-size: 1.2rem;
    white-space: nowrap;
    position: relative;
    font-weight: 700;
    color: #2c3e50;
    border: none !important;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(5px);
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 0 auto; /* 居中 */
    border: 1px solid rgba(255,255,255,0.3) !important;
}
.nav-item span.nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, #2196F3 0%, #e91e63 100%);
    border-radius: 2px;
    opacity: 0.8;
    transition: all 0.3s ease;
}
.nav-item span.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(33,150,243,0.2);
    color: #2196F3;
}
.nav-item span.nav-link:hover::before {
    width: 95%;
    opacity: 1;
}
/* 移动端适配 */
@media (max-width: 768px) {
    .nav-item span.nav-link {
        width: 250px;
        font-size: 1.1rem;
        height: 44px;
    }
}
@media (max-width: 576px) {
    .nav-item span.nav-link {
        width: 220px;
        font-size: 1rem;
        height: 42px;
        padding: 0 10px;
        left: 10%;
    }
    .nav-item span.nav-link::before {
        height: 2px;
        bottom: -3px;
    }
    .current-page-btn {
        min-width: 100px !important;
        font-size: 0.8rem;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .page-link {
        padding: 0.3rem 0.5rem;
    }
}
/* Pagination styles */
.pagination {
    justify-content: center;
    margin: 20px 0;
    pointer-events: auto !important;
}
.pagination li {
    margin: 0 5px;
}
.pagination a {
    padding: 8px 15px;
    /*border-radius: 20px;*/
    transition: all 0.3s;
}
.pagination a.active, .pagination a:hover:not(.disabled) {
    background-color: #2196F3;
    color: white;
    border-color: #2196F3;
}
/* 手机端适配 */
@media (max-width: 768px) {
    .pagination a {
        padding: 6px 12px;
        font-size: 14px;
    }
}
/* 分页禁用状态-强制覆盖Bootstrap默认样式 */
.page-item.disabled {
    cursor: not-allowed !important;
    pointer-events: none !important;
}
.page-item.disabled .page-link {
    opacity: 0.5 !important;
    background-color: #e9ecef !important;
    border-color: #dee2e6 !important;
    color: #6c757d !important;
    /* 移动端触摸优化 */
    touch-action: none !important;
    cursor: not-allowed !important;
}
/* 移动端点击反馈 */
.page-link.active {
    transform: scale(0.95);
    opacity: 0.8;
}
/* 移动端点击区域优化 */
@media (max-width: 575px) {
    .page-link {
        min-width: 65px;
        padding: 8px 12px !important;
        font-size: 14px !important;
    }

    .page-item:not(.disabled) .page-link {
        background: #2196F3 !important;
        color: white !important;
    }

    .page-item.disabled .page-link {
        background: #e9ecef !important;
        color: #6c757d !important;
    }
}
/* 禁用状态 */
.pagination a.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}
/* 修改禁用状态选择器 */
/* 修改后 */
.page-item.disabled {
    cursor: not-allowed;
}
.page-item.disabled .page-link {
    opacity: 0.6 !important;
    pointer-events: none !important;
    background-color: #f8f9fa !important;
    color: #6c757d !important;
}

/* 增加移动端点击区域优化 */
.page-link {
    min-width: 70px;  /* 保证移动端点击区域 */
    touch-action: manipulation;  /* 优化移动端触摸 */
    transition: all 0.2s ease;
}
/* 调整弹窗层级 */
.modal-backdrop {
    z-index: 999;
}
.custom-modal {
    z-index: 1000;
}
/* 打赏弹窗 */
.donate-modal {
    max-width: 300px;
    text-align: center;
}
.donate-qr {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}
.donate-tip {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-top: 10px;
}
.donate-tip i {
    font-size: 24px;
    color: #ff6b6b;
    margin-bottom: 8px;
}

@media (max-width: 575px) {
    .donate-modal {
        width: 90%;
    }
    .donate-qr {
        max-width: 200px;
    }
}
/*    打赏样式结束*/
/* 无描述时的标题样式 */

@media (max-width: 575px) {
    /* 修改导航文字 */
    .nav-item span.nav-link {
        font-size: 0.9rem !important;
        padding: 0.4rem 1rem !important;
        margin: 0 5px !important;
        letter-spacing: 0;
    }

    /* 修改导航下划线 */
    .nav-item span.nav-link::before {
        width: 70% !important;
        bottom: -2px !important;
    }

    /* 修改文字内容 */
    #movie-tab::after {
        content: "";
        display: none;
    }
    #movie-tab br {
        display: none;
    }
}
/* 固定在顶部的头部 */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 90; /* 低于导航栏的 100 */
    /* 其他原有样式保持不变 */
    background-color: rgba(255, 255, 255, 0.5);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 0 auto 20px;
    max-width: 1350px;
    border-radius: 20px;
    transition: transform 0.3s ease; /* 添加过渡效果 */
}
/* 确保导航栏层级最高并设置高度变量 */
.navbar {
    z-index: 100;
    position: relative;
    --navbar-collapse-height: 0px; /* 默认值 */
}
/* 添加提示样式 */
.mobile-tip {
    position: fixed;
    top: 60px;
    right: 15px;
    z-index: 1000;
    animation: floatTip 10s ease-in-out forwards;
}

.tip-content {
    position: relative;
    background: rgba(255,255,255,0.9);
    padding: 8px 12px;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
}

.tip-text {
    font-size: 14px;
    color: #ff4757;
    margin-right: 8px;
    white-space: nowrap;
    font-weight: bold;
}

.tip-icon {
    color: #ff6b81;
    font-size: 20px;
    animation: pointDown 1s ease-in-out infinite;
}
@keyframes floatTip {
    0% { opacity: 0; transform: translateY(-20px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}

@keyframes pointDown {
    0% { transform: translateY(0); }
    50% { transform: translateY(5px); }
    100% { transform: translateY(0); }
}
/* 手机端适配 */
@media (max-width: 991px) {
    .navbar-collapse {
        position: relative;
        z-index: 110;
        /*background-color: white;*/
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        max-height: 60vh;
        overflow-y: auto;
    }
}
/* 调整搜索容器样式 */
.sticky-header .search-container {
    /*max-width: 800px;*/
    margin: 0 auto;
    padding: 0 15px;
}

/* 调整分页样式 */
.sticky-header .pagination {
    margin: 15px 0 5px;
}

/* 手机端适配 */
@media (max-width: 768px) {
    .sticky-header {
        padding: 10px 0;
    }
    .sticky-header .search-container {
        padding: 0 10px;
    }
}
/* 页码输入框样式 */
#pageInputContainer {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: none;
}

.page-jump-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

#pageInput {
    width: 50px;
    text-align: center;
    padding: 6px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

/* 确保跳转按钮样式与分页按钮一致 */
#goToPageBtn {
    padding: 6px 12px;
    background-color: #0d6efd;
    color: white;
    border: 1px solid #0d6efd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

#goToPageBtn:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* 当前页码按钮样式 */
.current-page-btn {
    cursor: pointer;
    transition: all 0.3s;
    min-width: 120px !important; /* 设置最小宽度 */
    white-space: nowrap; /* 防止换行 */
    padding-left: 15px !important;
    padding-right: 15px !important;
    font-size: 0.9rem; /* 适当减小字体大小 */
}

.current-page-btn:hover {
    color: #0d6efd;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    -ms-appearance: textfield;
    appearance: textfield;
}