    /* 动态粒子背景 */
    .particles {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: -1;
        overflow: hidden;
    }

    .particle {
        position: absolute;
        width: 150px;
        height: 150px;
        background: radial-gradient(circle at center,
            var(--primary) 0%,
            var(--secondary) 50%,
            transparent 80%);
        border-radius: 50%;
        filter: blur(30px);
        opacity: 0.2;
        animation: float 25s infinite cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
        mix-blend-mode: screen;
    }

    .particle:nth-child(1) {
        top: 15%;
        left: 15%;
        width: 180px;
        height: 180px;
        animation-delay: -2s;
    }

    .particle:nth-child(2) {
        top: 55%;
        left: 65%;
        width: 200px;
        height: 200px;
        animation-delay: -4s;
    }

    .particle:nth-child(3) {
        top: 35%;
        left: 85%;
        width: 160px;
        height: 160px;
        animation-delay: -6s;
    }

    @keyframes float {
        0% {
            transform: translate(0, 0);
        }
        25% {
            transform: translate(100px, 100px);
        }
        50% {
            transform: translate(-50px, 200px);
        }
        75% {
            transform: translate(-100px, -100px);
        }
        100% {
            transform: translate(0, 0);
        }
    }

    :root {
        --primary: #ff5e5e;
        --secondary: #6c5ce7;
        --text-primary: #2d3436;
        --text-secondary: #636e72;
        --surface-glass: rgba(255, 255, 255, 0.95);
        --border-glass: 1px solid rgba(255, 255, 255, 0.15);
        --shadow-primary: 0 8px 32px rgba(255, 94, 94, 0.2);
        --text-gradient: linear-gradient(135deg, #1530f4, #3a9e3e);
        --primary-rgb: 255, 94, 94;
        --secondary-rgb: 108, 92, 231;
        scroll-behavior: smooth;
    }

    html {
        scroll-padding-top: 80px;
    }

    @media (prefers-color-scheme: dark) {
        :root {
            --primary: #ff7675;
            --secondary: #a66efa;
            --text-primary: #ffffff;
            --text-secondary: rgba(255, 255, 255, 0.7);
            --surface-glass: rgba(28, 28, 32, 0.85);
            --border-glass: 1px solid rgba(255,255,255,0.12);
            --shadow-primary: 0 12px 36px rgba(255, 118, 117, 0.25);
            --primary-rgb: 255, 118, 117;
            --secondary-rgb: 166, 110, 250;
        }
        body { 
            background: #121212;
            color-scheme: dark;
        }
        .game-card {
            background-image: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 100%);
        }
        .btn {
            box-shadow: 0 8px 24px rgba(255, 118, 117, 0.3);
        }
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: 'Georama', 'Inter', system-ui;
        line-height: 1.6;
        min-height: 100vh;
        overflow-x: hidden;
        background: #f8f9fa;
    }

    /* 动态渐变背景 */
    body::after {
        content: '';
        position: fixed;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, 
            rgba(255,94,94,0.15) 0%, 
            rgba(108,92,231,0.15) 50%,
            rgba(94,163,255,0.15) 100%
        );
        animation: gradientRotate 20s linear infinite;
        z-index: -2;
        mix-blend-mode: overlay;
    }

    .particles {
        position: fixed;
        width: 100vw;
        height: 100vh;
        z-index: -1;
        pointer-events: none;
    }

    .particle {
        position: absolute;
        background: radial-gradient(circle at center, 
            var(--primary) 0%, 
            var(--secondary) 100%
        );
        border-radius: 50%;
        animation: float 18s cubic-bezier(0.4, 0, 0.2, 1) infinite;
        mix-blend-mode: screen;
        filter: blur(2px);
        will-change: transform, opacity;
        transform: translateZ(0);
    }

    .global-nav {
        position: fixed;
        top: 0;
        width: 100%;
        padding: 0.75rem 1.25rem;
        background: var(--surface-glass);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 1000;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08),
                  0 2px 8px rgba(var(--primary-rgb), 0.1);
        border-bottom: var(--border-glass);
        transform: translateZ(0);
        transition: all 0.3s ease;
        animation: navSlideDown 0.6s ease-out;
        height: 70px;
    }

    .global-nav:hover {
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
    }

    .nav-content {
        max-width: 1400px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        gap: 1.5rem;
        flex-wrap: wrap;
        padding: 0.5rem 1rem;
    }

    @media (max-width: 768px) {
        .nav-content {
            justify-content: center;
            gap: 1rem;
        }

        .logo {
            font-size: 1.25rem;
            text-align: center;
            width: 100%;
        }

        .game-desc {
            display: none;
        }
    }

    .search-box {
        display: flex;
        align-items: center;
        background: var(--surface-glass);
        border: var(--border-glass);
        border-radius: 50px;
        padding: 0.75rem 1.25rem;
        margin-left: auto;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        max-width: 400px;
        width: 100%;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05),
                  0 2px 6px rgba(var(--primary-rgb), 0.1);
        animation: searchBoxFadeIn 0.8s ease-out;
    }

    @media (max-width: 768px) {
        .search-box {
            position: fixed;
            bottom: 1rem;
            left: 50%;
            transform: translateX(-50%);
            width: calc(100% - 2rem);
            max-width: none;
            margin: 0;
            z-index: 100;
            background: var(--surface-glass);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15),
                      0 4px 12px rgba(var(--primary-rgb), 0.1);
            border-radius: 50px;
            padding: 0.6rem 1rem;
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                      opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                      box-shadow 0.3s ease;
            will-change: transform, opacity;
            border: var(--border-glass);
        }
        
        .search-box:focus-within {
            box-shadow: 0 10px 40px rgba(var(--primary-rgb), 0.25),
                      0 5px 15px rgba(0, 0, 0, 0.1);
            transform: translateX(-50%) translateY(-4px);
            border-color: rgba(var(--primary-rgb), 0.3);
        }
        
        .search-box input {
            font-size: 0.95rem;
            padding: 0.5rem 0.6rem;
            width: 100%;
            transition: all 0.3s ease;
        }
        
        .search-box input:focus {
            font-weight: 500;
        }
        
        .search-box button {
            padding: 0.5rem 1rem;
            font-size: 0.9rem;
            box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
            transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                      box-shadow 0.3s ease,
                      background 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .search-box button:active {
            transform: scale(0.92);
            box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.2);
        }
        
        .search-box button::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 5px;
            height: 5px;
            background: rgba(255, 255, 255, 0.8);
            opacity: 0;
            border-radius: 100%;
            transform: scale(1, 1) translate(-50%, -50%);
            transform-origin: 50% 50%;
        }
        
        .search-box button:active::after {
            animation: ripple 0.6s ease-out;
        }
        
        @keyframes ripple {
            0% {
                transform: scale(0, 0) translate(-50%, -50%);
                opacity: 0.5;
            }
            100% {
                transform: scale(20, 20) translate(-50%, -50%);
                opacity: 0;
            }
        }
        
        /* 确保搜索框不会遮挡内容 */
        .game-container {
            padding-bottom: 80px;
        }
        
        /* 滚动时隐藏搜索框 */
        .search-box.hidden {
            transform: translateX(-50%) translateY(120px);
            opacity: 0;
            pointer-events: none;
        }
        
        /* 添加搜索框出现动画 */
        @keyframes searchBoxSlideUp {
            from { 
                transform: translateX(-50%) translateY(80px);
                opacity: 0;
            }
            to { 
                transform: translateX(-50%) translateY(0);
                opacity: 1;
            }
        }
        
        .search-box:not(.hidden) {
            animation: searchBoxSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        }
        
        /* 增强搜索框交互体验 */
        .search-box.active {
            transform: translateX(-50%) translateY(-5px);
            box-shadow: 0 15px 45px rgba(var(--primary-rgb), 0.3),
                      0 8px 20px rgba(0, 0, 0, 0.15);
        }
    }

    .search-box:focus-within {
        box-shadow: var(--shadow-primary);
        transform: translateY(-1px);
    }

    .search-box input {
        border: none;
        background: transparent;
        padding: 0.5rem;
        font-size: 1rem;
        color: var(--text-primary);
        width: 100%;
        outline: none;
        font-weight: 500;
    }

    .search-box button {
        background: var(--text-gradient);
        border: none;
        cursor: pointer;
        padding: 0.5rem 1rem;
        color: white;
        border-radius: 25px;
        margin-left: 0.5rem;
        font-weight: 600;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(255, 94, 94, 0.2);
    }

    .search-box button:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(255, 94, 94, 0.3);
    }



    .logo {
        font-size: 1.5rem;
        background: var(--text-gradient);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        font-weight: 800;
    }

    .game-desc {
        color: var(--text-secondary);
        font-size: 0.9em;
        margin: 0;
        padding-left: 1.2rem;
        position: relative;
    }

    .game-desc::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 2px;
        height: 1.2em;
        background: var(--text-gradient);
    }

    .game-container {
        max-width: 1400px;
        margin: 90px auto 2rem;
        padding: 2rem;
    }

    .game-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
        padding: 2rem 0;
    }

    .game-card {
        background: var(--surface-glass);
        border-radius: 32px;
        padding: 32px;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: var(--border-glass);
        box-shadow: var(--shadow-primary),
                  0 12px 24px rgba(0, 0, 0, 0.08),
                  0 24px 48px rgba(0, 0, 0, 0.12);
        position: relative;
        overflow: hidden;
        opacity: 0;
        animation: cardEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        transform: translateZ(0) scale(0.98);
        will-change: transform, box-shadow, opacity, background;
        cursor: pointer;
        background-image: 
            linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 100%),
            radial-gradient(circle at 50% 0%, rgba(255,255,255,0.25), transparent 70%);
        transform-style: preserve-3d;
        perspective: 1000px;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        -webkit-transform-style: preserve-3d;
        -webkit-perspective: 1000px;
        -webkit-transform: translateZ(0) scale(0.98) translateY(0);
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        transform-origin: center center;
        -webkit-transform-origin: center center;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0);
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000px;
        perspective: 1000px;
    }

    @media (hover: hover) {
        .game-card:hover {
            transform: translateY(-12px) scale(1.03);
            box-shadow: var(--shadow-primary),
                      0 20px 40px rgba(108, 92, 231, 0.25),
                      0 0 120px rgba(255, 94, 94, 0.1);
            background: linear-gradient(
                135deg,
                var(--surface-glass),
                rgba(255, 255, 255, 0.98)
            );
            transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                      box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                      background 0.4s ease;
            will-change: transform, box-shadow, background;
        }
        .game-card:hover .card-header {
            background: rgba(255,255,255,0.2);
            transform: translateY(-4px);
            transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        .game-card:hover h3 {
            transform: translateY(-2px);
            text-shadow: 0 4px 8px rgba(108, 92, 231, 0.3);
            background-size: 200% 200%;
            background-position: 100% 0;
            transition: all 0.4s ease;
        }
    }

    .game-card::before {
        content: 'HOT';
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        color: white;
        padding: 0.35rem 0.75rem;
        font-size: 0.8em;
        font-weight: 700;
        letter-spacing: 0.5px;
        box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
        display: none; /* 保持为none，因为只有.game-card.hot才显示 */
        border-radius: 12px;
        z-index: 1;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        opacity: 0;
        transform: translateY(-10px) rotate(-5deg);
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .game-card.hot::before {
        display: block;
        opacity: 1;
        transform: translateY(0) rotate(0deg);
        animation: hotBadgePulse 2s infinite alternate;
        letter-spacing: 1px;
        font-size: 0.85em;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    /* 增强HOT角标效果 */
    .game-card.hot::after {
        content: '';
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(var(--primary-rgb), 0.5) 0%, rgba(var(--primary-rgb), 0) 70%);
        z-index: 0;
        animation: hotGlow 1.5s infinite alternate ease-in-out;
        pointer-events: none;
        filter: blur(3px);
        transform-origin: center center;
    }
    
    @keyframes hotBadgePulse {
        0% { 
            box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3); 
            transform: translateY(0) scale(1) rotate(0deg);
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            letter-spacing: 1px;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        }
        20% {
            box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.35), 0 2px 5px rgba(var(--secondary-rgb), 0.15);
            transform: translateY(-1px) scale(1.03) rotate(2deg);
            background: linear-gradient(135deg, #ff4a4a, #7a5dff);
            letter-spacing: 1.3px;
            text-shadow: 0 1.5px 3.5px rgba(0, 0, 0, 0.25);
        }
        40% {
            box-shadow: 0 6px 18px rgba(var(--primary-rgb), 0.4), 0 3px 6px rgba(var(--secondary-rgb), 0.2);
            transform: translateY(-1.5px) scale(1.05) rotate(0deg);
            background: linear-gradient(135deg, #ff4a4a, #7a5dff);
            letter-spacing: 1.6px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }
        60% {
            box-shadow: 0 7px 21px rgba(var(--primary-rgb), 0.45), 0 3.5px 7px rgba(var(--secondary-rgb), 0.25);
            transform: translateY(-2px) scale(1.06) rotate(-2deg);
            background: linear-gradient(135deg, #ff3d3d, #7f62ff);
            letter-spacing: 1.8px;
            text-shadow: 0 2.5px 5px rgba(0, 0, 0, 0.35);
        }
        80% {
            box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.48), 0 4px 8px rgba(var(--secondary-rgb), 0.28);
            transform: translateY(-2.5px) scale(1.07) rotate(1deg);
            background: linear-gradient(135deg, #ff3a3a, #8667ff);
            letter-spacing: 2px;
            text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
        }
        100% { 
            box-shadow: 0 9px 27px rgba(var(--primary-rgb), 0.5), 0 4.5px 9px rgba(var(--secondary-rgb), 0.3); 
            transform: translateY(-3px) scale(1.08) rotate(0deg);
            background: linear-gradient(135deg, #ff3636, #8c6dff);
            letter-spacing: 2.2px;
            text-shadow: 0 3.5px 7px rgba(0, 0, 0, 0.45);
        }
    }
    
    @keyframes hotGlow {
        0% { 
            transform: scale(1) rotate(0deg);
            opacity: 0.5;
            filter: blur(3px);
            box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.3);
            background: radial-gradient(circle, rgba(var(--primary-rgb), 0.5) 0%, rgba(var(--primary-rgb), 0) 70%);
        }
        20% {
            transform: scale(1.3) rotate(72deg);
            opacity: 0.42;
            filter: blur(3.5px);
            box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.35);
            background: radial-gradient(circle, rgba(var(--primary-rgb), 0.45) 0%, rgba(var(--primary-rgb), 0) 72%);
        }
        40% {
            transform: scale(1.5) rotate(144deg);
            opacity: 0.35;
            filter: blur(4px);
            box-shadow: 0 0 25px rgba(var(--primary-rgb), 0.4);
            background: radial-gradient(circle, rgba(var(--primary-rgb), 0.4) 0%, rgba(var(--primary-rgb), 0) 75%);
        }
        60% {
            transform: scale(1.7) rotate(216deg);
            opacity: 0.28;
            filter: blur(4.5px);
            box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.45);
            background: radial-gradient(circle, rgba(var(--primary-rgb), 0.35) 0%, rgba(var(--primary-rgb), 0) 78%);
        }
        80% {
            transform: scale(1.9) rotate(288deg);
            opacity: 0.22;
            filter: blur(5px);
            box-shadow: 0 0 35px rgba(var(--primary-rgb), 0.48);
            background: radial-gradient(circle, rgba(var(--primary-rgb), 0.3) 0%, rgba(var(--primary-rgb), 0) 80%);
        }
        100% { 
            transform: scale(2.1) rotate(360deg);
            opacity: 0.18;
            filter: blur(5.5px);
            box-shadow: 0 0 40px rgba(var(--primary-rgb), 0.5);
            background: radial-gradient(circle, rgba(var(--primary-rgb), 0.25) 0%, rgba(var(--primary-rgb), 0) 85%);
        }
    }
    
    /* 悬停时增强HOT角标效果 */
    @media (hover: hover) {
        .game-card.hot:hover::before {
            transform: translateY(-5px) scale(1.1);
            box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.5);
            background: linear-gradient(135deg, #ff3a3a, #8667ff);
        }
    }

    .card-header {
        position: relative;
        padding: 16px;
        margin: -24px -24px 24px;
        background: rgba(255,255,255,0.1);
        border-radius: 16px 16px 0 0;
        display: flex;
        align-items: center;
        gap: 1.5rem;
        transition: all 0.3s ease;
    }

    .game-icon-container {
        width: 60px;
        height: 60px;
        min-width: 60px;
        border-radius: 14px;
        padding: 6px;
        overflow: hidden;
        position: relative;
        background: rgba(255,255,255,0.05);
        transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .game-icon {
        display: block;
        width: 100%;
        height: 100%;
        border-radius: 12px;
        object-fit: cover;
        image-rendering: -webkit-optimize-contrast;
        backface-visibility: hidden;
        background-color: var(--surface-glass);
        transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
        transform-origin: center center;
        will-change: transform;
        opacity: 0;
    }

    .game-icon.loaded {
        opacity: 1;
    }

    .game-icon {
        opacity: 0;
        animation: iconFadeIn 0.3s ease forwards;
    }

    @keyframes iconFadeIn {
        from { opacity: 0; transform: scale(0.95); }
        to { opacity: 1; transform: scale(1); }
    }

    .game-icon.error {
        background: var(--surface-glass) url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDJDNi40OCAyIDIgNi40OCAyIDEyczQuNDggMTAgMTAgMTAgMTAtNC40OCAxMC0xMFMxNy41MiAyIDEyIDJ6bTEgMTVoLTJ2LTJoMnYyem0wLTRoLTJWN2gydjZ6IiBmaWxsPSIjZmY1ZTVlIi8+PC9zdmc+') center/24px no-repeat;
        opacity: 0.5;
        animation: errorShake 0.4s cubic-bezier(.36,.07,.19,.97) both;
    }

    @keyframes errorShake {
        10%, 90% { transform: translate3d(-1px, 0, 0); }
        20%, 80% { transform: translate3d(2px, 0, 0); }
        30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
        40%, 60% { transform: translate3d(4px, 0, 0); }
    }

    .game-icon.error {
        background: var(--surface-glass) url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDJDNi40OCAyIDIgNi40OCAyIDEyczQuNDggMTAgMTAgMTAgMTAtNC40OCAxMC0xMFMxNy41MiAyIDEyIDJ6bTEgMTVoLTJ2LTJoMnYyem0wLTRoLTJWN2gydjZ6IiBmaWxsPSIjZmY1ZTVlIi8+PC9zdmc+') center/24px no-repeat;
        animation: none;
        transition: none;
    }

    /* 优化选择器性能 */
    .game-card > * { contain: content; }
    .game-card .btn { contain: layout paint; }
    .game-icon-container img { contain: strict; }

    /* 添加图片加载错误处理 */
    .game-icon-container img[src*='data:image'] {
        background: var(--surface-glass);
        transition: opacity .2s ease;
    }

    /* PC端悬停效果 */
    @media (hover: hover) {
        .game-card:hover .game-icon {
            transform: scale(1.1);
        }
        .game-card:hover .game-icon-container {
            transform: scale(0.95);
        }
    }

    /* 移动端激活状态 */
    @media (hover: none) {
        .game-icon-container.active .game-icon {
            transform: scale(1.15);
            opacity: 0.9;
        }
        .game-icon-container.active {
            transform: scale(0.95);
        }
    }

    .rating {
        background: rgba(255,255,255,0.15);
        backdrop-filter: blur(8px);
        padding: 8px 20px;
        border-radius: 50px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-weight: 700;
        color: var(--primary);
    }

    h3 {
        font-size: 1.5em;
        margin-bottom: 12px;
        background: var(--text-gradient);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

    .download-count {
        font-size: 0.85em;
        color: var(--text-secondary);
        margin: 12px 0;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .download-count::before {
        content: '↓';
        font-weight: 700;
        color: var(--primary);
    }

    .btn-group {
        display: grid;
        gap: 12px;
        margin-top: 20px;
    }

    .btn {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
        border-radius: 16px;
        font-weight: 700;
        text-decoration: none;
        background: var(--text-gradient);
        color: white;
        border: 2px solid transparent;
        transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        position: relative;
        overflow: hidden;
        transform: translateZ(0);
        will-change: transform, box-shadow;
        box-shadow: 0 8px 20px rgba(255,94,94,0.25),
                  0 4px 10px rgba(var(--secondary-rgb), 0.15);
        background-size: 200% 100%;
        background-position: 100% 0;
        letter-spacing: 0.5px;
        animation: buttonPulse 2s infinite;
    }

    @media (hover: hover) {
        .btn:hover {
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 8px 24px rgba(255,94,94,0.3);
            background-position: 0 0;
            transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
    }

    @media (hover: none) {
        .game-card {
            cursor: default;
            touch-action: manipulation;
        }
        
        .btn {
            touch-action: manipulation;
            -webkit-tap-highlight-color: transparent;
        }
        
        .btn:active {
            background-color: var(--primary);
            opacity: 0.8;
        }
    }

    @keyframes navSlideDown {
        0% {
            transform: translateY(-100%);
            opacity: 0;
        }
        100% {
            transform: translateY(0);
            opacity: 1;
        }
    }

    @keyframes searchBoxFadeIn {
        0% {
            opacity: 0;
            transform: translateY(20px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes buttonPulse {
        0% {
            transform: scale(1);
            box-shadow: 0 8px 20px rgba(255,94,94,0.25);
        }
        50% {
            transform: scale(1.02);
            box-shadow: 0 12px 28px rgba(255,94,94,0.35);
        }
        100% {
            transform: scale(1);
            box-shadow: 0 8px 20px rgba(255,94,94,0.25);
        }
    }

    /* 游戏详情模态框样式 */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .modal-content {
        background: var(--surface-glass);
        border: var(--border-glass);
        border-radius: 28px;
        padding: 2rem;
        width: 90%;
        max-width: 800px;
        max-height: 90vh;
        overflow-y: auto;
        position: relative;
        transform: translateY(20px) scale(0.95);
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        scrollbar-width: thin;
        scrollbar-color: var(--primary) transparent;
    }

    .modal-overlay.active .modal-content {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    .modal-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--text-secondary);
        transition: all 0.3s ease;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .modal-close:hover {
        color: var(--primary);
        background: rgba(255, 94, 94, 0.1);
        transform: scale(1.1);
    }

    .game-details {
        text-align: left;
    }

    .game-header {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .game-detail-icon {
        width: 80px;
        height: 80px;
        border-radius: 16px;
        object-fit: cover;
    }

    .game-details h2 {
        background: var(--text-gradient);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        font-size: 2rem;
        margin: 0;
    }

    .game-details .rating {
        display: inline-flex;
        margin: 1rem 0;
        font-size: 1.1rem;
    }

    .game-screenshots {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        margin: 2rem 0;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .screenshot-container {
        position: relative;
        width: 100%;
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
        border-radius: 20px;
        overflow: hidden;
        background: var(--surface-glass);
        border: var(--border-glass);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .screenshot-container img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0;
        background: var(--surface-glass);
        will-change: transform, opacity;
        animation: imgFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        transform-origin: center center;
        border-radius: 12px; /* 添加圆角使图片更美观 */
    }

    .screenshot-container img.loaded {
        opacity: 1;
    }

    @media (hover: hover) {
        .screenshot-container:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
        }
        .screenshot-container:hover img {
            transform: scale(1.05);
        }
    }

    @media (max-width: 768px) {
        .game-screenshots {
            grid-template-columns: 1fr;
            gap: 1rem;
        }
        
        .screenshot-grid {
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 0.75rem;
        }
        
        .screenshot-grid img {
            aspect-ratio: 21/9;
            object-fit: cover;
        }
        
        .screenshot-container {
            padding-bottom: 42.86%; /* 21:9 比例 */
            border-radius: 16px;
        }
    }

    .game-details .description {
        color: var(--text-secondary);
        margin: 1.5rem 0;
        line-height: 1.8;
        font-size: 1.1rem;
    }

    .screenshots h3,
    .features h3 {
        color: var(--text-primary);
        margin: 2rem 0 1rem;
        font-size: 1.5rem;
    }

    .screenshot-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
        gap: 1rem !important;
        margin: 1rem 0;
    }

    .screenshot-grid img {
        width: 100%;
        border-radius: 8px;
        aspect-ratio: 21/9;
        object-fit: cover;
        background-color: rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
        opacity: 1;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        padding: 0;
    }
    
    .screenshot-grid img.loaded {
        opacity: 1;
    }

    .screenshot-grid img:hover {
        transform: scale(1.05);
    }
    
    .screenshot-grid img.error {
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: rgba(0,0,0,0.05);
        color: var(--text-secondary);
        font-size: 0.8rem;
        padding: 1rem;
        min-height: 150px;
        object-fit: none;
        border: 1px solid rgba(var(--primary-rgb), 0.1);
    }
    
    .screenshot-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
        border-radius: 12px;
        pointer-events: none;
    }
    
    .screenshot-overlay span {
        color: white;
        background: rgba(0,0,0,0.5);
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 0.9rem;
        font-weight: 500;
        transform: translateY(10px);
        transition: transform 0.3s ease;
    }
    
    .screenshot-grid img:hover + .screenshot-overlay {
        opacity: 1;
    }
    
    .screenshot-grid img:hover + .screenshot-overlay span {
        transform: translateY(0);
    }

    .feature-list {
        list-style: none;
        padding: 0;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .feature-list li {
        background: rgba(var(--primary-rgb), 0.1);
        padding: 1rem;
        border-radius: 12px;
        color: var(--text-primary);
        font-weight: 500;
        text-align: center;
        transition: all 0.3s ease;
    }

    .feature-list li:hover {
        background: rgba(var(--primary-rgb), 0.2);
        transform: translateY(-2px);
    }

    @media (max-width: 768px) {
        .modal-content {
            padding: 1.5rem;
            width: 95%;
        }

        .game-header {
            flex-direction: column;
            text-align: center;
            gap: 1rem;
        }

        .game-details h2 {
            font-size: 1.5rem;
        }

        .screenshot-grid {
            grid-template-columns: 1fr;
        }

        .feature-list {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 768px) {
        .global-nav {
            padding: 0.75rem;
            height: 80px;
            font-size: 14px;
        }
    
        .nav-content {
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 0.5rem;
            padding: 0.25rem;
            font-size: 14px;
        }
    
        .logo {
            font-size: 1.25rem;
            line-height: 1.2;
            margin-bottom: 0.25rem;
            animation: textGradient 3s ease infinite;
            background-size: 200% 200%;
        }
    
        .game-desc {
            font-size: 0.8rem;
            line-height: 1.4;
            text-align: center;
            padding-left: 0;
            margin-bottom: 0.5rem;
        }
    
        .search-box {
            position: fixed;
            top: 100px;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            max-width: 320px;
            padding: 0.5rem 0.75rem;
            z-index: 999;
            box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.1);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-size: 14px;
        }
    
        .game-container {
            margin-top: 160px;
        }
    }

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

    @keyframes float {
        0%, 100% { transform: translateY(0) translateX(0); }
        25% { transform: translateY(-20px) translateX(10px); }
        50% { transform: translateY(20px) translateX(-10px); }
        75% { transform: translateY(-10px) translateX(20px); }
    }

    @keyframes textGradient {
        0% {
            background-position: 0% 50%;
        }
        50% {
            background-position: 100% 50%;
        }
        100% {
            background-position: 0% 50%;
        }
    }

    @keyframes cardEntrance {
        0% {
            opacity: 0;
            transform: translateY(30px) scale(0.95);
            filter: blur(10px);
            box-shadow: 0 0 0 rgba(var(--primary-rgb), 0);
        }
        50% {
            opacity: 0.8;
            filter: blur(3px);
        }
        70% {
            opacity: 1;
            filter: blur(0);
            box-shadow: 0 15px 35px rgba(var(--primary-rgb), 0.3);
        }
        90% {
            transform: translateY(-5px) scale(1.02);
        }
        100% {
            transform: translateY(0) scale(1);
            opacity: 1;
            box-shadow: var(--shadow-primary);
        }
    }
    /* 游戏详情弹窗样式 */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(8px);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .modal-content {
        background: var(--surface-glass);
        border: var(--border-glass);
        border-radius: 28px;
        padding: 2rem;
        width: 90%;
        max-width: 800px;
        max-height: 90vh;
        overflow-y: auto;
        position: relative;
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        scrollbar-width: thin;
        scrollbar-color: var(--primary) transparent;
    }

    .modal-overlay.active .modal-content {
        transform: translateY(0);
        opacity: 1;
    }

    .modal-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--text-secondary);
        transition: all 0.3s ease;
    }

    .modal-close:hover {
        color: var(--primary);
        transform: scale(1.1);
    }

    .game-details {
        text-align: left;
    }

    .game-details h2 {
        background: var(--text-gradient);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        margin-bottom: 1rem;
    }

    .game-details .rating {
        display: inline-flex;
        margin: 1rem 0;
    }

    .game-screenshots {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
        max-width: 700px;
        height: auto;
        max-height: 70vh; /* 使用视口高度的百分比，更适应不同设备 */
        overflow-y: auto;
        padding: 1rem;
        margin: 1.5rem auto;
        background: rgba(255,255,255,0.05);
        border-radius: 16px;
        scrollbar-width: thin;
        scrollbar-color: var(--primary) transparent;
        -webkit-overflow-scrolling: touch;
        position: relative;
        contain: content;
    }

    .screenshot-container {
        position: relative;
        width: 100%;
        border-radius: 16px;
        overflow: hidden;
        background: var(--surface-glass);
        border: var(--border-glass);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        aspect-ratio: 16/9;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 1rem;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        cursor: pointer;
        contain: layout style;
    }

    .screenshot-container img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* 改为cover以确保图片填满容器 */
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform, opacity;
        background: var(--surface-glass);
        opacity: 0;
        animation: imgFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        transform-origin: center center;
        max-width: 100%;
        border-radius: 12px;
        padding: 0.25rem; /* 减小内边距以显示更多内容 */
    }
    
    /* 图片查看器样式 - 优化版 */
    .image-viewer-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.92);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: 3000;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        will-change: opacity, visibility, transform;
        touch-action: none; /* 防止默认触摸行为干扰自定义手势 */
        overflow: hidden; /* 确保内容不会溢出 */
        pointer-events: all; /* 确保事件能够被捕获 */
        /* 优化硬件加速，减少闪烁 */
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        perspective: 1000px;
        -webkit-perspective: 1000px;
        transform-style: flat;
        -webkit-transform-style: flat;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .image-viewer-overlay.active {
        opacity: 1;
        visibility: visible;
        animation: viewerFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    @keyframes viewerFadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    .viewer-content {
        position: relative;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        padding: 20px;
        box-sizing: border-box;
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        -moz-transform: translate3d(0, 0, 0);
        -ms-transform: translate3d(0, 0, 0);
        transform-style: flat;
        -webkit-transform-style: flat;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        perspective: 1000px;
        -webkit-perspective: 1000px;
        will-change: transform;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .viewer-content img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain; /* 保持contain以确保完整显示图片 */
        transform: scale(0.95) translate3d(0, 0, 0);
        -webkit-transform: scale(0.95) translate3d(0, 0, 0);
        opacity: 0;
        transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        border-radius: 12px;
        cursor: zoom-in;
        will-change: transform, opacity;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        animation: none; /* 移除可能导致闪烁的动画 */
        margin: 0 auto; /* 居中显示 */
        user-select: none; /* 防止用户选择图片 */
        transform-style: flat;
        -webkit-transform-style: flat;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        perspective: 1000px;
        -webkit-perspective: 1000px;
        /* 防止闪烁 - 使用translate3d触发硬件加速 */
        transform-origin: center center;
        -webkit-transform-origin: center center;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    @keyframes imgPulse {
        0% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
        100% { box-shadow: 0 15px 40px rgba(var(--primary-rgb), 0.4), 0 5px 15px rgba(0, 0, 0, 0.2); }
    }
    
    /* 添加点击提示 */
    .image-hint {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.6);
        color: white;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 14px;
        opacity: 0.8;
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
        z-index: 3200;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        animation: hintPulse 2s infinite alternate ease-in-out;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
    
    /* 添加图片计数器 */
    .image-counter {
        position: absolute;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.6);
        color: white;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 14px;
        opacity: 0.8;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 3200;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
    
    /* 加载状态 */
    .image-hint.loading {
        animation: loadingPulse 1.5s infinite ease-in-out;
        background: rgba(var(--secondary-rgb), 0.7);
        padding-left: 36px;
        position: relative;
    }
    
    .image-hint.loading::before {
        content: '';
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
        border: 2px solid rgba(255, 255, 255, 0.5);
        border-top-color: white;
        border-radius: 50%;
        animation: spin 1s infinite linear;
    }
    
    /* 错误状态 */
    .image-hint.error {
        background: rgba(var(--primary-rgb), 0.7);
        animation: none;
        opacity: 1;
    }
    
    @keyframes loadingPulse {
        0%, 100% { opacity: 0.8; }
        50% { opacity: 1; }
    }
    
    @keyframes spin {
        0% { transform: translateY(-50%) rotate(0deg); }
        100% { transform: translateY(-50%) rotate(360deg); }
    }
    
    @keyframes hintPulse {
        0% { transform: translateX(-50%) scale(1); }
        100% { transform: translateX(-50%) scale(1.05); }
    }
    
    .image-viewer-overlay.active .viewer-content img {
        transform: scale(1);
        opacity: 1;
    }
    
    /* 添加放大效果 - 优化安卓设备闪屏问题 */
    .viewer-content img.zoomed {
        transform: scale(1.8) translate3d(0, 0, 0);
        -webkit-transform: scale(1.8) translate3d(0, 0, 0);
        cursor: zoom-out;
        animation: none;
        /* 优化安卓设备闪屏问题 */
        transform-style: flat;
        -webkit-transform-style: flat;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        perspective: 1000px;
        -webkit-perspective: 1000px;
        will-change: transform;
        box-shadow: 0 20px 60px rgba(var(--primary-rgb), 0.3), 0 10px 30px rgba(0, 0, 0, 0.3);
        transform-style: preserve-3d;
        -webkit-transform-style: preserve-3d;
        -moz-transform-style: preserve-3d;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        -moz-backface-visibility: hidden;
        will-change: transform;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        perspective: 1000px;
        -webkit-perspective: 1000px;
        will-change: transform;
        /* 防止闪烁 */
        -webkit-transform: translateZ(0);
        -moz-transform: translateZ(0);
        -ms-transform: translateZ(0);
    }
    
    .viewer-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: rgba(0, 0, 0, 0.6);
        color: white;
        border: none;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        font-size: 24px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 3100;
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .viewer-close:hover {
        background: var(--primary);
        transform: scale(1.1) rotate(90deg);
    }
    
    .viewer-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.6);
        color: white;
        border: none;
        width: 54px;
        height: 54px;
        border-radius: 50%;
        font-size: 28px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 3100;
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        opacity: 0.8;
    }
    
    .viewer-prev {
        left: 20px;
    }
    
    .viewer-next {
        right: 20px;
    }
    
    .viewer-nav:hover {
        background: var(--primary);
        transform: translateY(-50%) scale(1.1);
        opacity: 1;
    }
    
    @media (max-width: 768px) {
        .viewer-nav {
            width: 44px;
            height: 44px;
            font-size: 22px;
            opacity: 0.9;
        }
        
        .viewer-prev {
            left: 10px;
        }
        
        .viewer-next {
            right: 10px;
        }
        
        .viewer-content img.zoomed {
            transform: scale(1.5);
        }
        
        .image-hint {
            font-size: 12px;
            padding: 6px 12px;
            bottom: 15px;
        }
    }

    @media (hover: hover) {
        .screenshot-container:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
        }
        .screenshot-container:hover img {
            transform: scale(1.05);
        }
    }

    @media (max-width: 768px) {
        .game-screenshots {
            grid-template-columns: 1fr;
            gap: 1rem;
            width: 100%;
            height: auto;
            max-height: 60vh;
            padding: 0.75rem;
            overflow-x: hidden;
        }
        
        .screenshot-grid {
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
            gap: 0.75rem !important;
            display: grid !important;
        }
        
        .screenshot-grid img {
            aspect-ratio: 16/9;
            object-fit: cover; /* 改为cover以确保图片填满容器 */
            width: 100%;
            height: auto;
            max-height: 100%;
            border-radius: 8px;
            padding: 0.25rem; /* 减小内边距以显示更多内容 */
        }
        
        .screenshot-container {
            margin-bottom: 0.75rem;
            aspect-ratio: 16/9;
            height: auto; /* 确保高度自适应 */
        }
    }

    .game-details .description {
        color: var(--text-secondary);
        margin: 1rem 0;
        line-height: 1.6;
    }

    .game-details .stats {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
        margin: 1.5rem 0;
    }

    .stat-item {
        background: rgba(255,255,255,0.1);
        padding: 1rem;
        border-radius: 16px;
        text-align: center;
    }

    .stat-item .value {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--primary);
    }

    .stat-item .label {
        font-size: 0.9rem;
        color: var(--text-secondary);
        margin-top: 0.5rem;
    }
        .game-icon {
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .game-icon.loaded {
        opacity: 1;
    }

    .game-icon.error {
        opacity: 0.5;
        background: var(--surface-glass) url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDJDNi40OCAyIDIgNi40OCAyIDEyczQuNDggMTAgMTAgMTAgMTAtNC40OCAxMC0xMFMxNy41MiAyIDEyIDJ6bTEgMTVoLTJ2LTJoMnYyem0wLTRoLTJWN2gydjZ6IiBmaWxsPSIjZmY1ZTVlIi8+PC9zdmc+') center/24px no-repeat;
    }