html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;

    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-item {
    display: none;
}

.blue-box {
    position: absolute;
    top: 20%;
    right: 10%;
    background-color: rgba(19, 111, 99, 0.8);
    color: white;
    padding: 20px;
    border-radius: 5px;
    /* min-width: 495px; */
    /* 默认宽度 */
    max-width: 100%;
    /* 确保在小屏幕上不会超出 */
    opacity: 1;
    transform: translateY(-20px);
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

nav {
    z-index: 1000;
    position: fixed;
    top: 0;
    /* 固定在页面顶部 */
    left: 0;
    width: 100%;
    background: transparent;
    color: white;
    transition: background 0.5s;
}

nav a {
    color: white;
    transition: color 0.3s ease;
}

/* 滚动后的导航栏样式 */
nav.nav-scrolled {
    background: rgba(255, 255, 255, 0.8);
    /* 背景变为白色 */
    color: #136f63;
    /* 文字颜色变为绿色 */
    backdrop-filter: blur(10px);
    /* 加上模糊效果 */
}

/* 默认情况下，导航栏内的链接、按钮和切换语言文字都是白色 */
nav a,
#langSwitcher,
#drawerButton {
    color: white;
    /* 默认白色 */
}

/* 滚动后，导航栏内的链接、按钮和切换语言文字颜色都变为绿色 */
nav.nav-scrolled a,
nav.nav-scrolled #langSwitcher,
nav.nav-scrolled #drawerButton {
    color: #136f63;
    /* 滚动后变为绿色 */
}

.nav-bg {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}


#drawer {
    position: fixed;
    top: 0;
    left: -300px;
    /* 隐藏在视口外 */
    width: 300px;
    /* 抽屉宽度 */
    height: 100vh;
    /* 抽屉高度 */
    background: linear-gradient(to right, #ffffff, #f0f0f0);
    /* 渐变背景 */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    transition: left 0.4s ease;
    /* 过渡效果 */
    z-index: 1000;
    /* 确保在其他元素之上 */
}

#drawerButton span {
    color: white;
    /* 默认颜色 */
    transition: color 0.3s ease;
    /* 添加过渡效果 */
}

.drawer-content {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    /* 内边距 */
    margin-top: 2rem;
    /* 顶部外边距 */
    flex-grow: 1;
    /* 填充可用空间 */
}

.drawer-link {
    color: black;
    /* 链接颜色 */
    text-decoration: none;
    /* 去掉下划线 */
    margin-bottom: 1rem;
    /* 每个链接的下边距 */
    opacity: 0;
    /* 初始透明度 */
    transform: translateX(-20px);
    /* 初始位置 */
    transition: opacity 0.4s ease, transform 0.4s ease;
    /* 添加过渡效果 */
}


.field-item {
    transition: transform 0.3s ease;
    /* 添加过渡效果 */
}

.field-item:hover {
    transform: scale(1.05);
    /* 鼠标悬停效果 */
}

.content-inner {
    position: relative;
    white-space: normal;
    max-width: 100%;
    /* 确保宽度适应 */
    padding: 0 1rem;
    /* 增加左右内边距 */
}

/* 联系我们 */
.contact-us-content {
    position: relative;
    overflow: hidden;
    padding: 0 1rem;
}

.contact-us-inner {
    position: relative;
    white-space: normal;
    max-width: 100%;
    /* 确保宽度适应 */
    padding: 0 1rem;
    /* 增加左右内边距 */
}

.clients-title {
    padding: 0 1rem;
}

.grid {
    padding: 0 1rem;
}



.clients-item {
    background-color: white;
    /* 背景颜色 */
    padding: 1.5rem;
    /* 内边距 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* 阴影效果 */
    transition: transform 0.3s, box-shadow 0.3s;
    /* 动画效果 */
    display: flex;
    /* 使用flexbox布局 */
    flex-direction: column;
    /* 垂直排列 */
    align-items: center;
    /* 水平居中对齐 */
    justify-content: center;
    /* 垂直居中对齐 */
    max-width: 200px;
    /* 最大宽度 */
    margin: 0 auto;
    /* 居中对齐 */
}

.clients-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* 悬停时阴影加深 */
}

.clients-item img {
    width: 100%;
    /* 图片宽度100% */
    height: auto;
    /* 高度自动 */
    object-fit: cover;
    /* 确保图片覆盖 */
}


/* 确保客户展示部分有适当的样式 */
#clients {
    padding: 2rem 0;
}

/* .clients-item {
    transition: transform 0.3s;
} */

.clients-item:hover {
    transform: scale(1.05);
}


.touch-inner {
    opacity: 0;
    transform: translateX(-100%);
    /* 初始状态：移出视口 */
}


#logo {
    opacity: 0;
}

/* 行业应用 */
/* 自定义 CSS 动画 */
.additional-content {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s, max-height 0.3s;
}

.section:hover .additional-content {
    opacity: 1;
    max-height: 200px;
    /* 调整高度以适应内容 */
}

