*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

a{
    text-decoration: none;
}

::-webkit-scrollbar {
   width: 8px; /*对垂直流动条有效*/
   height: 8px; /*对水平流动条有效*/
}

::-webkit-scrollbar-thumb{
    border-radius: 6px;
    background-color: #E8E8E8;
    background-color: rgba(223,225,230, 0.6);
}



.nav{
    width: 100%;
    height: 5rem;
    display: flex;
    justify-content: center;
    background-color: #ffffff;
    padding: 0 40px;
    position:fixed;
    top: 0;
    z-index: 99;
}

/*nav flex大盒子*/
.nav_box{
    display: flex;
    justify-content: flex-start;
    max-width: 1200px;
    /*background-color: #8965cf;*/
    line-height: 5rem;
    width: 100%;
    height: 5rem;
    /*并列元素中间的间距设置（不含最外沿的）*/
    gap: 30px;
}

/*logo盒子*/
.logo{
    width: 10rem;
    height: 3rem;
    line-height: 3rem;
    margin-top: 1rem;
    /*background-color: #5ebfd8;*/
    display: flex;
    font-size: 17px;
    font-weight: bold;
    color: #88619a;
}

.logo img{
    width: 48px;
    height: 48px;
    margin-right: 8px;
}

/*导航条内文字*/
.box_content a{
    color: #88619a;
    font-weight: bold;
}

.main_box{
    margin-top: 5rem;
}

.footer{
    background-color: #329ccd;
}

/*banner图片*/
.banner_background{
    width: 100%;
    height: 440px;
    background-image: url("../img/2main_background_green.jpg");
    background-repeat:no-repeat;
    background-size:cover;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
}

.text_box{
    display: flex;
    flex-direction: column;
    align-items:center;
    padding-top: 80px;
}
.text_one{
    letter-spacing: 10px;
    color: #3cac3c;
    margin-bottom: 20px;
}

.text_two{
    letter-spacing: 5px;
    color: #3cac3c;
    font-size: 50px;
    font-weight: bold;
    margin-bottom: 20px;
}

/*测试按钮*/
.star_button{
    width: 160px;
    height: 3rem;
    background-color: #88619a;
    text-align: center;
    border-radius: 3rem;

}

.star_test_button{
    line-height: 3rem;
    color: white;
}

.js_test{
    cursor:pointer;
    display: block;
}

/*数据展示部分*/
.data_show{
    width: 100%;
    height: 6.5rem;
    background-color: rgba(223, 255, 255, 0.5);
    padding: 1rem 0;
}

.data_show ul{
    display: flex;
    justify-content: center;
}

.data_show li h4{
    font-size: 28px;
    height: 2rem;
    line-height: 2rem;
    text-align: center;
    width: 100%;
    font-weight: 600;
    color: #14ce14;
}

.data_show li{
    width: 25%;
    height: 4.5rem;
    padding: 0.25rem 0;
    box-sizing: border-box;
    list-style: none;
}

.data_show li p{
    width: 100%;
    height: 2rem;
    text-align: center;
    line-height: 2rem;
    color:#666;
    font-size: 16px;
    margin-top:0.25rem;
}


/*所有人格展示*/
.personality_show{
    box-sizing: border-box;
    /*background-color: #8965cf;*/
    width: 100%;
    max-width:1200px;
    /*margin-top: 2.5rem;*/
    margin:50px auto;
}

.part_one{
    width: 50%;
    /*background-color: #666666;*/
}

/*第一行盒子*/
.one_row{
    display: flex;
    justify-content: space-between;
}

