/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



/* 菜单动画 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;

}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.35);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo img {
    margin-top: 10px;
    height: 60px;
}

.more-img {
    display: none;
}

.nav-container {
    position: absolute;
    height: 100%;
    top: 0;
    left: 55%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 3rem;
    /* margin-right: 7rem; */
}

.nav-links a {
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
    color: #ffffff;
    position: relative;
    white-space: nowrap;

}

.nav-links a.active::after {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    content: '';
    display: block;
    width: 20px;
    height: 3px;
    background: #006FF6;
    margin-top: 4px;
    text-align: center;
}

.search-box {
    width: 150px;
    display: flex;
    align-items: center;
}

.search-box .input {
    padding: 0.5rem;
    border: 1px solid #ffffff;
    border-radius: 4px;
    margin-right: 0.5rem;
    background: none !important;
    color: #ffffff !important;
}

.search-box .input::placeholder {
    color: #ffffff !important;
}

.search-box button {
    padding: 0.5rem 1rem;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* 主要内容区域 */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.swiper {
    /* width: 500px; */
    height: 100%
}

/* 默认 */
.swiper-slide {
    color: #fff;
}

/* 当前正在轮播的类名会加上.swiper-slide-active */
.swiper-slide-active {
    color: #000;
}

.slider-container {
    height: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    z-index: 99;
}


.slide-box {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);

}

.slide-content {
    text-align: center;
    /* margin: 15px 0 30px; */
    white-space: nowrap;

}

.slide-content img {
    margin-top: 100px;
    width: 200px;
    height: 200px;
    border-radius: 12px;

}

.slide-content h1 {
    font-size: 4rem;
}

.slide-content .subtitle {
    font-size: 1.5rem;
}

.slide-controls {
    margin-top: 50px;
    font-size: 48px;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* 轮播控制按钮 */
.slide-controls img {
    width: 65px;
    height: 65px;
    cursor: pointer;
}

.prev-btn {
    left: 2rem;
}

.next-btn {
    right: 2rem;
}

/* 轮播指示点 */
.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.dot.active {
    background: white;
}

/* 创新模式介绍 */
.innovation-intro {
    padding: 8rem 5%;
    position: relative;
    background-color: #fff;
}

.innovation-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 9;
}

.leaf-decoration {
    position: absolute;
    right: 0;
    top: 63%;
    transform: translateY(-50%);
    width: 250px;
    z-index: 0;
}

.leaf-decoration img {
    width: 100%;
    height: auto;
}

.innovation-text {
    padding-right: 2rem;
}

.innovation-text p {
    color: #333;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    text-align: center;
}

/* 基地介绍部分 */
.base-intro {
    padding: 5rem 0;
    background-color: #F7F7F7;

}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 4rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.section-header .en-title {
    color: #666;
    font-size: 2rem;
}

.intro-text {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 3rem;
    color: #666;
    line-height: 1.8;
}

.update-content p,
.service-content p {
    text-align: justify;

}

/* 基地介绍 */
.base-grid {
    /* width: 100%; */
    display: flex;
    gap: 2rem;
    margin: 0 auto;
    margin-right: 80px;
    font-size: 0.95rem;
}

.base-map {
    flex: 1.2;
}

.base-map-img {
    width: 100%;
}

.base-swiper {
    flex: 0 0 770px;
    box-shadow: 0px 15px 40px 0px rgba(0, 0, 0, 0.37);
    margin-top: 100px;
}

.base-item {
    cursor: pointer;
    background: #F4F9FF;
    overflow: hidden;
    transition: transform 0.3s ease;
    width: 770px;
    display: flex;
    color: #000;
}

.base-image {
    flex: 0 0 248px;
    height: 306px;
    overflow: hidden;
}

.base-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.update-item:hover .update-image img {
    transform: scale(1.05);
}

