#flex-container {
    justify-content: space-between;
    padding: 10px 20px;
    top: 0;
    position: relative;
    z-index: 1000;
    background-image: url('../imagefile/imagefile.homepage/background-homemain.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.main-photo h1 {
    font-size: 70px;
    font-family: cherry Bomb One;
    text-align: center;
    color: #F96D4A;
    margin: 0%;
    padding: 50px;
    text-shadow: 2px 4px #00000033;
}

.main-photo {
    text-align: center;
    background-size: contain;
    align-items: center;
    padding: 50px 30px 80px;
}


#contact1 {
    background-color: #FAA5CA;
}

.contact1-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 40px;
    flex-wrap: wrap;
}

.contact1-group>div {
    max-width: 290px;
}



#learnaboutpart {
    background-color: #FEE273;
    padding: 30px 30px;
}


#welcome2 {
    background-image: url("../imagefile/imagefile.homepage/sticker1.png");
    background-size: 150px;
    background-repeat: no-repeat;
    background-position: left top;
    display: block;
    padding: 15px 15px 85px 15px;
    min-height: 50px;
}

#welcome3 {
    background-image: url('../imagefile/imagefile.homepage/sticker2.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right top;
    display: block;
    padding: 15px 15px 85px 15px;
    min-height: 50px;
}


.photo-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}



.photo-group h2 {
    font-size: 45px;
    font-family: 'Cherry Bomb One', cursive;
    color: #F96D4A;
    text-align: center;
    margin: 20px 0;
    line-height: 1.5;
    text-shadow: 2px 3px #00000033;
}





#layer1 {
    background-color: #FEE273;
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0px 50px 60px 50px;
}

#layer2 {
    background-color: #FEE273;
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    flex-direction: row;
    padding: 50px 50px 90px;
    justify-content: center;
}


.layer-photo1 img,
.layer-photo2 img {
    border-radius: 20px;
}





.layer-text {
    flex: 1;
    padding: 20px 30px;
    max-width: 550px;
    /* 控制文字最大宽度，视觉上与图片对齐 */
}

h3 {
    font-size: 40px;
    font-family: 'Cherry Bomb One', cursive;
    color: #F96D4A;
    margin: 0%;
}

p {
    font-size: 18px;
    font-family: "Poppins", sans-serif;
    font-style: normal;
    color: #333;
}





#contact2 {
    background-color: #FAA5CA;
}

.contact2-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 40px;
    text-align: center;
    flex-wrap: wrap;
}

.contact2-group {
    text-align: center;
    object-fit: contain;
    border-radius: 50%;
    margin: 0;
    gap: 5%;
}


#welcome4 {
    background-color: #6B51B1;
    background-image: url('../imagefile/imagefile.homepage/sticker3.png');
    background-size: 200px;
    background-repeat: no-repeat;
    background-position: right top;
    display: block;
    padding: 80px;
}




#feedback-layer {
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #6B51B1;
    text-align: center;
    gap: 20px;
}

#feedback-layer h5 {
    font-size: 55px;
    font-family: 'Cherry Bomb One', cursive;
    color: #F96D4A;
    text-shadow: 2px 3px #00000033;
    align-items: center;
    margin: 0;
    padding: 0;
}


#feedback-layer2 {
    background: #6b51b1;
    padding: 0px 200px 50px;
    text-align: center;
    margin: auto;
}




.images-kids {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    width: 100%;

}


.feedback-comment-kids1,
.feedback-comment-kids2 {
    background: white;
    border-radius: 16px;
    display: flex;
    justify-self: center;
    align-self: center;
    gap: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 600px;
    height: auto;
    padding: 30px;
    margin: auto;
    flex-direction: column;
}


.feedback-comment-kids1 img,
.feedback-comment-kids2 img {
    width: 70%;
    height: auto;
    justify-self: center;
    align-self: center;
    margin-bottom: 10px;
}


.user-info h1 {
    font-size: 24px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    color: black;
    margin-bottom: 10px;
    text-shadow: none;
    padding: 0;
}

