.dz-contact,
.dz-message {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.dz-contact *,
.dz-message * {
    box-sizing: border-box;
}

/* 联系方式 */
.dz-contact {
    padding: 84px 24px 86px;
    background: #f5f5f7;
    text-align: center;
}

.dz-contact h2,
.dz-message h2 {
    margin: 0;
    color: #202d29;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.6px;
}

.dz-contact-intro {
    max-width: 900px;
    margin: 10px auto 0;
    color: #666;
    font-size: 16px;
    line-height: 20px;
}

.dz-contact .h-photo-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    max-width: 1272px;
    margin: 83px auto 0;
    padding: 0;
    list-style: none;
}

.dz-contact .h-photo-list::before,
.dz-contact .h-photo-list::after {
    display: none;
}

.dz-contact .h-photo-list > li {
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0 14px;
    list-style: none;
}

.dz-contact .h-photo-list > li > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    color: #444;
    text-decoration: none;
}

/* 图标圆形背景 */
.dz-contact .h-photo-list .dz-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    order: -1;
    flex: 0 0 auto;
    width: 76px;
    height: 76px;
    margin: 0 auto 12px;
    padding: 0;
    border-radius: 50%;
    background-color: #222c31;
    overflow: hidden;
}

.dz-contact .h-photo-list .dz-icon::before,
.dz-contact .h-photo-list .dz-icon::after {
    display: none;
}

/* 圆形背景内的白色图标 */
.dz-contact .h-photo-list .dz-icon img {
    position: static;
    display: block;
    width: 36px;
    height: 36px;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transform: none;
}

/* 图文内容 */
.dz-contact .h-photo-list .text {
    position: static;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    background: transparent;
    text-align: center;
    transform: none;
}

.dz-contact .h-photo-list .text h3 {
    display: block;
    height: auto;
    min-height: 0;
    max-height: none;
    margin: 0 0 12px;
    padding: 0;
    color: #202d29;
    font-size: 24px;
    font-weight: 700;
    line-height: 30px;
    letter-spacing: -0.5px;
    white-space: normal;
    overflow: visible;
    -webkit-line-clamp: unset;
}

.dz-contact .h-photo-list .dz-photo-subtitle,
.dz-contact .h-photo-list .dz-photo-text,
.dz-contact .h-photo-list .dz-photo-summary {
    margin: 0;
    padding: 0;
    color: #444;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    overflow-wrap: anywhere;
}

