/* 卡片翻转效果样式 */
.rotate-container {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1000px; /* 添加3D透视效果 */
}

.rotate {
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    height: 100%;
    width: 100%;
    position: relative;
}

.rotate .front,
.rotate .back {
    cursor: pointer;
}

.rotate-container.rotate .front,
.rotate-container.rotate .back {
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -o-backface-visibility: hidden;
    backface-visibility: hidden;

    /* Set the transition effects */
    -webkit-transition: -webkit-transform 0.4s;
    -moz-transition: -moz-transform 0.4s;
    -o-transition: -o-transform 0.4s;
    transition: transform 0.4s;

    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    -o-transform-style: preserve-3d;
    transform-style: preserve-3d;

    -webkit-transform: rotateY(0deg);
    -moz-transform: rotateY(0deg);
    -o-transform: rotateY(0deg);
    transform: rotateY(0deg);
}

@media (hover: hover) {
    .rotate-container.rotate:hover .front {
        -webkit-transform: rotateY(180deg);
        -moz-transform: rotateY(180deg);
        -o-transform: rotateY(180deg);
        transform: rotateY(180deg);
    }

    .rotate-container.rotate:hover .back {
        -webkit-transform: rotateY(0deg);
        -moz-transform: rotateY(0deg);
        -o-transform: rotateY(0deg);
        transform: rotateY(0deg);
    }
}

.rotate-container.rotate.flipped .front {
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    -o-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

.rotate-container.rotate.flipped .back {
    -webkit-transform: rotateY(0deg);
    -moz-transform: rotateY(0deg);
    -o-transform: rotateY(0deg);
    transform: rotateY(0deg);
}

.rotate-container.rotate .back {
    -webkit-transform: rotateY(-180deg);
    -moz-transform: rotateY(-180deg);
    -o-transform: rotateY(-180deg);
    transform: rotateY(-180deg);
}

.front {
    width: 100%;
    height: 100%;
    border-radius: 10px; /* 与.back的圆角一致 */
    transform: rotateY(0deg);
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    padding: 0; /* 移除内边距，与.back一致 */
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    position: relative;
}

.rotate .back {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotateY(180deg);
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    width: 100%;
    height: 100%;
    /* 确保后面与前面大小一致 */
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -o-backface-visibility: hidden;
    backface-visibility: hidden;
}

.back .team-text-content {
    height: 100%;
    padding: 20px; /* 与前面卡片内容的内边距一致 */
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08); /* 与前面卡片内容的背景一致 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    overflow-y: auto; /* 允许内容溢出时滚动 */
}

.back .team-name {
    color: #B57D3F;
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: bold;
}

.back .team-text-content > div {
    font-size: 15px;
    line-height: 1.3;
    color: #ffffff;
    margin: 0;
    padding: 0;
}

/* 优化卡片背面的段落间距 */
.back .team-text-content > div p {
    margin: 0 0 5px 0;
}

/* 自定义滚动条样式 */
.back .team-text-content::-webkit-scrollbar {
    width: 4px;
}

.back .team-text-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.back .team-text-content::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

/* 响应式样式 */
@media (max-width: 767.98px) {
    .rotate-container {
        height: auto;
        min-height: 380px;
        max-height: none;
        perspective: 1000px;
    }

    .front .card-content,
    .back .team-text-content {
        min-height: 380px;
        height: auto;
    }

    /* 移动端翻转效果优化 */
    .rotate-container.rotate .front,
    .rotate-container.rotate .back {
        -webkit-backface-visibility: hidden;
        -moz-backface-visibility: hidden;
        -o-backface-visibility: hidden;
        backface-visibility: hidden;
        transition: transform 0.6s;
    }

    /* 移动端翻转效果 */
    .rotate-container.rotate.flipped .front {
        -webkit-transform: rotateY(180deg);
        -moz-transform: rotateY(180deg);
        -o-transform: rotateY(180deg);
        transform: rotateY(180deg);
    }

    .rotate-container.rotate.flipped .back {
        -webkit-transform: rotateY(0deg);
        -moz-transform: rotateY(0deg);
        -o-transform: rotateY(0deg);
        transform: rotateY(0deg);
    }

    /* 移动端卡片背面样式优化 */
    .back .team-text-content {
        padding: 15px;
        text-align: center;
        overflow-y: auto;
    }

    .back .team-name {
        font-size: 18px;
        margin-bottom: 10px;
        text-align: center;
    }

    .back .team-text-content > div {
        font-size: 14px;
        line-height: 1.3;
        text-align: center;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .rotate-container {
        height: 380px;
        max-height: 380px;
    }

    .front .card-content,
    .back .team-text-content {
        min-height: 380px;
        max-height: 380px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .rotate-container {
        height: 240px;
        max-height: 240px;
    }

    .front .card-content,
    .back .team-text-content {
        min-height: 240px;
        max-height: 240px;
    }
}

@media (min-width: 1200px) {
    .rotate-container {
        height: 280px;
        max-height: 280px;
    }

    .front .card-content,
    .back .team-text-content {
        min-height: 280px;
        max-height: 280px;
    }
}

/* 荣誉卡片样式 */
.honor-card-row {
    position: relative;
    background: rgba(255, 255, 255, 8%);
}

.honor-award-title {
    font-size: 30px;
    font-style: italic;
    font-weight: bolder;
    margin-left: 30px;
    display: flex;
    align-items: center;
}

.award-icon {
    width: 32px;
    height: 32px;
    margin-left: 20px;
}

.honor-card {
    position: relative;
    padding: 0 20px 20px 20px;
    background: transparent;
    border: transparent;
    color: white;
}

.player-img {
    width: 180px;
    height: auto;
}

.honor-card .diver {
    height: 180px;
    width: 1px;
    background: rgba(255, 255, 255, 20%);
    padding: 20px 0;
    margin: 0px 20px;
}

.honor-card .team-name {
    color: #B57D3F;
    margin-bottom: 20px;
}

.award-line {
    width: 100%;
    height: auto;
}

.honor-card .introduction {
    margin-top: 10px;
}

