body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    /* 避免内容被固定的导航栏遮挡 */
    padding-top: 0px; 
}

nav {
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    /* 默认不透明 */
    background-color: rgb(6 23 58); 
    transition: background-color 0.3s ease;
}

nav.transparent {
    /* 滚动时半透明 */
    background-color: rgba(6, 23, 58, 0.5); 
}

nav .logo-link {
    text-decoration: none; /* 移除下划线 */
    color: white; /* 设置文字颜色为白色 */
    display: flex;
    align-items: center;
}

.logo-link span {
    margin-left: 10px;
    font-size: 2.4em;
    font-weight: bold;
    color: white;
    /* 可以根据喜好选择不同的 Web 安全字体 */
    font-family: 'Microsoft YaHei', 'SimHei', Arial, sans-serif; 
}

nav .logo {
    max-height: 50px; /* 可根据实际情况调整 Logo 的高度 */
    width: auto;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    padding: 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

section {
    padding: 30px;
    min-height: 500px;
    /* 科技感渐变背景 */
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e); 
    color: white; /* 设置文字颜色为白色，确保在深色背景下可见 */    
}

#home {
    /* padding: 50px 10px 10px 10px; */
    min-height: 500px;
    /* background: linear-gradient(90deg, #000428, #13499f); */
    background: linear-gradient(0deg, #000428, #0947cf);    
    color: white;
    /* 确保高度计算包含 padding 和 border */
    box-sizing: border-box;  
}

.home-index {
    background-image: url('https://public-live-1301935910.file.myqcloud.com/xht/home-bk.jpg') !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 100vh !important; /* 确保容器至少占满视口高度 */
    flex-direction: column !important; /* 让子元素垂直排列 */ 
    .brief-container {
        /* 可以添加一些宽度和内边距 */
        max-width: 80%;
        padding: 20px;
    }
    .tech-button {
        padding: 20px;
        margin: 10px;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        width: 400px;
        height: 300px;
        background-color: rgba(255, 255, 255, 0.3); /* 设置半透明背景 */
        border-radius: 20px;
    }
    
    .ai-marketing {
        /* background-color: rgba(33, 150, 243, 0.5);  */
    }
    
    .ai-quality {
        /* background-color: rgba(103, 58, 183, 0.5);  */
    }

    #trialButton {
        display: block;
        margin-left: auto;
        margin-right: auto;
        padding: 10px 20px;
        background-color: #fd811a;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }
    .tech-button:hover {
        background-color: rgba(253, 129, 26, 0.5); /* #fd811a 的半透明版本 */
    }
    .tech-button img {
        /* object-fit: contain;  */
        width: 200px !important;
        height: auto !important;
        max-width: 100% !important; 
        max-height: 60% !important;
        -webkit-mask-image: linear-gradient(
            to right,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 1) 10%,
            rgba(0, 0, 0, 1) 90%,
            rgba(0, 0, 0, 0) 100%
        ),
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 1) 10%,
            rgba(0, 0, 0, 1) 90%,
            rgba(0, 0, 0, 0) 100%
        );
        mask-image: linear-gradient(
            to right,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 1) 10%,
            rgba(0, 0, 0, 1) 90%,
            rgba(0, 0, 0, 0) 100%
        ),
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 1) 10%,
            rgba(0, 0, 0, 1) 90%,
            rgba(0, 0, 0, 0) 100%
        );
        -webkit-mask-composite: source-in;
        mask-composite: intersect;
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
    }
}

.home-audit {
    background: linear-gradient(90deg, #11312e,#0b9f7e) !important;    
}

#home > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* 确保高度与父元素一致 */
    height: 100%; 
    /* 确保高度计算包含 padding 和 border */
    box-sizing: border-box; 
}

#home > div > div {
    flex: 1; /* 文字部分占据空间 */
}

#home > div > img, .mySlides > img {
    max-width: 100%;
    margin-left: 20px;
    display: block; /* 确保图片作为块级元素 */
    -webkit-mask-image: linear-gradient(
        to right, 
        transparent 0%, 
        rgba(0, 0, 0, 0.8) 10%, 
        rgba(0, 0, 0, 1) 20%, 
        rgba(0, 0, 0, 1) 80%, 
        rgba(0, 0, 0, 0.8) 90%, 
        transparent 100%
    );
    mask-image: linear-gradient(
        to right, 
        transparent 0%, 
        rgba(0, 0, 0, 0.8) 10%, 
        rgba(0, 0, 0, 1) 20%, 
        rgba(0, 0, 0, 1) 80%, 
        rgba(0, 0, 0, 0.8) 90%, 
        transparent 100%
    );
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-backface-visibility: hidden; /* 解决部分浏览器的渲染问题 */
    backface-visibility: hidden;
    transform: translateZ(0); /* 强制硬件加速，优化渲染 */
}

.brief-container {
    display: flex;
    align-items: center;   
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px; /* 行与行之间的间距 */
}

.marquee-row-1 {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
    width: fit-content;
}

.marquee-row-2 {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    width: fit-content;
}

