/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #F5F0FF;
    color: #3A3A3C;
    line-height: 1.6;
}

/* 顶部导航栏 */
.header {
    background-color: #4A90E2;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* 页面导航 */
.page-nav {
    background-color: #4A90E2;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-item {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 700;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-title {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
}

.search-container {
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.3);
    transform: translateY(-1px);
}

.search-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #4A90E2;
    transition: all 0.3s ease;
}

.search-button:hover {
    color: #3A7BC8;
    transform: translateY(-50%) scale(1.1);
}

.back-to-categories, .back-to-recommended {
    background-color: #4A90E2;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-to-categories:hover, .back-to-recommended:hover {
    background-color: #3A7BC8;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.user-icon {
    font-size: 24px;
    text-decoration: none;
    color: white;
}

/* 游戏分类导航 */
.category-nav {
    background-color: #FFFFFF;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    white-space: nowrap;
}

.category-scroll {
    padding: 0 20px;
    display: inline-flex;
    gap: 10px;
}

.category-btn {
    background-color: #F5F5F5;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    max-width: 120px;
}

.category-btn:hover {
    background-color: #E0E0E0;
}

.category-btn.active {
    background-color: #4A90E2;
    color: white;
}

/* 通用 section 样式 */
.section {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 15px;
}

.section-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #3A3A3C;
}

/* 游戏网格 */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

/* 每日精选模块 */
.daily-picks-section {
    background-color: #E8E0FF;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.daily-picks-section .section-header h2 {
    color: #3A3A3C;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.daily-picks-section .section-header p {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

.daily-picks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.daily-picks-grid .game-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.daily-picks-grid .game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.daily-picks-grid .game-thumbnail {
    height: 100px;
    object-fit: cover;
    position: relative;
    overflow: hidden;
}

.daily-picks-grid .game-info {
    padding: 10px;
}

.daily-picks-grid .game-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.daily-picks-grid .game-desc {
    display: none;
}

.daily-picks-grid .game-category {
    display: none;
}

.daily-picks-grid .game-stats {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 游戏分类展示模块 */
.category-section {
    margin-bottom: 30px;
}

.category-group {
    margin-bottom: 30px;
}

.category-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 15px;
    background-color: #E8E0FF;
    border-radius: 12px;
}

.category-group-title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #3A3A3C;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-more {
    color: #4A90E2;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-more:hover {
    color: #3A7BC8;
    text-decoration: underline;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* Action分类特殊布局 */
.action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.action-grid .game-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    transform: translateY(0);
}

.action-grid .game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 20px rgba(240, 147, 251, 0.4);
}

.action-grid .game-thumbnail {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin: 0;
    padding: 0;
}

.action-grid .game-info {
    padding: 8px 10px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 0 0 12px 12px;
    margin: 0;
}

