html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%; /* 标准属性 */
}
    
        body {
            font-family: Arial, sans-serif;
            line-height: 1.6;
             padding-top: 56px; /* 导航栏高度 */
        }
        .container.custom-container {
        max-width: 1400px; /* 或您想要的任何宽度 */
    }
        .video-container .dplayer {
            width: 100%;
            height: 100%;
        }
        .dplayer-notice {
            background-color: rgba(0, 0, 0, 0.8) !important;
            color: #fff !important;
            border-radius: 4px !important;
            padding: 10px 15px !important;
            font-size: 14px !important;
        }
        /* 视频容器样式 */
        .video-container {
            margin: 20px 0;
            position: relative;
            overflow: hidden;
            background: #000;
        }
        /* 剧集按钮样式 */
        .episode-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .episode-btn {
            transition: all 0.3s ease;
        }
        .episode-btn.active {
            background-color: #007bff;
            color: white;
        }
        /* 关键词样式 */
        .article-keywords .badge {
            background-color: #28a745;
            color: white;
        }
        /* 文章内容样式 */
        .article-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0;
            background-color: #fff;
        }
        .article-header {
            margin-bottom: 30px;
            border-bottom: 1px solid #eee;
            padding-bottom: 15px;
            margin-top: 0px;
        }
        .article-title {
            font-size: 28px;
            font-weight: bold;
            margin-bottom: 10px;
            color: #333;
        }
        .article-meta {
            color: #666;
            font-size: 14px;
            margin-bottom: -45px;
        }
        .article-content {
            line-height: 1.8;
            font-size: 16px;
            color: #333;
            margin-top: 45px;
        }
        .article-content img {
            max-width: 100%;
            height: auto;
            display: block;
            margin: 15px auto;
        }
        @media (max-width: 768px) {
            .article-title {
                font-size: 22px;
            }
            .article-content {
                font-size: 15px;
            }
            .video-container {
                width: 100% !important;
                height: auto !important;
                padding-bottom: 56.25%;
            }
            .dplayer {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
            }
            .episode-buttons {
                justify-content: center;
            }
        }
        .video-container {
            position: relative;
            overflow: hidden;
            border-radius: 5px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        }
        .episode-buttons {
            display: flex;
            flex-wrap: wrap;
        }
        .episode-btn.active {
            background-color: #007bff;
            color: white;
        }
        .video-series-container {
            margin-bottom: 20px;
        }
        .dplayer-menu {
            display: none !important;
        }
        /* 模态窗口样式 */
        .auth-modal .modal-header {
            border-bottom: none;
            padding-bottom: 0;
        }
        .auth-modal .modal-title {
            font-weight: bold;
            text-align: center;
            width: 100%;
        }
        .auth-modal .nav-tabs {
            border-bottom: none;
            margin-bottom: 20px;
        }
        .auth-modal .nav-tabs .nav-link {
            border: none;
            color: #495057;
            font-weight: 500;
            padding: 10px 20px;
        }
        .auth-modal .nav-tabs .nav-link.active {
            color: #007bff;
            background-color: transparent;
            border-bottom: 2px solid #007bff;
        }
        .auth-modal .tab-content {
            padding: 0 15px;
        }
        .auth-modal .form-group {
            margin-bottom: 1.5rem;
        }
        .auth-modal .btn-primary {
            width: 100%;
            padding: 10px;
            font-weight: 500;
        }
        .auth-modal .form-footer {
            text-align: center;
            margin-top: 15px;
            font-size: 14px;
        }
        .auth-modal .form-footer a {
            color: #007bff;
        }
        .error-message {
            color: #dc3545;
            font-size: 14px;
            margin-top: 5px;
            display: none;
        }
        .success-message {
            color: #28a745;
            font-size: 14px;
            margin-top: 5px;
            display: none;
        }
        /* 加载动画样式 */
        .spinner-border {
            display: inline-block;
            width: 1rem;
            height: 1rem;
            vertical-align: text-bottom;
            border: 0.2em solid currentColor;
            border-right-color: transparent;
            border-radius: 50%;
            animation: spinner-border 0.75s linear infinite;
        }
        @keyframes spinner-border {
            to { transform: rotate(360deg); }
        }
        /* 用户头像样式 */
        .navbar-nav .user-avatar {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            margin-right: 5px;
        }
        /* 模态窗口过渡动画 */
        .modal.fade .modal-dialog {
            transition: transform 0.3s ease-out;
        }
        /* 错误提示样式 */
        .ajax-error {
            color: #dc3545;
            font-size: 0.875rem;
            margin-top: 0.25rem;
        }
        .jy{
            margin-left: auto;
        }
        /* 验证码样式 */
        .captcha-group {
            display: flex;
            align-items: center;
        }
        .captcha-input {
            flex: 1;
        }
        .captcha-img {
            margin-left: 10px;
            cursor: pointer;
            height: 38px;
            border: 1px solid #ced4da;
            border-radius: 4px;
        }
        /* 验证提示样式 */
        .verification-alert {
            position: fixed;
            top: 70px;
            right: 20px;
            z-index: 1050;
            max-width: 350px;
        }
        
        /* 验证图标样式 */
