﻿.contact-page {
    width: 100%;
    padding: 60px 0 90px;
    background: #fff;
}

.contact-page-title {
    text-align: center;
    margin-bottom: 42px;
}

.contact-page-title h2 {
    margin: 0;
    font-size: 38px;
    line-height: 48px;
    color: #111;
    font-weight: bold;
}

.contact-page-title p {
    margin: 8px 0 0;
    font-size: 15px;
    line-height: 24px;
    color: #999;
    text-transform: uppercase;
}

.contact-block-title {
    margin-bottom: 24px;
}

.contact-block-title h3 {
    margin: 0;
    font-size: 30px;
    line-height: 40px;
    color: #111;
    font-weight: bold;
}

.contact-block-title p {
    margin: 8px 0 0;
    font-size: 15px;
    line-height: 26px;
    color: #666;
}

/* 顶部联系方式 */
.contact-top {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    margin-bottom: 40px;
}

.contact-top-left,
.contact-top-right,
.contact-form-wrap {
    background: #f7f9ff;
    border: 1px solid #e8ecf7;
    border-radius: 18px;
    box-sizing: border-box;
}

.contact-top-left {
    padding: 36px 34px;
}

.contact-top-right {
    padding: 30px 28px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 110px;
    padding: 24px 22px;
    background: #fff;
    border: 1px solid #e8ecf7;
    border-radius: 14px;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

.contact-info-item:hover {
    border-color: rgba(0, 0, 254, 0.18);
    box-shadow: 0 14px 34px rgba(0, 0, 254, 0.10);
    transform: translateY(-4px);
}

.contact-info-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #0000fe;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon i {
    color: #fff;
    font-size: 22px;
}

.contact-info-text h4 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 30px;
    color: #111;
    font-weight: bold;
}

.contact-info-text p {
    margin: 0;
    font-size: 15px;
    line-height: 24px;
    color: #666;
}

/* 微信二维码 */
.contact-qrcode-box {
    text-align: center;
}

.contact-qrcode-img {
    width: 210px;
    height: 210px;
    margin: 0 auto;
    padding: 10px;
    background: #fff;
    border: 1px solid #e8ecf7;
    border-radius: 14px;
    box-sizing: border-box;
}

.contact-qrcode-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-qrcode-text {
    margin-top: 16px;
}

.contact-qrcode-text span {
    display: inline-block;
    padding: 7px 18px;
    background: rgba(0, 0, 254, 0.06);
    color: #0000fe;
    font-size: 14px;
    line-height: 24px;
    border-radius: 20px;
}

/* 留言区域 */
.contact-form-wrap {
    padding: 38px 40px 42px;
    margin-bottom: 50px;
}

.contact-form-row {
    display: flex;
    gap: 22px;
    margin-bottom: 20px;
}

.contact-form-item {
    width: 50%;
}

.contact-form-item.width-full {
    width: 100%;
}

.contact-form-item label {
    display: block;
    margin-bottom: 9px;
    font-size: 15px;
    line-height: 24px;
    color: #222;
    font-weight: bold;
}

.contact-form-item label em {
    color: #0000fe;
    font-style: normal;
}

.contact-form-item input,
.contact-form-item textarea {
    display: block;
    width: 100%;
    border: 1px solid #dfe5f2;
    background: #fff;
    border-radius: 10px;
    padding: 0 16px;
    color: #333;
    font-size: 15px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.25s ease;
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}

.contact-form-item input {
    height: 50px;
    line-height: 50px;
}

.contact-form-item textarea {
    height: 170px;
    line-height: 26px;
    padding-top: 13px;
    resize: none;
}

.contact-form-item input:focus,
.contact-form-item textarea:focus {
    border-color: #0000fe;
    box-shadow: 0 0 0 4px rgba(0, 0, 254, 0.08);
}

.contact-form-item.has-error input,
.contact-form-item.has-error textarea {
    border-color: #ff4d4f;
    background: #fffafa;
}

.form-error {
    display: none;
    margin-top: 6px;
    font-size: 13px;
    line-height: 20px;
    color: #ff4d4f;
}

.contact-form-item.has-error .form-error {
    display: block;
}

.contact-submit-btn {
    position: relative;
    width: 180px;
    height: 50px;
    border: none;
    border-radius: 25px;
    background: #0000fe;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 10px 22px rgba(0, 0, 254, 0.22);
}

.contact-submit-btn:hover {
    background: #1717ff;
    transform: translateY(-2px);
}

.contact-submit-btn.is-loading {
    pointer-events: none;
    opacity: 0.86;
}

.contact-submit-btn .btn-loading {
    display: none;
    width: 18px;
    height: 18px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    vertical-align: middle;
    animation: contactLoading 0.8s linear infinite;
}

.contact-submit-btn.is-loading .btn-loading {
    display: inline-block;
}

@keyframes contactLoading {
    to {
        transform: rotate(360deg);
    }
}

/* 地图 */
.contact-map-box {
    width: 100%;
}

.contact-map {
    width: 100%;
    height: 430px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e8ecf7;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.06);
}

/* 提示弹窗 */
.contact-toast {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10000;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(8, 12, 32, 0.42);
}

.contact-toast.show {
    display: flex;
}

.contact-toast-box {
    width: 420px;
    min-height: 260px;
    padding: 42px 42px 36px;
    background: #fff;
    border-radius: 22px;
    text-align: center;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
    animation: contactToastIn 0.28s ease;
    box-sizing: border-box;
}

@keyframes contactToastIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.contact-toast-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    line-height: 72px;
    border-radius: 50%;
    background: #0000fe;
    color: #fff;
    font-size: 30px;
}

.contact-toast-icon.error {
    background: #ff4d4f;
}

.contact-toast-title {
    margin: 0;
    font-size: 26px;
    line-height: 36px;
    color: #111;
    font-weight: bold;
}

.contact-toast-desc {
    margin: 12px 0 0;
    font-size: 15px;
    line-height: 28px;
    color: #666;
}

.contact-toast-btn {
    display: inline-block;
    margin-top: 26px;
    width: 140px;
    height: 42px;
    border: none;
    border-radius: 22px;
    background: #0000fe;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.contact-toast-btn:hover {
    background: #1717ff;
    transform: translateY(-2px);
}