/* ============================================================
   About Factory 页面（工厂页）专属样式
   与 about.html 完全解耦：首屏样式独立维护，不依赖 css/about.css
   ============================================================ */
.about-main {
    background: #fff;
}

/* 首屏 About Factory banner（1920×600） */
.first {
    position: relative;
    width: 100%;
    max-width: 19.2rem;
    margin: 0 auto;
    background: #000;
    overflow: hidden;
    height: 6rem;
}

.first__viewport {
    position: relative;
    width: 100%;
    padding-top: 31.25%;
}

.first__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.first__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.18) 55%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.first__content {
    position: absolute;
    left: 3.1rem;
    bottom: 0.84rem;
    z-index: 2;
    color: #fff;
}

.first__title {
    color: #FFF;
    font-family: Gabarito;
    font-size: 0.56rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 0.1rem;
}

.first__desc {
    color: #CCC;
    font-family: Gabarito;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

/* ----------------------------------------------------------------
   第二屏：工厂概览（1920×486）
   结构：左侧介绍文案 + 右侧 2×2 数据卡片网格
   动效：进入视口时整体淡入上移，数据卡片 countUp + 错峰入场
   ---------------------------------------------------------------- */
.factory-second {
    position: relative;
    width: 100%;
    max-width: 19.2rem;
    height: 4.86rem;
    margin: 0 auto;
    background: #f4f7fa;
    overflow: hidden;
}

.factory-second__inner {
    width: 100%;
    height: 100%;
    padding: 0 3.7rem;
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.factory-second__intro {
    flex: 1 1 auto;
    min-width: 4.4rem;
    color: #666;
    font-family: Gabarito;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.factory-second__intro p {
    margin: 0 0 0.18rem;
}

.factory-second__intro p:last-child {
    margin-bottom: 0;
}

.factory-second__grid {
    flex: 0 0 8rem;
    display: grid;
    grid-template-columns: repeat(2, 0fr);
    column-gap: 0.4rem;
    row-gap: 0;
}

.factory-stat {
    padding: 0.32rem 0 0.2rem;
    width: 2.6rem;
}

.factory-stat__head {
    gap: 0.2rem;
}

.factory-stat__num {
    display: flex;
    align-items: baseline;
    color: #333;
    font-family: Gabarito;
    font-size: 0.64rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.factory-stat__num--accent {
    background: linear-gradient(90deg, #00B8E2 0%, #0063C3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.factory-stat__label {
    color: #666;
    font-family: Gabarito;
    font-size: 0.2rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

/* 第二屏入场动画：默认隐藏，进入视口时上浮淡入 */
html.js .factory-second:not(.is-in-view):not(.factory-second--played) .factory-second__intro,
html.js .factory-second:not(.is-in-view):not(.factory-second--played) .factory-stat {
    opacity: 0;
    transform: translateY(0.2rem);
    will-change: opacity, transform;
}

.factory-second.is-in-view .factory-second__intro,
.factory-second.is-in-view .factory-stat {
    animation-name: factorySecondFadeUp;
    animation-duration: 0.7s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    animation-fill-mode: both;
}

.factory-second.is-in-view .factory-second__intro {
    animation-delay: 0s;
}

.factory-second.is-in-view .factory-stat:nth-child(1) {
    animation-delay: 0.05s;
}

.factory-second.is-in-view .factory-stat:nth-child(2) {
    animation-delay: 0.15s;
}

.factory-second.is-in-view .factory-stat:nth-child(3) {
    animation-delay: 0.25s;
}

.factory-second.is-in-view .factory-stat:nth-child(4) {
    animation-delay: 0.35s;
}

@keyframes factorySecondFadeUp {
    from {
        opacity: 0;
        transform: translateY(0.2rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----------------------------------------------------------------
   第四屏：Our Facility 工厂实景轮播（1920×1000）
   效果：5 张图轮流作为左侧主图，其余 4 张在右侧 2×2 网格中展示；
         点击缩略图或圆点切换，整屏淡入淡出自动轮播。
   ---------------------------------------------------------------- */
.factory-fourth {
    position: relative;
    width: 100%;
    max-width: 19.2rem;
    height: 10rem;
    margin: 0 auto;
    background: #fff;
    overflow: hidden;
}

.factory-fourth__inner {
    width: 100%;
    height: 100%;
    padding: 0.6rem 0.6rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.factory-fourth__head {
    text-align: center;
    margin-bottom: 0.6rem;
}

.factory-fourth__title {
    color: #333;
    font-family: Gabarito;
    font-size: 0.48rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 0.1rem;
}

.factory-fourth__subtitle {
    color: #999;
    text-align: center;
    font-family: Gabarito;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.factory-fourth__carousel {
    position: relative;
    width: 17.97rem;
    height: 6.3rem;
    flex: none;
}

.factory-fourth__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.factory-fourth__slide {
    position: absolute;
    inset: 0;
    display: flex;
    gap: 0.3rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    will-change: opacity, visibility;
}

.factory-fourth__slide.is-active {
    opacity: 1;
    visibility: visible;
}

.factory-fourth__main {
    flex: 0 0 8.97rem;
    width: 8.97rem;
    height: 6.3rem;
    overflow: hidden;
}

.factory-fourth__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.factory-fourth__thumbs {
    flex: 0 0 8.7rem;
    width: 8.7rem;
    height: 6.3rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0.3rem;
}

.factory-fourth__thumb {
    position: relative;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
    cursor: pointer;
    outline: none;
}

.factory-fourth__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.factory-fourth__thumb:hover img,
.factory-fourth__thumb:focus img {
    transform: scale(1.05);
}

.factory-fourth__dots {
    position: absolute;
    left: 50%;
    bottom: -0.5rem;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.12rem;
}

.factory-fourth__dots button {
    width: 0.4rem;
    height: 0.04rem;
    border: none;
    padding: 0;
    background: #D9D9D9;
    cursor: pointer;
    outline: none;
    transition: background 0.3s ease, width 0.3s ease;
}

.factory-fourth__dots button:hover {
    background: #999;
}

.factory-fourth__dots button.is-active,
.factory-fourth__dots button:focus {
    background: #333333;
    width: 0.8rem;
}

/* ---------- 第三屏：Factory Capabilities（1920×689） ---------- */
.third {
    position: relative;
    width: 100%;
    max-width: 19.2rem;
    height: 6.89rem;
    margin: 0 auto;
    background: #fff;
    overflow: hidden;
    box-sizing: border-box;
}

.third__inner {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0.6rem 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.third__header {
    text-align: center;
    margin-bottom: 0.6rem;
}

.third__title {
    margin: 0 0 0.1rem;
    color: #333;
    font-family: Gabarito;
    font-size: 0.48rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.third__subtitle {
    margin: 0;
    color: #999;
    text-align: center;
    font-family: Gabarito;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.third__carousel {
    position: relative;
    width: 100%;
    height: 3.4rem;
    overflow: hidden;
    flex-shrink: 0;
}

.third__track {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: transform 0.7s cubic-bezier(0.45, 0.05, 0.2, 1);
    will-change: transform;
}

.third__card {
    flex: 0 0 6.2rem;
    width: 6.2rem;
    height: 3.4rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.third__card-inner {
    width: 100%;
    height: 100%;
    background: #FFF;
    border: 1px solid #D9D9D9;
    border-radius: 0.1rem;
    padding: 0.82rem 0.46rem 0 0.63rem;
    box-sizing: border-box;
    transition: background 0.5s ease, border-color 0.5s ease;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 0.3rem;
}

.third__card.is-active .third__card-inner {
    background: #F5F5F5;
    border-color: transparent;
}

.third__card-inner.no-transition {
    transition: none !important;
}

.third__icon-wrap {
    flex: 0 0 1.1rem;
    width: 1.1rem;
    height: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.5s ease;
}

.third__card.is-active .third__icon-wrap {
    background: #CDA875;
}

.third__icon {
    width: 0.56rem;
    height: 0.56rem;
    object-fit: contain;
    flex-shrink: 0;
    filter: grayscale(1) opacity(0.5);
    transition: filter 0.5s ease;
}

.third__card.is-active .third__icon {
    filter: none;
}

.third__text {
    flex: 1;
    min-width: 0;
}

.third__card-title {
    color: #333;
    font-family: Gabarito;
    font-size: 0.22rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0 0 0.12rem;
    transition: color 0.5s ease;
}

.third__card-desc {
    color: #666;
    font-family: Gabarito;
    font-size: 0.14rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin: 0;
    transition: color 0.5s ease;
}

.third__dots {
    margin-top: 0.3rem;
    display: flex;
    gap: 0.12rem;
    align-items: center;
}

.third__dot {
    width: 0.4rem;
    height: 0.04rem;
    padding: 0;
    border: none;
    background: #F0F0F0;
    cursor: pointer;
    outline: none;
    transition: background 0.3s ease, width 0.3s ease;
}

.third__dot:hover {
    background: #CDA875;
    opacity: 0.7;
}

.third__dot.is-active {
    background: #CDA875;
    width: 0.8rem;
}

/* ----------------------------------------------------------------
   第五屏：Production and Test Equipment（1920×743）
   结构：左侧介绍文案 + 右侧横向滚动图组
   动效：点击左右按钮 / 圆点，图组平滑滚动切换
   ---------------------------------------------------------------- */
.fifth {
    position: relative;
    width: 100%;
    max-width: 19.2rem;
    height: 7.43rem;
    margin: 0 auto;
    background: #000;
    overflow: hidden;
}

.fifth__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fifth__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.62) 0%,
            rgba(0, 0, 0, 0.35) 48%,
            rgba(0, 0, 0, 0.18) 100%);
    pointer-events: none;
}

.fifth__inner {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    padding: 1.75rem 0 0 3.1rem;
    box-sizing: border-box;
}

.fifth__content {
    min-width: 5.4rem;
    color: #fff;
    margin-right: 0.79rem;
    display: flex;
    flex-direction: column;
}

.fifth__label {
    display: flex;
    align-items: center;
    gap: 0.12rem;
    margin-bottom: 0.2rem;
    color: #CCC;
    font-family: Gabarito;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.fifth__icon {
    flex: 0 0 auto;
    width: 0.28rem;
    height: 0.28rem;
    object-fit: contain;
}

.fifth__title {
    margin: 0 0 0.2rem;
    color: #FFF;
    font-family: Gabarito;
    font-size: 0.48rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.fifth__title-accent {
    background: linear-gradient(90deg, #00B8E2 0%, #0063C3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.fifth__desc {
    margin: 0 0 0.46rem;
    color: #999;
    font-family: Gabarito;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.fifth__btn {
    padding: 0.14rem 0.4rem;
    width: max-content;
    border-radius: 0.1rem;
    cursor: pointer;
    background: linear-gradient(90deg, #00B8E2 0%, #0063C3 100%);
    background-size: 150% 100%;
    background-position: 0% 0%;
    color: #FFF;
    font-family: Gabarito;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    box-shadow: 0 0.04rem 0.1rem rgba(0, 99, 195, 0.35);
    transition: background-position 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.fifth__btn:hover {
    background-position: 100% 0%;
    transform: translateY(-0.02rem);
    box-shadow: 0 0.08rem 0.18rem rgba(0, 99, 195, 0.45);
}

/* ---- 右侧横向滚动切换 ---- */
.fifth__carousel {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.fifth__track {
    display: flex;
    align-items: flex-start;
    gap: 0.2rem;
    width: max-content;
    will-change: transform;
}

.fifth__slide {
    flex: 0 0 4.17rem;
    width: 4.17rem;
    height: 3.4rem;
    border-radius: 0.06rem;
    overflow: hidden;
    background: #222;
}

.fifth__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fifth__controls {
    position: absolute;
    right: 3.1rem;
    bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.12rem;
}

.fifth__arrow {
    position: relative;
    width: 0.6rem;
    height: 0.6rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(0, 0, 0, 0.25);
    color: #FFF;
    font-family: Gabarito;
    font-size: 0.22rem;
    line-height: 1;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.3s ease, opacity 0.3s ease;
    outline: none;
}

.fifth__arrow span {
    position: relative;
    z-index: 1;
}

.fifth__arrow::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #00B8E2 0%, #0063C3 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fifth__arrow:hover:not(:disabled) {
    border-color: transparent;
}

.fifth__arrow:hover:not(:disabled)::before {
    opacity: 1;
}

.fifth__arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ==================== sixth ==================== */
.sixth {
    position: relative;
    width: 100%;
    max-width: 19.2rem;
    height: 7.16rem;
    margin: 0 auto;
    overflow: hidden;
}

.sixth__inner {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 1.1rem 3.1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-sizing: border-box;
}

.sixth__bg {
    position: absolute;
    inset: 0;
    background: url('../assets/images/aboutFactory/sixth-img1.png') no-repeat center/cover;
    z-index: 0;
}

.sixth__left,
.sixth__right {
    position: relative;
    z-index: 1;
}

.sixth__left {
    flex: 0 0 5.7rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sixth__header {
    margin-bottom: 0.5rem;
}

.sixth__title {
    color: #333;
    font-family: Gabarito;
    font-size: 0.48rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0 0 0.1rem;
}

.sixth__subtitle {
    color: #999;
    font-family: Gabarito;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin: 0;
}

.sixth__tabs {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.sixth__tab {
    display: flex;
    align-items: center;
    gap: 0.16rem;
    padding: 0.26rem 0;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.sixth__tab:nth-child(1),
.sixth__tab:nth-child(2) {
    border-bottom: 1px solid #D9D9D9;
}

.sixth__tab-num {
    font-family: Gabarito, sans-serif;
    font-size: 0.3rem;
    font-weight: 400;
    font-style: normal;
    line-height: normal;
    color: #999;
    transition: color 0.35s ease, font-size 0.35s ease;
    min-width: 0.5rem;
}

.sixth__tab.is-active .sixth__tab-num {
    color: #333;
    font-size: 0.48rem;
}

.sixth__tab-text {
    font-family: Gabarito, sans-serif;
    font-size: 0.2rem;
    font-weight: 700;
    font-style: normal;
    line-height: 150%;
    color: #999;
    transition: color 0.35s ease, font-size 0.35s ease;
}

.sixth__tab.is-active .sixth__tab-text {
    color: #333;
    font-size: 0.24rem;
}

.sixth__right {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sixth__panels {
    position: relative;
    width: 100%;
}

.sixth__panel {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(0.7rem) scale(0.94);
    filter: blur(10px);
    transition: opacity 0.65s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1), filter 0.65s ease, visibility 0.75s ease;
    will-change: opacity, transform, filter;
}

.sixth__panel.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    filter: blur(0);
}

.sixth__img-wrap {
    width: 5.98rem;
    height: 3.5rem;
    border-radius: 0.1rem;
    overflow: hidden;
    margin-bottom: 0.37rem;
}

.sixth__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.15);
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.sixth__panel.is-active .sixth__img-wrap img {
    transform: scale(1);
}

.sixth__desc {
    color: #666;
    font-family: Gabarito;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    max-width: 5.98rem;
    opacity: 0;
    transform: translateY(0.28rem);
    transition: opacity 0.6s ease 0.18s, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.18s;
}

.sixth__panel.is-active .sixth__desc {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================
   第三 ~ 五屏：滚动入场动画（IntersectionObserver 触发）
   进入视口前隐藏（html.js 下），进入视口后播放个性化入场：
   - 第三屏：标题下滑入 + 能力卡片逐张上浮 + 圆点淡入
   - 第四屏：标题下滑入 + 主图缩放淡入 + 缩略图阶梯上浮 + 圆点淡入
   - 第五屏：背景缓慢缩放 + 左侧文案左移淡入 + 右侧图组右移淡入
   ================================================================ */

/* ---- 默认隐藏（仅在 JS 启用时），--played 后保持可见 ---- */
html.js .third:not(.third--played) .third__header,
html.js .third:not(.third--played) .third__card,
html.js .third:not(.third--played) .third__dots,
html.js .factory-fourth:not(.factory-fourth--played) .factory-fourth__head,
html.js .factory-fourth:not(.factory-fourth--played) .factory-fourth__main,
html.js .factory-fourth:not(.factory-fourth--played) .factory-fourth__thumb,
html.js .factory-fourth:not(.factory-fourth--played) .factory-fourth__dots,
html.js .fifth:not(.fifth--played) .fifth__bg,
html.js .fifth:not(.fifth--played) .fifth__shade,
html.js .fifth:not(.fifth--played) .fifth__content>*,
html.js .fifth:not(.fifth--played) .fifth__carousel {
    opacity: 0;
    will-change: opacity, transform;
}

/* ---- 第三屏 ---- */
html.js .third.is-in-view .third__header,
html.js .third.is-in-view .third__card,
html.js .third.is-in-view .third__dots {
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    animation-fill-mode: both;
}

html.js .third.is-in-view .third__header {
    animation-name: factoryThirdHeaderIn;
    animation-duration: 0.6s;
}

html.js .third.is-in-view .third__card {
    animation-name: factoryThirdCardIn;
    animation-duration: 0.65s;
}

html.js .third.is-in-view .third__card:nth-child(1) {
    animation-delay: 0.05s;
}

html.js .third.is-in-view .third__card:nth-child(2) {
    animation-delay: 0.15s;
}

html.js .third.is-in-view .third__card:nth-child(3) {
    animation-delay: 0.25s;
}

html.js .third.is-in-view .third__dots {
    animation-name: factoryThirdDotsIn;
    animation-duration: 0.5s;
    animation-delay: 0.35s;
}

/* ---- 第四屏 ---- */
html.js .factory-fourth.is-in-view .factory-fourth__head,
html.js .factory-fourth.is-in-view .factory-fourth__main,
html.js .factory-fourth.is-in-view .factory-fourth__thumb,
html.js .factory-fourth.is-in-view .factory-fourth__dots {
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    animation-fill-mode: both;
}

html.js .factory-fourth.is-in-view .factory-fourth__head {
    animation-name: factoryFourthHeadIn;
    animation-duration: 0.6s;
}

html.js .factory-fourth.is-in-view .factory-fourth__main {
    animation-name: factoryFourthMainIn;
    animation-duration: 0.75s;
    animation-delay: 0.08s;
}

html.js .factory-fourth.is-in-view .factory-fourth__thumb {
    animation-name: factoryFourthThumbIn;
    animation-duration: 0.55s;
}

html.js .factory-fourth.is-in-view .factory-fourth__thumb:nth-child(1) {
    animation-delay: 0.12s;
}

html.js .factory-fourth.is-in-view .factory-fourth__thumb:nth-child(2) {
    animation-delay: 0.2s;
}

html.js .factory-fourth.is-in-view .factory-fourth__thumb:nth-child(3) {
    animation-delay: 0.28s;
}

html.js .factory-fourth.is-in-view .factory-fourth__thumb:nth-child(4) {
    animation-delay: 0.36s;
}

html.js .factory-fourth.is-in-view .factory-fourth__dots {
    animation-name: factoryFourthDotsIn;
    animation-duration: 0.5s;
    animation-delay: 0.45s;
}

/* ---- 第五屏 ---- */
html.js .fifth.is-in-view .fifth__bg,
html.js .fifth.is-in-view .fifth__shade,
html.js .fifth.is-in-view .fifth__content>*,
html.js .fifth.is-in-view .fifth__carousel {
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    animation-fill-mode: both;
}

html.js .fifth.is-in-view .fifth__bg {
    animation-name: factoryFifthBgIn;
    animation-duration: 1s;
}

html.js .fifth.is-in-view .fifth__shade {
    animation-name: factoryFifthDotsIn;
    animation-duration: 0.8s;
}

html.js .fifth.is-in-view .fifth__content>* {
    animation-name: factoryFifthContentIn;
    animation-duration: 0.6s;
}

html.js .fifth.is-in-view .fifth__label {
    animation-delay: 0.05s;
}

html.js .fifth.is-in-view .fifth__title {
    animation-delay: 0.15s;
}

html.js .fifth.is-in-view .fifth__desc {
    animation-delay: 0.25s;
}

html.js .fifth.is-in-view .fifth__btn {
    animation-delay: 0.35s;
}

html.js .fifth.is-in-view .fifth__carousel {
    animation-name: factoryFifthCarouselIn;
    animation-duration: 0.75s;
    animation-delay: 0.3s;
}

/* ---- 关键帧 ---- */
@keyframes factoryThirdHeaderIn {
    from {
        opacity: 0;
        transform: translateY(-0.25rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes factoryThirdCardIn {
    from {
        opacity: 0;
        transform: translateY(0.3rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes factoryThirdDotsIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes factoryFourthHeadIn {
    from {
        opacity: 0;
        transform: translateY(-0.25rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes factoryFourthMainIn {
    from {
        opacity: 0;
        transform: scale(1.06);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes factoryFourthThumbIn {
    from {
        opacity: 0;
        transform: translateY(0.25rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes factoryFourthDotsIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes factoryFifthBgIn {
    from {
        opacity: 0.5;
        transform: scale(1.07);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes factoryFifthContentIn {
    from {
        opacity: 0;
        transform: translateX(-0.35rem);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes factoryFifthCarouselIn {
    from {
        opacity: 0;
        transform: translateX(0.5rem);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ---- 第六屏：入场动画 ---- */
html.js .sixth:not(.sixth--played) .sixth__header,
html.js .sixth:not(.sixth--played) .sixth__tabs,
html.js .sixth:not(.sixth--played) .sixth__panels {
    opacity: 0;
    will-change: opacity, transform;
}

html.js .sixth.is-in-view .sixth__header,
html.js .sixth.is-in-view .sixth__tabs,
html.js .sixth.is-in-view .sixth__panels {
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    animation-fill-mode: both;
}

html.js .sixth.is-in-view .sixth__header {
    animation-name: factorySixthLeftIn;
    animation-duration: 0.7s;
}

html.js .sixth.is-in-view .sixth__tabs {
    animation-name: factorySixthLeftIn;
    animation-duration: 0.7s;
    animation-delay: 0.12s;
}

html.js .sixth.is-in-view .sixth__panels {
    animation-name: factorySixthRightIn;
    animation-duration: 0.8s;
    animation-delay: 0.2s;
}

@keyframes factorySixthLeftIn {
    from {
        opacity: 0;
        transform: translateX(-0.4rem);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes factorySixthRightIn {
    from {
        opacity: 0;
        transform: translateY(0.45rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== seventh ==================== */
.seventh {
    position: relative;
    width: 100%;
    max-width: 19.2rem;
    height: 8.62rem;
    margin: 0 auto;
    overflow: hidden;
    color: #fff;
}

.seventh__bg {
    position: absolute;
    inset: 0;
    background: #000 url('../assets/images/aboutFactory/seventh-img1.png') no-repeat center/cover;
    z-index: 0;
}

.seventh__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 0.91rem 3.1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.seventh__header {
    text-align: center;
    margin-bottom: 0.76rem;
}

.seventh__title {
    color: #FFF;
    text-align: center;
    font-family: Gabarito;
    font-size: 0.48rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 10px;
}

.seventh__subtitle {
    color: #999;
    text-align: center;
    font-family: Gabarito;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin: 0 0 0.2rem;
}

.seventh__desc {
    margin: 0 auto;
    color: #FFF;
    text-align: center;
    font-family: Gabarito;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.seventh__desc p+p {
    margin-top: 0.08rem;
}

.seventh__carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.seventh__track {
    display: flex;
    width: 100%;
    min-height: 3.62rem;
    transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.seventh__slide {
    flex: 0 0 100%;
    width: 100%;
}

.seventh__slide.is-active .seventh__card {
    animation: seventhCardIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.seventh__slide.is-active .seventh__card:nth-child(1) {
    animation-delay: 0.08s;
}

.seventh__slide.is-active .seventh__card:nth-child(2) {
    animation-delay: 0.18s;
}

.seventh__slide.is-active .seventh__card:nth-child(3) {
    animation-delay: 0.28s;
}

.seventh__slide.is-active .seventh__card:nth-child(4) {
    animation-delay: 0.38s;
}

@keyframes seventhCardIn {
    from {
        opacity: 0;
        transform: translateY(0.35rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.seventh__cards {
    display: flex;
    gap: 0.3rem;
    justify-content: center;
    width: 100%;
}

.seventh__card {
    flex: 0 0 3.02rem;
    width: 3.02rem;
    border-radius: 0.08rem;
    overflow: hidden;
    background: rgba(20, 20, 20, 0.65);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s ease;
}

.seventh__card:hover {
    transform: translateY(-0.08rem);
    box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.4);
}

.seventh__card-img {
    width: 3.02rem;
    height: 2.32435rem;
    overflow: hidden;
}

.seventh__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.08);
    transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.seventh__slide.is-active .seventh__card-img img {
    transform: scale(1);
}

.seventh__card:hover .seventh__card-img img {
    transform: scale(1.12);
}

.seventh__card-body {
    width: 3.02rem;
    height: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #333;
    padding-top: 0.2rem;
}

.seventh__card-title {
    color: #FFF;
    text-align: center;
    font-family: Gabarito;
    font-size: 0.2rem;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
}

.seventh__card-desc {
    color: #CCC;
    text-align: center;
    font-family: Gabarito;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.seventh__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    margin-top: 0.45rem;
}

.seventh__dot {
    width: 0.3rem;
    height: 0.03rem;
    border: none;
    border-radius: 0.015rem;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: background 0.35s ease, width 0.35s ease;
    outline: none;
}

.seventh__dot.is-active {
    background: #fff;
    width: 0.5rem;
}

.seventh__dot:hover:not(.is-active) {
    background: rgba(255, 255, 255, 0.5);
}

/* ----------------------------------------------------------------
   第八屏：FAQ（1920×987）
   结构：居中标题 + 手风琴问答列表
   动效：点击展开/折叠（grid-template-rows 过渡），箭头旋转
   ---------------------------------------------------------------- */
.eighth {
    position: relative;
    width: 100%;
    max-width: 19.2rem;
    height: 9.87rem;
    margin: 0 auto;
    background: #f4f7fa;
    overflow: hidden;
    box-sizing: border-box;
}

.eighth__inner {
    width: 100%;
    height: 100%;
    padding: 0.7rem 3.1rem 0.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.eighth__head {
    text-align: center;
    margin-bottom: 0.62rem;
}

.eighth__title {
    color: #333;
    font-family: Gabarito;
    font-size: 0.48rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0 0 0.1rem;
}

.eighth__subtitle {
    color: #666;
    text-align: center;
    font-family: Gabarito;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.eighth__list {
    width: 100%;
    max-width: 11.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.eighth__item {
    background: #fff;
    border-radius: 0.08rem;
    box-shadow: 0 0.02rem 0.08rem rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.eighth__item:hover {
    box-shadow: 0 0.04rem 0.14rem rgba(0, 0, 0, 0.1);
}

.eighth__question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.24rem 0.3rem;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    outline: none;
}

.eighth__qmark {
    flex-shrink: 0;
    width: 0.4rem;
    height: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00B8E2 0%, #0063C3 100%);
    color: #FFF;
    text-align: center;
    font-family: Gabarito;
    font-size: 0.2rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.eighth__qtext {
    flex: 1;
    color: #333;
    font-family: Gabarito;
    font-size: 0.2rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.eighth__item.is-open .eighth__qtext {
    font-weight: 700;
}

.eighth__arrow {
    flex-shrink: 0;
    width: 0.1rem;
    height: 0.1rem;
    position: relative;
    background: #333333;
    clip-path: polygon(0 0, 62% 50%, 0 100%, 18% 100%, 80% 50%, 18% 0);
    transform: rotate(0deg);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    margin-right: 0.04rem;
}

.eighth__arrow::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #00B8E2 0%, #0063C3 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.eighth__item.is-open .eighth__arrow {
    transform: rotate(90deg);
}

.eighth__item.is-open .eighth__arrow::after {
    opacity: 1;
}

.eighth__answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.eighth__item.is-open .eighth__answer {
    grid-template-rows: 1fr;
}

.eighth__answer-inner {
    overflow: hidden;
}

.eighth__answer-inner p {
    margin: 0;
    padding: 0.16rem 0.3rem 0.24rem 0.86rem;
    color: #666;
    font-family: Gabarito;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    border-top: 1px solid #eee;
}

/* ---- 第八屏入场动画 ---- */
html.js .eighth:not(.eighth--played) .eighth__head,
html.js .eighth:not(.eighth--played) .eighth__item {
    opacity: 0;
    transform: translateY(0.2rem);
    will-change: opacity, transform;
}

html.js .eighth.is-in-view .eighth__head,
html.js .eighth.is-in-view .eighth__item {
    animation-name: eighthFadeUp;
    animation-duration: 0.65s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    animation-fill-mode: both;
}

html.js .eighth.is-in-view .eighth__head {
    animation-delay: 0s;
}

html.js .eighth.is-in-view .eighth__item:nth-child(1) {
    animation-delay: 0.06s;
}

html.js .eighth.is-in-view .eighth__item:nth-child(2) {
    animation-delay: 0.12s;
}

html.js .eighth.is-in-view .eighth__item:nth-child(3) {
    animation-delay: 0.18s;
}

html.js .eighth.is-in-view .eighth__item:nth-child(4) {
    animation-delay: 0.24s;
}

html.js .eighth.is-in-view .eighth__item:nth-child(5) {
    animation-delay: 0.3s;
}

@keyframes eighthFadeUp {
    from {
        opacity: 0;
        transform: translateY(0.2rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   H5 移动端适配（data-mode="h5"，750 设计稿基准）
   与 technology / oem-odm / services / about 等页面同一套适配规范
   ============================================================ */
/* ---------- 汉堡菜单按钮（与其他页面一致） ---------- */
/* 桌面端默认隐藏，仅移动端显示 */
.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（与 oem-odm 页高度对齐） ---------- */
html[data-mode="h5"] .first {
    height: auto;
    min-height: 5.85rem;
    box-sizing: border-box;
}

html[data-mode="h5"] .first__viewport {
    position: absolute;
    inset: 0;
    height: 100%;
    padding-top: 0;
}

html[data-mode="h5"] .first__content {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 3.4rem 0.4rem 0.6rem;
    box-sizing: border-box;
}

html[data-mode="h5"] .first__title {
    font-size: 0.42rem;
    margin-bottom: 0.1rem;
}

html[data-mode="h5"] .first__desc {
    font-size: 0.26rem;
    line-height: 1.6;
    max-width: 100%;
}

/* ---------- 第二屏 工厂概览 ---------- */
html[data-mode="h5"] .factory-second {
    height: auto;
}

html[data-mode="h5"] .factory-second__inner {
    height: auto;
    padding: 0.6rem 0.4rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

html[data-mode="h5"] .factory-second__intro {
    min-width: 0;
    font-size: 0.24rem;
    line-height: 1.7;
}

html[data-mode="h5"] .factory-second__intro p {
    margin-bottom: 0.2rem;
}

html[data-mode="h5"] .factory-second__grid {
    flex: none;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 0.3rem;
    row-gap: 0.3rem;
}

html[data-mode="h5"] .factory-stat {
    width: 100%;
    padding: 0.24rem 0 0.16rem;
}

html[data-mode="h5"] .factory-stat__num {
    font-size: 0.5rem;
}

html[data-mode="h5"] .factory-stat__label {
    font-size: 0.22rem;
    line-height: 1.5;
}

/* ---------- 第三屏 Factory Capabilities（横滑卡片） ---------- */
html[data-mode="h5"] .third {
    height: auto;
    padding-bottom: 0.5rem;
}

html[data-mode="h5"] .third__inner {
    height: auto;
    padding: 0.6rem 0 0;
}

html[data-mode="h5"] .third__header {
    margin-bottom: 0.4rem;
}

html[data-mode="h5"] .third__title {
    font-size: 0.42rem;
    margin-bottom: 0.1rem;
}

html[data-mode="h5"] .third__subtitle {
    font-size: 0.24rem;
}

html[data-mode="h5"] .third__carousel {
    height: 3.2rem;
}

html[data-mode="h5"] .third__card {
    flex: 0 0 3.5rem;
    width: 3.5rem;
    height: 3.2rem;
}

html[data-mode="h5"] .third__card-inner {
    padding: 0.34rem 0.28rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.14rem;
}

html[data-mode="h5"] .third__icon-wrap {
    flex: 0 0 0.8rem;
    width: 0.8rem;
    height: 0.8rem;
}

html[data-mode="h5"] .third__icon {
    width: 0.4rem;
    height: 0.4rem;
}

html[data-mode="h5"] .third__card-title {
    font-size: 0.22rem;
    line-height: 1.4;
    margin-bottom: 0.08rem;
}

html[data-mode="h5"] .third__card-desc {
    font-size: 0.18rem;
    line-height: 1.6;
}

html[data-mode="h5"] .third__dots {
    margin-top: 0.26rem;
}

/* ---------- 第四屏 Our Facility（主图 + 2×2 缩略图） ---------- */
html[data-mode="h5"] .factory-fourth {
    height: auto;
    padding-bottom: 0.7rem;
}

html[data-mode="h5"] .factory-fourth__inner {
    height: auto;
    padding: 0.6rem 0.4rem 0;
    justify-content: flex-start;
}

html[data-mode="h5"] .factory-fourth__head {
    margin-bottom: 0.4rem;
}

html[data-mode="h5"] .factory-fourth__title {
    font-size: 0.42rem;
    margin-bottom: 0.1rem;
}

html[data-mode="h5"] .factory-fourth__subtitle {
    font-size: 0.24rem;
}

html[data-mode="h5"] .factory-fourth__carousel {
    width: 100%;
    height: 6.5rem;
}

html[data-mode="h5"] .factory-fourth__track {
    height: 100%;
}

html[data-mode="h5"] .factory-fourth__slide {
    flex-direction: column;
    gap: 0.2rem;
}

html[data-mode="h5"] .factory-fourth__main {
    flex: 0 0 auto;
    width: 100%;
    height: 3.8rem;
}

html[data-mode="h5"] .factory-fourth__thumbs {
    flex: none;
    width: 100%;
    height: 2.5rem;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0.16rem;
}

html[data-mode="h5"] .factory-fourth__dots {
    bottom: -0.45rem;
}

/* ---------- 第五屏 Production and Test Equipment ---------- */
html[data-mode="h5"] .fifth {
    height: auto;
}

html[data-mode="h5"] .fifth__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    padding: 0.7rem 0.4rem;
}

html[data-mode="h5"] .fifth__content {
    min-width: 0;
    margin-right: 0;
    margin-bottom: 0.4rem;
}

html[data-mode="h5"] .fifth__label {
    font-size: 0.22rem;
    margin-bottom: 0.18rem;
}

html[data-mode="h5"] .fifth__icon {
    width: 0.32rem;
    height: 0.32rem;
}

html[data-mode="h5"] .fifth__title {
    font-size: 0.42rem;
    line-height: 1.3;
    margin-bottom: 0.18rem;
}

html[data-mode="h5"] .fifth__desc {
    font-size: 0.22rem;
    line-height: 1.7;
    margin-bottom: 0.3rem;
}

html[data-mode="h5"] .fifth__btn {
    padding: 0.18rem 0.36rem;
    font-size: 0.22rem;
    border-radius: 0.1rem;
}

html[data-mode="h5"] .fifth__carousel {
    width: 100%;
    height: 3rem;
    flex: none;
    align-self: stretch;
}

html[data-mode="h5"] .fifth__slide {
    flex: 0 0 4rem;
    width: 4rem;
    height: 2.6rem;
}

html[data-mode="h5"] .fifth__controls {
    right: 0.3rem;
    bottom: 0.18rem;
}

html[data-mode="h5"] .fifth__arrow {
    width: 0.72rem;
    height: 0.72rem;
    font-size: 0.28rem;
}

/* ---------- 第六屏 Research And Development ---------- */
html[data-mode="h5"] .sixth {
    height: auto;
}

html[data-mode="h5"] .sixth__inner {
    height: auto;
    padding: 0.7rem 0.4rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}

html[data-mode="h5"] .sixth__left {
    flex: none;
    width: 100%;
    height: auto;
}

html[data-mode="h5"] .sixth__header {
    margin-bottom: 0.3rem;
}

html[data-mode="h5"] .sixth__title {
    font-size: 0.42rem;
    line-height: 1.3;
    margin-bottom: 0.1rem;
}

html[data-mode="h5"] .sixth__subtitle {
    font-size: 0.22rem;
}

html[data-mode="h5"] .sixth__tab {
    padding: 0.22rem 0;
    gap: 0.16rem;
}

html[data-mode="h5"] .sixth__tab-num {
    font-size: 0.26rem;
    min-width: 0.44rem;
}

html[data-mode="h5"] .sixth__tab.is-active .sixth__tab-num {
    font-size: 0.34rem;
}

html[data-mode="h5"] .sixth__tab-text {
    font-size: 0.24rem;
    line-height: 1.5;
}

html[data-mode="h5"] .sixth__tab.is-active .sixth__tab-text {
    font-size: 0.26rem;
}

html[data-mode="h5"] .sixth__right {
    flex: none;
    width: 100%;
    height: auto;
}

html[data-mode="h5"] .sixth__img-wrap {
    width: 100%;
    height: 3.6rem;
    margin-bottom: 0.3rem;
}

html[data-mode="h5"] .sixth__desc {
    max-width: 100%;
    font-size: 0.22rem;
    line-height: 1.7;
}

/* ---------- 第七屏 Quality Control（4 卡 → 2×2） ---------- */
html[data-mode="h5"] .seventh {
    height: auto;
}

html[data-mode="h5"] .seventh__inner {
    height: auto;
    padding: 0.7rem 0.4rem 0.6rem;
}

html[data-mode="h5"] .seventh__header {
    margin-bottom: 0.5rem;
}

html[data-mode="h5"] .seventh__title {
    font-size: 0.42rem;
    margin-bottom: 0.1rem;
}

html[data-mode="h5"] .seventh__subtitle {
    font-size: 0.24rem;
    margin-bottom: 0.18rem;
}

html[data-mode="h5"] .seventh__desc {
    font-size: 0.22rem;
    line-height: 1.7;
}

html[data-mode="h5"] .seventh__track {
    min-height: 0;
}

html[data-mode="h5"] .seventh__cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.24rem;
}

html[data-mode="h5"] .seventh__card {
    flex: none;
    width: 100%;
}

html[data-mode="h5"] .seventh__card-img {
    width: 100%;
    height: 2.2rem;
}

html[data-mode="h5"] .seventh__card-body {
    width: 100%;
    height: auto;
    padding: 0.16rem 0.12rem;
}

html[data-mode="h5"] .seventh__card-title {
    font-size: 0.22rem;
}

html[data-mode="h5"] .seventh__card-desc {
    font-size: 0.18rem;
    line-height: 1.5;
}

html[data-mode="h5"] .seventh__dots {
    margin-top: 0.4rem;
}

/* ---------- 第八屏 FAQ ---------- */
html[data-mode="h5"] .eighth {
    height: auto;
}

html[data-mode="h5"] .eighth__inner {
    height: auto;
    padding: 0.7rem 0.4rem 0.6rem;
}

html[data-mode="h5"] .eighth__head {
    margin-bottom: 0.45rem;
}

html[data-mode="h5"] .eighth__title {
    font-size: 0.42rem;
    margin-bottom: 0.1rem;
}

html[data-mode="h5"] .eighth__subtitle {
    font-size: 0.24rem;
}

html[data-mode="h5"] .eighth__list {
    gap: 0.18rem;
}

html[data-mode="h5"] .eighth__question {
    padding: 0.22rem 0.24rem;
    gap: 0.16rem;
}

html[data-mode="h5"] .eighth__qmark {
    width: 0.5rem;
    height: 0.5rem;
    font-size: 0.24rem;
}

html[data-mode="h5"] .eighth__qtext {
    font-size: 0.24rem;
    line-height: 1.5;
}

html[data-mode="h5"] .eighth__answer-inner p {
    font-size: 0.22rem;
    line-height: 1.7;
    padding: 0.16rem 0.24rem 0.22rem 0.7rem;
}

/* ---------- 页脚 ---------- */
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;
}