/* 补+2026-11-27：联系页、公共页脚与手机联系栏。沿用中文站深蓝、红色和 232px 微信二维码。 */
.contact-page-body {
    padding: clamp(28px, 4vw, 56px) 0 0;
}

.contact-page-body h1 {
    color: #153b65;
    font-size: clamp(27px, 3vw, 36px);
    line-height: 1.25;
    margin: 0 0 24px;
    scroll-margin-top: 16px;
}

.contact-page-body h2,
.contact-page-faq h2 {
    color: #153b65;
    font-size: 20px;
    line-height: 1.4;
    margin: 0 0 8px;
}

.contact-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    grid-template-rows: max-content max-content 1fr;
    gap: 24px clamp(24px, 4vw, 56px);
    align-items: start;
}

.contact-page-phone p {
    max-width: 37em;
    line-height: 1.7;
    margin: 0 0 16px;
}

.contact-page-phone .cms-button {
    margin: 0;
}

.contact-number {
    font-variant-numeric: tabular-nums;
}

.contact-page-wechat {
    grid-column: 2;
    grid-row: 1 / span 3;
    padding: 20px;
    border: 1px solid #dce5ef;
    background: #f4f7fb;
    scroll-margin-top: 16px;
}

.contact-page-wechat h2 {
    margin-bottom: 4px;
}

.contact-page-wechat:focus {
    outline: 2px solid #0b4ea2;
    outline-offset: 2px;
}

.contact-wechat-lead {
    margin: 0 0 12px;
    font-weight: 700;
    color: #153b65;
}

.contact-wechat-content {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.contact-qr-link {
    display: block;
    width: 232px;
    max-width: 100%;
}

.contact-qr-link img {
    display: block;
    width: 100%;
    height: auto;
    image-rendering: pixelated;
}

.contact-wechat-hint {
    color: #40536c;
    font-size: 15px;
    line-height: 1.55;
    margin: 0 0 8px;
}

.contact-copy-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    align-items: center;
    overflow-wrap: anywhere;
}

.contact-page-body .copy-button {
    margin: 0;
    min-height: 44px;
    cursor: pointer;
}

.contact-page-body .copy-button:hover {
    background: #e8f2fe;
}

.contact-page-body .contact-copy-status {
    min-height: 0;
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.contact-page-body .contact-copy-status:not(:empty) {
    margin-top: 6px;
}

.contact-text-link,
.contact-footer a {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.contact-text-link {
    color: #0b4ea2;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.contact-page-visit {
    border-top: 1px solid #dce5ef;
    padding: 16px 0 0;
    line-height: 1.7;
}

.contact-visit-hint {
    color: #40536c;
    margin-top: 4px;
}

/* 补+2026-11-28：文字、照片与间距需要 540px，并排时限制总宽。 */
.contact-visit-details {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px 20px;
    max-width: 556px;
}

.contact-visit-copy {
    flex: 1 1 288px;
    min-width: 0;
}

.contact-visit-phone a {
    font-weight: 700;
}

.contact-visit-photo {
    flex: 1 1 232px;
    min-width: 0;
    max-width: 360px;
    margin: 0;
}

.contact-visit-photo img {
    display: block;
    width: 100%;
    height: auto;
}

/* 补+2026-11-28：常见问题区块与标题居中，问答文字左对齐。 */
.contact-page-faq {
    max-width: 72ch;
    margin-inline: auto;
    padding: 32px 0 48px;
    text-align: left;
}

.contact-page-faq h2 {
    text-align: center;
}

.contact-footer {
    padding: clamp(28px, 4vw, 48px) 0 20px;
    background: #1d3666;
    color: #fff;
}

.contact-footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}

.contact-footer h2 {
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.25;
    margin: 0 0 8px;
}

.contact-footer h3 {
    font-size: 18px;
    line-height: 1.4;
    margin: 0 0 6px;
}

.contact-footer-intro,
.contact-footer-wechat p,
.contact-footer-bottom {
    color: #d6deee;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.contact-footer-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px;
    margin: 20px 0 8px;
}

.contact-footer-methods dt {
    color: #d6deee;
    font-size: 14px;
}

.contact-footer-methods dd {
    margin-top: 6px;
}

.contact-footer-methods a,
.contact-footer-details {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.contact-footer a {
    color: #fff;
}

.contact-footer a:hover {
    color: #d8eaff;
}

.contact-footer a:focus-visible,
.mobile-contact a:first-child:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.contact-footer-phone {
    font-size: 20px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.contact-footer-wechat {
    display: grid;
    grid-template-columns: minmax(0, max-content) 232px;
    gap: 12px 20px;
    align-items: center;
    justify-content: end;
}

.contact-footer-qr span {
    display: flex;
    align-items: center;
    min-height: 36px;
    font-size: 14px;
}

.contact-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    border-top: 1px solid #64799c;
    margin-top: 20px;
    padding-top: 14px;
    font-size: 14px;
}

.contact-footer-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 16px;
}

@media (max-width: 960px) {
    .contact-footer-main {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .contact-footer-wechat {
        justify-content: start;
    }
}

@media (min-width: 769px) and (max-width: 960px), (max-width: 540px) {
    .contact-wechat-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-bottom: calc(54px + env(safe-area-inset-bottom, 0px));
    }

    body {
        padding-bottom: calc(54px + env(safe-area-inset-bottom, 0px));
    }

    .mobile-contact {
        height: auto;
        padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
    }

    .mobile-contact a {
        line-height: 53px;
    }

    .mobile-contact a:focus-visible,
    .mobile-contact a:first-child:focus-visible {
        outline-offset: -4px;
    }

    .contact-page-body h1 {
        margin-bottom: 16px;
    }

    .contact-page-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        gap: 20px;
    }

    .contact-page-wechat {
        grid-column: auto;
        grid-row: auto;
        padding: 14px;
    }

    .contact-page-faq {
        padding: 24px 0 36px;
    }

    .contact-footer-methods {
        margin-top: 12px;
    }

    .contact-footer-qr span {
        min-height: 44px;
    }
}

@media (max-width: 500px) {
    .contact-footer-wechat {
        grid-template-columns: minmax(0, 1fr);
        border-top: 1px solid #64799c;
        padding-top: 16px;
    }
}

@media (max-width: 360px) {
    .contact-footer-methods {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }
}