.base-info {
    padding: 5rem 2rem 2rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.base-info-title {
    color: #006FF6;
}

.base-info-desc {
    /* margin: 1.5rem 0; */

}

.base-info-details {
    display: flex;
    color: #666;
    font-size: 0.8rem;
    gap: 1.2rem;
    /* margin: 1.5rem 0; */
}

.user-info,
.area-info {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    /* white-space: nowrap; */
}

.user-info img,
.area-info img {
    width: 25px;
    height: 25px;
}

.icon-user,
.icon-area {
    width: 16px;
    height: 16px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
}

.base-info-contact {
    color: #006FF6;
    display: flex;
    align-items: center;
    justify-content: flex-end;

}

.base-info-contact img {
    width: 15px;
    height: 15px;
    margin-top: 2px;
}

.base-grid .swiper-horizontal>.swiper-pagination-bullets {
    top: 17px;
    bottom: unset;
    left: -120px;
}

.swiper-button-box {
    display: inline;
    position: relative;
    top: 30px;
    left: 90px;
}


.base-grid .swiper-button-prev {
    left: -55px;
    right: auto;
}

.base-grid .swiper-button-next {
    right: -19px;
    left: auto;
}

.base-grid .swiper-button-prev:after,
.base-grid .swiper-button-next:after {
    content: "";
}

/* 特色服务 */
.special-services {
    padding: 8rem 5%;
}

.services-container {
    max-width: 1500px;
    margin: 0 auto;
}

.service-item {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}


.service-image {
    flex: 1.8;
    height: 430px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    position: relative;
    left: -120px;
    flex: 1;
    background: #FFFFFF;
    border-radius: 0px 0px 0px 0px;
    border: 3px solid #D7E9FF;
    top: 90%;
    padding: 2rem 2.5rem;
    text-align: center;
}

.reverse {
    left: 120px !important;
}

.service-content h3 {
    font-size: 1.8rem;
    color: #333;
}

.service-content .en-title {
    font-size: 1rem;
    text-align: center;
}

.service-content p {
    color: #666;
    line-height: 1.8;
    font-size: 0.88rem;
}

/* 使命&愿景 */
.mission-vision {
    padding: 8rem 5%;
    background-color: #F7F7F7;
}

.mission-box {
    max-width: 1500px;
    margin: auto;


}

.mission-vision .section-header {
    position: relative;
}

.mission-vision .section-header .line {
    position: absolute;
    width: 100px;
    height: 8px;
    background: #006FF6;
    top: 70%;
    left: 280px;
    transform: translateY(-50%);
}

.mission-vision .section-header .en-title {
    font-size: 1.5rem;
}

.mission-vision .section-header h2,
.mission-vision .section-header .en-title,
.mission-vision .intro-text {
    text-align: left;
}

.mission-vision .intro-text {
    margin: unset;
    width: 648x;
}

.mission-container {
    max-width: 1500px;
    margin: 0 auto;
}

.mission-item {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}


.mission-image {
    flex: 1;
    /* height: 430px; */
}

.mission-image img {
    width: 100%;
    height: auto;
    /* object-fit: cover; */
}


.mission-content {
    flex: 1.2;
    /* background: #FFFFFF; */
    border-radius: 0px 0px 0px 0px;
    /* padding: 2rem 2.5rem; */
    text-align: center;
}

.mission-content .en-title {
    font-size: 1.3rem;
    /* text-align: center; */
    margin-bottom: 2.5rem;
}

.mission-content p {
    color: #666;
    line-height: 1.8;
    font-size: 0.9rem;
    width: 500px;
    /* margin: auto; */
    text-align: justify;
}

.mission-item-right .mission-image img {
    width: 90%;
    position: relative;
    left: -30px;
    box-shadow: -15px 15px 0 0 #D0D1D1;

}

.mission-item-right .mission-content p {
    margin: 0 auto 2.5rem;
}

/* 旅居动态 */
.residence-updates {
    padding: 8rem 5%;
    position: relative;
}

.leaf-decoration2 {
    position: absolute;
    left: 0;
    top: -30px;
    transform: translateY(-50%);
    width: 300px;
}

.leaf-decoration2 img {
    width: 100%;
    height: auto;
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1500px;
    margin: 0 auto;
}

.update-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;

}

.update-item:hover {
    /* transform: translateY(-5px); */
}

.update-image {
    height: 291px;
}

.update-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;

}

.update-content {
    padding: 1.5rem;
}

.update-content h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.update-content p {
    color: #666;
    line-height: 1.6;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* 显示三行 */
    -webkit-box-orient: vertical;
}

.updates-button {
    text-align: center;
    margin-top: 3rem;
}

.more-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #002859;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

/* 页脚 */
.site-footer {
    background: #333;
    color: #fff;
    padding: 8rem 5%;

}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

.company-info {
    flex: 2;
}

.company-info h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.company-info p {
    color: #999;
    margin-bottom: 0.5rem;
}


.social-icon {
    display: inline-block;
    width: 36px;
    height: 36px;
    margin-right: 1rem;
    background: #fff;
    border-radius: 50%;
    color: #333;
    text-align: center;
    line-height: 36px;
    text-decoration: none;
    font-size: 0;
}

