/* 联系我们弹窗样式 */ .contact-modal  {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    font-family: var(--font-family);

}
.contact-modal.active  {
    display: block;

}
.modal-overlay  {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);

}
.modal-container  {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(900 * 100vw / 1920);
    height: calc(650 * 100vw / 1920);
    background-image: url('/images/tt.jpg');
    background-size: cover;
    background-position: center;
    border-radius: calc(12 * 100vw / 1920);
    overflow: hidden;

}
.close-modal  {
    position: absolute;
    top: calc(40 * 100vw / 1920);
    right: calc(40 * 100vw / 1920);
    background: none;
    border: none;
    font-size: calc(30 * 100vw / 1920);
    color: #5C5D95;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    padding: 0;
    width: calc(30 * 100vw / 1920);
    height: calc(30 * 100vw / 1920);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;

}
.close-modal:hover  {
    color: #4179EB;

}
.modal-header  {
    position: relative;

}
.header-dot  {
    position: absolute;
    left: calc(77 * 100vw / 1920);
    top: calc(77.99 * 100vw / 1920);
    width: calc(9 * 100vw / 1920);
    height: calc(8.99 * 100vw / 1920);
    opacity: 1;
    background: #5489EE;
    border-radius: 50%;

}
.header-subtitle  {
    position: absolute;
    left: calc(101 * 100vw / 1920);
    top: calc(72 * 100vw / 1920);
    font-size: calc(16 * 100vw / 1920);
    font-weight: bold;
    line-height: calc(18 * 100vw / 1920);
    text-transform: uppercase;
    letter-spacing: 0em;
    color: #5C5D95;

}
.header-title  {
    position: absolute;
    left: calc(100 * 100vw / 1920);
    top: calc(100.96 * 100vw / 1920);
    font-size: calc(30 * 100vw / 1920);
    font-weight: bold;
    line-height: 125%;
    letter-spacing: 0em;
    background: linear-gradient(90deg, #A9CEF9 0%, #4179EB 71%, #7B86E1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;

}
.modal-body  {
    position: relative;

}
.contact-form  {
    position: relative;

}
.form-row  {
    display: flex;
    gap: calc(48 * 100vw / 1920);

}
.form-group  {
    position: relative;
    display: flex;
    align-items: center;

}
.form-group label  {
    font-size: calc(16 * 100vw / 1920);
    color: #2F2F2F;
    opacity: 0.5;
    margin-right: calc(10 * 100vw / 1920);
    white-space: nowrap;

}
.form-group input,
.form-group textarea  {
    background: transparent;
    border: none;
    outline: none;
    font-size: calc(16 * 100vw / 1920);
    font-weight: bold;
    color: #2F2F2F;
    width: calc(240 * 100vw / 1920);
    padding: calc(0 * 100vw / 1920) 0;
    background: linear-gradient(103deg, #7885E1 49%, #4B92E8 118%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: #4B92E8;
    background-clip: text;

}

.form-group.full-width input,
.form-group.full-width textarea  {
    width: calc(728 * 100vw / 1920);

}
/* 必填项红色*号样式 - PC版，放在文字左侧 - 增强Edge兼容性 */
.required-mark  {
    color: #FF4D4F !important;
    font-weight: bold !important;
    font-size: 16px !important; /* 使用固定像素值确保兼容性 */
    margin-right: 4px !important;
    display: inline-block !important;
    position: relative !important;
    /* 增强Edge兼容性的样式 */
    line-height: 1 !important;
    vertical-align: baseline !important;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
    /* 确保星号字符正确显示 */
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    /* 防止被其他样式覆盖 */
    opacity: 1 !important;
    visibility: visible !important;
    /* 确保在所有浏览器中都能显示 */
    width: auto !important;
    height: auto !important;
    min-width: 8px !important;
    min-height: 16px !important;
    z-index: 10 !important;
}

/* 针对不同浏览器的特殊处理 */
/* Edge浏览器 */
@supports (-ms-ime-align: auto) {
    .required-mark {
        font-size: 16px !important;
        margin-right: 4px !important;
        display: inline-block !important;
    }
}

/* 旧版Edge和IE */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .required-mark {
        font-size: 16px !important;
        margin-right: 4px !important;
        display: inline-block !important;
    }
}
/* 电话字段的红色*标记样式 */
.input-with-mark  {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.input-with-mark label  {
    display: inline;
}
.form-row .form-group:first-child input  {
    position: absolute;
    left: calc(210 * 100vw / 1920);
    top: calc(181 * 100vw / 1920);
    height: calc(50 * 100vw / 1920);
    width: calc(225 * 100vw / 1920);

}
.form-row .form-group:first-child label  {
    position: absolute;
    left: calc(96 * 100vw / 1920);
    top: calc(195 * 100vw / 1920);

}
.form-row .form-group:first-child .form-line  {
    position: absolute;
    left: calc(96 * 100vw / 1920);
    top: calc(235 * 100vw / 1920);
    width: calc(340 * 100vw / 1920);
    height: 0px;
    opacity: 1;
    border-top: 1px solid #D8D8D8;

}
.form-row .form-group:last-child input  {
    position: absolute;
    left: calc(550 * 100vw / 1920);
    height: calc(50 * 100vw / 1920);
    top: calc(181 * 100vw / 1920);
    width: calc(225 * 100vw / 1920);

}
.form-row .form-group:last-child label  {
    position: absolute;
    left: calc(434 * 100vw / 1920);
    top: calc(195 * 100vw / 1920);

}
.form-row .form-group:last-child .form-line  {
    position: absolute;
    left: calc(434 * 100vw / 1920);
    top: calc(235 * 100vw / 1920);
    width: calc(340 * 100vw / 1920);
    height: 0px;
    opacity: 1;
    border-top: 1px solid #D8D8D8;

}
.form-group.full-width:nth-of-type(2) input  {
    position: absolute;
    left: calc(320 * 100vw / 1920);
    top: calc(262 * 100vw / 1920);
    width: calc(500 * 100vw / 1920);
    height: calc(50 * 100vw / 1920);

}
.form-group.full-width:nth-of-type(2) label  {
    position: absolute;
    left: calc(96 * 100vw / 1920);
    top: calc(275 * 100vw / 1920);

}
.form-group.full-width:nth-of-type(2) .form-line  {
    position: absolute;
    left: calc(96 * 100vw / 1920);
    top: calc(315 * 100vw / 1920);
    width: calc(728 * 100vw / 1920);
    height: 0px;
    opacity: 1;
    border-top: 1px solid #D8D8D8;

}
.form-group.full-width:nth-of-type(3)  {
    position: relative;
    z-index: 2;
    margin-bottom: calc(30 * 100vw / 1920);

}
.form-group.full-width:nth-of-type(3) label  {
    position: absolute;
    left: calc(96 * 100vw / 1920);
    top: calc(355 * 100vw / 1920);
    font-size: calc(16 * 100vw / 1920);
    color: #2F2F2F;
    opacity: 0.5;
    z-index: 1;

}
.form-group.full-width:nth-of-type(3) textarea  {
    position: absolute;
    left: calc(96 * 100vw / 1920);
    top: calc(395 * 100vw / 1920);
    resize: none;
    min-height: calc(30 * 100vw / 1920);
    height: calc(30 * 100vw / 1920);
    width: calc(728 * 100vw / 1920);
    z-index: 2;
    opacity: 1;
    pointer-events: auto;
    padding-bottom: calc(5 * 100vw / 1920);
    border-bottom: none;
    transition: border-bottom-color 0.3s ease;

}
.form-group.full-width:nth-of-type(3) textarea:focus  {
    border-bottom: none;

}
/* 修改横线样式，使其能动态跟随文本域高度 */ .form-group.full-width:nth-of-type(3) .form-line  {
    position: absolute;
    left: calc(96 * 100vw / 1920);
    top: calc(425 * 100vw / 1920);
    width: calc(728 * 100vw / 1920);
    height: 0px;
    opacity: 1;
    border-top: 1px solid #D8D8D8;
    transition: top 0.2s ease;

}
/* 添加聚焦时的横线样式 */ .form-group.full-width:nth-of-type(3) textarea:focus ~ .form-line  {
    border-top: 1px solid #4B92E8;

}
/* 字数限制提示样式 */ .char-counter  {
    position: absolute;
    right: calc(96 * 100vw / 1920);
    top: auto;
    bottom: calc(-20 * 100vw / 1920);
    font-size: calc(12 * 100vw / 1920);
    color: #8c8c8c;
    transition: all 0.2s ease;

}
.char-counter.limit-near  {
    color: #ff9800;

}
.char-counter.limit-reached  {
    color: #f44336;

}
.form-actions  {
    position: relative;

}
.btn-cancel  {
    position: absolute;
    left: calc(96 * 100vw / 1920);
    top: calc(500 * 100vw / 1920);
    width: calc(340 * 100vw / 1920);
    height: calc(62 * 100vw / 1920);
    border-radius: calc(37.99 * 100vw / 1920);
    opacity: 1;
    box-sizing: border-box;
    border: 1px solid #5C5D95;
    background: transparent;
    font-size: calc(16 * 100vw / 1920);
    font-weight: normal;
    color: #5C5D95;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

}
.btn-cancel:hover  {
    background-color: rgba(92, 93, 149, 0.1);

}
.btn-submit  {
    position: absolute;
    left: calc(484 * 100vw / 1920);
    top: calc(500 * 100vw / 1920);
    width: calc(340 * 100vw / 1920);
    height: calc(62 * 100vw / 1920);
    border-radius: calc(37.99 * 100vw / 1920);
    opacity: 1;
    background: linear-gradient(105deg, #7885E1 49%, #4B92E8 118%);
    border: none;
    color: white;
    font-size: calc(16 * 100vw / 1920);
    font-weight: normal;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;

}
.btn-submit:hover  {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(75, 146, 232, 0.25);

}
.submit-arrow  {
    width: calc(20 * 100vw / 1920);
    height: calc(20 * 100vw / 1920);
    margin-left: calc(8 * 100vw / 1920);

}
/* 表单消息样式 */ .form-message  {
    position: absolute;
    top: calc(521 * 100vw / 1920);
    left: calc(96 * 100vw / 1920);
    width: calc(728 * 100vw / 1920);
    padding: calc(10 * 100vw / 1920);
    border-radius: calc(6 * 100vw / 1920);
    font-size: calc(14 * 100vw / 1920);
    z-index: 10;

}
.form-message.success  {
    background-color: rgba(103, 194, 58, 0.1);
    color: #67c23a;
    border: 1px solid rgba(103, 194, 58, 0.2);

}
.form-message.error  {
    background-color: rgba(245, 108, 108, 0.1);
    color: #f56c6c;
    border: 1px solid rgba(245, 108, 108, 0.2);

}
/* 字段提示文字样式 */
.field-hint  {
    position: absolute;
    color: #FF4D4F;
    font-size: calc(14 * 100vw / 1920);
    white-space: nowrap;
    left: 0;
    bottom: calc(-20 * 100vw / 1920);
    opacity: 1;
    transition: opacity 0.3s ease;

}
/* 字段错误提示样式 */ .field-error  {
    position: absolute;
    color: #FF4D4F;
    font-size: calc(14 * 100vw / 1920);
    white-space: nowrap;
    left: 0;
    bottom: calc(-20 * 100vw / 1920);

}
/* 电话字段提示文字位置 */
.form-row .form-group:last-child .field-hint  {
    left: calc(434 * 100vw / 1920);
    top: calc(240 * 100vw / 1920);
    bottom: auto;

}
/* 需求概述字段提示文字位置 */
.form-group.full-width:nth-of-type(3) .field-hint  {
    left: calc(96 * 100vw / 1920);
    top: calc(439 * 100vw / 1920);
    bottom: auto;

}
.form-row .form-group:first-child .field-error  {
    left: calc(96 * 100vw / 1920);
    top: calc(240 * 100vw / 1920);

}
.form-row .form-group:last-child .field-error  {
    left: calc(544 * 100vw / 1920);
    top: calc(240 * 100vw / 1920);

}
.form-group.full-width:nth-of-type(2) .field-error  {
    left: calc(96 * 100vw / 1920);
    top: calc(320 * 100vw / 1920);

}
.form-group.full-width:nth-of-type(3) .field-error  {
    left: calc(96 * 100vw / 1920);
    top: calc(439 * 100vw / 1920);
    bottom: calc(-25 * 100vw / 1920);
    position: absolute;

}
/* 成功消息样式 */ .success-message  {
    position: absolute;
    top: calc(475 * 100vw / 1920);
    left: calc(96 * 100vw / 1920);
    width: calc(728 * 100vw / 1920);
    padding: calc(10 * 100vw / 1920);
    border-radius: calc(6 * 100vw / 1920);
    font-size: calc(16 * 100vw / 1920);
    /* background-color: rgba(103, 194, 58, 0.1);
    */ color: #488628;
    /* border: 1px solid rgba(103, 194, 58, 0.2);
    */ text-align: center;
    z-index: 10;

}
/* 错误消息样式 */ .success-message.error-message  {
    color: #FF4D4F;
    /* background-color: rgba(255, 77, 79, 0.1);
    */ /* border: 1px solid rgba(255, 77, 79, 0.2);
    */
}
/* 修复浏览器自动填充的输入框文字颜色 */ .form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group textarea:-webkit-autofill,
.form-group textarea:-webkit-autofill:hover,
.form-group textarea:-webkit-autofill:focus  {
    /* 覆盖浏览器默认的自动填充背景色 */ -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    box-shadow: 0 0 0 1000px transparent inset !important;
    /* 确保文字颜色在自动填充时仍然有效 */ -webkit-text-fill-color: #4B92E8 !important;
    color: #4B92E8 !important;
    transition: background-color 5000s ease-in-out 0s;

}
/* 确保Firefox和其他浏览器中自动填充的输入框文字颜色一致 */ .form-group input:autofill,
.form-group textarea:autofill  {
    -webkit-text-fill-color: #4B92E8 !important;
    color: #4B92E8 !important;

}
/* 响应式调整 */ @media (max-width: 960px)   {

    .modal-container  {
        width: 90%;
        height: auto;
        max-height: 90vh;
        padding: calc(30 * 100vw / 1920);
        overflow-y: auto;

    }
    .field-hint,
    .field-error,
    .success-message,
    .form-row .form-group:first-child .field-error,
    .form-row .form-group:last-child .field-error,
    .form-group.full-width:nth-of-type(2) .field-error,
    .form-group.full-width:nth-of-type(3) .field-error,
    .form-row .form-group:last-child .field-hint,
    .form-group.full-width:nth-of-type(3) .field-hint,
    .header-dot,
    .header-subtitle,
    .header-title,
    .form-row .form-group:first-child input,
    .form-row .form-group:first-child .form-line,
    .form-row .form-group:last-child input,
    .form-row .form-group:last-child .form-line,
    .form-group.full-width:nth-of-type(2) input,
    .form-group.full-width:nth-of-type(2) .form-line,
    .form-group.full-width:nth-of-type(3) label,
    .form-group.full-width:nth-of-type(3) textarea,
    .form-group.full-width:nth-of-type(3) .form-line,
    .btn-cancel,
    .btn-submit  {
        position: relative;
        left: auto;
        top: auto;
        white-space: normal;
        width: 100%;
        margin-top: calc(5 * 100vw / 1920);

    }
    .header-dot  {
        margin-right: calc(10 * 100vw / 1920);
        display: inline-block;
        vertical-align: middle;

    }
    .header-subtitle  {
        display: inline-block;
        vertical-align: middle;
        margin-bottom: calc(10 * 100vw / 1920);

    }
    .header-title  {
        margin-bottom: calc(30 * 100vw / 1920);

    }
    .form-row  {
        margin-bottom: calc(30 * 100vw / 1920);
        flex-direction: column;

    }
    .form-group  {
        margin-bottom: calc(20 * 100vw / 1920);

    }
    .form-actions  {
        display: flex;
        justify-content: space-between;
        margin-top: calc(30 * 100vw / 1920);

    }
    .btn-cancel,
    .btn-submit  {
        position: relative;
        width: 48%;

    }
    /* 移动端红色*样式 */
    .input-with-mark  {
        display: flex;
        align-items: center;
    }
    .input-with-mark .required-mark  {
        position: relative;
        left: auto;
        top: auto;
        margin-right: calc(10 * 100vw / 750);
        margin-left: 0;
        order: -1;
    }

}
@media (max-width: 480px)   {

    .form-actions  {
        flex-direction: column;
        gap: calc(16 * 100vw / 1920);

    }
    .btn-cancel,
    .btn-submit  {
        width: 100%;

    }

}
.form-group input:focus ~ .form-line,
.form-group textarea:focus ~ .form-line  {
    border-top-color: #4B92E8;

}
/* 确保通用样式中线条变化正确 */ .form-group.full-width:nth-of-type(3) textarea:focus ~ .form-line,
.form-row .form-group:first-child input:focus ~ .form-line,
.form-row .form-group:last-child input:focus ~ .form-line,
.form-group.full-width:nth-of-type(2) input:focus ~ .form-line  {
    border-top-color: #4B92E8;

}
