* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Header styles */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    padding-top: 0;
    background-color: rgba(0, 0, 0, 0.5); /* 将透明度改为0.5，即50%不透明 */
    height: 60px;
}



header.dark-bg {
    background-color: rgba(0, 0, 0, 0.8) !important; /* 使用 !important 确保样式被应用 */
    transition: background-color 0.3s ease; /* 添加过渡效果 */
}



nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 100%; /* 让nav填满整个header高度 */
    width: 100%;
    transition: all 0.3s ease;
}



.logo-container {
    display: flex;
    align-items: center;
    transform: translateY(0); /* 移除之前的向下平移 */
}


.nav-links {
    display: flex;
    list-style: none;
    /*height: 100%;  确保导航链接容器填满header高度 */
    align-items: center; /* 垂直居中导航链接 */
}



.nav-links li {
    margin-left: 2.5rem;
}



.nav-links li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1rem;
    white-space: nowrap;
    padding: 8px 15px; /* 增加内边距，使边框离文字更远 */
    border-radius: 3px;
    border: 1px solid transparent; /* 将边框宽度从 2px 减少到 1px */
}

.nav-links li a:hover {
    border-color: #fff;
}



.logo {
    width: 30px; /* 减小logo大小 */
    height: auto;
    margin-right: 0.5rem;
    /* filter: brightness(0) invert(1); */
}

.company-name {
    font-size: 1.1rem; /* 减小字体大小 */
    font-weight: bold;
    color: #fff; /* 将公司名称改为白色 */
    white-space: nowrap; /* 防止公司名称换行 */
    transform: translateY(3px); /* 将文字向下平移3px */
}

/* Banner styles */
.banner {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.banner-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-slide.active {
    opacity: 1;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    z-index: 2;
    max-width: 60%;
    padding: 2rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 将内齐 */
}

.banner h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-align: left; /* 本左对齐 */
}

.banner h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    transform: translate(3px, 5px);
    color: #FFEA00; /* 设置为黄色 */
    text-shadow: 
        0 0 10px rgba(255, 234, 0, 0.7),
        0 0 20px rgba(255, 234, 0, 0.5),
        0 0 30px rgba(255, 234, 0, 0.3);
    letter-spacing: 10px;
    align-self: flex-start;
}

.banner p {
    font-size: 1.5rem;
    line-height: 1.4;
    text-align: left; /* 本左对齐 */
    margin-top: 1rem; /* 增加与上方内容的间距 */
}

/* 通用样式 */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* Responsive design */
/*
@media (min-width: 768px) {
    header.scrolled {
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        height: 60px;
        padding-top: 0; 
    }

    header.scrolled.dark-bg {
        background-color: rgba(0, 0, 0, 0.8);
    }
    
    header.scrolled .nav-links {
        background-color: transparent; 
    }
    
    header.scrolled.dark-bg .nav-links li a {
        color: #fff;
    }

    .scrolled nav {
        justify-content: center;
    }
    
    .scrolled .logo-container {
        display: none;
    }
    
    .scrolled .nav-links {
        background-color: #333;
        border-radius: 20px;
        padding: 5px 15px;
    }
    
    .scrolled .nav-links li {
        margin-left: 1.5rem;
    }
    
    .scrolled .nav-links li a {
        color: #fff;
        font-size: 0.9rem;
    }
}
*/

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        justify-content: space-between; /* 在小屏幕上保持左右布局 */
        padding: 0 3%; /* 减少左右padding以适应小屏幕 */
    }

    .logo-container {
        flex-shrink: 1; /* 允许logo容器在必要时缩小 */
    }

    .company-name {
        font-size: 1.2rem; /* 从1rem增加到1.2rem */
    }

    .nav-links {
        flex-wrap: nowrap; /* 防止导航链接换行 */
        /*overflow-x: auto;  允许在必要时横向滚动 */
        -webkit-overflow-scrolling: touch; /* 在iOS设备上提供平滑滚动 */
        padding-bottom: 5px; /* 为可能的滚动条留出空 */
    }

    .nav-links li {
        margin-left: 1.5rem; /* 从1rem增加到1.5rem，以适小屏幕 */
    }

    .nav-links li a {
        font-size: 0.95rem; /* 从0.8rem增加到0.95rem */
    }

    .banner-content {
        left: 2%; /* 在小幕上减少左边距 */
        max-width: 90%;
    }

    .banner h1 {
        font-size: 2rem; /* 在小屏幕上稍微减小字体大小 */
    }

    .banner h2 {
        font-size: 2.5rem;
        transform: translate(2px, 3px);
        letter-spacing: 5px;
    }

    .banner p {
        font-size: 1rem; /* 在小屏幕上稍微减小字体大小 */
    }

    nav {
        display: flex;
        justify-content: space-between; /* 左右对齐 */
        align-items: center;
        flex-direction: row;
    }

    /* 菜单按钮显示并固定在右侧 */
    .menu-toggle {
        display: block;
        position: relative; /* 保持相对于 nav 布局 */
        margin-left: auto; /* 向右对齐 */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0; /* 从右侧对齐菜单 */
        width: 100%; /* 覆盖整个宽度 */
        background-color: rgba(0, 0, 0, 0.9);
        padding: 1rem 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0;
        text-align: center;
    }

    .nav-links li a {
        padding: 10px 0;
        font-size: 1rem;
    }
}

