/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #fefefe;
    color: #333333;
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 500;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: #ffb6c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffc0cb;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 2px solid #ffb6c1;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(255, 182, 193, 0.3);
}

/* 自定义导航栏样式 */
.custom-navbar {
    height: 80px;
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    border-bottom: 3px solid #ffb6c1;
    box-shadow: 0 4px 20px rgba(255, 182, 193, 0.2);
    width: 100%;
    overflow: hidden;
}

/* 确保导航栏容器不会溢出 */
.custom-navbar .container-fluid {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* 百叶窗按钮容器优化 */
.navbar-toggler {
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
}

.custom-brand {
    font-size: 1.8rem;
    color: #ff69b4 !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.custom-brand:hover {
    color: #ff1493 !important;
    transform: translateY(-2px);
}

.custom-brand i {
    font-size: 2.2rem;
    color: #ff69b4;
    animation: pulse 2s infinite;
}

.brand-text {
    font-weight: 800;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.custom-nav-links {
    margin-left: 2rem;
}

.custom-nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333333 !important;
    padding: 12px 20px !important;
    margin: 0 8px;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.custom-nav-link:hover {
    color: #ff69b4 !important;
    background: linear-gradient(135deg, #fff5f7, #ffeef2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3);
}

.custom-nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.4);
}

.custom-nav-link i {
    font-size: 1rem;
    margin-right: 8px;
}

.custom-search-form {
    margin-left: 2rem;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.custom-search-input {
    width: 300px;
    max-width: 100%;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    background: #fafafa;
    color: #333333;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.custom-search-input:focus {
    outline: none;
    border-color: #ffb6c1;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(255, 182, 193, 0.3);
    transform: translateY(-2px);
}

.custom-search-btn {
    position: absolute;
    right: 5px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    border: none;
    border-radius: 20px;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 182, 193, 0.3);
}

.custom-search-btn:hover {
    background: linear-gradient(135deg, #ff1493, #ff69b4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 182, 193, 0.4);
}

.custom-toggler {
    border: 2px solid #ffb6c1;
    border-radius: 8px;
    padding: 6px 8px;
    margin-right: 0;
    position: relative;
    z-index: 1001;
}

.custom-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 182, 193, 0.25);
}

