
/* 亮暗模式切换按钮样式 - 修改位置 */
.theme-switch {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 9999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    border: none;
}

.theme-switch:hover {
    transform: scale(1.1);
}

.theme-switch i {
    font-size: 1.5rem;
}

/* 暗模式样式 - 优化字体颜色 */
body.dark-mode {
    background-color: #1a1a1a;
    color: #f0f0f0;
}

/* 卡片样式 */
.dark-mode .card {
    background-color: #252525;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: #f0f0f0;
}

.dark-mode .card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.dark-mode .card-text {
    color: #b0b0b0;
}

.dark-mode .btn-light {
    background-color: #2d2d2d;
    color: #e0e0e0;
    border-color: #444;
}

.dark-mode .btn-light:hover {
    background-color: #3d3d3d;
}

.dark-mode .alert-warning {
    background-color: #332900;
    border-color: #665200;
    color: #ffd633;
}

.dark-mode .form-control {
    background-color: #2d2d2d;
    border-color: #444;
    color: #e0e0e0;
}

/* 评论区优化 */
.dark-mode .twikoo-wrapper {
    background: rgba(37, 37, 37, 0.95) !important;
    color: #f0f0f0 !important;
}

.dark-mode .tk-comment {
    background-color: #252525 !important;
}

.dark-mode .tk-comment:hover {
    background-color: #303030 !important;
}

.dark-mode .tk-submit {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
}

/* 优化暗模式下其他文本颜色 */
.dark-mode .text-muted {
    color: #a0a0a0 !important;
}

.dark-mode .badge.bg-light {
    background-color: #333 !important;
    color: #e0e0e0 !important;
}

.dark-mode .badge.bg-secondary {
    background-color: #555 !important;
    color: #fff !important;
}

.dark-mode .pagination .page-link {
    background-color: #2d2d2d;
    color: #e0e0e0;
    border-color: #444;
}

.dark-mode .pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

.dark-mode .pagination .page-item.disabled .page-link {
    background-color: #2d2d2d;
    color: #666;
}

/* 暗模式搜索框样式优化 */
.dark-mode .form-control {
    background-color: #2d2d2d;
    border-color: #444;
    color: #e0e0e0;
}

.dark-mode ::placeholder {
    color: #b0b0b0 !important;
    opacity: 1;
}

.dark-mode :-ms-input-placeholder {
    color: #b0b0b0 !important;
}

.dark-mode ::-ms-input-placeholder {
    color: #b0b0b0 !important;
}

/* 暗模式下评论区样式 */
.dark-mode .twikoo-wrapper {
    color: #e0e0e0 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
}

/* 暗模式下评论卡片样式 */
.dark-mode .tk-comment {
    color: #e0e0e0 !important;
    border-left-color: #6e8efb !important;
}

.dark-mode .tk-comment:hover {
    background-color: #2d2d2d !important;
}

/* 暗模式下评论输入框样式 */
.dark-mode .tk-submit {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}

.dark-mode .el-textarea__inner {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}

/* 暗模式下按钮样式 */
.dark-mode .el-button {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}

.dark-mode .el-button:hover {
    background-color: #3d3d3d !important;
}

/* 暗模式下播放器样式 */
.dark-mode .aplayer {
    background: #1e1e1e !important;
    color: #e0e0e0 !important;
}

.dark-mode .aplayer-title,
.dark-mode .aplayer-author {
    color: #e0e0e0 !important;
}

.dark-mode .aplayer-list ol li {
    background: #2d2d2d !important;
    color: #e0e0e0 !important;
    border-top: 1px solid #444 !important;
}

.dark-mode .aplayer-list ol li:hover {
    background: #3d3d3d !important;
}

.dark-mode .aplayer-list ol li.aplayer-list-light {
    background: #444 !important;
    color: #fff !important;
}

