* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
body {
    background-color: #f5f5f5;
    color: #333;
    padding-bottom: 70px;
}
/* 顶部导航栏 */
.header {
    display: flex;
    align-items: center;
    padding: 4px 16px;
    background: #fff;
    border-bottom: 1px solid #eee;
    width: 100%;
}
.logo {
    float: left;
    width: 30%;
    display: block;
}
.header img {
    height: 50px;
}
.slogan {
    display: block;
    width: 70%;
    font-size: 18px;
    float: left;
    font-weight: 500;
    text-align: right;
    color: #333;
}
/* 首屏Banner */
.banner-container {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}
.banner-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    top: 0;
    left: 0;
}
.banner-slide.active {
    opacity: 1;
    position: relative;
}
.banner-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}
.banner-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.banner-indicators .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}
.banner-indicators .indicator.active {
    background: #fff;
}

/* 三大优势区 - 统一宽度+对齐 */
.advantages {
    max-width: 1200px;
    margin: 10px auto;
    padding: 15px 16px;
    background: #fff;
    border-radius: 12px;
}
.advantages-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}
.advantages-list {
    display: flex;
    justify-content: space-between;
    text-align: center;
}
.advantage-item {
    flex: 1;
}
.advantage-item a {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    text-decoration: none;
}
.advantage-icon {
    width: 30px;
    height: 30px;
    margin: 0;
    stroke: #333;
    fill: none;
}
.advantage-text {
    font-size: 16px;
    font-weight: 500;
}

/* 线下门店区 - 手机端图片适配 */
.store {
    margin: 0;
    padding: 16px 0 0;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}
.store-image {
    width: 200px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    max-width: 200px;
    flex-shrink: 0; /* 防止PC端被挤压 */
}
.store-info {
    flex: 1;
    min-width: 0;
}
.store-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}
.store-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}


/* 产品区 - 统一宽度 */
.products {
    max-width: 1200px;
    margin: 0 auto 10px;
    padding: 0 16px;
}
.tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 16px;
}
.tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 18px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
}
.tab.active {
    color: #2196f3;
    font-weight: bold;
    border-bottom: 2px solid #2196f3;
}

/* 核心：强制PC端4列、手机端2列 */
.product-grid {
    /* PC端默认4列，固定宽度分配 */
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr; /* 强制4列，优先级最高 */
    gap: 16px;
    max-width: 100%;
}
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.product-image {
    width: 100%;
    height: auto;
    min-height: 180px;
    max-height: 220px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.product-info {
    padding: 12px;
    flex: 1;
}
.product-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}
.product-desc {
    font-size: 14px;
    color: red;
    font-weight: 500;
}

/* 底部导航 */
.nav-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #999;
    width: 100%;
    height: 100%;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #999;
    font-size: 12px;
}
.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 3px;
}
.nav-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 640px;
    height: 60px;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #e0e0e0;
    box-sizing: border-box;
    z-index: 1000;
}
/* 通用样式 */
.tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}
.tab {
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}
.tab.active {
    color: #0066cc;
    border-bottom: 2px solid #0066cc;
    font-weight: bold;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.product-card:hover {
    transform: translateY(-5px);
}
.more a {
    text-decoration: none;
}
.more {
    width: 70%;
    height: 40px;
    margin: 20px auto;
    display: block;
    text-align: center;
    color: #fff;
    font-weight: bold;
    background-color: #2196f3;
    line-height: 40px;
}

/* 移动端适配 - 强制2列 */
@media (max-width: 768px) {
    /* 手机端产品强制2列 */
    .product-grid {
        grid-template-columns: 1fr 1fr !important; /* !important强制覆盖 */
        gap: 12px !important;
    }
    /* 手机端门店图片适配 */
    .store {
        flex-direction: row; /* 保持横向布局，不换行 */
        align-items: flex-start;
        gap: 10px;
    }
    .store-image {
        width: 100px !important; /* 手机端图片固定宽度 */
        height: 80px !important;
        max-width: 100px !important;
    }
    .store-title {
        font-size: 16px;
    }
    .store-desc {
        font-size: 12px;
        margin-bottom: 8px;
    }

    /* 其他移动端适配 */
    .advantages-title {
        font-size: 20px;
    }
    .advantage-text {
        font-size: 14px;
    }
    .product-image {
        min-height: 150px !important;
        max-height: 180px !important;
    }
    .tab {
        font-size: 16px;
        padding: 8px 0;
    }
    .more {
        width: 90%;
        font-size: 14px;
    }
}

/* PC端补充（防止小屏PC列数错乱） */
@media (min-width: 769px) {
    .product-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr !important; /* 强制4列 */
    }
}
/* 产品卡片链接样式 */
.product-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}
/* 线下门店按钮容器 - 新增 */
.store-btns {
    display: flex;
    gap: 12px; /* 两个按钮之间的间距 */
    flex-wrap: wrap; /* 适配小屏幕 */
}

/* 电话按钮样式（复用原有store-btn，保证样式一致） */
.phone-btn {
    text-decoration: none; /* 移除a标签下划线 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 原有store-btn样式微调（确保按钮尺寸一致） */
.store-btn {
    padding: 8px 24px;
    border: 2px solid #333;
    border-radius: 24px;
    background: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap; /* 防止文字换行 */
}

/* 移动端按钮适配 - 新增 */
@media (max-width: 768px) {
    .store-btns {
        gap: 8px;
    }
    .store-btn {
        padding: 4px 16px;
        font-size: 12px;
    }
}