/* 鼠标悬停时的平滑过渡 */
.smooth-transition {
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* 阴影效果 */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px 0 rgba(0, 0, 0, 0.06);
}

/* 专业领域 */
.item {
    opacity: 0;
    transform: translateY(50px);
    width: 100%;
    /* 让每个 item 的宽度统一 */
    max-width: 300px;
    /* 可根据设计需求调整 */
}

.fixed-height {
    height: 250px;
    /* 设置固定的高度 */
    object-fit: cover;
    /* 确保图片保持比例并裁剪以填充高度 */
}

/* 为每个 li 添加阴影和圆角 */
.list-item {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

/* 初始蒙版状态 */
.mask {
    background-color: white;
    /* 蒙版颜色 */
    opacity: 0.9;
    /* 初始透明度 */
}

/* 鼠标悬停状态 */
.group:hover .mask {
    background-color: #136f63;
    /* 鼠标悬停颜色 */
    opacity: 0.7;
}

/* 鼠标悬停时图标动画 */
.group:hover img.icon {
    transform: scale(1.2) translateY(-10px);
    /* 放大和上移 */
    transition: transform 0.3s ease-in-out;
    /* 动画过渡 */
}

.icon-size {
    width: 50px;
    /* 固定宽度 */
    height: 50px;
    /* 固定高度 */
    transition: filter 0.3s ease;
    /* 过渡效果 */
}

/* 默认情况下，使用黑色 */
.icon-size {
    filter: invert(0);
    /* 黑色 */
}

/* 鼠标悬停时变为白色 */
.list-item:hover .icon-size {
    filter: invert(1);
    /* 白色 */
}

/* 切换语言 */
.fade {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.fade-in {
    opacity: 1;
}

/* menu按钮 */
.menu-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    cursor: pointer;
}

.menu-button .menu-line {
    background-color: white;
    /* 默认白色 */
    transition: background-color 0.3s ease;
    /* 过渡效果 */
}

.nav-scrolled .menu-button .menu-line {
    background-color: #136f63;
    /* 滚动后变为绿色 */
}

.menu-line {
    width: 100%;
    height: 4px;
    /* 线条高度 */
    background-color: white;
    /* 线条颜色 */
    margin: 6px 0;
    /* 线条之间的间距 */
    transition: all 0.4s ease;
    /* 添加过渡效果 */
    transform-origin: left;
    /* 旋转的中心 */
}

.active .top {
    transform: rotate(45deg);
    margin-top: 0;
    /* 上线与中心线间距归零 */
}

.active .middle {
    opacity: 0;
    /* 中线消失 */
}

.active .bottom {
    transform: rotate(-45deg);
    margin-bottom: 0;
    /* 下线与中心线间距归零 */
}

.carousel-item h2 {
    font-size: 2em;
    word-wrap: break-word;
    /* 自动换行 */
    margin: 0 auto;
    /* 使文本居中（可选） */
}


.carousel-item p {
    max-width: 475px;
    /* 最大宽度为270px */
    word-wrap: break-word;
    /* 自动换行 */
    margin: 0 auto;
    /* 使文本居中（可选） */
}

/* 导航栏动画 */
/* #navLinks {
    display: flex;
    align-items: center;
    transition: all 0.5s ease; 
} */


.item {
    overflow: hidden;
    position: relative;
    /* 确保定位 */
    display: flex;
    flex-direction: column;
}



.description {
    max-height: 0px;
    overflow: hidden;
    /* 隐藏超出部分 */
    transition: max-height 0.3s ease;
}



.group:hover .description {
    max-height: 400px;
    /* 设置最大高度 */
    display: -webkit-box;
    /* 使用 WebKit 盒子模型 */
    -webkit-box-orient: vertical;
    /* 设置盒子为垂直排列 */
    -webkit-line-clamp: 7;
    text-overflow: ellipsis;
    /* 超出部分显示省略号 */
    white-space: normal;
    /* 防止文本不换行 */
}



@media (max-width: 750px) {
    #langSwitcher {
        display: none;
    }

    .blue-box {
        min-width: 270px !important;
        /* 小屏幕宽度 */
        max-width: 90% !important;
        /* 确保不会超出屏幕 */
        right: 5% !important;
    }

    /* menu按钮 */
    .menu-button {
        width: 23px;
        height: 25px;
    }

    .menu-line {
        width: 100%;
        /* height: 2px; */
        /* 线条颜色 */
        margin: 2px 0;
    }
}

@media (max-width: 640px) {
    .clients-item {
        display: flex;
        /* 使用flexbox布局 */
        flex-direction: column;
        /* 垂直排列 */
        align-items: center;
        /* 水平居中对齐 */
        justify-content: center;
        /* 垂直居中对齐 */
        width: 100%;
        /* 客户项宽度适应屏幕 */
        max-width: 200px;
        /* 设置最大宽度 */
        margin: 0 auto;
        /* 居中对齐 */
    }

    .clients-item img {
        width: 100%;
        /* 图片宽度100% */
        height: auto;
        /* 高度自动 */
        object-fit: cover;
        /* 确保图片覆盖 */
    }
}