.dark-mode .aplayer-lrc:before {
    background: linear-gradient(180deg, #1e1e1e 0%, rgba(30, 30, 30, 0) 100%) !important;
}

.dark-mode .aplayer-lrc:after {
    background: linear-gradient(180deg, rgba(30, 30, 30, 0) 0%, #1e1e1e 100%) !important;
}

.dark-mode .aplayer-info {
    border-top: 1px solid #444 !important;
}

.dark-mode .aplayer-volume-bar {
    background: #444 !important;
}

.dark-mode .aplayer-volume:hover .aplayer-volume-bar {
    background: #555 !important;
}

.dark-mode .aplayer-time {
    color: #b0b0b0 !important;
}

/* 图片懒加载相关样式 */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lazy-image.loaded {
    opacity: 1;
}

.lazy-image.placeholder {
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%),
                linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    background-color: #e0e0e0;
}

.dark-mode .lazy-image.placeholder {
    background: linear-gradient(45deg, #333 25%, transparent 25%, transparent 75%, #333 75%),
                linear-gradient(45deg, #333 25%, transparent 25%, transparent 75%, #333 75%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    background-color: #444;
}

/* 加载动画 */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.dark-mode .loading-spinner {
    border: 3px solid #444;
    border-top: 3px solid #007bff;
}

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

/* 图片容器 */
.card-img-container {
    position: relative;
    display: block;
    min-height: 120px; /* 保持图片加载前的占位高度 */
    overflow: hidden;
}

/* 确保图片正确显示 */
.game-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}
/* 懒人CSS结束 */
/* 自定义样式 */
/* .game-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
} */

.card {
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 8px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-body {
    padding: 0.7rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.btn-primary {
    background-color: #7bb0e9;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

.pagination .page-link {
    color: #007bff;
}

.pagination .page-link:hover {
    color: #0056b3;
}

/* 分页按钮样式 */
.pagination {
    flex-wrap: wrap;
}

.pagination .page-item {
    margin: 2px;
}

.pagination .page-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.pagination .page-item.disabled .page-link {
    pointer-events: none;
}

/* 自定义分页按钮样式 */
.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

/* === 修复侧边栏遮挡问题的CSS === */

/* 用户状态栏 */
.user-status-bar {
    font-size: 0.9rem;
    z-index: 1000;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #dee2e6;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
}

.dark-mode .user-status-bar {
    background: linear-gradient(135deg, #252525, #2d2d2d);
    border-bottom: 1px solid #444;
}

.user-status-bar .container {
    padding: 0 15px;
}

.user-status-bar .row {
    align-items: center;
    height: 100%;
}
/* 暗模式下登陆背景样式 */	/*form-text:#f8f9fa;*/
.dark-mode .modal-content {
    background: linear-gradient(135deg, #2d2d2d, #f8f9fa);
    border-bottom: 1px solid #444;
}
/* 左侧边栏样式 - 修复位置 */
.sidebar {
    position: fixed;
    left: 0;
    top: 60px; /* 在状态栏下方 */
    bottom: 0;
    width: 210px;
    height: calc(100vh - 60px); /* 减去状态栏高度 */
    overflow-y: auto;
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    z-index: 100;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    padding-top: 10px;
}

.dark-mode .sidebar {
    background-color: #252525;
    border-right: 1px solid #444;
}

/* 调整主内容区域 */
.main-content {
    margin-top: 60px; /* 与状态栏高度一致 */
    margin-left: 0;
}

/* 手机端侧边栏全宽 */
@media (max-width: 767.98px) {
    .sidebar {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(100vh - 60px);
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        z-index: 1000;
    }
    
    .dark-mode .sidebar {
        border-bottom: 1px solid #444;
    }
    
    #mobileSidebar.collapse:not(.show) {
        display: none;
    }
    
    #mobileSidebar.collapse.show {
        display: block;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1040;
        padding: 15px;
        overflow-y: auto;
    }
    
    /* 手机端导航按钮   top: 70px; */
    #mobileNavBtn {
        position: fixed;
        left: 10px;
        top: 8px;
        z-index: 9999;
        padding: 0.6rem 1rem;
        font-size: 16px;
        line-height: 1.5;
        white-space: nowrap;
        text-align: center;
        min-width: 50px;
        height: auto;
        border-radius: 8px;
    }
}
/* 手机端导航按钮   top: 65px; */
@media (max-width: 480px) {
    #mobileNavBtn {
        left: 5px;
        top: 18px;
        padding: 0.4rem 0.6rem;
        font-size: 14px;
        min-width: 30px;
    }
    
    .user-status-bar {
        height: 70px;
    }
    
    .sidebar {
        top: 70px;
        height: calc(100vh - 70px);
    }
    
    #mobileSidebar.collapse.show {
        top: 70px;
    }
    
    .main-content {
        margin-top: 70px;
    }
}

/* 桌面端侧边栏布局 */
@media (min-width: 768px) {
    .main-content {
        margin-left: 240px; /* 和 sidebar 宽度保持一致 */
    }
}

/* 侧边栏滚动区域 */
.sidebar-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-bottom: 12px;
    height: 100%;
}

/* 调整标题区域 */
.bg-light.py-4.mb-4 {
    margin-top: 0;
    padding-top: 2rem !important;
}

/* 评论区卡片样式增强 */
.tk-comment {
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    padding-left: 10px;
}

.tk-comment:hover {
    border-left-color: #6e8efb;
    background-color: #f8f9fa;
}

/* 回复框样式 */
.tk-submit {
    border-radius: 8px !important;
    padding: 15px !important;
    background-color: #f8f9fa !important;
}

/* 移动端输入框调整 */
@media (max-width: 576px) {
    .tk-submit {
        padding: 10px !important;
        width: 90% !important;
        margin: 0 auto;
    }
    
    .el-textarea__inner {
        min-height: 100px !important;
    }
}

/* 全局默认鼠标指针 */
body,
html {
    cursor: url('../../common-file/cur/arrow.cur'),auto !important;
}

/* 悬停图片时的鼠标指针 */
img {
    cursor: url('../../common-file/cur/lsxy.cur'),auto !important;
}

/* 选择链接标签时的鼠标指针 */
a:hover {
    cursor: url('../../common-file/cur/liuying.cur'),auto;
}

/* 选中输入框时的鼠标指针 */
input:hover {
    cursor: url('../../common-file/cur/input.cur'),auto;
}

/* 悬停按钮时的鼠标指针 */
button:hover {
    cursor: url('../../common-file/cur/btn.cur'),auto;
}

/* 悬停列表标签时的鼠标指针 */
i:hover {
    cursor: url('../../common-file/cur/link.cur'),auto;
}

/* 悬停页脚链接标签时的鼠标指针 */
#footer-wrap a:hover {
    cursor: url('../../common-file/cur/hf.cur'),auto;
}

