﻿/* 全局样式重置和基础设置 - 移动端优先 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    font-size: 14px;
}

/* 顶部导航栏 */
.header {
    background-color: #fff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
}

    .logo img {
        height: 30px;
        margin-right: 8px;
    }

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #007bff;
}

.menu-icon {
    width: 24px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .menu-icon span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #333;
        border-radius: 1px;
    }

/* 横幅轮播区 */
.banner {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

    .banner-text h1 {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .banner-text p {
        font-size: 12px;
    }

/* 通用标题样式 */
.section-title {
    text-align: center;
    padding: 25px 0 15px;
    position: relative;
}

    .section-title h2 {
        font-size: 20px;
        font-weight: 600;
        color: #333;
        margin-bottom: 5px;
    }

    .section-title p {
        font-size: 12px;
        color: #999;
        text-transform: uppercase;
    }

/* 产品展示模块 */
.product-section {
    background-color: #fff;
    margin-bottom: 15px;
    padding-bottom: 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 15px;
}

.product-card {
    background-color: #f9f9f9;
    border-radius: 6px;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.product-info {
    padding: 10px;
}

    .product-info h3 {
        font-size: 15px;
        margin-bottom: 5px;
        color: #333;
    }

    .product-info p {
        font-size: 12px;
        color: #666;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

/* 资讯中心模块 */
.news-section {
    background-color: #fff;
    margin-bottom: 15px;
    padding-bottom: 15px;
}

.news-list {
    padding: 0 15px;
}

.news-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

    .news-item:last-child {
        border-bottom: none;
    }

.news-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.news-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.news-desc {
    font-size: 12px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 关于我们模块 */
.about-section {
    background-color: #fff;
    margin-bottom: 15px;
    padding: 0 15px 20px;
}

.about-content {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.more-btn {
    display: block;
    width: 100%;
    height: 40px;
    line-height: 40px;
    background-color: #007bff;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    font-size: 15px;
}

/* 联系我们模块 */
.contact-section {
    background-color: #fff;
    padding: 0 15px 30px;
    margin-bottom: 20px;
}

.company-name {
    font-size: 16px;
    font-weight: 600;
    margin: 10px 0 15px;
    color: #333;
}

.contact-list {
    list-style: none;
}

    .contact-list li {
        font-size: 14px;
        color: #666;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
    }

        .contact-list li span {
            display: inline-block;
            width: 60px;
            color: #333;
        }

.social-icons {
    display: flex;
    margin-top: 20px;
    gap: 15px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .social-icon img {
        width: 20px;
        height: 20px;
    }
/* 新增：客服二维码样式 */
.qrcode-section {
    margin-top: 20px;
}

.qrcode-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.qrcode-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 0 10px;
}

.qrcode-card {
    text-align: center;
}

.qrcode-img {
    width: 100%;
    max-width: 120px;
    height: auto;
    border: 1px solid #eee;
    padding: 5px;
    border-radius: 6px;
    margin: 0 auto 8px;
}

.qrcode-name {
    font-size: 12px;
    color: #666;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 20px 15px;
    font-size: 12px;
    color: #999;
    background-color: #fff;
}

/* 适配大屏手机 */
@media (min-width: 480px) {
    .banner {
        height: 250px;
    }

    .product-img {
        height: 150px;
    }

    .qrcode-img {
        max-width: 150px;
    }
}

/* 小屏手机适配 */
@media (max-width: 375px) {
    .qrcode-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}