.footer-links {
    flex: 3;
    display: flex;
    justify-content: center;
    /* justify-content: space-around; */
    gap: 20px;
}

.link-column {
    text-align: center;
}

.link-column h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.link-column ul {
    list-style: none;
    padding: 0;
}

.link-column ul li {
    margin-bottom: 0.5rem;
}

.link-column ul a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-column ul a:hover {
    color: #fff;
}

.link-column img {
    width: 156px;
    height: 156px;
    margin-top: 16px;
    border-radius: 12px;
}

.icp {
    padding: 10px 0;
    background: #000;
    text-align: center;
}

.icp a {
    color: #ffffff;
}

.mask {
    position: fixed;
    top: 0;
    height: 100vh;
    width: 100vw;
    z-index: 2000;
    display: none;
    transition: all 0.5 ease;
}

.mask-bg {
    background: rgba(91, 91, 91, 0.8);
    height: 100vh;
    width: 100vw;
}

.mask-content {
    position: absolute;
    top: 53%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    text-align: center;
}

.mask-box {
    width: 600px;
    height: 680px;
    background: #FFFFFF;
    border-radius: 30px;
    position: relative;

}

.m-pop-bg {
    width: 601px;
    height: 297px;
    margin-left: -1px;
    margin-top: -1px;
}

.m-content {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 20px;
}

.m-xcx-box {
    width: 340px;
    height: 340px;
    background: #FFFFFF;
    box-shadow: 0px 13px 10px 0px rgba(0, 0, 0, 0.04), 0px 100px 80px 0px rgba(0, 0, 0, 0.07);
    border-radius: 35px;
    border: 5px solid #E5E7EB;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;

}

.m-xcx {
    width: 300px;
    height: 300px;
}

.m-close {
    margin-top: 20px;
    width: 66px;
    height: 66px;
}

/* 响应式设计 */
@media screen and (max-width: 1500px) {
    .base-swiper {

        margin-top: 0px;
    }

}

/* 响应式设计 */
@media screen and (max-width: 1200px) {
    .search-box {
        width: 50px;
    }

    /* 导航栏 */
    .navbar {
        padding: 1rem 2%;
    }

    .nav-links {
        gap: 2rem;
        /* margin-right: 2rem; */

    }

    .slide-content {
        white-space: unset;

    }

    .slide-content h1 {
        font-size: 2.5rem;
    }

    .slide-content h2 {
        font-size: 2rem;
    }

    /* 基地介绍 */
    .base-grid {
        /* grid-template-columns: repeat(1, 1fr); */
        display: block;
        /* gap: 1.5rem; */
        padding: 0 1rem;
        margin: auto
    }

    .base-swiper {
        width: 770px;
    }

    .base-item {
        width: 770px;

    }

    .base-map-img {
        width: 500px;
        margin: auto;
    }

    .leaf-decoration {
        top: 150px;
        width: 200px;
    }

    .leaf-decoration2 {
        /* top: -30px; */
        top: 0px;
        width: 200px;
    }
}

@media screen and (max-width: 992px) {

    /* 导航栏 */
    .navbar {
        justify-content: center;
        padding: 10px 0;
        flex-wrap: wrap;
    }

    .logo img {
        margin-top: 5px;
        height: 40px;
    }

    .nav-container {
        display: block;
        /* position: relative; */
        left: 0;
        transform: translate(0);
    }

    .nav-links {
        width: 100vw;
        position: absolute;
        display: none;
        flex-direction: column;
        left: 0;
        top: 72px;
        gap: 0;
        background: rgba(0, 0, 0, .7);
        /* display: none; */
    }

    .nav-links a {
        padding: 15px 30px;
    }

    .nav-links a.active {
        color: #006FF6;
    }

    .nav-links a.active::after {
        background: none;
    }

    .search-box {
        display: none;
    }

    .more-img {
        display: block;
        position: absolute;
        left: 30px;
        top: 50%;
        transform: translateY(-50%);
        width: 30px;
        height: 30px;
        cursor: pointer;
    }

    .more-img img {
        width: 100%;
        height: 100%;
    }

    /* 主要内容区域 */
    .hero-slider {
        height: 50vh;
    }

    .slider-container {
        height: 100%;
    }

    .slide-content img {
        margin-top: 50px;
        width: 130px;
        height: 130px;
    }

    .slider-dots,
    .slide-controls {
        display: none;
    }

    .base-info-details {
        gap: 1rem;
        white-space: nowrap;
    }

    .service-item {
        flex-direction: column;
        gap: 2rem;
    }

    .service-item.reverse {
        flex-direction: column;
    }

    .service-image,
    .service-content {
        flex: none;
        width: 100%;
    }

    .service-content {
        left: 0px !important;
    }

    .leaf-decoration {
        top: 150px;
        width: 160px;
    }

    .leaf-decoration2 {
        /* top: -30px; */
        top: 0px;
        width: 160px;
    }


    /* 旅居动态 */
    .updates-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        flex-direction: column;
    }

    .company-info {
        margin-bottom: 2rem;
    }

    .company-info {
        text-align: center;
    }

}

