/* ========================================
   联系我们页专用样式
   ======================================== */

/* 首屏顶距由全局 style.css 中 .hero（≤768px）统一处理，避免与 .contact-page 双份 padding 叠出白条 */

.contact-section {
    padding: var(--spacing-xl) 0;
}

.contact-highlight__row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(40px, 10vw, 140px);
    max-width: 100%;
    margin: 0 auto;
    padding: 0 clamp(4px, 2vw, 16px);
}

.contact-highlight__col {
    flex: 1;
    min-width: 0;
    max-width: 380px;
    text-align: center;
}

/* 科技感握手 SVG（联系人卡片上方，宽度与双列区域对齐） */
.contact-handshake-wrap {
    margin: -4px auto clamp(10px, 2.5vw, 18px);
    max-width: 100%;
    padding: 0 clamp(4px, 2vw, 16px);
    line-height: 0;
}

.contact-handshake-svg {
    width: 100%;
    height: auto;
    aspect-ratio: 920 / 260;
    min-height: 148px;
    display: block;
    overflow: visible;
}

.contact-highlight:hover .contact-handshake-svg .handshake-core {
    filter: drop-shadow(0 0 14px rgba(92, 239, 255, 0.55));
}

.contact-handshake-svg .handshake-core {
    transition: filter 0.35s ease;
    animation: contact-handshake-core 2.6s ease-in-out infinite;
}

.contact-handshake-svg .handshake-hand {
    animation: contact-handshake-hand 2.6s ease-in-out infinite;
}

.contact-handshake-svg .handshake-hand--right {
    animation-delay: -1.3s;
}

.contact-handshake-svg .handshake-data {
    stroke-dasharray: 6 14;
    animation: contact-handshake-dash 5s linear infinite;
}

@keyframes contact-handshake-core {

    0%,
    100% {
        opacity: 0.82;
    }

    50% {
        opacity: 1;
    }
}

@keyframes contact-handshake-hand {

    0%,
    100% {
        opacity: 0.92;
    }

    50% {
        opacity: 1;
    }
}

@keyframes contact-handshake-dash {
    to {
        stroke-dashoffset: -120;
    }
}

@media (prefers-reduced-motion: reduce) {

    .contact-handshake-svg .handshake-core,
    .contact-handshake-svg .handshake-hand,
    .contact-handshake-svg .handshake-data {
        animation: none;
    }

    .contact-handshake-svg .handshake-data {
        stroke-dasharray: 0;
    }
}

/* 联系信息卡片 */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.contact-info-card {
    background: var(--color-white);
    border-radius: 12px;
    padding: var(--spacing-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: var(--transition-normal);
}

.contact-info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-industrial-blue), var(--color-primary-blue));
    border-radius: 50%;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-icon-xl);
    color: var(--color-white);
}

.contact-label {
    font-size: var(--font-size-tagline);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary-dark);
}

.contact-value {
    font-size: var(--font-size-body);
    color: var(--color-text-muted);
    line-height: var(--leading-normal);
}

.contact-value a {
    color: var(--color-brand-blue);
}

.contact-value a:hover {
    text-decoration: underline;
}

/* 联系表单 */
.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-white);
    padding: var(--spacing-xl);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.contact-form-title {
    font-size: var(--font-size-block-heading);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.contact-form-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--color-primary-dark);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: var(--font-size-nav);
    font-family: inherit;
    transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-brand-blue);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-submit {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* 地图区域 */
.map-section {
    position: relative;
    background: radial-gradient(circle at top, rgba(7, 30, 74, 0.95), rgba(13, 47, 108, 0.96));
    padding: var(--spacing-xl) 0;
    overflow: hidden;
}

.map-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18), transparent 3px),
        radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.12), transparent 2px),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.16), transparent 3px),
        radial-gradient(circle at 70% 82%, rgba(255, 255, 255, 0.12), transparent 2px),
        linear-gradient(180deg, rgba(24, 72, 148, 0) 0%, rgba(15, 41, 96, 0.4) 100%);
    pointer-events: none;
}

.map-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 520px;
    background: rgba(8, 15, 40, 0.94);
    border: 1px solid rgba(95, 156, 255, 0.3);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-tagline);
    color: #d8e8ff;
}

.map-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 140px 140px;
    opacity: 0.22;
    pointer-events: none;
}

/* 社交媒体链接 */
.social-links {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-top: var(--spacing-lg);
}

.social-link {
    width: 20px;
    height: 20px;
    background: #e2e9f2;
    border: 1px solid rgba(15, 52, 96, 0.16);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-panel-title);
    color: rgba(15, 52, 96, 0.35);
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.social-link:hover,
.social-link.social-link--cycle-active {
    background: var(--color-primary-blue);
    color: var(--color-white);
    border-color: transparent;
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 10px 26px rgba(15, 52, 96, 0.32);
}

.social-link:focus-visible {
    outline: 2px solid var(--color-primary-blue);
    outline-offset: 3px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-container {
        padding: var(--spacing-lg);
    }

    .contact-handshake-wrap {
        padding: 0 2px;
        margin-bottom: 12px;
    }

    .contact-handshake-svg {
        min-height: 112px;
    }

    .contact-highlight__row {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-xl);
    }

    .contact-highlight__col {
        max-width: 100%;
        width: 100%;
    }

    .contact-highlight__phone {
        display: block;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0;
    }

    .social-links {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }
}