/* 搜索页面样式 */

.search-container {
    padding: 40px 0;
    min-height: 60vh;
}

.search-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 50px 0;
    margin-bottom: 40px;
    border-radius: 20px;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.search-box h1 {
    color: white;
    font-size: 42px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.search-form {
    display: flex;
    gap: 10px;
    background: white;
    padding: 8px;
    border-radius: 30px;
    box-shadow: var(--shadow-hover);
}

.search-input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    border-radius: 25px;
    font-family: 'Comic Sans MS', cursive;
    outline: none;
}

.search-btn {
    padding: 15px 35px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* 搜索结果 */
.search-results {
    margin-bottom: 40px;
}

.results-header {
    margin-bottom: 30px;
}

.results-header h2 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.results-count {
    font-size: 16px;
    color: var(--text-light);
}

.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results .icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.no-results p {
    font-size: 18px;
    color: var(--text-light);
}

/* 初始展示游戏 */
.initial-games {
    margin-top: 40px;
}

.initial-games h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    position: relative;
    min-height: 400px;
}

.no-results {
    position: absolute;
    top: 5%;
    left: 0;
    right: 0;
    margin: auto;
}

.game-card {
    cursor: pointer;
}

.game-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.game-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.game-info {
    padding: 15px;
}

.game-title {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 8px;
}

.game-date {
    font-size: 13px;
    color: var(--text-light);
}

/* 加载更多按钮 */
.load-more-container {
    text-align: center;
    margin: 40px 0;
}

#load-more-btn {
    display: none;
}

#load-more-btn.show {
    display: inline-block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-box h1 {
        font-size: 32px;
    }

    .search-form {
        flex-direction: column;
        gap: 10px;
    }

    .search-btn {
        width: 100%;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .game-image {
        height: 140px;
    }

    .game-title {
        font-size: 16px;
    }

    .no-results .icon {
        font-size: 60px;
    }

    .no-results h3 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .games-grid {

        grid-template-columns: repeat(2, 1fr);
    }


}