/* 合并后的完整CSS文件 - 游戏软件下载平台 */

/* ===== 1. 全局样式和重置 ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f6f8;
    color: #333;
    margin: 0;
    padding: 0;
    padding-bottom: 70px;
}

[v-cloak] { display: none !important; }

/* 全局加载动画 */
.global-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5f6f8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.global-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f0f0f0;
    border-top: 3px solid #2542d9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    color: #666;
    font-size: 16px;
}

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

/* 基础布局样式 */
.container-wrapper { 
    max-width: 900px; 
    margin: 0 auto; 
    padding: 10px; 
}

.content-area { 
    display: none; 
}

.content-area.active { 
    display: block; 
}

.rj-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 15px;
    margin-bottom: 15px;
}

/* 轮播图专用card */
.rj-card.rj-slider {
    padding: 0 !important;
    background: transparent;
    box-shadow: none;
    margin-bottom: 5px;
}

.section-title {
    font-size: 16px; 
    font-weight: 600; 
    color: #333;
    margin-bottom: 12px; 
    padding-left: 5px; 
    border-left: 3px solid #2542d9;
    display: flex; 
    align-items: center; 
    justify-content: space-between;
}

.section-title .more { 
    font-size: 13px; 
    color: #999; 
    font-weight: normal; 
    cursor: pointer; 
}

.section-title .more:hover { 
    color: #2542d9; 
}

/* 通用组件 */
.rj-no_data {
    text-align: center; 
    padding: 50px 0; 
    color: #999; 
    font-size: 14px;
}

.rj-no_data i { 
    font-size: 50px; 
    margin-bottom: 10px; 
    display: block; 
}

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

.error-container {
    text-align: center; 
    padding: 20px; 
    color: #2542d9;
}

.rj-load_more {
    display: inline-block; 
    padding: 8px 20px;
    background-color: #f0f0f0; 
    color: #666; 
    border-radius: 20px;
    cursor: pointer; 
    transition: all 0.3s ease; 
    font-size: 14px;
}

.rj-load_more:hover {
    background-color: #e0e0e0; 
    color: #333;
}

/* 搜索框样式 */
.rj_search { margin-bottom: 5px; }
.search-container {
    display: flex; 
    align-items: center;
    background: #fff;
    border-radius: 8px;
    padding: 0 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: 50px;
    gap: 8px;
}
.search-input-wrapper { 
    flex: 1; 
    position: relative; 
}
.search-input-wrapper i.layui-icon-search {
    position: absolute; 
    left: 0; 
    top: 50%; 
    transform: translateY(-50%);
    color: #999; 
    font-size: 18px;
}
.search-input-wrapper input {
    width: 85%; 
    border: none; 
    outline: none;
    padding: 10px 10px 10px 35px; 
    font-size: 15px; 
    color: #333;
    height: 30px; 
    line-height: 30px;
}
.search-button {
    background: linear-gradient(135deg, #2542d9, #ee5a52);
    color: #fff; 
    border: none; 
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 15px; 
    font-weight: 500;
    cursor: pointer; 
    transition: all 0.3s ease;
    height: 36px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    white-space: nowrap;
    min-width: 70px;
    flex-shrink: 0;
}
.search-button:hover {
    opacity: 0.9; 
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 66, 217, 0.3);
}

