/* 全局初始化 解决样式冲突根源 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}
body {
    font-family: "Microsoft Yahei", sans-serif;
    color: #333;
    line-height: 1.6;
}

/* 顶部通栏（公共组件预留，防止缺失） */
.trust-bar {
    width: 100%;
    background: #c81623;
    color: #fff;
    text-align: center;
    padding: 8px 15px;
    font-size: 15px;
}

/* 头部导航 */
header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}
.logo img {
    display: block;
}
.nav-links {
    display: flex;
    gap: 25px;
}
.nav-links li a {
    color: #333;
    font-size: 15px;
    padding: 6px 0;
    position: relative;
}
.nav-links li a:hover {
    color: #c81623;
}
.hamburger {
    display: none;
    border: none;
    background: transparent;
    font-size: 26px;
    cursor: pointer;
    padding: 5px;
}

/* 专题Banner */
.product-banner {
    background: #fdf6f6;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 12px;
}
.product-banner h1 {
    font-size: 30px;
    color: #c81623;
    margin-bottom: 12px;
}
.product-banner p {
    font-size: 16px;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* 产品网格布局 */
.product-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 20px;
}
.product-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    text-align: center;
    transition: all 0.3s ease;
}
.product-card:hover {
    transform: translateY(-5px);
}
.product-card img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #f2f2f2;
    display: block;
}
.product-card h3 {
    padding: 14px 8px 6px;
    font-size: 16px;
    color: #222;
}
.product-card p {
    font-size: 13px;
    color: #666;
    padding-bottom: 16px;
}

/* 产品介绍区块 */
.product-info {
    max-width: 1100px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.04);
}
.product-info h2 {
    font-size: 22px;
    color: #c81623;
    margin-bottom: 16px;
}
.product-info p {
    font-size: 15px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 12px;
}

/* 优势四宫格 */
.advantage {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}
.adv-item {
    text-align: center;
    padding: 20px;
    background: #fdf6f6;
    border-radius: 12px;
}
.adv-item h4 {
    color: #c81623;
    margin-bottom: 8px;
}

/* OEM咨询区块 */
.oem-box {
    background: #f8f9fa;
    padding: 50px 20px;
    text-align: center;
    margin: 50px 0;
    border-radius: 14px;
}
.oem-box h2 {
    font-size: 24px;
    margin-bottom: 16px;
}
.oem-box p {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 15px;
    line-height: 1.7;
}
.oem-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #c81623;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}
.oem-btn: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(5, 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;
}

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

/* 返回顶部 */
.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;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    font-size: 18px;
}
.back-to-top:hover {
    background: #a50e19;
}

/* 咨询弹窗样式 */
#consult-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}
#consult-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}
#modal-backdrop {
    position: absolute;
    background: rgba(0,0,0,0.6);
    width: 100%;
    height: 100%;
}
.modal-box {
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.modal-header button {
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    color: #666;
}
.modal-center {
    text-align: center;
    margin-bottom: 20px;
}
.modal-icon i {
    font-size: 40px;
    color: #c81623;
    margin-bottom: 10px;
}
.contact-info {
    margin: 20px 0;
}
.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.info-item i {
    font-size: 20px;
    color: #c81623;
    margin-right: 15px;
}
.qrcode-box {
    text-align: center;
    margin: 20px 0;
}
.modal-tel {
    display: block;
    background: #c81623;
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    margin-top: 20px;
}

/* 响应式适配 杜绝排版错乱 */
@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .advantage {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 15px 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        display: none;
        gap: 12px;
    }
    .nav-links.show {
        display: flex;
    }
}
@media (max-width: 500px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .advantage {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}