/* 确保在大屏上保持左右布局 */
@media (min-width: 1200px) {
    nav {
        justify-content: space-between;
        max-width: none; /* 移除最大宽度限制 */
    }
}

/* 更新Banner styles部分 */
.banner-nav-container {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    z-index: 3;
}

.banner-nav {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: rgba(255, 255, 255, 0.7);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.banner-nav:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
}

/* Company Intro styles */
.company-intro {
    background-color: #0c1633;
    padding: 0;
    color: #fff;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center; /* 垂直居中内容 */
    padding: 0 5%; /* 添加左右内边距 */
    box-sizing: border-box; /* 确保内边距不影响总高度 */
}

.company-intro .container {
    max-width: 1000px; /* 减小最大宽度 */
    margin: 75px auto;
    display: flex;
    align-items: center;
    gap: 40px; /* 增加图片和文字之间的距离 */
    padding: 0 5%;
    box-sizing: border-box;
}

.intro-image {
    flex: 0 0 33.75%;
    position: relative;
    overflow: visible; /* 改为 visible 以显示不规则边框 */
    margin-right: 5%;
}

.intro-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid #fff;
    border-radius: 0 30px 0 30px; /* 右上和左下圆角 */
    clip-path: polygon(
        0% 15%, 10% 15%, 10% 0%, 90% 0%, 90% 15%, 100% 15%,
        100% 85%, 90% 85%, 90% 100%, 10% 100%, 10% 85%, 0% 85%
    );
}

.intro-image img {
    width: 100%;
    height: auto;
    border-radius: 0 20px 0 20px; /*  */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); /* 移除之前的剪 */
}

.intro-content {
    flex: 1;
    padding-left: 5%; /* 添加左内边距，进一步增加与图的间隔 */
}

.intro-content h2 {
    font-size: 1.2rem;
    color: #8b8b8b;
    margin-bottom: 10px;
}

.intro-content h3 {
    font-size: 2.5rem;
    margin-bottom: 25px; /* 增加标题与副标题之间的间距 */
}

.intro-content h4 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px; /* 增加副标题与正文之间的间距 */
}

.intro-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #ccc;
}

.cta-button {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #0056b3;
}

.cta-button span {
    margin-left: 10px;
}