.two_row{
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.one_piece{
    display: flex;
    /*flex-direction: row;*/
    /*justify-content: flex-start;*/
    /*margin:0 50px;*/
}

.one_piece li{
    width: 25%;
    padding: 0 1rem;
    cursor:pointer;
    list-style-type: none;
}

.one_piece li .two_img{
    height: 8rem;
    display: flex;
    /*flex-direction: column;*/
    justify-content: center;
}

/*人格类型标题*/
.headline{
    font-size: 32px;
    padding-left: 16px;
    font-weight: 800;
    opacity:0.25;
    margin-bottom: 0.5rem;
}

.purple_title{
    color:#8965cf;
}

.green_title{
    color:#3f8e6f;
}

.blue_title{
    color:#5ebfd8;
}

.blue_title{
    color:#5ebfd8;
}

.yellow_title{
    color:#9d7700;
}

/*type小标题与正文*/
.type_name{
    margin-top: 1.25rem;
    font-size: 18px;
    height: 1.75rem;
    line-height: 1.75rem;
    font-weight: 600;
    width: 100%;
}
.purple_name{
    color:#8965cf;
}
.green_name{
    color:#3f8e6f;
}
.blue_name{
    color:#5ebfd8;
}
.yellow_name{
    color:#9d7700;
}

.type_text{
    margin-top: 0.25rem;
    line-height: 1.5rem;
    height: 1.5rem;
    opacity: 0.6;
    padding:0 0.5rem;
    width: 100%;
    font-size: 14px;
    /*单行文字超出隐藏*/
    overflow: hidden;
}
.purple_text{
    color:#8965cf;
}
.green_text{
    color:#3f8e6f;
}
.blue_text{
    color:#5ebfd8;
}
.yellow_text{
    color:#9d7700;
}


/*第一行与第二行的距离*/
.purple_group{
    margin-bottom: 5rem;
}
.green_group{
    margin-bottom: 5rem;
}

.bottom{
    z-index: -1;
}
/*type底下的背景色块*/
/*紫*/
.purple_group{
    position: relative;
}
.purple_bottom{
    width: 100%;
    height: 9.75rem;
    position: absolute;
    bottom:-65px;
    left:0;
    background: linear-gradient(180deg, rgba(137,101,207,.25), transparent);
}

/*绿*/
.green_group{
    position: relative;
}
.green_bottom{
    width: 100%;
    height: 9.75rem;
    position: absolute;
    bottom:-65px;
    left:0;
    background:linear-gradient(180deg, rgba(63,142,111,.25), transparent);
}

/*蓝*/
.blue_group{
    position: relative;
}
.blue_bottom{
    width: 100%;
    height: 9.75rem;
    position: absolute;
    bottom:-65px;
    left:0;
    background:linear-gradient(180deg, rgba(94,191,216,.25), transparent);
}

/*黄*/
.yellow_group{
    position: relative;
}
.yellow_bottom{
    width: 100%;
    height: 9.75rem;
    position: absolute;
    bottom:-65px;
    left:0;
    background:linear-gradient(180deg, rgba(157,119,0,.25), transparent);
}

/*底部按钮*/
.bottom_button{
    width: 160px;
    height: 3rem;
    background-color: #88619a;
    text-align: center;
    border-radius: 3rem;
    margin: 100px auto;
}

.second_satr_test{
    line-height: 3rem;
    color:white;
    width: 100%;
    display: block;
}


/*footer*/

.footer{
    width: 100%;
    background-color: #313131;
    padding: 1.5rem;
}

.footer_center{
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer_center ul{
    display:flex;
    justify-content: space-between;
    /*规定灵活的项目在必要的时候拆行或拆列*/
    flex-wrap: wrap;
}

.footer_center li{
    width: 36% ;
    list-style-type: none;
}

.footer_center li h4{
    font-size: 18px;
    color:#fff;
}

.footer_center li p{
    width: 100%;
    height: 5.1rem;
    overflow: hidden;
    line-height: 1.7rem;
    margin-top: 0.9rem;
    color:#999;
    font-size:15px;
}

.footer_center li img{
    width: 8rem;
    height: 8rem;
    margin-top: 10px;
    margin-bottom: 10px;
}

/*分割线*/
.line{
    width: 1200px;
    height: 1px;
    background-color: #999;
}

.footer_bottom_text{
    width: 100%;
    text-align: center;
    margin: 2rem 0 0.5rem;
    font-size: 15px;
    color:#999;
    line-height: 1.7rem;
}

.beian{
    color: #999;
}
