/* ==========================================================================
   联系我们页面（/page/5）
   设计稿：Figma 54:894 / 1920 宽，内容区 1200
   ========================================================================== */

.mmc-page {
    background: #F8F9FB;
    padding-bottom: 120px;
}

.mmc-wrap {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

/* ------------------------------ 头图 ------------------------------------ */
.mmc-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: #45444D;
}

.mmc-hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 29.6%;
    background-position: center 85%;
    background-size: cover;
    background-repeat: no-repeat;
}

.mmc-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        #45444D 0%,
        #45444D 39.44%,
        rgba(71, 54, 39, 0) 105.74%);
}

.mmc-hero-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    padding-top: 44px;
    display: flex;
    align-items: center;
}

.mmc-hero-text {
    position: relative;
    padding-left: 130px;
}

.mmc-eyebrow {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
    letter-spacing: .04em;
    color: #FFB03D;
}

.mmc-eyebrow::before {
    content: '';
    width: 34px;
    height: 1px;
    background: #FFB03D;
}

.mmc-hero-title {
    margin: 0;
    font-size: 58px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 2.9px;
    color: #fff;
}

.mmc-hero-sub {
    margin: 13px 0 0;
    font-size: 22px;
    font-weight: 500;
    line-height: 33px;
    color: rgba(255, 255, 255, .92);
}

.mmc-hero-phone {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 55px;
    margin-top: 36px;
    padding: 0 32px;
    border-radius: 28px;
    background: #fff;
    color: #39414D;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.mmc-hero-phone svg,
.mmc-hero-phone i {
    width: 18px;
    height: 18px;
    font-size: 18px;
    fill: currentColor;
    flex: 0 0 auto;
}

/* ---------------------------- 区块标题 ---------------------------------- */
.mmc-sec {
    padding-top: 116px;
}

.mmc-hero + .mmc-sec {
    padding-top: 138px;
}

.mmc-sec-head {
    text-align: center;
    margin-bottom: 53px;
}

.mmc-sec-head span {
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
    letter-spacing: .08em;
    color: #999;
    text-transform: uppercase;
}

.mmc-sec-head h2 {
    margin: 4px 0 0;
    font-size: 30px;
    font-weight: 500;
    line-height: 45px;
    color: #333;
}

/* ------------------------------ 地图 ------------------------------------ */
.mmc-map-wrap {
    position: relative;
}

.mmc-map {
    position: relative;
    height: 587px;
    border-radius: 12px;
    overflow: hidden;
    background: #EDF2F8;
    box-shadow: 0 8px 30px rgba(16, 24, 40, .06);
}

.mmc-map-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.mmc-map-fallback {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 高德默认控件做轻量化处理 */
.mmc-map .amap-logo,
.mmc-map .amap-copyright {
    opacity: .55;
}

.mmc-map-card {
    position: absolute;
    left: 29px;
    top: 75px;
    z-index: 5;
    width: 389px;
    box-sizing: border-box;
    padding: 66px 29px 65px;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(16, 24, 40, .16);
}

.mmc-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 30px;
    padding: 0 14px;
    border-radius: 15px;
    background: #EAF2FF;
    color: #1A7AFF;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

.mmc-tag i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1A7AFF;
}

.mmc-map-name {
    margin-top: 7px;
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
    color: #12151A;
}

.mmc-map-label {
    margin-top: 9px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 18px;
    color: #9AA6B8;
}

.mmc-map-addr {
    margin-top: 7px;
    font-size: 16px;
    font-weight: 500;
    line-height: 25px;
    color: #1E293B;
}

.mmc-map-divider {
    height: 1px;
    margin: 25px 0 31px;
    background: #EDF1F6;
}

.mmc-map-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 13px;
    font-size: 13.5px;
    line-height: 21px;
}

.mmc-map-row:first-of-type {
    margin-top: 0;
}

.mmc-map-row svg,
.mmc-map-row i {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    fill: #9AA6B8;
    color: #9AA6B8;
    font-size: 15px;
    text-align: center;
}

.mmc-map-row dt {
    width: 66px;
    margin: 0;
    color: #7C8698;
    font-weight: 400;
}

.mmc-map-row dd {
    margin: 0;
    color: #1E293B;
    font-weight: 500;
    word-break: break-all;
}

.mmc-map-row dd a {
    color: #1E293B;
}

.mmc-map-row dd a:hover {
    color: #1A7AFF;
}

.mmc-map-actions {
    display: flex;
    gap: 14px;
    margin-top: 25px;
}

.mmc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.mmc-btn svg,
.mmc-btn i {
    width: 14px;
    height: 14px;
    font-size: 14px;
    fill: currentColor;
    flex: 0 0 auto;
}

.mmc-btn-primary {
    background: #1A7AFF;
    color: #fff;
}

.mmc-btn-primary:hover,
.mmc-btn-primary:focus {
    background: #0F69E6;
    color: #fff;
    text-decoration: none;
}

.mmc-btn-ghost {
    background: #fff;
    border: 1px solid #E3E9F2;
    color: #39414D;
}

