/* Contact page: a clear map, office directory, and direct contact links. */
.contact-layout {
    --contact-blue: #0053c7;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 28px;
    padding-top: 52px;
    color: #202d43;
}
.contact-layout * { box-sizing: border-box; }
.contact-layout h2, .contact-layout h3, .contact-layout p { margin: 0; }
.contact-map-card, .contact-offices, .contact-channels {
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 20px;
}
.contact-map-card { display: flex; flex-direction: column; overflow: hidden; min-width: 0; box-shadow: 0 10px 32px rgba(31, 58, 96, .04); }
.contact-map-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 30px; }
.contact-eyebrow { display: block; color: #718198; font-size: 10px; font-weight: 600; letter-spacing: 2px; line-height: 1.5; margin-bottom: 9px; }
.contact-layout h2 { font-size: 24px; font-weight: 600; line-height: 1.4; letter-spacing: .5px; }
.contact-map-heading p { margin: 0; color: #748094; font-size: 13px; }
.contact-navigate { display: inline-flex; flex-shrink: 0; align-items: center; gap: 16px; padding: 12px 17px; border-radius: 8px; background: var(--contact-blue); color: #fff; font-size: 13px; line-height: 1.4; transition: background .2s; }
.contact-navigate:hover { background: #003e97; color: #fff; }
.contact-navigate span { font-size: 20px; line-height: 1; }
.contact-layout #mapContainer { flex: 1 0 auto; width: 100%; height: 350px; background: #edf0f4; z-index: 0; font-family: inherit; }
.contact-map-caption { display: flex; align-items: center; gap: 9px; padding: 17px 24px; font-size: 12px; color: #66758a; line-height: 1.5; }
.contact-map-caption > span:last-child { margin-left: auto; color: #8d98a7; }
.contact-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--contact-blue); flex-shrink: 0; }
.contact-offices { padding: 28px 30px 12px; }
.contact-section-heading { margin-bottom: 22px; }
.contact-office { display: flex; gap: 17px; padding: 24px 16px; cursor: pointer; transition: background-color .22s ease, transform .22s ease; }
.contact-office + .contact-office { border-top: 1px solid #edf0f5; }
.contact-office:hover { background: #f7fafe; }
.contact-office-primary, .contact-office-primary:hover { background: #f2f6fd; border-radius: 12px; margin-bottom: 4px; }
.contact-office-primary + .contact-office { border-top: 0; }
.contact-office:focus-visible { outline: 2px solid var(--contact-blue); outline-offset: -2px; border-radius: 12px; }
/* 没填经纬度的办公点：只显示文字，不做成可点的地图入口（没有指针、没有 hover 反馈） */
.contact-office-static { cursor: default; }
.contact-office-static:hover { background: transparent; }
.contact-office-static:hover .contact-office-number { color: #9caabe; }
.contact-office-number { color: #9caabe; font-size: 12px; font-weight: 600; line-height: 25px; letter-spacing: 1px; transition: color .22s ease; }
.contact-office:hover .contact-office-number { color: var(--contact-blue); }
.contact-office-primary .contact-office-number { color: var(--contact-blue); }
.contact-office h3 { display: flex; align-items: center; gap: 12px; font-size: 17px; line-height: 25px; font-weight: 600; }
.contact-office-tag { padding: 2px 7px; background: #e3edfc; color: var(--contact-blue); border-radius: 4px; font-size: 10px; font-weight: 400; line-height: 1.6; }
.contact-office p { margin-top: 9px; color: #66758a; font-size: 14px; line-height: 1.85; }
.contact-channels { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.15fr 1fr; padding: 22px 8px; }
.contact-channel { display: flex; align-items: center; gap: 16px; padding: 0 28px; min-width: 0; color: #202d43; }
.contact-channel + .contact-channel { border-left: 1px solid #e9edf3; }
.contact-channel-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: #f2f6fd; flex-shrink: 0; }
.contact-channel-icon img { width: 22px; max-height: 24px; object-fit: contain; }
.contact-channel-label { display: block; color: #7d899a; font-size: 12px; line-height: 1.6; margin-bottom: 5px; }
.contact-channel-value { display: block; font-size: 17px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.contact-channel-arrow { color: #98a6b8; margin-left: auto; font-size: 20px; }
a.contact-channel:hover .contact-channel-value, a.contact-channel:hover .contact-channel-arrow { color: var(--contact-blue); }
.contact-qr { width: 76px; height: 76px; flex-shrink: 0; }
.contact-channel-hint { display: block; margin-top: 5px; color: #8d98a7; font-size: 11px; line-height: 1.5; }
.contact-layout a:focus-visible { outline: 3px solid #83b3f5; outline-offset: 5px; }
.contact-layout .leaflet-tooltip.contact-map-label { padding: 9px 13px; color: #0053c7; font-size: 13px; font-weight: 600; background: #fff; border: 0; border-radius: 7px; box-shadow: 0 3px 14px rgba(30, 50, 80, .14); }
.contact-layout .leaflet-control-zoom { border: 1px solid #e0e5ec; box-shadow: 0 2px 8px rgba(30, 50, 80, .08); }
.contact-layout .leaflet-popup-content-wrapper { border-radius: 10px; }
@media (max-width: 1100px) {
    .contact-layout { gap: 20px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
    .contact-map-heading, .contact-offices { padding-left: 22px; padding-right: 22px; }
    .contact-channel { padding: 0 18px; gap: 12px; }
    .contact-channel-value { font-size: 15px; }
    .contact-channel-arrow { display: none; }
}
@media (max-width: 800px) {
    .contact-layout { grid-template-columns: minmax(0, 1fr); padding-top: 32px; }
    .contact-layout #mapContainer { height: 320px; }
    .contact-offices { padding-bottom: 10px; }
    .contact-channels { grid-template-columns: 1fr 1fr; padding: 22px; }
    .contact-channel { padding: 4px 16px 4px 0; }
    .contact-channel + .contact-channel { padding-left: 16px; }
    .contact-channel-wechat { grid-column: 1 / -1; margin-top: 22px; padding-top: 20px !important; padding-left: 0 !important; border-left: 0 !important; border-top: 1px solid #e9edf3; }
}
@media (max-width: 480px) {
    .contact-map-card, .contact-offices, .contact-channels { border-radius: 14px; }
    .contact-map-heading { padding: 22px 18px; gap: 10px; }
    .contact-layout h2 { font-size: 21px; }
    .contact-eyebrow { font-size: 9px; letter-spacing: 1.5px; }
    .contact-navigate { padding: 10px 12px; gap: 8px; font-size: 12px; }
    .contact-layout #mapContainer { height: 280px; }
    .contact-map-caption { padding: 15px 18px; font-size: 11px; }
    .contact-map-caption > span:last-child { display: none; }
    .contact-offices { padding: 24px 18px 8px; }
    .contact-office { padding: 22px 12px; gap: 12px; }
    .contact-office h3 { font-size: 16px; }
    .contact-office p { font-size: 13px; }
    .contact-channels { grid-template-columns: minmax(0, 1fr); padding: 6px 20px; }
    .contact-channel { padding: 20px 0; }
    .contact-channel + .contact-channel { border-left: 0; border-top: 1px solid #e9edf3; padding-left: 0; }
    .contact-channel-wechat { margin-top: 0; }
    .contact-channel-arrow { display: block; }
}
