/* ============================================================
   Services 页面
   ============================================================ */
.services-main {
    background: #fff;
}

/* ---------- Services 首屏 Banner ---------- */
.services-main .first {
    position: relative;
    width: 19.2rem;
    height: 6rem;
    margin: 0 auto;
    overflow: hidden;
    background: #000;
}

.first__bg {
    position: absolute;
    inset: 0;
    background: url('../assets/images/services/services-first-bg.png') center/cover no-repeat;
}

.first__content {
    position: absolute;
    left: 3.1rem;
    bottom: 0.84rem;
    color: #fff;
    z-index: 2;
}

.first__title {
    color: #FFF;
    font-family: Gabarito;
    font-size: 0.56rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.first__desc {
    color: #CCC;
    font-family: Gabarito;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}


/* ---------- Second: Pre-Sales Engineering Support ---------- */
.services-main .second {
    width: 100%;
    max-width: 19.2rem;
    height: 11.08rem;
    padding-top: 1rem;
    overflow: hidden;
    background: #fff;
    box-sizing: border-box;
}

.second__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 0 3.1rem;
}

.second__header {
    text-align: center;
    margin-bottom: 0.4rem;
}

.second__title {
    color: #333;
    font-family: Gabarito;
    font-size: 0.48rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 0.1rem;
}

.second__subtitle {
    color: #999;
    text-align: center;
    font-family: Gabarito;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.second__quote {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.2rem;
    margin-bottom: 0.88rem;
}

.quote-mark {
    width: 0.44rem;
    height: 0.44rem;
    flex: 0 0 auto;
    display: block;
}

.quote-mark.left {
    position: relative;
    top: -0.22rem;
}

.quote-mark.right {
    align-self: flex-end;
    margin-bottom: 0.02rem;
}

.second__desc {
    max-width: 9.2rem;
    text-align: center;
}

.second__desc p {
    color: #666;
    text-align: center;
    font-family: Gabarito;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin-bottom: 0.12rem;
}

.second__desc p:last-child {
    margin-bottom: 0;
}

.second__cards {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
}

.second__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 6.2rem;
}

.second__card-img {
    width: 6.2rem;
    height: 3.92rem;
    max-width: none;
    border-radius: 0.06rem;
    overflow: hidden;
    margin-bottom: 0.28rem;
    position: relative;
}

.second__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.second__card:hover .second__card-img img {
    transform: scale(1.06);
}

.second__card-title {
    color: #333;
    text-align: center;
    font-family: Gabarito;
    font-size: 0.24rem;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    margin-bottom: 0.1rem;
}

