/* ============================================
   腾隍纽扣 - 联系我们页面
   ============================================ */

.contact-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 70px 0;
}

.contact-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(31, 45, 58, 0.9), rgba(31, 45, 58, 0.52), rgba(31, 45, 58, 0.9)),
        radial-gradient(ellipse at 50% 0%, rgba(106, 121, 217, 0.35), transparent 60%);
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.contact-hero-content h1 {
    font-family: 'AlibabaPuHuiTi', sans-serif;
    font-weight: 900;
    font-size: clamp(1.75rem, 3.2vw, 3rem);
    line-height: 1.35;
    margin-bottom: 14px;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.contact-hero-content p {
    margin: 0;
    opacity: 0.95;
    font-size: clamp(0.9rem, 1.4vw, 1.06rem);
    letter-spacing: 0.06em;
}

.contact-address {
    padding: 86px 0;
    background: #fff;
}

.contact-info-card {
    width: 100%;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(106, 121, 217, 0.1);
    box-shadow: 0 20px 60px rgba(106, 121, 217, 0.05);
    padding: 48px 40px;
    max-width: 1000px;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 70px rgba(106, 121, 217, 0.1);
}

.contact-info-card h3 {
    font-family: 'AlibabaPuHuiTi', sans-serif;
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.contact-info-card > p {
    margin: 0 0 40px;
    color: #94a3b8;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 500;
}

.contact-info-list {
    margin: 0 auto;
    max-width: 900px;
    display: grid;
    gap: 16px;
}

.contact-info-row {
    display: flex;
    align-items: center;
    min-height: 70px;
    border-radius: 16px;
    border: 1px solid rgba(106, 121, 217, 0.08);
    background: #fcfdfe;
    padding: 12px 24px;
    text-align: left;
    transition: all 0.3s ease;
}

.contact-info-row:hover {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(106, 121, 217, 0.06);
}

.info-icon {
    width: 44px;
    height: 44px;
    background: rgba(106, 121, 217, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-info-list .label {
    color: #64748b;
    font-weight: 600;
    font-size: 0.95rem;
    width: 100px;
    flex-shrink: 0;
}

.contact-info-list a, 
.contact-info-list span:not(.label):not(.info-icon) {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-info-list a:hover {
    color: var(--primary-color);
}

.contact-address-image-wrap {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(106, 121, 217, 0.12);
    position: relative;
    max-width: 1200px;
    margin: 40px auto 0;
    background: #fff;
    padding: 12px;
}

.contact-map-image-container {
    width: 100%;
    position: relative;
    cursor: crosshair;
    overflow: hidden;
    border-radius: 12px;
    background: #f0f2f5;
    /* 容器比例，根据图片比例调整，这里保持较大高度以显示细节 */
    aspect-ratio: 16 / 9;
    min-height: 400px;
}

.img-zoomable {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1);
    transform-origin: center center;
}

.contact-map-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent 40%);
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.contact-map-image-container:hover .contact-map-overlay {
    opacity: 0.6;
}

.contact-map-tip {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.service-network {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.network-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.network-item {
    background: #fff;
    border: 1px solid rgba(106, 121, 217, 0.12);
    border-radius: 50px;
    padding: 12px 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4a5562;
    font-weight: 600;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    cursor: default;
}

.network-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(106, 121, 217, 0.18);
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: #fff;
}

.network-item:hover .network-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.network-tooltip {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    white-space: nowrap;
    max-width: 90vw;
}

.network-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: rgba(106, 121, 217, 0.85);
}

.network-tooltip-content {
    background: rgba(106, 121, 217, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 12px 40px rgba(106, 121, 217, 0.35);
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 240px;
}

.network-tooltip-content .tooltip-address,
.network-tooltip-content .tooltip-phone {
    margin: 0;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.network-tooltip-content .tooltip-address i,
.network-tooltip-content .tooltip-phone i {
    color: rgba(255, 255, 255, 0.75);
    margin-top: 3px;
    flex-shrink: 0;
}

.network-tooltip-content .tooltip-phone a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.network-tooltip-content .tooltip-phone a:hover {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
}

@media (max-width: 991.98px) {
  /* 移动端启用Tooltip，禁用PC端hover的自动触发 */
  .network-tooltip {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(12px);
  }
  /* 激活状态显示 */
  .network-item.active .network-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
  }
  /* 移动端Tooltip适配：全屏宽度、自适应换行、位置优化 */
  .network-tooltip {
    white-space: normal;
    min-width: 260px !important;
    max-width: 90vw;
  }
  .network-tooltip-content {
    padding: 14px 18px;
  }
}

.service-map-embed {
    border-radius: 24px;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
    position: relative;
    overflow: hidden;
}

#service-map {
    width: 100%;
    height: 700px;
    background: transparent !important;
}

.section-title h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.section-title .divider {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-title p {
    color: #64748b;
    font-size: 1.1rem;
}

@media (max-width: 575.98px) {
    .contact-hero-content h1 {
        font-size: 1.6rem;
    }
    
    .contact-hero-content p {
        font-size: 0.85rem;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .contact-info-card h3 {
        font-size: 1.4rem;
        margin-bottom: 5px;
    }

    .contact-info-card > p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
}

/* 响应式优化 */
@media (max-width: 1199.98px) {
    .contact-address-image-wrap {
        margin-top: 30px;
    }
}

@media (max-width: 991.98px) {
    .contact-hero {
        min-height: 360px;
        padding: 60px 0;
    }

    .contact-info-card {
        padding: 30px 20px;
    }

    .contact-info-card h3 {
        font-size: 1.75rem;
    }

    .contact-address-image-wrap {
        padding: 8px;
        border-radius: 16px;
    }

    .contact-map-image-container {
        aspect-ratio: 4 / 3;
        min-height: 300px;
    }

    .contact-map-tip {
        display: none !important;
    }

    #service-map {
        height: 550px;
    }
}

@media (max-width: 767.98px) {
    .network-grid {
        gap: 12px;
    }

    .network-item {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    #service-map {
        height: 450px;
    }
}

@media (max-width: 575.98px) {
    .contact-address {
        padding: 60px 0;
    }

    .contact-info-card h3 {
        font-size: 1.5rem;
    }

    .contact-info-row {
        flex-direction: column;
        padding: 20px;
        text-align: center;
        gap: 8px;
        min-height: auto;
    }

    .info-icon {
        margin-right: 0;
        margin-bottom: 8px;
    }

    .contact-info-list .label {
        width: 100%;
        margin-bottom: 2px;
    }

    .contact-info-list a, 
    .contact-info-list span:not(.label):not(.info-icon) {
        font-size: 1rem;
    }

    .contact-map-image-container {
        aspect-ratio: 1 / 1;
        min-height: 250px;
    }

    .contact-map-tip {
        font-size: 0.75rem;
        padding: 8px 16px;
        bottom: 16px;
    }

    #service-map {
        height: 380px;
    }

    .service-network {
        padding: 60px 0;
    }
}

