:root {
    --primary-purple: #8A2BE2;
    --primary-blue: #0000FF;
    --dark-bg: #1a1a1a;
    --card-bg: #2a2a2a;
    --text-white: #ffffff;
    --text-yellow: #FFD700;
    --text-gray: #cccccc;
    --orange-bowl: #FF8C00;
    --nav-blue: #007BFF;
    --nav-gray: #6C757D;
}

/* Global link styles */
a {
    text-decoration: none;
}

/* Pagination Styles */
.pagination-section {
    margin: 40px 0;
    display: flex;
    justify-content: center;
}

.pagination-container {
    background: #ffffff;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pagination-container ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333333;
    font-size: 14px;
    line-height: 1.5;
}

/* 当ul包含分页信息文字时的样式 */
.pagination-container ul:not(:has(li)) {
    display: block;
    text-align: center;
    padding: 15px 0;
}

.pagination-container li {
    margin: 0;
}

.pagination-container li a {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
    line-height: 1.2;
    background: #ffffff;
}

.pagination-container li a:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
    text-decoration: none;
}

.pagination-container li.active a {
    background: #007bff;
    color: #ffffff;
    border-color: #007bff;
    font-weight: 600;
}

.pagination-container li.active a:hover {
    background: #0056b3;
    border-color: #0056b3;
}

/* 当前页样式 - 兼容不同的HTML结构 */
.pagination-container li.active a,
.pagination-container li a.active {
    background: #007bff;
    color: #ffffff;
    border-color: #007bff;
    font-weight: 600;
}

.pagination-container li.active a:hover,
.pagination-container li a.active:hover {
    background: #0056b3;
    border-color: #0056b3;
}

/* 首页、上一页、下一页、末页按钮特殊样式 */
.pagination-container li:first-child a,
.pagination-container li:nth-child(2) a,
.pagination-container li:nth-last-child(2) a,
.pagination-container li:last-child a {
    min-width: 60px;
    font-size: 13px;
}

/* 确保分页样式优先级 */
.pagination-section .pagination-container ul li a {
    box-sizing: border-box;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 强制应用样式 */
.pagination-container li a {
    background-color: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    color: #6c757d !important;
}

/* 分页信息文字样式 - 当只有一页时显示的文字 */
.pagination-container ul {
    color: #333333;
    font-size: 14px;
    line-height: 1.5;
}

.pagination-container ul strong {
    color: #007bff;
    font-weight: 600;
    margin: 0 3px;
}

/* 确保分页信息文字可见 */
.pagination-container ul:not(:has(li)) {
    color: #333333 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* 筛选和排序样式 */
.filter-sort-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.filter-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 600;
    color: #495057;
    margin-right: 10px;
    white-space: nowrap;
}

.filter-btn {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    text-decoration: none;
    color: #6c757d;
    background: #ffffff;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.filter-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
    text-decoration: none;
}

.filter-btn.active {
    background: #007bff;
    color: #ffffff;
    border-color: #007bff;
    font-weight: 600;
}

.sort-section {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    text-decoration: none;
    color: #6c757d;
    background: #ffffff;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.sort-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
    text-decoration: none;
}

.sort-btn.active {
    background: #007bff;
    color: #ffffff;
    border-color: #007bff;
    font-weight: 600;
}

/* 确保所有排序按钮都有样式，即使class为空 */
.sort-section a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    text-decoration: none;
    color: #6c757d;
    background: #ffffff;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
}

.sort-section a:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
    text-decoration: none;
}

/* 当前选中的排序按钮样式 */
.sort-section a[onclick*="sort="] {
    border: 1px solid #dee2e6;
}

/* 随机按钮特殊样式（因为它没有onclick） */
.sort-section a.sort-btn {
    border: 1px solid #dee2e6;
}

.filter-clear {
    margin-left: auto;
}

