/**
 * 沁园汝瓷 - 联系我们页面样式 (contact.html)
 * 基于蓝湖设计稿 "13" 精确还原
 * 设计稿尺寸: 960px × 1380.5px (@2x, 逻辑480px)
 */

/* ==================== 页面横幅 (与 science.html 一致) ==================== */
.contact-banner {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    margin-top: 0;
}

.contact-banner .page-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.contact-banner .page-banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.contact-banner .page-banner-content {
    position: relative;
    z-index: 1;
    text-align: left;
    padding-top: 150px;
    margin: 0 auto;
}

.contact-banner .page-banner-content h1 {
    font-family: var(--font-family-serif);
    font-size: 70px;
    font-weight: var(--font-weight-semibold);
    color: #FFFDF9;
    margin-bottom: 25px;
    letter-spacing: 6px;
}

.contact-banner .page-banner-content p {
    font-size: 22px;
    color: #FFFDF9;
    line-height: 1.8;
    max-width: 660px;
}

/* 响应式 */
@media (max-width: 992px) {
    .contact-banner {
        height: 500px;
    }

    .contact-banner .page-banner-content {
        padding-top: 120px;
    }

    .contact-banner .page-banner-content h1 {
        font-size: 42px;
    }

    .contact-banner .page-banner-content p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .contact-banner {
        height: 400px;
    }

    .contact-banner .page-banner-content {
        padding-top: 100px;
        text-align: center;
    }

    .contact-banner .page-banner-content h1 {
        font-size: 32px;
        letter-spacing: 4px;
    }

    .contact-banner .page-banner-content p {
        font-size: 15px;
        padding: 0 20px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .contact-banner {
        height: 350px;
    }

    .contact-banner .page-banner-content {
        padding-top: 80px;
    }

    .contact-banner .page-banner-content h1 {
        font-size: 26px;
        margin-bottom: 16px;
    }
}

/* ==================== 联系地点布局 ==================== */
/* 覆盖通用 content-section 的顶部间距 */
.content-section {
    padding-top: 0;
}

.contact-locations {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    margin: 0 auto;
}

.location-card-nobg {
    display: flex;
    align-items: stretch;
    width: 1000px;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
}

.location-card {
    display: flex;
    align-items: stretch;
    width: 1000px;
    height: 400px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

/* 左侧文字区域 - 上下排列 */
.location-info {
    width: 500px;
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
}

/* 默认标题 36px */
.location-title {
    font-size: 36px;
    color: var(--color-text-primary);
    font-family: var(--font-family-serif);
    font-weight: var(--font-weight-medium);
    margin-bottom: 32px;
    letter-spacing: 2px;
}

/* 默认详情行 */
.location-detail {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

/* 默认图标 36px 圆形 */
.detail-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-bg-gradient-icon);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 默认地址文字 18px 主题色 */
.detail-text {
    font-size: 18px;
    color: var(--color-primary);
    line-height: 1.6;
    font-family: var(--font-family-sans);
}

/* 右侧地图容器 */
.location-map {
    flex: 1;
    overflow: hidden;
}

.location-map iframe,
.location-map .amap-container {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==================== 电话卡片专属样式 ==================== */
/* 电话卡片 - 无地图，全宽，内容居中 */
.location-card-phone {
    width: 1000px;
    height: 240px;
}

.location-info-phone {
    width: 100%;
    align-items: center;
    text-align: center;
    padding: 30px 45px;
}

/* 电话卡片标题 50px */
.location-title-phone {
    font-size: 50px;
    margin-bottom: 24px;
}

/* 电话卡片图标 43px */
.detail-icon-phone {
    width: 43px;
    height: 43px;
}

/* .detail-icon-img-phone {
    width: 22px;
    height: 22px;
} */

/* 电话卡片文字 34px 主题色 */
.detail-text-phone {
    font-size: 34px;
    color: var(--color-primary);
}

/* ==================== 响应式 ==================== */
@media (max-width: 1100px) {
    .location-card {
        width: 100%;
        max-width: 1000px;
    }
}

@media (max-width: 992px) {
    .location-card {
        flex-direction: column;
        height: auto;
    }

    .location-info {
        width: 100%;
        padding: 30px 25px;
    }

    .location-map {
        min-height: 300px;
    }

    .location-title-phone {
        font-size: 40px;
    }

    .detail-text-phone {
        font-size: 26px;
    }

    .detail-icon-phone {
        width: 36px;
        height: 36px;
    }

    .detail-icon-img-phone {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 768px) {
    .content-section .container {
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }

    .contact-locations {
        gap: 30px;
    }

    .location-card,
    .location-card-nobg,
    .location-card-phone {
        width: 100%;
        max-width: 100%;
        height: auto;
        box-sizing: border-box;
    }

    .location-info {
        width: 100%;
        padding: 30px 0;
        box-sizing: border-box;
    }

    .location-title {
        font-size: 28px;
    }

    .detail-text {
        font-size: 16px;
    }

    .location-map {
        min-height: 250px;
    }

    .location-title-phone {
        font-size: 32px;
    }

    .detail-text-phone {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .content-section .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .contact-locations {
        gap: 30px;
    }

    .location-info {
        padding: 25px 20px;
    }

    .location-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .detail-text {
        font-size: 14px;
    }

    .detail-icon {
        width: 30px;
        height: 30px;
    }

    .detail-icon-img {
        width: 15px;
        height: 15px;
    }

    .location-title-phone {
        font-size: 28px;
    }

    .detail-text-phone {
        font-size: 18px;
    }

    .detail-icon-phone {
        width: 30px;
        height: 30px;
    }

    .detail-icon-img-phone {
        width: 15px;
        height: 15px;
    }
}

/* ==================== 微信二维码弹窗 ==================== */
.qr-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.qr-modal-overlay.active {
    display: flex;
}

.qr-modal {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    max-width: 360px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.qr-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.qr-modal-close:hover {
    color: #333;
}

.qr-modal-img {
    width: 280px;
    height: 280px;
    object-fit: contain;
}

.qr-modal-tip {
    margin-top: 16px;
    font-size: 16px;
    color: var(--color-text-primary);
}

@media (max-width: 375px) {
    .contact-banner { height: 300px; }
    .contact-banner .page-banner-content { padding-top: 60px; }
    .contact-banner .page-banner-content h1 { font-size: 22px; letter-spacing: 3px; margin-bottom: 12px; }
    .contact-banner .page-banner-content p { font-size: 12px; padding: 0 12px; }
    .content-section .container { padding-left: 10px; padding-right: 10px; }
    .location-info { padding: 20px 15px; }
    .location-title { font-size: 20px; margin-bottom: 15px; }
    .detail-text { font-size: 13px; }
    .detail-icon { width: 26px; height: 26px; }
    .location-title-phone { font-size: 24px; }
    .detail-text-phone { font-size: 16px; }
    .detail-icon-phone { width: 26px; height: 26px; }
}

@media (max-width: 320px) {
    .contact-banner { height: 280px; }
    .contact-banner .page-banner-content { padding-top: 50px; }
    .contact-banner .page-banner-content h1 { font-size: 20px; letter-spacing: 2px; margin-bottom: 10px; }
    .contact-banner .page-banner-content p { font-size: 11px; padding: 0 10px; }
    .content-section .container { padding-left: 8px; padding-right: 8px; }
    .location-info { padding: 16px 12px; }
    .location-title { font-size: 18px; margin-bottom: 12px; }
    .detail-text { font-size: 12px; }
    .detail-icon { width: 24px; height: 24px; }
    .location-title-phone { font-size: 22px; }
    .detail-text-phone { font-size: 14px; }
    .detail-icon-phone { width: 24px; height: 24px; }
}