.custom-toggler .navbar-toggler-icon {
    width: 1.2em;
    height: 1.2em;
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .custom-navbar {
        height: 70px;
        padding: 0 12px;
    }
    
    .custom-brand {
        font-size: 1.4rem;
        max-width: 220px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .custom-brand i {
        font-size: 1.6rem;
        flex-shrink: 0;
    }
    
    .custom-search-input {
        width: 100%;
        max-width: 280px;
    }
    
    .custom-nav-links {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
    }
    
    .custom-nav-link {
        margin: 5px 0;
        text-align: center;
        width: 100%;
        display: block;
    }
    
    .custom-search-form {
        margin-left: 0;
        margin-top: 1rem;
        justify-content: center;
        width: 100%;
    }
    
    .search-container {
        width: 100%;
        max-width: 300px;
    }
    
    .custom-navbar .container-fluid {
        padding: 0 12px;
        width: 100%;
        max-width: 100%;
    }
    
    /* 移动端百叶窗按钮优化 */
    .custom-toggler {
        padding: 4px 6px;
        margin-right: 0;
        border-width: 1.5px;
        flex-shrink: 0;
    }
    
    .custom-toggler .navbar-toggler-icon {
        width: 1em;
        height: 1em;
    }
    
    /* 确保品牌和按钮之间有足够空间 */
    .custom-navbar .navbar-brand {
        margin-right: 15px;
    }
}

@media (max-width: 576px) {
    .custom-navbar {
        height: 65px;
        padding: 0 8px;
    }
    
    .custom-brand {
        font-size: 1.1rem;
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .custom-brand i {
        font-size: 1.3rem;
        flex-shrink: 0;
    }
    
    .custom-search-input {
        width: 100%;
        max-width: 250px;
        font-size: 0.9rem;
        padding: 10px 16px;
    }
    
    .custom-search-btn {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
    
    .custom-navbar .container-fluid {
        padding: 0 8px;
        width: 100%;
        max-width: 100%;
    }
    
    .custom-nav-link {
        font-size: 1rem;
        padding: 10px 16px !important;
    }
    
    /* 小屏幕百叶窗按钮进一步优化 */
    .custom-toggler {
        padding: 3px 5px;
        margin-right: 0;
        border-width: 1px;
        flex-shrink: 0;
    }
    
    .custom-toggler .navbar-toggler-icon {
        width: 0.9em;
        height: 0.9em;
    }
    
    /* 确保品牌和按钮之间有足够空间 */
    .custom-navbar .navbar-brand {
        margin-right: 10px;
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: #ff69b4;
}

.nav-logo i {
    font-size: 28px;
    animation: pulse 2s infinite;
}

.nav-logo a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 400px;
    margin: 0 40px;
}

.nav-search input {
    flex: 1;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #ffffff;
    color: #333333;
    font-size: 14px;
    transition: all 0.3s ease;
}

.nav-search input::placeholder {
    color: #999;
}

.nav-search input:focus {
    outline: none;
    border-color: #ffb6c1;
    box-shadow: 0 0 10px rgba(255, 182, 193, 0.3);
}

.nav-search button {
    padding: 10px 20px;
    background: #ffb6c1;
    border: none;
    border-radius: 5px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-search button:hover {
    background: #ffc0cb;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: #333333;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: #ffb6c1;
    color: #ffffff;
}

/* 主要内容 */
.main-content {
    margin-top: 80px;
    padding: 20px;
}

/* Bootstrap 5 主题色彩 */
:root {
    --bs-primary: #ff69b4;
    --bs-primary-rgb: 255, 105, 180;
    --bs-secondary: #ffb6c1;
    --bs-secondary-rgb: 255, 182, 193;
}

/* Bootstrap 5 兼容样式 */
.card {
    border-radius: 12px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
}

.btn-outline-primary {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary.active {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #ffffff;
}

.btn-outline-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary:hover {
    background-color: #e91e63;
    border-color: #e91e63;
}

.form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
}

.table td {
    vertical-align: middle;
}

/* 分页美化 */
.pagination {
    gap: 5px;
}

.pagination .page-item .page-link {
    color: var(--bs-primary);
    border-color: #dee2e6;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 44px;
    text-align: center;
}

.pagination .page-item .page-link:hover {
    color: #ffffff;
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.3);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--bs-primary), #e91e63);
    border-color: var(--bs-primary);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb), 0.4);
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
}

.pagination .page-item:not(.disabled):not(.active) .page-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(var(--bs-primary-rgb), 0.2);
}

/* 分页信息样式 */
.pagination-info {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    font-weight: 500;
    color: #495057;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 快速跳转样式 */
#jumpToPage {
    border-color: #dee2e6;
    transition: all 0.3s ease;
}

#jumpToPage:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

#jumpBtn {
    transition: all 0.3s ease;
}

#jumpBtn:hover {
    transform: translateX(2px);
}

/* 分页容器响应式 */
/* 移动端分页溢出保护 */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
        overflow: hidden;
    }
    
    /* 强制限制移动端显示的页码数量 */
    .pagination .page-item:nth-child(n+8) {
        display: none !important;
    }
}
@media (max-width: 768px) {
    .pagination-info {
        font-size: 0.875rem;
        padding: 10px 15px;
    }
    
    .pagination .page-item .page-link {
        padding: 6px 12px;
        min-width: 36px;
        font-size: 0.875rem;
    }
    
    #jumpToPage {
        width: 60px !important;
    }
    
    /* 移动端分页布局优化 */
    .d-flex.justify-content-between.align-items-center.flex-wrap {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
    }
    
    .d-flex.align-items-center.gap-3 {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
    }
    
    /* 快速跳转区域 */
    .d-flex.align-items-center.gap-2 {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    
    /* 分页导航 */
    nav[aria-label="分页导航"] {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 3px;
    }
    
    .pagination .page-item .page-link {
        padding: 4px 8px;
        min-width: 32px;
        font-size: 0.8rem;
    }
    
    /* 移动端隐藏大部分页码按钮，只显示关键页码 */
    .pagination .page-item:not(.active):not(:first-child):not(:last-child):not(:nth-child(2)):not(:nth-child(3)):not(:nth-last-child(2)):not(:nth-last-child(3)) {
        display: none;
    }
    
    /* 确保省略号显示 */
    .pagination .page-item.disabled .page-link {
        display: inline-block !important;
    }
    
    /* 显示省略号 */
    .pagination .page-item.disabled .page-link {
        display: inline-block;
    }
}

