/*
 * 北海明珠官网 V4.9.3
 * 全站顶部导航、一级页面首屏高度与大图清晰度相关视觉统一。
 */

:root{
    --bhmz-desktop-header-height:112px;
    --bhmz-tablet-header-height:96px;
    --bhmz-landing-hero-height:clamp(650px,calc(100vh - var(--bhmz-desktop-header-height)),760px);
}

/* 桌面端顶部导航：加高、放大 Logo、改善中文字形与间距。 */
@media (min-width:1201px){
    .site-header{height:var(--bhmz-desktop-header-height)}
    .site-header .header-inner{
        width:min(calc(100% - 56px),1400px);
        height:var(--bhmz-desktop-header-height);
        gap:34px;
    }
    .site-header .brand{min-width:270px}
    .site-header .brand img{
        width:196px;
        max-height:70px;
        object-fit:contain;
    }
    .site-header .main-nav{gap:32px}
    .site-header .main-nav>a,
    .site-header .nav-group>a{
        padding:43px 0 39px;
        font-family:"Microsoft YaHei UI","PingFang SC","Noto Sans SC","Source Han Sans SC",system-ui,sans-serif;
        font-size:17px;
        font-weight:650;
        line-height:1;
        letter-spacing:.015em;
        color:#263750;
    }
    .site-header .submenu-toggle{
        margin-left:3px;
        font-family:Arial,sans-serif;
        font-size:13px;
    }
    .site-header .main-nav>a:after,
    .site-header .nav-group>a:after{bottom:28px}
    .site-header .submenu{top:97px}
    .site-header .submenu a{
        font-family:"Microsoft YaHei UI","PingFang SC","Noto Sans SC",system-ui,sans-serif;
        font-size:15px;
        font-weight:550;
    }
    .site-header .header-booking{
        min-width:142px;
        height:58px;
        padding:0 24px;
        border-radius:13px;
        font-family:"Microsoft YaHei UI","PingFang SC","Noto Sans SC",system-ui,sans-serif;
        font-size:17px;
        font-weight:700;
        letter-spacing:.025em;
    }
}

@media (min-width:851px) and (max-width:1200px){
    .site-header{height:var(--bhmz-tablet-header-height)}
    .site-header .header-inner{height:var(--bhmz-tablet-header-height)}
    .site-header .brand{min-width:215px}
    .site-header .brand img{width:166px;max-height:60px}
    .site-header .main-nav>a,
    .site-header .nav-group>a{
        font-family:"Microsoft YaHei UI","PingFang SC","Noto Sans SC",system-ui,sans-serif;
        font-size:15px;
        font-weight:650;
    }
    .site-header .submenu{top:83px}
}

/* 一级页面首屏统一：只给外层首屏设视觉高度，不覆盖内部 .container 版心。 */
@media (min-width:981px){
    .home-hero-redesign,
    .halls-index-hero,
    .dining-v47-hero,
    .dining-rooms-hero,
    .hub-hero,
    .records-center-hero,
    .activity-center-hero,
    .hi-hero,
    .bs-hero,
    .junren-slider,
    .hotel-updates-hero,
    .about-v5-hero{
        min-height:var(--bhmz-landing-hero-height);
    }

    .halls-index-hero,
    .dining-rooms-hero,
    .hub-hero,
    .records-center-hero,
    .activity-center-hero,
    .hotel-updates-hero{
        display:flex;
        align-items:center;
    }

    .halls-index-hero{padding:58px 0}
    .hub-hero{padding:58px 0}
    .records-center-hero{padding:58px 0}
    .activity-center-hero{padding:58px 0}
    .hotel-updates-hero{padding:58px 0}

    /* 包间页：恢复居中版心，保持左文案与右侧预订窗的正常比例。 */
    .dining-rooms-page .dining-rooms-hero-grid{
        width:min(calc(100% - 40px),var(--container));
        min-height:0;
        margin-inline:auto;
        grid-template-columns:minmax(0,1fr) minmax(430px,520px);
        gap:clamp(42px,5vw,82px);
        padding-top:54px;
        padding-bottom:54px;
        align-items:center;
    }
    .dining-rooms-page .dining-rooms-hero-copy{
        max-width:720px;
        padding-top:0;
    }
    .dining-rooms-page .dining-rooms-quick-booking{
        width:100%;
        justify-self:end;
    }

    /* 军人专栏保持全幅图片，统一高度后避免旧的 68vw 过高或过矮。 */
    .junren-slider{height:var(--bhmz-landing-hero-height)}
}

@media (min-width:981px) and (max-width:1200px){
    .dining-rooms-page .dining-rooms-hero-grid{
        grid-template-columns:minmax(0,1fr) minmax(390px,470px);
        gap:34px;
    }
}

/* 大图区域按正常照片方式渲染，避免浏览器缩放滤镜造成视觉发虚。 */
.home-hero-slide img,
.hall-hero-slider img,
.junren-slide>img,
.about-v5-hero-photo img{
    image-rendering:auto;
    backface-visibility:hidden;
}

@media (max-width:980px){
    :root{--bhmz-landing-hero-height:auto}
}


/* V4.9.9：一级页面首屏按内容分级，不再全部强制首页高度。 */
@media (min-width:981px){
    .hotel-updates-page .hotel-updates-hero{
        min-height:460px;
        padding:56px 0;
        align-items:center;
    }
    .banquet-records-page .records-center-hero{
        min-height:460px;
        padding:54px 0 62px;
        align-items:center;
    }
    .guide-page .hub-hero{
        min-height:520px;
        padding:54px 0;
        align-items:center;
    }
    .halls-overview-page .halls-index-hero{
        min-height:580px;
        padding:48px 0;
        align-items:center;
    }
    .hotel-updates-page .hotel-updates-hero>.container,
    .banquet-records-page .records-hero-inner{
        width:min(calc(100% - 48px),1180px);
    }
    .guide-page .hub-hero-grid,
    .halls-overview-page .halls-index-hero__grid{
        min-height:0;
    }
}
@media (max-width:980px){
    .hotel-updates-page .hotel-updates-hero,
    .banquet-records-page .records-center-hero,
    .guide-page .hub-hero,
    .halls-overview-page .halls-index-hero{
        min-height:auto;
    }
}
