/* Category Page Styles */

.category-page {
    padding: 40px 0 60px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    min-height: calc(100vh - 200px);
}

/* Category Header Section */
.category-header {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(138, 43, 226, 0.1));
    padding: 60px 30px;
    margin-bottom: 50px !important;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.category-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(20px, -20px) scale(1.1);
    }
}

.category-page h2 {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    font-weight: 800;
    letter-spacing: 1px;
}

.category-description {
    text-align: center;
    font-size: 1.2rem;
    color: #f0f0f0;
    max-width: 900px;
    margin: 0 auto;
    line-height: 2;
    padding: 20px 30px;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.category-page .games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.category-page .game-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

/* 为分类页面游戏卡片添加渐变色边框效果 */
.category-page .game-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(-225deg, #A445B2 0%, #D41872 52%, #FF0066 100%);
    z-index: -1;
    border-radius: 10px;
    padding: 2px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
}

.category-page .game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.category-page .game-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.category-page .game-card-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-page .game-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.category-page .game-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    flex: 1;
}

.category-page .game-card .play-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #ff6b6b, #8a2be2);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
    margin-top: auto;
}

.category-page .game-card .play-btn:hover {
    background: linear-gradient(135deg, #ff5252, #7a1ad2);
}

/* Category Filter */
.category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.category-filter-btn {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.category-filter-btn.active,
.category-filter-btn:hover {
    background: linear-gradient(135deg, #ff6b6b, #8a2be2);
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 30px;
}

.load-more-btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #ff6b6b, #8a2be2);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.3s;
}

.load-more-btn:hover {
    transform: scale(1.05);
}

.category-icon {
    font-size: 1.6rem;
    margin-right: 10px;
}

.category-name {
    font-size: 1.2rem;
    color: #DC588E;
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-page {
        padding: 20px 0 40px;
    }

    .category-header {
        padding: 40px 20px;
        margin-bottom: 30px;
        border-radius: 15px;
    }
    
    .category-page h2 {
        font-size: 2.2rem;
    }

    .category-description {
        font-size: 1rem;
        line-height: 1.8;
        padding: 15px 20px;
    }
    
    .category-page .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    /* 优化移动端分类页面游戏卡片 */
    .category-page .game-card {
        border-radius: 8px;
    }
    
    .category-page .game-card::after {
        border-radius: 8px;
    }
    
    .category-page .game-card-content {
        padding: 12px;
    }
    
    .category-page .game-card h3 {
        font-size: 1.1rem;
    }
    
    .category-page .game-card p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .category-page h2 {
        font-size: 1.8rem;
    }
    
    .category-page .games-grid {
        grid-template-columns: 1fr;
    }
    
    .category-filter {
        gap: 5px;
    }
    
    .category-filter-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    /* 进一步优化超小屏幕分类页面游戏卡片 */
    .category-page .game-card {
        border-radius: 6px;
    }
    
    .category-page .game-card::after {
        border-radius: 6px;
    }
    
    .category-page .game-card-content {
        padding: 10px;
    }
    
    .category-page .game-card h3 {
        font-size: 1rem;
    }
    
    .category-page .game-card p {
        font-size: 0.75rem;
    }
    
    .category-page .game-card .play-btn {
        padding: 8px;
        font-size: 0.9rem;
    }
}