/* ========================================
   微点科技官网 - 联系我们特定样式
   ======================================== */

/* Hero Section - Contact Specific */
.contact-hero {
    min-height: 55vh;
    padding: 140px 8% 60px;
    background: transparent;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-ambient-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 80, 203, 0.08) 0%, rgba(124, 58, 237, 0.05) 30%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.contact-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.contact-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.25rem;
}

.contact-hero p {
    font-size: 1.125rem;
    color: var(--on-surface-variant);
    max-width: 500px;
    margin: 0 auto;
}

/* ========================================
   Quick Contacts Overlay
   ======================================== */
.quick-contact-wrapper {
    position: relative;
    z-index: 10;
    margin-top: -3rem;
    /* Overlaps hero */
    padding: 0 8%;
    /* No perspective needed, handled by simple transform */
}

.quick-contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.qc-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--outline-variant);
    border-radius: 20px;
    box-shadow: var(--shadow-ambient);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.qc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qc-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-elevated);
    background: #ffffff;
    border-color: transparent;
}

.qc-card:hover::before {
    opacity: 1;
}

.qc-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(0, 80, 203, 0.1), rgba(0, 102, 255, 0.05));
    border-radius: 12px;
    color: var(--primary);
    flex-shrink: 0;
}

.qc-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.qc-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.qc-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--on-surface-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.qc-value {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 0.25rem;
    transition: color 0.2s ease;
}

.qc-card:hover .qc-value {
    color: var(--primary);
}

.qc-desc {
    font-size: 0.875rem;
    color: var(--on-surface-variant);
}

.qc-arrow {
    color: var(--on-surface-muted);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    align-self: center;
}

.qc-card:hover .qc-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--primary);
}

.qc-arrow svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   Main Content Section
   ======================================== */
.contact-main {
    padding: 60px 8% 60px; /* Reduced bottom from 120px to 60px */
    position: relative;
    z-index: 1;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column after removing form card */
    gap: 2.5rem;
    max-width: 1000px; /* Reduced from 1200px for consistency */
    margin: 0 auto;
}

/* Card Base Styles */
.card {
    background: var(--surface-container-lowest);
    border-radius: 24px;
    padding: 2.5rem 2rem; /* Symmetrical padding */
    box-shadow: 0 4px 24px rgba(25, 28, 30, 0.02), 0 1px 2px rgba(25, 28, 30, 0.01);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(194, 198, 216, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem; /* Further tightened */
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; /* Slightly smaller icon block */
    height: 36px;
    background: var(--surface-container-low);
    border-radius: 8px;
    color: var(--on-surface);
}

.card-icon svg {
    width: 18px;
    height: 18px;
}

.card-header h3 {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    font-size: 1.375rem; /* Slightly smaller header */
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* ========================================
   Location Card
   ======================================== */
.location-card {
    display: flex;
    flex-direction: column;
    padding: 2.25rem 2rem; /* Wider padding for full-width layout */
}

.location-list {
    display: flex;
    flex-direction: row; /* Horizontal layout for wider card */
    justify-content: flex-start;
    gap: 2.5rem; /* More spacing between items */
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    margin-bottom: 1.5rem;
}

.location-item {
    display: flex;
    gap: 1rem; /* Matched with card-header gap */
}

.loc-marker {
    display: flex;
    justify-content: center;
    width: 36px; /* Matched with card-icon width */
    flex-shrink: 0;
    padding-top: 0.45rem; /* Better vertical centering with h4 line-height */
}

.loc-dot {
    width: 10px; /* Smaller dot */
    height: 10px;
    border-radius: 50%;
    position: relative;
}

.pulse-blue { background: var(--primary); }
.pulse-purple { background: var(--secondary); }

.loc-dot::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    animation: markerPulse 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.pulse-blue::after { border: 1.5px solid rgba(0, 80, 203, 0.5); }
.pulse-purple::after { border: 1.5px solid rgba(124, 58, 237, 0.5); }

@keyframes markerPulse {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

.loc-details h4 {
    font-size: 1rem; /* Slightly smaller */
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--on-surface);
}

.loc-details p {
    font-size: 0.875rem; /* Slightly smaller */
    color: var(--on-surface-variant);
    line-height: 1.5;
}

.location-separator {
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--outline-variant) 0%, transparent 100%);
}

.location-map-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--surface-container-low);
    border-radius: 16px;
    border: 1px solid var(--outline-variant);
    padding: 0.5rem;
    position: relative;
    overflow: hidden;
    min-height: 240px; /* Larger map area for full-width layout */
}

.map-inner {
    position: relative;
    width: 100%;
    max-width: 420px; /* Larger map for full-width layout */
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
}

/* Map Markers */
.map-marker {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 5;
}

.map-marker:hover {
    z-index: 10;
}

.marker-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

.marker-dot::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    animation: markerPulse 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.pulse-blue.marker-dot::after {
    border: 1.5px solid rgba(0, 80, 203, 0.5);
}

.pulse-purple.marker-dot::after {
    border: 1.5px solid rgba(124, 58, 237, 0.5);
}

