/* 关键CSS：只保留首屏必要样式 */
        * { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
        :root {
            --bg: #0D0D0F; --bg-card: #1A1A1E; --bg-card-2: #222226;
            --bg-elevated: #2A2A2E; --text: #FFFFFF; --text-2: #B0B0B8;
            --text-3: #6E6E78; --border: #3A3A40;
            --primary: #6C5CE7; --primary-light: #8B7CF8;
            --accent: #00D4AA; --hot: #FF6B6B; --warning: #FFA94D;
        }
        body {
            font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
            background: var(--bg); color: var(--text);
            min-height: 100vh; padding-bottom: 30px;
        }
        .app { max-width: 600px; margin: 0 auto; position: relative; }
        /* ===== 顶部导航 ===== */
        .top-bar {
            position: sticky; top: 0; z-index: 50;
            background: rgba(13,13,15,0.85);
            backdrop-filter: blur(20px);
            padding: 16px 16px 14px;
            border-bottom: 1px solid var(--border);
        }
        .logo-wrap { display: flex; align-items: center; gap: 12px; }
        .logo { display: flex; align-items: center; gap: 10px; }
        .logo-icon {
            width: 36px; height: 36px; border-radius: 10px;
            background: linear-gradient(135deg, #6C5CE7 0%, #A29BFE 100%);
            display: flex; align-items: center; justify-content: center;
            font-size: 15px; font-weight: 900;
            box-shadow: 0 4px 14px rgba(108,92,231,0.4);
            position: relative;
        }
        .logo-icon::after {
            content: ''; position: absolute;
            top: -3px; right: -3px;
            width: 10px; height: 10px; border-radius: 50%;
            background: #00D4AA;
            box-shadow: 0 0 8px rgba(0,212,170,0.6);
        }
        .logo-text { display: flex; flex-direction: column; }
        .logo-name {
            font-size: 18px; font-weight: 900;
            background: linear-gradient(135deg, #fff 0%, #A29BFE 100%);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
            background-clip: text; letter-spacing: 0.5px; line-height: 1.2;
        }
        .logo-slogan {
            font-size: 10px; color: var(--text-3);
            font-weight: 500; letter-spacing: 1px; margin-top: 2px;
        }
        .top-actions { display: flex; gap: 12px; align-items: center; }
        /* ===== 搜索框 ===== */
        .search-section { padding: 16px; }
        .search-box {
            display: flex; align-items: center;
            background: var(--bg-card); border-radius: 14px;
            padding: 4px 4px 4px 44px; position: relative;
            border: 1px solid var(--border);
        }
        .search-icon { position: absolute; left: 16px; color: var(--text-3); }
        .search-input {
            flex: 1; border: none; outline: none;
            background: transparent; color: var(--text);
            font-size: 15px; padding: 12px 0;
        }
        .search-input::placeholder { color: var(--text-3); }
        .search-btn {
            background: linear-gradient(135deg, #6C5CE7, #A29BFE);
            color: #fff; border: none; border-radius: 10px;
            padding: 10px 20px; font-size: 13px; font-weight: 600;
            cursor: pointer; white-space: nowrap;
        }
        .search-clear {
            position: absolute; right: 80px;
            width: 22px; height: 22px; border-radius: 50%;
            background: var(--text-3); color: #fff;
            display: none; align-items: center; justify-content: center;
            font-size: 10px; cursor: pointer; border: none;
        }
        .search-clear.show { display: flex; }
        /* ===== Carousel ===== */
        .carousel {
            margin: 0 16px 20px; border-radius: 20px;
            overflow: hidden; position: relative; background: var(--bg-card);
        }
        .carousel-track {
            display: flex; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .carousel-slide {
            min-width: 100%; position: relative;
            cursor: pointer; text-decoration: none; color: inherit; display: block;
        }
        .carousel-bg {
            position: relative; width: 100%;
            aspect-ratio: 16/9; overflow: hidden;
        }
        .carousel-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
        .carousel-bg::after {
            content: ''; position: absolute; inset: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
        }
        .carousel-empty {
            width: 100%; height: 100%;
            background: linear-gradient(135deg, #6C5CE7 0%, #A29BFE 100%);
            display: flex; align-items: center; justify-content: center;
            flex-direction: column; color: rgba(255,255,255,0.6);
        }
        .carousel-badge {
            position: absolute; top: 14px; left: 14px; z-index: 2;
            background: linear-gradient(135deg, #FF6B6B, #EE5A6F);
            color: #fff; font-size: 11px; font-weight: 700;
            padding: 4px 12px; border-radius: 20px;
            display: inline-flex; align-items: center; gap: 4px;
        }
        .carousel-content {
            position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
            padding: 24px 20px 20px;
        }
        .carousel-title {
            font-size: 20px; font-weight: 800; color: #fff;
            margin-bottom: 6px; line-height: 1.3;
            text-shadow: 0 2px 8px rgba(0,0,0,0.4);
        }
        .carousel-desc {
            font-size: 13px; color: rgba(255,255,255,0.85);
            margin-bottom: 12px;
            text-shadow: 0 1px 4px rgba(0,0,0,0.4);
        }
        .carousel-btn {
            display: inline-flex; align-items: center; gap: 4px;
            background: #fff; color: var(--primary);
            padding: 8px 18px; border-radius: 20px;
            font-size: 13px; font-weight: 700;
            border: none; cursor: pointer;
        }
        .carousel-dots {
            position: absolute; bottom: 14px; left: 50%;
            transform: translateX(-50%);
            display: flex; gap: 6px; z-index: 3;
        }
        .carousel-dot {
            width: 6px; height: 6px; border-radius: 50%;
            background: rgba(255,255,255,0.4);
            transition: all 0.3s;
            cursor: pointer; border: none;
        }
        .carousel-dot.active { width: 18px; border-radius: 3px; background: #fff; }
        .carousel-arrow {
            position: absolute; top: 50%; transform: translateY(-50%);
            width: 32px; height: 32px; border-radius: 50%;
            background: rgba(0,0,0,0.4); border: none;
            color: #fff; display: flex; align-items: center; justify-content: center;
            cursor: pointer; z-index: 3; opacity: 0; transition: opacity 0.3s;
            backdrop-filter: blur(10px);
        }
        .carousel:hover .carousel-arrow { opacity: 1; }
        .carousel-arrow.prev { left: 10px; }
        .carousel-arrow.next { right: 10px; }
        .carousel-arrow svg { width: 16px; height: 16px; }
        /* ===== 区块标题 ===== */
        .section-head {
            display: flex; align-items: center; justify-content: space-between;
            padding: 0 16px; margin-bottom: 14px; margin-top: 4px;
        }
        .section-head h2 {
            font-size: 17px; font-weight: 800;
            display: flex; align-items: center; gap: 8px;
        }
        .section-head h2::before {
            content: ''; width: 4px; height: 16px;
            background: linear-gradient(180deg, #6C5CE7, #A29BFE);
            border-radius: 2px;
        }
        /* 分类 Tab */
        .cat-tabs {
            display: flex; gap: 10px; padding: 4px 16px 14px;
            overflow-x: auto; -webkit-overflow-scrolling: touch;
        }
        .cat-tabs::-webkit-scrollbar { display: none; }
        .cat-tab {
            flex-shrink: 0; padding: 8px 18px; border: none; border-radius: 999px;
            background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.65);
            font-size: 13px; font-weight: 600; cursor: pointer; transition: all .25s ease;
            backdrop-filter: blur(10px);
        }
        .cat-tab:hover { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9); }
        .cat-tab.active {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: #fff; box-shadow: 0 4px 14px rgba(102,126,234,0.35);
        }
        .section-more {
            font-size: 13px; color: var(--primary-light);
            text-decoration: none; font-weight: 500;
        }
        /* ===== 游戏列表 ===== */
        .game-list { padding: 0 16px; }
        .game-item {
            display: flex; gap: 12px;
            background: var(--bg-card);
            border-radius: 16px;
            padding: 12px;
            margin-bottom: 10px;
            text-decoration: none; color: inherit;
            transition: all 0.2s;
            border: 1px solid var(--border);
        }
        .game-item:active { transform: scale(0.98); background: var(--bg-card-2); }
        .game-thumb {
            width: 96px; height: 96px;
            border-radius: 12px;
            overflow: hidden; flex-shrink: 0;
            background: var(--bg-elevated);
            position: relative;
        }
        .game-thumb img {
            width: 100%; height: 100%; object-fit: cover; display: block;
            transition: opacity 0.3s;
        }
        .game-thumb-empty {
            width: 100%; height: 100%;
            display: flex; flex-direction: column;
            align-items: center; justify-content: center;
            color: var(--text-3);
        }
        .game-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
        .game-name {
            font-size: 15px; font-weight: 700; margin-bottom: 6px;
            display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .game-desc {
            font-size: 12px; color: var(--text-3); margin-bottom: 8px;
            display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
            overflow: hidden; line-height: 1.5;
        }
        .game-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
        .meta-tag { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
        .meta-tag-ver { background: rgba(0,212,170,0.15); color: var(--accent); }
        .meta-tag-lang { background: rgba(255,169,77,0.15); color: var(--warning); }
        .card-download {
            flex-shrink: 0;
            display: flex; align-items: center; justify-content: center;
            width: 44px; height: 44px; border-radius: 12px;
            background: linear-gradient(135deg, #6C5CE7, #A29BFE);
            color: #fff; text-decoration: none;
            box-shadow: 0 4px 14px rgba(108,92,231,0.35);
            transition: all 0.2s; align-self: center;
        }
        .card-download svg { width: 20px; height: 20px; }
        .card-download:active { transform: scale(0.92); }
        /* ===== 空状态 ===== */
        .empty-state { text-align: center; padding: 60px 20px; }
        .empty-state-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
        .empty-state-title { font-size: 16px; color: var(--text-2); margin-bottom: 6px; }
        .empty-state-desc { font-size: 13px; color: var(--text-3); }
        /* ===== Toast ===== */
        .toast {
            position: fixed; bottom: 100px; left: 50%;
            transform: translateX(-50%) translateY(20px);
            background: rgba(0,0,0,0.9); backdrop-filter: blur(10px);
            color: #fff; padding: 12px 24px;
            border-radius: 24px; font-size: 14px;
            z-index: 2000; opacity: 0;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
            pointer-events: none;
            box-shadow: 0 8px 32px rgba(0,0,0,0.4);
        }
        .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
        /* ===== 搜索状态 ===== */
        .search-status {
            text-align: center; color: var(--text-3);
            padding: 30px 20px; font-size: 14px; display: none;
        }
        @media (min-width: 640px) {
            .categories { grid-template-columns: repeat(5, 1fr); }
        }