/* Responsive design for Company Intro */
@media (max-width: 768px) {
    .company-intro {
        height: auto; /* 在小屏幕上取消固定高度 */
        padding: 80px 0; /* 在小屏幕上添加上内边距 */
    }

    .company-intro .container {
        flex-direction: column;
    }

    .intro-image{
        width: 85%;
    }

    .intro-content {
        width: 100%;
    }

    .intro-content h3 {
        font-size: 2rem;
    }

    .company-intro {
        /* padding: 0 3%; 更小的内边距 */
    }

    .company-intro .container {
        flex-direction: column; /* 切换为垂直布局 */
        align-items: center; /* 中心对齐 */
        gap: 20px; /* 减小间距 */
    }

    .intro-image {
        flex: 0 0 100%; /* 图片占据全部宽度 */
        margin-right: 0;
    }



    .intro-content {
        padding-left: 0; /* 移除左内边距 */
        text-align: center; /* 文字居中 */
    }

    .intro-content h3 {
        font-size: 2rem; /* 调整标题大小 */
    }

    .intro-content h4 {
        font-size: 1.3rem;
    }

    .intro-content p {
        font-size: 0.95rem;
    }

    .cta-button {
        padding: 10px 20px;
    }
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 60px; /* 添加滚动偏移，防止内容被固定栏遮挡 */
}

/* 确保联系我们部分有正确的ID和位置 */
#contact {
    scroll-margin-top: 60px; /* 为固定导航栏预留空间 */
}

/* 优化锚点链接的点击效果 */
.nav-links li a[href="#contact"] {
    cursor: pointer;
}

/* 添加活跃状态样式 */
.nav-links li a[href="#contact"]:active {
    opacity: 0.8;
}

.company-advantages {
    background-color: #fff;
    height: 80vh; /* 减少20% */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    box-sizing: border-box;
}

.company-advantages .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative; /* 添加相对定位 */
}

.advantages-content {
    flex: 3;
    margin-right: 60px;
    max-width: 50%;
    padding: 20px; /* 添加内边距 */
    box-sizing: border-box; /* 确保内边距不影响总宽度 */
    border: 2px solid transparent; /* 可选：于调边 */
}

.advantages-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.advantages-content p {
    font-size: 1rem;
    line-height: 1.6;
}

.advantages-stats {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 60px;
}

.stat {
    display: flex;
    align-items: flex-start; /* 改为flex-start，使图标和文字顶部对 */
    margin-bottom: 20px;
}

.stat-icon-container {
    display: flex;
    align-items: flex-start; /* 确保图标容器内的内容顶部对齐 */
    margin-right: 10px; /* 图片与文字之间的间 */
}

.stat-icon {
    width: 40px; /* 根据要调整大小 */
    height: auto;
}

.stat-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 确保文字内容顶部对齐 */
}

.stat h3 {
    font-size: 2.5rem;
    color: #0056b3;
    margin: 0; /* 除的上下margin */
    line-height: 1; /* 调整行高，使数字更紧凑 */
}

.stat p {
    font-size: 1rem;
    color: #666;
    margin-top: 5px; /* 添加一些上边距，与数字分开 */
}

.divider {
    width: 1px;
    background-color: #ccc;
    height: 97%; /* 修改为97% */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.advantages-content,
.advantages-stats {
    z-index: 2; /* 保在分割线之上 */
}

.stat-icon[src="engineer-icon.png"],
.stat-icon[src="country-icon.png"] {
    width: 30px;
    height: 30px;
    margin-top: 5px; /* 微调图标位置，使其数字顶部对齐 */
}

.stat-icon[src="ropeway-icon.png"] {
    width: 50px;
    height: 50px;
    margin-top: 0; /* 移除之前添加的上距 */
}

.home-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.home-link:hover {
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .company-advantages .container {
        flex-direction: column; /* 改为纵向布局 */
        align-items: center; /* 居中对齐 */
        padding: 0; /* 移除左右内边距 */
    }

    .advantages-content {
        max-width: 100%; /* 占满宽度 */
        margin: 0 0 2rem 0; /* 增加下边距，分隔内容 */
        text-align: center; /* 居中对齐内容 */
    }

    .advantages-content h2 {
        font-size: 1.8rem; /* 减小标题字体 */
    }

    .advantages-content p {
        font-size: 0.9rem; /* 减小正文字体 */
    }

    .advantages-stats {
        margin: 0; /* 移除外边距 */
        align-items: center; /* 居中对齐所有统计数据 */
    }

    .stat {
        margin-bottom: 1.5rem;
        text-align: center; /* 居中文字 */
        flex-direction: column; /* 图标和文字改为纵向排列 */
        align-items: center; /* 图标居中 */
    }

    .stat-icon-container {
        margin: 0 0 10px 0; /* 移除左右间距，增加底部间距 */
    }

    .stat h3 {
        font-size: 1.6rem; /* 减小数字字体 */
    }

    .stat p {
        font-size: 0.8rem; /* 减小文字描述字体 */
    }

    .divider {
        display: none; /* 移动端隐藏分割线 */
    }
}

/* Solutions styles */
.solutions {
    background-color: #fff;
    padding: 100px 0 60px;
    color: #000;
    position: relative; /* 添加相对定位，确保伪元素正确定位 */
}


.solutions .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.solutions h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px; /* 减少底部间距 */
    /*margin-top: -60px;  设置顶部负间距为-60px */
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px; /* 减小整网格的最大宽度 */
    margin: 0 auto; /* 居中网格 */
}

