* {
    margin: 0;
    padding: 0;
    font-family: 'NSimSun', serif;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0px;
    font-family: 'NSimSun', serif;
    background-image: url("../layouts/homebg.jpg");
}

.header {
    width: 100%;
    height: 20%;
}

#index-wrap-mb {
    display: none;
}

.indexflexbox {
    position: absolute;
    top: 20%;
    left: 10%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    width: 80%;
    height: 30%;
}

.indexflexbox2 {
    position: absolute;
    top: 60%;
    left: 20%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 60%;
    height: 30%;
}

.indexitem {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.indeximg {
    width: 17vw;
    height: 17vw;
}

#haha {
    position: absolute;
    width: 20vw;
    right: 1%;
    bottom: 5%;
}

#urur {
    position: absolute;
    width: 20vw;
    top: 5%;
    left: 25%;
}

#fefe {
    position: absolute;
    width: 16vw;
    right: 1%;
    top: 46%;
}

#jojo {
    position: absolute;
    width: 10vw;
    left: 3%;
    top: 30%;
}

#yaya {
    position: absolute;
    width: 12vw;
    left: 13%;
    bottom: 5%;
}

#ironsq {
    position: absolute;
    bottom: 0PX;
    left: 10PX;
    z-index: 500;
}

#ironsqimg {
    width: 100px;
}

.enso {
    width: 18vw;
    height: 18vw;
    z-index: 500;
    position: absolute;
    /* 父元素(indexitem)需要設成relative 這裡設absolute就不會佔到其他子元素的空間*/
    left: -20px;
    top: -25px;
    opacity: 0;
    transition: 1s;
}

.enso_svg {
    position: absolute;
    transform: scale(1.25);
}

.enso_svg path {
    fill: none;
    stroke: #9192AEF2;
    stroke-width: 200;
    stroke-linecap: round;
    stroke-dasharray: 1693.9830322265625 1693.9830322265625;
    stroke-dashoffset: 1693.9830322265625;
    mask: url(#enso_mask);
}

.enso_svg:hover path {
    animation-duration: 1s;
    animation-name: enso_anim;
    animation-fill-mode: forwards;
    animation-timing-function: linear;
}

@keyframes enso_anim {
    to {
        stroke-dashoffset: 0;
    }
}

.linkbranch {
    position: absolute;
    display: flex;
    flex-direction: row;
    top: 10%;
    left: 3%;
    width: 70%;
    height: 20%;
}

.linkback {
    position: relative;
    display: flex;
    flex-direction: row;
}

.linkbackimg {
    width: 15vw;
    height: 12vw;
    z-index: 700;
}

.currentimg {
    margin-top: 4%;
    width: 14vw;
    height: 9vw;
}

.currentbirdimg {
    margin-top: 5%;
    width: 5vw;
    object-fit: contain;
}

.flexbox1 {
    position: absolute;
    top: 35%;
    left: 10%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 80%;
    height: 20%;
}

.flexbox2 {
    position: absolute;
    top: 65%;
    left: 10%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 80%;
    height: 20%;
}

#subsidy {
    top: 45%;
}

#dorm-box1 {
    width: 60%;
    left: 20%;
}

#dorm-box2 {
    width: 60%;
    left: 20%;
}

.linkimg {
    width: 20vw;
}


/* 大螢幕 (e.g.橫躺平板) 922~1200px */

@media (max-width: 1200px) {}


/* 中螢幕 (e.g.直立平板) 768~922px */

