
.container-a{
    width: 100%;
    background: rgba(245, 245, 245, 1);
    padding: 60px 160px;
}

/* 卡片网格布局 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0 40px;
}

.card-grid-two{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0 40px;
}

/* 卡片通用样式 */
.card {
    padding: 46px 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    border-radius: 10px;
    background: rgba(255, 255, 255, 1);
}

/* 联系信息卡片样式 */
.h2-h2 {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: 0px;
    line-height: 55.02px;
    color: rgba(51, 51, 51, 1);
}

.icon {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
}

.info-card p {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0px;
    line-height: 28.96px;
    color: rgba(0, 0, 0, 1);
}

/* 地图容器样式 */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 60px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#mapbox {
    width: 100%;
    height: 100%;
}

/* 工厂信息卡片样式 */
.factory-card {
    align-items: flex-start;
    text-align: left;
    padding: 30px;
    width: auto;
    height: auto;
}

.factory-card h3 {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0px;
    line-height: 28px;
    color: rgba(33, 33, 33, 1);
}

.factory-card p {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0px;
    line-height: 32px;
    color: rgba(102, 102, 102, 1);
}

/* ============================================
   联系我们 - 移动端适配
   ============================================ */

/* ----- 1200px 以下 ----- */
@media (max-width: 1200px) {
    .container-a {
        padding: 40px 60px;
    }

    /* 联系信息卡片样式 */
    .h2-h2 {
        font-size: 22px;
        line-height: 32px;
        font-weight: 700;
        letter-spacing: 0px;
        color: rgba(51, 51, 51, 1);
        margin-top: 10px;
    }

    .h2-h3{
        font-size: 22px;
        line-height: 32px;
        font-weight: 700;
        letter-spacing: 0px;
        color: rgba(51, 51, 51, 1);
        margin-top: 25px;
    }

    .card-grid {
        gap: 16px;
        margin: 30px 0 30px;
    }

    .card {
        padding: 30px 24px;
    }

    .factory-card {
        height: auto;
        min-height: 200px;
        padding: 24px;
    }

    .map-container {
        height: 320px;
        margin-bottom: 40px;
    }
}

/* ----- 992px 以下 (平板) ----- */
@media (max-width: 992px) {
    .container-a {
        padding: 32px 40px;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin: 24px 0 24px;
    }

    .card {
        padding: 24px 20px;
        border-radius: 8px;
    }

    .icon {
        width: 40px;
        height: 40px;
        margin-bottom: 12px;
    }

    .info-card p {
        font-size: 17px;
        line-height: 26px;
        text-align: center;
    }

    .factory-card {
        height: auto;
        padding: 20px;
        min-height: 180px;
    }

    .factory-card h3 {
        font-size: 18px;
        line-height: 26px;
        margin-bottom: 14px;
    }

    .factory-card p {
        font-size: 14px;
        line-height: 26px;
        margin-bottom: 4px;
    }

    .map-container {
        height: 280px;
        margin-bottom: 32px;
        border-radius: 6px;
    }
}

/* ----- 768px 以下 (手机) ----- */
@media (max-width: 768px) {
    .container-a {
        padding: 24px 16px;
    }

    /* 卡片网格 - 改为单列 */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin: 20px 0 20px;
    }

    /* 联系信息卡片 */
    .card {
        padding: 20px 16px;
        border-radius: 8px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 14px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .icon {
        width: 36px;
        height: 36px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .info-card p {
        font-size: 15px;
        line-height: 24px;
        text-align: left;
        word-break: break-all;
    }

    /* 工厂信息卡片 - 保持上下结构 */
    .factory-card {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 20px 16px;
        height: auto;
        min-height: auto;
        gap: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .factory-card h3 {
        font-size: 17px;
        line-height: 24px;
        margin-bottom: 12px;
        width: 100%;
    }

    .factory-card p {
        font-size: 13px;
        line-height: 24px;
        margin-bottom: 2px;
        width: 100%;
        word-break: break-all;
    }

    /* 地图容器 */
    .map-container {
        height: 280px;
        margin-bottom: 24px;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    #mapbox {
        width: 100%;
        height: 100%;
    }
}

/* ----- 480px 以下 (小屏手机) ----- */
@media (max-width: 480px) {
    .container-a {
        padding: 16px 12px;
    }

    .card-grid {
        gap: 10px;
        margin: 16px 0 16px;
    }
    .card-grid-two {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
        margin: 40px 0 40px;
    }
    .card {
        padding: 14px 12px;
        gap: 10px;
        border-radius: 6px;
    }

    .icon {
        width: 30px;
        height: 30px;
    }

    .info-card p {
        font-size: 13px;
        line-height: 20px;
    }

    .factory-card {
        padding: 16px 12px;
    }

    .factory-card h3 {
        font-size: 15px;
        line-height: 22px;
        margin-bottom: 8px;
    }

    .factory-card p {
        font-size: 12px;
        line-height: 22px;
    }

    .map-container {
        height: 380px;
        margin-bottom: 18px;
        border-radius: 4px;
    }
}

/* ----- 375px 以下 (超小屏) ----- */
@media (max-width: 375px) {
    .container-a {
        padding: 12px 8px;
    }

    .card-grid {
        gap: 8px;
        margin: 12px 0 12px;
    }

    .card {
        padding: 12px 10px;
        gap: 8px;
        border-radius: 4px;
    }

    .icon {
        width: 26px;
        height: 26px;
    }

    .info-card p {
        font-size: 12px;
        line-height: 18px;
    }

    .factory-card {
        padding: 12px 10px;
    }

    .factory-card h3 {
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 6px;
    }

    .factory-card p {
        font-size: 11px;
        line-height: 20px;
    }

    .map-container {
        height: 380px;
        margin-bottom: 14px;
        border-radius: 4px;
    }
}