.second__card-desc {
    color: #666;
    text-align: center;
    font-family: Gabarito;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

/* 入场动画 */
.second__header,
.second__quote,
.second__card {
    opacity: 0;
    transform: translateY(0.3rem);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.second__quote {
    transition-delay: 0.15s;
}

.second__card:nth-child(1) {
    transition-delay: 0.3s;
}

.second__card:nth-child(2) {
    transition-delay: 0.45s;
}

.second.is-visible .second__header,
.second.is-visible .second__quote,
.second.is-visible .second__card {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Third: Project Delivery Support ---------- */
.services-main .third {
    width: 100%;
    max-width: 19.2rem;
    height: 9.66rem;
    margin: 0 auto;
    background: #0a0a0a;
    overflow: hidden;
}

.third__inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: url('../assets/images/services/third-img1.png') center/cover no-repeat;
    padding: 0.73rem 3.1rem 0;
    display: flex;
    flex-direction: column;
}

.third__header {
    text-align: center;
    margin-bottom: 0.7rem;
    color: #fff;
}

.third__title {
    color: #FFF;
    font-family: Gabarito;
    font-size: 0.48rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 0.10rem;
}

.third__subtitle {
    color: #999;
    text-align: center;
    font-family: Gabarito;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.third__content {
    flex: 1;
    max-height: 4.83rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0;
    max-width: 13rem;
    margin: 0 auto;
}

.third__list {
    flex: 0 0 5.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 5.25rem;
}

.third__item {
    padding: 0.32rem 0;
    border-bottom: 0.01rem solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.third__item:first-child {
    padding-top: 0;
}

.third__item:last-child {
    border-bottom: none;
}

.third__item-title {
    color: #FFF;
    font-family: Gabarito;
    font-size: 0.24rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.third__item-desc {
    color: #999;
    font-family: Gabarito;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.4s ease,
        margin-top 0.4s ease;
}

.third__item.is-active .third__item-title {
    background: linear-gradient(90deg, #00d4ff 0%, #2a8eff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.third__item.is-active .third__item-desc {
    max-height: 0.8rem;
    opacity: 1;
    margin-top: 0.12rem;
}

.third__image-wrap {
    width: 6.5rem;
    height: 4.83rem;
    border-radius: 0.1rem;
    overflow: hidden;
    flex: 0 0 6.2rem;
    background: #000;
    box-shadow: 0 0.08rem 0.32rem rgba(0, 0, 0, 0.4);
}

.third__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 1;
    transform: scale(1);
}

.third__image.is-leaving {
    opacity: 0;
    transform: scale(1.06);
}

.third__image.is-entering {
    opacity: 0;
    transform: scale(1.04);
}

.third__footer {
    color: #FFF;
    text-align: center;
    font-family: Gabarito;
    font-size: 0.2rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin-top: 0.9rem;
}

/* Third 入场动画 */
.third__header,
.third__content,
.third__footer {
    opacity: 0;
    transform: translateY(0.2rem);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.third__content {
    transition-delay: 0.15s;
}

.third__footer {
    transition-delay: 0.3s;
}

.third.is-visible .third__header,
.third.is-visible .third__content,
.third.is-visible .third__footer {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Fourth: After-Sales Technical Support ---------- */
.services-main .fourth {
    width: 100%;
    max-width: 19.2rem;
    height: 11.25rem;
    margin: 0 auto;
    padding: 0.86rem 3.1rem;
    box-sizing: border-box;
    overflow: hidden;
    background: #fff;
}

.fourth__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.fourth__header {
    text-align: center;
    margin-bottom: 0.49rem;
}

.fourth__title {
    color: #333;
    text-align: center;
    font-family: Gabarito;
    font-size: 0.48rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 0.2rem;
}

.fourth__subtitle {
    color: #999;
    text-align: center;
    font-family: Gabarito;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.fourth__cards {
    display: grid;
    grid-template-columns: repeat(2, 6.2rem);
    grid-template-rows: repeat(2, 3.78rem);
    column-gap: 0.6rem;
    row-gap: 0.3rem;
    justify-content: center;
    align-content: center;
    width: 100%;
    flex: 1;
}

.fourth__card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0.4rem 0.5rem 0.36rem;
    background: #fff;
    border: 0.01rem solid rgba(0, 0, 0, 0.06);
    border-radius: 0.08rem;
    box-sizing: border-box;
    overflow: hidden;
    cursor: default;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s ease,
        border-color 0.45s ease;
}

.fourth__card:hover {
    transform: translateY(-0.08rem) scale(1.02);
    border-color: rgba(0, 153, 255, 0.45);
    box-shadow: 0 0.32rem 0.7rem rgba(0, 112, 224, 0.16),
        0 0.08rem 0.2rem rgba(0, 0, 0, 0.05);
}

/* 卡片顶部渐变光线扫过 */
.fourth__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 45%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(0, 212, 255, 0.14), rgba(42, 142, 255, 0.16), transparent);
    transform: skewX(-20deg);
    transition: left 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    z-index: 1;
}

.fourth__card:hover::before {
    left: 140%;
}

/* 渐变流动边框 */
.fourth__card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 0.01rem;
    background: linear-gradient(135deg, #00d4ff, #2a8eff, #00d4ff, #2a8eff, #00d4ff);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.fourth__card:hover::after {
    opacity: 1;
    animation: fourth-border-flow 2.8s linear infinite;
}

@keyframes fourth-border-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.fourth__card-head {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    gap: 0.3rem;
    margin-bottom: 0.32rem;
}

.fourth__card-index {
    flex: 0 0 auto;
    color: #999;
    font-family: Gabarito;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    padding-top: 0.04rem;
    transition: color 0.4s ease, transform 0.4s ease;
}

.fourth__card:hover .fourth__card-index {
    color: #2a8eff;
    transform: translateY(-0.02rem);
}

.fourth__card-title {
    color: #333;
    font-family: Gabarito;
    font-size: 0.22rem;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    margin: 0;
    transition: color 0.4s ease;
}

/* 标题渐变流动 */
.fourth__card:hover .fourth__card-title {
    color: transparent;
    background-image: linear-gradient(90deg, #00d4ff, #2a8eff, #00d4ff, #2a8eff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fourth-title-flow 3s linear infinite;
}

@keyframes fourth-title-flow {
    0% { background-position: 0% 0; }
    100% { background-position: 300% 0; }
}

.fourth__card-body {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
}

.fourth__card-icon {
    position: relative;
    flex: 0 0 1.1rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: #fff;
    border: 0.01rem solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        border-color 0.4s ease,
        box-shadow 0.4s ease,
        background 0.4s ease;
}

.fourth__card:hover .fourth__card-icon {
    transform: scale(1.08) rotate(8deg);
    border-color: rgba(0, 153, 255, 0.55);
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.08), rgba(42, 142, 255, 0.08));
    box-shadow: 0 0 0.22rem rgba(0, 153, 255, 0.22);
}

/* 图标涟漪扩散 */
.fourth__card-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 0.01rem solid rgba(0, 153, 255, 0.55);
    opacity: 0;
    pointer-events: none;
}

.fourth__card:hover .fourth__card-icon::after {
    animation: fourth-ripple 1.4s ease-out infinite;
}

@keyframes fourth-ripple {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

.fourth__card-icon img {
    width: 0.5rem;
    height: 0.5rem;
    display: block;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fourth__card:hover .fourth__card-icon img {
    transform: scale(1.12) rotate(-10deg);
}

.fourth__card-desc {
    flex: 1;
    color: #666;
    font-family: Gabarito;
    font-size: 0.14rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin: 0;
    transition: color 0.4s ease;
}

.fourth__card:hover .fourth__card-desc {
    color: #555;
}

/* Fourth 入场动画：标题淡入 + 卡片弹性弹入 + 图标旋转弹出 */
@keyframes fourth-header-in {
    0% { opacity: 0; transform: translateY(0.35rem); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fourth-card-in {
    0% { opacity: 0; transform: translateY(0.4rem) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fourth-icon-in {
    0% { opacity: 0; transform: scale(0) rotate(-180deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes fourth-icon-img-in {
    0% { opacity: 0; transform: scale(0); }
    100% { opacity: 1; transform: scale(1); }
}

.fourth__header,
.fourth__card,
.fourth__card-icon,
.fourth__card-icon img {
    opacity: 0;
}

.fourth.is-visible .fourth__header {
    opacity: 1;
    animation: fourth-header-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.fourth.is-visible .fourth__card {
    opacity: 1;
    animation: fourth-card-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
    --d: 0s;
}

.fourth.is-visible .fourth__card:nth-child(1) { animation-delay: 0.08s; --d: 0.08s; }
.fourth.is-visible .fourth__card:nth-child(2) { animation-delay: 0.18s; --d: 0.18s; }
.fourth.is-visible .fourth__card:nth-child(3) { animation-delay: 0.28s; --d: 0.28s; }
.fourth.is-visible .fourth__card:nth-child(4) { animation-delay: 0.38s; --d: 0.38s; }

.fourth.is-visible .fourth__card-icon {
    opacity: 1;
    animation: fourth-icon-in 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
    animation-delay: calc(var(--d, 0s) + 0.5s);
}

.fourth.is-visible .fourth__card-icon img {
    opacity: 1;
    animation: fourth-icon-img-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
    animation-delay: calc(var(--d, 0s) + 0.72s);
}

/* ---------- Fifth: Discuss Your Project ---------- */
.services-main .fifth {
    position: relative;
    width: 100%;
    max-width: 19.2rem;
    height: 8.26rem;
    margin: 0 auto;
    padding-top: 1.51rem;
    background: url('../assets/images/services/fifth-img.png') center/cover no-repeat;
    overflow: hidden;
    box-sizing: border-box;
}

.fifth__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 3.1rem;
}

.fifth__title {
    color: #FFF;
    font-family: Gabarito;
    font-size: 0.48rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 0.2rem;
}

.fifth__desc {
    color: #CCC;
    text-align: center;
    font-family: Gabarito;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    max-width: 8.6rem;
    margin: 0 auto 0.4rem;
}

.fifth__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.12rem 0.32rem;
    border-radius: 0.28rem;
    background: linear-gradient(90deg, #00d4ff 0%, #2a8eff 100%);
    color: #FFF;
    font-family: Gabarito;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease;
}

/* 按钮光线扫过 */
.fifth__btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 45%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-20deg);
    transition: left 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.fifth__btn:hover::after {
    left: 150%;
}

.fifth__btn:hover {
    transform: translateY(-0.03rem) scale(1.03);
    box-shadow: 0 0.1rem 0.3rem rgba(0, 153, 255, 0.4);
}

/* Fifth 入场动画 */
@keyframes fifth-in {
    0% { opacity: 0; transform: translateY(0.25rem); }
    100% { opacity: 1; transform: translateY(0); }
}

.fifth__title,
.fifth__desc,
.fifth__btn {
    opacity: 0;
}

.fifth.is-visible .fifth__title {
    opacity: 1;
    animation: fifth-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.fifth.is-visible .fifth__desc {
    opacity: 1;
    animation: fifth-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 0.15s;
}

.fifth.is-visible .fifth__btn {
    opacity: 1;
    animation: fifth-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: 0.3s;
}

/* ============================================================
   H5 移动端适配（data-mode="h5"，750 设计稿基准）
   与 technology / oem-odm / products / news / cases 等页面同一套适配规范
   ============================================================ */
/* ---------- 汉堡菜单按钮（与其他页面一致） ---------- */
/* 桌面端默认隐藏，仅移动端显示 */
.menu-btn {
    display: none;
}

html[data-mode="h5"] .menu-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.09rem;
    width: 0.44rem;
    height: 0.44rem;
    margin-left: auto;
    padding: 0;
    border: none;
    border-radius: 0.1rem;
    background: rgba(255, 255, 255, 0.24);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

html[data-mode="h5"] .menu-btn span {
    display: block;
    width: 0.22rem;
    height: 0.03rem;
    border-radius: 0.03rem;
    background: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

html[data-mode="h5"] .header.is-scrolled .menu-btn {
    background: rgba(51, 51, 51, 0.08);
}

html[data-mode="h5"] .header.is-scrolled .menu-btn span {
    background: #333;
}

html[data-mode="h5"] .menu-btn.is-open span:nth-child(1) {
    transform: translateY(0.12rem) rotate(45deg);
}

html[data-mode="h5"] .menu-btn.is-open span:nth-child(2) {
    opacity: 0;
}

html[data-mode="h5"] .menu-btn.is-open span:nth-child(3) {
    transform: translateY(-0.12rem) rotate(-45deg);
}

/* 移动端：隐藏桌面导航，保留搜索与 Get a Quote 等右侧按钮 */
html[data-mode="h5"] .header__inner-nav {
    display: none;
}

/* 移动端：导航栏紧凑布局（避免右侧按钮换行，菜单按钮靠最右） */
html[data-mode="h5"] .header__inner {
    justify-content: space-between;
}

html[data-mode="h5"] .logo {
    order: 1;
    margin-left: 0;
    flex-shrink: 0;
}

html[data-mode="h5"] .logo img {
    width: 1.1rem;
    height: auto;
}

html[data-mode="h5"] .header__inner-right {
    order: 2;
    margin-right: 0;
    margin-left: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.08rem;
}

html[data-mode="h5"] .menu-btn {
    order: 3;
    width: 0.4rem;
    height: 0.4rem;
    margin-left: 0.08rem;
    margin-right: 0;
    flex-shrink: 0;
}

/* 右侧按钮统一不换行 */
html[data-mode="h5"] .header__inner-right-search,
html[data-mode="h5"] .header__inner-right-language,
html[data-mode="h5"] .header__inner-right-msg,
html[data-mode="h5"] .header__inner-right > a:last-child {
    flex-shrink: 0;
    white-space: nowrap;
}

html[data-mode="h5"] .header__inner-right-search {
    width: 0.36rem;
    height: 0.36rem;
    margin-right: 0;
}

html[data-mode="h5"] .header__inner-right-language {
    width: auto;
    min-width: 0.62rem;
    height: 0.36rem;
    padding: 0 0.08rem;
    margin-right: 0;
    font-size: 0.2rem;
}

html[data-mode="h5"] .header__inner-right-msg {
    height: 0.36rem;
    padding: 0 0.14rem;
    margin-right: 0;
    font-size: 0.2rem;
}

html[data-mode="h5"] .header__inner-right > a:last-child {
    height: 0.36rem;
    padding: 0 0.14rem;
    margin-right: 0;
    font-size: 0.2rem;
}

/* 移动端：展开后的全屏下拉菜单 */
html[data-mode="h5"] .header__inner-nav.is-open {
    position: fixed;
    top: 0.8rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 7.5rem;
    height: calc(100vh - 0.8rem);
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0.3rem 0.6rem 0.6rem;
    box-sizing: border-box;
    background: #fff;
    overflow-y: auto;
    animation: h5NavFadeIn 0.25s ease both;
}

@keyframes h5NavFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -0.2rem);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

html[data-mode="h5"] .header__inner-nav.is-open .header__inner-nav-item {
    width: 100%;
    padding: 0.22rem 0;
    border-bottom: 0.01rem solid #f0f2f5;
}

html[data-mode="h5"] .header__inner-nav.is-open .header__inner-nav-item a {
    color: #333;
    font-size: 0.3rem;
}

html[data-mode="h5"] .header__inner-nav.is-open .header__inner-nav-item:active a,
html[data-mode="h5"] .header__inner-nav.is-open .header__inner-nav-item a:active {
    color: #00B8E2;
}

/* 当前页在 H5 菜单中与其他项保持一致，重置渐变文字与下划线 */
html[data-mode="h5"] .header__inner-nav.is-open .header__inner-nav-item.is-active a {
    color: #333;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: initial;
}

html[data-mode="h5"] .header__inner-nav.is-open .header__inner-nav-item.is-active::after {
    display: none;
}

/* ---------- 第一屏 banner ---------- */
html[data-mode="h5"] .services-main .first {
    width: 100%;
    height: auto;
    /* 全站 H5 首屏统一高度基准（与 oem-odm 页对齐） */
    min-height: 5.85rem;
    display: flex;
    align-items: flex-start;
}

html[data-mode="h5"] .first__bg {
    background-size: cover;
}

html[data-mode="h5"] .first__content {
    position: static;
    width: 100%;
    box-sizing: border-box;
    padding: 3.4rem 0.4rem 0.6rem;
    z-index: 2;
}

html[data-mode="h5"] .first__title {
    font-size: 0.44rem;
    margin-bottom: 0.16rem;
}

html[data-mode="h5"] .first__desc {
    font-size: 0.24rem;
    line-height: 1.6;
    max-width: 100%;
}

/* ---------- 第二屏 Pre-Sales Engineering Support ---------- */
html[data-mode="h5"] .services-main .second {
    height: auto;
    padding: 0.7rem 0;
}

html[data-mode="h5"] .second__inner {
    height: auto;
    padding: 0 0.4rem;
}

html[data-mode="h5"] .second__header {
    margin-bottom: 0.4rem;
}

html[data-mode="h5"] .second__title {
    font-size: 0.42rem;
}

html[data-mode="h5"] .second__subtitle {
    font-size: 0.24rem;
}

html[data-mode="h5"] .second__quote {
    gap: 0.12rem;
    margin-bottom: 0.5rem;
}

html[data-mode="h5"] .quote-mark {
    width: 0.36rem;
    height: 0.36rem;
}

html[data-mode="h5"] .second__desc {
    max-width: 100%;
}

html[data-mode="h5"] .second__desc p {
    font-size: 0.24rem;
    line-height: 1.7;
    margin-bottom: 0.14rem;
}

html[data-mode="h5"] .second__cards {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

html[data-mode="h5"] .second__card {
    width: 100%;
    max-width: 6.7rem;
}

html[data-mode="h5"] .second__card-img {
    width: 100%;
    height: 4.2rem;
    margin-bottom: 0.24rem;
}

html[data-mode="h5"] .second__card-title {
    font-size: 0.28rem;
    margin-bottom: 0.12rem;
}

html[data-mode="h5"] .second__card-desc {
    font-size: 0.22rem;
    line-height: 1.6;
}

/* ---------- 第三屏 Project Delivery Support（tab + 图片） ---------- */
html[data-mode="h5"] .services-main .third {
    height: auto;
    min-height: 0;
}

html[data-mode="h5"] .third__inner {
    height: auto;
    padding: 0.7rem 0.4rem 0.5rem;
    box-sizing: border-box;
}

html[data-mode="h5"] .third__header {
    margin-bottom: 0.4rem;
}

html[data-mode="h5"] .third__title {
    font-size: 0.42rem;
}

html[data-mode="h5"] .third__subtitle {
    font-size: 0.24rem;
}

html[data-mode="h5"] .third__content {
    flex: none;
    max-height: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.5rem;
    max-width: 100%;
}

html[data-mode="h5"] .third__list {
    flex: none;
    width: 100%;
    max-width: 100%;
}

html[data-mode="h5"] .third__item {
    padding: 0.28rem 0;
}

html[data-mode="h5"] .third__item-title {
    font-size: 0.28rem;
}

html[data-mode="h5"] .third__item-desc {
    font-size: 0.22rem;
    line-height: 1.6;
}

/* h5 下展开描述允许更高，避免文本被截断 */
html[data-mode="h5"] .third__item.is-active .third__item-desc {
    max-height: 1.8rem;
    margin-top: 0.12rem;
}

html[data-mode="h5"] .third__image-wrap {
    width: 100%;
    height: 3.6rem;
    flex: none;
}

html[data-mode="h5"] .third__footer {
    font-size: 0.22rem;
    line-height: 1.7;
    margin-top: 0.6rem;
}

/* ---------- 第四屏 After-Sales Technical Support（2×2 → 单列） ---------- */
html[data-mode="h5"] .services-main .fourth {
    height: auto;
    padding: 0.7rem 0.4rem;
}

html[data-mode="h5"] .fourth__inner {
    height: auto;
}

html[data-mode="h5"] .fourth__header {
    margin-bottom: 0.4rem;
}

html[data-mode="h5"] .fourth__title {
    font-size: 0.42rem;
    margin-bottom: 0.12rem;
}

html[data-mode="h5"] .fourth__subtitle {
    font-size: 0.24rem;
}

html[data-mode="h5"] .fourth__cards {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    row-gap: 0.3rem;
    flex: none;
    width: 100%;
}

html[data-mode="h5"] .fourth__card {
    padding: 0.32rem 0.3rem;
    min-height: 0;
}

html[data-mode="h5"] .fourth__card-head {
    gap: 0.24rem;
    margin-bottom: 0.24rem;
}

html[data-mode="h5"] .fourth__card-index {
    font-size: 0.2rem;
}

html[data-mode="h5"] .fourth__card-title {
    font-size: 0.26rem;
}

html[data-mode="h5"] .fourth__card-body {
    gap: 0.28rem;
}

html[data-mode="h5"] .fourth__card-icon {
    flex: 0 0 0.9rem;
    width: 0.9rem;
    height: 0.9rem;
}

html[data-mode="h5"] .fourth__card-icon img {
    width: 0.42rem;
    height: 0.42rem;
}

html[data-mode="h5"] .fourth__card-desc {
    font-size: 0.22rem;
    line-height: 1.7;
}

/* ---------- 第五屏 Discuss Your Project ---------- */
html[data-mode="h5"] .services-main .fifth {
    height: auto;
    padding: 0.9rem 0;
}

html[data-mode="h5"] .fifth__inner {
    padding: 0 0.4rem;
}

html[data-mode="h5"] .fifth__title {
    font-size: 0.42rem;
    line-height: 1.3;
    margin-bottom: 0.24rem;
}

html[data-mode="h5"] .fifth__desc {
    font-size: 0.24rem;
    line-height: 1.7;
    max-width: 100%;
    margin: 0 auto 0.4rem;
}

html[data-mode="h5"] .fifth__btn {
    padding: 0.2rem 0.44rem;
    font-size: 0.22rem;
    border-radius: 0.5rem;
}

/* ---------- 页脚 ---------- */
html[data-mode="h5"] .footer__main {
    padding: 0.6rem 0.4rem 0.5rem;
}

html[data-mode="h5"] .footer__links {
    flex-wrap: wrap;
    gap: 0.3rem 0.2rem;
}

html[data-mode="h5"] .footer__col {
    flex: 1 1 40%;
    min-width: 2.6rem;
}

html[data-mode="h5"] .footer__contact-item {
    font-size: 0.2rem;
}

html[data-mode="h5"] .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    margin-top: 0.4rem;
    padding-top: 0.3rem;
}

html[data-mode="h5"] .footer__logo {
    width: 4rem;
    height: auto;
}

html[data-mode="h5"] .footer__bar {
    flex-direction: column;
    height: auto;
    padding: 0.18rem 0.4rem;
    gap: 0.1rem;
}

/* ---------- 浮动侧边栏 ---------- */
html[data-mode="h5"] .float-bar {
    right: 0.2rem;
    bottom: 1.2rem;
    gap: 0.16rem;
    padding: 0.14rem 0.12rem;
}

html[data-mode="h5"] .float-bar__btn {
    width: 0.8rem;
    height: 0.8rem;
}

html[data-mode="h5"] .float-bar__btn img {
    width: 0.38rem;
    height: 0.38rem;
}