/* ===============================
   排行榜页面样式 - 绿色主题
   主色调: #03b752
   =============================== */

/* 排行榜页面容器 */
.rankingPage {
    background: #f8f9fa;
    min-height: 600px;
    padding: 20px 0 40px;
}

/* 排行榜头部 */
.rankingHeader {
    background: linear-gradient(135deg, #03b752 0%, #029945 100%);
    border-radius: 12px;
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
    height: auto;
}

.rankingHeader::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"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="70" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="80" r="2.5" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(100px); }
}

.headerContent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.rankingTitle h1 {
    color: white;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ranking-icon::before {
    content: '🏆';
    font-size: 28px;
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin: 0;
}

.rankingStats {
    display: flex;
    gap: 40px;
}

.statItem {
    text-align: center;
    color: white;
}

.statNumber {
    display: block;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.statLabel {
    font-size: 14px;
    opacity: 0.9;
}

/* 排行榜筛选 */
.rankingFilter {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.filterSection {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.filterSection:last-child {
    margin-bottom: 0;
}

.filterLabel {
    font-weight: 600;
    color: #2c3e50;
    margin-right: 20px;
    min-width: 80px;
}

.filterTabs {
    display: flex;
    gap: 15px;
}

.filterTab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.filterTab:hover {
    background: #e9ecef;
    color: #03b752;
    transform: translateY(-1px);
}

.filterTab.active {
    background: #03b752;
    color: white;
    border-color: #03b752;
}

.filterCategories {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.categoryFilter {
    padding: 8px 16px;
    background: #f1f3f5;
    color: #495057;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.categoryFilter:hover {
    background: #03b752;
    color: white;
}

.categoryFilter.active {
    background: #03b752;
    color: white;
}

/* 排行榜内容区域 */
.rankingContentArea {
    display: flex;
    gap: 30px;
}

.rankingContentLeft {
    flex: 1;
}

.rankingSidebar {
    width: 300px;
}

/* 排行榜容器 */
.rankingContainer {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* 排行榜列表 */
.rankingList {
    padding: 0;
    border-bottom: 1px solid #ccc;
    margin-bottom: 0;
}

.rankingItem {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    position: relative;
    background: white;
}

.rankingItem:last-child {
    border-bottom: none;
}

.rankingItem:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 183, 82, 0.1);
}

/* 排行号 */
.rankNumber {
    width: 60px;
    text-align: center;
    margin-right: 20px;
}

.rankNumber span {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 16px;
}

.rank-top {
    background: linear-gradient(135deg, #03b752, #029945);
    color: white;
    box-shadow: 0 2px 8px rgba(3, 183, 82, 0.3);
}

.rank-normal {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #eee;
}

/* 游戏信息 */
.gameInfo {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

.gameLink {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.gameImage {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.gameImage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rankingItem:hover .gameImage img {
    transform: scale(1.05);
}

.gameCategory {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
}

.topBadge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: linear-gradient(135deg, #ff6b35, #ff8e53);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

/* 游戏详情 */
.gameDetails {
    flex: 1;
}

.gameTitle {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.rankingItem:hover .gameTitle {
    color: #03b752;
}

.gameDesc {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: auto;
}

.gameMeta {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
}

.gameMeta span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #666;
}

.gameTags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.gameTag {
    background: #f1f3f5;
    color: #495057;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 14px;
}

/* 游戏操作 */
.gameActions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 120px;
}

.gameStats {
    display: flex;
    gap: 20px;
}

.statGroup {
    text-align: center;
}

.statValue {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #03b752;
    margin-bottom: 2px;
}

.statLabel {
    font-size: 12px;
    color: #666;
}

.downloadBtn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #03b752, #029945);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.downloadBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 183, 82, 0.3);
    background: linear-gradient(135deg, #029945, #03b752);
}

.download-btn-icon::before {
    content: '⬇';
}

/* 侧边栏 */
.sidebarBox {
    background: white;
    border-radius: 12px;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.boxTitle {
    background: linear-gradient(135deg, #03b752, #029945);
    padding: 15px 20px;
    margin: 0;
}

.boxTitle h4 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 今日热门 */
.hotGamesList {
    padding: 20px;
}

.hotGameItem {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f5;
}

.hotGameItem:last-child {
    border-bottom: none;
}

.hotRank {
    width: 24px;
    height: 24px;
    background: #03b752;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    margin-right: 12px;
    flex-shrink: 0;
}

.hotGameItem a {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.hotGameImg {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.hotGameImg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hotGameInfo h5 {
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.hotGameMeta {
    font-size: 12px;
    color: #666;
}

/* 最新游戏 */
.newGamesList {
    padding: 20px;
}

.newGameItem {
    margin-bottom: 15px;
}

.newGameItem:last-child {
    margin-bottom: 0;
}

.newGameItem a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.newGameItem a:hover {
    background: #f8f9fa;
}

.newGameImg {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.newGameImg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.newBadge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ff6b35;
    color: white;
    padding: 1px 4px;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 600;
}

.newGameInfo h5 {
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.newGameDate {
    font-size: 12px;
    color: #666;
}

/* 游戏分类 */
.categoryList {
    padding: 20px;
}

.categoryItem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f5;
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.categoryItem:last-child {
    border-bottom: none;
}

.categoryItem:hover {
    color: #03b752;
}

.categoryName {
    font-size: 14px;
    font-weight: 500;
}

.categoryCount {
    font-size: 12px;
    color: #666;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 12px;
}

/* 侧边栏广告 */
.sidebarAd {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.sidebarAd img {
    width: 100%;
    height: auto;
    display: block;
}

/* 分页样式 */
.pageCode {
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid #eee;
}

/* 图标样式 */
.hot-icon::before { content: '🔥'; }
.download-icon::before { content: '⬇'; }
.new-icon::before { content: '🆕'; }
.score-icon::before { content: '⭐'; }
.size-icon::before { content: '📁'; }
.date-icon::before { content: '📅'; }
.view-icon::before { content: '👁'; }
.category-icon::before { content: '📂'; }

/* 响应式设计 */
@media (max-width: 1200px) {
    .rankingContentArea {
        flex-direction: column;
    }
    
    .rankingSidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .headerContent {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 20px;
    }
    
    .rankingStats {
        justify-content: center;
    }
    
    .filterSection {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .filterLabel {
        margin-right: 0;
        margin-bottom: 5px;
        min-width: auto;
    }
    
    .filterTabs {
        flex-wrap: wrap;
    }
    
    .rankingItem {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
    }
    
    .gameInfo {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .gameLink {
        width: 100%;
    }
    
    .gameActions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .rankNumber {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .rankingTitle h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .rankingPage {
        padding: 15px 0 30px;
    }
    
    .rankingFilter {
        padding: 15px;
    }
    
    .rankingItem {
        padding: 12px;
    }
    
    .gameImage {
        width: 60px;
        height: 60px;
    }
    
    .gameTitle {
        font-size: 16px;
    }
    
    .gameDesc {
        font-size: 13px;
    }
} 