/* 社区组件容器 */
.community {
    background-color: #FFD700;
    border-radius: .7em;
    padding: 1.2em;
    position: absolute;
    bottom: 5px;
    right: 16px;
    width: 328px;
    height: 482px;
    font-size: 20px;
    box-sizing: border-box;
    z-index: 99999999;
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: top center;
}

.community_sum {
    height: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 108px;
}

.cy_img {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin-bottom: 1em;
}

.cy_img .cg_l {
    width: 178px;
}

.cg_l p {
    background-color: #FFA500;
    color: #151B74;
    font-size: .62em;
    font-weight: bold;
    padding-left: 1em;
    text-align: left;
    clip-path: polygon(0 0, 100% 0%, 95% 100%, 0% 100%);
}

.cy_img .cg_r {
    width: 94px;
}

.cy_img img {
    width: 100%;
}

.cy_count {
    width: 100%;
    font-size: 1em;
    color: #000;
    margin-bottom: 1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#community_iframe {
    opacity: 0;
    visibility: hidden;
    height: 85vh;
    width: 85vh;
    max-width: 800px;
    height: 800px;
    position: absolute;
    bottom: 10px;
    right: 0;
    border-radius: .4em;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    transition-delay: 0s;
    z-index: 9999;
    background-color: #ffffff;
}

/*  */
/* iframe过渡动画 */
.iframe-transition {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(10px);
}

.iframe-transition.v-enter-active,
.iframe-transition.v-leave-active {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.iframe-transition.v-enter-from {
    opacity: 0;
    transform: translateY(10px);
}

.iframe-transition.v-enter-to {
    opacity: 1;
    transform: translateY(0);
}

.iframe-transition.v-leave-from {
    opacity: 1;
    transform: translateY(0);
}

.iframe-transition.v-leave-to {
    opacity: 0;
    transform: translateY(10px);
}

.community:hover #community_iframe {
    opacity: 1;
    visibility: visible;
    transition-delay: 0.2s;
}

.wap_community {
    display: none;
}

/* 外层布局 */
.card-container {
    background: #2c292c;
    width: 58px;
    height: 58px;
    position: relative;
    perspective: 500px;
    border-radius: 6px;
    box-shadow: 0 0 1em rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

/* .card-container::before {
    z-index: 99;
    content: " ";
    position: absolute;
    left: 0;
    top: 50%;
    background: #120f12;
    width: 100%;
    height: 6px;
    margin-top: -3px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
} */

/* 数字样式 */
.card-item {
    position: absolute;
    width: 100%;
    height: 50%;
    left: 0;
    top: 0;
    overflow: hidden;
    background: #ffffff;
    color: #151B74;
    font-size: 1.8em;
    font-weight: bold;
    text-align: center;
    font-family: Arial, sans-serif;
}

.card1 {
    line-height: 58px;
}

.card2 {
    top: 50%;
}

.card2 {
    z-index: 2;
    top: 50%;
    line-height: 0;
    transform-origin: center top;
    transform: rotateX(180deg);
    backface-visibility: hidden;
    /* 添加过渡效果 */
    transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.card3 {
    line-height: 58px;
    transform-origin: center bottom;
    backface-visibility: hidden;
    z-index: 2;
    /* 添加过渡效果 */
    transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.card4 {
    top: 50%;
    line-height: 0;
}

/* 翻转动画触发类 */
.flip .card2 {
    transform: rotateX(0);
}

.flip .card3 {
    transform: rotateX(-180deg);
}

/* 分隔符样式 */
.separator {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    z-index: 1;
}

.separator-dot {
    width: 5px;
    height: 5px;
    background-color: #ffffff;
}


/*  */
.cy_progress {
    width: 100%;
    height: 60px;
    background-color: rgba(255, 255, 255, .9);
    backdrop-filter: blur(6px);
    border-radius: .35em;
    padding: 0 1em;
    margin-bottom: 1em;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
}

.cy_progress img {
    width: 1em;
    height: 1em;
    margin-right: .5em;
}

.cy_progress span {
    font-size: 1em;
    text-transform: uppercase;
    color: #151B74;
    font-weight: bold;
}

/*  */
.cy_end {
    width: 100%;
    height: 60px;
    background-color: rgba(255, 255, 255, .9);
    backdrop-filter: blur(6px);
    border-radius: .35em;
    padding: 0 1em;
    margin-bottom: 1em;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
}

.cy_end img {
    width: 1em;
    height: 1em;
    margin-right: .5em;
}

.cy_end span {
    font-size: 1em;
    text-transform: uppercase;
    color: #151B74;
    font-weight: bold;
}


.cy_button {
    width: 100%;
    height: 108px;
    background-color: #151B74;
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 4px solid #FFA500;
    border-left: 4px solid #FFA500;
    border-right: 4px solid #FFA500;
    border-radius: 0 0 .7em .7em;
}

.cy_button button {
    width: 280px;
    height: 64px;
    background-color: #FFA500;
    color: #151B74;
    border: none;
    border-radius: .35em;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}



@media (max-width: 799px) {
    .community {
        display: none;
    }

    .wap_community {
        display: block;
        position: fixed;
        bottom: 6.7rem;
        right: .3rem;
        height: auto;
        z-index: 999;
        background-color: #000000;
        border-radius: 2em;
        font-size: .36rem;
        /* 添加过渡效果 */
        transition: all 0.3s ease;
    }

    .wcom_cent {
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: .4em .6em;
        /* 统一所有属性的过渡效果 */
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        /* 添加变换原点 */
        transform-origin: center;
    }

    .wcom_cent.add_cent {
        padding: .4em;
        /* 统一所有属性的过渡效果 */
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        /* 添加变换原点 */
        transform-origin: center;
    }

    .wcom_cent img {
        width: 2.3em;
        height: 2.3em;
        /* 统一所有属性的过渡效果 */
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        /* 添加变换原点 */
        transform-origin: center;
    }

    .wcom_cent span {
        color: #ffffff;
        font-weight: bold;
        line-height: 1;
        font-size: 1em;
        margin-left: .5em;
    }

    /* 默认状态样式 */
    .wcom_cent span.community-name-default {
        opacity: 1;
        margin-left: .5em;
        max-width: 15em;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* 滚动后的样式 */
    .wcom_cent span.community-name-scrolled {
        opacity: 0;
        margin-left: 0;
        max-width: 0;
        overflow: hidden;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

.input_test {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 111111111;
}