/* ==========================================================================
   原站小屏适配 (h5piaochuang.css)
   已针对 iOS Safari / 移动端全机型重写:
   原版用 width:132% + margin-left:-16% + transform:scaleX(1.32) 适配 768px 小屏,
   在 390px iPhone 上会把布局视口撑到 1100px, 导致 Safari 把整页缩放到 35%
   且右侧出现大片空白。这里改为按视口百分比缩放, 不再撑宽容器。
   ========================================================================== */

/* 顶部导航条容器: 不再撑到 132%, 绝不超出视口 */
#headerIndex {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    overflow-x: hidden;
}

/* 顶部横幅图: 保持等比, 不做横向拉伸 */
#top-imgIndex {
    width: 100%;
    max-width: 100%;
    height: auto;
    transform: none;
}

/* 头部背景图: 等比铺满, 不做横向拉伸 */
#headerImageIndex {
    transform: none;
    width: 100%;
    max-width: 100%;
    left: 0;
    right: auto;
    height: auto;
    object-fit: cover;
}

/* 底部大图块 */
.footer-above {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* ---------- 大屏 (平板及以上) 恢复原站居中布局 ---------- */
@media (min-width:1200px) {
    .header-container {
        width: 100%;
        margin-left: 0;
    }

    #top-imgIndex {
        width: 100%;
        transform: scaleX(1);
    }

    .footer-above {
        width: 100%;
        margin-left: 0;
    }

    #headerIndex {
        width: 100%;
        margin-left: 0;
    }

    #headerImageIndex {
        transform: scaleX(1);
    }
}

/* ---------- 平板 (768px ~ 1199px) ---------- */
@media (min-width:768px) and (max-width:1199px) {
    #headerIndex,
    #top-imgIndex,
    #headerImageIndex,
    .footer-above {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        transform: none !important;
    }
}
