/* 全局初始化 */
* {
    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;
}
.nav-links a.active {
    color: #c81623;
    font-weight: bold;
}
.hamburger {
    display: none;
    border: none;
    background: transparent;
    font-size: 26px;
    cursor: pointer;
    padding: 5px;
}

/* 横幅轮播 */
.banner {
    width: 100%;
    overflow: hidden;
}
.banner-slides {
    display: flex;
    width: 100%;
}
.banner-slide {
    width: 100%;
    background-size: cover;
    background-position: center center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.banner-text {
    text-align: center;
    color: #fff;
    padding: 0 20px;
}
.banner-text h1 {
    font-size: 32px;
    margin-bottom: 15px;
}
.banner-text p {
    font-size: 18px;
    margin-bottom: 25px;
}
.banner-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #c81623;
    color: #fff;
    border-radius: 6px;
    font-size: 16px;
}
.banner-btn:hover {
    background: #a50e19;
}

/* 关于板块 */
.about-section {
    padding: 60px 20px;
    text-align: center;
}
.section-title {
    font-size: 26px;
    margin-bottom: 10px;
    text-align: center;
}
.section-sub {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
}

/* ========== 产品板块：标题强制居中修复 ========== */
.recommend-section {
    padding: 60px 20px;
    background: #f8f8f8;
    width: 100%;
}
.recommend-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.grid-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    width: 100%;
}
.grid-item:hover {
    transform: translateY(-6px);
}
.grid-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.grid-item-text {
    padding: 18px;
}
.grid-item-text p:first-child {
    color: #c81623;
    font-size: 14px;
}
.grid-item-text h3 {
    margin: 6px 0 8px;
    font-size: 19px;
    color: #222;
}

/* 合作模式 */
.eco-section {
    padding: 60px 20px;
}
.eco-text {
    max-width: 1200px;
    margin: 0 auto;
}
.eco-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}
.eco-item {
    background: rgba(255,255,255,0.08);
    padding: 25px 20px;
    border-radius: 10px;
    color: #fff;
    text-align: center;
}
.eco-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
}
.eco-btn-wrap {
    text-align: center;
}
.eco-btn {
    display: inline-block;
    padding: 13px 35px;
    background: #c81623;
    color: #fff;
    border-radius: 6px;
    font-size: 16px;
}
.eco-btn:hover {
    background: #a50e19;
}

/* FAQ */
.faq-section {
    padding: 50px 30px;
}
.faq-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.faq-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
}
.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}
.faq-ans {
    display: none;
    padding: 0 20px 20px;
    font-size: 14px;
    line-height: 1.7;
    color: #666;
}

/* 底部样式彻底修复 */
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(3, 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: 1200px) {
    .recommend-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 992px) {
    .eco-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .faq-container {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 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;
    }
    .banner-slide {
        min-height: 350px;
    }
    .banner-text h1 {
        font-size: 24px;
    }
}
@media (max-width: 576px) {
    .recommend-grid {
        grid-template-columns: 1fr;
    }
    .eco-row {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}