/* 2) 留言板：外层居中 + 背景框（更像“表单卡片”） */
.contact-message-wrap{
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.contact-message{
    width: min(860px, 100%);
    background: linear-gradient(180deg, rgba(196,30,58,.06), rgba(0,0,0,0));
    border: 1px solid rgba(196,30,58,.12);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0,0,0,.08);
    padding: 28px;
    position: relative;
    overflow: hidden;
}

/* 背景装饰（柔和光斑） */
.contact-message::before{
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    right: -160px;
    top: -180px;
    background: radial-gradient(circle, rgba(196,30,58,.18), transparent 60%);
    filter: blur(2px);
    pointer-events: none;
}
.contact-message::after{
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    left: -180px;
    bottom: -200px;
    background: radial-gradient(circle, rgba(196,30,58,.10), transparent 60%);
    pointer-events: none;
}

.contact-message h2{
    font-size: 22px;
    margin: 0 0 10px;
    text-align: center;
}
.contact-message .desc{
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    margin: 0 0 20px;
}

/* 3) 表单：内部再加一个白色内框，层次更明显 */
.contact-form-shell{
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 10px 26px rgba(0,0,0,.06);
    padding: 20px;
    position: relative;
    z-index: 1; /* 压过背景装饰 */
}

/* 表单布局 */
.contact-form{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}

.contact-form .form-group{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-form .form-group.full{
    grid-column: 1 / -1;
}

.contact-form label{
    font-size: 13px;
    font-weight: 800;
    color: var(--text-dark);
}

/* 输入框更“高级感” */
.contact-form input,
.contact-form textarea{
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 14px;
    outline: none;
    background: rgba(0,0,0,.02);
    color: var(--text-dark);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.contact-form textarea{
    min-height: 130px;
    resize: vertical;
    line-height: 1.75;
}

.contact-form input:focus,
.contact-form textarea:focus{
    background: #fff;
    border-color: rgba(196,30,58,.45);
    box-shadow: 0 0 0 4px rgba(196,30,58,.12);
}

/* 验证码行 */
.captcha-row{
    display: grid;
    grid-template-columns: 1fr 128px;
    gap: 12px;
    align-items: center;
}

.captcha-img{
    width: 128px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.10);
    background: #fff;
    cursor: pointer;
    user-select: none;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0,0,0,.06);
    transition: transform .15s ease, box-shadow .15s ease;
}
.captcha-img:hover{
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(0,0,0,.09);
}

.captcha-hint{
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
}

/* 按钮区：居中 */
.contact-form .form-actions{
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.btn-submit{
    height: 46px;
    padding: 0 22px;
    border-radius: 14px;
    border: 1px solid rgba(196,30,58,.20);
    background: var(--primary-color);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(196,30,58,.20);
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn-submit:hover{
    transform: translateY(-1px);
    box-shadow: 0 20px 42px rgba(196,30,58,.24);
}
.btn-submit:disabled{
    opacity: .65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 提示 */
.form-toast{
    font-size: 13px;
    color: var(--text-light);
}
.form-toast.success{ color: #198754; }
.form-toast.error{ color: #dc3545; }

/* 响应式 */
@media (max-width: 768px){
    .contact-form{ grid-template-columns: 1fr; }
    .captcha-row{ grid-template-columns: 1fr 118px; }
    .captcha-img{ width: 118px; height: 44px; }
}