/*!
 * 联系我们页 · 整体布局协调层
 * 纯原生实现，后于 main.shuwon.css 加载，专责本页版面
 *
 * 设计语言（与预订卡片 booking.css 同源）：
 *   品牌深蓝 #002648 + 金色 #c9a063 + 暖白纸面 #f8f6f1
 *   - 页头：接待主题 banner + 双语标题 + 副文案
 *   - 左侧：地图卡（白框 + 圆角 + 描边 + 轻投影），与右栏等高
 *   - 右侧：预订卡片 + 联系方式卡（同款卡头：深蓝底 + 金色分割线）
 *   - 栅格：52 / 48 + 28px 槽；≤1200px 纵排，≤768px 手机适配
 */

/* ---------- 页面底色与容器 ---------- */
.contact-page {
    background: #f8f6f1;
    padding-top: 115px;
    padding-bottom: 70px;
}

.contact-page .ct-wrap {
    width: calc(100% - 140px);
    margin: 0 auto;
    padding: 0;
}

/* 联系页上下内容与 banner 共用水平边距。 */
body.main.contact-layout .header {
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", Tahoma, Arial, sans-serif;
}
body.main.contact-layout .header .logo img {
    vertical-align: middle;
}

@media only screen and (min-width: 1201px) {
    body.main.contact-layout .header,
    body.main.contact-layout .header.active,
    body.main.contact-layout .box.seo,
    body.main.contact-layout .footer {
        padding-left: 70px;
        padding-right: 70px;
    }
}

.contact-page .ct-hero {
    position: relative;
    margin: 0 70px 48px;
    overflow: hidden;
    background: #002648;
}

.contact-page .ct-hero-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1920 / 500;
    max-height: 500px;
    object-fit: cover;
}

.contact-page .ct-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 25, 46, .5), transparent 75%);
    pointer-events: none;
}

/* ---------- 页头 ---------- */
.contact-page .ct-head {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: calc(100% - 100px);
    max-width: 1200px;
    transform: translate(-50%, -50%);
    margin: 0;
    padding-bottom: 24px;
}

.contact-page .ct-head::after {
    content: '';
    position: absolute;
    left: 2px;
    bottom: 0;
    width: 46px;
    height: 2px;
    background: #c9a063;
}

.contact-page .ct-title {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #fff;
}

.contact-page .ct-en {
    margin-left: 14px;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 4px;
    color: #c9a063;
    vertical-align: 3px;
}

.contact-page .ct-sub {
    margin: 18px 0 0;
    font-size: 15px;
    line-height: 1.8;
    letter-spacing: 1.5px;
    color: #e2e8ec;
}

/* ---------- 双栏栅格 ---------- */
.contact-page .ct-grid {
    gap: 28px;
}

.contact-page .ct-grid .left {
    width: calc(52% - 15px);
}

.contact-page .ct-grid .right {
    width: calc(48% - 13px);
    padding: 0;                 /* 覆盖 .contact-page .right 的 50px 5% */
}

.contact-page .ct-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 预订卡片撑满右栏 */
.contact-page .ct-side .bk {
    width: 100%;
    margin-bottom: 0;
}

/* ---------- 地图卡 ---------- */
.contact-page .ct-mapcol {
    display: flex;
}

.contact-page .mapbox {         /* 覆盖原站的 position:fixed 全屏地图 */
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    flex: 1 1 auto;             /* 与右栏等高（flex 拉伸） */
    min-height: 540px;
    padding: 10px;              /* 白色相框 */
    background: #fff;
    border: 1px solid #e7e1d4;
    border-radius: 8px;
    box-shadow: 0 6px 28px rgba(0, 38, 72, .07);
    overflow: hidden;
}

.contact-page .mapbox #map {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    border-radius: 4px;
    overflow: hidden;
}

.contact-page .map-status {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    background: #f4f6f8;
    color: #526574;
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}
.contact-page .map-status strong { color: #002648; font-size: 18px; }
.contact-page .map-status button {
    padding: 8px 16px;
    border: 1px solid #002648;
    border-radius: 4px;
    background: #fff;
    color: #002648;
    cursor: pointer;
}
.hotel-map-info { max-width: 240px; padding: 6px 4px; line-height: 1.8; }

.contact-page .mapbox #allmap {
    min-height: 0;
    height: 100%;
}

.contact-page .mapbox .map-empty {
    min-height: 0;
    height: 100%;
    border-radius: 4px;
}

/* 地图上的导航浮条：与卡片同一语言 */
.contact-page .map-actions {
    bottom: 22px;
    width: calc(100% - 64px);
    padding: 12px 16px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid #e7e1d4;
    border-radius: 8px;
    box-shadow: 0 8px 26px rgba(0, 38, 72, .13);
}

.contact-page .map-actions .map-nav {
    padding: 0 24px;
    line-height: 40px;
    font-size: 14px;
    letter-spacing: 1px;
    background: #002648;
    border-radius: 6px;
    transition: background .2s;
}

.contact-page .map-actions .map-nav:hover {
    opacity: 1;
    background: #033561;
}

.contact-page .map-actions .map-tip {
    font-size: 14px;
    color: #4a5866;
}

