/* 游戏卡片样式 */

.game-card {
    position: relative;
    width: 100%;
    height: 460px;
    overflow: visible;
    /* 背景图移至顶层伪元素，避免被内部图片遮挡 */
    background-size: 100% 100%;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    padding: 0.5rem 0.3rem 0.5rem 0.7rem;
}

.game-card::after {
    content: "";
    position: absolute;
    inset: -0.5%;
    pointer-events: none;
    background-image: url("../pictures/playCard/border.png");
    background-size: 102% 100%;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 5;
}

.card_container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(10, 20, 40, 0.7);

}

.game-card:hover {
    border-color: rgba(255, 200, 100, 0.8);
    box-shadow: 0 15px 40px rgba(255, 200, 100, 0.4);
    transform: translateY(-5px);
}

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

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

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

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

.sm_tips {
    font-weight: 400;
    font-size: 1.1rem;
    color: #FFFFFF;
    margin-bottom: 5px;
}

.txt_tips_img {
    width: 94%;
    height: auto;
    margin: 10px auto 5px;
}

.game_btn {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 92%;
    aspect-ratio: 3.85 / 1;
    color: #76491d;
    font-weight: 400;
    font-size: 1.2rem;
    text-decoration: none;
    background-image: url("../pictures/playCard/btn_bg.png");
    background-size: 100% 100%;
    transition: all 0.3s;
    margin: 1rem auto 0.5rem;
}

.game_btn:hover {
    transform: scale(1.05);
}


/* 翻转卡片容器 */

.trans_card_container {
    box-sizing: border-box;
    width: 100%;
    min-height: 460px;
    perspective: 1000px;
    margin-bottom: 30px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .trans_card_container {
        min-height: 450px;
        margin-top: 0;
    }

    .card-face {
        height: 450px;
    }

    .game-card {
        height: 450px;
    }
}

.trans_card_container:hover {
    transform: translateY(-15px);
    transition: all 0.6s ease;
}

.trans_card_container:hover .trans_card_area.flipped {
    transform: rotateY(180deg) !important;
}


/* 翻转卡片区域 */

.trans_card_area {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    cursor: pointer;
    transition: all 0.6s ease;
}

.trans_card_area.flipped {
    transform: rotateY(180deg) !important;
}


/* 卡片正反面 */

.card-face {
    position: absolute;
    width: 100%;
    height: 460px;
    height: fit-content;
    backface-visibility: hidden;
}

.card-front {
    transform: rotateY(0);
}

.card-back {
    transform: rotateY(-180deg);
}

/* 队长区域 */
.teamer_area {
    display: flex;
    align-items: center;
}

.teamer_intro {
    flex: 1;
    margin-left: 30px;
    display: flex;
    flex-direction: column;
}

.teamer_intro>div {
    margin-bottom: 10px;
    font-weight: 400;
    font-size: 1rem;
    color: #FFFFFF;
}

.teamer_header {
    width: 245px;
    height: 245px;
    border-radius: 50%;
    overflow: visible;
    position: relative;
    background-size: 100% 100%;
    box-sizing: border-box;
    padding: 22px;
}

.teamer_header::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background-image: url("../pictures/playCard/headergb.png");
    background-size: 96% 96%;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 15;
}

.teamer_area .teamer_header .team_avater {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.mt_teame {
    margin-top: 80px;
}

.team_other {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.team_other .other_one {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    overflow: visible;
    position: relative;
    background-size: 100% 100%;
    box-sizing: border-box;
    padding: 5% 5% 5% 5%;

}

.team_other .other_one::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background-image: url("../pictures/playCard/userbg.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 15;
}

.team_other .other_one img {
    width: 100%;
    border-radius: 50%;
    height: 100%;
}

.palyer_intros {
    max-height: 140px;
    overflow-y: auto;
    margin-top: 10px;
}

/* 响应式设计 */

/* 小屏幕端 (平板) */
@media (max-width: 1024px) and (min-width: 768px) {
    .game_btn {
        width: 90%;
    }

    .txt_tips_img {
        width: 80%;
    }

    .team_other {
        box-sizing: border-box;
        padding: 0 5%;
        margin: 0 auto;
    }

    .mt_teame {
        margin-top: 40px;
    }

    .palyer_intros {
        max-height: 190px;
        margin-top: 15px;
    }

    .game-content {
        padding: 15px;
    }
}

/* 移动端 */
@media (max-width: 767px) {
    .game_btn {
        width: 80%;
    }

    .game-content {
        padding: 10px;
    }

    .palyer_intros {
        max-height: 170px;
        margin-top: 10px;
    }

    .txt_tips_img {
        width: 80%;
    }

    .team_other {
        box-sizing: border-box;
        padding: 0 15%;
        margin: 0 auto;
    }

    .mt_teame {
        margin-top: 40px;
    }

    .teamer_header {
        width: 130px;
        height: 130px;
        border-radius: 50%;
        overflow: visible;
        position: relative;
        background-size: 100% 100%;
        box-sizing: border-box;
        padding: 22px;
        margin-bottom: 20px;
    }

    .teamer_intro {
        margin-left: 15px;
    }

    .teamer_intro>div {
        font-size: 0.8rem;
    }

    .game-card {
        transform: scale(0.95);
    }

    .trans_card_container:hover {
        transform: unset;
    }

    .trans_card_container .trans_card_area.flipped {
        transform: rotateY(180deg) !important;
    }
   
}


@keyframes modalSlide {
    from {
        top: -100%;
        transform: translate(-50%, 0);
        opacity: 0;
    }

    to {
        top: 50%;
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}