/* 瀑布流容器 - Pinterest风格 */
        .masonry-grid {
            display: grid;
            grid-template-columns: repeat(1, 1fr); /* 默认1列 */
            gap: 16px;
            justify-items: center;
        }

        /* 课程卡片 - 复刻图1样式 */
        .game-card {
            background-color: #ffffff;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            max-width: 100%; /* 默认适应父容器 */
            width: 100%;
            animation: fadeInUp 0.5s ease-out;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .game-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
        }

        /* 响应式设计 - 按照屏幕宽度设置固定列数 */
        
        /* <768px 时，显示1列 */
        @media (max-width: 479px) {

            .search-container {
                order: 3;
                width: 100%;
                margin: 8px 0;
            }

            .masonry-grid {
                grid-template-columns: repeat(1, 1fr);
                gap: 12px;
            }

            .game-card {
                max-width: 100%;
            }
        }
        
        /* 480-768px 时，显示2列 */
        @media (min-width: 480px) and (max-width: 767px) {
            .masonry-grid {
                grid-template-columns: repeat(1, 1fr);
            }
        }

        /* 768-1024px 时，显示2列 */
        @media (min-width: 768px) and (max-width: 1023px) {
            .masonry-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        /* 1024-1280px 时，显示3列 */
        @media (min-width: 1024px) and (max-width: 1279px) {
            .masonry-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }
        
        /* 1280-1680px 时，显示4列 */
        @media (min-width: 1280px) and (max-width: 1679px) {
            .masonry-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }
        
        /* >1680px 时，显示5列 */
        @media (min-width: 1680px) {
            .masonry-grid {
                grid-template-columns: repeat(5, 1fr);
            }
        }


        /* 课程图片样式 */
        .game-image-container {
            overflow: hidden;
            padding-bottom: 75%; /* 创建4:3宽高比 */
            position: relative;
            padding-left: 12px;
            padding-right: 12px;
        }

        .game-image {
            position: absolute;
            top: 12px;
            left: 12px;
            right: 12px;
            bottom: 12px;
            width: calc(100% - 24px);
            height: calc(100% - 24px);
            object-fit: cover;
            display: block;
            transition: transform 0.3s ease;
            cursor: pointer;
        }

        /* 移除hover缩放效果 */
        .game-card:hover .game-image,
        .game-card:hover .game-screenshot {
            transform: none;
        }

        /* 课程信息样式 */
        .game-info {
            padding: 12px 16px;
        }

        .game-name {
            font-size: 18px;
            font-weight: 700;
            color: #333;
            margin: 0 0 8px;
            font-family: 'Arial', sans-serif;
            cursor: pointer;
        }

        .game-bio {
            font-size: 14px;
            color: #666;
            margin: 0 0 12px;
            line-height: 1.4;
            display: -webkit-box;
            display: -moz-box;
            display: box;
            -webkit-line-clamp: 2;
            -moz-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            -moz-box-orient: vertical;
            box-orient: vertical;
            overflow: hidden;
            font-family: 'Arial', sans-serif;
            cursor: pointer;
        }

        /* 标签样式 */
        .game-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 12px;
        }

        .game-tag {
            font-size: 11px;
            color: #fff;
            background-color: #000;
            padding: 4px 8px;
            border-radius: 12px;
            font-family: 'Arial', sans-serif;
            font-weight: normal;
        }

        /* 统计信息样式 */
        .game-stats {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-family: 'Arial', sans-serif;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 12px;
            color: #666;
        }

        .stats-left {
            display: flex;
            align-items: center;
        }

        .stats-right {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .stat-item {
            font-size: 14px;
            color: #666;
            display: flex;
            align-items: center;
            gap: 4px;
            cursor: pointer;
            transition: color 0.2s ease;

        }

        .stat-item i{
            color:#999;
        }

        .favorite-stat i.fas {
            color: rgb(255, 193, 7);
        }
        .like-stat i.fas {
            color: rgb(230, 0, 35);
        }

        

        .game-title {
            font-size: 14px;
            font-weight: 600;
            margin: 0 0 4px;
            color: #111;
            line-height: 1.4;
        }

        .game-description {
            font-size: 13px;
            color: #666;
            margin: 0 0 8px;
            line-height: 1.4;
            display: -webkit-box;
            display: -moz-box;
            display: box;
            -webkit-line-clamp: 2;
            -moz-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            -moz-box-orient: vertical;
            box-orient: vertical;
            overflow: hidden;
        }

        .game-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            margin: 0 0 8px;
        }

        .tag {
            background-color: #f0f0f0;
            color: #666;
            font-size: 11px;
            padding: 2px 6px;
            border-radius: 10px;
        }

        .game-developer {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            color: #999;
            margin: 0 0 8px;
        }

        

        

        /* 搜索条件区域样式 */
        .search-Condition {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
            padding: 0px 0;
        }

        /* 搜索框样式 */
        .search-box-container {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .search-input-wrapper {
            flex: 1;
            max-width: 600px;
        }

        .search-input {
            width: 100%;
            padding: 0px 16px;
            border: 1px solid #ddd;
            height:32px;
            border-radius: 24px;
            font-size: 16px;
            color: #333;
            background-color: #fff;
            transition: all 0.2s ease;
        }

        .search-input:focus {
            outline: none;
            border-color: #e60023;
            box-shadow: 0 0 0 2px rgba(230, 0, 35, 0.1);
        }

        .search-input::placeholder {
            color: #999;
        }

        .search-toggle {
            display: flex;
            align-items: center;
        }

        .search-toggle-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            background-color: #f0f0f0;
            border: 1px solid #ddd;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .search-toggle-btn:hover {
            background-color: #e0e0e0;
        }

        .search-toggle-btn i {
            font-size: 14px;
            color: #666;
        }

        .search-button {
            display: flex;
            align-items: center;
        }

        .search-btn {
            padding: 0px;
            background-color: #000;
            border: 1px solid #000;
            height:32px;
            width:32px;
            color: #fff;
            border: none;
            border-radius: 24px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .union-btn:hover {
            background-color: transparent;
            transform: translateY(-1px);
        }

        .union-btn {
            display: flex;
            flex-direction: row;
            flex-wrap: nowrap;
            align-content: center;
            justify-content: center;
            align-items: center;
            padding: 0px;
            background-color: transparent;
            border: none;
            height:32px;
            color: #000;
            border: none;
            font-size: 18px;
            cursor: pointer;
            transition: all 0.2s ease;
            gap:3px;
        }

        .union-btn i{
            width:20px;
            font-size: 18px;
        }
        .union-btn span{
            font-size: 14px;
        }

        .union-btn.union-favorite{
            color: #666;
        }
        .union-btn.union-favorite.active{
            color: rgb(255, 193, 7);
        }

        .union-btn.union-like{
            color: #666;
        }
        .union-btn.union-like.active{
            color: rgb(230, 0, 35);
        }

        .union-btn.union-follow{
            color: #666;
        }
        .union-btn.union-follow.active{
            color: #007bff;
        }

        .personal-filters {
            display: none;
            align-items: center;
            gap: 10px;
        }

        .search-btn:hover {
            background-color: #333;
            transform: translateY(-1px);
        }

        .union-conditions {
            display: none;
        }

        /* 排序按钮样式 */
        .sort-container {
            display: flex;
            align-items: center;
            flex-direction: row;
            flex-wrap: nowrap;
            align-content: center;
            justify-content: center;
            gap:10px;
        }

        .sort-button-wrapper {
            position: relative;
        }

        .sort-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 0px 16px;
            background-color: #fff;
            border: 1px solid #ddd;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 600;
            height:32px;
            color: #333;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .sort-btn:hover {
            background-color: #f8f9fa;
            border-color: #ccc;
        }

        .sort-btn i {
            font-size: 12px;
            color: #666;
        }

        /* 排序下拉菜单 */
        .sort-dropdown {
            position: absolute;
            top: 100%;
            right: 0;
            margin-top: 8px;
            width: 180px;
            background-color: #fff;
            border: 1px solid #ddd;
            border-radius: 8px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            display: none;
        }

        .sort-dropdown.show {
            display: block;
        }

        .sort-option {
            padding: 12px 16px;
            font-size: 14px;
            color: #333;
            cursor: pointer;
            transition: all 0.2s ease;
            border-bottom: 1px solid #f0f0f0;
        }

        .sort-option:last-child {
            border-bottom: none;
        }

        .sort-option:hover {
            background-color: #f8f9fa;
            color: #e60023;
        }

        .sort-option.active {
            background-color: #f0f0f0;
            font-weight: 600;
        }

        /* 加载更多按钮 */
        .load-more {
            display: block;
            margin: 32px auto;
            padding: 12px 24px;
            background-color: transparent;
            color: #333;
            border: 1px solid #ddd;
            border-radius: 24px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .load-more:hover {
            background-color: #f0f0f0;
        }

        /* 加载状态 */
        .loading {
            opacity: 0.7;
            pointer-events: none;
        }

        .loading .fa-spinner {
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        /* 课程详情弹窗样式 */
        .game-modal {
            display: none;
            position: fixed;
            z-index: 10000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            overflow: hidden;
        }

        .game-modal-content {
            background-color: #fff;
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;
            border-radius: 0px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
            animation: modalFadeIn 0.3s ease-out;
        }

        @keyframes modalFadeIn {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* 开发者信息样式 */
        .developer-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 16px;
            background-color: #fafafa;
            border-bottom: 1px solid #eee;
        }

        .developer-left {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .developer-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
        }

        .developer-name {
            font-size: 14px;
            font-weight: 600;
            color: #333;
            font-family: 'Arial', sans-serif;
        }

        .developer-right {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .follow-btn {
            padding: 6px 12px;
            background-color: transparent;
            color: #007bff;
            border: 1px solid #007bff;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .follow-btn:hover {
            background-color: #e6f0ff;
        }

        .follow-btn.followed {
            background-color: #007bff;
            color: #fff;
        }

        .follow-btn.followed:hover {
            background-color: #0056b3;
        }

        .more-btn {
            padding: 6px;
            background-color: transparent;
            border: none;
            border-radius: 50%;
            color: #666;
            cursor: pointer;
            transition: all 0.2s ease;
        }
