* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    font-size: 14px;
}

/* PC端样式 */
@media (min-width: 768px) {
    body {
        max-width: 480px;
        margin: 0 auto;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
    }
    
    .download-bar {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .back-to-top {
        right: calc(50% - 220px);
    }
}

/* 顶部和底部下载栏 */
.download-bar {
    background-color: #333333;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

/* 顶部下载栏 */
header.download-bar {
    top: 0;
}

/* 底部下载栏 */
.footer-download-bar {
    bottom: 0;
    margin-top: 0;
}

/* 为内容添加padding，避免被固定栏遮挡 */
.container {
    padding-top: 60px;
    padding-bottom: 100px;
    overflow: hidden;
    height: calc(100vh - 0px);
    box-sizing: border-box;
}

.download-bar-left {
    display: flex;
    align-items: center;
}

.app-icon {
    width: 48px;
    height: 48px;
    margin-right: 12px;
}

.app-info {
    color: #fff;
}

.app-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
}

.app-subtitle {
    font-size: 12px;
    color: #ccc;
}

.download-btn {
    background-color: #ff6600;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

/* 轮播Banner */
.banner-section {
    position: relative;
    z-index: 10;
}

.banner {
    width: 100%;
    display: block;
}

/* 分类标签栏 */
.tag-bar {
    background-color: #fff;
    padding: 15px;
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 10px;
    white-space: nowrap;
    position: relative;
    z-index: 10;
}

.tag {
    text-align: center;
    padding: 8px 15px;
    font-size: 18px;
    font-weight: bold;
    margin: 0 2.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.tag.active {
    background-image: url('image/tag.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: #fff;
    font-weight: bold;
}

.tag:not(.active) {
    background-color: transparent;
    color: #333;
    border: none;
}

/* 游戏列表区 */
.game-list {
    padding: 0 15px 15px;
    max-height: calc(100% - 220px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 100;
    position: relative;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.game-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.game-icon-container {
    position: relative;
    margin-right: 15px;
}

.game-icon {
    width: 80px;
    height: 80px;
    border-radius: 8px;
}

.corner-discount {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #ff3300;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-bottom-right-radius: 8px;
    font-weight: bold;
}

.game-info {
    flex: 1;
}

.game-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.hot-tag {
    width: 24px;
    height: 24px;
    margin-left: 8px;
}

.game-discount {
    color: #FF0066;
    font-size: 13px;
    margin-bottom: 4px;
}

.game-opentime {
    font-size: 12px;
    color: #666;
}

.game-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.platform-icons {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.platform-icon {
    width: 20px;
    height: 20px;
    margin-left: 5px;
}

.download-game-btn {
    width: 100px;
    height: 36px;
    background-image: url('image/gamedown.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    cursor: pointer;
    background-color: transparent;
    margin-top: 10px;
    margin-left: 10px;
}

/* 底部下载栏 */
.footer-download-bar {
    margin-top: 20px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 120px;
    right: 20px;
    background-color: #ff6600;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 999;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background-color: #ff3300;
}

/* 底部文案 */
.bottom-text {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .download-bar {
        padding: 12px;
    }
    
    .app-icon {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
    
    .app-title {
        font-size: 14px;
    }
    
    .app-subtitle {
        font-size: 11px;
    }
    
    .download-btn {
        padding: 6px 16px;
        font-size: 13px;
    }
    
    .tag-bar {
        padding: 12px;
    }
    
    .tag {
        padding: 6px 0;
        font-size: 13px;
    }
    
    .game-list {
        padding: 0 12px 12px;
    }
    
    .game-item {
        padding: 12px;
    }
    
    .game-icon {
        width: 70px;
        height: 70px;
    }
    
    .game-name {
        font-size: 15px;
    }
    
    .hot-tag {
        width: 20px;
        height: 20px;
    }
    
    .download-game-btn {
        width: 90px;
        height: 32px;
    }
    
    .back-to-top {
        width: 52px;
        height: 52px;
        font-size: 12px;
        bottom: 110px;
        right: 15px;
    }
    
    .bottom-text {
        font-size: 12px;
        padding: 15px;
    }
}