   /* =========================================
           1. 全局基础样式
           ========================================= */
           :root {
            --primary-color: #3b82f6;
            --primary-hover: #2563eb;
            --text-main: #1f2937;
            --text-secondary: #6b7280;
            --bg-body: #f3f4f6;
            --bg-card: #ffffff;
            --radius: 8px;
            --shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* 阴影变淡，更扁平 */
            --header-height: 64px;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: "PingFang SC", "Microsoft YaHei", sans-serif; background-color: var(--bg-body); color: var(--text-main); line-height: 1.5; }
        a { text-decoration: none; color: inherit; transition: all 0.2s; }
        ul { list-style: none; }
        img { max-width: 100%; display: block; object-fit: cover; }

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

        /* 顶部导航 */
        header { background: var(--bg-card); height: var(--header-height); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }
        .nav-inner { height: 100%; }
        .logo { font-size: 20px; font-weight: 800; color: var(--primary-color); letter-spacing: 1px; }
        .nav-links { display: flex; gap: 32px; }
        .nav-links a { font-weight: 500; font-size: 15px; position: relative; }
        .nav-links a:hover, .nav-links a.active { color: var(--primary-color); }
        .nav-links a.active::after { content: ''; position: absolute; bottom: -22px; left: 0; width: 100%; height: 3px; background: var(--primary-color); }
        .search-box { background: #f3f4f6; padding: 6px 12px; border-radius: 20px; display: flex; align-items: center; }
        .search-box input { border: none; background: transparent; outline: none; font-size: 14px; width: 150px; }
        .search-icon { 
    cursor: pointer; 
    transition: transform 0.2s; 
    user-select: none; /* 防止双击选中图标 */
}
.search-icon:hover { 
    transform: scale(1.2); 
}
        .mobile-menu-btn { display: none; font-size: 24px; cursor: pointer; }

        /* =========================================
           2. 筛选区域样式
           ========================================= */
        .breadcrumb { margin: 16px 0; font-size: 13px; color: var(--text-secondary); }
        .breadcrumb span { margin: 0 8px; color: #d1d5db; }

        .filter-card {
            background: var(--bg-card);
            border-radius: var(--radius);
            padding: 16px 24px; /* 减少padding */
            box-shadow: var(--shadow);
            margin-bottom: 24px;
        }
        
        .filter-row { display: flex; align-items: baseline; border-bottom: 1px dashed #e5e7eb; padding: 10px 0; }
        .filter-row:last-child { border-bottom: none; padding-bottom: 0; }
        .filter-row:first-child { padding-top: 0; }

        .filter-label { width: 50px; font-size: 13px; font-weight: bold; color: #9ca3af; flex-shrink: 0; }
        .filter-options { display: flex; flex-wrap: wrap; gap: 8px; }
        
        .filter-btn {
            font-size: 13px; padding: 2px 10px; border-radius: 12px;
            cursor: pointer; color: var(--text-main); transition: all 0.2s;
        }
        .filter-btn:hover { color: var(--primary-color); }
        .filter-btn.active { background: var(--primary-color); color: white; font-weight: 600; }

        /* =========================================
           [修改] 3. 紧凑型游戏网格 (Compact Grid)
           ========================================= */
        .game-grid {
            display: grid;
            /* [紧凑] 最小宽度改为 160px，容纳更多卡片 */
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); 
            gap: 16px; /* [紧凑] 间距减小 */
            margin-bottom: 40px;
        }
        a.game-card { text-decoration: none; color: inherit; display: flex; }
        .game-card {
            background: var(--bg-card);
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: transform 0.2s;
            display: flex;
            flex-direction: column;
            border: 1px solid transparent;
        }
        .game-card:hover {
            transform: translateY(-3px);
            border-color: #d1d5db;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }

        /* [修改] 正方形图片区域 */
        .card-icon-area {
            width: 100%;
            aspect-ratio: 1 / 1; /* 强制正方形 */
            position: relative;
            background: #f3f4f6;
        }
        .card-icon-area img { width: 100%; height: 100%; object-fit: cover; }
        
        /* 评分浮层 (改小) */
        .card-score {
            position: absolute; bottom: 4px; right: 4px;
            background: rgba(0,0,0,0.6); color: #fbbf24;
            padding: 1px 5px; border-radius: 4px;
            font-size: 11px; font-weight: bold;
        }

        /* [紧凑] 内容区 */
        .card-body { 
            padding: 10px; /* 减少内边距 */
            flex: 1; 
            display: flex; 
            flex-direction: column; 
            text-align: center; /* 图标模式下通常居中对齐 */
        }
        
        .card-title {
            font-size: 14px; /* 字体改小 */
            font-weight: bold;
            margin-bottom: 4px;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
            color: #111827;
        }
        
        .card-tags {
            font-size: 12px; color: #6b7280; margin-bottom: 8px;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }

        /* 底部按钮 */
        .dl-btn {
            display: block; width: 100%;
            font-size: 12px;
            color: var(--primary-color);
            background: #eff6ff;
            padding: 6px 0;
            border-radius: 4px;
            font-weight: 600;
            margin-top: auto; /* 推到底部 */
        }
        .dl-btn:hover { background: var(--primary-color); color: white; }

        /* =========================================
           4. 分页
           ========================================= */
        .pagination { display: flex; justify-content: center; gap: 6px; margin-bottom: 64px; }
        .page-item {
            width: 32px; height: 32px; /* 更小 */
            display: flex; align-items: center; justify-content: center;
            border-radius: 4px;
            background: white; color: var(--text-main); font-size: 13px;
            cursor: pointer; border: 1px solid #e5e7eb;
        }
        .page-item:hover { border-color: var(--primary-color); color: var(--primary-color); }
        .page-item.active { background: var(--primary-color); color: white; border-color: var(--primary-color); }
        .page-item.disabled { opacity: 0.5; cursor: not-allowed; border-color: #e5e7eb; }

        footer { background-color: #111827; color: #9ca3af; padding: 40px 0; margin-top: auto; text-align: center; font-size: 14px; }

        @media (max-width: 768px) {
            .nav-links, .search-box { display: none; }
            .mobile-menu-btn { display: block; }
            /* 移动端一行3个或者2个，这里设为3个更紧凑，或者最小100px */
            .game-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } 
            .filter-row { flex-direction: column; align-items: flex-start; gap: 8px; }
            .filter-label { margin-bottom: 4px; }
            .card-body { padding: 8px; }
        }
        /* 针对特小屏幕适配 */
        @media (max-width: 480px) {
            .game-grid { grid-template-columns: repeat(2, 1fr); }
        }