.marker-label {
    margin-top: 8px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 80, 203, 0.1);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--on-surface);
    box-shadow: 0 4px 12px rgba(25, 28, 30, 0.08);
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    pointer-events: none;
}

.map-marker:hover .marker-label {
    opacity: 1;
    transform: translateY(0);
}

/* Approximate coordinates for China Map */
.map-marker.beijing {
    top: 47%;
    left: 67%;
}

.map-marker.chengdu {
    top: 66%;
    left: 51%;
}

/* ========================================
   Modern Form Styles (Floating & Stripe-like)
   ======================================== */
.form-card {
    padding: 3.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-row.full {
    grid-template-columns: 1fr;
}

.input-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1.25rem 1rem 0.5rem;
    background: var(--surface);
    border: 1px solid transparent;
    /* Replaces heavy borders */
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--on-surface);
    transition: all 0.2s ease;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(25, 28, 30, 0.02);
}

.input-group textarea {
    min-height: 120px;
    resize: vertical;
}

.input-group label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    font-size: 0.9375rem;
    color: var(--on-surface-muted);
    pointer-events: none;
    transition: all 0.2s ease;
    transform-origin: left top;
}

/* Consultation Type Chips */
.group-label {
    position: static !important;
    transform: none !important;
    font-size: 0.8125rem !important;
    font-weight: 500;
    color: var(--on-surface-variant) !important;
    margin-bottom: 1rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.type-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.chip {
    cursor: pointer;
    position: relative !important;
    display: inline-block !important;
    pointer-events: auto !important; /* Enable clicks */
}

.chip input {
    display: none;
}

.chip span {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--on-surface-muted);
    background: var(--surface);
    border: 1px solid var(--outline-variant);
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-user-select: none;
    user-select: none;
}

.chip:hover span {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 80, 203, 0.02);
}

.chip input:checked + span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 80, 203, 0.2);
}

.input-group textarea+label {
    top: 1.25rem;
    transform: none;
}

.input-group label .required {
    color: var(--tertiary);
}

/* Floating Label Mechanics - uses placeholder-shown to detect if typed */
.input-group input:focus+label,
.input-group input:not(:placeholder-shown)+label,
.input-group textarea:focus+label,
.input-group textarea:not(:placeholder-shown)+label {
    top: 0.5rem;
    transform: translateY(0) scale(0.75);
    color: var(--on-surface-variant);
}

.input-group textarea:focus+label,
.input-group textarea:not(:placeholder-shown)+label {
    top: 0.5rem;
    transform: scale(0.75);
}

/* Focus Border Effect */
.focus-border {
    position: absolute;
    bottom: -1px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 2px 2px 0 0;
}

.input-group input:focus~.focus-border,
.input-group textarea:focus~.focus-border {
    transform: scaleX(1);
}

.input-group input:focus,
.input-group textarea:focus {
    background: var(--surface-container-lowest);
    box-shadow: 0 4px 12px rgba(0, 80, 203, 0.06), inset 0 0 0 1px rgba(0, 80, 203, 0.1);
}

/* Submit Button Customization */
.submit-btn {
    margin-top: 1rem;
    padding: 1.125rem 2rem;
    background: var(--on-surface);
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.submit-btn span,
.submit-btn svg {
    position: relative;
    z-index: 2;
}

.submit-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 80, 203, 0.2);
}

.submit-btn:hover::before {
    opacity: 1;
}

.submit-btn:hover svg {
    transform: translate(2px, -2px);
}

.form-privacy {
    font-size: 0.75rem;
    color: var(--on-surface-muted);
    text-align: center;
    margin-top: 0.5rem;
}

/* ========================================
   CTA Section Update
   ======================================== */
.cta-section {
    padding: 0 8% 120px; /* Reduced top from 40px to 0 */
}

.cta-content {
    max-width: 1000px; /* Aligned with the content grid width */
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--outline-variant);
    border-radius: 24px;
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content h2 {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 2;
}

.cta-content p {
    font-size: 1.125rem;
    color: var(--on-surface-variant);
    margin: 0 auto 2.5rem;
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.cta-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.875rem;
    position: relative;
    z-index: 2;
}

.cta-tag {
    padding: 0.625rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--surface-container-high);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--on-surface-variant);
    transition: all 0.2s ease;
}

.cta-tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ========================================
   Responsive 
   ======================================== */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .location-list {
        flex-direction: column;
        gap: 1.25rem;
    }

    .location-separator {
        width: 100%;
        height: 1px;
        background: linear-gradient(90deg, var(--outline-variant) 0%, transparent 100%);
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 120px 1.5rem 40px;
    }

    .quick-contact-wrapper {
        padding: 0 1.5rem;
    }

    .quick-contacts-grid {
        grid-template-columns: 1fr;
    }

    .contact-main {
        padding: 40px 1.5rem 80px;
    }

    .card {
        padding: 2.5rem 1.5rem;
    }

    .location-list {
        flex-direction: column;
    }

    .location-separator {
        width: 100%;
        height: 1px;
        background: linear-gradient(90deg, var(--outline-variant) 0%, transparent 100%);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cta-section {
        padding: 40px 1.5rem 80px;
    }

    .cta-content {
        padding: 3rem 1.5rem;
    }
}