.cmtop{
    padding-top: 150px !important;
}
.digimain{
    position: relative;
}
.digimain:before{
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 600px;
    background-position: top;
    background-size: cover;
    background-image: url(../digilib/treebg.svg);
}
.digimain.swm{
    margin-bottom: -80px;
}
.maintree{
    width: 880px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}
@media(max-width:1200px){
    .maintree{
        overflow: auto;
    }
}
.maintree img{
    max-width: none;
}
.mainbranch{
    position: absolute;
    top: 310px;
    left: 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}
.hangitem{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: absolute;
    animation: swing ease-in-out 1.5s infinite alternate;
    transform-origin: center -20px;
}
.hangitem .icon{
    animation: swing ease-in-out 1.5s infinite alternate;
    transform-origin: center -20px;
}
.hangitem .icon img{
    transition: all .75s ease;
    -webkit-transition: all .75s ease;
}
.hangitem:hover,
.hangitem:hover .icon{
    animation-play-state: paused;
}
.hangitem:hover .icon img {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}
.hangitem .data{
    border-radius: 2px;
    font-size: .938rem;
    line-height: 18px;
    font-weight: 500;
    display: flex;
    text-align: center;
    justify-content: center;
    padding: 2px 8px;
    position: relative;
}
.hangitem .data:before{
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-bottom: 10px solid #ffee00;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
}
.lwmbranch .hangitem:nth-child(1){
    top: 78px;
    left: 110px;
}
.lwmbranch .hangitem:nth-child(2){
    top: 0;
    left: 290px;
    animation-duration: 1s;
}
.lwmbranch .hangitem:nth-child(3){
    top: 65px;
    left: 510px;
}
.lwmbranch .hangitem:nth-child(4){
    top: 227px;
    left: 180px;
}
.lwmbranch .hangitem:nth-child(5){
    top: 245px;
    left: 565px;
    animation-duration: 1s;
}

.lwmbranch .hangitem:nth-child(1) .data{
    background-color: #B2D9F4;
}
.lwmbranch .hangitem:nth-child(1) .data:before{
    border-bottom-color: #B2D9F4;
}
.lwmbranch .hangitem:nth-child(2) .data{
    background-color: #96DCA5;
}
.lwmbranch .hangitem:nth-child(2) .data:before{
    border-bottom-color: #96DCA5;
}
.lwmbranch .hangitem:nth-child(3) .data{
    background-color: #FDB999;
}
.lwmbranch .hangitem:nth-child(3) .data:before{
    border-bottom-color: #FDB999;
}
.lwmbranch .hangitem:nth-child(4) .data{
    background-color: #F0D3A8;
}
.lwmbranch .hangitem:nth-child(4) .data:before{
    border-bottom-color: #F0D3A8;
}
.lwmbranch .hangitem:nth-child(5) .data{
    background-color: #CC987A;
}
.lwmbranch .hangitem:nth-child(5) .data:before{
    border-bottom-color: #CC987A;
}

@keyframes swing {
    0% { transform: rotate(3deg); }
    100% { transform: rotate(-3deg); }
}

.delement{
    position: absolute;
}
.delement.fly.lt{
    left: 80px;
    transform: rotate(-20deg);
}
.delement.fly.rt{
    right: 60px;
    top: 200px;
    transform: rotate(20deg);
}
.delement.fly img{
    animation: butterfly ease-in-out .5s infinite alternate;
}

@keyframes butterfly{
    0%{
        transform: rotateY(60deg);
    }
    100%{
        transform: rotateY(0);
    }
}

.delement.leaf.lt{
    bottom: 200px;
    left: 0;
}
.delement.leaf.rt{
    bottom: 50%;
    right: 10%;
}