.clear-btn {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #dc3545;
    border-radius: 20px;
    text-decoration: none;
    color: #dc3545;
    background: #ffffff;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.clear-btn:hover {
    background: #dc3545;
    color: #ffffff;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .filter-sort-section {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .filter-section, .sort-section {
        justify-content: center;
    }
    
    .filter-clear {
        margin-left: 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .filter-sort-section {
        padding: 1rem;
    }
    
    .filter-btn, .sort-btn, .clear-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

.pagination-container li.active a {
    background-color: #007bff !important;
    color: #ffffff !important;
    border-color: #007bff !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pagination-container {
        padding: 12px 15px;
    }
    
    .pagination-container ul {
        gap: 5px;
    }
    
    .pagination-container li a {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 35px;
    }
    
    .pagination-container li:first-child a,
    .pagination-container li:nth-child(2) a,
    .pagination-container li:nth-last-child(2) a,
    .pagination-container li:last-child a {
        min-width: 50px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .pagination-container {
        padding: 10px 12px;
    }
    
    .pagination-container ul {
        gap: 3px;
    }
    
    .pagination-container li a {
        padding: 6px 8px;
        font-size: 12px;
        min-width: 30px;
    }
    
    .pagination-container li:first-child a,
    .pagination-container li:nth-child(2) a,
    .pagination-container li:nth-last-child(2) a,
    .pagination-container li:last-child a {
        min-width: 45px;
        font-size: 11px;
    }
}

a:hover {
    text-decoration: none;
}

body {
    background-color: var(--dark-bg);
   
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Header Styles */
.top-header {
    background-color: #ffffff;
    padding: 0;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 60px;
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--text-white);
    text-decoration: none;
}

.logo-image {
    width: 140px;

    margin-right: 12px;
    border-radius: 8px;
    object-fit: cover;
}

.logo-text h1 {
    font-size: 1.6rem;
    margin: 0;
    font-weight: bold;
    line-height: 1.2;
    color: var(--orange-bowl);
}

.logo-text p {
    font-size: 0.85rem;
    margin: 0;
    color: #000000;
    line-height: 1.2;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
    justify-content: center;
    align-items: center;
}

.nav-menu li a {
    color: var(--nav-gray);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-menu li a:hover {
    color: var(--nav-blue);
}

.nav-menu li a.active {
    color: var(--nav-blue);
}

.nav-menu li a i {
    font-size: 1rem;
    color: inherit;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-toggle::after {
    display: none !important;
}

.dropdown-toggle .fa-chevron-down {
    transition: transform 0.3s;
}

.dropdown:hover .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 150px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 5px;
    padding: 8px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-menu li a {
    color: #333333;
    padding: 8px 16px;
    display: block;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s;
    border: none;
    gap: 0;
}

.dropdown-menu li a:hover {
    background-color: #f8f9fa;
    color: var(--nav-blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-end;
}

.vip-btn {
    background: linear-gradient(45deg, #FF69B4, #FFA500);
    color: var(--text-white);
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(255, 105, 180, 0.3);
    height: 36px;
}

.vip-btn:hover {
    transform: scale(1.05);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

.vip-btn i {
    font-size: 1rem;
    color: #FFD700;
}

.notification-btn {
    background: none;
    border: none;
    color: #9370DB;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
    padding: 5px;
    position: relative;
}

.notification-btn:hover {
    color: #7B68EE;
}

.notification-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: #FF4444;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.search-btn {
    background: none;
    border: none;
    color: #9370DB;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
    padding: 5px;
}

.search-btn:hover {
    color: #7B68EE;
}

.settings-btn {
    background: none;
    border: none;
    color: #DDA0DD;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
    padding: 5px;
}

.settings-btn:hover {
    color: #DDA0DD;
}

.theme-toggle-btn {
    background: none;
    border: none;
    color: #9370DB;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    padding: 8px;
    border-radius: 50%;
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-btn:hover {
    background: rgba(147, 112, 219, 0.1);
    color: #7B68EE;
}

.theme-toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 50%;
    background: linear-gradient(45deg, #00CED1, #FF69B4) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.theme-toggle-btn:hover::before {
    opacity: 1;
}

.login-btn {
    background: linear-gradient(45deg, #007BFF, #9370DB);
    color: var(--text-white);
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    height: 36px;
}

.login-btn:hover {
    transform: scale(1.05);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.login-btn i {
    font-size: 1rem;
}

/* Banner Section */
.banner-section {
    position: relative;
    height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.banner-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.0), rgba(0,0,0,0.5));
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-content {
    text-align: center;
    color: var(--text-white);
    position: relative;
    z-index: 3;
}

.banner-logo {
    background: linear-gradient(45deg, #007BFF, #00CED1);
    color: var(--text-white);
    padding: 15px 40px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 40px;
    font-weight: bold;
    font-size: 1.3rem;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.search-container {
    max-width: 700px;
    margin: 0 auto 30px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 18px 60px 18px 25px;
    border: none;
    border-radius: 30px;
    background-color: rgba(255,255,255,0.95);
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    background-color: rgba(255,255,255,1);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

.search-btn-banner {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(45deg, #007BFF, #00CED1);
    border: none;
    font-size: 1.2rem;
    color: white;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.search-btn-banner:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
}

.hot-search {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 15px 25px;
    border-radius: 5px;
    display: inline-block;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hot-search-tags {
    margin-left: 10px;
}

.hot-search-tag {
    color: #FFD700;
    text-decoration: none;
    margin: 0 8px;
    padding: 5px 10px;
    border-radius: 15px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 5px;
}

.hot-search-tag:hover {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
    text-decoration: none;
}

/* Main Content */
.main-content {
    padding: 0px 0;
    background-color: #ffffff;
  
    position: relative;
    overflow: hidden;
}

/* 动态背景效果 - 增强可见性
.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #e3f2fd, #bbdefb, #e3f2fd, #bbdefb);
    background-size: 400% 400%;
    animation: gradientShift 8s ease-in-out infinite;
    z-index: 0;
    opacity: 0.8;
    pointer-events: none;
}

/* 粒子效果 - 增强可见性 
.main-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(255, 199, 120, 0.3) 0%, transparent 50%);
    animation: particleFloat 12s ease-in-out infinite;
    z-index: 0;
    opacity: 0.6;
    pointer-events: none;
}
 */
/* 确保内容在动态背景之上 */
.main-content .container {
    position: relative;
    z-index: 1;
    padding-left: 10px;
    padding-right: 10px;
}

.main-content .row {
    margin-left: 0;
    margin-right: 0;
}

.main-content .col-lg-12,
.main-content .col-md-8,
.main-content .col-md-4,
.main-content .col-md-3,
.main-content .col-sm-6,
.main-content .col-6 {
    padding-left: 5px;
    padding-right: 5px;
}

/* Section Headers */
.section-header {
    background: linear-gradient(218deg, #3d07ff, #5d00ff);
    padding: 10px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.section-header span{
    font-size: 0.9rem;
    color: #fff;
    font-weight: normal;
    margin-left: 10px;
}


.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.2)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    border-radius: 10px;
}

.section-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: bold;
    position: relative;
    z-index: 1;
    color: var(--text-white);
}

.section-header .vip-icon {
    background: var(--primary-purple);
    color: var(--text-white);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.section-subheader {
    background: #444;
    padding: 10px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.section-subheader h3 {
    margin: 0;
    font-size: 1.1rem;
}

.section-subheader p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Game Cards */
.game-card {
    background: var(--text-white);
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 15px;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.game-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.game-info {
    padding: 10px;
}

.game-category {
    color: var(--dark-bg);
    font-size: 0.8rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.game-category i {
    color: #ff6b6b;
    font-size: 0.4rem;
}

.game-category .action-adventure {
    color: #00bcd4;
    font-size: 0.4rem;
}

.game-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--dark-bg);
    transition: color 0.3s;
}

.game-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 0.8rem;
    color: var(--dark-bg);
}

.game-meta span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-right: 20px;
}

.game-meta i.fa-clock {
    font-size: 0.7rem;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-rating {
    color: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.game-rating i.fa-star {
    font-size: 0.8rem;
    color: var(--text-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-price {
    color: var(--dark-bg);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.footer {
    background: #333;
    padding: 10px 0;
    text-align: center;
  
}

.footer p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Swiper Customization */
.swiper {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    position: relative;
}

.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
    pointer-events: none; /* 推荐：让伪元素不接收鼠标事件 */
}

.swiper-slide-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.swiper-slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.swiper-slide-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.swiper-pagination-bullet {
    background: var(--text-white);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--primary-purple);
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 10px;
    }
    
    .swiper-slide-content h2 {
        font-size: 1.8rem;
    }
    
    .swiper-slide-content p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .top-header {
        height: 50px;
        padding: 0 10px;
    }
    
    .header-actions {
        justify-content: flex-end;
        align-items: center;
    }
    
    .mobile-menu-btn {
        padding: 8px;
        font-size: 1.3rem;
        color: #9370DB;
    }
    
    .mobile-menu-btn:hover {
        background: rgba(147, 112, 219, 0.1);
        color: #7B68EE;
    }
    
    .logo-image {
        width: 100px;
        margin-right: 8px;
    }
    
    .banner-logo {
        font-size: 0.9rem;
        padding: 8px 20px;
    }
    
    .search-input {
        font-size: 1rem;
        padding: 12px 45px 12px 15px;
    }
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    background: none;
    border: none;
    color: #9370DB;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: all 0.3s;
}

.mobile-menu-btn:hover {
    background: rgba(147, 112, 219, 0.1);
    color: #7B68EE;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: #2a2a2a;
    z-index: 10000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    background: linear-gradient(45deg, #9370DB, #7B68EE);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.mobile-menu-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.mobile-menu-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    max-height: calc(100vh - 200px);
}

.mobile-dropdown.active .mobile-dropdown-menu {
    max-height: 600px;
}

.mobile-nav-menu::-webkit-scrollbar {
    width: 4px;
}

.mobile-nav-menu::-webkit-scrollbar-track {
    background: #333;
}

.mobile-nav-menu::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 2px;
}

.mobile-nav-menu::-webkit-scrollbar-thumb:hover {
    background: #888;
}

.mobile-nav-menu li {
    border-bottom: 1px solid #444;
}

.mobile-nav-menu li:last-child {
    border-bottom: none;
}

.mobile-nav-menu li a {
    color: #ffffff;
    text-decoration: none;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    font-size: 1rem;
}

.mobile-nav-menu li a i {
    width: 20px;
    text-align: center;
    color: #ffffff;
    transition: color 0.3s;
}

.mobile-nav-menu li a:hover,
.mobile-nav-menu li a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.mobile-nav-menu li a:hover i,
.mobile-nav-menu li a.active i {
    color: #ffffff;
}

.mobile-dropdown-toggle {
    cursor: pointer;
    justify-content: space-between;
}

.mobile-dropdown-toggle .fa-chevron-down {
    transition: transform 0.3s;
}

.mobile-dropdown.active .fa-chevron-down {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #333;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-menu {
    max-height: 800px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-dropdown-menu li a {
    padding: 12px 20px 12px 52px;
    font-size: 0.9rem;
    color: #ffffff;
    white-space: nowrap;
}

.mobile-dropdown-menu li a:hover {
    background-color: #444;
    color: #ffffff;
}

.mobile-actions {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid #e9ecef;
    margin-top: 0;
    flex-shrink: 0;
}

.mobile-vip-btn,
.mobile-login-btn {
    background: linear-gradient(45deg, #FF69B4, #FFA500);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 0.9rem;
}

.mobile-login-btn {
    background: linear-gradient(45deg, #007BFF, #9370DB);
}

.mobile-vip-btn:hover,
.mobile-login-btn:hover {
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* 移动端用户信息样式 */
.mobile-user-info {
    color: #333;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 12px 16px;
    border-radius: 12px;
    text-align: center;
}

.mobile-user-info:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
    text-decoration: none;
}

.mobile-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgba(102, 126, 234, 0.3);
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-user-name {
    font-weight: 600;
    font-size: 1rem;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 移动端退出登录按钮样式 */
.mobile-logout-btn {
    background: linear-gradient(45deg, #dc3545, #fd7e14);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.mobile-logout-btn:hover {
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* 手机端隐藏PC端用户菜单和登录按钮 */
@media (max-width: 768px) {
    .user-menu,
    .login-btn {
        display: none !important;
    }
}

/* 通知空状态样式 */
.notification-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.notification-empty i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.notification-empty p {
    font-size: 1rem;
    margin: 0;
    color: #999;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Dark theme support for mobile menu */
body.dark-theme .mobile-menu {
    background: #2a2a2a;
    color: #ffffff;
}

body.dark-theme .mobile-nav-menu li {
    border-bottom: 1px solid #444;
}

body.dark-theme .mobile-nav-menu li a {
    color: #e0e0e0;
}

body.dark-theme .mobile-nav-menu li a:hover,
body.dark-theme .mobile-nav-menu li a.active {
    background-color: #333;
    color: #007BFF;
}

body.dark-theme .mobile-dropdown-menu {
    background: #333;
}

body.dark-theme .mobile-dropdown-menu li a {
    color: #e0e0e0;
}

body.dark-theme .mobile-dropdown-menu li a:hover {
    background-color: #444;
    color: #007BFF;
}

body.dark-theme .mobile-actions {
    border-top: 1px solid #444;
}

/* Notification Modal Styles */
.notification-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.notification-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    max-height: 80vh;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.notification-header {
    background: linear-gradient(45deg, #9370DB, #7B68EE);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.notification-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s;
    position: relative;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background-color: #f8f9fa;
    margin: 0 -20px;
    padding: 15px 20px;
}

.notification-time {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.notification-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    font-size: 1rem;
}

.notification-text {
    color: #666;
    line-height: 1.5;
    font-size: 0.9rem;
}

.notification-actions {
    position: absolute;
    top: 15px;
    right: 0;
}

.mark-read-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mark-read-btn:hover {
    background: #218838;
}

.notification-item.read .mark-read-btn {
    background: #6c757d;
    cursor: not-allowed;
}

.notification-item.read .mark-read-btn:hover {
    background: #6c757d;
}

.notification-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.notification-loading i {
    font-size: 24px;
    margin-bottom: 10px;
    color: #007bff;
}

.notification-loading p {
    margin: 0;
    font-size: 14px;
}

.notification-pagination {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.pagination-info {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination-btn:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.pagination-page.current {
    padding: 6px 12px;
    background: #007bff;
    color: white;
    border-radius: 4px;
    font-weight: bold;
}

.prev-btn, .next-btn {
    font-weight: bold;
}

.notification-footer {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.mark-all-read {
    background: linear-gradient(45deg, #007BFF, #0056b3);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.mark-all-read:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Dark theme support for notification modal */
body.dark-theme .notification-content {
    background-color: #2a2a2a;
    color: #ffffff;
}

body.dark-theme .notification-item {
    border-bottom: 1px solid #444;
}

body.dark-theme .notification-item:hover {
    background-color: #333;
}

body.dark-theme .notification-time {
    color: #cccccc;
}

body.dark-theme .notification-title {
    color: #ffffff;
}

body.dark-theme .notification-text {
    color: #cccccc;
}

body.dark-theme .notification-footer {
    background-color: #333;
    border-top: 1px solid #444;
}

/* Responsive design for modal */
@media (max-width: 768px) {
    .notification-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .notification-header {
        padding: 15px;
    }
    
    .notification-body {
        padding: 15px;
        max-height: 300px;
    }
    
    .notification-footer {
        padding: 10px 15px;
    }
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Read notification style */
.notification-item.read {
    opacity: 0.6;
}

.notification-item.read .notification-title {
    color: #999;
}

/* Search Modal Styles */
.search-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.search-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    max-height: 80vh;
    overflow: hidden;
}

.search-header {
    background: linear-gradient(45deg, #007BFF, #0056b3);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-header h3 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-body {
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.search-input-container {
    position: relative;
    margin-bottom: 25px;
}

.search-input-modal {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.search-input-modal:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-btn-modal {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(45deg, #007BFF, #0056b3);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn-modal:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.search-suggestions {
    margin-bottom: 25px;
}

.suggestion-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    font-size: 1rem;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.suggestion-tag {
    background: #f8f9fa;
    color: #007BFF;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.suggestion-tag:hover {
    background: #007BFF;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
}

/* Dark theme support for search modal */
body.dark-theme .search-content {
    background-color: #2a2a2a;
    color: #ffffff;
}

body.dark-theme .search-input-modal {
    background-color: #333;
    border-color: #444;
    color: #ffffff;
}

body.dark-theme .search-input-modal:focus {
    border-color: #007BFF;
}

body.dark-theme .suggestion-title,
body.dark-theme .category-title {
    color: #ffffff;
}

body.dark-theme .suggestion-tag {
    background: #333;
    border-color: #444;
    color: #007BFF;
}

body.dark-theme .suggestion-tag:hover {
    background: #007BFF;
    color: white;
}

/* Responsive design for search modal */
@media (max-width: 768px) {
    .search-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .search-header {
        padding: 15px;
    }
    
    .search-body {
        padding: 15px;
        max-height: 400px;
    }
}

/* Dark theme styles */
body.dark-theme {
    background-color: #000000;
    color: #ffffff;
}

body.dark-theme .top-header {
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
}

body.dark-theme .nav-menu li a {
    color: #cccccc;
}

body.dark-theme .nav-menu li a:hover,
body.dark-theme .nav-menu li a.active {
    color: #007BFF;
}

body.dark-theme .logo-text h1 {
    color: #FF8C00;
}

body.dark-theme .logo-text p {
    color: #ffffff;
}

body.dark-theme .dropdown-menu {
    background: #2a2a2a;
    border: 1px solid #444;
}

body.dark-theme .dropdown-menu li a {
    color: #cccccc;
}

body.dark-theme .dropdown-menu li a:hover {
    background-color: #333;
    color: #007BFF;
}

body.dark-theme .game-card {
    background: #2a2a2a;
}

body.dark-theme .section-subheader {
    background: #333;
}

body.dark-theme .footer {
    background: #1a1a1a;
}

/* 确保主内容区域在暗色主题下跟随主题切换 */
body.dark-theme .main-content {
    color: #ffffff;
}

/* 主内容区域内的元素在暗色主题下的样式 */
body.dark-theme .section-header {
    background: linear-gradient(218deg, #3d07ff, #5d00ff);
    color: #333;
}

body.dark-theme .section-header span{
    font-size: 0.9rem;
    color: #fff;
    font-weight: normal;
    margin-left: 10px;
}


body.dark-theme .section-subheader {
    background: #333;
    color: #ffffff;
}

body.dark-theme .section-subheader h3 {
    color: #ffffff;
}

body.dark-theme .section-subheader p {
    color: #cccccc;
}

body.dark-theme .game-card {
    background: #2a2a2a;
}

body.dark-theme .game-info {
    background: #2a2a2a;
}

body.dark-theme .game-title {
    color: #ffffff;
}

body.dark-theme .game-category {
    color: #cccccc;
}
body.dark-theme .game-rating{
    color: #fff;
}
body.dark-theme .game-price{
    color: #fff;
}
body.dark-theme .game-meta {
    color: #cccccc;
}

/* Mobile dark theme support */
@media (max-width: 576px) {
    body.dark-theme .top-header {
        background-color: #1a1a1a;
        border-bottom: 1px solid #333;
    }
    
    body.dark-theme .mobile-menu-btn {
        color: #9370DB;
    }
    
    body.dark-theme .mobile-menu-btn:hover {
        color: #7B68EE;
        background: rgba(147, 112, 219, 0.1);
    }
} 

/* Mobile menu responsive adjustments */
@media (max-width: 576px) {
    .mobile-menu {
        width: 100%;
        left: -100%;
    }
    
    .mobile-menu.active {
        left: 0;
    }
    
    .mobile-nav-menu {
        max-height: calc(100vh - 180px);
    }
    
    .mobile-dropdown.active .mobile-dropdown-menu {
        max-height: 600px;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 100%;
    }
    
    .mobile-nav-menu {
        max-height: calc(100vh - 160px);
    }
    
    .mobile-dropdown.active .mobile-dropdown-menu {
        max-height: 500px;
    }
    
    .mobile-nav-menu li a {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .mobile-dropdown-menu li a {
        padding: 10px 15px 10px 45px;
        font-size: 0.85rem;
    }
} 

/* Banner responsive styles */
@media (max-width: 768px) {
    .banner-section {
        height: 400px;
    }
    
    .banner-logo {
        padding: 12px 30px;
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .search-container {
        max-width: 90%;
        margin: 0 auto 25px;
    }
    
    .search-input {
        padding: 15px 50px 15px 20px;
        font-size: 1rem;
    }
    
    .search-btn-banner {
        width: 40px;
        height: 40px;
        right: 15px;
        font-size: 1.1rem;
    }
    
    .hot-search {
        font-size: 0.9rem;
        padding: 12px 20px;
    }
    
    .hot-search-tag {
        margin: 0 5px;
        padding: 4px 8px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .banner-section {
        height: 350px;
    }
    
    .banner-logo {
        padding: 10px 25px;
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .search-container {
        max-width: 95%;
        margin: 0 auto 20px;
    }
    
    .search-input {
        padding: 12px 45px 12px 15px;
        font-size: 0.95rem;
    }
    
    .search-btn-banner {
        width: 35px;
        height: 35px;
        right: 12px;
        font-size: 1rem;
    }
    
    .hot-search {
        font-size: 0.85rem;
        padding: 10px 15px;
    }
    
    .hot-search-tag {
        margin: 0 3px;
        padding: 3px 6px;
        font-size: 0.8rem;
        margin-bottom: 3px;
    }
} 

/* Top Banner Section */
.top-banner-section {
    margin-bottom: 10px;
    padding: 5px;
}

/* SVIP Banner Swiper */
.svip-banner-swiper {
    width: 100%;
    height: 390px;
    overflow: hidden;
    position: relative;
}

.svip-banner-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.svip-banner-swiper .swiper-slide  a{
    width: 100%;
}

.svip-banner-swiper .banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 5px;
}

.svip-banner-swiper .swiper-pagination-bullet {
    background: var(--text-white);
    opacity: 0.5;
    width: 10px;
    height: 10px;
}

.svip-banner-swiper .swiper-pagination-bullet-active {
    background: var(--primary-purple);
    opacity: 1;
}

/* Right Side Banners */
.right-banners {
    height: 390px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.resource-banner,
.commission-banner {
    overflow: hidden;
    flex: 1;
    position: relative;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.resource-banner:hover,
.commission-banner:hover {
    transform: scale(1.02);
}

.resource-banner .banner-image,
.commission-banner .banner-image {
    display: none; /* 隐藏img标签，因为现在使用背景图片 */
}

/* Bottom Banner */
.bottom-banner {
    overflow: hidden;
    position: relative;
  padding: 10px;
    margin-top: 5px;
}

.bottom-banner .banner-image {
    width: 100%;

}

/* Responsive styles */
@media (max-width: 768px) {
    .top-banner-section{padding: 0;}
    .main-content .col-lg-12{padding: 0;}
    .svip-banner-swiper {
        height: 300px;
    }
    .main-content .row .col-12{padding: 0}
    .game-image{height: auto;}
    .right-banners {
        height: 300px;
        margin-top: 15px;
    }
    
    .resource-banner,
    .commission-banner {
        height: 140px;
    }
    
    .bottom-banner {
        height: 100px;
    }
}

@media (max-width: 576px) {
    .svip-banner-swiper {
        height: auto;
    }
    
    .right-banners {
        height: auto;
    }
    
    .resource-banner,
    .commission-banner {
        height: 115px;
    }
    
    .bottom-banner {
        height: 80px;
    }
} 


/* Login Modal Styles */
.login-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.login-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
}

.login-header {
    padding: 30px 30px 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo-image {
   
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
}

.register-logo-image {
 
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
}

.register-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.register-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.login-body {
    padding: 30px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.QqLogin{
    text-align: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.login-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.login-input:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.password-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-password {
    color: #007BFF;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #0056b3;
    text-decoration: underline;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    position: relative;
    transition: all 0.3s;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background-color: #007BFF;
    border-color: #007BFF;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.register-link {
    font-size: 0.9rem;
    color: #666;
}

.register-link a {
    color: #007BFF;
    text-decoration: none;
    margin-left: 5px;
    transition: color 0.3s;
}

.register-link a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.login-submit-btn {
    background: linear-gradient(45deg, #007BFF, #0056b3);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.login-footer {
    padding: 20px 30px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.agreement-text {
    font-size: 0.8rem;
    color: #666;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.agreement-text a {
    color: #007BFF;
    text-decoration: none;
}

.agreement-text a:hover {
    text-decoration: underline;
}

.copyright-text {
    font-size: 0.8rem;
    color: #999;
    margin: 0;
}

.login-close-btn {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s;
}

.login-close-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Dark theme support for login modal */
body.dark-theme .login-content {
    background-color: #2a2a2a;
    color: #ffffff;
}

body.dark-theme .login-input {
    background-color: #333;
    border-color: #444;
    color: #ffffff;
}

body.dark-theme .login-input:focus {
    border-color: #007BFF;
}

body.dark-theme .form-group label {
    color: #ffffff;
}

body.dark-theme .login-footer {
    background-color: #333;
    border-top: 1px solid #444;
}

body.dark-theme .agreement-text {
    color: #cccccc;
}

body.dark-theme .copyright-text {
    color: #999;
}

/* Responsive design for login modal */
@media (max-width: 768px) {
    .login-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .login-header {
        padding: 20px 20px 15px;
    }
    
    .login-body {
        padding: 20px;
    }
    
    .login-footer {
        padding: 15px 20px;
    }
}

/* Register Modal Styles */
.register-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.register-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
}

.register-header {
    padding: 30px 30px 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.register-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-logo-image {
    width: 125px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
}

.register-body {
    padding: 30px;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.register-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.register-input:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.login-link-section {
    text-align: left;
    font-size: 0.9rem;
    color: #666;
}

.login-link-section a {
    color: #007BFF;
    text-decoration: none;
    margin-left: 5px;
    transition: color 0.3s;
}

.login-link-section a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.register-submit-btn {
    background: linear-gradient(45deg, #007BFF, #0056b3);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.register-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.register-footer {
    padding: 20px 30px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.register-close-btn-bottom {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s;
}

.register-close-btn-bottom:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Dark theme support for register modal */
body.dark-theme .register-content {
    background-color: #2a2a2a;
    color: #ffffff;
}

body.dark-theme .register-input {
    background-color: #333;
    border-color: #444;
    color: #ffffff;
}

body.dark-theme .register-input:focus {
    border-color: #007BFF;
}

body.dark-theme .form-group label {
    color: #ffffff;
}

body.dark-theme .register-footer {
    background-color: #333;
    border-top: 1px solid #444;
}

body.dark-theme .agreement-text {
    color: #cccccc;
}

body.dark-theme .copyright-text {
    color: #999;
}

/* Responsive design for register modal */
@media (max-width: 768px) {
    .register-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .register-header {
        padding: 15px 20px;
    }
    
    .register-body {
        padding: 20px;
    }
    
    .register-footer {
        padding: 15px 20px;
    }
}

/* 波浪效果 */
.main-content .wave-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    animation: waveMove 6s ease-in-out infinite;
    z-index: 0;
    opacity: 0.4;
}

@keyframes waveMove {
    0%, 100% {
        transform: translateX(-100%) skewX(-15deg);
    }
    50% {
        transform: translateX(100%) skewX(-15deg);
    }
}

/* 光晕效果 */
.main-content .glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(120, 119, 198, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: glowPulse 4s ease-in-out infinite;
    z-index: 0;
    opacity: 0.5;
}

@keyframes glowPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.6;
    }
}

/* 暗色主题下的波浪效果 */
body.dark-theme .main-content .wave-effect {
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    opacity: 0.3;
}

/* 暗色主题下的光晕效果 */
body.dark-theme .main-content .glow-effect {
    background: radial-gradient(circle, rgba(120, 119, 198, 0.3) 0%, transparent 70%);
    opacity: 0.6;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .main-content::before {
        animation-duration: 12s;
    }
    
    .main-content::after {
        animation-duration: 16s;
    }
    
    .main-content .wave-effect {
        animation-duration: 8s;
    }
    
    .main-content .glow-effect {
        animation-duration: 6s;
    }
}

/* 渐变动画 */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 粒子浮动动画 */
@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 0.5;
    }
    75% {
        transform: translateY(-30px) rotate(270deg);
        opacity: 0.8;
    }
}

/* 暗色主题下的动态背景 
body.dark-theme .main-content::before {
    background: linear-gradient(45deg, #1a1a2e, #16213e, #1a1a2e, #16213e);
    background-size: 400% 400%;
    opacity: 0.9;
    pointer-events: none;
}

body.dark-theme .main-content::after {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(255, 199, 120, 0.4) 0%, transparent 50%);
    opacity: 0.7;
    pointer-events: none;
}
*/
/* Responsive Design - 合并后的媒体查询 */
@media (max-width: 768px) {
    /* 导航菜单 */
    .nav-menu {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Swiper内容 */
    .swiper-slide-content h2 {
        font-size: 1.8rem;
    }
    
    .swiper-slide-content p {
        font-size: 1rem;
    }
    
    /* Banner响应式 */
    .banner-section {
        height: 400px;
    }
    
    .banner-logo {
        padding: 12px 30px;
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .search-container {
        max-width: 90%;
        margin: 0 auto 25px;
    }
    
    .search-input {
        padding: 15px 50px 15px 20px;
        font-size: 1rem;
    }
    
    .search-btn-banner {
        width: 40px;
        height: 40px;
        right: 15px;
        font-size: 1.1rem;
    }
    
    .hot-search {
        font-size: 0.9rem;
        padding: 12px 20px;
    }
    
    .hot-search-tag {
        margin: 0 5px;
        padding: 4px 8px;
        font-size: 0.85rem;
    }
    
    /* 主内容区域 */
    .top-banner-section {
        padding: 0;
    }
    
    .main-content .col-lg-12 {
        padding: 0;
    }
    
    .svip-banner-swiper {
        height: 300px;
    }
    
    .main-content .row .col-12 {
        padding: 0;
    }
    
    .game-image {
        height: auto;
    }
    
    .right-banners {
        height: 300px;
        margin-top: 15px;
    }
    
    .resource-banner,
    .commission-banner {
        height: 140px;
    }
    
    .bottom-banner {
        height: 100px;
    }
    
    /* 通知模态框 */
    .notification-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .notification-header {
        padding: 15px;
    }
    
    .notification-body {
        padding: 15px;
        max-height: 300px;
    }
    
    .notification-footer {
        padding: 10px 15px;
    }
    
    /* 搜索模态框 */
    .search-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .search-header {
        padding: 15px;
    }
    
    .search-body {
        padding: 15px;
        max-height: 400px;
    }
    
    /* 登录模态框 */
    .login-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .login-header {
        padding: 20px 20px 15px;
    }
    
    .login-body {
        padding: 20px;
    }
    
    .login-footer {
        padding: 15px 20px;
    }
    
    /* 注册模态框 */
    .register-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .register-header {
        padding: 15px 20px;
    }
    
    .register-body {
        padding: 20px;
    }
    
    .register-footer {
        padding: 15px 20px;
    }
    
    /* 动态背景效果响应式 */
    .main-content::before {
        animation-duration: 12s;
    }
    
    .main-content::after {
        animation-duration: 16s;
    }
    
    .main-content .wave-effect {
        animation-duration: 8s;
    }
    
    .main-content .glow-effect {
        animation-duration: 6s;
    }
}

@media (max-width: 576px) {
    /* 头部响应式 */
    .top-header {
        height: 50px;
        padding: 0 10px;
    }
    
    .header-actions {
        justify-content: flex-end;
        align-items: center;
    }
    
    .mobile-menu-btn {
        padding: 8px;
        font-size: 1.3rem;
        color: #9370DB;
    }
    
    .mobile-menu-btn:hover {
        background: rgba(147, 112, 219, 0.1);
        color: #7B68EE;
    }
    
    .logo-image {
        width: 100px;
        margin-right: 8px;
    }
    
    /* Banner响应式 */
    .banner-section {
        height: 350px;
    }
    
    .banner-logo {
        padding: 10px 25px;
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .search-container {
        max-width: 95%;
        margin: 0 auto 20px;
    }
    
    .search-input {
        padding: 12px 45px 12px 15px;
        font-size: 0.95rem;
    }
    
    .search-btn-banner {
        width: 35px;
        height: 35px;
        right: 12px;
        font-size: 1rem;
    }
    
    .hot-search {
        font-size: 0.85rem;
        padding: 10px 15px;
    }
    
    .hot-search-tag {
        margin: 0 3px;
        padding: 3px 6px;
        font-size: 0.8rem;
        margin-bottom: 3px;
    }
    
    /* 主内容区域 */
    .svip-banner-swiper {
        height: auto;
    }
    
    .right-banners {
        height: auto;
    }
    
    .resource-banner,
    .commission-banner {
        height: 115px;
    }
    
    .bottom-banner {
        height: 80px;
    }
    
    /* 移动菜单响应式 */
    .mobile-menu {
        width: 100%;
        left: -100%;
    }
    
    .mobile-menu.active {
        left: 0;
    }
    
    .mobile-nav-menu {
        max-height: calc(100vh - 180px);
    }
    
    .mobile-dropdown.active .mobile-dropdown-menu {
        max-height: 600px;
    }
    
    /* 暗色主题移动端 */
    body.dark-theme .top-header {
        background-color: #1a1a1a;
        border-bottom: 1px solid #333;
    }
    
    body.dark-theme .mobile-menu-btn {
        color: #9370DB;
    }
    
    body.dark-theme .mobile-menu-btn:hover {
        color: #7B68EE;
        background: rgba(147, 112, 219, 0.1);
    }
    
 
}

/* 480px以下特殊处理 */
@media (max-width: 480px) {
    .mobile-menu {
        width: 100%;
    }
    
    .mobile-nav-menu {
        max-height: calc(100vh - 160px);
    }
    
    .mobile-dropdown.active .mobile-dropdown-menu {
        max-height: 500px;
    }
    
    .mobile-nav-menu li a {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .mobile-dropdown-menu li a {
        padding: 10px 15px 10px 45px;
        font-size: 0.85rem;
    }
}

/* VIP Banner Section */
.vip-banner-section {
    background: linear-gradient(135deg, #6B46C1, #1E40AF);
    border-radius: 12px;
    padding: 10px 20px;
    height: 50px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.vip-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    width: 100%;
}

.vip-info h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.2;
}

.vip-upgrade-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.vip-upgrade-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

/* VIP and Search Section Container */
.vip-search-section {
    margin-bottom: 20px;
}

.vip-search-section .row {
    align-items: flex-end;
}
.games .container{background: rgba(255, 255, 255, 0.2);padding-top: 20px;}
/* Search Section */
.search-section {
    height: 50px;

    align-items: center;
    justify-content: flex-end;
    box-sizing: border-box;
}

.search-container {
    position: relative;
    width: 100%;
    max-width:500px;
}

.search-container .search-input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 30px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 50px;
    box-sizing: border-box;
}

.search-container .search-input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.search-container .search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    color: #333;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-container .search-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-50%) scale(1.05);
}

/* Categories Section */
.categories-section {
    margin-bottom: 20px;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-btn {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    color: #495057;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
}

.category-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
    text-decoration: none;
}

.category-btn.active {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
    text-decoration: none;
}

/* Filter and Sort Section */
.filter-sort-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    border-bottom: 1px solid #e1e5e9;
}

.filter-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-weight: 500;
    color: #495057;
    margin-right: 5px;
}

.filter-btn {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    color: #495057;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.filter-btn:hover {
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
}

.filter-btn.active {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
    text-decoration: none;
}

.sort-section {
    display: flex;
    gap: 8px;
}

.sort-btn {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    color: #495057;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.sort-btn:hover {
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
}

.sort-btn.active {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
    text-decoration: none;
}

.sort-btn i {
    font-size: 0.8rem;
}

/* Dark theme support */
body.dark-theme .vip-banner-section {
    background: linear-gradient(135deg, #553C9A, #1E3A8A);
}

body.dark-theme .search-container .search-input {
    background: #2a2a2a;
    border-color: #404040;
    color: #ffffff;
}

body.dark-theme .search-container .search-input:focus {
    border-color: var(--primary-purple);
}

body.dark-theme .category-btn {
    background: #2a2a2a;
    border-color: #404040;
    color: #ffffff;
}

body.dark-theme .category-btn:hover {
    background: #404040;
}

body.dark-theme .category-btn.active {
    background: var(--primary-purple);
}

body.dark-theme .filter-sort-section {
    border:1px solid #404040  !important;
    background: #4a5568 !important;
}

body.dark-theme .filter-label {
    color: var(--nav-blue);
}

body.dark-theme .filter-btn,
body.dark-theme .sort-btn {
    background: #2a2a2a;
    border-color: #404040;
    color: #ffffff;
}

body.dark-theme .filter-btn:hover,
body.dark-theme .sort-btn:hover {
    background: #404040;
}

body.dark-theme .filter-btn.active,
body.dark-theme .sort-btn.active {
    background: #6c757d;
}
body.dark-theme  .content-area{
    background: #4a5568 !important;
    color:var(--text-white)
}

body.dark-theme .main-content .pagination-container{
    background:#939fba !important;
    border:1px solid #fff !important;
}

body.dark-theme .main-content .game-list-section{
    background: #7484a5;
    box-shadow: 0 2px 10px rgb(0, 0, 0);
}

body.dark-theme .main-content .game-list-section h3{
    color:var(--text-white) !important;
}
body.dark-theme .game-info{
    background: none !important;
    color:var(--text-white) !important;
}
body.dark-theme .game-info h4{
    color:var(--text-white) !important;
}
body.dark-theme .game-info p{
    color:var(--text-white) !important;
}

body.dark-theme .main-content .poster-section{
    background:#939fba !important;
    border:1px solid #939fba !important; 
    box-shadow: 0 2px 10px rgb(0, 0, 0);
}
body.dark-theme .main-content .poster-section h3{
    color:var(--text-white) !important;
}

body.dark-theme .search-container .search-btn,body.dark-theme  .user-nickname{
    color:var(--text-white) !important;
}

/* Responsive design for new sections */
@media (max-width: 768px) {
    .vip-search-section .row {
        flex-direction: column;
    }
    
    .vip-search-section .col-md-8,
    .vip-search-section .col-md-4 {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .vip-banner-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .vip-info h3 {
        font-size: 1rem;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .category-buttons {
        gap: 8px;
    }
    
    .category-btn {
        padding: 5px 10px;
        font-size: 0.85rem;
    }
    
    .filter-sort-section {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .filter-section,
    .sort-section {
        width: 100%;
        justify-content: flex-start;
    }
    
    .sort-section {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    /* 头部响应式 */
    .top-header {
        height: 50px;
        padding: 0 10px;
    }
    
    .header-actions {
        justify-content: flex-end;
        align-items: center;
    }
    
    .mobile-menu-btn {
        padding: 8px;
        font-size: 1.3rem;
        color: #9370DB;
    }
    
    .mobile-menu-btn:hover {
        background: rgba(147, 112, 219, 0.1);
        color: #7B68EE;
    }
    
    .logo-image {
        width: 100px;
        margin-right: 8px;
    }
    
    /* Banner响应式 */
    .banner-section {
        height: 350px;
    }
    
    .banner-logo {
        padding: 10px 25px;
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .search-container {
        max-width: 95%;
        margin: 0 auto 20px;
    }
    
    .search-input {
        padding: 12px 45px 12px 15px;
        font-size: 0.95rem;
    }
    
    .search-btn-banner {
        width: 35px;
        height: 35px;
        right: 12px;
        font-size: 1rem;
    }
    
    .hot-search {
        font-size: 0.85rem;
        padding: 10px 15px;
    }
    
    .hot-search-tag {
        margin: 0 3px;
        padding: 3px 6px;
        font-size: 0.8rem;
        margin-bottom: 3px;
    }
    
    /* 主内容区域 */
    .svip-banner-swiper {
        height: auto;
    }
    
    .right-banners {
        height: auto;
    }
    
    .resource-banner,
    .commission-banner {
        height: 115px;
    }
    
    .bottom-banner {
        height: 80px;
    }
    
    /* 移动菜单响应式 */
    .mobile-menu {
        width: 100%;
        left: -100%;
    }
    
    .mobile-menu.active {
        left: 0;
    }
    
    .mobile-nav-menu {
        max-height: calc(100vh - 180px);
    }
    
    .mobile-dropdown.active .mobile-dropdown-menu {
        max-height: 600px;
    }
    
    /* 暗色主题移动端 */
    body.dark-theme .top-header {
        background-color: #1a1a1a;
        border-bottom: 1px solid #333;
    }
    
    body.dark-theme .mobile-menu-btn {
        color: #9370DB;
    }
    
    body.dark-theme .mobile-menu-btn:hover {
        color: #7B68EE;
        background: rgba(147, 112, 219, 0.1);
    }
    

}

/* Pagination Styles */
.pagination-section {
    margin-top: 30px;
    margin-bottom: 50px;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.pagination-info {
    color: #666;
    font-size: 0.9rem;
}

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

.page-btn {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    color: #495057;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 36px;
    justify-content: center;
}

.page-btn:hover {
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
}

.page-btn.active {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
    text-decoration: none;
}

.page-btn.next-btn {
    padding: 8px 16px;
    min-width: auto;
}

.page-btn.ellipsis-btn {
    background: #f8f9fa;
    color: #495057;
    border-color: #e1e5e9;
}

.pagination-jump {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jump-label {
    color: #495057;
    font-size: 0.9rem;
    font-weight: 500;
}

.jump-input {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
}

.jump-input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
}

.jump-btn {
    background: #6c757d;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    border: 1px solid #6c757d;
}

.jump-btn:hover {
    background: #5a6268;
    color: white;
    text-decoration: none;
}

/* Dark theme support for pagination */
body.dark-theme .pagination-info {
    color: #cccccc;
}

body.dark-theme .page-btn {
    background: #2a2a2a;
    border-color: #404040;
    color: #ffffff;
}

body.dark-theme .page-btn:hover {
    background: #404040;
    color: #ffffff;
}

body.dark-theme .page-btn.active {
    background: #6c757d;
    color: white;
}

body.dark-theme .page-btn.ellipsis-btn {
    background: #2a2a2a;
    color: #ffffff;
    border-color: #404040;
}

body.dark-theme .jump-label {
    color: #ffffff;
}

body.dark-theme .jump-input {
    background: #2a2a2a;
    border-color: #404040;
    color: #ffffff;
}

body.dark-theme .jump-input:focus {
    border-color: var(--primary-purple);
}

/* Responsive design for pagination */
@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-btn {
        padding: 6px 10px;
        font-size: 0.85rem;
        min-width: 32px;
    }
    
    .page-btn.next-btn {
        padding: 6px 12px;
    }
}

@media (max-width: 576px) {
    .pagination-controls {
        gap: 6px;
    }
    
    .page-btn {
        padding: 5px 8px;
        font-size: 0.8rem;
        min-width: 28px;
    }
    
    .jump-input {
        width: 50px;
        padding: 5px 6px;
        font-size: 0.85rem;
    }
    
    .jump-btn {
        padding: 5px 10px;
        font-size: 0.85rem;
    }
}

/* Game Card Link Styles */
.game-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.game-card-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-5px);
}

.game-card-link:hover .game-card {
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
}

/* 确保游戏卡片在链接内正常显示 */
.game-card-link .game-card {
    cursor: pointer;
}

/* 用户菜单样式 */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: transparent; /* 去掉背景色 */
    color: #333; /* 改为深色文字 */
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: flex-start; /* 从左往右排列 */
    /* 确保悬停时下拉菜单能正确显示 */
    overflow: visible;
    /* 调试：确保悬停区域正确 */
    z-index: 1000;
}

/* 响应式显示 */
@media (min-width: 768px) {
    .login-btn {
        display: flex;
    }
    
    .user-menu {
        display: flex;
    }
}

@media (max-width: 767px) {
    .user-menu {
        min-width: 120px;
        padding: 8px 14px;
    }
    
    .user-avatar {
        width: 30px;
        height: 30px;
    }
    
    .user-nickname {
        max-width: 80px;
        font-size: 13px;
    }
    
    .user-dropdown {
        min-width: 160px;
        right: -20px;
    }
}

.user-menu:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%; /* 保持圆形 */
    overflow: hidden;
    border: 2px solid #e0e0e0; /* 改为浅灰色边框 */
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    border-color: #667eea; /* 悬停时变为主题色 */
    transform: scale(1.05);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    flex: 1;
    justify-content: flex-start; /* 左对齐 */
}

.user-nickname {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    color: #333;
    cursor: pointer; /* 让用户名可点击 */
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 6px;
}

.user-nickname:hover {
    background: #f5f5f5; /* 悬停时显示浅灰色背景 */
    color: #667eea;
}

.user-info i {
    font-size: 12px;
    color: #999;
    transition: all 0.3s ease;
    margin-left: 4px;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    left: 0; /* 改为左对齐，与用户名对齐 */
    margin-top: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.2s ease; /* 稍微加快动画速度 */
    z-index: 9999;
    pointer-events: none;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    /* 调试：确保定位正确 */
    will-change: opacity, visibility, transform;
    /* 确保下拉菜单有足够的悬停区域 */
    padding-top: 8px; /* 增加顶部内边距，扩大悬停区域 */
}

/* 悬停显示下拉菜单 - 使用更强的选择器 */
.user-menu:hover .user-dropdown,
.user-menu:focus .user-dropdown,
.user-menu:focus-within .user-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
}

/* 确保悬停状态下的过渡效果 */
.user-menu:hover .user-dropdown {
    transition-delay: 0s;
}

/* 调试：临时强制显示，测试是否工作 */
.user-menu:hover .user-dropdown {
    display: block !important;
}

/* 创建更大的悬停区域，防止鼠标移动时菜单消失 */
.user-dropdown::before {
    content: '';
    position: absolute;
    top: -8px; /* 向上扩展8px */
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
    pointer-events: auto;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #667eea;
    text-decoration: none;
    transform: translateX(5px);
}

.dropdown-item:hover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0 2px 2px 0;
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    font-size: 16px;
    color: #667eea;
    transition: all 0.2s ease;
}

.dropdown-item:hover i {
    transform: scale(1.1);
} 


.vertify-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vertify-input {
    flex: 1;
}

.vertify-img {
    width: 100px;
    height: 40px;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.vertify-img:hover {
    border-color: #007bff;
}
.layui-layer-dialog .layui-layer-content{color:#000 !important;}