/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    width: 100%;
    overflow-x: hidden;
}


/* 头部样式 */
.header {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    height: 44px;
    display: flex;
    align-items: center;
}

.header .container {
    width: 100%;
    margin: 0;
    padding: 0 10px;
    background: transparent;
    border-radius: 0;
    margin-top: 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    flex-wrap: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    width: 110px;
    height: 35.2px;
}

.search-box {
    flex: 1;
    height: 30px;
    position: relative !important;
    border-radius: 5px;
    display: flex;
    background: #fff;
    max-width: 200px;
}

.search-input {
    flex: 1;
    height: 30px;
    padding: 0 12px;
    border: none;
    border-radius: 15px 0 0 15px;
    font-size: 14px;
    outline: none;
    min-width: 0;
}

.search-btn {
    width: 40px;
    height: 30px;
    background: white;
    border: none;
    padding: 0;
    border-radius: 0 15px 15px 0;
    cursor: pointer;
    color: #2ecc71;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-btn:hover {
    background: #f8f9fa;
}

/* 搜索建议样式 */
.search-suggestions {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 0 0 10px 10px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    z-index: 1000 !important;
    display: none !important;
    max-height: 300px !important;
    overflow-y: auto !important;
}

.search-suggestions.show {
    display: block !important;
}

.suggestion-item {
    display: block;
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

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

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.suggestion-item:active {
    background-color: #e9ecef;
}

.menu-icon {
    font-size: 24px;
    cursor: pointer;
    flex-shrink: 0;
}

/* 主导航样式 */
.main-nav {
    background: white;
    padding: 0;
    border-radius: 5px 5px 0 0;
}

.main-nav .container {
    width: 95%;
    margin: 0 auto;
    border-radius: 0;
    margin-top: 0;
    background: transparent;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li {
    flex: 1;
}

.nav-list a {
    display: block;
    padding: 12px 5px;
    text-decoration: none;
    color: #666;
    text-align: center;
    font-size: 14px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.nav-list a.active {
    color: #2ecc71;
    border-bottom-color: #2ecc71;
}

/* 分类菜单样式 */
.category-menu {
    position: fixed !important;
    top: 44px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: white !important;
    z-index: 9999 !important;
    display: none !important;
    padding: 20px !important;
    overflow-y: auto !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
}

.category-menu.show {
    display: block !important;
}

.main-categories {
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 10px;
    border-radius: 10px;
    transition: background-color 0.2s ease;
}

.category-item:active {
    background-color: #f0f0f0;
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 24px;
    color: white;
}

.home-icon {
    background: #3498db;
}

.game-icon {
    background: #2ecc71;
}

.single-icon {
    background: #2ecc71;
}

.app-icon {
    background: #f39c12;
}

.category-item span {
    font-size: 14px;
    font-weight: 500;
}

.sub-category-section {
    background: white;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sub-category-title {
    background: #2ecc71;
    color: white;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

.sub-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #f0f0f0;
    padding: 1px;
}

.sub-category-item {
    background: white;
    padding: 15px 10px;
    text-decoration: none;
    color: #333;
    text-align: center;
    transition: background-color 0.2s ease;
}

.sub-category-item:active {
    background-color: #f8f9fa;
}

.sub-category-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.sub-category-count {
    font-size: 12px;
    color: #666;
}





/* 主要内容 */
.main-content {
}

.main-content .container {
    width: 95%;
    padding: 10px;
    margin: 10px auto;
    background: #fff;
    border-radius: 5px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
    padding-left: 10px;
    position: relative;
}

.section-title::before {
    content: "";
    width: 4px;
    height: 20px;
    background: #2ecc71;
    border-radius: 2px;
    transform: rotate(15deg);
}

.section-title::after {
    content: "";
    width: 4px;
    height: 20px;
    background: #2ecc71;
    border-radius: 2px;
    transform: rotate(15deg);
}

/* 游戏网格 - 4列布局 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

/* 最新网游模块的游戏网格 - 左右滑动 */
.latest-games-section .games-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
}

.latest-games-section .games-grid::-webkit-scrollbar {
    display: none;
}

.game-item {
    background: transparent;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
}

/* 最新网游模块的游戏项 - 滑动布局调整 */
.latest-games-section .game-item {
    min-width: 80px;
    flex-shrink: 0;
}

.game-item:active {
    transform: scale(0.98);
}

.game-img {
    width: 70px;
    height: 70px;
    margin: 0 auto 8px;
    border-radius: 12px;
    display: block;
    object-fit: cover;
}

.game-name {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.2;
}

.game-btn {
    display: inline-block;
    padding: 6px 16px;
    background: #f0f0f0;
    color: #2ecc71;
    text-decoration: none;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.game-btn:active {
    background: #e0e0e0;
}

/* 最多人玩模块 */
.most-played-section {
    width: 95%;
    margin: 10px auto 0;
    border-radius: 5px;
    background: #fff;
    padding: 10px;
}

.most-played-title {
    margin-bottom: 15px;
}

.most-played-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.game-title-outside {
    position: absolute;
    left: 105px;
    top: -30px;
    font-size: 14px;
    font-weight: normal;
    color: #333;
    white-space: nowrap;
    max-width: 200px;
}

.most-played-grid::-webkit-scrollbar {
    display: none;
}

.most-played-item {
    background: linear-gradient(to right, #579cf6, #1cb1ff);
    border-radius: 15px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 250px;
    flex-shrink: 0;
    position: relative;
    margin-top: 50px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.most-played-item:active {
    transform: scale(0.98);
}

.game-avatar {
    position: absolute;
    left: 15px;
    top: -40px;
    flex-shrink: 0;
}

.avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.game-info {
    flex: 1;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.game-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    color: white;
    line-height: 1.2;
}

.game-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    margin-left:50px;
}

.tag {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.tag-green {
    background: #2ecc71;
    color: white;
}

.tag-orange {
    background: #f39c12;
    color: white;
}

.most-played-btn {
    display: inline-block;
    padding: 8px 30px;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
    margin-top: 10px;
}

.most-played-btn:active {
    background: #f0f0f0;
}

/* 最新应用模块 */
.latest-apps-section {
    width: 95%;
    margin: 10px auto 0;
    border-radius: 5px;
    background: #fff;
    padding: 10px;
}

/* 最新网游模块 */
.latest-games-section {
    width: 95%;
    margin: 10px auto 0;
    border-radius: 5px;
    background: #fff;
    padding: 10px;
}

/* 游戏列表样式 */
.games-list {
    margin-top: 20px;
}

.game-list-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 0;
    background: transparent;
    border-radius: 0;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
    border-bottom: 1px dashed #ddd;
}

.game-list-item:active {
    background-color: #f8f9fa;
}

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

.game-list-icon {
    flex-shrink: 0;
    margin-right: 15px;
}

.game-list-img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

.game-list-info {
    flex: 1;
}

.game-list-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.2;
}

.game-list-category {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.game-list-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.3;
}

.game-list-btn {
    flex-shrink: 0;
    padding: 6px 16px;
    background: #f0f0f0;
    color: #2ecc71;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s ease;
}

/* 轮播图模块 */
.carousel-section {
    width: 95%;
    margin: 10px auto 0;
    border-radius: 5px;
    background: #fff;
    padding: 10px;
}

/* 轮播图样式 */
.game-carousel {
    margin-bottom: 0;
}

/* 人气游戏模块 */
.popular-games-section {
    width: 95%;
    margin: 10px auto 0;
    border-radius: 5px;
    background: #fff;
    padding: 10px;
}

.carousel-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
}

.carousel-slides {
    display: flex;
    width: 300%;
    transition: transform 0.3s ease-in-out;
}

.carousel-slide {
    width: 33.333%;
    flex-shrink: 0;
}

.carousel-slide.active {
    /* 不需要特殊样式，通过transform控制显示 */
}

.carousel-bg {
    width: 100%;
    height: 160px;
}

.carousel-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.carousel-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.carousel-link:active {
    transform: scale(0.98);
}

.carousel-content {
    background: #F0F4FF;
    padding:8px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 0 0 15px 15px;
}

.game-avatar-carousel {
    flex-shrink: 0;
}

.avatar-carousel-img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.game-info-carousel {
    flex: 1;
    color: #333;
}

.game-title-carousel {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    line-height: 1.2;
}

.game-desc-carousel {
    font-size: 12px;
    color: #666;
    margin-bottom: 0;
    line-height: 1.3;
}

.carousel-btn {
    display: inline-block;
    padding: 5px 20px;
    background: #2ecc71;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s ease;
    flex-shrink: 0;
    align-self: center;
}

.carousel-btn:active {
    background: #27ae60;
}

/* 指示器样式 */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top:15px;
}

.indicator {
    width: 20px;
    height: 8px;
    border-radius: 10px;
    background: #F0F4FF;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #66CBCB;
    width: 30px;
}

.indicator:hover {
    background: #E5EBEC;
}

/* 游戏合集模块 */
.game-collection-section {
    width: 95%;
    margin: 10px auto 0;
    border-radius: 5px;
    background: #fff;
    padding: 10px;
}

.collection-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
}

.collection-grid::-webkit-scrollbar {
    display: none;
}

.collection-card {
    min-width: 252px;
    height: 126px;
    flex-shrink: 0;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.collection-card:active {
    transform: scale(0.98);
}

.collection-bg {
    width: 100%;
    height: 100%;
    position: relative;
}

.collection-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
}

.collection-subtitle {
    color: white;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 15px;
    text-align: center;
}

/* 多分类模块 */
.multi-category-section {
    width: 95%;
    margin: 10px auto 0;
    border-radius: 5px;
    background: #fff;
    padding: 10px;
}

.categories-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
}

