

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    
    
    font-size: 62.5%;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}




.topbar{
    display: flex;
    height: 14rem;
    flex-direction: row;
    flex-wrap: wrap;
    
    justify-content: space-between;
    
    align-items: center;
    background-color: rgb(253, 253, 253);
}

.topbar>.logo{
    width: 30rem;
    height: 10rem;
    display: flex;
    justify-content: center;
    align-items: center;

    
    border-right:0.2rem solid gray;
    
    
}
.topbar>.logo a {
    color: rgb(212, 22, 22);
    text-decoration: none;
    font-size: 5rem; 
    font-weight: bold;
    
}

.topbar>.guanggao{
    width: 30rem;
    height: 10rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: gray;
}
.topbar>.guanggao ul{
    font-size: 3rem;
    list-style: none;
}

.topbar>.phonenumber{
    width: 30rem;
    height: 10rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: gray;
}
.topbar>.phonenumber>.phoneimage{
    margin-right: 1rem;
    color: black;
    font-size: 2rem;
}
.topbar>.phonenumber ul{
    font-size: 2rem;
    list-style: none;
}




.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a73e8;
    padding: 0 2rem; 
    height: 5rem; 
    position: relative;
    /* top: 0;
    left: 0; */
    width: 100%;
    z-index: 1000;
    box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1);
}


.nav-menu {
    
    
    margin: 0 auto;
}
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 3rem; 
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.6rem; 
    padding: 1rem 1rem;
    border-radius: 0.4rem;
    transition: background-color 0.3s ease;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}


.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 2.4rem; 
    cursor: pointer;
    padding: 0.5rem;

    
    
    margin-right: auto;
}




.content {
    padding: 2rem;
    max-width: 120rem; 
    margin: 0 auto;
}

.content h1 {
    font-size: 3rem; 
    margin-bottom: 1.5rem;
}

.content p {
    font-size: 1.8rem; 
    margin-bottom: 1rem;
}


@media (max-width: 45rem) { 
    
    .navbar {
        padding: 0 1.5rem; 
    }

    
    .nav-menu {
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: #1a73e8;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-out;
        box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
    }

    
    .nav-menu.active {
        max-height: 34rem; 
    }

    
    .nav-menu ul {
        flex-direction: column;
        padding: 1.5rem;
        gap: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 1.2rem 1rem;
        font-size: 1.8rem; 
        border-bottom: 0.1rem solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu li:last-child a {
        border-bottom: none;
    }

    
    .hamburger {
        display: block;
    }
}




@media (max-width: 72rem) { 
    
    .topbar>.guanggao,
    .topbar>.phonenumber {
        display: none;
    }
    
    
    .topbar>.logo {
        
        border-right: none;
        
        width: 100%;
        justify-content: center;
    }
    
    
    .topbar {
        justify-content: center;
    }
}


@media (max-width: 480px) {
    .topbar>.logo a {
        font-size: 4rem; 
    }
}



.carousel-banner {
    width: 100%;
    height: 40rem; 
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0; 
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    max-width: 80rem;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.5); 
    border-radius: 0.8rem;
}

.slide-content h2 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 0.2rem 0.2rem 0.4rem rgba(0, 0, 0, 0.7);
}

.slide-content p {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    text-shadow: 0.1rem 0.1rem 0.2rem rgba(0, 0, 0, 0.7);
}

.cta-button {
    display: inline-block;
    background-color: #1a73e8; 
    color: white;
    padding: 1.2rem 3rem;
    font-size: 1.8rem;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #0d62d9;
}


.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    color: #333;
    font-size: 2.4rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.carousel-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.prev-btn {
    left: 2rem;
}

.next-btn {
    right: 2rem;
}


.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.indicator {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    border: 0.2rem solid white;
    background-color: transparent;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: white;
}


@media (max-width: 720px) {
    .carousel-banner {
        height: 30rem; 
    }
    .slide-content h2 {
        font-size: 2.8rem;
    }
    .slide-content p {
        font-size: 1.6rem;
    }
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1.6rem;
    }
    .carousel-btn {
        font-size: 2rem;
        padding: 0.8rem 1.2rem;
    }
}