.swmbranch{
    top: 295px;
}
.swmbranch .hangitem{
    width: 135px;
    padding-top: 30px;
    padding-bottom: 20px;
    box-shadow: 5px 5px 6px rgb(0 0 0 / .1);
}
/* .swmbranch .hangitem:hover{
    box-shadow: 0 0 0 3px #4CAF50;
} */
.swmbranch .hangitem::before{
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 50px;
    background-color: #BCBEC0;
    top: -50px;
}
.swmbranch .hangitem::after{
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -14px;
    background-image: url(../digilib/hanger.svg);
    width: 8px;
    height: 25px;
    background-size: contain;
}
.swmbranch .hangitem .data{
    background-color: transparent;
}
.swmbranch .hangitem .data:before{
    display: none;
}
.swmbranch .hangitem:nth-child(1){
    top: 220px;
    left: 60px;
    background-color: #DD8E8F;
}
.swmbranch .hangitem:nth-child(1):hover{
    box-shadow: 0 0 0 3px #d33336;
}
.swmbranch .hangitem:nth-child(1)::before{
    height: 20px;
    top: -20px;
}
.swmbranch .hangitem:nth-child(2){
    top: 0;
    left: 200px;
    background-color: #DEABDD;
    animation-duration: 1s;
}
.swmbranch .hangitem:nth-child(2):hover{
    box-shadow: 0 0 0 3px #bb33b9;
}
.swmbranch .hangitem:nth-child(3){
    top: 230px;
    left: 240px;
    background-color: #EBE286;
    animation-duration: 1s;
}
.swmbranch .hangitem:nth-child(3)::before{
    height: 60px;
    top: -60px;
}
.swmbranch .hangitem:nth-child(3):hover{
    box-shadow: 0 0 0 3px #afa210;
}
.swmbranch .hangitem:nth-child(4){
    top: 0;
    left: 430px;
    background-color: #89BBDE;
}
.swmbranch .hangitem:nth-child(4)::before{
    height: 80px;
    top: -80px;
}
.swmbranch .hangitem:nth-child(4):hover{
    box-shadow: 0 0 0 3px #2c6b99;
}
.swmbranch .hangitem:nth-child(5){
    top: 100px;
    left: 585px;
    background-color: #E8A058;
    animation-duration: 1s;
}
.swmbranch .hangitem:nth-child(5)::before{
    height: 110px;
    top: -110px;
}
.swmbranch .hangitem:nth-child(5):hover{
    box-shadow: 0 0 0 3px #a35e19;
}
.swmbranch .hangitem:nth-child(6){
    top: 260px;
    left: 585px;
    background-color: #998FD4;
}
.swmbranch .hangitem:nth-child(6):hover{
    box-shadow: 0 0 0 3px #50449d;
}
.swmbranch .hangitem:nth-child(7){
    top: 35px;
    left: 740px;
    background-color: #A8D199;
}
.swmbranch .hangitem:nth-child(7)::before{
    height: 80px;
    top: -80px;
}
.swmbranch .hangitem:nth-child(7):hover{
    box-shadow: 0 0 0 3px #76a963;
}



@media(max-width:1040px){
.maintree {
        overflow: auto;
        width: 750px;
    }
    .maintree img{
        max-width: 750px;
    }
    .mainbranch{
        top: 253px;
    }
    .lwmbranch .hangitem:nth-child(1) {
    top: 78px;
    left: 87px;
}
.lwmbranch .hangitem:nth-child(2) {
    top: 5px;
    left: 225px;
    animation-duration: 1s;
}
.lwmbranch .hangitem:nth-child(3) {
    top: 59px;
    left: 425px;
}
.lwmbranch .hangitem:nth-child(4) {
    top: 205px;
    left: 180px;
}
.lwmbranch .hangitem:nth-child(5) {
    top: 224px;
    left: 499px;
    animation-duration: 1s;
}
    
}





@media(max-width:829px){
.maintree {
        overflow: auto;
        width: 500px;
    }
    .maintree img{
        max-width: 500px;
    }
    .hangitem .icon img{
        width: 60px;
    }
    .hangitem .data{
        font-size:0.75rem;
        padding: 2px 6px;
    }
    .mainbranch{
        top: 173px;
    }
    .lwmbranch .hangitem:nth-child(1) {
    top: 47px;
        left: 52px;
}
.lwmbranch .hangitem:nth-child(2) {
    top: 0;
        left: 143px;
        animation-duration: 1s;
}
.lwmbranch .hangitem:nth-child(3) {
    top: 38px;
        left: 275px;
}
.lwmbranch .hangitem:nth-child(4) {
    top: 138px;
        left: 122px;
}
.lwmbranch .hangitem:nth-child(5) {
   top: 144px;
        left: 326px;
        animation-duration: 1s;
}
    
}



@media(max-width:529px){
.maintree {
        overflow: auto;
        width: 315px;
    }
    .maintree img{
        max-width: 315px;
    }
    .hangitem .icon img{
        width: 36px;
    }
    .hangitem .data{
        font-size:0.58rem;
        padding: 2px 4px;
        line-height: 10px;
    }
    .mainbranch{
        top: 111px;
    }
    .lwmbranch .hangitem:nth-child(1) {
   top: 27px;
        left: 21px;
}
.lwmbranch .hangitem:nth-child(2) {
    top: 0;
        left: 94px;
        animation-duration: 1s;
}
.lwmbranch .hangitem:nth-child(3) {
   top: 16px;
        left: 180px;
}
.lwmbranch .hangitem:nth-child(4) {
   top: 81px;
        left: 64px;
}
    .lwmbranch .hangitem:nth-child(5) {
        top: 88px;
        left: 210px;
        animation-duration: 1s;
    }
    
}