.categories-slider::-webkit-scrollbar {
    display: none;
}

.category-column {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    flex-shrink: 0;
}

.category-games-vertical {
    /* 使用已有的游戏列表样式 */
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 0 5px;
    width: 100%;
    box-sizing: border-box;
}

.category-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-title-center {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    flex: 1;
    text-align: center;
}

.category-title-right {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.more-link {
    color: #2ecc71;
    font-size: 14px;
    font-weight: 500;
}

.category-games-list {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
}

.category-games-list::-webkit-scrollbar {
    display: none;
}

.category-game-item {
    min-width: 300px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
    position: relative;
}

.category-game-item:active {
    transform: scale(0.98);
}

.category-game-icon {
    flex-shrink: 0;
    margin-right: 12px;
}

.category-game-img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
}

.category-game-info {
    flex: 1;
}

.category-game-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 3px;
    line-height: 1.2;
}

.category-game-size {
    font-size: 11px;
    color: #666;
    margin-bottom: 3px;
}

.category-game-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}

.category-game-btn {
    flex-shrink: 0;
    padding: 6px 16px;
    background: #f0f0f0;
    color: #2ecc71;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 10px;
}

.category-game-preview {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
}

.preview-img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

/* 休闲益智分类特殊布局 */
.horizontal-layout .horizontal-item {
    min-width: 350px;
}

