.contact-wrapper { padding: 8rem 24rem; display: flex; justify-content: space-between; } .contact-wrapper > div { width: 50%; } .contact-content { background: #f3f3f3; padding: 3rem 5rem; } .contact-content h3, .form-wrapper h3 { font-size: 1.8rem; letter-spacing: 0.2rem; } .contact-content .title-line, .form-wrapper .title-line { width: 4rem; height: 0.2rem; border-radius: 0.3rem; background: #FF7200; display: inline-block; margin-bottom: 5rem; margin-top: 1rem; } .contact-content p { font-size: 1.6rem; margin-bottom: 2rem; } .contact-content p span { font-size: 1.6rem; } .form-wrapper { padding: 3rem 5rem; background: #0147a6; } .form-wrapper h3 { color: #ffffff; } .form-wrapper .form { display: flex; flex-wrap: wrap; justify-content: space-between; } .form-wrapper .form > div { width: 46%; margin-bottom: 2rem; } .form-wrapper .form > div p { font-size: 1.4rem; margin-bottom: 0.8rem; color: #ffffff; } .form-wrapper .form > div p:before { content: "*"; color: #FF7200; margin-right: 0.5rem; } .form-wrapper .form > div input { width: 100%; height: 3.6rem; outline: none; border: #c1c1c1 1px solid; padding: 0 2rem; font-size: 1.4rem; border-radius: 0.4rem; } .form-wrapper .form > div input:hover, .message textarea:hover { border: #0147a6 1px solid; } .form-wrapper .form > div input:focus, .message textarea:focus { border: #0147a6 1px solid; } .message { width: 100% !important; } .message textarea { width: 100%; border: #c1c1c1 1px solid; outline: none; padding: 1rem 2rem; font-size: 1.4rem; resize: none; height: 8rem; border-radius: 0.4rem; } .form-wrapper button { width: 14rem; background: #FF7200; border: #0147a6 1px solid; outline: none; font-size: 1.4rem; height: 4rem; border-radius: 0.4rem; color: #ffffff; cursor: pointer; margin: 2rem 0 0 calc(100% - 14rem); display: block; } .map-wrapper { padding: 0 24rem; } #mapWrapper { padding: 0 24rem; height: 40rem; width: calc(100% - 48rem); border: #efefef 1px solid; margin: 0 auto 8rem auto; } /* 兼容不同分辨率样式 */ @media screen and (max-width: 1919px) and (min-width: 1680px) { .contact-wrapper { padding: 8rem 12rem; } #mapWrapper { padding: 0 12rem; width: calc(100% - 24rem) } } @media screen and (max-width: 1679px) and (min-width: 1600px) { .contact-wrapper { padding: 8rem 12rem; } #mapWrapper { padding: 0 12rem; width: calc(100% - 24rem) } } @media screen and (max-width: 1599px) and (min-width: 1440px) { .contact-wrapper { padding: 8rem 12rem; } #mapWrapper { padding: 0 12rem; width: calc(100% - 24rem) } } @media screen and (max-width: 1439px) and (min-width: 1280px) { .contact-content, .form-wrapper { padding: 3rem; } .contact-content h3, .form-wrapper h3 { font-size: 1.7rem; } .contact-content .title-line, .form-wrapper .title-line { width: 3.6rem; margin-top: 1.5rem; } .contact-content p, .contact-content p span { font-size: 1.5rem; } .form-wrapper .form > div p { font-size: 1.3rem; } .form-wrapper .form > div input { height: 3.4rem; font-size: 1.3rem; border-radius: 0.2rem; } .form-wrapper button { width: 12rem; font-size: 1.3rem; margin: 2rem 0 0 calc(100% - 12rem); height: 3.4rem; } .contact-wrapper { padding: 8rem; } #mapWrapper { padding: 0 8rem; width: calc(100% - 16rem) } }