﻿/* 横幅 */
.Connect_banner {
    background: linear-gradient(135deg, #d5defa 0%, #f2f5f6 100%);
    text-align: center;
    padding: 100px 20px;
}

.Connect_banner h2 {
    font-size: 50px;
    color: #343434;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.Connect_banner span {
    color: rgb(59 130 246);
    position: relative;
}

.Connect_banner span:after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: rgba(57, 116, 175, 0.2);
    z-index: -1;
}

.Connect_banner p {
    font-size: 16px;
    color: #666;
    max-width: 70%;
    margin: 0 auto;
    line-height: 1.6;
}

/* 主容器 */
.Connect {
    padding: 20px 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 左侧表单 & 右侧联系信息 */
.Connect_form,
.Connect_info {
    flex: 1;
    min-width: 400px;
    border-radius: 16px;
    box-shadow: 0 9px 20px rgba(31, 38, 135, 0.1);
    padding: 20px 50px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
    background: #ffffff;
}

/* 表单元素 */
.container-form h1 {
    text-align: center;
    color: #3974af;
    margin-bottom: 10px;
    font-size: 22px;
}

.subtitle {
    text-align: center;
    color: #546e7a;
    margin-bottom: 15px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #263238;
    font-weight: 500;
    font-size: 14px;
}

.required::before {
    content: "*";
    color: #f44336;
    margin-right: 4px;
}

/* 输入框 */
input[type=text],
input[type=tel],
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.75);
    box-sizing: border-box;
    color: #333333;
}

input::placeholder,
textarea::placeholder {
    color: #999999;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.18);
}

textarea {
    resize: vertical;
    min-height: 120px;
    max-height: 320px;
    line-height: 1.6;
}

/* 错误状态 */
.error-message {
    color: #f44336;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.03);
}

.form-group.error input:focus,
.form-group.error textarea:focus {
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.12);
}

.form-group.error .error-message {
    display: block;
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(to right, #2196f3, #1976d2);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

/* 提交中状态 */
.submit-btn:disabled {
    background: #95c5ff;
    cursor: not-allowed;
    opacity: 0.85;
    transform: none !important;
    box-shadow: none !important;
}

.submit-btn.loading {
    position: relative;
    color: transparent !important;
}

.submit-btn.loading::after {
    content: "提交中...";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

/* 防机器人隐藏字段 */
.website-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* 右侧联系信息 */
.Connect_info h3 {
    font-size: 22px;
    color: #3974af;
    margin-bottom: 24px;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

.Connect_info h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #3974af;
    border-radius: 3px;
}

.info_item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.info_item:last-child {
    border-bottom: none;
}

.info_item img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 2px;
}

.info_item span {
    transition: all 0.3s ease;
}

.info_item:hover span {
    color: #3974af;
}

/* 二维码区域 */
.qr_box {
    display: flex;
    justify-content: space-between;
    text-align: center;
    font-size: 14px;
    color: #666666;
    margin-top: 30px;
    gap: 20px;
}

.qr_box > div {
    flex: 1;
}

.qr_box img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #eeeeee;
    padding: 8px;
    background: #ffffff;
}

.qr_box img:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.qr_box p {
    margin-top: 10px;
    font-weight: 500;
}

/* 成功弹窗 */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal {
    background: rgba(255, 255, 255, 0.96);
    padding: 40px 32px;
    border-radius: 12px;
    text-align: center;
    width: 320px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal h2 {
    color: #388e3c;
    margin-bottom: 12px;
    font-size: 22px;
}

.modal p {
    color: #555555;
    font-size: 15px;
    line-height: 1.6;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999999;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: #333333;
}

/* ===== 响应式 ===== */

@media (max-width: 1200px) {

    .Connect {
        gap: 20px;
    }

    .Connect_form,
    .Connect_info {
        padding: 20px;
    }

}

@media (max-width: 900px) {

    .Connect {
        padding: 40px 10px;
        gap: 20px;
    }

}

@media (max-width: 800px) {

    .Connect {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    .Connect_form,
    .Connect_info {
        width: 100%;
        min-width: 200px;
    }

    .Connect_banner h2 {
        font-size: 36px;
    }

    .Connect_banner p {
        max-width: 90%;
    }

}

@media (max-width: 600px) {

    .Connect_banner {
        padding: 60px 20px;
    }

    .Connect_banner h2 {
        font-size: 28px;
    }

    .Connect_banner p {
        max-width: 95%;
        font-size: 14px;
    }

    .container-form h1 {
        font-size: 20px;
    }

    .Connect_info h3 {
        font-size: 20px;
    }

    .submit-btn {
        height: 50px;
        font-size: 15px;
    }

    input[type=text],
    input[type=tel],
    textarea {
        font-size: 16px;
    }

}