.category-game-left {
    flex-shrink: 0;
    margin-right: 12px;
    text-align: center;
}

.category-game-desc-left {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.3;
}

/* 底部导航栏 */
.bottom-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e0e0e0;
    display: flex;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin: 20px auto 0;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    gap: 8px;
}

.bottom-nav-separator {
    color: #ddd;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

/* .bottom-nav-item.active {
    color: #2ecc71;
}

.bottom-nav-item:hover:not(.active) {
    color: #2ecc71;
} */

.bottom-nav-item i {
    font-size: 18px;
    margin-bottom: 0;
}

.bottom-nav-item span {
    font-size: 14px;
    font-weight: 500;
}

/* 悬浮返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #2ecc71;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
}

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

/* .back-to-top:hover {
    background: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 204, 113, 0.4);
} */

.back-to-top i {
    font-size: 18px;
}




/* 装机必备 */
.essential-apps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #e0e0e0;
}

.essential-app-item {
    background: #fff;
    padding: 8px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    min-height: 80px;
}

.essential-app-icon {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    border-radius: 12px;
    flex-shrink: 0;
}

.essential-app-img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.essential-app-info {
    flex: 1;
}

.essential-app-title {
    font-size: 14px;
    height:35px;
    margin-bottom: 6px;
}

.essential-app-category {
    font-size: 14px;
    color: #999;
}/*
 榜单页面样式 */
.ranking-hero {
    position: relative;
    height: 200px;
    overflow: hidden;
    margin-bottom: 0;
}

.ranking-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ranking-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-content {
    position: absolute;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    color: white;
    z-index: 2;
}

.ranking-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.ranking-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.ranking-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #2ecc71;
    margin-top: 0;
}

.ranking-tab-item {
    position: relative;
    height: 120px;
    background: #2ecc71;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ranking-tab-item.active {
    background: #27ae60;
}

.tab-overlay {
    background: rgba(0,0,0,0.3);
    padding: 20px 40px;
    border-radius: 8px;
    text-align: center;
}