.action-grid .game-title {
    font-size: 13px;
    font-weight: 600;
    color: #3A3A3C;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.action-grid .game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

/* Arcade分类特殊布局 */
.arcade-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.arcade-grid .game-card {
    display: flex;
    flex-direction: row;
    background-color: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

.arcade-grid .game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.arcade-grid .game-thumbnail {
    width: 140px;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    margin: 0;
    padding: 0;
}

.arcade-grid .game-info {
    flex: 1;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    margin: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-left: 3px solid #4A90E2;
}

.arcade-grid .game-info-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.arcade-grid .game-info-left {
    flex: 1;
    margin-right: 10px;
}

.arcade-grid .game-title {
    font-size: 16px;
    font-weight: 600;
    color: #3A3A3C;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    line-height: 1.2;
}

.arcade-grid .game-rating {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.arcade-grid .game-rating .star {
    margin-right: 2px;
    font-size: 14px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

.arcade-grid .game-meta {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    font-size: 11px;
    color: #666666;
    font-weight: 500;
}

.arcade-grid .game-desc {
    display: block;
    font-size: 13px;
    color: #666666;
    margin-bottom: 8px;
    line-height: 1.2;
    text-align: left;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.arcade-grid .play-button {
    align-self: flex-start;
    background-color: #4A90E2;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(74, 144, 226, 0.3);
}

.arcade-grid .play-button:hover {
    background-color: #3A7BC8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.5);
}

.game-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.game-thumbnail {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.game-info {
    padding: 10px;
}

.game-title {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-desc {
    display: none;
}

.game-category {
    display: none;
}

.hot-tag {
    display: none;
}

/* 游戏分类模块 */
.categories-section {
    background-color: #E8E0FF;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.categories-section .section-header {
    margin-bottom: 20px;
}

.categories-section .section-header h2 {
    color: #3A3A3C;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.categories-section .section-header p {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

.category-nav {
    background-color: transparent;
    padding: 0;
    box-shadow: none;
    margin-bottom: 20px;
}

.category-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.category-btn {
    background: white;
    border: 2px solid #4A90E2;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #4A90E2;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.category-btn:hover {
    background: #4A90E2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.category-btn.active {
    background: #4A90E2;
    color: white;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* 游戏分类展示 */
.category-section {
    margin-top: 20px;
}

.category-group {
    margin-bottom: 30px;
}

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

.category-group-title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #3A3A3C;
}

.view-more {
    color: #4A90E2;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

/* 页脚 */
.footer {
    background-color: #4A90E2;
    padding: 40px 0;
    margin-top: 40px;
    color: white;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-section {
    margin-bottom: 20px;
}

.footer-section h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
    max-width: 400px;
}

.footer-links-container {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    justify-content: flex-start;
    max-width: 600px;
}

.footer-links-section {
    flex: 0 0 250px;
    min-width: 200px;
}

.footer-links-section h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
}

.footer-links-section ul {
    list-style: none;
}

.footer-links-section li {
    margin-bottom: 10px;
}

.footer-links-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links-section a:hover {
    color: #F5F0FF;
}

.footer-copyright {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

@media (max-width: 768px) {
    .footer-content {
        padding: 0 15px;
    }

    .footer-links-container {
        flex-direction: row;
        gap: 30px;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .footer-links-section {
        flex: 1;
        min-width: 150px;
    }

    .footer-section h3 {
        font-size: 20px;
    }
}

/* 游戏详情模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #FFFFFF;
    margin: 10% auto;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}

#game-details {
    padding: 10px 0;
}

.game-detail-title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.game-detail-thumbnail {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.game-detail-info {
    margin-bottom: 15px;
}

.game-detail-info p {
    margin-bottom: 5px;
}

.game-detail-info strong {
    color: #3A3A3C;
}

.game-detail-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.play-button {
    flex: 1;
    background-color: #4A90E2;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.play-button:hover {
    background-color: #3A7BC8;
}

.source-button {
    flex: 1;
    background-color: #F5F5F5;
    color: #3A3A3C;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.source-button:hover {
    background-color: #E0E0E0;
}

/* 游戏播放页面 */
.game-play-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: 2000;
}

.game-play-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: #111111;
    color: white;
}

.back-button, .fullscreen-button {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

#game-play-title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
}

.game-embed {
    width: 100%;
    height: calc(100% - 70px);
    position: relative;
}

.game-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: 10px;
    }

    .search-container {
        order: 3;
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .game-grid,
    .action-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .section {
        padding: 15px;
    }

    .categories-section {
        padding: 15px;
        margin-bottom: 20px;
    }

    .categories-section .section-header h2 {
        font-size: 20px;
    }

    .daily-picks-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .nav-container {
        padding: 0 10px;
    }

    .nav-item {
        font-size: 13px;
        padding: 6px 12px;
    }

    .category-group-header {
        padding: 8px 12px;
    }

    .category-group-title {
        font-size: 16px;
    }

    .game-thumbnail {
        height: 90px;
    }

    .game-title {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 20px;
    }

    .section-header h2 {
        font-size: 18px;
    }

    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .game-thumbnail {
        height: 90px;
    }

    .game-title {
        font-size: 13px;
    }

    .game-desc {
        font-size: 11px;
    }
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4A90E2;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* 无结果提示 */
.no-results {
    text-align: center;
    padding: 40px 0;
    color: #8E8E93;
}

.no-results h3 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 10px;
}

/* 搜索建议 */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
}

.search-suggestion {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #F5F5F5;
}

.search-suggestion:hover {
    background-color: #F5F5F5;
}

/* 分类页面样式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-select {
    padding: 6px 12px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    font-size: 14px;
}

.load-more-container {
    text-align: center;
    margin-top: 20px;
}

.load-more-btn {
    background-color: #4A90E2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.load-more-btn:hover {
    background-color: #3A7BC8;
}

/* 个人中心样式 */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E0E0E0;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar {
    font-size: 48px;
}

.profile-info h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.profile-info p {
    color: #8E8E93;
}

.profile-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #E0E0E0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #4A90E2;
    border-bottom-color: #4A90E2;
}

.tab-content {
    margin-bottom: 30px;
}

.tab-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.settings-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.setting-select {
    padding: 6px 12px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    font-size: 14px;
}

.setting-checkbox {
    width: 18px;
    height: 18px;
}

.clear-cache-btn, .logout-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.clear-cache-btn {
    background-color: #F5F5F5;
    color: #3A3A3C;
}

.clear-cache-btn:hover {
    background-color: #E0E0E0;
}

.logout-btn {
    background-color: #FF3B30;
    color: white;
}

.logout-btn:hover {
    background-color: #E03027;
}

/* 关于我们、隐私政策和条款页面样式 */
.about-container, .privacy-container, .terms-container {
    max-width: 800px;
    margin: 0 auto;
}

.about-container h1, .privacy-container h1, .terms-container h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.update-date {
    text-align: center;
    color: #8E8E93;
    margin-bottom: 30px;
}

.about-section, .privacy-section, .terms-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E0E0E0;
}

.about-section:last-child, .privacy-section:last-child, .terms-section:last-child {
    border-bottom: none;
}

.about-section h2, .privacy-section h2, .terms-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.about-section p, .privacy-section p, .terms-section p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.about-section ul, .privacy-section ul, .terms-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.about-section li, .privacy-section li, .terms-section li {
    margin-bottom: 5px;
}

.about-section a, .privacy-section a, .terms-section a {
    color: #4A90E2;
    text-decoration: none;
}

.about-section a:hover, .privacy-section a:hover, .terms-section a:hover {
    text-decoration: underline;
}

/* 推荐游戏页面样式 */
.recommended-section {
    background-color: #E8E0FF;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* 分类按钮样式 */
.category-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #E8E0FF;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 2px solid #4A90E2;
    border-radius: 12px;
    padding: 20px 10px;
    font-size: 14px;
    font-weight: 600;
    color: #4A90E2;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.category-btn::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-bottom: 10px;
    background-color: #4A90E2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.category-btn[data-category="all"]::before {
    content: '🎮';
}

.category-btn[data-category="action"]::before {
    content: '⚔️';
    background-color: #FF3B30;
}

.category-btn[data-category="puzzle"]::before {
    content: '🧩';
    background-color: #4CD964;
}

.category-btn[data-category="racing"]::before {
    content: '🏎️';
    background-color: #FF9500;
}

.category-btn[data-category="shooting"]::before {
    content: '🔫';
    background-color: #9013FE;
}

.category-btn[data-category="arcade"]::before {
    content: '🎯';
    background-color: #007AFF;
}

.category-btn[data-category="casual"]::before {
    content: '🎲';
    background-color: #FFCC00;
}

.category-btn[data-category="adventure"]::before {
    content: '🏕️';
    background-color: #5856D6;
}

.category-btn:hover {
    background-color: #4A90E2;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.category-btn.active {
    background-color: #4A90E2;
    color: white;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

@media (max-width: 768px) {
    .category-buttons {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        padding: 15px;
    }

    .category-btn {
        font-size: 12px;
        padding: 12px 6px;
    }

    .category-btn::before {
        width: 30px;
        height: 30px;
        font-size: 16px;
        margin-bottom: 8px;
    }
}

/* 游戏详情页面样式 */
.game-detail-section {
    background-color: #E8E0FF;
    border-radius: 16px;
    padding: 20px;
    margin: 20px auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    max-width: 800px;
}

.game-detail-container {
    position: relative;
}

.game-detail-header {
    margin-bottom: 20px;
}

.game-detail-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #3A3A3C;
    text-align: center;
    margin-bottom: 20px;
}

.game-detail-thumbnail-container {
    margin-bottom: 20px;
    text-align: center;
}

.game-detail-thumbnail {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.game-detail-info {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.game-detail-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #E0E0E0;
    flex-wrap: wrap;
    align-items: center;
}

.game-detail-category {
    background-color: #4A90E2;
    color: white;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: 500;
}

.game-detail-stats {
    background-color: #F5F5F5;
    color: #3A3A3C;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: 500;
}

.game-detail-rating {
    display: flex;
    align-items: center;
}

.game-detail-rating .star {
    font-size: 18px;
    color: #CCCCCC;
    margin-right: 2px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

.game-detail-rating .star.filled {
    color: #FFD700;
}

.game-detail-description,
.game-detail-controls {
    margin-bottom: 20px;
}

.game-detail-description h2,
.game-detail-controls h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #3A3A3C;
}

.game-detail-description p,
.game-detail-controls p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

.game-detail-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.error-message {
    text-align: center;
    padding: 40px 20px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.error-message h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #FF3B30;
}

.error-message p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #666;
}

@media (max-width: 768px) {
    .game-detail-section {
        padding: 15px;
        margin: 15px;
    }

    .game-detail-title {
        font-size: 24px;
    }

    .game-detail-info {
        padding: 15px;
    }

    .game-detail-meta {
        flex-direction: column;
        gap: 10px;
    }

    .game-detail-buttons {
        flex-direction: column;
    }

    .game-detail-buttons button {
        width: 100%;
    }
}
