/* 全局初始化，避免和公共样式冲突 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}
body {
    font-family: "Microsoft YaHei", sans-serif;
    color: #333;
    background: #fff;
}

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

/* 头部导航统一 */
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;
}
.nav-links li a:hover {
    color: #c81623;
}
.hamburger {
    display: none;
    border: none;
    background: transparent;
    font-size: 26px;
    cursor: pointer;
    padding: 5px;
}

/* 彩坛专题Banner */
.caitan-banner {
    background: linear-gradient(to right, #fdf3f4, #fce4e7);
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.caitan-banner h1 {
    font-size: 32px;
    color: #c81623;
    margin-bottom: 16px;
}
.caitan-banner p {
    font-size: 16px;
    color: #444;
    max-width: 800px;
    margin: 0 auto 24px;
    line-height: 1.7;
}
.caitan-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #c81623;
    color: #fff;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
}
.caitan-btn:hover {
    background: #a80f1c;
    color: #fff;
}

/* 通用标题样式 */
.series-title {
    text-align: center;
    font-size: 26px;
    color: #222;
    margin: 50px 0 10px;
    position: relative;
}
.series-title::after {
    content: '';
    width: 60px;
    height: 3px;
    background: #c81623;
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
}
.series-desc {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

/* 产品网格布局 */
.caitan-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 20px;
}
.caitan-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: 0.3s;
}
.caitan-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.caitan-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}
.caitan-info {
    padding: 20px;
}
.caitan-info h3 {
    font-size: 18px;
    color: #222;
    margin-bottom: 8px;
}
.caitan-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}
.caitan-tag {
    display: inline-block;
    padding: 4px 8px;
    background: #fef0f0;
    color: #c81623;
    font-size: 12px;
    border-radius: 4px;
    margin-right: 6px;
    margin-bottom: 6px;
}

/* 产品优势区块 */
.caitan-feature {
    background: #f9f9f9;
    padding: 60px 20px;
    margin-top: 50px;
}
.feature-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
    text-align: center;
}
.feature-box {
    background: #fff;
    padding: 25px 15px;
    border-radius: 10px;
}
.feature-box h4 {
    color: #c81623;
    margin-bottom: 8px;
}
.feature-box p {
    font-size: 14px;
    color: #666;
}

/* 底部咨询区块 */
.consult-block {
    padding: 60px 20px;
    text-align: center;
}
.consult-block h2 {
    font-size: 24px;
    margin-bottom: 16px;
}
.consult-block p {
    color: #666;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

/* 悬浮客服 */
.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;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    font-size:18px;
}
.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(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;
}

/* 响应式适配，统一和另外两个产品页断点 */
@media (max-width: 992px) {
    .feature-grid {
        grid-template-columns: repeat(2,1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .nav-links.show {
        display: flex;
    }
    .caitan-banner h1 {
        font-size: 24px;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}