/* 超小屏幕优化 */
@media (max-width: 576px) {
    .pagination-info {
        font-size: 0.8rem;
        padding: 8px 12px;
        text-align: center;
    }
    
    .pagination .page-item .page-link {
        padding: 3px 6px;
        min-width: 28px;
        font-size: 0.75rem;
    }
    
    #jumpToPage {
        width: 50px !important;
        font-size: 0.8rem;
    }
    
    .btn-sm {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    /* 超小屏幕进一步简化分页显示 */
    .pagination .page-item:not(.active):not(:first-child):not(:last-child):not(:nth-child(2)) {
        display: none;
    }
    
    /* 确保分页容器不会溢出 */
    .card-body {
        padding: 15px 10px;
    }
    
    /* 调整快速跳转布局 */
    .d-flex.align-items-center.gap-2 {
        flex-direction: column !important;
        gap: 5px !important;
    }
    
    .d-flex.align-items-center.gap-2 > span {
        font-size: 0.8rem;
    }
}

/* 极小屏幕优化 */
@media (max-width: 480px) {
    .pagination-info {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
    
    .pagination .page-item .page-link {
        padding: 2px 4px;
        min-width: 24px;
        font-size: 0.7rem;
    }
    
    #jumpToPage {
        width: 40px !important;
        font-size: 0.75rem;
    }
    
    .btn-sm {
        padding: 3px 6px;
        font-size: 0.75rem;
    }
    
    /* 极小屏幕只显示当前页和前后页 */
    .pagination .page-item:not(.active):not(:first-child):not(:last-child):not(:nth-child(2)) {
        display: none !important;
    }
    
    /* 强制隐藏多余的页码 */
    .pagination .page-item:nth-child(n+6):not(:last-child) {
        display: none !important;
    }
    
    /* 确保分页容器不溢出 */
    .pagination {
        max-width: 100%;
        overflow: hidden;
    }
    
    /* 强制限制分页按钮数量 */
    .pagination .page-item {
        flex-shrink: 0;
    }
}

/* 统计信息样式 */
.stat-item {
    padding: 20px;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
}

/* 表格美化 */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    padding: 12px 8px;
    font-size: 1.1rem;
}

.table td {
    vertical-align: middle;
    padding: 12px 8px;
    border-bottom: 1px solid #e9ecef;
    font-size: 1.05rem;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* 卡片阴影效果 */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* 分类按钮布局优化 */
#videoFilterTabs,
#novelFilterTabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    width: 100%;
    justify-content: flex-start;
}

#videoFilterTabs .btn,
#novelFilterTabs .btn {
    flex: 0 0 calc(12.5% - 7px); /* 电脑端一行8个 (100% / 8 = 12.5%) */
    min-width: 120px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

#videoFilterTabs .btn:hover,
#novelFilterTabs .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.2);
}

/* 响应式调整 */
@media (max-width: 1200px) {
    /* 中等屏幕：一行6个按钮 */
    #videoFilterTabs .btn,
    #novelFilterTabs .btn {
        flex: 0 0 calc(16.666% - 7px); /* 100% / 6 = 16.666% */
        min-width: 100px;
    }
}

@media (max-width: 992px) {
    /* 小屏幕：一行4个按钮 */
    #videoFilterTabs .btn,
    #novelFilterTabs .btn {
        flex: 0 0 calc(25% - 6px); /* 100% / 4 = 25% */
        min-width: 90px;
    }
}