.mmc-btn-ghost:hover,
.mmc-btn-ghost:focus {
    border-color: #1A7AFF;
    color: #1A7AFF;
    text-decoration: none;
}

.mmc-btn.is-copied {
    border-color: #3BA54A;
    color: #3BA54A;
}

/* ---------------------------- 合作与支持 -------------------------------- */
.mmc-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.mmc-card {
    padding: 22px 20px 18px;
    border-top: 4px solid transparent;
    border-radius: 0;
    background: #fff;
    text-align: center;
}

.mmc-cards .mmc-card:nth-child(1) {
    border-top-color: #4585F4;
}

.mmc-cards .mmc-card:nth-child(2) {
    border-top-color: #3BA54A;
}

.mmc-cards .mmc-card:nth-child(3) {
    border-top-color: #F9BB00;
}

.mmc-cards .mmc-card:nth-child(4) {
    border-top-color: #E84736;
}

.mmc-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 75px;
    margin: 0 auto;
    border-radius: 18px;
}

.mmc-card-icon svg,
.mmc-card-icon i {
    width: 34px;
    height: 34px;
    font-size: 34px;
    line-height: 1;
    fill: currentColor;
}

.mmc-card-icon.is-blue {
    background: #ECF2FC;
    color: #4585F4;
}

.mmc-card-icon.is-green {
    background: #EBF5EC;
    color: #3BA54A;
}

.mmc-card-icon.is-amber {
    background: #FEF8E5;
    color: #F9BB00;
}

.mmc-card-icon.is-red {
    background: #FCECEA;
    color: #E84736;
}

.mmc-card h3 {
    margin: 19px 0 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
    color: #333;
}

.mmc-card p {
    margin: 6px 0 0;
    font-size: 16px;
    line-height: 24px;
    color: #999;
}

.mmc-card p a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #999;
    text-decoration: none;
    word-break: normal;
    white-space: nowrap;
}

.mmc-card p a:hover {
    color: #1A7AFF;
}

.mmc-card p svg,
.mmc-card p i {
    width: 16px;
    height: 16px;
    font-size: 15px;
    flex: 0 0 auto;
    fill: currentColor;
}

/* ------------------------------ 留言 ------------------------------------ */
.mmc-formcard {
    display: flex;
    align-items: stretch;
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 34px rgba(16, 24, 40, .06);
}

.mmc-formcard-aside {
    flex: 0 0 400px;
    width: 400px;
    box-sizing: border-box;
    padding: 52px 42px;
    background: linear-gradient(160deg, #2C87FF 0%, #1A7AFF 45%, #0B63E6 100%);
    color: #fff;
}

.mmc-aside-eyebrow {
    font-size: 13px;
    font-weight: 700;
    line-height: 19.5px;
    letter-spacing: .12em;
    color: #9FC4FF;
}

.mmc-aside-title {
    margin: 8px 0 0;
    font-size: 30px;
    font-weight: 500;
    line-height: 45px;
    color: #fff;
}

.mmc-aside-desc {
    margin: 14px 0 0;
    font-size: 14px;
    line-height: 21px;
    color: rgba(255, 255, 255, .9);
}

.mmc-aside-divider {
    height: 1px;
    margin: 40px 0 0;
    background: rgba(255, 255, 255, .25);
}

.mmc-aside-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}

.mmc-aside-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .16);
}

.mmc-aside-icon svg,
.mmc-aside-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 16px;
    line-height: 1;
    fill: #fff;
    color: #fff;
}

.mmc-aside-item dt {
    margin: 0;
    font-size: 13px;
    line-height: 19px;
    font-weight: 400;
    color: rgba(255, 255, 255, .78);
}

.mmc-aside-item dd {
    margin: 3px 0 0;
    font-size: 14px;
    line-height: 21px;
    font-weight: 500;
    color: #fff;
    word-break: break-all;
}

.mmc-aside-item dd a {
    color: #fff;
}

.mmc-formcard-body {
    flex: 1 1 auto;
    min-width: 0;
    box-sizing: border-box;
    padding: 46px 44px 30px;
}

.mmc-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

.mmc-field {
    min-width: 0;
}

.mmc-field-full {
    grid-column: 1 / -1;
}

.mmc-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 20px;
    color: #3B4553;
}

.mmc-label em {
    font-style: normal;
    color: #E84736;
    margin-left: 3px;
}

.mmc-input {
    display: block;
    width: 100%;
    height: 46px;
    box-sizing: border-box;
    padding: 0 16px;
    border: 1px solid #EDF1F7;
    border-radius: 8px;
    background: #FAFBFD;
    font-family: inherit;
    font-size: 14.5px;
    color: #1E293B;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.mmc-input::placeholder {
    color: #B4BECC;
}

.mmc-input:focus {
    outline: none;
    border-color: #1A7AFF;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 122, 255, .10);
}

select.mmc-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2394A3B8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 44px;
    color: #39414D;
}

select.mmc-input:invalid,
select.mmc-input.is-empty {
    color: #B4BECC;
}

