﻿/* ==============================
   Contact Page PC Only
   Main Color: #004ac5
   Accent Color: #e27a1f
============================== */

.contact-page {
    width: 100%;
    background: #fff;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
}

.contact-content {
    padding: 60px 0 80px;
}

.contact-main {
    display: grid;
    grid-template-columns: 430px 1fr;
    gap: 42px;
    align-items: stretch;
}

/* 左侧联系信息 */
.contact-info-box {
    background: linear-gradient(145deg, #004ac5 0%, #003a9b 100%);
    border-radius: 22px;
    padding: 42px 38px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(0, 74, 197, .24);
}

.contact-info-box::before {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
}

.contact-info-box::after {
    content: "";
    position: absolute;
    left: -70px;
    bottom: -70px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(226, 122, 31, .16);
}

.contact-info-inner {
    position: relative;
    z-index: 2;
}

.contact-info-title {
    margin-bottom: 34px;
}

.contact-info-title h2 {
    margin: 0;
    font-size: 34px;
    line-height: 1.25;
    color: #fff;
}

.contact-info-title p {
    margin: 14px 0 0;
    font-size: 15px;
    line-height: 28px;
    color: rgba(255,255,255,.82);
}

.contact-info-list {
    margin-top: 28px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 26px;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(255,255,255,.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    transition: all .25s ease;
}

.contact-info-item:hover .contact-info-icon {
    background: #e27a1f;
    color: #fff;
    transform: translateY(-2px);
}

.contact-info-text h3 {
    margin: 0 0 7px;
    font-size: 17px;
    color: #fff;
}

.contact-info-text p,
.contact-info-text a {
    margin: 0;
    font-size: 15px;
    line-height: 25px;
    color: rgba(255,255,255,.82);
    text-decoration: none;
}

.contact-info-text a:hover {
    color: #fff;
}

/* 右侧表单 */
.contact-form-box {
    background: #fff;
    border: 1px solid #e1e9f8;
    border-radius: 22px;
    padding: 42px 44px;
    box-shadow: 0 18px 46px rgba(0, 74, 197, .1);
}

.contact-form-title {
    margin-bottom: 30px;
}

.contact-form-title h2 {
    margin: 0;
    font-size: 34px;
    line-height: 1.25;
    color: #222;
    position: relative;
    padding-bottom: 16px;
}

.contact-form-title h2::after {
    content: "";
    width: 62px;
    height: 4px;
    border-radius: 4px;
    background: #004ac5;
    position: absolute;
    left: 0;
    bottom: 0;
}

.contact-form-title p {
    margin: 14px 0 0;
    color: #777;
    font-size: 15px;
    line-height: 26px;
}

.contact-form {
    width: 100%;
}

.contact-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.contact-form-group {
    margin-bottom: 22px;
}

.contact-form-group label {
    display: block;
    margin-bottom: 9px;
    color: #333;
    font-size: 15px;
    font-weight: bold;
}

.contact-form-group label span {
    color: #e27a1f;
    margin-left: 3px;
}

.contact-form-group input,
.contact-form-group textarea {
    width: 100%;
    height: 52px;
    border: 1px solid #dfe5f1;
    border-radius: 12px;
    padding: 0 16px;
    box-sizing: border-box;
    color: #333;
    font-size: 15px;
    outline: none;
    background: #f8faff;
    transition: all .25s ease;
}

.contact-form-group textarea {
    height: 145px;
    padding: 15px 16px;
    line-height: 24px;
    resize: none;
    font-family: Arial, Helvetica, sans-serif;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
    border-color: #004ac5;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 74, 197, .1);
}

.contact-form-submit {
    margin-top: 8px;
}

.contact-form-submit button {
    width: 190px;
    height: 52px;
    border: none;
    border-radius: 999px;
    background: #004ac5;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all .25s ease;
    box-shadow: 0 12px 26px rgba(0, 74, 197, .25);
}

.contact-form-submit button:hover {
    background: #e27a1f;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(226, 122, 31, .3);
}

.contact-form-submit button:disabled {
    cursor: not-allowed;
    opacity: .7;
    transform: none;
}

/* 地图或图片区域，可选 */
.contact-map-box {
    margin-top: 42px;
    height: 360px;
    border-radius: 22px;
    overflow: hidden;
    background: #f4f8ff;
    border: 1px solid #e1e9f8;
}

.contact-map-box img,
.contact-map-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    object-fit: cover;
}

/* ==============================
   弹窗 + Loading
============================== */

.contact-modal-mask {
    display: none;
    position: fixed;
    z-index: 99999;
    inset: 0;
    background: rgba(12, 22, 45, .55);
    backdrop-filter: blur(4px);
}

.contact-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 50%;
    top: 50%;
    width: 420px;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .22);
    overflow: hidden;
}

.contact-modal-body {
    padding: 42px 34px 34px;
    text-align: center;
}

.contact-modal-icon {
    width: 68px;
    height: 68px;
    line-height: 68px;
    border-radius: 50%;
    margin: 0 auto 20px;
    font-size: 34px;
    font-weight: bold;
}

.contact-modal.success .contact-modal-icon {
    background: #eaf8ef;
    color: #22a957;
}

.contact-modal.error .contact-modal-icon {
    background: #fff0f0;
    color: #e33b3b;
}

.contact-modal.warning .contact-modal-icon {
    background: #fff7e6;
    color: #e27a1f;
}

.contact-modal-body h3 {
    margin: 0 0 12px;
    color: #222;
    font-size: 24px;
}

.contact-modal-body p {
    margin: 0;
    color: #666;
    font-size: 15px;
    line-height: 26px;
}

.contact-modal-btn {
    margin-top: 26px;
}

.contact-modal-btn a {
    display: inline-block;
    min-width: 128px;
    height: 44px;
    line-height: 44px;
    border-radius: 999px;
    background: #004ac5;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    transition: all .25s ease;
}

.contact-modal-btn a:hover {
    background: #e27a1f;
}

/* Loading */
.contact-loading {
    display: none;
    position: fixed;
    z-index: 100001;
    left: 50%;
    top: 50%;
    width: 220px;
    padding: 34px 20px 30px;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .22);
}

.contact-loading-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 18px;
    border-radius: 50%;
    border: 4px solid #e5ebf8;
    border-top-color: #004ac5;
    animation: contactSpin .8s linear infinite;
}

.contact-loading p {
    margin: 0;
    color: #333;
    font-size: 15px;
}

@keyframes contactSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}