@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.875rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .video-player-container {
        height: 200px;
    }
    
    /* 移动端分类按钮布局：一行2个按钮 */
    #videoFilterTabs .btn,
    #novelFilterTabs .btn {
        flex: 0 0 calc(50% - 4px); /* 移动端一行2个按钮 */
        min-width: 90px;
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
    
    /* 确保分类按钮容器不溢出 */
    #videoFilterTabs,
    #novelFilterTabs {
        gap: 6px;
        flex-wrap: wrap;
    }
    
    /* 移动端分类区域间距 */
    .card-header h6 {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .h2 {
        font-size: 1.5rem;
    }
    
    .h5 {
        font-size: 1.1rem;
    }
    
    /* 超小屏幕分类按钮布局：一行2个按钮 */
    #videoFilterTabs .btn,
    #novelFilterTabs .btn {
        flex: 0 0 calc(50% - 3px); /* 超小屏幕一行2个按钮 */
        min-width: 80px;
        font-size: 0.8rem;
        padding: 0.35rem 0.5rem;
    }
    
    #videoFilterTabs,
    #novelFilterTabs {
        gap: 4px;
    }
}

/* 域名链接样式 */
.domain-link {
    display: inline-block;
    color: #ff69b4 !important;
    font-weight: 600;
    text-decoration: none;
    padding: 2px 8px;
    margin: 0 2px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.1), rgba(255, 182, 193, 0.1));
    border: 1px solid rgba(255, 105, 180, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    vertical-align: middle;
}

.domain-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.2), rgba(255, 182, 193, 0.2));
    transition: left 0.3s ease;
    z-index: -1;
}

.domain-link:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    border-color: #ff69b4;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
    text-decoration: none;
}

.domain-link:hover::before {
    left: 0;
}

.domain-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 105, 180, 0.3);
}

/* 域名链接在公告通知中的特殊样式 */
.card-body .domain-link {
    font-size: 1.05rem;
    margin: 0 3px;
}

/* 公告通知段落样式 */
.card-body p {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.card-body p strong {
    flex-shrink: 0;
    margin-right: 5px;
}

/* 极小屏幕优化 */
@media (max-width: 480px) {
    /* 极小屏幕分类按钮布局：一行2个按钮 */
    #videoFilterTabs .btn,
    #novelFilterTabs .btn {
        flex: 0 0 calc(50% - 2px); /* 极小屏幕一行2个按钮 */
        min-width: 70px;
        font-size: 0.75rem;
        padding: 0.3rem 0.4rem;
    }
    
    #videoFilterTabs,
    #novelFilterTabs {
        gap: 3px;
    }
    
    /* 移动端域名链接样式调整 */
    .domain-link {
        padding: 1px 6px;
        font-size: 0.95rem;
        margin: 0 1px;
    }
}



/* 统计信息区域 */
.stats-section {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stats-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: #ff69b4;
}

.stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

/* 分类筛选区域 */
.filter-section {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-tabs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    flex: 1;
    max-width: 900px;
}

.filter-tab {
    padding: 10px 16px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    color: #333333;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-tab:hover {
    background: #ffb6c1;
    border-color: #ffb6c1;
    color: #ffffff;
}

.filter-tab.active {
    background: #ffb6c1;
    border-color: #ffb6c1;
    color: #ffffff;
}

.filter-sort {
    min-width: 150px;
}

.filter-sort select {
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    color: #333333;
    cursor: pointer;
    width: 100%;
}

/* 视频列表区域 */
.videos-section {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.table-container {
    overflow-x: auto;
}

.videos-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.videos-table th {
    background: #ffb6c1;
    color: #ffffff;
    padding: 15px 10px;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid #ffb6c1;
    font-size: 1.15rem;
}

.videos-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e0e0e0;
    color: #333333;
    font-weight: 500;
    font-size: 1.05rem;
}

.videos-table tr:hover {
    background: #f8f8f8;
}