.marquee-row span {
    margin-right: 20px; /* 每个内容之间的间距 */
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

section h2 {
    text-align: center;
}

section:nth-child(even) {
    /* background-color: #f4f4f4;*/
    background: linear-gradient(135deg, #000428, #004e92);
}

.customer-content {
    padding: 0 60px;    
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#customer h2 {
    width: 100%;
    text-align: center;
}

.customer-group {
    flex: 1;
    min-width: 300px; /* 确保在小屏幕下有合适的宽度 */
    margin: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.customer-illustration {
    max-width: 300px;
    margin-bottom: 20px;
    display: block;
}

.customer-group ul {
    list-style-type: none;
    padding-left: 20px;
}

.customer-group p, .customer-group ul li {
    color: #ffffff; /* 设置文字颜色为白色，可根据需求调整 */
    font-size: small; /* 设置字体大小，可根据需求调整 */
}

.customer-group h3 {
    color: #fd811a;
}

#customer img {
    max-width: 100%;
    margin-left: 20px;
    display: block; /* 确保图片作为块级元素 */
    -webkit-mask-image: linear-gradient(
        to right, 
        transparent 0%, 
        rgba(0, 0, 0, 0.8) 10%, 
        rgba(0, 0, 0, 1) 20%, 
        rgba(0, 0, 0, 1) 80%, 
        rgba(0, 0, 0, 0.8) 90%, 
        transparent 100%
    );
    mask-image: linear-gradient(
        to right, 
        transparent 0%, 
        rgba(0, 0, 0, 0.8) 10%, 
        rgba(0, 0, 0, 1) 20%, 
        rgba(0, 0, 0, 1) 80%, 
        rgba(0, 0, 0, 0.8) 90%, 
        transparent 100%
    );
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-backface-visibility: hidden; /* 解决部分浏览器的渲染问题 */
    backface-visibility: hidden;
    transform: translateZ(0); /* 强制硬件加速，优化渲染 */
}

#about, #feature {
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    flex-direction: column; /* 子元素垂直排列 */
}

footer {
    text-align: center;
    padding: 20px;
    /* 修改为科技感较强的背景颜色 */
    background-color: rgb(6 23 58); 
    color: white !important;
}

footer a {
    color: white !important;
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 1001; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.4); 
}

/* 弹窗内容 */
.modal-content {
    background-color: #fefefe;
    margin: 10% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 300px; 
    text-align: center;

    img {
        width: 100%; 
    }
}

/* 关闭按钮 */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* 幻灯片容器 */
.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: auto;
  }
  
  /* 隐藏幻灯片 */
  .mySlides {
    display: none;
  }
  
  /* 上一张和下一张按钮 */
  .prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
  }
  
  /* 定位下一张按钮到右侧 */
  .next {
    right: 0;
    border-radius: 3px 0 0 3px;
  }
  
  /* 鼠标悬停时添加背景色 */
  .prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
  }
  
  /* 圆点指示器 */
  .dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
  }
  
  .active, .dot:hover {
    background-color: #717171;
  }
  
  /* 淡入动画 */
  .fade {
    animation-name: fade;
    animation-duration: 1.5s;
  }
  
  @keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
  }

@media (max-width: 900px) {
    /* section {
        padding: 10px;
    } */
    nav {
        padding: 0 10px;
    }

    nav .logo {
        max-height: 32px !important;
        width: auto;
    }

   .logo-link span {
        font-size: 1em;
    }

    /* .brief-container {
        padding-left: 0px !important;
        padding-right: 0px !important;
    } */    

    #home > div, h1 {
        text-align: center;
        flex-direction: column; /* 让子元素垂直排列 */
        align-items: center; /* 水平居中 */
        justify-content: center; /* 垂直居中 */
        /* margin-bottom: 80px; */
    }

    #home .brief-container .row-1 {
        padding: 50px 20px 0 20px;
        flex: 1; /* 文字部分占据空间 */
        display: flex;
        flex-direction: column;
        justify-content: center; /* 垂直居中 */
    }

    .slideshow-container {
        padding: 50px 0px 0px 0px !important;        
    }
    .mySlides {
        padding: 0px !important;         
    }

    #home > div > img, .mySlides > img {
        max-width: 100%; /* 图片宽度在小屏幕下占满容器 */
        margin-left: 0; /* 移除左侧边距 */
        margin-top: 20px; /* 添加顶部边距 */
    }

    .home-index {
        .tech-button  {
            width: 100%;
            height: auto;
            margin: 0px 0px 10px 0px;
        }
        .tech-button img {
            object-fit: contain; 
            width: 64px !important; /* 自动调整宽度 */
            height: auto !important; /* 自动调整高度 */
            max-width: 80% !important; /* 限制最大宽度为按钮宽度的 80% */
            max-height: 50% !important; /* 限制最大高度为按钮高度的 50% */
            margin: 0 auto; /* 水平居中 */
        }

    }

    /* 在屏幕宽度小于 900px 时，让板块垂直排列 */
    .customer-group {
        flex-basis: 100%;
    }
    .customer-content {
        padding: 0 0px;
    }
    .modal-content {
        margin: 30% auto;
    }

    footer p {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    footer p a {
        margin-bottom: 10px;
    }

    footer p a:last-child {
        margin-bottom: 0;
    }       
}

#menuButton {
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.nav-menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

@media (max-width: 900px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #0f0c29; /* 可根据实际情况调整背景颜色 */
        flex-direction: column;
        align-items: center;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu li a {
        display: block;
        padding: 15px;
    }
}