@media screen and (max-width: 768px) {

    .innovation-intro,
    .special-services,
    .testimonials,
    .residence-updates,
    .mission-vision,
    .site-footer {
        padding: 3rem 3%;
    }

    .slide-content img {
        margin-top: 35px;
        width: 100px;
        height: 100px;
    }

    .slide-content h1 {
        font-size: 1.3rem;
    }

    .slide-content h2 {
        font-size: 1rem;
    }

    .slide-content .subtitle {
        font-size: 0.8rem;
    }

    /* 基地介绍 */
    .base-intro .section-header {
        padding: 0 3%;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header .en-title {
        font-size: 1rem;
    }

    .base-intro .intro-text {
        font-size: 0.9rem;
        margin-bottom: 2rem;
        padding: 0 3%;

    }


    .base-intro {}

    .base-image {
        /* height: 500px; */
        flex: unset;

    }


    .base-grid {
        padding: 0;
    }

    .base-swiper {
        width: 95%;
        margin: auto;
    }

    .base-map-img {
        width: 100%;
        /* margin: auto; */
    }

    .base-item {
        width: 100%;
        flex-direction: column;
    }

    .base-info-details {
        gap: 0;
        flex-wrap: wrap;
    }

    .base-grid .swiper-horizontal>.swiper-pagination-bullets {
        left: 0;
    }

    /* 创新模块 */
    .innovation-intro {
        padding: 4rem 5%;
    }

    .innovation-text {
        width: 100%;
        padding-right: 0;
    }

    .leaf-decoration {
        top: 150px;
        width: 120px;
    }

    .leaf-decoration2 {
        /* top: -30px; */
        top: 0px;
        width: 120px;
    }

    .innovation-text p {
        font-size: 1rem;
    }

    .innovation-text p:first-child {
        font-size: 1rem;
    }



    /* 旅居动态 */
    .updates-grid {
        grid-template-columns: 1fr;
    }

    .service-image {
        height: 300px;
    }

    .slider-btn {
        display: none;
    }

    /* 主要内容区域 */
    .hero-slider {
        height: 440px;
    }

    /* 使命愿景 */
    .mission-vision .section-header h2,
    .mission-vision .section-header .en-title,
    .mission-vision .intro-text {
        text-align: center;
    }

    .mission-vision .section-header .line {
        display: none;
    }

    .mission-vision .section-header .en-title {
        font-size: 1rem;
    }

    .mission-container {
        margin-top: 2.5rem;
    }

    .mission-content {}

    .mission-content p {
        width: 100%;
    }

    .mission-item-right .mission-image img {
        width: 100%;
        left: 0;
    }

    .mission-content .en-title {
        font-size: 1rem;
        margin-bottom: 1rem !important;
    }

    .mission-item {
        flex-direction: column;
    }

    .mission-content {
        margin-top: 10px;
    }

    /* 页脚 */
    .footer-links {
        /* flex-direction: column; */
    }

    .link-column {
        margin-bottom: 2rem;
    }

    .link-column img {
        width: 120px;
        height: 120px;
        margin-top: 16px
    }

    .mask-content {
        width: 350px;
    }

    .mask-box {
        width: 350px;
        height: 400px;
        border-radius: 15px;
    }

    .m-pop-bg {
        width: 351px;
        height: 173px;
    }

    .m-content {
        font-size: 16px;
        white-space: nowrap;
    }

    .m-xcx-box {
        width: 200px;
        height: 200px;
    }

    .m-xcx {
        width: 180px;
        height: 180px;
    }

    .m-close {
        margin-top: 20px;
        width: 40px;
        height: 40px;
    }
}

@media screen and (max-width: 500px) {

    .base-info {
        /* padding: 1rem; */
        min-height: 350px;
    }

}