.dz-contact .h-photo-list .dz-photo-summary p {
    margin: 0;
    padding: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.dz-contact .h-photo-list a:hover h3 {
    color: #00a63c;
}

/* 留言区域 */
.dz-message {
    padding: 78px 24px 120px;
    background: #fff;
    text-align: center;
}

.dz-message-intro {
    max-width: 800px;
    margin: 20px auto 0;
    color: #808080;
    font-size: 16px;
    line-height: 20px;
}

.dz-message .dz-form {
    width: 100%;
    max-width: 1152px;
    margin: 60px auto 0;
    padding: 0;
    text-align: left;
}

.dz-form-row {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.dz-form-row-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dz-form-row-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dz-form .form-input {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.dz-form .form-control {
    display: block;
    width: 100%;
    max-width: none;
    height: 58px;
    margin: 0;
    padding: 0 20px;
    border: 1px solid #ccc;
    border-radius: 0;
    outline: none;
    background: #fff;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 400;
    box-shadow: none;
    appearance: none;
    transition: border-color 0.2s;
}

.dz-form .form-control:focus {
    border-color: #555;
    outline: none;
    box-shadow: none;
}

.dz-form .form-control::placeholder {
    color: #909090;
    opacity: 1;
}

.dz-form textarea.form-control {
    height: 150px;
    min-height: 150px;
    padding: 18px 20px;
    line-height: 22px;
    resize: vertical;
}

.dz-input-label {
    position: absolute;
    top: 29px;
    left: 20px;
    margin: 0;
    transform: translateY(-50%);
    color: #909090;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    pointer-events: none;
}

.dz-input-label em {
    color: #f04444;
    font-style: normal;
}

.dz-form input:focus + .dz-input-label,
.dz-form input:not(:placeholder-shown) + .dz-input-label {
    visibility: hidden;
}

/* 验证码 */
.dz-verification {
    min-width: 0;
}

.dz-verification > .col-md-12 {
    float: none;
    width: 100%;
    max-width: none;
    margin: 0 !important;
    padding: 0 !important;
}

.dz-verification .captcha .form-control {
    padding-right: 140px;
}

.dz-verification .captcha img {
    position: absolute;
    top: 10px;
    right: 8px;
    bottom: auto;
    left: auto;
    display: block;
    width: 118px;
    height: 38px;
    margin: 0;
    object-fit: contain;
    transform: none;
    cursor: pointer;
}

.dz-form .invalid-feedback {
    display: none;
    margin-top: 6px;
    color: #d93025;
    font-size: 13px;
    line-height: 20px;
}

.dz-form.was-validated .form-control:invalid {
    border-color: #d93025;
}

.dz-form.was-validated .form-control:invalid ~ .invalid-feedback {
    display: block;
}

/* 有关联产品时显示 */
.dz-message-product {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    text-align: left;
}

.dz-message-product-img {
    flex: 0 0 120px;
    width: 120px;
}

.dz-message-product-img img {
    display: block;
    width: 100%;
    height: auto;
}

.dz-message-product-info {
    flex: 1;
    min-width: 0;
}

.dz-message-product-title {
    margin-bottom: 8px;
    color: #202d29;
    font-size: 18px;
    font-weight: 700;
    line-height: 26px;
}

.dz-message-product-summary {
    color: #777;
    font-size: 14px;
    line-height: 22px;
}

.dz-message-product-link {
    display: inline-block;
    margin-top: 10px;
    color: #333;
    font-size: 14px;
    text-decoration: underline;
}

/* 提交按钮 */
.dz-submit-wrap {
    margin-top: 47px;
    text-align: center;
}

.dz-form .dz-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 242px;
    min-height: 58px;
    margin: 0;
    padding: 16px 24px;
    border: 0;
    border-radius: 3px;
    background: #171717;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    text-transform: uppercase;
    box-shadow: none;
    cursor: pointer;
    transition: background 0.2s;
}

.dz-form .dz-submit:hover {
    background: #333;
    color: #fff;
}

.dz-form .dz-submit:focus-visible,
.dz-contact a:focus-visible {
    outline: 2px solid #00a63c;
    outline-offset: 4px;
}

/* 提交反馈 */
.dz-form-errors,
.dz-form-success {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 22px;
}

.dz-form-errors {
    color: #d93025;
}

.dz-form-success {
    color: #218838;
}

.dz-form-errors p {
    margin: 0 0 5px;
}

/* 平板 */
@media (max-width: 991px) {
    .dz-contact {
        padding: 64px 24px;
    }

    .dz-contact h2,
    .dz-message h2 {
        font-size: 32px;
    }

    .dz-contact-intro br,
    .dz-message-intro br {
        display: none;
    }

    .dz-contact .h-photo-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 42px 20px;
        margin-top: 50px;
    }

    .dz-contact .h-photo-list .text h3 {
        font-size: 22px;
    }

    .dz-message {
        padding: 64px 24px 90px;
    }

    .dz-message .dz-form {
        margin-top: 40px;
    }
}

/* 手机 */
@media (max-width: 600px) {
    .dz-contact {
        padding: 48px 20px;
    }

    .dz-contact h2,
    .dz-message h2 {
        font-size: 28px;
    }

    .dz-contact-intro,
    .dz-message-intro {
        margin-top: 16px;
        font-size: 14px;
        line-height: 21px;
    }

    .dz-contact .h-photo-list {
        gap: 36px 12px;
        margin-top: 36px;
    }

    .dz-contact .h-photo-list > li {
        padding: 0;
    }

    .dz-contact .h-photo-list .dz-icon {
        width: 62px;
        height: 62px;
    }

    .dz-contact .h-photo-list .dz-icon img {
        width: 30px;
        height: 30px;
    }

    .dz-contact .h-photo-list .text h3 {
        margin-bottom: 8px;
        font-size: 18px;
        line-height: 24px;
    }

    .dz-contact .h-photo-list .dz-photo-subtitle,
    .dz-contact .h-photo-list .dz-photo-text,
    .dz-contact .h-photo-list .dz-photo-summary {
        font-size: 12px;
        line-height: 19px;
    }

    .dz-message {
        padding: 48px 20px 70px;
    }

    .dz-message .dz-form {
        margin-top: 30px;
    }

    .dz-form-row-three,
    .dz-form-row-two {
        grid-template-columns: 1fr;
    }

    .dz-form-row {
        gap: 14px;
        margin-bottom: 14px;
    }

    .dz-form .form-control {
        height: 54px;
        font-size: 16px;
    }

    .dz-input-label {
        top: 27px;
    }

    .dz-form textarea.form-control {
        height: 150px;
    }

    .dz-verification .captcha img {
        top: 8px;
    }

    .dz-submit-wrap {
        margin-top: 26px;
    }

    .dz-form .dz-submit {
        width: 100%;
        min-height: 54px;
    }

    .dz-message-product {
        gap: 14px;
    }

    .dz-message-product-img {
        flex-basis: 80px;
        width: 80px;
    }
}

@media (max-width: 360px) {
    .dz-contact .h-photo-list {
        grid-template-columns: 1fr;
    }
}