*{padding: 0;margin: 0;}
a:hover{text-decoration: none;}
u,li{list-style: none;padding: 0;margin: 0;}
body{
    margin: 0;
    padding: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, PingFang SC, Hiragino Sans GB, noto sans, Microsoft YaHei, Helvetica Neue, Helvetica, Arial, sans-serif;
    position: relative;
}

.fd{
    position: fixed;
    bottom: 5%;
    right: 0%;
    width: 120px;
    display: flex;
    flex-wrap: wrap;
}
.fd .img1{
    width: 40%;
    margin: 0 auto;
    margin-bottom: 10px;
}

.fd .img2{
    width: 70%;
    margin: 0 auto;
    margin-bottom: 10px;
}

.fd p{
    font-size: 12px;
    width: 100%;
    text-align: center;
}

input::placeholder{
    color: #00cfd4;
}
textarea::placeholder{
    color: #00cfd4;
}
.login-modal input::placeholder{
    color: gray;
}

.gg{
    position: relative;
    color: #00cfd4;
}
.gel{
    width: 12%;
    position: absolute;
    top: 4%;
    right: 8%;
    cursor: pointer;
}
@media screen and (max-width: 768px) {
    .change_shuijin{
        margin: 0 auto;
    }
}

.login-modal{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 9999;
}
.login-modal>div{
    border-radius: 15px;
    background-color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 0px;
    transform: translate(-50%,-50%);
}
.login-modal>div .title{
    width: 100%;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000;
}
.login-modal>div .login_modal_btn{
    width: 80%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.login-modal>div .login_modal_btn a{
    width: 33%;
    text-align: center;
    color: #000;
    padding-bottom: 10px;
    border-bottom: 2px solid #d5d3d3;
}

.t3{
    width: 11%;
    position: absolute;
    top: 0%;
    right: 0%;
    padding: 8px;
}
.t4{
    width: 11%;
    position: absolute;
    top: 0%;
    right: 0%;
    display: none;
    padding: 8px;
}
.t3 img, .t4 img{
    width: 100%;
    height: 100%;
}

.modal1 {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}
.modal-content1 {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    width: 25%;
    margin: 18% auto;
    border-radius: 10px;
}
.modal-content1 p{
    text-align: center;
    font-size: 20px;
    margin-top: 20px;
}
.modal-content1 button{
    padding: 10px 20px;
    margin: 20px;
    cursor: pointer;
    border: 1px solid #33bec3;
    background-color: #33bec3;
    color: #fff;
    border-radius: 10px;
}
.modal-content1 button:hover{
    background-color: #42f0f6;
    border: 1px solid #42f0f6;
}


.storyFinModal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-story {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    width: 30%;
    margin: 10% auto;
    border-radius: 10px;
}

.modal-story p{
    text-align: center;
    font-size: 18px;
    /* font-family: 'douyinFont', sans-serif; */
    font-weight: bold;
    color: #33bec3;
    margin-top: 10px;
}
.modal-story button{
    padding: 10px 20px;
    margin: 13px;
    cursor: pointer;
    border: 1px solid #33bec3;
    background-color: #33bec3;
    color: #fff;
    border-radius: 10px;
}
.modal-story button:hover{
    background-color: #6BDBE7;
    border: 1px solid #6BDBE7;
}

.random_theme{
    margin-left: 100px;
    margin-top: -20px;
    font-size: 12px;
}

.random_theme_a {
    color: #00cfd4;
    text-decoration:underline;
    padding: 2px;
    width: auto;
    height: auto;
    margin: 0 auto;
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bolder;
    cursor: pointer;
    z-index: 99;
}

.random_theme_a :hover{
    color: #00cfd4;
    text-decoration:none;
}


.showRoleModal{
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.showRoleModal .role-list{
    margin-top: 5%;
    background-color: #fff;
    overflow-y: scroll;
    height: 85%;
    width: 90%;
    padding: 10px 50px;
    font-size: 12px;
    padding: 10px;
    text-align: center;
    padding-bottom: 20px;
    color: #00cfd4;
    border-radius: 20px;
}

.showRoleModal div ul{
    padding: 20px;
}

.showRoleModal div ul li{
    width: 20%;
    height: auto;
    margin: 10px 10px;
    border: 1px solid #00cfd4;
    border-radius: 10px;
    padding: 5px;
    position:relative;
    overflow: hidden;
}

.role-mask{
    background-color: rgba(0, 0, 0, 0.5);
    position:absolute;
    top: 85%;
    left: 0%;
    width: 100%;
    height: 15%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease-in-out;
    transform: translateY(100%); /* 初始位置在底部 */
}

.role-selected{
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    transform: scale(1.12);
    transition: .3s;
}

.mask-show{
    transform: translateY(0);
}


.role-mask button{
    padding: 5px 20px;
    margin: 10px;
    cursor: pointer;
    border: 1px solid #00cfd4;
    background-color: #00cfd4;
    color: #fff;
    border-radius: 10px;
}


.showRoleModal div ul li img{
    width: 100%;
}

.diary-div{
    width: 18%;
    height: 180px;
    margin: 1%;
    position: relative;
}

.diary-div img{
    width: 100%;
}

.diary-div .remove-btn {
    position: absolute;
    top: 0%;
    right: 0%;
    /* width: 15px;
    height: 15px; */
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    cursor: pointer;
    border: none;
    padding: 0px 6px;
}

.upload-photo{
    border: 1px solid #00cfd4;
    width: 100%;
    height: auto;
    border-radius: 10px;
    position: relative;
    margin-top: 5px;
    padding: 5px;
    cursor: pointer;
}

.upload-photo-selected{
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
    transition: .3s;
}


.loading{
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.loading .load{
    width: 50px;
    height: 50px;
    border-radius: 10px;
    animation: rotate 1.5s linear infinite;
}

.loading .load img{
    width: 100%;
    height: 100%;
}

.copy-voice {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.copy-voice-xcx {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    width: 28%;
    margin: 10% auto;
    border-radius: 10px;
}

.copy-voice-xcx p{
    text-align: center;
    font-size: 18px;
    margin-top: 20px;
}

.voiceCopy{
    position: relative;
    display: flex;
    align-items: center;
    color: #00cfd4;
    margin-bottom: 5px;
    cursor: pointer;
    text-decoration: underline;
}

.voiceCopy:hover{
    text-decoration:none;
}

.soundLabel{
    position: absolute;
    background-color: #d64350;
    color: #fff;
    font-size: 12px;
    padding: 2px 5px;
    border-radius: 5px;
    right: -55px;
}

.style-tag{
    position: absolute;
    color: #fff;
    border-radius: 0px 10px 10px 0px;
    font-size: 12px;
    display: flex;
    width: auto;
    padding: 2px 5px;
}

.showStyleModal{
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.showStyleModal .style-list{
    margin-top: 5%;
    background-color: #fff;
    overflow-y: scroll;
    height: auto;
    width: 90%;
    padding: 10px 10px;
    font-size: 16px;
    padding: 10px;
    text-align: center;
    padding-bottom: 0px;
    color: #00cfd4;
    border-radius: 20px;
}

.showStyleModal div ul{
    padding: 20px;
}

.showStyleModal div ul li{
    width: 45%;
    height: auto;
    margin: 10px 10px;
    border: 0px solid #00cfd4;
    border-radius: 10px;
    /* padding: 5px; */
    position:relative;
    /* overflow: hidden; */
}

.showStyleModal div ul li img{
    width: 100%;
}

.style-selected{
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    transform: scale(1.15);
    transition: .3s;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.languageRadio{
    display: flex;
    align-items: center;
    color: #00cfd4;
    margin-bottom: 5px;
    cursor: pointer;
}


.random-theme{
    margin-top: 5px;
    display: flex;
    justify-content:center;
    flex-wrap:wrap;
    font-size: 22px;
    width: 89%;
}

.random-theme div{
    border: 1px rgba(0,207,212, .3) solid;
    padding: 5px 15px;
    border-radius: 8px;
    margin: 0px 5px 5px 5px;
    box-shadow: 2px 5px 5px rgba(0,0,0, 0.2);
    cursor: pointer;
    color: rgba(0,207,212, .9);
    font-size: 16px;
    position: relative;
    animation: float 6s ease-in-out infinite,
    sway 8s ease-in-out infinite alternate;
}

.bookStyle{
    display: inline-block;
    color: #fff;
    padding: 2px 5px;
    border-radius: 0px 10px 10px 0px;
    font-size: 16px;
    width: 92px;
    cursor: pointer;
    margin-right: 10px;
}

.selectStyle{
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.5);
    transform: scale(1.2);
    transition: .3s;
}

/* 定义垂直浮动动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px); /* 调整这个值以改变浮动幅度 */
    }
}

/* 定义水平摇摆动画 */
@keyframes sway {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(2px); /* 调整这个值以改变摇摆幅度 */
    }
    100% {
        transform: translateX(-2px); /* 调整这个值以改变摇摆幅度 */
    }
}

.do_acro {
    animation: rotate 1.5s linear infinite;
}

.main_role_d {
    width: 65%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 10px;
    position: relative;
    padding: 5px;
}

.customRoleTip {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    width: 35%;
    margin: 18% auto;
    border-radius: 10px;
}
.customRoleTip p{
    text-align: center;
    font-size: 18px;
    margin-top: 20px;
}
.customRoleTip span{
    text-align: center;
    font-size: 14px;
    margin-top: -2px;
}

.customRoleTip button{
    padding: 10px 20px;
    margin: 20px;
    cursor: pointer;
    border: 1px solid #33bec3;
    background-color: #33bec3;
    color: #fff;
    border-radius: 10px;
}
.customRoleTip button:hover{
    background-color: #42f0f6;
    border: 1px solid #42f0f6;
}