* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(45deg, #6a11cb, #2575fc);
    --secondary-gradient: linear-gradient(120deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(to right, #fa709a 0%, #fee140 100%);
    --primary-color: #6a11cb;
    --secondary-color: #f5576c;
    --accent-color: #fa709a;
    --background-color: #cbd5f0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--background-color);
    padding-bottom: 60px;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
}

/* 搜索栏样式 */
.search-bar {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #fff;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.search-bar:hover {
    transform: translateY(-2px);
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 8px;
    font-size: 14px;
    background: #f5f5f5;
    border-radius: 10px;
}

/* 侧边栏样式 */
.sidebar {
    width: 100px;
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 60px;
    background: #fff;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.nav-item {
    padding: 15px 10px;
    text-align: center;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
}

.nav-item.active {
    color: #fff;
    background: var(--primary-gradient);
    transform: scale(1.05);
}

/* 主内容区样式 */
.main-content {
    margin-left: 100px;
    padding: 10px;
    height: calc(100vh - 120px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.category-section {
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
}

.game-item {
    text-align: center;
}

.game-item img {
    width: 100%;
    border-radius: 12px;
}

.game-item p {
    font-size: 12px;
    margin-top: 5px;
    color: #333;
}

/* 底部导航样式 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 8px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
}

.nav-link {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: #666;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 0;
    transition: all 0.3s ease;
}

.nav-link.active {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-link.active .nav-icon {
    filter: drop-shadow(0 2px 4px rgba(106, 17, 203, 0.3));
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.nav-link span {
    font-size: 12px;
    line-height: 1.2;
}

/* 轮播图样式 */
.swiper {
    width: 100%;
    height: 150px;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 快捷入口样式 */
.quick-entry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
}

.entry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.entry-item img {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
}

.entry-item span {
    font-size: 12px;
    color: #666;
}

/* 游戏列表样式 */
.game-list {
    background: #fff;
    border-radius: 8px;
    padding: 10px;
}

.game-list .game-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #f5f5f5;
}

.game-list .game-item:last-child {
    border-bottom: none;
}

.game-list .game-item img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin-right: 10px;
}

.game-info {
    flex: 1;
}

.game-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.game-info p {
    font-size: 12px;
    color: #999;
}

/* 游戏卡片样式 */
.game-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.game-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        rgba(255, 107, 107, 0.2),
        rgba(255, 193, 107, 0.2),
        rgba(107, 255, 107, 0.2),
        rgba(107, 107, 255, 0.2)
    );
    transform: rotate(30deg);
    animation: backgroundShift 15s linear infinite;
    z-index: 0;
}

.game-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0.2) 30%, 
        transparent 60%, 
        rgba(255, 255, 255, 0.2) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.game-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.game-card:hover::after {
    opacity: 1;
}

.game-card img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.game-card:hover img {
    transform: scale(1.05);
}

.game-card p {
    position: relative;
    z-index: 2;
    font-size: 14px;
    color: #333;
    margin: 8px 0 0;
    font-weight: 500;
    background: linear-gradient(45deg, #333, #666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes backgroundShift {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 按钮样式 */
.download, .play-btn {
    padding: 8px 20px;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(106, 17, 203, 0.3);
}

.download:hover, .play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 17, 203, 0.4);
}

/* 排行榜页面样式 */
.rank-tabs {
    display: flex;
    background: #fff;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
    color: #666;
}

.tab-item.active {
    color: #4080ff;
    position: relative;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #4080ff;
}

.rank-list {
    background: #fff;
    border-radius: 8px;
    padding: 10px;
}

.rank-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.rank-num {
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-weight: bold;
    margin-right: 10px;
}

.rank-num.top-1 {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rank-num.top-2 {
    background: linear-gradient(45deg, #C0C0C0, #A9A9A9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rank-num.top-3 {
    background: linear-gradient(45deg, #CD7F32, #8B4513);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trend {
    font-size: 12px;
    margin-top: 5px;
}

.trend.up {
    color: #ff6b6b;
}

.trend.down {
    color: #4cd964;
}

/* 搜索页面样式 */
.search-header {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #fff;
}

.search-input {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 8px 15px;
    margin-right: 10px;
}

.search-input input {
    flex: 1;
    border: none;
    background: none;
    margin: 0 10px;
    font-size: 14px;
}

.cancel-btn {
    border: none;
    background: none;
    color: #666;
    font-size: 14px;
}

.hot-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
}

.keyword {
    padding: 5px 12px;
    background: #f5f5f5;
    border-radius: 15px;
    font-size: 12px;
    color: #666;
}

.history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.history-item {
    display: flex;
    align-items: center;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    width: auto;
}

.history-item span {
    flex: 1;
    margin: 0 10px;
    font-size: 14px;
}

.clear-btn {
    border: none;
    background: none;
    color: #999;
    font-size: 12px;
}

/* 详情页样式 */
.detail-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #fff;
    z-index: 100;
    border-bottom: 1px solid #eee;
}

.back-btn, .share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #333;
    text-decoration: none;
}

.game-title {
    flex: 1;
    text-align: center;
    font-size: 18px;
    margin: 0;
}

.game-detail {
    margin-top: 60px;
    padding: 15px;
    background: #fff;
}

.game-basic {
    display: flex;
    margin-bottom: 15px;
}

.game-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    margin-right: 15px;
}

.game-meta {
    flex: 1;
}

.game-tags {
    margin: 8px 0;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: 15px;
    font-size: 12px;
    margin-right: 8px;
    box-shadow: 0 2px 8px rgba(250, 112, 154, 0.3);
}

.game-rating {
    display: flex;
    align-items: center;
}

.stars {
    color: #ffc107;
    margin-right: 8px;
}

.score {
    color: #ff6b6b;
    font-weight: bold;
}

.screenshots {
    padding: 15px;
    background: #fff;
    margin-top: 10px;
}

.screenshot-list {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
}

.screenshot-list img {
    height: 180px;
    border-radius: 8px;
    flex-shrink: 0;
}

.game-intro {
    margin-top: 10px;
    padding: 15px;
    background: #fff;
}

.intro-text {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 10px;
}

.expand-btn {
    width: 100%;
    border: none;
    background: none;
    color: #4080ff;
    font-size: 14px;
    padding: 10px 0;
}

.info-list {
    padding: 0 15px;
    background: #fff;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.label {
    color: #999;
    font-size: 14px;
}

.value {
    color: #333;
    font-size: 14px;
}

.review-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.review-content {
    flex: 1;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    color: #999;
    font-size: 12px;
}

.bottom-download {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #fff;
    border-top: 1px solid #eee;
}

.game-mini-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.game-mini-info img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-right: 10px;
}

.mini-meta h3 {
    font-size: 16px;
    margin: 0;
}

.mini-meta p {
    font-size: 12px;
    color: #999;
    margin: 4px 0 0;
}

.icon-back {
    display: block;
    width: 24px;
    height: 24px;
    transition: transform 0.2s;
}

.back-btn:active .icon-back {
    transform: scale(0.9);
}

/* 加载状态样式 */
.loading-status {
    text-align: center;
    padding: 20px 0;
    color: #999;
    font-size: 14px;
}

.loading-spinner {
    border: 3px solid rgba(106, 17, 203, 0.1);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.copyright{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    margin-bottom: 4rem;
    font-size: 0.75rem;
    color: #cbcbcb;
}
.policy{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
}
.ad-wrapper{
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
}