textarea.mmc-input {
    height: 108px;
    padding: 12px 16px;
    line-height: 1.6;
    resize: vertical;
}

.mmc-agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 2px;
    font-size: 12.5px;
    line-height: 18px;
    color: #7C8698;
    cursor: pointer;
}

.mmc-agree input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.mmc-agree i {
    position: relative;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    border: 1px solid #D7DEE9;
    border-radius: 4px;
    background: #fff;
    transition: background .2s ease, border-color .2s ease;
}

.mmc-agree i::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform .15s ease;
}

.mmc-agree input:checked + i {
    background: #1A7AFF;
    border-color: #1A7AFF;
}

.mmc-agree input:checked + i::after {
    transform: rotate(45deg) scale(1);
}

.mmc-agree input:focus-visible + i {
    box-shadow: 0 0 0 3px rgba(26, 122, 255, .18);
}

.mmc-agree a {
    color: #1A7AFF;
}

.mmc-form-foot {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 14px;
}

.mmc-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    min-width: 168px;
    padding: 0 24px;
    border: 0;
    border-radius: 8px;
    background: #1A7AFF;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.mmc-submit:hover {
    background: #0F69E6;
}

.mmc-submit:active {
    transform: translateY(1px);
}

.mmc-submit[disabled] {
    opacity: .6;
    cursor: not-allowed;
}

.mmc-submit svg,
.mmc-submit i {
    width: 15px;
    height: 15px;
    font-size: 15px;
    fill: currentColor;
}

.mmc-form-note {
    font-size: 12.5px;
    line-height: 19px;
    color: #A6B0BF;
}

.mmc-form-msg {
    display: none;
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 20px;
}

.mmc-form-msg.is-error {
    display: block;
    background: #FFF1EF;
    color: #D9362A;
}

.mmc-form-msg.is-ok {
    display: block;
    background: #EDF9F0;
    color: #2E8B3D;
}

/* ------------------------------ 响应式 ---------------------------------- */
@media (max-width: 1199px) {
    .mmc-hero-text {
        padding-left: 60px;
    }

    .mmc-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .mmc-formcard-body {
        padding: 44px 36px 40px;
    }

    .mmc-formcard-aside {
        flex-basis: 340px;
        width: 340px;
        padding: 44px 32px;
    }
}

@media (max-width: 991px) {
    .mmc-hero {
        height: 340px;
    }

    .mmc-hero-text {
        padding-left: 10px;
    }

    .mmc-hero-title {
        font-size: 44px;
        letter-spacing: 1.6px;
    }

    .mmc-eyebrow {
        font-size: 17px;
    }

    .mmc-eyebrow::before {
        width: 26px;
    }

    .mmc-sec {
        padding-top: 80px;
    }

    .mmc-sec-head {
        margin-bottom: 38px;
    }

    .mmc-map {
        height: 500px;
    }

    .mmc-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .mmc-formcard {
        display: block;
    }

    .mmc-formcard-aside {
        width: 100%;
        flex-basis: auto;
        padding: 36px 32px 40px;
    }

    .mmc-aside-divider {
        margin-top: 26px;
    }

    .mmc-aside-item {
        margin-top: 20px;
    }

    .mmc-aside-item:first-of-type {
        margin-top: 26px;
    }
}

@media (max-width: 767px) {
    .mmc-page {
        padding-bottom: 70px;
    }

    .mmc-hero {
        height: 300px;
    }

    .mmc-hero-bg {
        left: 0;
        background-position: center center;
    }

    .mmc-hero-text {
        padding-left: 0;
    }

    .mmc-hero-title {
        font-size: 34px;
        line-height: 1.4;
        letter-spacing: 1px;
    }

    .mmc-hero-sub {
        font-size: 14px;
        line-height: 22px;
        margin-top: 8px;
    }

    .mmc-hero-phone {
        height: 46px;
        margin-top: 20px;
        padding: 0 22px;
        font-size: 13px;
    }

    .mmc-sec {
        padding-top: 56px;
    }

    .mmc-sec-head {
        margin-bottom: 28px;
    }

    .mmc-sec-head h2 {
        font-size: 24px;
        line-height: 36px;
    }

    .mmc-map {
        height: 320px;
    }

    .mmc-map-card {
        position: static;
        width: auto;
        margin: -20px 14px 0;
        padding: 22px 20px 20px;
    }

    .mmc-map-actions {
        margin-top: 16px;
    }

    .mmc-btn {
        flex: 1 1 0;
        padding: 0 12px;
    }

    .mmc-cards {
        grid-template-columns: 1fr;
    }

    .mmc-card {
        padding: 26px 20px;
    }

    .mmc-formcard-body {
        padding: 28px 20px 26px;
    }

    .mmc-form {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mmc-form-foot {
        flex-wrap: wrap;
        gap: 12px;
    }

    .mmc-submit {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .mmc-hero-title {
        font-size: 28px;
    }

    .mmc-map-actions {
        gap: 10px;
    }
}

@media print {
    .mmc-hero-phone,
    .mmc-map-actions {
        display: none !important;
    }
}
