/* ============================================
   Contact 页面 Banner 区块
   ============================================ */

.contact-banner {
    position: relative;
    width: 100%;
    /* PC：保持 1920:460 比例（随宽度自适应高度） */
    aspect-ratio: 1920 / 460;
    height: auto;
    background-color: #181818;
    overflow: hidden;
}

/* 旧浏览器兜底：不支持 aspect-ratio 时用 padding-top 保持比例 (460/1920=23.9583%) */
@supports not (aspect-ratio: 1 / 1) {
    .contact-banner::before {
        content: "";
        display: block;
        padding-top: 23.9583%;
    }
    .contact-banner__image {
        position: absolute;
        inset: 0;
        height: 100%;
        width: 100%;
    }
}

.contact-banner__image {
    position: absolute;
    inset: 0;
}

.contact-banner__image-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 默认：PC 显示主图，隐藏 H5 图 */
.contact-banner__image-el--h5 {
    display: none;
}

/* ============================================
   联系信息主模块
   ============================================ */

.contact-main {
    position: relative;
    background: #181818;
    color: #f5f5f5;
    padding: 96px 0 120px;
}

.contact-main__inner {
    position: relative;
    text-align: center;
}
.contact-main__header {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contact-main__title {
    font-size: 52px;
    width: fit-content;
    font-weight: 600;
    font-family: 'PingFang SC';
    margin-bottom: 12px;
    background: linear-gradient(90deg, #D9D9D9 0%, rgba(217, 217, 217, 0.1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-main__text {
    font-size: 16px;
    line-height: 1.8;
    color: #FFFFFF;
    text-align: start;
    margin: 0 auto;
}

.contact-main__text--h5 {
    display: none;
}

.contact-main__bg-word {
    position: absolute;
    left: -200px;
    top: 50px;
    font-size: 260px;
    font-weight: 900;
    background: linear-gradient(90deg, rgba(139, 139, 139, 1), rgba(139, 139, 139, 0.5));
    -webkit-background-clip: text;
    color: transparent;
    opacity: 0.05;
    pointer-events: none;
    font-family: 'system-ui';
}

.contact-main__cards {
    position: relative;
    margin: 142px auto 0;
    max-width: 1240px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid #525252;
}

.contact-main__card {
    padding: 30px;
    border-right: 1px solid #525252;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-main__card:last-child {
    border-right: none;
}

.contact-main__card-label,
.contact-main__card-text {
    font-size: 16px;
    color: #D9D9D9;
    line-height: 180%;
}

.contact-main__card-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.contact-main__card-icon {
    width: 22px;
    height: 22px;
    margin-right: 8px;
    flex-shrink: 0;
}

.contact-main__card-text a {
    color: inherit;
}

/* ============================================
   响应式调整（基本）
   ============================================ */

@media (max-width: 768px) {
    section.contact-banner {
        height: 2.6rem;
    }

    /* H5：使用 contact-banner_h5 图，隐藏 PC 图 */
    .contact-banner__image-el--pc {
        display: none;
    }
    .contact-banner__image-el--h5 {
        display: block;
    }
    .contact-main__title{
        font-size: 0.36rem;
    }
    .contact-main {
        padding: .6rem 0;
    }
    .contact-main__text{
        text-align: center;
    }
    .contact-main__text--pc{
        display: none;
    }
    .contact-main__text--h5{
        display: block;
    }
    .contact-main__bg-word{
        font-size: 1rem;
        left: -0.2rem;
        top: 1.5rem;
    }
    .contact-main__cards {
        grid-template-columns: minmax(0, 1fr);
        border-width: 0.01rem;
    }

    .contact-main__card {
        border-right: none;
        border-bottom: 0.01rem solid #525252;
    }

    .contact-main__card:last-child {
        border-bottom: none;
    }
}