.user-info p {
    font-size: 16px;
    font-family: "Poppins", sans-serif;
    font-style: normal;
    color: #373737;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}



.slick-slide img {
    display: flex;
}




#welcome5 {
    background-color: white;
    background-image: url('../imagefile/imagefile.homepage/sticker4.png');
    background-size: 200px;
    background-repeat: no-repeat;
    background-position: left top;
    display: block;
    padding: 60px;
}





@media (max-width: 1380px) {
    .contact1-group {
        text-align: center;
        border-radius: 50%;
        margin: 0 auto;
        gap: 0;
    }
}

@media (max-width: 1339px) {

    .contact2-group {
        text-align: center;
        object-fit: contain;
        border-radius: 50%;
        margin: 0;
        gap: 35px;
    }
}


@media (max-width: 1259px) {

    .nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    /* 强制 logo（第一个 div）显示在最上面 */
    .nav>div:first-child {
        order: 0;
    }

    #search {
        width: 20%;
        margin-top: 10px;
    }

    #menu {
        order: 0;
        width: auto;
        align-items: center;
    }



    .main-photo h1 {
        font-size: 60px;
    }

    h2 {
        white-space: pre-wrap;
    }

    .contact1-group {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 40px;
        text-align: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .contact2-group {
        text-align: center;
        object-fit: contain;
        border-radius: 50%;
        margin: 0;
        gap: 20%;
    }

}

@media (max-width: 1250px) {
    #layer1 {
        gap: 20px;
        flex-direction: column;
    }

    .layer-photo1 img {
        border-radius: 20px;
        max-width: 80%;
        margin-left: 50px;
    }

    #layer2 {
        gap: 20px;
        flex-direction: column-reverse;
    }

    .layer-photo2 img {
        border-radius: 20px;
        max-width: 80%;
        margin-left: 60px;
    }
}

@media (max-width: 1180px) {
    .photo-group h2 {
        font-size: 40px;
    }
}

@media (max-width: 935px) {
    #menu {
        gap: 70px
    }

    .contact2-group img {
        width: 90%;
    }


}



@media (max-width: 907px) {
    .slick-dotted.slick-slider {
        margin-bottom: -50%;
    }

    .slick-prev {
        left: -10px;
        top: 30%;
    }


    .slick-next {
        right: -10px;
        top: 30%;
    }

    .slick-dots {
        top: 100%;
    }
}




@media (max-width: 895px) {

    #welcome2 {
        background-size: 120px;
    }

    #menu {
        gap: 50px;
    }

    .photo-group h2 {
        font-size: 35px;
    }

}


@media (max-width: 815px) {
    #menu {
        font-size: 22px;
    }

    .layer-photo1 img {
        width: 70%;
        margin-left: 15%;
    }

    .layer-photo1 img {
        width: 70%;
    }

    .contact2-group img {
        width: 80%;
    }


}


/* footer */
@media (max-width: 799px) {

    .contact-card1,
    .contact-card2 {
        width: 270px;
    }
}


@media (max-width: 772px) {
    #menu {
        font-size: 20px;
    }

    .main-photo h1 {
        font-size: 50px;
    }

}

@media (max-width: 751px) {
    .contact2-group {
        gap: 0;
    }


    .contact2-group img {
        width: 70%;
    }

    #welcome4 {
        background-size: 170px;
    }

    #welcome5 {
        padding: 50px;
        background-size: 170px;
    }

    .slick-dotted.slick-slider {
        margin-bottom: -50%;
    }

    .slick-prev {
        left: -10px;
        top: 30%;
    }


    .slick-next {
        right: -10px;
        top: 30%;
    }

    .slick-dots {
        top: 100%;
    }

}


/* footer */
@media (max-width: 739px) {

    .contact-card1,
    .contact-card2 {
        width: 250px;
        height: 200px;
    }
}

@media (max-width: 730px) {
    #menu {
        gap: 40px;
    }

}


@media (max-width: 690px) {
    #menu {
        font-size: 18px;
    }

    #feedback-layer2 {
        background: #6b51b1;
        padding: 30px;
        text-align: center;
        margin: 0;
        padding-top: 5%;
    }

}


@media (max-width: 648px) {
    #menu {
        gap: 30px;
    }
}


@media (max-width: 680px) {

    #menu {
        gap: 25px;
        font-size: 16px;
    }
}









