/* 分类页面样式 */

/* 页面标题 */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    box-shadow: 0 0 40px rgba(78, 204, 163, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(78, 204, 163, 0.1);
    transition: all 0.3s;
}

.page-header:hover {
    box-shadow: 0 0 60px rgba(78, 204, 163, 0.25);
    border-color: rgba(78, 204, 163, 0.2);
}

.page-title {
    font-size: 36px;
    color: #4ecca3;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(78, 204, 163, 0.5);
    font-weight: 700;
    letter-spacing: 1px;
}

.page-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

/* 分类网格 */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.category-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 30px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(78, 204, 163, 0.1);
    backdrop-filter: blur(8px);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4ecca3, #00d4ff);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(78, 204, 163, 0.3), 0 0 20px rgba(78, 204, 163, 0.2);
    border-color: rgba(78, 204, 163, 0.3);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(78, 204, 163, 0.2), rgba(0, 212, 255, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, rgba(78, 204, 163, 0.4), rgba(0, 212, 255, 0.4));
    transform: scale(1.1) rotate(5deg);
}

.category-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: rotate(45deg) translateX(-100%); }
    100% { transform: rotate(45deg) translateX(100%); }
}

.category-icon i {
    font-size: 32px;
    color: #4ecca3;
    z-index: 1;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon i {
    color: #fff;
    transform: scale(1.2);
}

.category-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 600;
    z-index: 1;
    position: relative;
}

.category-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
    z-index: 1;
    position: relative;
}

.category-arrow {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(78, 204, 163, 0.5);
    transition: all 0.3s ease;
    font-size: 18px;
    z-index: 1;
}

.category-card:hover .category-arrow {
    right: 20px;
    color: #4ecca3;
    transform: translateY(-50%) scale(1.2);
}

/* 游戏列表 */
.games-section {
    margin-top: 40px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    border: 1px solid rgba(78, 204, 163, 0.1);
    backdrop-filter: blur(10px);
}

.games-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.game-item {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(78, 204, 163, 0.1);
    cursor: pointer;
}

.game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(78, 204, 163, 0.3);
    border-color: rgba(78, 204, 163, 0.3);
}

.game-item-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.game-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-item:hover .game-item-image img {
    transform: scale(1.1);
}

.game-item-info {
    padding: 15px;
}

.game-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-item-category {
    font-size: 12px;
    color: rgba(78, 204, 163, 0.8);
    margin-bottom: 10px;
}

.game-item-stats {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .games-list {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .games-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .game-item-image {
        height: 100px;
    }
    
    .game-item-info {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .games-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .hot-games .games-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .hot-games .games-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .page-subtitle {
        font-size: 14px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }
    
    .category-card {
        padding: 20px;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .category-icon i {
        font-size: 24px;
    }
    
    .category-card h3 {
        font-size: 18px;
    }
    
    .hot-games .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        padding: 25px;
    }
    
    .hot-games .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card {
    animation: fadeInUp 0.6s ease forwards;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }
.category-card:nth-child(6) { animation-delay: 0.6s; }
.category-card:nth-child(7) { animation-delay: 0.7s; }
.category-card:nth-child(8) { animation-delay: 0.8s; }
.category-card:nth-child(9) { animation-delay: 0.9s; }