.solution-item {
    background-color: transparent;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
    border: none;
    box-sizing: border-box;
    height: 100%;
    position: relative;
    z-index: 1; /* 确保解决方案卡片在斑点背景之上 */
}

.solution-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #000;
}

.solution-item p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
    color: #000;
}

.solution-icon {
    width: 120px;
    height: 120px;
}

.find-out-more {
    color: #000;
    text-decoration: none;
    font-weight: normal;
    font-size: 0.9rem;
    border: 1px solid #000;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: auto;
    position: relative;
    z-index: 1; /* 确保按钮在斑点背景之上 */
}

.find-out-more:hover {
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.1); /* 保留原有效果 */
}

@media (min-width: 768px) {
    .solutions::after {
        content: '';
        position: absolute;
        top: 120px; /* 保持顶部位置不变 */
        height: 600px; /* 保持高度不变 */
        background-image: radial-gradient(circle, rgba(204, 204, 204, 0.4) 2px, transparent 2px); /* 降低斑点的不透明度到0.4 */
        background-size: 15px 15px;
        opacity: 0.7;
        z-index: 0;
        left: calc(50% - 5px); /* 保持左侧起点不变 */
        right: 0; /* 延伸到容器右边缘 */
        width: auto; /* 移除固定宽度，让右侧自动延伸 */
    }

    .solution-icon {
        align-self: flex-start;
    }

    .solution-item p {
        text-align: left;
    }

    .solution-item h3 {
        align-self: flex-start;
    }

    .find-out-more {
        align-self: flex-start;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .solutions-grid {
        grid-template-columns: 1fr; /* 在小屏幕上每行1个卡片 */
    }

    .solutions {
        padding: 80px 0 40px; /* 在移动端进一步减少内边距 */
    }

    .solution-item{
        flex-direction: column; /* 垂直排列内容 */
        align-items: center; /* 水平方向居中 */
        text-align: center; /* 文本居中 */
    }
}

.contact {
    min-height: 500px;
    padding: 80px 0;
    background-color: #f5f5f5;
    position: relative;
    overflow: hidden;
}

/* 修改斑点背景的样式 */
.contact::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%; /* 占据左半侧 */
    height: 100%;
    background-image: 
        radial-gradient(circle, #ccc 2px, transparent 2px);
    background-size: 15px 15px;
    opacity: 0.7;
    z-index: 1;
}

/* 除遮罩层 */
.contact::before {
    display: none;
}

/* 确保内容在背景上 */
.contact .container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
}

.contact-info,
.contact-form {
    flex: 1;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 60px; /* 从40px增加到60px，增加标题与内容的间距 */
}

.contact-info p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px; /* 从20px增加到30px，增加段落之间的间距 */
    padding-left: 0;
    text-align: left;
    font-weight: 600;
}