.videos-table tr:nth-child(even) {
    background: #fafafa;
}

.videos-table tr:nth-child(even):hover {
    background: #f0f0f0;
}

/* 分类标签样式 */
.category-tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    min-width: 60px;
}

/* 分类筛选区域样式 */
.card-header.bg-primary {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
}

.card-header.bg-success {
    background: linear-gradient(135deg, #28a745, #1e7e34) !important;
}

.card-header h6 {
    font-weight: 600;
    font-size: 1rem;
}

/* 分类按钮样式优化 */
#videoFilterTabs .btn-outline-primary:hover,
#videoFilterTabs .btn-outline-primary.active {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-color: #007bff;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

#novelFilterTabs .btn-outline-success:hover,
#novelFilterTabs .btn-outline-success.active {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    border-color: #28a745;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.category-tag.japan-uncensored {
    background: #ff4444;
    color: #ffffff;
}

.category-tag.japan-censored {
    background: #ff8800;
    color: #ffffff;
}

.category-tag.chinese-sub {
    background: #00aa00;
    color: #ffffff;
}

.category-tag.european {
    background: #4444ff;
    color: #ffffff;
}

.category-tag.other {
    background: #666;
    color: #ffffff;
}

/* 表格列样式 */
.title-cell {
    max-width: 300px;
}

.video-title {
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 5px;
    font-size: 14px;
}

.video-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
}

.region-cell {
    width: 80px;
    text-align: center;
    color: #ccc;
}

.category-cell {
    width: 100px;
    text-align: center;
}

.action-cell {
    width: 100px;
    text-align: center;
}

.detail-link {
    display: inline-block;
    padding: 6px 12px;
    background: #ff4444;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.detail-link:hover {
    background: #ff6666;
    transform: translateY(-1px);
}

.time-cell {
    width: 120px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* 无结果提示样式 */
.no-results {
    text-align: center;
    padding: 40px 20px;
}

.no-results i {
    color: #ff4444;
}

.no-results h3 {
    color: #ffffff;
    margin-bottom: 10px;
}

.no-results p {
    color: #999;
}

/* 分页控件 */
.pagination-container {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.pagination-info {
    color: #999;
    font-size: 14px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-btn {
    padding: 8px 16px;
    background: #333;
    border: 1px solid #555;
    border-radius: 5px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #555;
}

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

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-number {
    padding: 8px 12px;
    background: #333;
    border: 1px solid #555;
    border-radius: 5px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-number:hover,
.page-number.active {
    background: #ffb6c1;
    border-color: #ffb6c1;
}

/* 页脚 */
.footer {
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    padding: 30px 20px;
    margin-top: 40px;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-content p {
    color: #666;
    margin-bottom: 10px;
    font-size: 14px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #1a1a1a;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #333;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover {
    color: #ff4444;
}

.modal-body {
    margin-top: 20px;
}

/* 加载动画 */
.loading-overlay {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #333;
    border-top: 5px solid #ff4444;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 详细页面样式 */
.detail-section {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.detail-container {
    padding: 20px;
}

.video-player-section {
    margin-bottom: 30px;
}

.video-player-container {
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* DPlayer播放器样式 */
#dplayer {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    display: block;
}

#dplayer .dplayer-video-wrap {
    width: 100% !important;
    height: 100% !important;
    border-radius: 12px;
    overflow: hidden;
}

#dplayer .dplayer-video {
    width: 100% !important;
    height: 100% !important;
    border-radius: 12px;
}

#dplayer .dplayer-video video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

/* 确保播放器完全填充容器 */
#dplayer .dplayer-video-wrap,
#dplayer .dplayer-video,
#dplayer .dplayer-video video {
    border-radius: 16px !important;
}

/* 播放器控制器样式优化 */
#dplayer .dplayer-controller {
    border-radius: 0 0 16px 16px !important;
}

/* 视频播放器容器优化 */
.video-player-container {
    width: 100%;
    height: 720px;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    padding: 0;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 视频播放器卡片样式 */
.video-player-section .card {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border: 2px solid #ffb6c1;
}

.video-player-section .card-body {
    padding: 30px;
}

/* 响应式视频播放器 */
@media (max-width: 1400px) {
    .video-player-container {
        height: 600px;
    }
}

@media (max-width: 768px) {
    .video-player-container {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .video-player-container {
        height: 300px;
    }
}

/* DPlayer播放器美化 */
#dplayer .dplayer-controller {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

#dplayer .dplayer-bar-wrap {
    background: rgba(255, 105, 180, 0.3);
}

#dplayer .dplayer-bar {
    background: rgba(255, 105, 180, 0.5);
}

#dplayer .dplayer-played {
    background: var(--bs-primary);
}

#dplayer .dplayer-thumb {
    background: var(--bs-primary);
}

#dplayer .dplayer-time {
    color: #ffffff;
    font-weight: 500;
}

