.game-card::after {
    top: calc(50% - 20px);
}

.game-detail {
    background-color: #ffffff28;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    padding: 5vw;
    width: 80vw;
    max-width: 600px;
    margin: 80px auto 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.game-logo-container {
    position: relative;
    margin-bottom: 20px;
}

.game-detail-logo {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 15px;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.game-detail-logo:hover {
    transform: scale(1.05);
}

.game-detail-play {
    position: absolute;
    top: calc(50% - 20px);
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #f07167, #ff6f61, #f07167);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(240, 113, 103, 0.4);
    transition: all 0.3s ease;
    /* animation: pulse 2s infinite; */
    /* animation: breathe 2s infinite; */
    animation: shake 1.3s infinite;

}

/* 按钮 hover 效果 */
.game-detail-play:hover {
    background: linear-gradient(45deg, #ff6f61, #f07167, #ff6f61);
    box-shadow: 0 6px 20px rgba(240, 113, 103, 0.6);
    animation: none;
}

@keyframes pulse {
    0% {
        transform: translateX(-50%) scale(1);
    }

    50% {
        transform: translateX(-50%) scale(1.1);
    }

    100% {
        transform: translateX(-50%) scale(1);
    }
}

@keyframes breathe {
    0% {
        opacity: 0.8;
        box-shadow: 0 0 10px rgba(240, 113, 103, 0.6);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(240, 113, 103, 0.8);
    }

    100% {
        opacity: 0.8;
        box-shadow: 0 0 10px rgba(240, 113, 103, 0.6);
    }
}

@keyframes shake {
    0% {
        transform: translateX(-50%) rotate(0deg);
    }

    6% {
        transform: translateX(-50%) rotate(-10deg);
    }

    12% {
        transform: translateX(-50%) rotate(10deg);
    }

    18% {
        transform: translateX(-50%) rotate(-10deg);
    }

    24% {
        transform: translateX(-50%) rotate(0deg);
    }

    100% {
        transform: translateX(-50%) rotate(0deg);
    }
}


.game-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #0081a7;
}

.game-description-container {
    text-align: left;
    margin-bottom: 20px;
    position: relative;
    color: #696666;
}

.game-description {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.8em;
    transition: max-height 1s ease, -webkit-line-clamp 1s ease;
}

.game-description.expanded {
    -webkit-line-clamp: unset;
    max-height: 1000px;
}

/* 展开/收起按钮 */
.toggle-description {
    background: none;
    border: none;
    color: #0081a7;
    font-size: 20px;
    cursor: pointer;
    position: absolute;
    right: -20px;
    bottom: 0;
    margin: 0 0 0 10px;
    transition: transform 0.5s ease;
}

.toggle-description:hover {
    color: #00afb9;
    transform: scale(1.1);
}

.toggle-description.rotated {
    transform: rotate(180deg);
}