/* 基础变量定义 */
        :root {
            --primary-color: #4a6cf7;
            --secondary-color: #ff6b6b;
            --accent-color: #9c27b0;
            --light-bg: #ffffff;
            --light-text: #333333;
            --light-card: #f8f9fa;
            --light-nav: rgba(255, 255, 255, 0.95);
            --dark-bg: #121212;
            --dark-text: #f0f0f0;
            --dark-card: #1e1e1e;
            --dark-nav: rgba(18, 18, 18, 0.95);
            --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            --border-radius: 16px;
        }

        /* 基础样式重置 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
        }

        body {
            background-color: var(--light-bg);
            color: var(--light-text);
            transition: var(--transition);
            overflow-x: hidden;
            line-height: 1.6;
        }

        body.dark-mode {
            background-color: var(--dark-bg);
            color: var(--dark-text);
        }

        .container {
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* 顶部导航栏 - 桌面端 */
        header {
            background: var(--light-nav);
            padding: 0;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            position: sticky;
            top: 0;
            z-index: 1000;
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

        body.dark-mode header {
            background: var(--dark-nav);
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 80px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .logo h1 {
            background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-size: 1.8rem;
            font-weight: 800;
            letter-spacing: 1px;
        }

        .logo-icon {
            font-size: 2.2rem;
            color: var(--primary-color);
        }

        /* 桌面端导航菜单 */
        .desktop-nav ul {
            display: flex;
            list-style: none;
            gap: 15px;
        }

        .desktop-nav ul li a {
            text-decoration: none;
            color: var(--light-text);
            font-weight: 600;
            font-size: 1.05rem;
            padding: 8px 15px;
            border-radius: 30px;
            transition: var(--transition);
            position: relative;
        }

        .desktop-nav ul li a:hover,
        .desktop-nav ul li a.active {
            color: var(--primary-color);
            background: rgba(74, 108, 247, 0.1);
        }

        .desktop-nav ul li a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 3px;
            background: var(--primary-color);
            border-radius: 2px;
            transition: var(--transition);
        }

        .desktop-nav ul li a:hover::after,
        .desktop-nav ul li a.active::after {
            width: 70%;
        }

        body.dark-mode .desktop-nav ul li a {
            color: var(--dark-text);
        }

        body.dark-mode .desktop-nav ul li a:hover,
        body.dark-mode .desktop-nav ul li a.active {
            color: #8ab4f8;
            background: rgba(138, 180, 248, 0.1);
        }

        /* 控制按钮区域 */
        .controls {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .control-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(74, 108, 247, 0.1);
            border: none;
            color: var(--primary-color);
            cursor: pointer;
            transition: var(--transition);
            font-size: 1.1rem;
        }

        .control-btn:hover {
            background: var(--primary-color);
            color: white;
            transform: translateY(-3px);
        }

        body.dark-mode .control-btn {
            background: rgba(138, 180, 248, 0.15);
            color: #8ab4f8;
        }

        body.dark-mode .control-btn:hover {
            background: #8ab4f8;
            color: var(--dark-bg);
        }

        /* 侧边菜单栏 - 移动端 */
        .sidebar {
            position: fixed;
            top: 0;
            left: -300px;
            width: 280px;
            height: 100vh;
            background: var(--light-nav);
            z-index: 2000;
            box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
            transition: var(--transition);
            overflow-y: auto;
            padding-top: 80px;
        }

        body.dark-mode .sidebar {
            background: var(--dark-nav);
        }

        .sidebar.active {
            left: 0;
        }

        .sidebar ul {
            list-style: none;
            padding: 20px;
        }

        .sidebar ul li {
            margin-bottom: 10px;
        }

        .sidebar ul li a {
            display: flex;
            align-items: center;
            text-decoration: none;
            color: var(--light-text);
            font-weight: 600;
            font-size: 1.1rem;
            padding: 12px 20px;
            border-radius: 8px;
            transition: var(--transition);
            gap: 12px;
        }

        .sidebar ul li a:hover,
        .sidebar ul li a.active {
            background: rgba(74, 108, 247, 0.1);
            color: var(--primary-color);
        }

        body.dark-mode .sidebar ul li a {
            color: var(--dark-text);
        }

        body.dark-mode .sidebar ul li a:hover,
        body.dark-mode .sidebar ul li a.active {
            background: rgba(138, 180, 248, 0.1);
            color: #8ab4f8;
        }

        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1500;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
        }

        .overlay.active {
            opacity: 1;
            visibility: visible;
        }

        /* 移动端菜单按钮 - 默认隐藏 */
        .mobile-menu-btn {
            display: none;
            background: transparent;
            border: none;
            color: var(--primary-color);
            font-size: 1.8rem;
            cursor: pointer;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            transition: var(--transition);
        }

        .mobile-menu-btn:hover {
            background: rgba(74, 108, 247, 0.1);
        }

        /* 全屏轮播图 */
        .fullscreen-carousel {
            position: relative;
            height: 600px;
            width: 100%;
            overflow: hidden;
            margin-top: -1px;
        }

        .carousel-inner {
            display: flex;
            transition: transform 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000);
            height: 100%;
        }

        .carousel-slide {
            min-width: 100%;
            height: 100%;
            position: relative;
        }

        .carousel-slide-content {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
        }

        .slide-content {
            text-align: center;
            max-width: 800px;
            padding: 0 20px;
            z-index: 2;
        }

        .slide-content h2 {
            font-size: 3.5rem;
            color: white;
            margin-bottom: 20px;
            text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
        }

        .slide-content p {
            font-size: 2rem;
            background: linear-gradient(90deg, #ff6600, #0066ff 70%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 30px;
            text-shadow: 0 2px 4px rgba(255, 254, 247, 0.5);
            font-weight: bold;
        }

        .carousel-btn {
            display: inline-block;
            background: linear-gradient(145deg, #fff200, #0055ff);
            /* 深蓝渐变 */
            color: #fff;
            padding: 16px 42px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 700;
            font-size: 1.2rem;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            border: none;
            box-shadow:
                0 8px 20px rgba(41, 128, 185, 0.5),
                inset 0 2px 4px rgba(255, 255, 255, 0.3);
            position: relative;
            overflow: hidden;
            text-transform: uppercase;
            letter-spacing: 1px;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
        }

        .carousel-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: 0.5s;
        }

        .carousel-btn:hover {
            background: linear-gradient(145deg, #2ecc71, #27ae60);
            /* 绿色渐变 */
            transform: translateY(-6px) scale(1.05);
            box-shadow:
                0 12px 25px rgba(46, 204, 113, 0.6),
                inset 0 2px 4px rgba(255, 255, 255, 0.4);
        }

        .carousel-btn:hover::before {
            left: 100%;
        }

        .carousel-btn:active {
            transform: translateY(-2px) scale(0.98);
            box-shadow:
                0 4px 12px rgba(46, 204, 113, 0.4),
                inset 0 1px 3px rgba(0, 0, 0, 0.2);
        }

        /* 添加游戏手柄图标（可选）*/
        .carousel-btn::after {
            content: "🎮";
            display: inline-block;
            margin-left: 10px;
            transform: translateY(2px);
        }

        .carousel-controls {
            position: absolute;
            bottom: 40px;
            left: 0;
            right: 0;
            display: flex;
            justify-content: center;
            z-index: 10;
        }

        .carousel-indicator {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            margin: 0 10px;
            cursor: pointer;
            transition: var(--transition);
        }

        .carousel-indicator.active {
            background: white;
            transform: scale(1.3);
        }

        .carousel-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 100%;
            display: flex;
            justify-content: space-between;
            padding: 0 30px;
            z-index: 10;
        }

        .carousel-nav-btn {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.3);
            border: none;
            color: white;
            font-size: 1.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
        }

        .carousel-nav-btn:hover {
            background: rgba(0, 0, 0, 0.6);
            transform: scale(1.1);
        }

        /* 游戏分类区域 */
        .games-section {
            padding: 60px 0;
        }

        .section-title {
            text-align: center;
            font-size: 2.5rem;
            margin-bottom: 40px;
            position: relative;
            color: var(--primary-color);
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 5px;
            background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
            border-radius: 3px;
        }

        .category-title {
            font-size: 1.8rem;
            margin: 40px 0 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--primary-color);
            display: inline-block;
        }

        .games-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 25px;
            margin-top: 20px;
        }

        .game-card {
            background: var(--light-card);
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            text-align: center;
            position: relative;
            border: 1px solid rgba(0, 0, 0, 0.05);
        }

        body.dark-mode .game-card {
            background: var(--dark-card);
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .game-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        .game-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            background: var(--secondary-color);
            color: white;
            padding: 5px 15px;
            border-radius: 30px;
            font-size: 0.8rem;
            font-weight: 600;
            z-index: 2;
        }

        /* 游戏图标1:1比例显示 */
        .game-icon-container {
            padding: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            aspect-ratio: 1/1;
        }

        .game-icon {
            width: 100%;
            max-width: 180px;
            height: auto;
            aspect-ratio: 1/1;
            object-fit: cover;
            border-radius: 35px;
            transition: var(--transition);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        }

        .game-card:hover .game-icon {
            transform: scale(1.05);
        }

        .game-info {
            padding: 15px;
        }

        .game-name {
            font-size: 1.2rem;
            font-weight: 700;
            margin-bottom: 12px;
            color: var(--primary-color);
            height: 2.8rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .download-btn {
            display: inline-block;
            background: var(--primary-color);
            color: white;
            padding: 10px 25px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            transition: var(--transition);
            border: 2px solid transparent;
            margin-top: 5px;
            font-size: 0.95rem;
        }

        .download-btn:hover {
            background: transparent;
            color: var(--primary-color);
            border-color: var(--primary-color);
            transform: translateY(-3px);
        }

        /* 页脚区域 */
        footer {
            background: #2c3e50;
            color: #ecf0f1;
            padding: 40px 0 20px;
            margin-top: 60px;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            margin-bottom: 30px;
        }

        .footer-section h3 {
            font-size: 1.4rem;
            margin-bottom: 20px;
            position: relative;
            padding-bottom: 10px;
        }

        .footer-section h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 3px;
            background: var(--secondary-color);
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 12px;
        }

        .footer-links a {
            color: #bdc3c7;
            text-decoration: none;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .footer-links a:hover {
            color: white;
            transform: translateX(5px);
        }

        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            font-size: 1.1rem;
            transition: var(--transition);
        }

        .social-links a:hover {
            background: var(--primary-color);
            transform: translateY(-5px);
        }

        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 0.9rem;
            color: #95a5a6;
        }

        /* ================================= */
        /* 响应式设计 - 移动端布局 */
        /* 仅在屏幕宽度小于768px时应用 */
        /* ================================= */
        @media (max-width: 768px) {
            .header-content {
                height: 70px;
                padding: 0 15px;
            }

            .logo h1 {
                font-size: 1.6rem;
            }

            /* 隐藏桌面导航 */
            .desktop-nav {
                display: none;
            }

            /* 显示移动菜单按钮 */
            .mobile-menu-btn {
                display: flex;
            }

            /* 调整轮播图高度 */
            .fullscreen-carousel {
                height: 400px;
            }

            .slide-content h2 {
                font-size: 2.2rem;
            }

            .slide-content p {
                font-size: 1.1rem;
                margin-bottom: 20px;
            }

            .carousel-btn {
                padding: 12px 25px;
                font-size: 1rem;
            }

            .section-title {
                font-size: 2rem;
            }

            .category-title {
                font-size: 1.6rem;
            }

            .carousel-nav-btn {
                width: 50px;
                height: 50px;
                font-size: 1.3rem;
            }

            /* 游戏网格调整为3列 */
            .games-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        /* 小屏幕移动设备 */
        @media (max-width: 480px) {
            .header-content {
                height: 60px;
            }

            .logo h1 {
                font-size: 1.4rem;
            }

            .logo-icon {
                font-size: 1.8rem;
            }

            .fullscreen-carousel {
                height: 350px;
            }

            .slide-content h2 {
                font-size: 1.8rem;
            }

            .slide-content p {
                font-size: 1rem;
            }

            /* 确保轮播图背景覆盖整个区域 */
            .carousel-slide-content {
                background-size: cover;
                background-position: center;
            }

            .section-title {
                font-size: 1.7rem;
                margin-bottom: 30px;
            }

            .section-title::after {
                width: 80px;
                height: 4px;
            }

            .category-title {
                font-size: 1.5rem;
                margin: 30px 0 15px;
            }

            /* 游戏网格调整为2列 */
            .games-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 15px;
            }

            .game-icon-container {
                padding: 12px;
            }

            .game-icon {
                max-width: 100%;
            }

            .game-name {
                font-size: 0.9rem;
                height: 2.5rem;
                line-height: 1.3;
            }

            .download-btn {
                padding: 8px 15px;
                font-size: 0.85rem;
            }

            .game-badge {
                font-size: 0.7rem;
                padding: 4px 10px;
                top: 8px;
                right: 8px;
            }

            .footer-content {
                grid-template-columns: 1fr;
                gap: 25px;
            }

            .footer-section h3 {
                font-size: 1.3rem;
            }

            .carousel-nav-btn {
                width: 40px;
                height: 40px;
                font-size: 1.1rem;
            }
        }