#dplayer .dplayer-volume {
    background: rgba(255, 105, 180, 0.3);
}

#dplayer .dplayer-volume-bar {
    background: rgba(255, 105, 180, 0.5);
}

#dplayer .dplayer-volume-bar .dplayer-volume-played {
    background: var(--bs-primary);
}

/* 播放器区域标题 */
.video-player-section .card-header {
    background: linear-gradient(135deg, var(--bs-primary), #e91e63);
    color: white;
    border-bottom: none;
    padding: 20px 30px;
}

.video-player-section .card-header h5 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

/* 播放器加载状态 */
.video-player-container::before {
    content: '🎬 视频播放器';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    z-index: 1;
    opacity: 0.7;
}

.video-player-container:has(#dplayer)::before {
    display: none;
}

.video-title {
    color: #333333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ffb6c1;
    font-weight: 700;
}

.video-meta {
    margin-bottom: 30px;
}

.meta-row {
    display: flex;
    margin-bottom: 15px;
    align-items: center;
}

.meta-label {
    color: #666;
    width: 100px;
    font-weight: 600;
}

.meta-value {
    color: #333333;
    flex: 1;
    font-weight: 500;
}

.video-description {
    margin-bottom: 30px;
}

.video-description h3 {
    color: #ff69b4;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 700;
}

.video-description p {
    color: #666;
    line-height: 1.8;
    font-weight: 500;
}

.video-download-links {
    margin-bottom: 30px;
}

.video-download-links h3 {
    color: #ff69b4;
    margin-bottom: 15px;
    font-size: 18px;
}

.download-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    color: #333333;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.download-link:hover {
    background: #ffb6c1;
    border-color: #ffb6c1;
    color: #ffffff;
}

.download-btn {
    display: inline-block;
    padding: 6px 12px;
    background: #ffb6c1;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #ffc0cb;
    transform: translateY(-1px);
}

.video-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.action-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn.primary {
    background: #ffb6c1;
    color: #ffffff;
}

.action-btn.primary:hover {
    background: #ffc0cb;
}

.action-btn:not(.primary) {
    background: #f8f8f8;
    color: #333333;
    border: 1px solid #e0e0e0;
}

.action-btn:not(.primary):hover {
    background: #ffb6c1;
    color: #ffffff;
}

