/*
 * 北海明珠官网 V4.10.8
 * 全站桌面端版心扩宽：宽屏内容更饱满，同时保留文章详情页阅读宽度。
 */

:root{
    --container:1480px;
    --bhmz-page-gutter:64px;
}

/* 普通页面：1920px 宽屏下控制在 1480px，避免内容仍挤在 1180px。 */
.container{
    width:min(calc(100% - var(--bhmz-page-gutter)),var(--container));
    margin-left:auto;
    margin-right:auto;
}

/* 首页历史规则原为 1420px，统一跟随新版全站版心。 */
body.home-redesign-page .container{
    width:min(calc(100% - var(--bhmz-page-gutter)),var(--container));
}

/* 顶部导航与正文使用同一条左右基准线。 */
.site-header .header-inner{
    width:min(calc(100% - var(--bhmz-page-gutter)),var(--container));
    max-width:none;
}

/* 页脚与主内容统一宽度。 */
.footer-shell{
    width:min(calc(100% - var(--bhmz-page-gutter)),var(--container));
    max-width:none;
}

/* 清除几个一级页面遗留的 1180 / 1280 / 1380 限宽。 */
.halls-overview-page .hall-choice-section>.container,
.hotel-updates-page .hotel-updates-hero>.container,
.banquet-records-page .records-hero-inner,
.guide-page .hub-hero>.container,
.guide-page .hub-hero-grid{
    width:min(calc(100% - var(--bhmz-page-gutter)),var(--container));
    max-width:var(--container);
    margin-left:auto;
    margin-right:auto;
}

/* 宴会厅优势、选厅指南等三列模块随新版版心自然扩宽。 */
.halls-overview-page .hall-advantages-grid,
.halls-overview-page .halls-guide-grid{
    width:100%;
}

/* 文章详情页保持适合阅读的 1380px 外框，正文不被无限拉长。 */
.content-detail-page .container,
.content-detail-page .detail-heading-section>.container,
.content-detail-page .detail-main-section .detail-content-grid,
.bhmz-id-article .bhmz-article-related>.container{
    width:min(calc(100% - var(--bhmz-page-gutter)),1380px);
    max-width:1380px;
    margin-left:auto;
    margin-right:auto;
}

@media (min-width:1121px){
    .content-detail-page .detail-main-section .detail-content-grid{
        grid-template-columns:minmax(0,1fr) 320px;
        gap:40px;
    }
}

/* 中等屏幕减少边距，避免扩宽后挤压导航和卡片。 */
@media (max-width:1280px){
    :root{--bhmz-page-gutter:40px}

    .container,
    body.home-redesign-page .container,
    .site-header .header-inner,
    .footer-shell,
    .halls-overview-page .hall-choice-section>.container,
    .hotel-updates-page .hotel-updates-hero>.container,
    .banquet-records-page .records-hero-inner,
    .guide-page .hub-hero>.container,
    .guide-page .hub-hero-grid,
    .content-detail-page .container,
    .content-detail-page .detail-heading-section>.container,
    .content-detail-page .detail-main-section .detail-content-grid,
    .bhmz-id-article .bhmz-article-related>.container{
        width:min(calc(100% - var(--bhmz-page-gutter)),var(--container));
    }
}

/* 手机端维持安全边距，不影响原有单列响应式布局。 */
@media (max-width:768px){
    :root{--bhmz-page-gutter:24px}

    .container,
    body.home-redesign-page .container,
    .site-header .header-inner,
    .footer-shell,
    .halls-overview-page .hall-choice-section>.container,
    .hotel-updates-page .hotel-updates-hero>.container,
    .banquet-records-page .records-hero-inner,
    .guide-page .hub-hero>.container,
    .guide-page .hub-hero-grid,
    .content-detail-page .container,
    .content-detail-page .detail-heading-section>.container,
    .content-detail-page .detail-main-section .detail-content-grid,
    .bhmz-id-article .bhmz-article-related>.container{
        width:calc(100% - var(--bhmz-page-gutter));
        max-width:none;
    }
}