.validation-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* 防止干扰输入框操作 */
    z-index: 4; /* 确保显示在输入框上方 */
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* 移除Bootstrap自带的验证图标 */
.form-control.is-valid, 
.form-control.is-invalid {
    background-image: none !important; /* 禁用Bootstrap默认图标 */
    padding-right: 12px; /* 恢复默认padding */
}


.validation-icon .fas {
    font-size: 16px;
}

.valid-icon {
    color: #28a745 !important;
}

.invalid-icon {
    color: #dc3545 !important;
}

/* 密码强度指示器 */
.password-strength .progress-bar {
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-0 { background-color: #dc3545; width: 20%; }
.strength-1 { background-color: #fd7e14; width: 40%; }
.strength-2 { background-color: #ffc107; width: 60%; }
.strength-3 { background-color: #28a745; width: 80%; }
.strength-4 { background-color: #20c997; width: 100%; }

/* 密码要求 */
.password-requirements {
    font-size: 13px;
}

.requirement {
    display: flex;
    align-items: center;
    margin-bottom: 3px;
}

.requirement .fa-circle {
    font-size: 10px;
}

.requirement.valid {
    color: #28a745;
}

.requirement.valid .fa-circle {
    color: inherit;
}

.requirement.invalid {
    color: #6c757d;
}

/* 输入框组调整 */
.input-group-text {
    transition: border-color 0.15s ease-in-out;
}

.is-invalid ~ .input-group-append .input-group-text {
    border-color: #dc3545;
}

.is-valid ~ .input-group-append .input-group-text {
    border-color: #28a745;
}

@media (min-width: 768px) {
    .form-row .form-group {
        padding-right: 15px;
        padding-left: 15px;
    }
}

/* 服务条款模态窗口样式 */
.terms-content {
    line-height: 1.6;
    color: #333;
}

.terms-content h5 {
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #444;
}

.terms-content p {
    margin-bottom: 15px;
}

.terms-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.terms-content li {
    margin-bottom: 5px;
}

/* 添加欢迎消息样式 */
.welcome-message {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1050;
    animation: slideIn 0.5s forwards;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* 用户导航栏样式 */
.navbar-nav.jy {
    transition: all 0.3s ease;
}

/* 验证提醒样式 */
.verification-alert {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1050;
    max-width: 400px;
    animation: slideInRight 0.3s forwards;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Toast样式 */
.toast {
    transition: all 0.3s ease;
}

/* 添加过渡效果 */
.comment-form {
    transition: all 0.3s ease;
}

/* 登录提示样式 */
#loginPrompt {
    transition: all 0.3s ease;
}

/* 添加以下样式到现有的style部分 */
.navbar-brand {
    display: none !important; /* 隐藏Logo */
}

/* 确保导航项在小屏幕上也能正确显示 */
@media (max-width: 992px) {
    .navbar-collapse {
        background-color: #343a40; /* 保持与导航栏相同的背景色 */
        padding: 10px;
        margin-top: 5px;
        border-radius: 4px;
    }
    
    .navbar-nav.jy {
        flex-direction: row !important;
        justify-content: flex-end;
        width: 100%;
    }
    
    .navbar-nav.jy .nav-item {
        margin-left: 10px;
    }
}

/* 确保在小屏幕上也能看到用户信息 */
.user-avatar {
    width: 24px;
    height: 24px;
    margin-right: 5px;
}

/* 模态框成功状态样式 */
.modal-success .modal-header {
    background-color: #28a745;
    color: white;
}

.modal-success .modal-title {
    color: white;
}

/* 错误提示样式 */
.ajax-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* 加载动画 */
.submitting {
    position: relative;
}
.submitting::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 新增搜索框相关样式 */
#mobileSearchForm {
    position: absolute;
    top: 56px; /* 导航栏高度 */
    left: 0;
    right: 0;
    background: #343a40;
    padding: 10px 15px;
    z-index: 1030;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* 调整小屏幕下的布局 */
@media (max-width: 992px) {
    #mobileMenuToggle {
        order: 1;
    }
    
    .navbar-toggler.d-lg-none {
        display: inline-block !important;
        margin-right: 0;
    }
    
    .d-lg-none.mx-auto {
        order: 2;
        flex-grow: 1;
        text-align: center;
    }
    
    .ml-auto.mr-2 {
        order: 3;
    }
    
    .navbar-collapse {
        order: 4;
    }
    
    .d-lg-none .navbar-nav {
        justify-content: center;
        width: 100%;
    }
    
    .d-lg-none .nav-link {
        padding: 0.5rem 0.75rem;
        color: rgba(255, 255, 255, 0.75);
        white-space: nowrap;
    }
    
    .d-lg-none .nav-link:hover {
        color: rgba(255, 255, 255, 1);
    }
}

/* 新增的分类导航样式 */
.category-parent {
    position: relative;
    margin-bottom: 5px;
}

.category-parent > .category-item {
    display: inline-block;
    width: calc(100% - 30px);
}

.toggle-children {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 20px;
    height: 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.category-parent.expanded .toggle-children {
    transform: rotate(180deg);
}

.category-children {
    display: none;
    padding-left: 15px;
}

.category-parent.expanded .category-children {
    display: block;
}

.category-item.child {
    font-size: 0.9em;
    padding-left: 20px;
    color: rgba(255,255,255,0.6);
}

.category-item.child:hover {
    color: rgba(255,255,255,0.9);
}

/* 原有样式保持不变 */
.category-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background-color: #343a40;
    color: white;
    z-index: 1050;
    transition: all 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.category-sidebar.show {
    left: 0;
}

.category-sidebar-header {
    padding: 15px;
    border-bottom: 1px solid #4b545c;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-sidebar-header h5 {
    margin: 0;
    color: white;
}

.category-sidebar-header .close-btn {
    color: white;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 5px;
}

.category-sidebar-body {
    
    padding: 15px;
    
    overflow-y: auto;
    height:80%;
}

.category-item {
    display: block;
    padding: 10px 15px;
    color: rgba(255,255,255,.75);
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 5px;
    transition: all 0.2s;
}

.category-item:hover {
    color: white;
    background-color: rgba(255,255,255,.1);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 1040;
    display: none;
}

@media (max-width: 992px) {
    #mobileMenuToggle {
        display: inline-block !important;
        margin-right: 10px;
        border: none;
        background: transparent;
    }
    
    .navbar-collapse {
        background-color: #343a40;
        padding: 10px;
        margin-top: 5px;
        border-radius: 4px;
    }
    
    .navbar-nav.jy {
        flex-direction: row !important;
        justify-content: flex-end;
        width: 100%;
    }
    
    .navbar-nav.jy .nav-item {
        margin-left: 10px;
    }
    
    .user-avatar {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        margin-right: 5px;
    }
}

.km{
    position:fixed;
    z-index: 1040;
    width:100%;
    top:0;
}
.bk{
     top: 56px; /* 导航栏高度 */
}

/* 广告样式 */
.text-ad {
    padding: 0.25rem 0.5rem;
    margin: 0 0.25rem;
    color: #fff;
    border-radius: 4px;
    transition: all 0.3s;
}

.text-ad:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* 广告样式 */
.ad-content1 {
    display: inline-block;
}

.ad-placeholder1 {
    display: inline-block;
    padding: 0 10px;
    color: #fff;
    border: 1px dashed rgba(255,255,255,0.5);
    border-radius: 4px;
    transition: all 0.3s;
}

.ad-placeholder1:hover {
    background-color: rgba(255,255,255,0.1);
    text-decoration: none;
    color: #fff;
}