/*mobile*/
@media (max-width: 440px) {
    .nav {
        display: none;
    }


    /* Show Mobile  */
    .navbar-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px;
    }


    .menu-toggle-checkbox {
        display: none;
    }

    /* show menu */
    .menu-toggle-checkbox:checked~.menu-mobile {
        display: flex;
        flex-direction: column;
        background: pink;
        position: fixed;
        top: 0;
        left: 0;
        width: 50%;
        height: 100%;
        padding-top: 5rem;
        padding-left: 50px;
        z-index: 1000;
        gap: 0;
        align-items: flex-start;
        font-family: "Cherry Bomb One", cursive;
    }

    .close-btn {
        font-size: 40px;
        color: #6b51b1;
        position: absolute;
        top: 21px;
        left: 40px;
        cursor: pointer;
        font-family: poppins;
    }

    .menu-item-mobile {
        color: #6b51b1;
        font-size: 20px;
        margin: 20px 0;
        padding: 0px 13px 0px 0px;
        cursor: pointer;
        text-align: center;
        text-decoration: none;
    }

    .menu-item-mobile:hover {
        color: white;
        text-decoration: underline;
        text-underline-offset: 7px;
    }


    .submenu-mobile {
        display: none;
        flex-direction: column;
    }

    .submenu-mobile a {
        color: #f96d4a;
        font-size: 12px;
        text-decoration: none;
    }

    .submenu-toggle {
        display: none;
    }

    .submenu-toggle:checked+.menu-item-mobile+.submenu-mobile {
        display: flex;
        gap: 12px;
        flex-direction: row;
        font-family: Poppins, sans-serif;
        padding-top: 10px;
        padding-bottom: 20px;
        font-weight: 500;
        flex-direction: column;
    }

    .navbar-mobile img {
        width: 50px;
    }



    .menu-toggle-btn {
        font-size: 30px;
        color: #6B51B1;
        cursor: pointer;
    }

    .search-btn {
        font-size: 20px;
        color: #6B51B1;
        cursor: pointer;
    }









    .main-photo {
        padding: 0px 30px 20px;
    }

    .main-photo h1 {
        font-size: 30px;
        margin: 0px;
        padding: 10px 0px 20px;
        text-shadow: 1px 1px #00000033;
    }

    .main-photo img {
        width: 70%;
    }

    .contact1-group>div {
        max-width: 100px;
    }



    #welcome2 {
        background-size: 70px;
        padding: 10px;
    }

    .photo-group h2 {
        font-size: 25px;
    }

    #welcome3 {
        background-size: 80px;
        padding: 10px;
    }



    #layer1 {
        padding: 0px 40px 30px;
    }

    .layer-text {
        flex: 1;
        padding: 0px 40px;
        max-width: 290px;
    }

    .layer-photo1 img {
        width: 70%;
        margin-left: 15%;
    }


    #layer1 h3 {
        font-size: 28px;
    }


    #layer1 p {
        font-size: 11px;
        margin-bottom: 20px;
    }

    .layer-photo2 img {
        max-width: 70%;
        margin-left: 50px;
    }


    #layer2 h3 {
        font-size: 28px;
    }

    #layer2 p {
        font-size: 11px;
        margin-bottom: 20px;
    }

    .learnmore {
        font-size: 12px;
        padding: 6px 20px;
    }

    .contact2-group img {
        width: 70%;
        margin: 20px;
    }

    #welcome4 {
        background-size: 100px;
        padding: 40px;
    }

    #feedback-layer h5 {
        font-size: 40px;
    }

    #welcome5 {
        padding: 30px;
        background-size: 100px;
    }






    /*foteer*/
    .contact h6 {
        font-size: 40px;
    }

    .contact p {
        margin-bottom: 10px;
    }

    .contact-card1,
    .contact-card2 {
        width: 100px;
        height: 100px;
    }

    .contact-card1 p img {
        width: 80%;
        margin-top: 0;
    }

    .contact-card2 p img {
        width: 80%;
        margin-top: 0;
    }


    .footer {
        padding: 20px 20px 10px;
    }

    .footer-logo {
        width: 50px;
    }

    .footer-nav a {
        font-size: 25px;
    }

    .footer p {
        padding-bottom: 0;
    }
}



@media (max-width: 399px) {
    .contact-card-group {
        gap: 30px;
    }
}