/* Xbox风格主页样式 */
body { 
    font-family: 'Noto Sans SC', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0B1426 0%, #1B2951 25%, #107C10 50%, #1B2951 75%, #0B1426 100%);
    background-attachment: fixed;
    color: white;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Xbox官方风格配色 */
:root {
    --xbox-green: #107C10;
    --xbox-green-light: #16A316;
    --xbox-green-dark: #0B5A0B;
    --xbox-blue: #0078D4;
    --xbox-blue-light: #40E0D0;
    --xbox-dark: #1E1E1E;
    --xbox-gray: #2D2D30;
    --xbox-light-gray: #3C3C41;
    --xbox-white: #FFFFFF;
    --xbox-silver: #C5C5C5;
}

/* Xbox风格导航栏 */
.navbar {
    background: rgba(30, 30, 30, 0.98);
    backdrop-filter: blur(30px);
    border-bottom: 2px solid var(--xbox-green);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(16, 124, 16, 0.3);
}

/* Xbox Logo动画效果 */
.xbox-logo {
    background: linear-gradient(45deg, var(--xbox-green), var(--xbox-green-light));
    position: relative;
    overflow: hidden;
}

.xbox-logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.main-content {
    padding-top: 100px;
    min-height: 100vh;
}

/* Xbox风格游戏卡片 */
.game-card {
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.9) 0%, rgba(45, 45, 48, 0.9) 100%);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(16, 124, 16, 0.3);
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 200px; /* 稍微减少高度 */
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 124, 16, 0.2), transparent);
    transition: left 0.8s ease;
}

.game-card:hover::before {
    left: 100%;
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(16, 124, 16, 0.4);
    border-color: var(--xbox-green);
    background: linear-gradient(145deg, rgba(16, 124, 16, 0.1) 0%, rgba(45, 45, 48, 0.95) 100%);
}

/* 游戏卡片内部布局优化 */
.game-card .relative {
    flex-shrink: 0; /* 图片区域不收缩 */
    padding: 12px 12px 0 12px; /* 上左右内边距，顶部留空 */
}

.game-card .relative img {
    height: 128px; /* 固定图片高度 */
    object-fit: cover;
    width: 100%;
    border-radius: 12px; /* 图片圆角 */
}

.game-card h3 {
    flex-grow: 1; /* 标题区域占据剩余空间 */
    display: flex;
    align-items: flex-start;
    margin: 0 16px 16px 16px; /* 左右下边距 */
    min-height: 20px; /* 确保标题区域有最小高度 */
    font-size: 16px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-card .mt-auto {
    margin-top: auto; /* 底部信息区域推到底部 */
    padding-top: 8px;
}

/* Xbox风格按钮 */
.modern-btn {
    background: linear-gradient(135deg, var(--xbox-green) 0%, var(--xbox-green-light) 100%);
    border: 2px solid var(--xbox-green);
    backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.modern-btn:hover::before {
    left: 100%;
}

.modern-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(16, 124, 16, 0.5);
    border-color: var(--xbox-green-light);
    background: linear-gradient(135deg, var(--xbox-green-light) 0%, var(--xbox-blue) 100%);
}

/* 游戏数量标签 */
.game-count-tab {
    background: linear-gradient(135deg, rgba(16, 124, 16, 0.2) 0%, rgba(16, 124, 16, 0.1) 100%);
    border: 1px solid rgba(16, 124, 16, 0.4);
    border-radius: 25px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--xbox-green-light);
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(16, 124, 16, 0.2);
}

.game-count-tab:hover {
    background: linear-gradient(135deg, rgba(16, 124, 16, 0.3) 0%, rgba(16, 124, 16, 0.2) 100%);
    border-color: rgba(16, 124, 16, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 124, 16, 0.3);
}

.game-count-tab svg {
    color: var(--xbox-green);
}

/* 语言选择器 */
.language-selector {
    position: relative;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(45, 45, 48, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: white;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.lang-option:hover {
    background: rgba(16, 124, 16, 0.2);
    color: #107C10;
}

.lang-option:first-child {
    border-radius: 12px 12px 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 12px 12px;
}

/* 加载动画 */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #107C10, #0078D4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.loading-spinner svg {
    /* 为刷新图标添加旋转动画 */
    animation: spin 2s linear infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 游戏网格 */
.game-grid {
    display: grid;
    gap: 24px;
    padding: 24px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* 服务器端渲染的游戏列表样式 */
.games-grid {
    display: grid;
    gap: 20px;
    padding: 20px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.game-item {
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.9) 0%, rgba(45, 45, 48, 0.9) 100%);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(16, 124, 16, 0.3);
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 220px;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.game-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 124, 16, 0.2), transparent);
    transition: left 0.8s ease;
}

.game-item:hover::before {
    left: 100%;
}

.game-item:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 25px 50px rgba(16, 124, 16, 0.4);
    border-color: var(--xbox-green);
}

.game-thumbnail {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.game-thumbnail img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    border-radius: 10px;
}

