/* ============================================
   Contact Page Styles
   ============================================ */

/* ============================================
   Contact Banner Section
   ============================================ */
.contact-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    /* Fill the screen height */
    /* background-image removed to support inline styles */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.contact-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Optional: Overlay to ensure text readability */
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.contact-title {
    font-family: 'Alibaba PuHuiTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* alibb-75 */
    font-size: clamp(32px, 5vw + 1rem, 90px);
    /* Reduced min size to 32px */
    font-weight: 600;
    /* SemiBold as per font definition */
    color: white;
    margin: 0 0 10px 0;
}

.contact-subtitle {
    font-family: 'Alibaba PuHuiTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(32px, 5vw + 1rem, 90px);
    /* Reduced min size to 32px */
    font-weight: 600;
    color: white;
    margin: 0;
}

/* ============================================
   Contact Info Section
   ============================================ */
.contact-info-section {
    background-color: #000000;
    /* Use standardized padding to align with Logo/Team */
    /* Padding left/right set to match container padding logic */
    padding: clamp(60px, 8vh, 120px) clamp(20px, 8vw, 160px) clamp(120px, 16vh, 240px);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-family: 'Alibaba PuHuiTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* alibb-75 */
    font-size: clamp(50px, 5vw + 1rem, 90px);
    /* Matches banner */
    font-weight: 600;
    text-align: center;
    margin-bottom: clamp(40px, 5vh, 80px);
    color: white;
}

.info-container-border {
    width: 100%;
    /* border takes full width available after section padding */
    border: 1px solid white;
    padding: clamp(100px, 12vh, 200px) clamp(80px, 10vw, 150px);
    box-sizing: border-box;
}

.info-content {
    /* Optional wrapper if needed for centering inside border */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Left align items */
}

.info-item {
    display: flex;
    margin-bottom: clamp(20px, 3vh, 40px);
    align-items: baseline;
    /* Align text baselines */
    flex-wrap: nowrap;
    /* Prevent label and text from splitting onto new lines unless text wraps */
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    font-family: 'Alibaba PuHuiTi Bold', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* alibb-85 */
    font-size: clamp(20px, 2vw + 10px, 40px);
    color: white;
    margin-right: 15px;
    flex-shrink: 0;
    /* Prevent label from shrinking */
    white-space: nowrap;
    /* Keep label on one line */
}

.info-text {
    font-family: 'Alibaba PuHuiTi Regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* alibb-55 as requested by user */
    font-size: clamp(20px, 2vw + 10px, 40px);
    color: white;
    line-height: 1.5;
    flex: 1;
    /* Take remaining space */
}

.wechat-qrcode {
    display: block;
    width: clamp(200px, 20vw, 400px);
    height: auto;
    margin-top: 15px;
    /* Keep margin if desired, or remove if specific spacing needed */
}

/* User Request: Center QR code relative to info-content */
.info-item.qrcode {
    width: 100%;
    justify-content: center;
    margin-top: 20px;
}

/* ============================================
   Location Section
   ============================================ */
.location-section {
    background-color: var(--primary-orange);
    /* #FF6B35 */
    /* Use standardized padding */
    padding: clamp(60px, 8vh, 120px) 0 40px 0;
    /* Less bottom padding for copyright */
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Fix for Map Tiles */
.map-container img {
    max-width: none !important;
    max-height: none !important;
    object-fit: unset;
    box-shadow: none !important;
}

.map-container * {
    box-sizing: content-box;
}

.map-container {
    width: 100%;
    height: 500px;
    /* Explicit height for Baidu Map */
    min-height: 400px;
    padding: 0 clamp(20px, 8vw, 160px);
    /* Align with other content */
    margin-bottom: clamp(40px, 5vh, 80px);
    box-sizing: border-box;
    /* Ensure relative positioning for map layers */
    position: relative;
    /* Reset text-align to default inside map */
    text-align: left;
}

.contact-map {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fix for Iframe Map */
.map-container iframe {
    width: 100%;
    height: 500px;
    /* Iframes need explicit height */
    min-height: 400px;
    border: 0;
    display: block;
}

@media (max-width: 768px) {
    .map-container iframe {
        height: 350px;
        /* Smaller height on mobile */
    }
}

.location-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 40px;
}

.location-links a {
    font-family: 'Alibaba PuHuiTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* alibb-75 */
    font-size: clamp(16px, 1.5vw + 6px, 20px);
    /* User Edit: increased for tablet */
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.location-links a:hover {
    /* color: #FF6B35; */
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-thickness: 2px;
}

.location-copyright {
    font-family: 'Alibaba PuHuiTi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* alibb-75 */
    font-size: clamp(16px, 1.5vw + 6px, 20px);
    /* User Edit: increased for tablet */
    color: white;
    opacity: 0.9;
    margin-top: 50px;
    /* User Edit: margin-top 50px */
}

/* Tablet adjustments (Matching about.css) */
@media (max-width: 1024px) {
    .contact-banner {
        height: 60vh;
        min-height: 400px;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {

    /* .contact-banner height is handled by the 1024px query above */
    .contact-title {
        margin-top: 50px;
    }

    .contact-title,
    .contact-subtitle {
        line-height: 1.2 !important;
        margin-bottom: 5px !important;
        font-size: clamp(24px, 6vw, 40px);
    }

    .contact-subtitle span {
        display: block;
    }

    .contact-banner {
        aspect-ratio: 16 / 9;
        height: auto !important;
        min-height: unset !important;
    }

    .info-container-border {
        padding: 30px 20px;
    }

    .info-item {
        flex-direction: column;
        /* Stack label and text on mobile */
        flex-wrap: wrap;
        /* Restore wrap for mobile */
    }

    .info-label {
        margin-bottom: 5px;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .location-copyright {
        font-size: clamp(14px, 1.5vw + 5px, 18px);
    }
}