/* ==============================
   联系我们页面
================================= */

.contact-page {
    width: 100%;
    padding: 70px 0 0;
    background: #fff;
}

.contact-main {
    display: grid;
    grid-template-columns: 48% 52%;
    gap: 50px;
    align-items: stretch;
    margin-bottom: 70px;
}

/* 左侧标题 */
.contact-title {
    margin-bottom: 34px;
}

.contact-title h1 {
    margin: 0;
    color: #111;
    font-size: 36px;
    line-height: 46px;
    font-weight: bold;
}

.contact-title span {
    display: block;
    width: 60px;
    height: 10px;
    margin-top: 12px;
    background: #026ABD;
}

.contact-title p {
    margin: 22px 0 0;
    color: #666;
    font-size: 16px;
    line-height: 30px;
}


/* ==============================
   左侧后台编辑内容
================================= */

.contact-editor-box {
    padding: 30px 32px;
    box-sizing: border-box;
    background: #f7f7f7;
    color: #555;
    font-size: 15px;
    line-height: 28px;
}

.contact-editor-box h1,
.contact-editor-box h2,
.contact-editor-box h3,
.contact-editor-box h4,
.contact-editor-box h5,
.contact-editor-box h6 {
    margin: 0 0 16px;
    color: #111;
    font-weight: bold;
}

.contact-editor-box h1 {
    font-size: 30px;
    line-height: 40px;
}

.contact-editor-box h2 {
    font-size: 26px;
    line-height: 36px;
}

.contact-editor-box h3 {
    font-size: 20px;
    line-height: 30px;
}

.contact-editor-box h4 {
    font-size: 18px;
    line-height: 28px;
}

.contact-editor-box p {
    margin: 0 0 14px;
    color: #555;
    font-size: 15px;
    line-height: 28px;
}

.contact-editor-box ul,
.contact-editor-box ol {
    margin: 0 0 18px 22px;
    padding: 0;
}

.contact-editor-box li {
    margin-bottom: 8px;
    color: #555;
    font-size: 15px;
    line-height: 28px;
}

.contact-editor-box strong,
.contact-editor-box b {
    color: #111;
    font-weight: bold;
}

.contact-editor-box a {
    color: #026ABD;
    text-decoration: none;
}

.contact-editor-box a:hover {
    color: #01569a;
    text-decoration: underline;
}

.contact-editor-box img {
    display: inline-block;
    max-width: 100%;
    height: auto;
}

.contact-editor-box iframe {
    max-width: 100%;
}

.contact-editor-box blockquote {
    margin: 20px 0;
    padding: 18px 22px;
    border-left: 4px solid #026ABD;
    background: #fff;
    color: #555;
    font-size: 15px;
    line-height: 28px;
}

.contact-editor-box table {
    width: 100%;
    margin: 18px 0;
    border-collapse: collapse;
    background: #fff;
}

.contact-editor-box table th,
.contact-editor-box table td {
    padding: 12px 14px;
    border: 1px solid #e5e5e5;
    color: #555;
    font-size: 14px;
    line-height: 24px;
    text-align: left;
}

.contact-editor-box table th {
    background: #026ABD;
    color: #fff;
    font-weight: bold;
}

.contact-editor-box table td p {
    margin-bottom: 0;
}


/* ==============================
   留言表单
================================= */

.contact-form-box {
    padding: 44px 46px;
    box-sizing: border-box;
    background: #013f73;
}

.contact-form-head {
    margin-bottom: 28px;
}

.contact-form-head h2 {
    margin: 0;
    color: #fff;
    font-size: 30px;
    line-height: 40px;
    font-weight: bold;
}

.contact-form-head p {
    margin: 10px 0 0;
    color: rgba(255,255,255,.78);
    font-size: 15px;
    line-height: 26px;
}

.contact-form-row {
    position: relative;
    margin-bottom: 18px;
}

.contact-form-row i {
    position: absolute;
    left: 18px;
    top: 50%;
    color: #026ABD;
    font-size: 17px;
    transform: translateY(-50%);
    z-index: 2;
}

.contact-form-row input,
.contact-form-row textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,.2);
    outline: none;
    background: rgba(255,255,255,.1);
    color: #fff;
    font-size: 15px;
    transition: all .25s ease;
}

.contact-form-row input {
    height: 52px;
    padding: 0 18px 0 48px;
    line-height: 52px;
}

.contact-form-row textarea {
    height: 150px;
    padding: 16px 18px 16px 48px;
    line-height: 26px;
    resize: none;
}

.contact-form-textarea i {
    top: 20px;
    transform: none;
}

.contact-form-row input::placeholder,
.contact-form-row textarea::placeholder {
    color: rgba(255,255,255,.66);
}

.contact-form-row input:focus,
.contact-form-row textarea:focus {
    border-color: #4da3e6;
    background: rgba(255,255,255,.14);
}

.contact-form-row.error input,
.contact-form-row.error textarea {
    border-color: #ff4d4f;
}

.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 48px;
    margin-top: 6px;
    padding: 0;
    border: none;
    outline: none;
    background: #026ABD;
    color: #fff;
    font-size: 15px;
    line-height: 48px;
    cursor: pointer;
    transition: all .25s ease;
}

.contact-submit-btn i {
    margin-left: 10px;
}

.contact-submit-btn:hover {
    background: #01569a;
    transform: translateY(-2px);
}


/* ==============================
   地图
================================= */

.contact-map {
    width: 100%;
    height: 420px;
    overflow: hidden;
    background: #f5f5f5;
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
}


/* ==============================
   表单 Loading / Message
================================= */

.contact-form-mask {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,.45);
    opacity: 0;
    visibility: hidden;
    transition: all .25s ease;
}

.contact-form-mask.active {
    opacity: 1;
    visibility: visible;
}

.contact-form-loading,
.contact-form-message {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 10001;
    width: calc(100% - 48px);
    max-width: 380px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 22px 70px rgba(0,0,0,.24);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -46%) scale(.96);
    transition: all .25s ease;
}

.contact-form-loading.active,
.contact-form-message.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.contact-form-loading {
    padding: 36px 28px;
}

.contact-loading-icon {
    margin-bottom: 16px;
    color: #026ABD;
    font-size: 34px;
}

.contact-form-loading p {
    margin: 0;
    color: #333;
    font-size: 15px;
    line-height: 24px;
}

.contact-form-message {
    padding: 38px 30px 32px;
}

.contact-message-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #026ABD;
    color: #fff;
    font-size: 28px;
}

.contact-form-message.error .contact-message-icon {
    background: #ff4d4f;
}

.contact-form-message h3 {
    margin: 0 0 10px;
    color: #111;
    font-size: 22px;
    line-height: 30px;
    font-weight: bold;
}

.contact-form-message p {
    margin: 0;
    color: #666;
    font-size: 15px;
    line-height: 26px;
}

.contact-form-message button {
    width: 120px;
    height: 42px;
    margin-top: 24px;
    border: none;
    border-radius: 22px;
    background: #026ABD;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.contact-form-message button:hover {
    background: #01569a;
}

.contact-form-message.error button {
    background: #ff4d4f;
}