/* 悬停页码时的鼠标指针 */
#pagination .page-number:hover {
    cursor: url('../../common-file/cur/ii.cur'),auto;
}

/* 悬停菜单栏时的鼠标指针 */
#nav .site-page:hover {
    cursor: url('../../common-file/cur/hhff.cur'),auto;
}

.aplayer.aplayer-fixed.aplayer-narrow .aplayer-body {
    left: -66px !important;
}

.aplayer.aplayer-fixed.aplayer-narrow .aplayer-body:hover {
    left: 0 !important;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* 列表组项样式 */
.list-group-item {
    border: none;
    border-radius: 5px !important;
    margin-bottom: 5px;
    transition: all 0.2s;
    border-left: 3px solid transparent !important;
}

.list-group-item:hover {
    background-color: #e9ecef;
    border-left: 3px solid #6e8efb !important;
}

.list-group-item.active {
    background-color: #e9f0ff !important;
    color: #2c5bff !important;
    border-left: 3px solid #2c5bff !important;
}

/* 暗模式下列表组项样式 */
.dark-mode .list-group-item {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

.dark-mode .list-group-item:hover {
    background-color: #3d3d3d;
    border-left: 3px solid #a777e3 !important;
}

.dark-mode .list-group-item.active {
    background-color: #2a3547 !important;
    color: #6e8efb !important;
    border-left: 3px solid #6e8efb !important;
}

/* 标题背景 */
.bg-light {
    background-color: #f8f9fa !important;
}

.dark-mode .bg-light {
    background-color: #252525 !important;
}

/* 游戏卡片调整 */
@media (max-width: 575.98px) {
    .col-6 {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .game-img {
        height: 120px;
    }
}

/* ===== 1. 全局滚动条（右侧主滚动条） ===== */
.dark-mode ::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}
.dark-mode ::-webkit-scrollbar-thumb {
    background-color: #555;          /* 滑块颜色 */
    border-radius: 6px;
    border: 3px solid #252525;       /* 用边框模拟内边距 */
}
.dark-mode ::-webkit-scrollbar-thumb:hover {
    background-color: #666;          /* 悬停时变亮 */
}
.dark-mode ::-webkit-scrollbar-track {
    background: #252525;             /* 轨道颜色 */
}
.dark-mode ::-webkit-scrollbar-corner {
    background: #252525;             /* 右下角交汇处 */
}

/* ===== 2. 左侧边栏滚动条（更窄） ===== */
.dark-mode .sidebar::-webkit-scrollbar {
    width: 8px;                      /* 侧边栏更窄 */
}
.dark-mode .sidebar::-webkit-scrollbar-thumb {
    border: 2px solid #252525;       /* 调整边框厚度 */
}

/* ===== 3. Firefox 兼容方案 ===== */
.dark-mode {
    scrollbar-color: #555 #252525;   /* 滑块和轨道颜色 */
    scrollbar-width: thin;           /* 滑块粗细 */
}

/* 基础标签样式 */
.game-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    margin: 0.15rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid;
    background-color: transparent;
}

/* 亮色模式颜色方案 - 12种鲜艳颜色 */
.tag-red { color: #f44336; border-color: #f44336; }
.tag-blue { color: #2196F3; border-color: #2196F3; }
.tag-green { color: #4CAF50; border-color: #4CAF50; }
.tag-yellow { color: #FFC107; border-color: #FFC107; }
.tag-purple { color: #9C27B0; border-color: #9C27B0; }
.tag-orange { color: #FF9800; border-color: #FF9800; }
.tag-pink { color: #E91E63; border-color: #E91E63; }
.tag-teal { color: #009688; border-color: #009688; }
.tag-cyan { color: #00BCD4; border-color: #00BCD4; }
.tag-indigo { color: #3F51B5; border-color: #3F51B5; }
.tag-lime { color: #CDDC39; border-color: #CDDC39; }
.tag-amber { color: #FFC107; border-color: #FFC107; }
.tag-brown { color: #795548; border-color: #795548; }
.tag-light-green { color: #8BC34A; border-color: #8BC34A; }
.tag-light-blue { color: #03A9F4; border-color: #03A9F4; }
.tag-grey { color: #9E9E9E; border-color: #9E9E9E; }
.tag-blue-grey { color: #607D8B; border-color: #607D8B; }
.tag-deep-orange { color: #FF5722; border-color: #FF5722; }
.tag-deep-purple { color: #673AB7; border-color: #673AB7; }

/* 暗黑模式适配 */
.dark-mode .tag-red { color: #ff8a80; border-color: #ff8a80; }
.dark-mode .tag-blue { color: #82b1ff; border-color: #82b1ff; }
.dark-mode .tag-green { color: #b9f6ca; border-color: #b9f6ca; }
.dark-mode .tag-yellow { color: #ffff8d; border-color: #ffff8d; }
.dark-mode .tag-purple { color: #ea80fc; border-color: #ea80fc; }
.dark-mode .tag-orange { color: #ffd180; border-color: #ffd180; }
.dark-mode .tag-pink { color: #ff80ab; border-color: #ff80ab; }
.dark-mode .tag-teal { color: #a7ffeb; border-color: #a7ffeb; }
.dark-mode .tag-cyan { color: #84ffff; border-color: #84ffff; }
.dark-mode .tag-indigo { color: #8c9eff; border-color: #8c9eff; }
.dark-mode .tag-lime { color: #f4ff81; border-color: #f4ff81; }
.dark-mode .tag-amber { color: #ffe57f; border-color: #ffe57f; }
.dark-mode .tag-brown { color: #d7ccc8; border-color: #d7ccc8; }
.dark-mode .tag-light-green { color: #ccff90; border-color: #ccff90; }
.dark-mode .tag-light-blue { color: #80d8ff; border-color: #80d8ff; }
.dark-mode .tag-grey { color: #cfd8dc; border-color: #cfd8dc; }
.dark-mode .tag-blue-grey { color: #b0bec5; border-color: #b0bec5; }
.dark-mode .tag-deep-orange { color: #ff9e80; border-color: #ff9e80; }
.dark-mode .tag-deep-purple { color: #b388ff; border-color: #b388ff; }

/* 悬停效果 */
.game-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    opacity: 0.9;
}

.dark-mode .game-tag:hover {
    box-shadow: 0 4px 12px rgba(255,255,255,0.1);
}

/* 手机端关闭按钮样式 */
.mobile-sidebar-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1050;
    font-size: 1.5rem;
    padding: 0.5rem;
    opacity: 1;
    background: none;
    border: none;
    color: inherit;
}

.dark-mode .mobile-sidebar-close {
    filter: invert(1);
}

/* 确保按钮在暗黑模式下可见 */
.btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
}

.dark-mode .btn-close {
    filter: invert(1);
}

/* 移动端默认只显示部分标签 */
@media (max-width: 992px) {
    #tagContainer {
      max-height: 120px;
      overflow: hidden;
      transition: max-height 0.3s ease;
    }
    #tagContainer.collapsed {
      max-height: none;
    }
}
  
/* 调整标签大小和间距 */
.game-tag {
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    margin: 0.1rem;
}

/* 按钮美化 */
.btn-move {
  display: inline-block;
  padding: 8px 16px;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(to right, #3b82f6, #6366f1);
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.btn-move:hover {
  background: linear-gradient(to right, #6366f1, #3b82f6);
  transform: translateY(-2px);
}

.ad-left,
.ad-right {
    position: fixed;
    top: 100px;         /* 离页面顶部100px，不挡住导航 */
    width: 300px;       /* 宽度 */
    height: 600px;      /* 高度 */
    background-color: #ffcc00;  /* 黄色块替代广告 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #333;
    z-index: 999;       /* 确保在内容上方 */
}

.ad-left {
    left: 10px;   /* 靠左边 */
}

.ad-right {
    right: 10px;  /* 靠右边 */
}

/* 移动端隐藏广告位 */
@media (max-width: 1200px) {
    .ad-left,
    .ad-right {
        display: none;
    }
}

/* 顶部横幅区域的广告占位（颜色块代替广告） */
.hero-ad-slot {
  --ad-w: 300px;   /* 常见尺寸：300x250 */
  --ad-h: 200px;
  width: var(--ad-w);
  height: var(--ad-h);
  background: repeating-linear-gradient(
      45deg,
      #ffd54f 0 12px,
      #ffe082 12px 24px
  );               /* 黄色条纹块，先充当广告 */
  border: 1px dashed #b38f00;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #5c3d00;
}

/* 暗黑模式适配 */
.dark-mode .hero-ad-slot {
  background: repeating-linear-gradient(
      45deg,
      #4b4b23 0 12px,
      #5b5b2b 12px 24px
  );
  border-color: #8a7f3d;
  color: #e8e3c0;
}

/* 小屏隐藏（只在 >= 1400px 的 xxl 断点显示左右广告） */
@media (max-width: 1399.98px) {
  .hero-ad-slot { display: none; }
}

/* 侧栏改为上下布局 */
.sidebar {
  position: fixed;
  left: 0; top: 60px; bottom: 0;
  width: 210px;
  height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  overflow: hidden; /* 滚动交给 .sidebar-scroll */
}

/* 中间滚动区 */
.sidebar-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding-bottom: 12px;
}

/* 底部广告占位 */
.sidebar-ad {
  flex: 0 0 auto;
  height: 160px; /* 可调整高度 */
  background: repeating-linear-gradient(45deg, #ffd54f 0 12px, #ffe082 12px 24px);
  border: 1px dashed #b38f00;
  border-radius: 8px;
  font-weight: bold;
  align-items: center;
  justify-content: center;
  display: flex;
  color: #5c3d00;
  margin-bottom: 100px;
}

.dark-mode .sidebar-ad {
  background: repeating-linear-gradient(45deg, #4b4b23 0 12px, #5b5b2b 12px 24px);
  border-color: #8a7f3d;
  color: #e8e3c0;
}

/* 移动端隐藏广告 */
@media (max-width: 767.98px) {
  .sidebar-ad {
    display: none;
  }
}

/* 新的喜欢按钮样式 - 图片上层 */
.card-img-container {
    position: relative;
    display: block;
}

.favorite-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dark-mode .favorite-overlay {
    background: rgba(45, 45, 45, 0.9);
}

.favorite-overlay:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
}

.dark-mode .favorite-overlay:hover {
    background: rgba(60, 60, 60, 1);
}

/* 喜欢状态 */
.favorite-overlay.active {
    background: rgba(220, 53, 69, 0.9);
}

.favorite-overlay.active:hover {
    background: rgba(220, 53, 69, 1);
}

.favorite-overlay.active i {
    color: white;
}

/* 未登录状态 */
.favorite-overlay.disabled {
    background: rgba(108, 117, 125, 0.7);
    cursor: not-allowed;
}

.favorite-overlay.disabled:hover {
    transform: none;
    background: rgba(108, 117, 125, 0.8);
}

.favorite-overlay i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

/* 心形图标动画 */
.favorite-overlay.active i {
    animation: heartBeat 0.6s ease;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .user-status-bar .container {
        padding: 0 10px;
    }
    
    .user-status-bar .col-md-6 {
        text-align: center !important;
        margin-bottom: 5px;
    }
    
    .favorite-overlay {
        width: 32px;
        height: 32px;
        top: 8px;
        right: 8px;
    }
    
    .favorite-overlay i {
        font-size: 1rem;
    }
}

/* 消息提示样式 */
.custom-alert {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
}



/* 游戏卡片美化2025.11.15 */
.game-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* 游戏图片容器 */
.card-img-container {
    position: relative;
    display: block;
    min-height: 120px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.game-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-img {
    transform: scale(1.05);
}

/* 游戏介绍悬停效果 */
.game-info-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.9));
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 12px 12px 0 0;
}

.game-card:hover .game-info-hover {
    opacity: 1;
}

.game-info-content {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.game-card:hover .game-info-content {
    transform: translateY(0);
}

.game-info-content h6 {
    color: #fff;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.game-info-content p {
    color: #e0e0e0;
    font-size: 0.75rem;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 游戏介绍预览 */
.game-info-preview {
    flex: 1;
    display: flex;
    align-items: flex-end;
}

.game-description {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.game-card:hover .game-description {
    color: #333;
}



/* 暗黑模式适配 */
.dark-mode .game-card {
    background: linear-gradient(145deg, #2d2d2d, #252525);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dark-mode .game-card:hover {
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.dark-mode .game-title {
    color: #e0e0e0;
}

.dark-mode .game-card:hover .game-title {
    color: #a777e3;
}

.dark-mode .game-description {
    color: #b0b0b0;
}

.dark-mode .game-card:hover .game-description {
    color: #e0e0e0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .game-info-content p {
        -webkit-line-clamp: 3;
        font-size: 0.7rem;
    }
    
    .game-description {
        -webkit-line-clamp: 2;
        font-size: 0.7rem;
    }
    
    .game-card:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 576px) {
    .game-info-hover {
        display: none; /* 手机端隐藏悬停效果 */
    }
    
    .game-description {
        -webkit-line-clamp: 2;
    }
}

/* 热门分类的特殊显示优化 */

/* 空状态样式 */
.empty-state {
    padding: 3rem 1rem;
    text-align: center;
}

.empty-state i {
    opacity: 0.5;
}

.empty-state h5 {
    color: #666;
    margin-bottom: 1rem;
}

.dark-mode .empty-state h5 {
    color: #b0b0b0;
}


/* 浏览数量徽章 */
.view-count-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 5;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 3px;
    transition: all 0.3s ease;
}

.view-count-badge i {
    font-size: 0.6rem;
    opacity: 0.9;
}

.game-card:hover .view-count-badge {
    background: linear-gradient(135deg, rgba(110, 142, 251, 0.9), rgba(167, 119, 227, 0.8));
    transform: scale(1.05);
}

/* 调整喜欢按钮位置，避免重叠 */
.favorite-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dark-mode .favorite-overlay {
    background: rgba(45, 45, 45, 0.9);
}

.favorite-overlay:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
}

.dark-mode .favorite-overlay:hover {
    background: rgba(60, 60, 60, 1);
}

/* 喜欢状态 */
.favorite-overlay.active {
    background: rgba(220, 53, 69, 0.9);
}

.favorite-overlay.active:hover {
    background: rgba(220, 53, 69, 1);
}

.favorite-overlay.active i {
    color: white;
}

/* 未登录状态 */
.favorite-overlay.disabled {
    background: rgba(108, 117, 125, 0.7);
    cursor: not-allowed;
}

.favorite-overlay.disabled:hover {
    transform: none;
    background: rgba(108, 117, 125, 0.8);
}

.favorite-overlay i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* 暗黑模式适配 */
.dark-mode .view-count-badge {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .game-card:hover .view-count-badge {
    background: linear-gradient(135deg, rgba(110, 142, 251, 0.8), rgba(167, 119, 227, 0.7));
}

/* 响应式调整 */
@media (max-width: 768px) {
    .view-count-badge {
        top: 6px;
        right: 6px;
        padding: 3px 6px;
        font-size: 0.65rem;
    }
    
    .favorite-overlay {
        top: 6px;
        left: 6px;
        width: 28px;
        height: 28px;
    }
    
    .favorite-overlay i {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .view-count-badge {
        top: 4px;
        right: 4px;
        padding: 2px 5px;
        font-size: 0.6rem;
    }
    
    .favorite-overlay {
        top: 4px;
        left: 4px;
        width: 26px;
        height: 26px;
    }
    
    .favorite-overlay i {
        font-size: 0.8rem;
    }
}