/* ---------- 联系方式卡 ---------- */
.contact-page .ct-card {
    background: #fff;
    border: 1px solid #e7e1d4;
    border-radius: 8px;
    box-shadow: 0 6px 28px rgba(0, 38, 72, .07);
    overflow: hidden;
}

.contact-page .ct-card-head {
    padding: 15px 26px 13px;
    background: #002648;
    border-bottom: 2px solid #c9a063;
}

.contact-page .ct-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #fff;
}

.contact-page .ct-card-en {
    margin-left: 12px;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 3.5px;
    color: #c9a063;
    vertical-align: 2px;
}

.contact-page .ct-card-body {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 18px 26px 20px;
}

.contact-page .ct-list {
    flex: 1 1 auto;
    min-width: 0;
}

.contact-page .ct-item {
    display: flex;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid #f1ede3;
}

.contact-page .ct-item:first-child {
    padding-top: 2px;
}

.contact-page .ct-item:last-child {
    padding-bottom: 2px;
    border-bottom: none;
}

.contact-page .ct-ico {
    position: relative;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    background: #002648;
    border-radius: 50%;
}

.contact-page .ct-ico::after {
    content: '';
    position: absolute;
    left: 9px;
    top: 9px;
    width: 20px;
    height: 20px;
    background: url(../images/contact_icon.png) no-repeat;
    background-size: 60px auto;
}

.contact-page .ct-ico-phone::after {
    background-position: -20px 0;
}

.contact-page .ct-ico-mail::after {
    background-position: -40px 0;
}

.contact-page .ct-txt {
    min-width: 0;
    margin-left: 14px;
}

.contact-page .ct-label {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #c9a063;
}

.contact-page .ct-value {
    margin: 2px 0 0;
    font-size: 15px;
    line-height: 1.55;
    color: #1f2d3d;
    word-break: break-all;
}

.contact-page .ct-qr {
    flex: 0 0 auto;
    text-align: center;
}

.contact-page .ct-qr img {
    display: block;
    width: 88px;
    height: 88px;
    padding: 5px;
    background: #fff;
    border: 1px solid #e7e1d4;
    border-radius: 4px;
}

.contact-page .ct-qr p {
    margin: 7px 0 0;
    font-size: 12px;
    letter-spacing: 2px;
    color: #98a2ad;
}

/* ---------- ≤1200px：纵排 ---------- */
@media only screen and (max-width: 1400px) {
    .contact-page { padding-top: 100px; }
}
@media only screen and (max-width: 1350px) {
    .contact-page .ct-hero { margin-left: 50px; margin-right: 50px; }
    .contact-page .ct-wrap { width: calc(100% - 100px); }
}
@media only screen and (min-width: 1201px) and (max-width: 1350px) {
    body.main.contact-layout .header,
    body.main.contact-layout .header.active,
    body.main.contact-layout .box.seo,
    body.main.contact-layout .footer {
        padding-left: 50px;
        padding-right: 50px;
    }
}
@media only screen and (max-width: 1200px) {
    .contact-page { padding-top: 98px; }
    .contact-page .ct-hero { margin-left: 3vw; margin-right: 3vw; }
    .contact-page .ct-wrap { width: 94%; }
    .contact-page .ct-grid .left,
    .contact-page .ct-grid .right {
        width: 100%;
    }

    .contact-page .mapbox {
        flex: none;
        min-height: 0;
        height: 440px;
    }

    .contact-page .mapbox #map {
        min-height: 0;
    }

    .contact-page .ct-side {
        gap: 20px;
    }
}

/* ---------- ≤768px：手机 ---------- */
@media only screen and (max-width: 768px) {
    .contact-page {
        padding-top: 72px;
        padding-bottom: 46px;
    }

    .contact-page .ct-wrap {
        padding: 0;
    }

    .contact-page .ct-hero { margin-bottom: 28px; }
    .contact-page .ct-hero-image { height: 230px; object-position: 35% center; }

    .contact-page .ct-head {
        width: calc(100% - 40px);
        margin: 0;
        padding-bottom: 14px;
    }

    .contact-page .ct-title {
        font-size: 21px;
        letter-spacing: 3px;
    }

    .contact-page .ct-en {
        margin-left: 8px;
        font-size: 10px;
        letter-spacing: 2.5px;
    }

    .contact-page .ct-sub {
        font-size: 12px;
    }

    .contact-page .ct-grid {
        gap: 18px;
    }

    .contact-page .mapbox {
        height: 320px;
        padding: 8px;
    }

    /* 导航浮条改为卡内静态条，避免遮挡小地图 */
    .contact-page .map-actions {
        position: static;
        transform: none;
        width: auto;
        margin: 8px 0 0;
        padding: 0;
        background: none;
        border: none;
        box-shadow: none;
        justify-content: flex-start;
    }

    .contact-page .map-actions .map-nav {
        line-height: 36px;
        font-size: 13px;
    }

    .contact-page .map-actions .map-tip {
        font-size: 12px;
    }

    /* 地图卡内高度重算：地图 + 静态导航条 */
    .contact-page .mapbox {
        height: auto;
    }

    .contact-page .mapbox #map {
        height: 300px;
    }

    .contact-page .ct-card-body {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px 20px 18px;
    }

    .contact-page .ct-qr {
        align-self: flex-start;
    }
}