/* 图标样式 */
.discount-icon { color: #2542d9; }
.premium-icon { color: #ffd700; }
.hot-icon { color: #2542d9; }
.exclusive-icon { color: #a29bfe; }

/* ===== 2. 首页样式 ===== */

/* 轮播图样式 */
.rj-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.rj-slider .swiper-container {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 16/9;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 12px;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.swiper-wrapper {
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
}

.rj-slider .swiper-slide {
    position: relative;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden;
    padding: 0 !important;
    cursor: pointer;
}

.rj-slider .swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    transition: none !important;
}

/* 轮播图信息区域 */
.slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.4));
    color: white;
    padding: 10px;
    z-index: 10;
    width: 100%;
    overflow: hidden;
}

.slide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.slide-title {
    font-size: 18px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    color: #ffd700;
    flex: 1;
    margin-right: 5px;
    cursor: pointer;
}

.slide-download-btn {
    background: linear-gradient(135deg, #2542d9, #ee5a52);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.slide-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 66, 217, 0.5);
}

.slide-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.slide-desc {
    font-size: 13px;
    opacity: 0.9;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slide-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.slide-tag {
    background: rgba(255,255,255,0.25);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* 分页器样式 */
.rj-slider .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

.rj-slider .swiper-pagination-bullet-active {
    background: #fff;
    width: 20px;
    border-radius: 4px;
}

/* 最近在玩 - 自动轮播布局 */
.recent-play-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.recent-play-wrapper {
    display: flex;
    width: max-content;
    animation: scrollLeft 30s linear infinite;
    gap: 20px;
}

.recent-play-list {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.recent-play-item {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 70px;
    flex-shrink: 0;
    cursor: pointer;
}

.rj-soft_img {
    position: relative; 
    width: 70px; 
    height: 70px;
    border-radius: 8px; 
    overflow: hidden; 
    margin-bottom: 8px;
}

.rj-soft_img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.game-name {
    font-size: 13px; 
    color: #333; 
    text-align: center;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
    width: 100%; 
    margin-bottom: 4px;
    cursor: pointer;
}

.game-tag {
    font-size: 11px; 
    color: #fff; 
    background-color: #999;
    padding: 1px 6px; 
    border-radius: 10px; 
    text-align: center;
}

/* 游戏标签颜色 */
.game-tag.hot { background: linear-gradient(135deg, #2542d9, #ee5a52); }
.game-tag.shooting { background: linear-gradient(135deg, #ee5a52, #ff7b7b); }
.game-tag.rpg { background: linear-gradient(135deg, #36b9ff, #4ecdc4); }
.game-tag.moba { background: linear-gradient(135deg, #9c27b0, #e91e63); }
.game-tag.sandbox { background: linear-gradient(135deg, #ff9800, #ffc107); color: #333; }
.game-tag.casual { background: linear-gradient(135deg, #4caf50, #8bc34a); }
.game-tag.strategy { background: linear-gradient(135deg, #ff5722, #ff9800); }
.game-tag.adventure { background: linear-gradient(135deg, #3f51b5, #2196f3); }
.game-tag.compete { background: linear-gradient(135deg, #f44336, #ff5722); }

/* 公告区域样式 */
.notice {
    display: flex;
    align-items: center;
    padding: 1px 0;
    max-height: 10px;
}

.notice-box {
    display: flex;
    align-items: center;
    width: 100%;
}

.left-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 20px;
    margin-right: 8px;
    flex-shrink: 0;
}

.notice-content {
    width: 100%;
    padding: 0 5px;
}

.scroll {
    width: 100%;
    line-height: 22px;
    overflow: hidden;
}

.scroll ul {
    margin: 0;
    padding: 0;
}

.scroll ul li {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-text {
    color: #2542d9;
    cursor: pointer;
    padding: 1px 0;
    display: block;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.content-text:hover {
    color: #1a34b3;
}

/* GM平台入口样式 */
.gm-platform-entry {
    margin: 5px 0;
    padding: 15px;
    background: linear-gradient(135deg, #f5f7fa, #2542d9);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.gm-platform-entry:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.gm-platform-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.gm-platform-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    margin-right: 12px;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gm-platform-info {
    display: flex;
    flex-direction: column;
    margin-left: 5px;
}

.gm-platform-name {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.gm-platform-tag {
    font-size: 14px;
    color: #666;
    background-color: rgba(255,255,255,0.7);
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
    width: fit-content;
}

.gm-platform-btn {
    background: linear-gradient(135deg, #2542d9, #ee5a52);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.gm-platform-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* ===== 开服列表样式 - 新版 ===== */

/* 开服列表容器 */
.server-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 固定3列 */
    gap: 2px; /* 左右间隔小一点 */
    margin-top: 3px;
}

.server-item {
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4px 2px; /* 上下间隔小一点，左右间隔小一点 */
    border-radius: 10px;
    background: #fff;
    border: 1px solid;
    border-image: linear-gradient(135deg, #2542d9, #ee5a52) 1;
    box-shadow: 0 2px 8px rgba(37, 66, 217, 0.1);
}

.server-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 66, 217, 0.2);
    background: linear-gradient(135deg, #f8f9ff, #f0f2ff);
}

/* 游戏图标 - 自适应尺寸 */
.server-icon {
    width: 100%;
    max-width: 100px;
    height: auto;
    aspect-ratio: 1/1; /* 保持正方形 */
    border-radius: 8px;
    object-fit: cover;
    object-position: center;
    margin-bottom: 6px; /* 上下间隔小一点 */
}

/* 游戏标题 */
.server-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px; /* 上下间隔小一点 */
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 20px;
    max-width: 100%;
}

/* 游戏标签/描述 */
.server-desc {
    font-size: 11px;
    color: #ffffff;
    line-height: 1.3;
    padding: 4px 8px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2542d9, #ee5a52);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: fit-content;
    max-width: 100%;
    font-weight: 500;
}

/* 电脑端优化 */
@media (min-width: 768px) {
    .server-grid {
        gap: 10px; /* 电脑端间隔稍大一点 */
    }
    
    .server-item {
        padding: 10px 6px; /* 电脑端内边距稍大一点 */
    }
    
    .server-icon {
        max-width: 100px;
    }
    
    .server-title {
        font-size: 20px;
        min-height: 36px;
    }
    
    .server-desc {
        font-size: 12px;
    }
}

/* 移动端优化 */
@media (max-width: 767px) {
    .server-grid {
        gap: 6px; /* 移动端间隔更小 */
    }
    
    .server-item {
        padding: 6px 4px; /* 移动端内边距更小 */
        border-radius: 8px;
    }
    
    .server-icon {
        max-width: 70px;
        margin-bottom: 4px;
    }
    
    .server-title {
        font-size: 12px;
        min-height: 28px;
        margin-bottom: 4px;
    }
    
    .server-desc {
        font-size: 10px;
        padding: 3px 6px;
        border-radius: 10px;
    }
}

/* 超小屏手机优化 */
@media (max-width: 480px) {
    .server-grid {
        gap: 4px;
    }
    
    .server-item {
        padding: 5px 3px;
    }
    
    .server-icon {
        max-width: 50px;
    }
    
    .server-title {
        font-size: 16px;
        min-height: 24px;
    }
    
    .server-desc {
        font-size: 9px;
        padding: 2px 5px;
    }
}

/* 轮播动画 */
@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 10px));
    }
}

/* ===== 3. 分类页面样式 ===== */

/* 顶部父分类切换 */
.rj-parent-tab {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2542d9, #ee5a52);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(37, 66, 217, 0.3);
}

.rj-parent-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
    justify-content: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rj-parent-btn.rj-parent-active {
    background: rgba(255, 255, 255, 0.9);
    color: #2542d9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.rj-parent-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.rj-parent-btn.rj-parent-active:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 游戏列表 - 统一使用列表布局 */
.rj-game_list {
    display: block;
}

.game-card-item {
    margin-bottom: 10px;
}

/* 游戏卡片链接容器 */
.game-card-link {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(37, 66, 217, 0.08), rgba(238, 90, 82, 0.08));
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid rgba(37, 66, 217, 0.1);
}

/* 游戏卡片悬停效果 */
.game-card-link:hover {
    background: linear-gradient(135deg, rgba(37, 66, 217, 0.15), rgba(238, 90, 82, 0.15));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 66, 217, 0.15);
    border-color: rgba(37, 66, 217, 0.2);
}

.game-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.game-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.game-title-section {
    flex: 1;
}

.title-line {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.game-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* 游戏信息行 */
.game-card-info {
    display: flex;
    gap: 5px;
    margin-bottom: 3px;
}

/* 游戏信息项 */
.info-item {
    font-size: 12px;
    background: linear-gradient(135deg, #2542d9, #ee5a52);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
    padding: 2px 0;
}

.game-card-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.game-card-tag {
    font-size: 10px;
    color: white;
    background: linear-gradient(135deg, #2542d9, #ee5a52);
    padding: 2px 8px;
    border-radius: 10px;
}

.game-card-download {
    background: linear-gradient(135deg, #2542d9, #ee5a52);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 8px 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.game-card-download:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* ===== 4. 排行榜页面样式 ===== */

/* 排行榜列表容器 */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 单个排行榜项 */
.ranking-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(37, 66, 217, 0.08), rgba(238, 90, 82, 0.08));
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(37, 66, 217, 0.1);
}

/* 排行榜项悬停效果 */
.ranking-item:hover {
    background: linear-gradient(135deg, rgba(37, 66, 217, 0.15), rgba(238, 90, 82, 0.15));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 66, 217, 0.15);
    border-color: rgba(37, 66, 217, 0.2);
}

/* 排名数字圆圈 */
.ranking-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ddd;
    color: #666;
    font-size: 14px;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

/* 前三名通用样式 */
.ranking-number.top3 {
    color: white;
}

/* 第一名样式 */
.ranking-number.rank1 {
    background: linear-gradient(135deg, #ffd700, #ff9800);
}

/* 第二名样式 */
.ranking-number.rank2 {
    background: linear-gradient(135deg, #c0c0c0, #9e9e9e);
}

/* 第三名样式 */
.ranking-number.rank3 {
    background: linear-gradient(135deg, #cd7f32, #a56a2b);
}

/* 排行榜信息区域 */
.ranking-info {
    flex: 1;
}

/* 排行榜标题 */
.ranking-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

/* 信息项分隔符 */
.info-separator {
    font-size: 12px;
    color: #999;
    margin: 0 5px;
}

/* 信息行容器 */
.ranking-info-line {
    margin-bottom: 3px;
}

/* 信息项文字 */
.ranking-info-item {
    font-size: 12px;
    background: linear-gradient(135deg, #2542d9, #ee5a52);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
    padding: 2px 0;
}

/* 元信息区域（标签等） */
.ranking-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

/* 排行榜标签 */
.ranking-tag {
    font-size: 10px;
    color: white;
    background: linear-gradient(135deg, #2542d9, #ee5a52);
    padding: 2px 8px;
    border-radius: 10px;
}

/* 排行榜图片 */
.ranking-img {
    width: 55px;
    height: 55px;
    border-radius: 8px;
    object-fit: cover;
    margin-left: 10px;
    flex-shrink: 0;
}

/* 第一名卡片背景 */
.ranking-item:has(.ranking-number.rank1) {
    background: linear-gradient(135deg, rgba(37, 66, 217, 0.25), rgba(238, 90, 82, 0.25));
    border: 1px solid rgba(37, 66, 217, 0.4);
    box-shadow: 0 4px 15px rgba(37, 66, 217, 0.2);
}

/* 第一名卡片悬停效果 */
.ranking-item:has(.ranking-number.rank1):hover {
    background: linear-gradient(135deg, rgba(37, 66, 217, 0.35), rgba(238, 90, 82, 0.35));
    box-shadow: 0 6px 20px rgba(37, 66, 217, 0.3);
    border-color: rgba(37, 66, 217, 0.6);
    transform: translateY(-3px);
}

/* 第二名卡片背景 */
.ranking-item:has(.ranking-number.rank2) {
    background: linear-gradient(135deg, rgba(37, 66, 217, 0.18), rgba(238, 90, 82, 0.18));
    border: 1px solid rgba(37, 66, 217, 0.3);
    box-shadow: 0 3px 12px rgba(37, 66, 217, 0.15);
}

/* 第二名卡片悬停效果 */
.ranking-item:has(.ranking-number.rank2):hover {
    background: linear-gradient(135deg, rgba(37, 66, 217, 0.25), rgba(238, 90, 82, 0.25));
    box-shadow: 0 5px 16px rgba(37, 66, 217, 0.22);
    border-color: rgba(37, 66, 217, 0.45);
    transform: translateY(-2px);
}

/* 第三名卡片背景 */
.ranking-item:has(.ranking-number.rank3) {
    background: linear-gradient(135deg, rgba(37, 66, 217, 0.12), rgba(238, 90, 82, 0.12));
    border: 1px solid rgba(37, 66, 217, 0.2);
    box-shadow: 0 2px 8px rgba(37, 66, 217, 0.1);
}

/* 第三名卡片悬停效果 */
.ranking-item:has(.ranking-number.rank3):hover {
    background: linear-gradient(135deg, rgba(37, 66, 217, 0.18), rgba(238, 90, 82, 0.18));
    box-shadow: 0 4px 12px rgba(37, 66, 217, 0.15);
    border-color: rgba(37, 66, 217, 0.3);
    transform: translateY(-2px);
}

/* ===== 5. 客服页面样式 ===== */

/* 客服页面样式 */
.service-card {
    text-align: center; 
    padding: 30px 15px;
}

.service-icon {
    width: 80px; 
    height: 80px; 
    margin: 0 auto 20px;
    border-radius: 50%; 
    background: linear-gradient(135deg, #2542d9, #ee5a52);
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.service-icon i {
    font-size: 40px; 
    color: #fff;
}

.service-title {
    font-size: 18px; 
    color: #333; 
    font-weight: 600; 
    margin-bottom: 10px;
}

.service-desc {
    font-size: 14px; 
    color: #666; 
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-contact {
    display: flex; 
    flex-direction: column; 
    gap: 10px;
    max-width: 300px; 
    margin: 0 auto;
}

.contact-item {
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px;
    padding: 10px; 
    background-color: #f5f5f5; 
    border-radius: 8px;
}

.contact-item i {
    font-size: 18px; 
    color: #2542d9;
}

.contact-item span {
    font-size: 14px; 
    color: #333;
}

/* 客服板块样式 */
.wp {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.g-t3 .tit {
    text-align: center;
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.service-grid-item {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.service-grid-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.service-grid-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.service-grid-title {
    color: #333;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.service-grid-btn {
    background: linear-gradient(135deg, #2542d9, #ee5a52);
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
}

.service-grid-text {
    color: #333;
    font-size: 1rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.end-of-content {
    text-align: center;
    padding: 20px 0;
    color: #999;
    font-size: 14px;
    margin-top: 10px;
    position: relative;
}

.end-of-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20%;
    right: 20%;
    height: 1px;
    background: #eee;
    z-index: 1;
}

.end-of-content span {
    background: white;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

/* ===== 6. 底部导航样式 ===== */

.bottom-nav-container {
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%;
    height: 60px; 
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 999;
}

.bottom-nav-wrapper { 
    width: 100%; 
    max-width: 1200px; 
}

.bottom-nav {
    display: flex; 
    justify-content: space-around; 
    align-items: center;
    height: 100%; 
    padding: 0; 
    margin: 0;
}

.nav-item {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    flex: 1; 
    height: 100%; 
    text-decoration: none;
    color: #999; 
    font-size: 11px;
}

.nav-item.active { 
    color: #2542d9; 
}

.nav-item i.layui-icon { 
    font-size: 22px; 
    margin-bottom: 4px; 
}

/* ===== 7. 搜索弹窗样式 ===== */

.search-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.search-modal-overlay.active {
    display: flex;
}

.search-modal {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
}

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

.search-modal-header {
    position: sticky;
    top: 0;
    background: white;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    z-index: 10;
    border-radius: 16px 16px 0 0;
}

.search-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.search-modal-body {
    padding: 0 20px 20px;
    min-height: 200px;
}

.search-modal-loading {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.search-modal-loading i {
    font-size: 30px;
    margin-bottom: 10px;
    display: block;
}

.search-modal-error {
    text-align: center;
    padding: 40px 20px;
    color: #ff4d4f;
}

.search-modal-error i {
    font-size: 30px;
    margin-bottom: 10px;
    display: block;
}

.search-result-count {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.search-result-count strong {
    color: #007bff;
}

/* 搜索结果列表样式 */
.search-results-list {
    margin-bottom: 20px;
}

/* 推荐游戏样式 */
.search-recommend-title {
    text-align: center;
    padding: 20px 0 15px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    border-top: 1px solid #f0f0f0;
    margin-top: 20px;
}

/* 无结果提示 */
.search-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.search-no-results i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    color: #ccc;
}

.search-no-results p {
    margin: 5px 0;
    font-size: 14px;
}

/* 热门游戏和热门搜索样式 */
.hot-section {
    margin-bottom: 25px;
}

.hot-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.hot-section-title i {
    margin-right: 8px;
    color: #ff4d4f;
}

/* 热门搜索标签样式 */
.hot-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hot-search-tag {
    background: #f0f2f5;
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
}

.hot-search-tag:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* ===== 8. 响应式设计 ===== */

/* 电脑端优化 */
@media (min-width: 768px) {
    /* 轮播图 */
    .rj-slider .swiper-container {
        aspect-ratio: 16/9;
    }
    
    .slide-info {
        padding: 20px;
    }
    
    .slide-title {
        font-size: 22px;
    }
    
    .slide-desc {
        font-size: 14px;
    }
    
    .slide-download-btn {
        padding: 10px 20px;
        font-size: 15px;
    }
    
    /* 最近在玩 */
    .recent-play-wrapper {
        animation-duration: 30s;
    }
    
    /* 分类页面 - 电脑端两列列表 */
    .rj-game_list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .game-card-item {
        margin-bottom: 0;
    }
    
    .game-card-title {
        max-width: 180px;
    }
    
    .rj-parent-btn {
        min-width: 120px;
        flex: 1;
    }
    
    /* 客服页面 */
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 搜索结果列表 - 电脑端两列 */
    .search-results-list .rj-game_list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .search-results-list .game-card-item {
        margin-bottom: 0;
    }
}

/* 移动端优化 */
@media (max-width: 767px) {
    /* 轮播图 */
    .rj-slider .swiper-container {
        aspect-ratio: 16/9;
        border-radius: 8px;
        width: 100vw !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    
    .slide-info {
        padding: 12px 10px 10px;
    }
    
    .slide-header {
        margin-bottom: 6px;
    }
    
    .slide-title {
        font-size: 16px;
    }
    
    .slide-desc {
        font-size: 12px;
        -webkit-line-clamp: 1;
    }
    
    .slide-download-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .slide-tag {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    /* 最近在玩 */
    .recent-play-wrapper {
        animation-duration: 25s;
    }
    
    /* GM平台入口 */
    .gm-platform-entry {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
        gap: 10px;
    }
    
    .gm-platform-left {
        flex-direction: row;
        align-items: center;
        text-align: left;
        width: 100%;
        gap: 10px;
    }
    
    .gm-platform-icon {
        width: 70px;
        height: 70px;
        margin-right: 0;
        margin-bottom: 0;
        border-radius: 16px;
        border: 3px solid white;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        flex-shrink: 0;
    }
    
    .gm-platform-info {
        margin-left: 0;
        align-items: flex-start;
        flex-direction: column;
        flex: 1;
        min-width: 0;
    }
    
    .gm-platform-name {
        font-size: 20px;
        margin-bottom: 2px;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }
    
    .gm-platform-tag {
        font-size: 14px;
        padding: 6px 12px;
        border-radius: 16px;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        line-height: 1.4;
    }
    
    .gm-platform-btn {
        width: 100%;
        padding: 12px 12px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 25px;
        margin-top: 8px;
    }
    
    .gm-platform-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(37, 66, 217, 0.4);
    }
    
    /* 分类页面 - 移动端单列列表 */
    .rj-game_list {
        display: block;
    }
    
    .rj-parent-btn {
        min-width: calc(50% - 5px);
        flex: 0 0 calc(50% - 5px);
    }
    
    .game-card-title {
        max-width: 150px;
    }
    
    /* 排行榜页面 */
    .rj-parent-btn {
        min-width: calc(50% - 5px);
        flex: 0 0 calc(50% - 5px);
    }
    
    .ranking-item {
        padding: 10px;
    }
    
    .ranking-number {
        width: 25px;
        height: 25px;
        font-size: 12px;
        margin-right: 10px;
    }
    
    .ranking-title {
        font-size: 14px;
    }
    
    .ranking-img {
        width: 50px;
        height: 50px;
    }
    
    /* 客服页面 */
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .service-grid-item {
        padding: 15px;
    }
    
    .service-grid-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-grid-title {
        font-size: 1rem;
    }
    
    .service-grid-btn {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
    
    /* 搜索弹窗 */
    .search-modal-overlay {
        padding: 10px;
    }
    
    .search-modal {
        max-height: 90vh;
    }
    
    .search-modal-header {
        padding: 15px;
    }
    
    .search-modal-body {
        padding: 0 15px 15px;
    }
    
    .hot-search-tags {
        gap: 8px;
    }
    
    .hot-search-tag {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* 小屏手机进一步优化 */
@media (max-width: 480px) {
    /* GM平台入口 */
    .gm-platform-entry {
        padding: 12px;
        gap: 10px;
    }
    
    .gm-platform-icon {
        width: 60px;
        height: 60px;
    }
    
    .gm-platform-name {
        font-size: 18px;
        margin-bottom: 3px;
    }
    
    .gm-platform-tag {
        font-size: 13px;
        padding: 5px 10px;
    }
    
    .gm-platform-btn {
        padding: 10px 10px;
        font-size: 15px;
    }

    /* 分类页面 */
    .game-card-title {
        max-width: 120px;
    }

    .game-card-download {
        padding: 6px 12px;
        font-size: 11px;
    }
}