/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: #fff;
}

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

/* 通用组件样式 */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 1rem;
}

/* 修改模块标题的居中样式（移除原left和transform属性） */
.section-title h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    /* 移除以下两行代码 */
    /* left: 50%;
    transform: translateX(-50%); */
}

/* 响应式调整也同步移除定位属性 */
@media screen and (max-width: 1024px) {
    .section-title h2 {
        font-size: 2.2rem;
        /* 确保没有left和transform属性 */
    }
}

@media screen and (max-width: 768px) {
    .section-title h2 {
        font-size: 1.8rem;
        /* 确保没有left和transform属性 */
    }
}

.section-title h2::after {
    content: none;
}

.section-title p {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 700px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: 500;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.pro-btn {
    display: inline-block;
    padding: 6px 14px;
    margin-left: 8px;
    color: #3498db;
    background: transparent;
    border: 1px solid #3498db;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pro-btn:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
}

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* 导航栏logo容器 */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    /* 图片与文字间距 */
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

/* logo图片样式 */
.logo-img {
    width: 40px;
    /* 图片宽度，可根据实际调整 */
    height: 40px;
    /* 图片高度，保持正方形 */
    object-fit: contain;
    /* 保持图片比例 */
}

/* 文字部分样式（继承原有样式） */
.logo-text {
    white-space: nowrap;
    /* 防止文字换行 */
}

/* 语言切换器样式 */
.language-switcher {
    display: flex;
    align-items: center;
    margin-right: 2rem;
}

.lang-btn {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 0 8px;
    transition: all 0.3s;
}

.lang-btn.active {
    color: #3498db;
    font-weight: 600;
}

.lang-btn:hover {
    color: #3498db;
}

.lang-separator {
    color: #ccc;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .language-switcher {
        position: absolute;
        top: 15px;
        right: 70px;
        margin-right: 0;
    }

    .lang-btn {
        font-size: 0.9rem;
        padding: 0 5px;
    }
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-list li {
    margin-left: 2rem;
}

.nav-list a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-list a:hover {
    color: #3498db;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3498db;
    transition: width 0.3s;
}

.nav-list a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background-color: #333;
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 模块一：轮播样式 */
.carousel-section {
    height: 100vh;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.carousel-item.active {
    opacity: 1;
    z-index: 10;
}

.carousel-content {
    max-width: 800px;
    padding: 0 20px;
}

.carousel-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.carousel-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* 轮播控制按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 30;
}

.carousel-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 30;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator-dot.active {
    background-color: white;
    transform: scale(1.2);
}

/* 模块二：公司介绍样式 */
.company-intro {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

.mission {
    color: #3498db !important;
    font-weight: 500;
}

.intro-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.intro-text {
    flex: 1;
    min-width: 300px;
}

.intro-text h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.intro-text p {
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.8;
}

.intro-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.intro-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.intro-image:hover img {
    transform: scale(1.03);
}

/* 模块三：产品展示样式 */
.product-show {
    padding: 5rem 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-img img {
    transform: scale(1.08);
}

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-title {
    font-size: 1.2rem;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.product-title:hover {
    color: #3498db;
}

.product-desc {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 0.5rem;
}

/* 模块四：设备展示样式 */
.equipment-show {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.equipment-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    text-align: center;
}

.equipment-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.equipment-item a {
    text-decoration: none;
}

.equipment-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.equipment-name {
    padding: 1.2rem;
    color: #2c3e50;
    font-weight: 500;
    font-size: 1.1rem;
}

/* 模块五：核心业务样式 */
.core-business {
    padding: 5rem 0;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.business-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border-top: 3px solid #3498db;
}

.business-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.business-icon {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 0.5rem;
    text-align: center;
}

.business-card h3 {
    color: #2c3e50;
    margin-bottom: 0rem;
    text-align: center;
}

.business-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.business-card p {
    color: #555;
    line-height: 1.8;
}

/* 模块六：合作伙伴样式 */
.partners {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

.partners-container {
    position: relative;
    overflow: hidden;
    /* 隐藏超出容器的内容 */
    margin: 0 auto;
    padding: 0 50px;
    /* 给左右按钮预留空间，避免内容被遮挡 */
}

.partners-scroll {
    display: flex;
    gap: 2rem;
    padding: 1rem 0;
    transition: transform 0.5s ease;
    width: 100%;
    overflow-x: auto;
    /* 允许横向滚动 */
    scroll-behavior: smooth;
    /* 平滑滚动 */
    -webkit-overflow-scrolling: touch;
    /* 移动端滚动优化 */
}

/* 隐藏滚动条但保留滚动功能 */
.partners-scroll::-webkit-scrollbar {
    display: none;
}

.partners-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


.partner-item {
    min-width: 180px;
    text-align: center;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.partner-item img {
    width: 120px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.partner-item p {
    color: #2c3e50;
    font-weight: 500;
}

/* 页脚样式 */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3498db;
    border-radius: 2px;
}

.footer-section p {
    margin-bottom: 0.8rem;
    opacity: 0.9;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* 响应式设计 - 平板设备（1024px以下） */
@media screen and (max-width: 1024px) {
    .carousel-content h1 {
        font-size: 2.5rem;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .business-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 响应式设计 - 移动设备（768px以下） */
@media screen and (max-width: 768px) {

    /* 导航栏 */
    .menu-toggle {
        display: flex;
    }

    .nav-container {
        padding: 1rem 20px;
        /* 确保左右有内边距 */
        width: 100%;
        /* 强制占满屏幕宽度 */
    }

    .logo {
        font-size: 1.2rem;
        /* 缩小logo文字，避免溢出 */
    }

    .logo-img {
        width: 36px;
        height: 36px;
    }

    .nav-list {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .nav-list.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-list li {
        margin: 0;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-list a {
        display: block;
        padding: 1rem;
    }

    /* 轮播 */
    .carousel-section {
        height: 70vh;
    }

    .carousel-content h1 {
        font-size: 2rem;
    }

    .carousel-content p {
        font-size: 1rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .indicator-dot {
        width: 10px;
        height: 10px;
    }

    /* 通用样式 */
    .section-title h2 {
        font-size: 1.8rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    /* 公司介绍 */
    .intro-content {
        flex-direction: column;
    }

    /* 核心业务 */
    .business-grid {
        grid-template-columns: 1fr;
    }

    /* 合作伙伴 */
    .partner-item {
        min-width: 140px;
        padding: 1rem;
    }

    .partner-item img {
        width: 100px;
        height: 60px;
    }

    .partners-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        /* 移动端改为单列布局 */
        gap: 1.5rem;
        padding: 0 15px;
        /* 添加内边距 */
    }

    .footer-section p {
        font-size: 0.9rem;
        /* 缩小文字 */
        word-break: break-word;
        /* 允许长单词换行 */
    }

    .footer-section p:nth-child(5),
    .footer-section p:nth-child(2) {
        /* 针对地址等长文本的特殊处理 */
        font-size: 0.85rem;
    }
}