/* 分享模态框样式 */
.share-modal .modal-content {
    max-width: 500px;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.share-option {
    padding: 15px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    color: #333333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.share-option:hover {
    background: #ffb6c1;
    border-color: #ffb6c1;
    color: #ffffff;
}

.share-option i {
    font-size: 24px;
}

.share-url {
    display: flex;
    gap: 10px;
}

.share-url input {
    flex: 1;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    color: #333333;
}

.share-url button {
    padding: 10px 20px;
    background: #ffb6c1;
    border: none;
    border-radius: 5px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-url button:hover {
    background: #ffc0cb;
}

/* 视频详细信息样式 */
.video-additional-info {
    margin-bottom: 30px;
}

.video-additional-info h3 {
    color: #ff69b4;
    margin-bottom: 15px;
    font-size: 18px;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    width: 100%;
}

.info-label {
    color: #666;
    font-weight: 600;
    min-width: 100px;
    margin-right: 15px;
}

.info-value {
    color: #333333;
    flex: 1;
    font-weight: 500;
}

/* 封面图片样式 */
.info-cover-section {
    margin-bottom: 20px;
}

.cover-item {
        flex-direction: column;
    align-items: flex-start;
    }
    
.cover-container {
    width: 100%;
    display: flex;
        justify-content: center;
    margin-top: 10px;
}

.cover-image {
    /* max-width: 400px; */
    max-height: 500px;
    width: auto;
    height: auto;
    border-radius: 12px;
    border: 3px solid #ffb6c1;
    box-shadow: 0 6px 20px rgba(255, 182, 193, 0.3);
    transition: all 0.3s ease;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    cursor: pointer;
}

/* 封面图片容器样式 */
.cover-container {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 16px;
    border: 1px solid #dee2e6;
}

.cover-image:hover {
    border-color: var(--bs-primary);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(var(--bs-primary-rgb), 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cover-image {
        max-width: 300px;
        max-height: 400px;
    }
    
    .m3u8-url-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .m3u8-url {
        min-width: 100%;
        width: 100%;
    }
    
    .play-actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
    }
    
    .note-container {
        padding: 15px;
    }
    
    .note-title {
        font-size: 20px;
    }
    
    .note-content p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .cover-image {
        max-width: 250px;
        max-height: 350px;
    }
    
    .play-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .play-btn,
    .copy-btn {
        width: 100%;
        min-width: auto;
    }
}

/* 播放链接容器样式 */
.play-links-container {
    margin-bottom: 30px;
}

.play-links-container h3 {
    color: #ff69b4;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 700;
}

.play-links-container h4 {
    color: #ff69b4;
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.play-links-container h5 {
    color: #cccccc;
    margin: 15px 0 10px 0;
    font-size: 14px;
}

/* 播放链接样式 */
.play-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #2a2a2a;
    border: 1px solid #555;
    border-radius: 5px;
    color: #ffffff;
    margin-bottom: 15px;
}

.play-actions {
    display: flex;
    gap: 10px;
    margin-left: 10px;
}

.play-btn {
    display: inline-block;
        padding: 8px 16px;
    background: #00aa00;
    color: #ffffff;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 70px;
}

.play-btn:hover {
    background: #00cc00;
    transform: translateY(-1px);
}

/* m3u8内容显示样式 */
.m3u8-content {
    margin-top: 0;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 15px;
}

.m3u8-url-display {
    background: #ffffff;
    border-radius: 4px;
    padding: 15px;
}

.m3u8-url-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.url-label {
    color: #999;
    font-weight: 600;
    min-width: 80px;
}

.m3u8-url {
    color: #66ccff;
    text-decoration: none;
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    word-break: break-all;
    padding: 8px 12px;
    background: #333;
    border: 1px solid #555;
    border-radius: 4px;
    min-width: 200px;
}

.m3u8-url:hover {
    color: #99ddff;
    border-color: #ff4444;
}

.copy-btn {
    background: #ffb6c1;
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    min-width: 70px;
}

.copy-btn:hover {
    background: #ffc0cb;
    transform: translateY(-1px);
}

/* 消息提示样式 */
.message-popup {
    font-weight: 500;
    font-size: 14px;
}

.success-message {
    background: #00aa00 !important;
}

.error-message {
    background: #ffb6c1 !important;
}

/* DPlayer播放器样式 */
#dplayer {
    width: 100%;
    height: 400px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-player-container {
    margin-bottom: 30px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #dplayer {
        height: 250px;
    }
}

@media (max-width: 480px) {
    #dplayer {
        height: 200px;
    }
}

/* 返回顶部按钮样式 */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 182, 193, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background: linear-gradient(135deg, #ff1493, #ff69b4);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 182, 193, 0.6);
}

.back-to-top-btn:active {
    transform: translateY(-2px);
}

.back-to-top-btn i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* 移动端返回顶部按钮优化 */
@media (max-width: 768px) {
    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .back-to-top-btn {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
