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

.services-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) {
    .services-banner::before {
        content: "";
        display: block;
        padding-top: 23.9583%;
    }
    .services-banner__image {
        position: absolute;
        inset: 0;
        height: 100%;
        width: 100%;
    }
}

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

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

/* PC 默认：使用 PC 图片，隐藏 H5 图片 */
.services-banner__image-el--h5,
.services-main__image--h5 {
    display: none;
}

/* ============================================
   业务模块：科技与服务 + 视觉卡片
   ============================================ */

.services-main {
    position: relative;
    color: #f5f5f5;
    padding: 160px 0 120px;
    height: 700px;
}

.services-main::before {
    content: "Services";
    position: absolute;
    left: -60px;
    bottom: -40px;
    font-family: 'system-ui';
    font-weight: 900;
    font-size: 260px;
    line-height: 1;
    pointer-events: none;
    white-space: nowrap;
    background: linear-gradient(90deg, rgba(139, 139, 139, 0.5) 0%, #8B8B8B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    opacity: 0.1;
}

.services-main__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    align-items: center;
}

.services-main__header {
    margin-bottom: 20px;
}

.services-main__title {
    margin-top: 8px;
    font-size: 52px;
    font-weight: 600;
    font-family: 'PingFang SC';
    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;
}

.services-main__text {
    font-family: 'PingFang SC';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 180%;
    display: flex;
    align-items: center;
    color: #D9D9D9;
    max-width: 480px;
}

.services-main__visual {
    position: absolute;
    right: 0;
    top: -240px;
    display: flex;
    justify-content: flex-end;
}

.services-main__image-card {
    overflow: hidden;
    background: #000;
}

.services-main__image {
    width: 100%;
    height: 520px;
    object-fit: cover;
}

/* ============================================
   具体服务条目列表
   ============================================ */

.services-list {
    color: #f5f5f5;
    padding: 0 0 120px;
}

.services-list__inner {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.services-list__column {
    display: flex;
    flex-direction: column;
}

.services-list__item {
    overflow: hidden;
    height: 160px;
    transition: background 0.3s ease;
}
.services-list__item:not(:last-child) {
    border-bottom: 1px solid rgba(217, 217, 217, 0.25);
}

.services-list__item:hover {
    background: #111111 url("../images/services/services-hover.png") center/cover no-repeat;
}

.services-list__content {
    padding: 0 30px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.services-list__title {
    width: 320px;
    padding:0 20px 0 30px;
    font-size: 22px;
    color: #FF7B00;
    line-height: 160px;
    white-space: nowrap;
}

.services-list__text {
    font-family: 'PingFang SC';
    font-size: 16px;
    line-height: 1.8;
    color: #D9D9D9;
    text-align: left;
    width: 880px;
}

/* PC：英文/日文时，正文宽度调整 */
@media (min-width: 769px) {
    html[lang="en"] .services-list__text,
    html[lang="ja"] .services-list__text {
        width: 810px;
    }
}

/* ============================================
   响应式调整
   ============================================ */

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

    /* H5：切换为 *_h5 图片 */
    .services-banner__image-el--pc,
    .services-main__image--pc {
        display: none;
    }
    .services-banner__image-el--h5,
    .services-main__image--h5 {
        height: 3rem;
        display: block;
    }

    .services-main {
        padding: .6rem 0 4rem;
        height: auto;
    }
    .services-main__inner{
        display: flex;
    }
    .services-main__title{
        margin-top: 0;
        font-size: .36rem;
    }
    .services-main__visual{
        top: unset;
        bottom: -3.5rem;
        justify-content: center;
        left: 0;
    }
    .services-main::before{
        font-size: 1rem;
        left: -0.2rem;
        bottom: -0.6rem;
    }

    .services-list {
        padding-bottom: .4rem;
    }

    .services-list__inner {
        margin-top: 0.6rem;
    }
    .services-list__inner .services-list__item{
        height: auto;
        padding: 0.25rem 0;
    }
    .services-list__content{
        padding: 0;
        flex-direction: column;
        align-items: start;
    }
    .services-list__content .services-list__title{
        width: auto;
        line-height: 1;
        padding: 0;
    }
    .services-list__content .services-list__text{
        font-size: 0.16rem;
        text-align: left;
        width: 100%;
    }
}