.game-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--xbox-white);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-description {
    font-size: 0.9rem;
    color: var(--xbox-silver);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.game-meta {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.game-category,
.game-year {
    font-size: 0.8rem;
    color: var(--xbox-green);
    background: rgba(16, 124, 16, 0.1);
    padding: 0.2rem 0.5rem;
}

/* 服务端渲染游戏列表容器 */
.games-list-container {
    width: 100%;
}

.games-list-container .games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* 服务端渲染的游戏卡片样式 */
.games-list-container .game-card {
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.9) 0%, rgba(45, 45, 48, 0.9) 100%);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(16, 124, 16, 0.3);
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 220px;
    display: flex;
    flex-direction: column;
}

.games-list-container .game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 124, 16, 0.2), transparent);
    transition: left 0.8s ease;
}

.games-list-container .game-card:hover::before {
    left: 100%;
}

.games-list-container .game-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 25px 50px rgba(16, 124, 16, 0.4);
    border-color: var(--xbox-green);
}

.games-list-container .game-card h3 a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.games-list-container .game-card h3 a:hover {
    color: var(--xbox-green-light);
}

.games-list-container .game-card .modern-btn {
    background: linear-gradient(135deg, var(--xbox-green) 0%, var(--xbox-green-light) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.games-list-container .game-card .modern-btn:hover {
    background: linear-gradient(135deg, var(--xbox-green-light) 0%, var(--xbox-green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 124, 16, 0.4);
}

/* 屏幕阅读器专用样式 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 游戏导航链接 - SEO优化 */
.games-navigation {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.games-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.games-nav-list li {
    margin: 0;
    padding: 0;
}

.games-nav-list a {
    color: var(--xbox-green);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
}

.games-nav-list a:hover {
    text-decoration: underline;
}

/* 游戏列表链接样式 */
.games-sitemap-link {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    border-top: 1px solid rgba(16, 124, 16, 0.3);
}

.games-sitemap-link a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(16, 124, 16, 0.1);
    border: 1px solid rgba(16, 124, 16, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.games-sitemap-link a:hover {
    background: rgba(16, 124, 16, 0.2);
    border-color: var(--xbox-green);
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 12px;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 12px;
    }
    
    .game-item {
        height: 180px;
        padding: 0.8rem;
    }
    
    .game-title {
        font-size: 1rem;
    }
    
    .game-description {
        font-size: 0.8rem;
    }
}

/* 隐藏类 */
.hidden {
    display: none !important;
}



/* 确保文本不会被截断 */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Xbox风格Footer */
.footer {
    background: linear-gradient(135deg, var(--xbox-dark) 0%, var(--xbox-gray) 100%);
    border-top: 2px solid var(--xbox-green);
    padding: 20px 0;
    margin-top: 40px;
}

.footer-simple {
    text-align: center;
    color: var(--xbox-silver);
    font-size: 14px;
    line-height: 1.6;
}

.footer-link {
    color: var(--xbox-green-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--xbox-green);
    text-decoration: underline;
}

/* Xbox风格动画 */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 手机端菜单收起按钮 */
.mobile-menu-toggle {
    display: none;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: var(--xbox-green);
    border: none;
    border-radius: 6px;
    color: white;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
    z-index: 1001;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 50px;
}

.mobile-menu-toggle .menu-text {
    font-size: 9px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.mobile-functions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(30, 30, 30, 0.98);
    backdrop-filter: blur(30px);
    border-bottom: 2px solid var(--xbox-green);
    padding: 15px;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.mobile-functions.show {
    display: flex;
}

/* 存档管理器样式 */
.save-manager-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.save-manager-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.save-manager-content {
    position: relative;
    background: linear-gradient(135deg, var(--xbox-dark) 0%, var(--xbox-gray) 100%);
    border: 2px solid var(--xbox-green);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.save-manager-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(16, 124, 16, 0.3);
}

.save-manager-header h2 {
    color: var(--xbox-green);
    margin: 0;
    font-size: 1.5em;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.save-manager-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.save-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.save-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.save-item:hover {
    background: rgba(16, 124, 16, 0.1);
    border-color: rgba(16, 124, 16, 0.3);
}

.save-info {
    flex: 1;
}

.save-game-name {
    color: white;
    font-weight: bold;
    margin-bottom: 5px;
}

.save-date {
    color: #ccc;
    font-size: 0.9em;
}

.save-actions {
    display: flex;
    gap: 10px;
}

.btn-load, .btn-delete {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-load {
    background: linear-gradient(135deg, var(--xbox-green), var(--xbox-green-light));
    color: white;
}

.btn-load:hover {
    background: linear-gradient(135deg, var(--xbox-green-light), var(--xbox-blue));
    transform: translateY(-2px);
}

.btn-delete {
    background: linear-gradient(135deg, #DC3545, #C82333);
    color: white;
}

.btn-delete:hover {
    background: linear-gradient(135deg, #C82333, #A71E2A);
    transform: translateY(-2px);
}

.no-saves {
    text-align: center;
    color: #ccc;
    font-size: 1.2em;
    padding: 40px;
}

/* 用户反馈对话框样式 */
.feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.feedback-content {
    position: relative;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border: 1px solid rgba(16, 124, 16, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--xbox-green), var(--xbox-blue));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feedback-header h2 {
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    margin: 0;
}

.feedback-body {
    padding: 25px;
    max-height: 75vh;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: white;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--xbox-green);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(16, 124, 16, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-cancel,
.btn-submit {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn-submit {
    background: linear-gradient(135deg, var(--xbox-green), var(--xbox-green-light));
    color: white;
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--xbox-green-light), var(--xbox-blue));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 124, 16, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .feedback-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .feedback-header {
        padding: 15px 20px;
    }
    
    .feedback-header h2 {
        font-size: 1.3em;
    }
    
    .feedback-body {
        padding: 20px;
        max-height: 80vh;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-submit {
        width: 100%;
    }
}

/* Xbox通知系统 */
.xbox-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(135deg, var(--xbox-green) 0%, var(--xbox-green-light) 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(16, 124, 16, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
    max-width: 300px;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 移动端优化 */
@media (max-width: 768px) {
    /* 导航栏优化 - 简洁版 */
    .navbar {
        padding: 10px 0;
        position: relative;
    }
    
    /* 移动端隐藏游戏数量标签 */
    .game-count-tab {
        display: none;
    }
    
    /* 移动端游戏数量样式 */
    .mobile-game-count {
        background: linear-gradient(135deg, rgba(16, 124, 16, 0.2) 0%, rgba(16, 124, 16, 0.1) 100%);
        border: 1px solid rgba(16, 124, 16, 0.4);
        border-radius: 20px;
        padding: 10px 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: var(--xbox-green-light);
        font-size: 14px;
        font-weight: 600;
        backdrop-filter: blur(10px);
        margin-bottom: 10px;
    }
    
    .mobile-game-count svg {
        color: var(--xbox-green);
    }
    
    .navbar .container {
        padding: 0 15px;
    }
    
    /* 手机端显示菜单按钮 */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* 在移动端隐藏桌面端功能按钮，显示移动端菜单按钮 */
    .navbar > .container > .flex > .hidden {
        display: none !important;
    }
    
    /* 保持标题栏简洁 */
    .navbar .flex > div:first-child {
        position: relative;
    }
    
    .xbox-logo {
        width: 35px;
        height: 35px;
    }
    
    .xbox-logo + div h1 {
        font-size: 1.3rem;
    }
    
    .xbox-logo + div p {
        font-size: 0.7rem;
    }
    
    /* 功能按钮在收起菜单中 */
    .mobile-functions .modern-btn {
        font-size: 12px;
        padding: 10px 15px;
        width: 100%;
        text-align: center;
        margin-bottom: 0;
    }
    
    /* 语言选择器移动端优化 */
    .mobile-functions .language-selector {
        width: 100%;
    }
    
    .mobile-functions .language-dropdown {
        left: 0;
        right: 0;
        min-width: auto;
    }
    
    /* 搜索框优化 - 紧接导航栏 */
    .main-content {
        padding-top: 15px;
    }
    
    .main-content > .container {
        padding-top: 10px !important;
        padding-bottom: 20px !important;
    }
    

    
    /* 游戏网格移动端优化 */
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }
    
    .game-card {
        border-radius: 12px;
        height: 180px; /* 移动端固定高度 */
    }
    
    .game-card .relative img {
        height: 90px; /* 移动端图片高度 */
    }
    
    .game-card h3 {
        font-size: 0.75rem;
        line-height: 1.2;
        min-height: 28px; /* 移动端标题最小高度 */
        margin: 0 12px 12px 12px; /* 移动端边距调整 */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Footer优化 */
    .footer-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer {
        padding: 30px 0;
        margin-top: 40px;
    }
}

/* 桌面端确保功能按钮显示 */
@media (min-width: 769px) {
    .navbar > .container > .flex > .hidden {
        display: flex !important;
    }
}

@media (max-width: 480px) {
    /* 超小屏幕优化 */
    .main-content {
        padding-top: 10px;
    }
    
    .main-content > .container {
        padding-top: 5px !important;
        padding-bottom: 15px !important;
    }
    

    
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px;
    }
    
    .xbox-logo {
        width: 32px;
        height: 32px;
    }
    
    .xbox-logo + div h1 {
        font-size: 1.25rem;
    }
    
    .modern-btn {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .game-card {
        height: 160px; /* 超小屏幕固定高度 */
    }
    
    .game-card .relative img {
        height: 80px; /* 超小屏幕图片高度 */
    }
    
    .game-card h3 {
        font-size: 0.7rem;
        min-height: 24px; /* 超小屏幕标题最小高度 */
        margin: 0 8px 8px 8px; /* 超小屏幕边距调整 */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
} 