/* 在移动端保持适当的间距 */
@media (max-width: 768px) {
    .contact-info h2 {
        margin-bottom: 40px; /* 移动端稍微减少间距 */
    }
    
    .contact-info p {
        margin-bottom: 20px; /* 移动端减少段落间距 */
        padding-left: 10px;
        font-weight: 600;
    }
}

.contact-form {
    flex: 1;
    padding-top: 0; /* 移除之前添加的上方间距 */
    margin-top: -20px; /* 使用负边距让表单整体向上移动 */
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* 使用gap来控制表单元素之间的间距 */
}

.contact-form label {
    margin-bottom: 0; /* 移除标签的下边距 */
    font-weight: bold;
}

.contact-form input {
    width: 100%; /* 默认宽度100% */
    max-width: 500px; /* 从600px减少到500px */
    min-width: 200px; /* 从300px减少到200px */
    margin-bottom: 5px;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

/* 在不同屏幕尺寸下调整最大宽度 */
@media (max-width: 1200px) {
    .contact-form input {
        max-width: 400px; /* 从500px减少到400px */
    }
}

@media (max-width: 992px) {
    .contact-form input {
        max-width: 300px; /* 从400px减少到300px */
    }
}

@media (max-width: 768px) {
    .contact-form input {
        max-width: 100%; /* 在移动端占满容器宽度 */
        min-width: auto; /* 移除最小宽度限制 */
    }
}

.contact-info {
    flex: 1;
    padding-left: 80px; /* 从50px增加到80px */
}

.contact-info h2,
.contact-info p {
    padding-left: 0;
    text-align: left;
    margin-left: -20px; /* 保持负的左边距 */
}

/* 在移动端保持适当的间距 */
@media (max-width: 768px) {
    .contact .container {
        flex-direction: column; /* 改为垂直排列 */
        align-items: center; /* 内容居中 */
        gap: 30px; /* 上下布局时，调整间距 */
    }

    .contact-info,
    .contact-form {
        flex: none; /* 取消 flex 属性 */
        width: 100%; /* 在移动端占满宽度 */
        padding-left: 0; /* 移除多余的左边距 */
        text-align: center; /* 内容居中对齐 */
    }

    .contact-info h2,
    .contact-info p {
        text-align: center; /* 文本内容居中 */
        margin-left: 0; /* 移除负边距 */
    }

    .contact-form {
        padding-top: 0; /* 调整表单上方的间距 */
        margin-top: 0; /* 避免间距问题 */
    }

    .contact-form input {
        max-width: 70%; /* 表单输入框占满容器宽度 */
        align-self: center;
    }

    .contact-form button {
        margin: 0 auto; /* 按钮居中 */
    }

    .contact-info {
        padding-left: 20px;
    }
    
    .contact-info h2,
    .contact-info p {
        margin-left: 0; /* 移动端移除负边距 */
    }
}

/* 移除发送信息标题 */
.contact-form h2 {
    display: none; /* 隐藏发送信息题 */
}

/* 调整表上方间距 */
.contact-form {
    flex: 1;
    padding-top: 40px; /* 添加上方距，与左侧内容对 */
}

.contact-form button {
    width: 150px; /* 从200px改为150px */
    padding: 12px 0;
    font-size: 1rem;
    color: #fff;
    background-color: #0066ff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: normal;
    margin-top: 10px;
}

.contact-form button:hover {
    background-color: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 102, 255, 0.2);
}

/* 移除之前的图标相关样式 */
.contact-form button::before {
    display: none;
}

/* Projects styles */
.projects {
    background-color: #081835;
    padding: 0 0 100px; /* 将顶部内边距从30px减少到0 */
    color: #fff;
    position: relative;
    margin-top: 50px; /* 将“明星项目”模块整体向下平移50px，根据需要调整值 */
}

.projects .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex; /* 添加flex布局 */
    flex-direction: column;
    align-items: center; /* 水平居中 */
    padding-top: 50px; /* 为“明星项目”模块的内容添加顶部内边距 */
}

