* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: #ffffff;
    background-color: #ffffff;
    overflow-x: hidden;
    font-size: 13px;
    min-width: 1200px;
}

ul, li {
    list-style: none;
}

a {
    text-decoration: none;
    color: #ffffff;
}

.cases-title a {
    text-decoration: none;
    color: #000000;
}

.cases-title a:hover {
    color: #f5f5f5;
}

a:hover {
    color: #e4e4e4;
}


/* 悬浮导航栏 */
.header {
    padding: 25px;
    height: 10px;
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(219, 219, 216, 0.979);
    box-shadow: 0 2px 10px rgb(0, 0, 0);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    position: absolute;
    right: 10px;
    top: -45px;
}

.header-logo img {
    height: 140px;
    width: auto;
    object-fit: contain;
}

.header-en {
    height: 8px;
}

.header-en img {
    height: 20px;
    width: 20px;
    object-fit: contain;
}

/*指示标签*/
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip .tooltiptext {   /*首页标签*/
    visibility: hidden;
    width: 50px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 50px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    top: 150%; /* 将提示框放在元素下 */
    left: 50%;
    margin-left: -28px; /* 使用负边距向左移动一半的宽度以居中 */
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    bottom: 90%; /* 在提示框底部 */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #000000 transparent;
}

.tooltip:hover .tooltiptext {  /*返回标签*/
    visibility: visible;
    opacity: 1;
}

.tooltip .tooltiptext-back {
    visibility: hidden;
    width: 50px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 50px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    top: 150%;
    left: 50%;
    margin-left: -20px; 
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext-back::after {
    content: "";
    position: absolute;
    bottom: 90%; /* 在提示框底部 */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #000000 transparent;
}

.tooltip:hover .tooltiptext-back {
    visibility: visible;
    opacity: 1;
}

/*返回按钮*/

.back a {
    color: #ff0202;
    display: inline-block;
    transition: transform 0.5s;
    position: fixed;
    right: 15px;
    top: 8%;
    z-index: 1000;
}

.nav ul.hidden {
    display: none;
}

.nav-icon span {
    display: block;
    margin-top: 3px;
    width: 18px;
    height: 2px;
    background: #000000;
    transition: all 0.3s ease;
}

.nav {
    position: absolute;
    left: 60px;
    top: 20px;
    z-index: 100;
}

.nav-bg {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: #8b8b8bc5;/*菜单颜色*/
    border-radius: 5px;
}

.nav-icon {
    position: relative;
    padding: 2px 15px 5px 25px; /* 调整左右内边距可以移动三条杠 */
    width: 22px;
    z-index: 110;
    cursor: pointer;
    transform: translateX(-15px); /* 使用transform移动三条杠，不影响下拉菜单 */
}

.nav ul {
    position: relative;
    padding: 10px 0 10px;
    z-index: 120;
    margin-left: 0;/* 确保下拉菜单位置不受三条杠移动影响 */
}

.nav ul li a {
    display: block;
    padding: 3px 20px 3px 10px;
    color: #fff;/*菜单字体颜色*/
    text-transform: uppercase;
}

.nav ul li a:hover {
    background: #fff;
    color: #000;
}

.nav ul li a.active {
    position: relative;
}

.nav ul li a.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 2px;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #ff0505;
    border-radius: 60%;
}


 /* 响应式设计 */
 @media (max-width: 1024px) {
    .cases-carousel-slide {
        min-width: 50%;
    }
    
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .problem-grid {
        grid-template-columns: 1fr;
    }
    
    .news-contact {
        flex-direction: column;
    }
    
    .news-section, .contact-section {
        padding: 50px 0;
    }
}

@media (max-width: 768px) {
    #message-form {
        width: calc(100vw - 40px);
    }
    .cases-carousel-slide {
        min-width: 100%;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .cases-title, .service-title, .problem-title {
        font-size: 2rem;
    }
}