@media (max-width: 992px),
(min-width: 1024px) and (max-height: 1366px) and (orientation: portrait) {
    .indexflexbox {
        display: none;
    }
    .indexflexbox2 {
        display: none;
    }
    #haha {
        display: none;
    }
    #urur {
        display: none;
    }
    #fefe {
        display: none;
    }
    #jojo {
        display: none;
    }
    #yaya {
        display: none;
    }
    #index-wrap-mb {
        display: flex;
        width: 100%;
        height: 100％;
        flex-direction: row;
    }
    #mb-col1 {
        position: absolute;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        height: 90%;
        top: 10%;
        width: 50%;
        align-items: center;
    }
    #mb-col2 {
        position: absolute;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        height: 60%;
        top: 25%;
        left: 50%;
        width: 50%;
        align-items: center;
    }
    .indeximg-mb {
        height: 30vw;
        width: 30vw;
    }
    .linkbranch {
        position: absolute;
        display: flex;
        flex-direction: row;
        top: 13%;
        left: 1%;
        width: 70%;
        height: 20%;
    }
    .linkback {
        position: relative;
        display: flex;
        flex-direction: row;
    }
    .linkbackimg {
        width: 36vw;
        height: 30vw;
        z-index: 700;
    }
    .currentimg {
        margin-top: 7%;
        margin-right: 50px;
        width: 30vw;
        height: 20vw;
    }
    .currentbirdimg {
        display: none;
        margin-top: 5%;
        width: 5vw;
        object-fit: contain;
    }
    .flexbox1 {
        position: absolute;
        top: 35%;
        left: 5%;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        width: 45%;
        height: 60%;
    }
    .flexbox2 {
        position: absolute;
        top: 25%;
        left: 50%;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        width: 45%;
        height: 60%;
    }
    .linkimg {
        width: 30vw;
    }
    #subsidy {
        top: 30%;
        width: 70%;
        left: 15%;
        height: 50%;
    }
    #sub1 {
        align-self: flex-end;
    }
    #sub2 {
        align-self: flex-start;
    }
    #sub3 {
        align-self: flex-end;
    }
    #dorm-box1 {
        width: 45%;
        left: 5%;
    }
    #dorm-box2 {
        top: 20%;
        width: 45%;
        left: 50%;
    }
}


/* 小螢幕 (e.g.橫躺手機) 577~767px */

@media (max-width: 767px) {}


/* 超小螢幕 (e.g.直立手機), 576px以下 */

@media (max-width: 576px) {
    .indexflexbox {
        display: none;
    }
    .indexflexbox2 {
        display: none;
    }
    #haha {
        display: none;
    }
    #urur {
        display: none;
    }
    #fefe {
        display: none;
    }
    #jojo {
        display: none;
    }
    #yaya {
        display: none;
    }
    #index-wrap-mb {
        display: flex;
        width: 100%;
        height: 100％;
        flex-direction: row;
    }
    #mb-col1 {
        position: absolute;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        height: 90%;
        top: 10%;
        width: 50%;
        align-items: center;
    }
    #mb-col2 {
        position: absolute;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        height: 60%;
        top: 25%;
        left: 50%;
        width: 50%;
        align-items: center;
    }
    .indeximg-mb {
        height: 40vw;
        width: 40vw;
    }
    .linkbranch {
        position: absolute;
        display: flex;
        flex-direction: row;
        top: 13%;
        left: 1%;
        width: 70%;
        height: 20%;
    }
    .linkback {
        position: relative;
        display: flex;
        flex-direction: row;
    }
    .linkbackimg {
        width: 36vw;
        height: 30vw;
        z-index: 700;
    }
    .currentimg {
        margin-top: 7%;
        margin-right: 50px;
        width: 30vw;
        height: 20vw;
    }
    .currentbirdimg {
        display: none;
        margin-top: 5%;
        width: 5vw;
        object-fit: contain;
    }
    .flexbox1 {
        position: absolute;
        top: 35%;
        left: 5%;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        width: 45%;
        height: 60%;
    }
    .flexbox2 {
        position: absolute;
        top: 25%;
        left: 50%;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        width: 45%;
        height: 60%;
    }
    #subsidy {
        top: 30%;
        width: 70%;
        left: 15%;
        height: 50%;
    }
    #sub1 {
        align-self: flex-end;
    }
    #sub2 {
        align-self: flex-start;
    }
    #sub3 {
        align-self: flex-end;
    }
    .linkimg {
        width: 35vw;
    }
    #dorm-box1 {
        width: 45%;
        left: 5%;
    }
    #dorm-box2 {
        top: 20%;
        width: 45%;
        left: 50%;
    }
}