.tab-title {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.ranking-icon {
    position: absolute;
    top: 50%;
    right: 50px;
    transform: translateY(-50%);
    font-size: 60px;
    color: #FFD700;
}
/*
 榜单页面 */
.ranking-hero {
    position: relative;
    height: 460px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    overflow: hidden;
}

.ranking-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ranking-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-content {
    position: absolute;
    top: 120px;
    left: 50px;
    color: white;
    z-index: 2;
}

.ranking-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.ranking-subtitle {
    font-size: 24px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.ranking-tabs {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
}

.ranking-tab-item {
    height: 140px;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.tab-overlay {
    text-align: center;
}

.tab-title {
    font-size: 32px;
    font-weight: bold;
    color: white;
}/
* 榜单页面 */
.brand_con {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.brand_banber {
    width: 100%;
    height: 60.5px;
    background-image: url('../images/rank_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
}

.rank_nav {
    padding: 10px;
    background: #0B9954;
}

.tpEent_ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tpEent_ul li {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tpEent_ul li span {
    font-size: 14px;
    color: white;
    cursor: pointer;
}

/* 游戏网格样式 - 横向滑动 */
.games-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 0 0 10px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.games-grid::-webkit-scrollbar {
    height: 4px;
}

.games-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.games-grid::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.games-grid::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.game-item {
    flex: 0 0 auto;
    width: 100px;
    text-decoration: none;
    color: #333;
    text-align: center;
    transition: transform 0.2s ease;
}

.game-item:active {
    transform: scale(0.95);
}

.game-img {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    object-fit: cover;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.game-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-btn {
    padding: 8px 20px;
    background: #f0f0f0;
    color: #2ecc71;
    border-radius: 18px;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s ease;
    display: inline-block;
    text-align: center;
    min-width: 50px;
}

.game-item:active .game-btn {
    background: #e8e8e8;
    transform: scale(0.95);
}

/* 手机新闻app排行榜样式 */
.news-apps-ranking-section {
    width: 95%;
    margin: 10px auto 0;
    border-radius: 5px;
    background: #fff;
    padding: 10px;
}

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

.news-ranking-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    font-size: 16px;
    margin-bottom: 0;
    font-weight: bold;
    color: #333;
    padding-left: 10px;
    position: relative;
}

.news-ranking-title span {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.more-link {
    font-size: 14px;
    color: #2ecc71;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.news-apps-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 0 0 10px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.news-apps-grid::-webkit-scrollbar {
    display: none;
}

.news-app-item {
    flex: 0 0 auto;
    width: 100px;
    text-decoration: none;
    color: #333;
    text-align: center;
    transition: transform 0.2s ease;
}

.news-app-item:active {
    transform: scale(0.95);
}

.app-image-container {
    position: relative;
    display: inline-block;
    margin-bottom: 8px;
}

.ranking-number {
    position: absolute;
    top: 0px;
    left:0px;
    width: 28px;
    height: 18px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border-radius: 5px 0 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.news-app-item:nth-child(1) .ranking-number {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.news-app-item:nth-child(2) .ranking-number {
    background: linear-gradient(135deg, #C0C0C0, #A9A9A9);
}

.news-app-item:nth-child(3) .ranking-number {
    background: linear-gradient(135deg, #CD7F32, #B8860B);
}

.news-app-img {
    width: 100px;
    height: 100px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: block;
}

.news-app-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-app-btn {
    padding: 8px;
    background: #f0f0f0;
    color: #2ecc71;
    border-radius: 8px;
    font-size: 12px;
    transition: all 0.2s ease;
    display: inline-block;
    text-align: center;
    min-width: 50px;
}

.news-app-item:active .news-app-btn {
    background: #e8e8e8;
    transform: scale(0.95);
}
/*
 十大好用的减肥食谱app模块样式 */
.diet-apps-ranking-section {
    width: 95%;
    margin: 10px auto 0;
    border-radius: 5px;
    background: #fff;
    padding: 10px;
}

.diet-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.diet-section-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    font-size: 16px;
    margin-bottom: 0;
    font-weight: bold;
    color: #333;
    padding-left: 10px;
    position: relative;
}

.diet-section-title::before {
    content: "";
    width: 4px;
    height: 20px;
    background: #2ecc71;
    border-radius: 2px;
    transform: rotate(15deg);
}

.diet-section-title::after {
    content: "";
    width: 4px;
    height: 20px;
    background: #2ecc71;
    border-radius: 2px;
    transform: rotate(15deg);
}

.diet-section-title span {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.diet-more-link {
    font-size: 14px;
    color: #2ecc71;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.diet-apps-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.diet-app-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
    border-bottom: 1px dashed #ddd;
    position: relative;
}

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

.diet-app-item:active {
    background-color: #f8f9fa;
}

.diet-icon-container {
    position: relative;
    display: inline-block;
    margin-right: 15px;
    flex-shrink: 0;
}

.diet-rank-badge {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 28px;
    height: 18px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border-radius: 5px 0 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.diet-app-item:nth-child(1) .diet-rank-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.diet-app-item:nth-child(2) .diet-rank-badge {
    background: linear-gradient(135deg, #C0C0C0, #A9A9A9);
}

.diet-app-item:nth-child(3) .diet-rank-badge {
    background: linear-gradient(135deg, #CD7F32, #B8860B);
}

.diet-app-item:nth-child(n+4) .diet-rank-badge {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.diet-app-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
}

.diet-app-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.diet-app-name {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    line-height: 1.2;
}

.diet-app-category {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}

.diet-app-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
    margin-top: 2px;
}

.diet-app-btn {
        padding: 8px 20px;
    background: #f0f0f0;
    color: #2ecc71;
    border-radius: 8px;
    font-size: 12px;
    flex-shrink: 0;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.diet-app-item:active .diet-app-btn {
    background: #e8e8e8;
    transform: scale(0.95);
}/* 卡牌游戏
排行榜前十名模块样式 */
.card-games-ranking-section {
    width: 95%;
    margin: 10px auto 0;
    border-radius: 5px;
    background: #fff;
    padding: 10px;
}

.card-games-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.card-games-section-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    font-size: 16px;
    margin-bottom: 0;
    font-weight: bold;
    color: #333;
    padding-left: 10px;
    position: relative;
}

.card-games-section-title::before {
    content: "";
    width: 4px;
    height: 20px;
    background: #2ecc71;
    border-radius: 2px;
    transform: rotate(15deg);
}

.card-games-section-title::after {
    content: "";
    width: 4px;
    height: 20px;
    background: #2ecc71;
    border-radius: 2px;
    transform: rotate(15deg);
}

.card-games-section-title span {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.card-games-more-link {
    font-size: 14px;
    color: #2ecc71;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.card-games-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
}

.card-games-grid::-webkit-scrollbar {
    display: none;
}

.card-game-item {
    background: linear-gradient(to right, #579cf6, #1cb1ff);
    border-radius: 15px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 250px;
    flex-shrink: 0;
    position: relative;
    margin-top: 50px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.card-game-item:active {
    transform: scale(0.98);
}

.card-game-avatar {
    position: absolute;
    left: 15px;
    top: -40px;
    flex-shrink: 0;
}

.card-game-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-game-title-outside {
    position: absolute;
    left: 105px;
    top: -30px;
    font-size: 14px;
    font-weight: normal;
    color: #333;
    white-space: nowrap;
    max-width: 200px;
}

.card-game-info {
    flex: 1;
    color: white;
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    justify-content: center;
    text-align: center;
}

.card-game-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    margin-left: 90px;
}

.card-game-tag {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.card-game-tag-green {
    background: #2ecc71;
    color: white;
}

.card-game-tag-orange {
    background: #f39c12;
    color: white;
}

.card-game-btn {
    display: inline-block;
    padding: 8px 30px;
    background: white;
    margin:0 auto;
    width:100px;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
    margin-top: 10px;
}

.card-game-btn:active {
    background: #f0f0f0;
}/* 二手车交易平台
排行榜前十名模块样式 */
.car-trading-ranking-section {
    width: 95%;
    margin: 10px auto 0;
    border-radius: 5px;
    background: #fff;
    padding: 10px;
}

.car-trading-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.car-trading-section-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    font-size: 16px;
    margin-bottom: 0;
    font-weight: bold;
    color: #333;
    padding-left: 10px;
    position: relative;
}

.car-trading-section-title::before {
    content: "";
    width: 4px;
    height: 20px;
    background: #2ecc71;
    border-radius: 2px;
    transform: rotate(15deg);
}

.car-trading-section-title::after {
    content: "";
    width: 4px;
    height: 20px;
    background: #2ecc71;
    border-radius: 2px;
    transform: rotate(15deg);
}

.car-trading-section-title span {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.car-trading-more-link {
    font-size: 14px;
    color: #2ecc71;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.car-trading-apps-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.car-trading-app-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
    border-bottom: 1px dashed #ddd;
    position: relative;
}

.car-trading-app-item:last-child {
    border-bottom: none;
}

.car-trading-app-item:active {
    background-color: #f8f9fa;
}

.car-trading-icon-container {
    position: relative;
    display: inline-block;
    margin-right: 15px;
    flex-shrink: 0;
}

.car-trading-rank-badge {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 28px;
    height: 18px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border-radius: 5px 0 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.car-trading-app-item:nth-child(1) .car-trading-rank-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.car-trading-app-item:nth-child(2) .car-trading-rank-badge {
    background: linear-gradient(135deg, #C0C0C0, #A9A9A9);
}

.car-trading-app-item:nth-child(3) .car-trading-rank-badge {
    background: linear-gradient(135deg, #CD7F32, #B8860B);
}

.car-trading-app-item:nth-child(n+4) .car-trading-rank-badge {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.car-trading-app-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
}

.car-trading-app-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.car-trading-app-name {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    line-height: 1.2;
}

.car-trading-app-category {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}

.car-trading-app-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
    margin-top: 2px;
}

.car-trading-app-btn {
    padding: 8px 20px;
    background: #f0f0f0;
    color: #2ecc71;
    border-radius: 8px;
    font-size: 12px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.car-trading-app-item:active .car-trading-app-btn {
    background: #e8e8e8;
    transform: scale(0.95);
}

/* ranking.html 专用主导航样式 - 绿色背景白色字体 */
.main-nav.ranking-nav {
    background:linear-gradient(135deg, #2ecc71, #27ae60);
    border-radius:0;
}

.main-nav.ranking-nav .nav-list a {
    color: white;
}

.main-nav.ranking-nav .nav-list a.active {
    color: white;
    border-bottom-color: white;
}/* 应用
详情页面样式 */
.app-detail-container {
    width: 95%;
    margin: 0 auto;
    padding: 10px 0;
}

/* 应用头部信息 */
.app-header-section {
    background: white;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.app-icon-large {
    flex-shrink: 0;
}

.app-icon-img {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.app-basic-info {
    flex: 1;
}

.app-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 0 0 8px 0;
}

.app-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.app-category {
    font-size: 14px;
    color: #2ecc71;
    font-weight: 500;
}

.app-update-time {
    font-size: 12px;
    color: #666;
}

.app-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.app-tag {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.tag-blue {
    background: #e3f2fd;
    color: #1976d2;
}

.tag-gray {
    background: #f5f5f5;
    color: #666;
}

.tag-green {
    background: #e8f5e8;
    color: #2e7d32;
}

/* 下载按钮 */
.download-section {
    margin-bottom: 10px;
    display: block;
    overflow: hidden;
    text-decoration: none;
}

.download-btn {
    width: 100%;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.download-btn:active {
    transform: scale(0.98);
    background: linear-gradient(135deg, #27ae60, #229954);
}

/* 应用信息详情 */
.app-info-section {
    background: white;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 10px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.info-label {
    font-size: 14px;
    color: #666;
}

.info-value {
    font-size: 14px;
    color: #333;
    text-align: right;
}

.info-link {
    color: #2ecc71;
    cursor: pointer;
}

/* 应用详细信息 */
.app-details-section {
    background: white;
    border-radius: 5px;
}

.section-title-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #333;
    padding-left: 10px;
    position: relative;
}

.section-title-detail::before {
    content: "";
    width: 4px;
    height: 20px;
    background: #2ecc71;
    border-radius: 2px;
    transform: rotate(15deg);
}

.section-title-detail::after {
    content: "";
    width: 4px;
    height: 20px;
    background: #2ecc71;
    border-radius: 2px;
    transform: rotate(15deg);
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.detail-label {
    font-size: 14px;
    color: #666;
}

.detail-value {
    font-size: 14px;
    color: #333;
    text-align: right;
    word-break: break-all;
    max-width: 60%;
}

/* Tab导航 */
.tab-navigation {
    background: white;
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: hidden;
}

.tab-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.tab-item {
    padding: 5px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.tab-title {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    margin-bottom: 2px;
    transition: all 0.3s ease;
}

.tab-subtitle {
    font-size: 12px;
    color: #999;
    font-weight: 400;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.tab-item.active .tab-title {
    color: #2ecc71;
    font-weight: bold;
}

.tab-item.active .tab-subtitle {
    color: #2ecc71;
    opacity: 1;
}

.tab-item.active {
    /* border-bottom-color: #2ecc71; */
    /* background: linear-gradient(to bottom, #f8fff8, #ffffff); */
}

.tab-item:hover:not(.active) .tab-title {
    color: #333;
}

.tab-item:hover:not(.active) .tab-subtitle {
    opacity: 1;
}

/* Tab内容 */
.tab-content {
    background: white;
    border-radius: 5px;
    padding: 15px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* 应用截图 */
.app-screenshots {
    margin-bottom: 20px;
}

.screenshots-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.screenshots-grid::-webkit-scrollbar {
    display: none;
}

.screenshots-container img {
    width: 120px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.screenshots-container img:active {
    transform: scale(0.95);
}

/* 热门搜索模块样式 */
.hot-search-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hot-search-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #333;
    padding-left: 10px;
    position: relative;
}

.hot-search-title::before {
    content: "";
    width: 4px;
    height: 20px;
    background: #2ecc71;
    border-radius: 2px;
    transform: rotate(15deg);
}

.hot-search-title::after {
    content: "";
    width: 4px;
    height: 20px;
    background: #2ecc71;
    border-radius: 2px;
    transform: rotate(15deg);
}

.hot-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hot-search-tag {
        display: inline-block;
    padding: 5px 16px;
    text-decoration: none;
    color: #333;
    font-size: 12px;
    /* font-weight: 500; */
    border-radius: 8px;
    text-align: center;
    transition: all 0.2s 
ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.hot-search-tag:active {
    transform: scale(0.95);
}

/* 热门搜索标签颜色 */
.tag-yellow {
    background: #fff3cd;
    color: #856404;
}

.tag-orange {
    background: #ffeaa7;
    color: #d63031;
}

.tag-green {
    background: #d1f2eb;
    color: #00b894;
}

.tag-purple {
    background: #e8daef;
    color: #8e44ad;
}

.tag-blue {
    background: #d6eaf8;
    color: #2980b9;
}

.tag-pink {
    background: #fadbd8;
    color: #e91e63;
}

.tag-light-blue {
    background: #d5f4e6;
    color: #17a2b8;
}

.tag-light-orange {
    background: #ffecd1;
    color: #fd7e14;
}

.tag-light-green {
    background: #d4edda;
    color: #28a745;
}

/* 小编评语 */
.editor-review {
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: bold;
    color: #2ecc71;
    margin-bottom: 8px;
}

.review-subtitle {
    font-size: 14px;
    color: #666;
}

/* 应用介绍 */
.app-description {
    margin-bottom: 20px;
}

.app-description p {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}
.app-description p img{
    max-width: 96%;
    margin: auto;
    display: block;
    overflow: hidden;
}

.app-description h3 {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 20px 0 10px 0;
}

/* app特色 */
.app-features h3 {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.feature-item {
    margin-bottom: 20px;
}

.feature-item h4 {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 5px;
}

/* 相关应用 */
.related-apps {
    padding: 10px 0;
}

.related-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.related-grid::-webkit-scrollbar {
    display: none;
}

.related-app-item {
    min-width: 120px;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
    text-align: center;
}

.related-app-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    margin: 0 auto 8px;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.related-app-name {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.related-app-desc {
    font-size: 11px;
    color: #666;
    line-height: 1.3;
}

/* 资讯 */
.news-section {
    padding: 10px 0;
}

.news-item {
    padding: 15px 0;
    border-bottom: 1px dashed #ddd;
}

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

.news-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.news-summary {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 8px;
}

.news-time {
    font-size: 12px;
    color: #999;
}

/* 评论 */
.comments-section {
    padding: 10px 0;
}

.comment-item {
    padding: 15px 0;
    border-bottom: 1px dashed #ddd;
}

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

.comment-user {
    font-size: 13px;
    font-weight: bold;
    color: #2ecc71;
    margin-bottom: 8px;
}

.comment-content {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 8px;
}

.comment-time {
    font-size: 12px;
    color: #999;
}/* 图片查看器样式 */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.image-viewer.active {
    display: flex;
}

.image-viewer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.image-viewer-content {
    position: relative;
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    overflow: hidden;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.8);
}

.image-viewer-header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    background: rgba(0, 0, 0, 0.5);
}

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

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

.app-name-viewer {
    font-size: 16px;
    font-weight: 500;
    color: white;
    text-align: center;
    flex: 1;
}

.image-counter {
    font-size: 14px;
    color: #ccc;
    font-weight: 500;
}

.image-viewer-body {
    padding: 20px;
    text-align: center;
    position: relative;
    cursor: grab;
    user-select: none;
    overflow: hidden;
}

.image-viewer-body:active {
    cursor: grabbing;
}

.viewer-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    pointer-events: none;
    transform: translateX(0);
}

.screenshot-img {
    width: 120px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}
/* 截图图片添加点击效果 */
.screenshots-container img {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.screenshots-container img:active {
    transform: scale(0.95);
}

/* 更多版本模块样式 */
.more-versions-section {
    width: 95%;
    margin: 10px auto 0;
    border-radius: 5px;
    background: #fff;
    padding: 15px;
}

.versions-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.version-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
    border-bottom: 1px dashed #ddd;
    cursor: pointer;
}

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

.version-item:active {
    background-color: #f8f9fa;
}

.version-icon {
    flex-shrink: 0;
    margin-right: 15px;
}

.version-img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.version-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.version-name {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    line-height: 1.2;
}

.version-details {
    font-size: 12px;
    color: #999;
    line-height: 1.3;
}

.version-separator {
    color: #ccc;
}

.version-number {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}

.version-btn {
    padding: 8px 10px;
    background: #f0f0f0;
    color: #2ecc71;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.version-item:active .version-btn {
    background: #e8e8e8;
    transform: scale(0.95);
}

/* 口碑绝赞的应用模块样式 */
.featured-apps-section {
    width: 95%;
    margin: 10px auto 0;
    border-radius: 5px;
    background: #fff;
    padding: 15px;
}

/* 上方网格应用 */
.featured-apps-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
}

.featured-apps-grid::-webkit-scrollbar {
    display: none;
}

.featured-app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
    cursor: pointer;
    min-width: 80px;
    flex-shrink: 0;
}

.featured-app-item:active {
    transform: scale(0.95);
}

.featured-app-icon {
    margin-bottom: 8px;
}

.featured-app-img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.featured-app-name {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-app-btn {
    padding: 4px 12px;
    background: #f0f0f0;
    color: #2ecc71;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.featured-app-item:active .featured-app-btn {
    background: #e8e8e8;
    transform: scale(0.95);
}

/* 下方列表应用 */
.featured-apps-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.featured-list-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
    border-bottom: 1px dashed #ddd;
    cursor: pointer;
}

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

.featured-list-item:active {
    background-color: #f8f9fa;
}

.featured-list-icon {
    flex-shrink: 0;
    margin-right: 15px;
}

.featured-list-img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.featured-list-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.featured-list-title {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    line-height: 1.2;
}

.featured-list-category {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    line-height: 1.3;
}

.featured-list-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
    margin-top: 2px;
}

.featured-list-btn {
    padding: 8px 20px;
    background: #f0f0f0;
    color: #2ecc71;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.featured-list-item:active .featured-list-btn {
    background: #e8e8e8;
    transform: scale(0.95);
}

/* 相关应用模块样式 */
.similar-apps-section {
    width: 95%;
    margin: 10px auto 0;
    border-radius: 5px;
    background: #fff;
    padding: 15px;
}

.similar-apps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 10px;
}

.similar-app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.similar-app-item:active {
    transform: scale(0.95);
}

.similar-app-icon {
    margin-bottom: 8px;
}

.similar-app-img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.similar-app-name {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.similar-app-btn {
    padding: 4px 12px;
    background: #f0f0f0;
    color: #2ecc71;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.similar-app-item:active .similar-app-btn {
    background: #e8e8e8;
    transform: scale(0.95);
}

/* 同类应用模块样式 */
.related-apps-section {
    width: 95%;
    margin: 10px auto 0;
    border-radius: 5px;
    background: #fff;
    padding: 15px;
}

.related-apps-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.related-app-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
    border-bottom: 1px dashed #ddd;
    cursor: pointer;
}

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

.related-app-item:active {
    background-color: #f8f9fa;
}

.related-app-icon {
    flex-shrink: 0;
    margin-right: 15px;
}

.related-app-img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.related-app-info {
    flex: 1;
    display: flex;
    align-items:flex-start;
    flex-direction: column;
    gap: 4px;
}

.related-app-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    line-height: 1.2;
}

.related-app-size {
    font-size: 14px;
    color: #999;
    line-height: 1.3;
}

.related-app-date {
    font-size: 12px;
    color: #999;
    line-height: 1.3;
}

.related-app-btn {
    padding: 8px 20px;
    background: #f0f0f0;
    color: #2ecc71;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.related-app-item:active .related-app-btn {
    background: #e8e8e8;
    transform: scale(0.95);
}

/* 最新网游独立样式 */
.latest-games-section {
    width: 95%;
    margin: 10px auto 0;
    border-radius: 5px;
    background: #fff;
    padding: 15px;
}

.latest-games-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
    padding-left: 10px;
    position: relative;
}

.latest-games-title::before {
    content: "";
    width: 4px;
    height: 20px;
    background: #2ecc71;
    border-radius: 2px;
    transform: rotate(15deg);
}

.latest-games-title::after {
    content: "";
    width: 4px;
    height: 20px;
    background: #2ecc71;
    border-radius: 2px;
    transform: rotate(15deg);
}

/* 最新网游游戏网格 - 4x2布局 */
.latest-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

/* 最新网游游戏项 */
.latest-game-item {
    background: transparent;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    padding: 10px 5px;
}

.latest-game-item:active {
    transform: scale(0.95);
}

/* 最新网游游戏图标 */
.latest-game-img {
    width: 70px;
    height: 70px;
    margin: 0 auto 12px;
    border-radius: 18px;
    display: block;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 最新网游游戏名称 */
.latest-game-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    min-height: 32px;
}

/* 最新网游查看按钮 */
.latest-game-btn {
   flex-shrink: 0;
    padding: 6px 16px;
    background: #f0f0f0;
    color: #2ecc71;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s 
ease;
}

/* 最新应用独立样式 */
.latest-apps-section {
    width: 95%;
    margin: 10px auto 0;
    border-radius: 5px;
    background: #fff;
    padding: 15px;
}

.latest-apps-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
    padding-left: 10px;
    position: relative;
}

.latest-apps-title::before {
    content: "";
    width: 4px;
    height: 20px;
    background: #2ecc71;
    border-radius: 2px;
    transform: rotate(15deg);
}

.latest-apps-title::after {
    content: "";
    width: 4px;
    height: 20px;
    background: #2ecc71;
    border-radius: 2px;
    transform: rotate(15deg);
}

/* 最新应用网格 - 4x2布局 */
.latest-apps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

/* 最新应用项 */
.latest-app-item {
    background: transparent;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    padding: 10px 5px;
}

.latest-app-item:active {
    transform: scale(0.95);
}

/* 最新应用图标 */
.latest-app-img {
    width: 70px;
    height: 70px;
    margin: 0 auto 12px;
    border-radius: 18px;
    display: block;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 最新应用名称 */
.latest-app-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    min-height: 32px;
}

/* 最新应用查看按钮 */
.latest-app-btn {
    flex-shrink: 0;
    padding: 6px 16px;
    background: #f0f0f0;
    color: #2ecc71;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s ease;
}

/* 人气游戏独立样式 */
.popular-games-section {
    width: 95%;
    margin: 10px auto 0;
    border-radius: 5px;
    background: #fff;
    padding: 15px;
}

.popular-games-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
    padding-left: 10px;
    position: relative;
}

.popular-games-title::before {
    content: "";
    width: 4px;
    height: 20px;
    background: #2ecc71;
    border-radius: 2px;
    transform: rotate(15deg);
}

.popular-games-title::after {
    content: "";
    width: 4px;
    height: 20px;
    background: #2ecc71;
    border-radius: 2px;
    transform: rotate(15deg);
}

/* 人气游戏网格 - 4x2布局 */
.popular-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

/* 人气游戏项 */
.popular-game-item {
    background: transparent;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    padding: 10px 5px;
}

.popular-game-item:active {
    transform: scale(0.95);
}

/* 人气游戏图标 */
.popular-game-img {
    width: 70px;
    height: 70px;
    margin: 0 auto 12px;
    border-radius: 18px;
    display: block;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 人气游戏名称 */
.popular-game-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
    min-height: 32px;
}

/* 人气游戏查看按钮 */
.popular-game-btn {
    flex-shrink: 0;
    padding: 6px 16px;
    background: #f0f0f0;
    color: #2ecc71;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s ease;
}

/* 带排名徽章的featured-app-icon样式 */
.featured-app-icon.app-image-container {
    position: relative;
    display: inline-block;
}

.featured-app-icon.app-image-container .ranking-number {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 20px;
    height: 14px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border-radius: 4px 0 4px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    z-index: 2;
}

.featured-app-item:nth-child(1) .ranking-number {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.featured-app-item:nth-child(2) .ranking-number {
    background: linear-gradient(135deg, #C0C0C0, #A9A9A9);
}

.featured-app-item:nth-child(3) .ranking-number {
    background: linear-gradient(135deg, #CD7F32, #B8860B);
}

/* 搜索结果页面样式 */
.search-results-container {
    width: 100%;
    margin: 0;
    padding: 15px;
    background: #f5f5f5;
    min-height: 100vh;
}

.search-results-header {
    font-size: 14px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
    padding: 0 5px;
}

.search-keyword {
    color: #e74c3c;
    font-weight: bold;
}

.results-count {
    color: #e74c3c;
    font-weight: bold;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-result-item {
    background: transparent;
    padding: 15px 5px;
    border-bottom: 1px dashed #ddd;
}

.result-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.result-icon {
    flex-shrink: 0;
}

.result-img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.result-title {
    font-size: 13px;
    font-weight: bold;
    color: #333;
    line-height: 1.2;
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
}

.result-category {
    color: #666;
}

.result-separator {
    color: #666;
}

.result-size {
    color: #666;
}

.result-date {
    font-size: 12px;
    color: #999;
}

.result-action {
    flex-shrink: 0;
}

.result-btn {
    display: inline-block;
    padding: 5px 20px;
    background: #2ecc71;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.result-btn:active {
    background: #27ae60;
    transform: scale(0.95);
}

.result-screenshots {
    margin-top: 15px;
}

.screenshots-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
}

.screenshots-container::-webkit-scrollbar {
    display: none;
}


/* 悬浮返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #2ecc71;
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
    transition: all 0.3s ease;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    background: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 204, 113, 0.4);
}

.back-to-top:active {
    transform: translateY(0);
}

.back-to-top i {
    font-size: 18px;
}/*
 图片查看器样式 */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.image-viewer.active {
    display: flex;
}

.image-viewer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    cursor: pointer;
}

.image-viewer-content {
    position: relative;
    width: 90%;
    max-width: 400px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.image-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.close-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #e9ecef;
    color: #333;
}

.app-name-viewer {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    flex: 1;
    text-align: center;
    margin: 0 10px;
}

.image-counter {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.image-viewer-body {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    cursor: grab;
}

.image-viewer-body:active {
    cursor: grabbing;
}

.viewer-img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 70vh;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .image-viewer-content {
        width: 95%;
        margin: 20px;
    }
    
    .image-viewer-header {
        padding: 10px 15px;
    }
    
    .app-name-viewer {
        font-size: 14px;
    }
    
    .image-counter {
        font-size: 12px;
    }
}