/* 全局样式重置，无需修改 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", 微软雅黑, sans-serif;
}
body {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    background-color: #f8f8f8;
}
a {
    text-decoration: none;
    color: #333;
}
ul {
    list-style: none;
}
img {
    max-width: 100%;
    display: block;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
.title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}
.title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #e63946;
}
.sub-title {
    font-size: 22px;
    margin: 30px 0 20px;
    color: #e63946;
    padding-left: 10px;
    border-left: 4px solid #e63946;
}
.more-btn {
    margin-top: 20px;
}
.more-btn a {
    display: inline-block;
    padding: 10px 30px;
    background-color: #e63946;
    color: #fff;
    border-radius: 4px;
    transition: all 0.3s;
}
.more-btn a:hover {
    background-color: #c72c38;
}
/* 导航栏样式，无需修改 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}
.logo {
    display: flex;
    align-items: center;
}
.logo img {
    width: 60px;
    height: 60px;
    margin-right: 15px;
}
.logo h1 {
    font-size: 20px;
    color: #e63946;
}
.nav ul {
    display: flex;
}
.nav ul li {
    margin-left: 30px;
}
.nav ul li a {
    font-size: 16px;
    padding: 10px 0;
    display: block;
    color: #333;
    transition: all 0.3s;
}
.nav ul li.active a,
.nav ul li a:hover {
    color: #e63946;
    border-bottom: 2px solid #e63946;
}
.menu-btn {
    font-size: 24px;
    color: #333;
    display: none;
    cursor: pointer;
}
/* 轮播图样式，无需修改 */
.banner {
    margin-top: 82px;
    position: relative;
}
.banner-item {
    position: relative;
    width: 100%;
    height: auto;
}
 /* {
    
} */


.banner-item img {
    width: 100%;
    height: 700px;
    object-fit: cover;
}
.banner-text {
    position: absolute;
    top: -30% !important; 
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    z-index: 999;
     /* 额外加z-index，确保文字在最上层，不被图片遮挡 */
}
 /* {
    
} */



.banner-text h2 {
    font-size: 40px;
    margin-bottom: 20px;
}
.banner-text p {
    font-size: 20px;
}
/* 核心优势样式，无需修改 */
.advantage {
    padding: 80px 0;
    background-color: #fff;
}
.advantage-list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.advantage-item {
    width: 23%;
    text-align: center;
    padding: 30px 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
    transition: all 0.3s;
}
.advantage-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.advantage-item i {
    font-size: 40px;
    color: #e63946;
    margin-bottom: 20px;
}
.advantage-item h4 {
    font-size: 18px;
    margin-bottom: 15px;
}
/* 首页产品推荐样式，无需修改 */
.product-recommend {
    padding: 80px 0;
    background-color: #f8f8f8;
}
.product-list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.product-item {
    width: 31%;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}
.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.product-item h4 {
    padding: 15px;
    font-size: 16px;
    text-align: center;
}
.product-item p {
    padding: 0 15px 15px;
    text-align: center;
    color: #666;
}
/* 首页工厂简介样式，无需修改 */
.about-brief {
    padding: 80px 0;
    background-color: #fff;
}
.about-brief .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.about-img {
    width: 45%;
}

.about-text {
    width: 50%;
}


.about-img img {
    width: 100%;
    border-radius: 8px;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.8;
}
/* 页面标题栏样式，无需修改 */
.page-title {
    margin-top: 82px;
    padding: 50px 0;
    background-color: #e63946;
    color: #fff;
    text-align: center;
}
.page-title h2 {
    font-size: 30px;
    margin-bottom: 10px;
}
/* 产品详情页样式，无需修改 */
.product-page {
    padding: 80px 0;
    background-color: #f8f8f8;
}
.product-detail-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
}
.product-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.product-detail-img {
    width: 40%;
}
.product-detail-img img {
    width: 100%;
    border-radius: 8px;
}
.product-detail-text {
    width: 55%;
}
.product-detail-text h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #e63946;
}
.product-detail-text .param {
    margin-bottom: 10px;
    font-size: 16px;
}
.product-detail-text .param span {
    font-weight: bold;
    color: #e63946;
}
.product-detail-text .intro {
    line-height: 1.8;
    color: #666;
}
/* 公司介绍页样式，无需修改 */
.company-page {
    padding: 80px 0;
    background-color: #f8f8f8;
}
.company-content {
    display: flex;
    gap: 30px;
    align-items: center;
    line-height: 1.8;
    color: #666;
}
.company-content img {
    width: 40%;
    border-radius: 8px;
}
.company-content p {
    margin-bottom: 15px;
}
.company-content.no-img {
    display: block;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
/* 联系我们页样式，无需修改 */
.contact-page {
    padding: 80px 0;
    background-color: #f8f8f8;
}
.contact-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}
.contact-left {
    width: 45%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}
.card-icon {
    font-size: 40px;
    color: #e63946;
    margin-bottom: 20px;
}
.contact-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
}
.contact-card p {
    margin-bottom: 10px;
    color: #666;
}
.contact-code {
    width: 150px;
    height: 150px;
    margin: 15px auto;
}
.contact-right {
    width: 50%;
    height: 600px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}
/* 底部样式，无需修改 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0 20px;
}
.footer-contact {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.contact-item {
    display: flex;
    align-items: center;
    width: 30%;
}
.contact-item i {
    font-size: 30px;
    color: #e63946;
    margin-right: 20px;
}
.contact-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
}
.contact-item p {
    color: #ccc;
}
.weixin-code {
    width: 80px;
    height: 80px;
    margin-top: 10px;
}
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #ccc;
}
/* 手机端自适应样式，无需修改 */
@media (max-width: 992px) {
    .nav ul {
        display: none;
        position: absolute;
        top: 82px;
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .nav ul li {
        margin: 0;
        text-align: center;
    }
    .nav ul li a {
        padding: 15px 0;
    }
    .menu-btn {
        display: block;
    }
    .banner-item img {
        height: 300px;
    }
    .banner-text h2 {
        font-size: 28px;
    }
    .banner-text p {
        font-size: 16px;
    }
    .advantage-item {
        width: 48%;
        margin-bottom: 20px;
    }
    .product-item {
        width: 48%;
    }
    .about-brief .container {
        flex-direction: column;
    }
    .about-img, .about-text {
        width: 100%;
    }
    .about-img {
        margin-bottom: 30px;
    }
    .product-detail-item {
        flex-direction: column;
    }
    .product-detail-img, .product-detail-text {
        width: 100%;
    }
    .product-detail-img {
        margin-bottom: 20px;
    }
    .company-content {
        flex-direction: column;
    }
    .company-content img {
        width: 100%;
    }
    .contact-content {
        flex-direction: column;
    }
    .contact-left, .contact-right {
        width: 100%;
    }
    .contact-right {
        height: 400px;
    }
    .footer-contact {
        flex-direction: column;
    }
    .contact-item {
        width: 100%;
        margin-bottom: 30px;
    }
}
@media (max-width: 576px) {
    .logo h1 {
        font-size: 16px;
    }
    .logo img {
        width: 40px;
        height: 40px;
    }
    .title {
        font-size: 24px;
    }
    .advantage-item {
        width: 100%;
    }
    .product-item {
        width: 100%;
    }
    .banner-text h2 {
        font-size: 20px;
    }
    .banner-text p {
        font-size: 14px;
    }
}