/* 全局样式 */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    width: 100%;
    overflow-x: hidden; /* 隐藏水平滚动条 */
}

/* 顶部导航栏 */
header {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.logo{
    display: flex;          /* 使用 Flex 布局 */
    align-items: center;    /* 垂直居中 */
    gap: 10px;  
}
.logo img {
    height: 50px;
}
.company-name {
    font-size: 18px;       /* 调整字体大小 */
    font-weight: bold;     /* 加粗 */
    color: #fff;           /* 确保文字颜色与导航栏匹配 */
    white-space: nowrap;   /* 防止文字换行 */
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    background-color: #fff;
    height: 3px;
    width: 25px;
    margin: 4px 0;
    transition: 0.4s;
}

/* 轮播图样式 */
.banner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slider img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    display: none; /* 默认隐藏所有图片 */
}

.slider img.active {
    display: block; /* 显示当前图片 */
}

/* 上一页/下一页按钮 */
.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* 其他部分样式保持不变 */

/* 公司简介模块样式 */
.intro {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.intro .container {
    max-width: 1200px;
    margin: 0 auto;
}

.intro-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.intro-text {
    flex: 1;
}

.intro-text h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.intro-text h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #007BFF;
    margin: 10px 0 20px;
}

.intro-text p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.intro-text .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.intro-text .btn:hover {
    background-color: #0056b3;
}

.intro-image {
    flex: 1;
    text-align: center;
}

.intro-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .intro-content {
        flex-direction: column;
    }

    .intro-text, .intro-image {
        width: 100%;
    }

    .intro-text h2 {
        font-size: 28px;
    }

    .intro-text p {
        font-size: 14px;
    }
}
/* 我们的承诺模块样式 */
.commitment {
    padding: 60px 20px;
    background-color: #fff;
}

.commitment .container {
    max-width: 1200px;
    margin: 0 auto;
}

.commitment h2 {
    font-size: 32px;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.commitment h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #007BFF;
    margin: 10px auto 0;
}

.commitment-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.commitment-image {
    flex: 1;
    text-align: center;
}

.commitment-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.commitment-text {
    flex: 1;
}

.commitment-item {
    display: flex;
    align-items: center; /* 图标和标题水平对齐 */
    gap: 10px; /* 图标和标题之间的间距 */
    margin-bottom: 10px; /* 调整与段落的间距 */
}

.commitment-item .icon {
    font-size: 24px;
    color: #007BFF;
    flex-shrink: 0; /* 防止图标被压缩 */
}

.commitment-item h3 {
    font-size: 24px;
    color: #333;
    margin: 0; /* 移除默认的 margin */
}

.commitment-text p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px; /* 段落之间的间距 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .commitment-content {
        flex-direction: column;
    }

    .commitment-image, .commitment-text {
        width: 100%;
    }

    .commitment-item {
        flex-direction: row; /* 保持图标和标题水平排列 */
        align-items: center;
    }

    .commitment-item .icon {
        margin-bottom: 0; /* 移除多余的间距 */
    }

    .commitment h2 {
        font-size: 28px;
    }

    .commitment-item h3 {
        font-size: 20px;
    }

    .commitment-text p {
        font-size: 14px;
    }
}

/* 产品展示 */
.home-products-showcase {
    padding: 40px 20px;
    text-align: center;
}

.home-products-showcase h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.home-product-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.home-product-item {
    width: 30%;
    margin-bottom: 20px;
}

.home-product-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.home-product-item h3 {
    font-size: 20px;
    margin: 10px 0;
}

.home-product-item p {
    font-size: 14px;
    color: #666;
}

/* 底部联系信息 */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .home-product-item {
        width: 100%;
    }
}

/* 关于我们模块样式 */
.about-intro {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.about-intro .container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-intro h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.about-intro h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #007BFF;
    margin: 10px auto 0;
}

 .about-content {
    text-align: left;
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.about-content p {
    margin-bottom: 20px;
}

.certificates-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.certificate {
    text-align: center;
    margin: 10px;
}

.certificate img {
    width: 250px;
    height: auto;
    border-radius: 10px;
}

.certificate p {
    margin-top: 10px;
    font-size: 1em;
}
/* 响应式设计 */
@media (max-width: 768px) {
    .about-intro {
        padding: 40px 15px;
    }

    .about-intro h2 {
        font-size: 28px;
    }

    .about-content {
        font-size: 14px;
    }
    .certificates-content {
        flex-direction: column;
    }
} 



/* 联系我们部分 */
.contact {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.contact h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    color: #333;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-info, .contact-media {
    flex: 1;
    min-width: 300px;
}

.contact-info {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 24px;
    margin-right: 15px;
    color: #007BFF;
}

.info-item p {
    margin: 0;
    font-size: 1.1em;
}

.info-item p strong {
    display: block;
    font-size: 1.2em;
    margin-bottom: 5px;
}

.contact-media {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qr-code, .map {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.qr-code img, .map img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.qr-code p {
    margin-top: 10px;
    font-size: 1.1em;
    color: #555;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }

    .contact-info, .contact-media {
        width: 100%;
    }
}

/* 产品中心模块样式 */
.products-center {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.products-center .container {
    max-width: 1400px; /* 增加容器宽度 */
    margin: 0 auto;
}

.products-center h2 {
    font-size: 32px;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.products-center h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #007BFF;
    margin: 10px auto 0;
}

.products-content {
    display: flex;
    gap: 40px; /* 增加间距 */
}

/* 左侧产品分类 */
.product-categories {
    width: 300px; /* 增加分类宽度 */
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-categories li {
    margin-bottom: 15px;
}

.product-categories li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.product-categories li a:hover {
    background-color: #f1f1f1;
}

.product-categories li.active a {
    background-color: #007BFF;
    color: #fff;
}

/* 右侧产品列表 */
.product-list {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* 增加产品项宽度 */
    gap: 30px; /* 增加间距 */
}

.product-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-item a {
    text-decoration: none;
    color: #333;
    display: block;
}

.product-item img {
    width: 100%;
    height: 250px; /* 增加图片高度 */
    object-fit: cover;
}

.product-item h3 {
    font-size: 18px;
    text-align: center;
    padding: 20px;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .products-content {
        flex-direction: column;
    }

    .product-categories {
        width: 100%;
    }

    .product-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}
/* 产品详情模块样式 */
.product-detail {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.product-detail .container {
    max-width: 1200px;
    margin: 0 auto;
}

.product-detail h2 {
    font-size: 32px;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.product-detail h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #007BFF;
    margin: 10px auto 0;
}

/* Tab 标签页样式 */
.model-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    border-bottom: 2px solid #ddd;
}

.tab-btn {
    padding: 10px 20px;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
    color: #555;
    transition: all 0.3s ease;
}

.tab-btn.active, .tab-btn:hover {
    color: #007BFF;
    border-bottom: 2px solid #007BFF;
}

/* 动态内容 */
.product-content {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.product-image {
    flex: 1;
}

.product-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-info {
    flex: 1;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-info h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.product-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-info li {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}

.product-info li strong {
    color: #333;
}

.product-description {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-description h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.product-description p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .model-tabs {
        flex-wrap: wrap;
    }

    .product-content {
        flex-direction: column;
    }

    .product-info, .product-description {
        padding: 15px;
    }

    .product-info h3, .product-description h3 {
        font-size: 20px;
    }

    .product-info li, .product-description p {
        font-size: 14px;
    }
}