/* ========== 首页 - 现代深蓝紫色风格 ========== */

/* 热门推荐区 */
.rubfvd-recommend-content-hot {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 10px 20px;
    background: linear-gradient(145deg, #1e1e32, #252540);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 16px;
    padding: 12px;
    position: relative;
    animation: fadeInUp 0.5s ease backwards;
}

.rubfvd-recommend-content-hot::before {
    content: 'HOT';
    position: absolute;
    top: -12px;
    left: 16px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
    z-index: 2;
    letter-spacing: 1px;
}

.rubfvd-recommend-content-hot img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.rubfvd-recommend-content-hot img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.25);
}

/* 推荐游戏列表 */
.rubfvd-recommend-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 10px;
}

.rubfvd-recommend-content img {
    width: 100%;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.rubfvd-recommend-content img:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.2);
}

/* 推荐卡片 */
.recommend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
    margin: 15px 0px;
    position: relative;
    background: linear-gradient(145deg, #1e1e32, #252540);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.4s ease backwards;
}

.recommend-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

.recommend-item:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.recommend-item a {
    align-items: center;
    justify-self: center;
    text-decoration: none;
    width: 100%;
}

.recommend-item img {
    width: 100%;
    object-fit: contain;
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    transition: transform 0.3s ease;
}

.recommend-item:hover img {
    transform: scale(1.03);
}

.recommend-item-info {
    display: flex;
    flex-direction: column;
    padding: 10px;
    flex-wrap: wrap;
    position: relative;
    background: rgba(30, 30, 50, 0.8);
    width: 100%;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.recommend-item-info h3 {
    color: #c7d2fe;
    font-size: 0.95rem;
    margin: 0px 10px;
    font-weight: 600;
}

.recommend-item-info p {
    display: flex;
    color: #94a3b8;
    font-size: 0.8rem;
    margin: 10px 10px;
}

.recommend-item-btn a {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.recommend-item-btn {
    display: flex;
    width: 100%;
    height: 32px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 0 0 16px 16px;
    right: 0px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
}

.recommend-item-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.recommend-item-btn:hover::after {
    left: 150%;
}

.recommend-item-btn:hover {
    transform: scale(1.02);
    background: linear-gradient(135deg, #818cf8, #a78bfa);
}

.recommend-item-btn img {
    width: 28px;
    height: 16px;
    filter: brightness(0) invert(1);
}
