.nav-link.item_contact{
    color: #e20016;
}
.nav-link.item_contact::after {
    width: 100%;
}

.contact-banner {
    height: 360px;
    margin-top: 0;
}

.contact-banner__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.contact-banner__mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .2), rgba(0, 0, 0, .5));
    z-index: 1;
}

.contact-banner__content h1 {
    letter-spacing: 4px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}

.contact-banner__content p {
    letter-spacing: 2px;
}

@media only screen and (max-width: 768px) {
    .contact-bread.bread {
        display: block;
    }
}

.contact-bread .bread_box .item:last-child a {
    color: #d80c1e;
}

.contact-intro {
    text-align: center;
    margin-bottom: 40px;
}

.contact-intro .page_line {
    margin-left: auto;
    margin-right: auto;
}

.contact-intro__desc {
    max-width: 720px;
    margin: 0 auto;
}

/* 双面板层次：红顶栏 + 白内容区 */
.contact-panel {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(25, 27, 35, .08);
    margin-bottom: 32px;
}

.contact-panel:last-child {
    margin-bottom: 0;
}

.contact-panel__bar {
    padding: 18px 36px;
    background: #d80c1e;
    letter-spacing: 2px;
}

.contact-panel__body {
    padding: 36px 40px 40px;
}

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

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #f7f7f7;
    border-radius: 6px;
    padding: 24px 22px;
    transition: background .3s ease;
}

.contact-card__icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.contact-card__icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.contact-card__icon--mail span {
    font-size: 20px;
    font-weight: 700;
    color: #d80c1e;
    line-height: 1;
}

.contact-card__label {
    margin-bottom: 6px;
}

.contact-card__value {
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    transition: color .3s ease;
    word-break: break-all;
}

a.contact-card__value:hover {
    color: #d80c1e;
}

.contact-divider {
    height: 1px;
    background: #eee;
    margin: 32px 0 28px;
}

.contact-address__tit {
    margin-bottom: 12px;
}

.contact-address__text {
    margin: 0;
    padding-left: 16px;
    border-left: 3px solid #d80c1e;
}

.contact-form__desc {
    margin-bottom: 28px;
    line-height: 1.75;
}

.contact-form__row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.contact-form__field {
    margin-bottom: 22px;
}

.contact-form__label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-form__label span {
    color: #d80c1e;
}

.contact-form__input,
.contact-form__textarea {
    width: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 14px 16px;
    font-size: 15px;
    color: #333;
    background: #fafafa;
    transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
    box-sizing: border-box;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
    outline: none;
    border-color: #d80c1e;
    box-shadow: 0 0 0 3px rgba(216, 12, 30, .08);
    background: #fff;
}

.contact-form__textarea {
    resize: vertical;
    min-height: 160px;
    line-height: 1.6;
}

.contact-form__submit {
    text-align: center;
    margin-top: 8px;
}

.contact-form__btn {
    min-width: 180px;
    height: 52px;
    padding: 0 40px;
    background: #e20016 !important;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    transition: background .3s ease, transform .3s ease;
}

.contact-form__tip {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    padding: 0 16px;
    background: #f0f7f0;
    border-radius: 4px;
    border-left: 3px solid #2d8a4e;
    text-align: center;
    transition: max-height .4s ease, opacity .4s ease, margin-top .4s ease, padding .4s ease;
}

.contact-form__tip.is-show {
    max-height: 80px;
    opacity: 1;
    margin-top: 20px;
    padding: 14px 16px;
}

.contact-form__tip p {
    margin: 0;
    color: #2d8a4e;
}

@media only screen and (min-width: 961px) {
    .contact-card:hover {
        background: #fff0f0;
    }

    .contact-form__btn:hover {
        background: #c40012;
        transform: translateY(-2px);
    }
}

@media only screen and (max-width: 768px) {
    .contact-banner {
        height: 220px;
    }

    .contact-intro {
        margin-bottom: 28px;
    }

    .contact-panel__bar {
        padding: 14px 20px;
    }

    .contact-panel__body {
        padding: 24px 20px 28px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .contact-card {
        padding: 20px 16px;
    }

    .contact-address__text {
        padding-left: 12px;
    }

    .contact-section {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }

    .contact-form__row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form__btn {
        width: 100%;
    }
}
