/**
 * H5 页面在 PC 端打开时，将页面约束为手机屏幕的最大宽度并水平居中，避免布局被拉宽变形。
 * 配套 /js/h5-pc-max.js 处理 position:fixed 的全宽元素。
 * 调整最大宽度时：修改下方 --h5-pc-max-width，并同步修改媒体查询的 min-width 阈值（最大值 + 1px）。
 */
:root {
    --h5-pc-max-width: 480px;
}

@media screen and (min-width: 481px) {
    body {
        max-width: var(--h5-pc-max-width) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        /* 让页面内 position:absolute 的元素以该居中列为定位基准 */
        position: relative;
        min-height: 100vh;
        box-shadow: 0 0 16px rgba(0, 0, 0, .15);
    }
}