.projects h2 {
    font-size: 2.5rem;
    text-align: center;
    margin: 0 auto 50px; /* 从20px增加到50px */
    color: #fff;
    position: relative;
    padding: 0 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .projects {
        padding: 0 0 80px; /* 移除移动端的顶部内边距 */
    }
    
    .projects h2 {
        margin-bottom: 40px; /* 在移动端稍微减少间距，但仍保持较大间距 */
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: #081835; /* 设置项目卡片背景颜色与模块颜色一致 */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 2px dashed #fff; /* 添加白色虚线框，参考解决方案的外框 */
}

/* 可能需要调整文字颜色以确保在新背景色上的可读性 */
.project-info h3 {
    color: #fff;
}

.project-details {
    color: rgba(255, 255, 255, 0.9); /* 增加不透明度，提高可读性 */
}

.description {
    color: rgba(255, 255, 255, 0.8); /* 增加不透明度，提高可读性 */
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff; /* 卡片标题改为白色 */
}

.project-details {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8); /* 项目详情文字改为半透明白色 */
    font-size: 0.9rem;
}

.location, .type {
    display: flex;
    align-items: center;
    gap: 5px;
}

.location-icon, .type-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 5px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.location-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
}

.type-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 2L2 7v10l10 5 10-5V7L12 2zm0 2.7L19.05 8 12 11.3 4.95 8 12 4.7zM4 9.5l7 3.5v5.5l-7-3.5V9.5zm9 9V13l7-3.5v5.5l-7 3.5z'/%3E%3C/svg%3E");
}

.description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7); /* 描述文字改为半透明白色 */
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        max-width: 500px;
        margin: 0 auto;
    }
}

.project-details p {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 修改发现更多项目按钮样式 */
.discover-more {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 80px;
}

.discover-more-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: transparent; /* 透明背景 */
    color: #fff; /* 白色文字 */
    border: 2px solid #fff; /* 白色边框 */
    border-radius: 8px;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: normal;
    min-width: 180px;
    text-align: center;
}

.discover-more-btn:hover {
    background-color: rgba(255, 255, 255, 0.1); /* 悬停添加轻微的白色背景 */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .discover-more {
        margin-top: 60px; /* 在移动端减少间距 */
    }
    
    .discover-more-btn {
        padding: 12px 30px;
        font-size: 1rem;
        min-width: 160px;
    }
}

.company-advantages .advantages-content {
    margin-left: -40px; /* 向左平移40px，您可以根据需要调整这个值 */
}

#craftsmanship {
    /*height: 80vh;  将匠心铸造模块的高度设置为视口高度的80% */
}

.image-caption {
    font-size: 0.7rem; /* 确保字体大小合适 */
    color: #999; /* 确保颜色不是背景色 */
    text-align: left; /* 确保对齐方式正确 */
    font-style: italic; /* 确保字体样式为斜体 */
    margin-top: 10px; /* 确保有足够的间距 */
}

.intro-content h4 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px; /* 增加副标题与正文之间的间距 */
}

.intro-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #ccc;
}

 

/* 样式用于下拉按钮和菜单 */
/* .dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    color: black;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.dropbtn .arrow {
    margin-left: 5px;
    font-size: 12px;
}

.dropdown-content {
    display: none;
    position: absolute;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}


.dropdown-content a:hover {
    background-color: transparent; 
}

.dropdown:hover .dropdown-content {
    display: block;
}

 */

 .languages {
    display: inline-block;
    margin-left: 20px;
    font-size: 0.9rem;
}

.languages a {
    text-decoration: none;
    margin: 0 5px;
    color: #000; /* 默认文字颜色 */
    font-weight: bold;
    cursor: pointer;
}

.languages .lang-divider {
    color: #fff; /* 分割线颜色为白色 */
    margin: 0 5px; /* 为分割线左右添加间距 */
    font-weight: bold; /* 让分割线更醒目 */
}

.swiper{
    --swiper-pagination-color: #fbff00;/* 两种都可以 */
    --swiper-pagination-bullet-inactive-color: #b3e9cf;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .swiper{
        
    }
}