/* 全局初始化，根治样式冲突 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    scroll-behavior: smooth;
}
body {
    font-family: "Microsoft YaHei", sans-serif;
    background: #fbfbfb;
    color: #333;
}

/* 顶部通栏 */
.trust-bar {
    background: #c81623;
    color: #fff;
    text-align: center;
    padding: 8px;
    font-size: 14px;
}

/* 头部导航全局统一 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}
.logo img {
    display: block;
}
.nav-links {
    display: flex;
    gap: 24px;
}
.nav-links a {
    color: #333;
}
.nav-links a:hover {
    color: #c81623;
}
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

/* 专题Banner */
.page-banner {
    width: 100%;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
    text-align: center;
    padding: 0 20px;
}
.page-banner h1 {
    font-size: 36px;
    margin-bottom: 12px;
}
.page-banner p {
    font-size: 16px;
    opacity: 0.92;
    max-width: 800px;
}

/* 内容容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}
.series-title {
    text-align: center;
    margin: 40px 0 30px;
}
.series-title h2 {
    font-size: 28px;
    color: #222;
    margin-bottom: 10px;
}
.series-title p {
    color: #666;
    font-size: 15px;
}

/* 产品网格布局 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}
.product-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.product-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}
.product-info {
    padding: 20px;
}
.product-info h3 {
    font-size: 18px;
    color: #222;
    margin-bottom: 8px;
}
.product-info .spec {
    color: #c81623;
    font-size: 14px;
    margin-bottom: 8px;
}
.product-info .desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}
.product-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: #c81623;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
}
.product-btn:hover {
    background: #a8121c;
}

/* 优势区块 */
.advantage {
    background: #f9f9f9;
    padding: 60px 20px;
}
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.adv-item {
    padding: 24px;
    background: #fff;
    border-radius: 12px;
}
.adv-item i {
    font-size: 30px;
    color: #c81623;
    margin-bottom: 12px;
}
.adv-item h4 {
    font-size: 16px;
    margin-bottom: 6px;
}
.adv-item p {
    color: #666;
    font-size: 13px;
}

/* OEM定制区块 */
.custom-area {
    background: #fff;
    padding: 60px 20px;
    text-align: center;
}
.custom-area h2 {
    font-size: 26px;
    margin-bottom: 20px;
}
.custom-area p {
    max-width: 800px;
    margin: 0 auto 24px;
    color: #666;
    line-height: 1.7;
}
.custom-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #c81623;
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
}
.custom-btn:hover {
    background: #a8121c;
}

/* 悬浮客服 */
.fixed-contact {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
}
.contact-item {
    width: 50px;
    height: 50px;
    background: #c81623;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    cursor: pointer;
}
.contact-item a {
    color: #fff;
    font-size: 22px;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #c81623;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    z-index: 999;
    display: none;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.back-to-top:hover {
    background: #a50e19;
}

/* 咨询弹窗完整样式 */
#consult-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
#consult-modal.show {
    display: flex;
}
#modal-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
}
.modal-box {
    background: #fff;
    width: 90%;
    max-width: 420px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
.modal-header {
    padding: 16px;
    background: #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#close-modal {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}
.modal-center {
    padding: 20px;
    text-align: center;
}
.modal-icon i {
    font-size: 40px;
    color: #c81623;
    margin-bottom: 10px;
}
.contact-info {
    padding: 0 20px 20px;
}
.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.info-item i {
    margin-right: 10px;
    font-size: 20px;
    color: #c81623;
}
.qrcode-box {
    text-align: center;
    padding: 20px;
}
.qrcode-box img {
    width: 160px;
}
.modal-tel {
    display: block;
    background: #c81623;
    color: #fff;
    text-align: center;
    padding: 12px;
}
.modal-tel:hover {
    background: #a50e19;
}

/* 底部样式 */
footer {
    background: #222;
    color: #ccc;
    margin-top: 60px;
    padding: 40px 20px 20px;
}
.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}
.footer-column h5 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #444;
}
.footer-column ul li {
    margin-bottom: 8px;
}
.footer-column ul li a {
    color: #bbb;
    font-size: 14px;
}
.footer-column ul li a:hover {
    color: #c81623;
}
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid #444;
    text-align: center;
    font-size: 13px;
    line-height: 1.8;
}
.footer-links {
    margin-bottom: 8px;
}
.footer-links a {
    color: #bbb;
    margin: 0 8px;
}

/* 响应式适配，杜绝排版错乱 */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .advantage-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    .nav-links.show {
        display: flex;
    }
}
@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .advantage-grid {
        grid-template-columns: 1fr;
    }
    .page-banner h1 {
        font-size: 26px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}