.first {
    position: relative;
    height: 6rem;
    overflow: hidden;
    background: url("../assets/images/factory/img1.webp") center / cover no-repeat;
}

.first__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    height: 100%;
    padding: 0 1.6rem 0.87rem;
}

/* ---------- 入场动画 ---------- */
@keyframes first-hero-in {
    from {
        opacity: 0;
        transform: translateY(0.3rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.first__badge,
.first__title,
.first__desc {
    opacity: 0;
    animation: first-hero-in 0.7s var(--ease-out) forwards;
}

.first__badge {
    animation-delay: 0.1s;
}

.first__title {
    animation-delay: 0.25s;
}

.first__desc {
    animation-delay: 0.4s;
}

/* ---------- 徽标胶囊 ---------- */
.first__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0.81rem;
    height: 0.34rem;
    border: 0.01rem solid rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    color: #fff;
    font-size: 0.16rem;
    font-weight: 500;
}

/* ---------- 标题 / 描述 ---------- */
.first__title {
    max-width: 10.14rem;
    margin-top: 0.2rem;
    color: #fff;
    font-size: 0.48rem;
    font-weight: 600;
    line-height: 1.2;
}

.first__desc {
    max-width: 9.36rem;
    margin-top: 0.23rem;
    color: #fff;
    font-size: 0.16rem;
    font-weight: 500;
    line-height: 1.5;
}

html[data-mode="h5"] .first {
    height: auto;
    min-height: 3.6rem;
}

html[data-mode="h5"] .first__inner {
    max-width: none;
    padding: 1.1rem 0.4rem 0.6rem;
    height: 5rem;
}

html[data-mode="h5"] .first__badge {
    min-width: max-content;
    padding: 0 0.2rem;
    height: 0.48rem;
    font-size: 0.32rem;
}

html[data-mode="h5"] .first__title {
    max-width: 100%;
    margin-top: 0.24rem;
    font-size: 0.44rem;
}

html[data-mode="h5"] .first__desc {
    max-width: 100%;
    margin-top: 0.24rem;
    font-size: 0.32rem;
    display: none;
}

/* ============================================================
   第三屏：Factory Video（设计稿 384_6352，1400×700）
   - 内边距 0/0/0/100 → padding: 0 0 1rem，视频封面水平居中
   - 封面 14rem 宽、圆角 10、30% 黑色遮罩，悬浮遮罩减淡 + 播放键放大
   - 点击 Fancybox iframe 弹窗播放（绑定见 js/factory.js）
   - 入场：section data-reveal 淡入上浮
   ============================================================ */
.third {
    padding: 0 0 1rem;
}

.third__video {
    position: relative;
    display: block;
    width: 14rem;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0.1rem;
}

.third__video-cover {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1400 / 700;
}

/* 30% 黑色遮罩：悬浮减淡 */
.third__video::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.4s ease;
}

.third__video:hover::after {
    background: rgba(0, 0, 0, 0.12);
}

.third__video:focus-visible {
    outline: 0.02rem solid #0265B2;
    outline-offset: 0.02rem;
}

.third__video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 1.56rem;
    height: 1.56rem;
    transform: translate(-50%, -50%);
    transition: transform 0.4s var(--ease-out);
}

.third__video-play svg {
    display: block;
    width: 100%;
    height: 100%;
}

.third__video:hover .third__video-play {
    transform: translate(-50%, -50%) scale(1.1);
}

/* ---------- H5 ---------- */
html[data-mode="h5"] .third {
    padding: 0 0.4rem 0.6rem;
}

html[data-mode="h5"] .third__video {
    width: 100%;
}

html[data-mode="h5"] .third__video-play {
    width: 1.2rem;
    height: 1.2rem;
}

/* ============================================================
   第二屏：Our Factory（设计稿 373_2036）
   - 内边距 100/0 → padding: 1rem 0；内容 12.6rem 居中
   - 居中标题（48px #131841）+ 副标题（16px #666，行高 1.5）
   - 数据行：4 组数字（56px #0265B2）+ 标签（20px #666），
     组间 2px #F0F0F0 竖分隔线（高 125）
   - 数字动态加载：进入视口从 0 滚动到目标值（js/factory.js，
     千位分隔符与设计稿 "150,000" 一致）
   - 入场：复用 common.js data-reveal，标题/副标题/数据行错峰
   ============================================================ */
.second {
    padding: 1rem 0;
    background: #fff;
}

.second__inner {
    max-width: 12.6rem;
    margin: 0 auto;
}

.second__title {
    color: #131841;
    font-size: 0.48rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.second__sub {
    margin-top: 0.31rem;
    color: #666;
    font-size: 0.16rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
}

/* ---------- 数据行 ---------- */
.second__stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.64rem;
    padding: 0;
    list-style: none;
}

.second__stat {
    padding-top: 0.1rem;
}

.second__num {
    color: #0265B2;
    font-size: 0.56rem;
    font-weight: 600;
    line-height: 1.2;
}

.second__label {
    margin-top: 0.14rem;
    color: #666;
    font-size: 0.2rem;
    font-weight: 500;
    line-height: 1.2;
}

.second__divider {
    width: 0.02rem;
    height: 1.25rem;
    background: #F0F0F0;
}

/* ---------- H5（read.md 规范：模块主标题 0.44rem，内容不小于 0.32rem） ---------- */
html[data-mode="h5"] .second {
    padding: 0.6rem 0;
}

html[data-mode="h5"] .second__inner {
    max-width: none;
    padding: 0 0.4rem;
}

html[data-mode="h5"] .second__title {
    font-size: 0.44rem;
}

html[data-mode="h5"] .second__sub {
    margin-top: 0.24rem;
    font-size: 0.32rem;
}

html[data-mode="h5"] .second__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 0.3rem;
    margin-top: 0.5rem;
}

html[data-mode="h5"] .second__divider {
    display: none;
}

html[data-mode="h5"] .second__num {
    font-size: 0.56rem;
}

html[data-mode="h5"] .second__label {
    margin-top: 0.12rem;
    font-size: 0.32rem;
}

/* ============================================================
   第九屏：You Are Always Welcome to Visit（设计稿 373_2155，1920×690）
   - 背景 img4.webp cover；左下水印装饰（透明度 0.04）
   - 左侧文案：标题 56px #131841（两行）+ 描述 16px #666 宽 5.5rem
   - 右侧轮播：slide 3.51rem×4.44rem 圆角 10、间距 0.3rem，
     左起点 9.31rem，向右溢出由 section overflow:hidden 裁切
     （克隆循环 + 自动播放见 js/factory.js）
   - 按钮：60px 圆形，默认 #CCC 描边箭头，悬浮 #0265B2 底白箭头
   - 入场：复用 common.js data-reveal，文案/轮播/按钮错峰
   ============================================================ */
.ninth {
    position: relative;
    height: 6.9rem;
    overflow: hidden;
    background: url("../assets/images/factory/img4.webp") center / cover no-repeat;
}

/* ---------- 左下水印装饰 ---------- */
.ninth__wm {
    position: absolute;
    left: 0;
    top: 3.07rem;
    width: 6.58rem;
    height: 3.84rem;
    opacity: 0.04;
    pointer-events: none;
}

.ninth__wm img {
    position: absolute;
    height: auto;
}

.ninth__wm-a {
    left: 0;
    top: 0;
}

.ninth__wm-b {
    left: 2.64rem;
    top: 0.01rem;
}

.ninth__inner {
    position: relative;
    max-width: 19.2rem;
    height: 100%;
    margin: 0 auto;
}

/* ---------- 左侧文案 ---------- */
.ninth__text {
    position: absolute;
    left: 2.6rem;
    top: 1.33rem;
    width: 6.71rem;
}

.ninth__title {
    color: #131841;
    font-family: "Montserrat", sans-serif;
    font-size: 0.56rem;
    font-weight: 600;
    line-height: 1.2;
}

.ninth__desc {
    width: 5.5rem;
    margin-top: 0.31rem;
    color: #666;
    font-size: 0.16rem;
    font-weight: 500;
    line-height: 1.5;
}

/* ---------- 右侧无限轮播 ---------- */
.ninth__carousel {
    position: absolute;
    top: 1.08rem;
    left: 9.31rem;
    right: 0;
    overflow: hidden;
}

.ninth__track {
    display: flex;
    gap: 0.3rem;
    will-change: transform;
}

.ninth__slide {
    flex: none;
    width: 3.51rem;
    height: 4.44rem;
    border-radius: 0.1rem;
    user-select: none;
}

/* ---------- 控制按钮（默认灰描边 / 悬浮蓝底白箭头） ---------- */
.ninth__nav {
    position: absolute;
    left: 2.6rem;
    top: 4.44rem;
    display: flex;
    gap: 0.1rem;
}

.ninth__btn {
    width: 0.6rem;
    height: 0.6rem;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.ninth__btn svg {
    display: block;
    width: 100%;
    height: 100%;
}

.ninth__btn-ring {
    fill: none;
    stroke: #CCCCCC;
    stroke-width: 2;
    transition: fill 0.3s ease, stroke 0.3s ease;
}

.ninth__btn-arrow {
    fill: none;
    stroke: #CCCCCC;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s ease;
}

.ninth__btn:hover .ninth__btn-ring,
.ninth__btn:focus-visible .ninth__btn-ring {
    fill: #0265B2;
    stroke: #0265B2;
}

.ninth__btn:hover .ninth__btn-arrow,
.ninth__btn:focus-visible .ninth__btn-arrow {
    stroke: #fff;
}

.ninth__btn:focus-visible {
    outline: 0.02rem solid #0265B2;
    outline-offset: 0.04rem;
    border-radius: 50%;
}

/* ---------- H5（read.md 规范：模块主标题 0.44rem，内容不小于 0.32rem） ---------- */
html[data-mode="h5"] .ninth {
    height: auto;
    padding: 0.8rem 0.4rem 0.6rem;
}

html[data-mode="h5"] .ninth__wm {
    display: none;
}

html[data-mode="h5"] .ninth__text {
    position: static;
    width: auto;
}

html[data-mode="h5"] .ninth__title {
    font-size: 0.44rem;
}

html[data-mode="h5"] .ninth__desc {
    width: auto;
    margin-top: 0.24rem;
    font-size: 0.32rem;
}

html[data-mode="h5"] .ninth__carousel {
    position: static;
    margin-top: 0.4rem;
}

html[data-mode="h5"] .ninth__slide {
    width: 4.8rem;
    height: 3.6rem;
}

html[data-mode="h5"] .ninth__nav {
    position: static;
    margin-top: 0.4rem;
}

html[data-mode="h5"] .ninth__btn {
    width: 0.8rem;
    height: 0.8rem;
}

/* ============================================================
   第八屏：Trade Shows（设计稿 373_2145，1400×548）
   - 内边距 100/0 → padding: 1rem 0；内容 14rem 居中
   - 居中标题（56px #131841）+ 副标题（16px #666，宽 913 居中）
   - 双卡片：图片 671×334（间距 58）+ 图注（20px #333 居中）
   - 背景图：img4.webp / img1.webp（assets/images/factory/）
   - 入场：复用 common.js data-reveal → .is-in-view，模糊淡入上浮错峰
     （动画实现，不占用 transition，避免影响悬浮动效）
   - 悬浮：卡片上浮 + 蓝色光晕投影 + 高光扫过（两卡方向相反）
     + 图片缩放 + 描边变蓝 + 图注变蓝
   ============================================================ */
.eighth {
    padding: 1rem 0;
    background: #fff;
}

.eighth__inner {
    max-width: 14rem;
    margin: 0 auto;
}

.eighth__title {
    color: #131841;
    font-size: 0.56rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.eighth__sub {
    max-width: 9.13rem;
    margin: 0.11rem auto 0;
    color: #666;
    font-size: 0.16rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
}

/* ---------- 双卡片网格 ---------- */
.eighth__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 0.58rem;
    margin-top: 0.4rem;
    padding: 0;
    list-style: none;
}

.eighth-card {
    position: relative;
    overflow: hidden;
    padding: 0.02rem;
    border: 0.01rem solid transparent;
    border-radius: 0.1rem;
    transition:
        transform 0.45s var(--ease-out),
        box-shadow 0.45s var(--ease-out),
        border-color 0.45s ease;
}

/* 高光扫过层：默认平移到卡片左侧外，悬浮时斜向掠过（卡片 overflow 裁剪） */
.eighth-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 40%;
    height: 100%;
    background: linear-gradient(115deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.45) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: translateX(-150%) skewX(-15deg);
    transition: transform 0.8s ease;
    pointer-events: none;
}

.eighth-card:hover {
    transform: translateY(-0.1rem);
    border-color: rgba(2, 101, 178, 0.45);
    box-shadow:
        0 0.2rem 0.4rem rgba(2, 101, 178, 0.12),
        0 0.1rem 0.16rem rgba(19, 24, 65, 0.08);
}

.eighth-card:hover::before {
    transform: translateX(400%) skewX(-15deg);
}

/* 第二张卡反向扫光：默认藏在右侧，悬浮时向左掠过 */
.eighth__grid .eighth-card:nth-child(2)::before {
    transform: translateX(400%) skewX(-15deg);
}

.eighth__grid .eighth-card:nth-child(2):hover::before {
    transform: translateX(-150%) skewX(-15deg);
}

/* ---------- 卡片图片 ---------- */
.eighth-card__media {
    margin: 0;
    overflow: hidden;
    border-radius: 0.09rem;
}

.eighth-card__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 671 / 334;
    transform: scale(1);
    transition: transform 0.6s var(--ease-out);
}

.eighth-card:hover .eighth-card__img {
    transform: scale(1.06);
}

/* ---------- 图注 ---------- */
.eighth-card__caption {
    margin-top: 0.18rem;
    color: #333;
    font-size: 0.2rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    transition: color 0.45s ease;
}

.eighth-card:hover .eighth-card__caption {
    color: #0265B2;
}

/* ---------- 入场动画：模糊淡入上浮错峰 ---------- */
@keyframes eighth-card-in {
    from {
        opacity: 0;
        transform: translateY(0.4rem);
        filter: blur(0.06rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.eighth__title[data-reveal],
.eighth__sub[data-reveal],
.eighth-card[data-reveal] {
    opacity: 0;
    transform: translateY(0.4rem);
    filter: blur(0.06rem);
}

.eighth__title[data-reveal].is-in-view,
.eighth__sub[data-reveal].is-in-view,
.eighth-card[data-reveal].is-in-view {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    animation: eighth-card-in 0.7s var(--ease-out) var(--reveal-delay, 0s) backwards;
}

/* 错峰延迟：标题 → 副标题 → 两张卡片依次入场 */
.eighth__sub[data-reveal] {
    --reveal-delay: 0.12s;
}

.eighth__grid .eighth-card:nth-child(1) {
    --reveal-delay: 0.2s;
}

.eighth__grid .eighth-card:nth-child(2) {
    --reveal-delay: 0.32s;
}

/* ---------- H5（read.md 规范：模块主标题 0.44rem，内容不小于 0.32rem） ---------- */
html[data-mode="h5"] .eighth {
    padding: 0.6rem 0;
}

html[data-mode="h5"] .eighth__inner {
    max-width: none;
    padding: 0 0.4rem;
}

html[data-mode="h5"] .eighth__title {
    font-size: 0.44rem;
}

html[data-mode="h5"] .eighth__sub {
    max-width: 100%;
    margin-top: 0.24rem;
    font-size: 0.32rem;
}

html[data-mode="h5"] .eighth__grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

html[data-mode="h5"] .eighth-card__caption {
    margin-top: 0.24rem;
    font-size: 0.32rem;
}

/* ============================================================
   第四屏：Production Lines（设计稿 373_2056，1920×814）
   - 背景 img3.webp 全幅铺满 + #131841 深色遮罩保证白字可读
   - 标题 56px 白（160,77）→ 描述 16px 白 70%（160,164，宽 1194）
     → 副标题 24px（160,285）→ 卡片行（160,367）
   - 卡片 380×280 圆角 10 + 白 30% 描边，分隔线 @309，标签 20px @328，
     间距 26，向右溢出视口，无限轮播（克隆缓冲，见 js/factory.js）
   - 按钮：60px × 2（间距 20，右缘对齐 160 / 距顶 225），
     默认灰描边 + 灰箭头，悬浮蓝底白箭头
   - 卡片悬浮：上浮 + 蓝色描边光晕 + 图片放大 + 高光扫过 + 标签/分隔线点亮
   - 入场：复用 common.js data-reveal，标题 → 描述 → 副标题 → 轮播 → 按钮
     错峰模糊淡入（轮播仅透明度/模糊，避免与轨道位移 transform 冲突）
   ============================================================ */
.fourth {
    position: relative;
    height: 8.14rem;
    overflow: hidden;
    background: #131841;
}

.fourth__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- 文案列（严格对齐设计稿坐标） ---------- */
.fourth__inner {
    position: absolute;
    left: 1.6rem;
    top: 0.77rem;
    z-index: 1;
    width: 11.94rem;
}

.fourth__title {
    color: #fff;
    font-size: 0.56rem;
    font-weight: 600;
    line-height: 1;
}

.fourth__desc {
    margin-top: 0.31rem;
    color: #fff;
    font-size: 0.16rem;
    font-weight: 500;
    line-height: 1.5;
    opacity: 0.7;
}

.fourth__sub {
    position: absolute;
    left: 1.6rem;
    top: 2.85rem;
    z-index: 1;
    color: #fff;
    font-size: 0.24rem;
    font-weight: 600;
    line-height: 1;
}

/* ---------- 轮播（距左 160、距顶 367，向右溢出视口） ---------- */
.fourth__carousel {
    position: absolute;
    left: 1.6rem;
    right: 0;
    /* top 3.67 - padding-top 0.3：轨道仍对齐设计稿 367 位置；
       垂直 padding 外扩 overflow:hidden 裁剪框，
       避免悬浮上浮卡片与光晕阴影被裁切 */
    top: 3.37rem;
    z-index: 1;
    overflow: hidden;
    padding: 0.3rem 0;
}

.fourth__track {
    display: flex;
    column-gap: 0.26rem;
    margin: 0;
    padding: 0;
    list-style: none;
    will-change: transform;
}

.fourth-card {
    flex: none;
    width: 3.8rem;
}

/* 图片框：380×280 圆角 10 + 白 30% 描边（对齐设计稿卡片参数） */
.fourth-card__frame {
    position: relative;
    height: 2.8rem;
    overflow: hidden;
    border: 0.02rem solid rgba(255, 255, 255, 0.3);
    border-radius: 0.1rem;
    transition:
        transform 0.45s var(--ease-out),
        border-color 0.45s var(--ease-out),
        box-shadow 0.45s var(--ease-out);
}

/* 高光扫过层：默认藏在左侧，悬浮时斜向掠过 */
.fourth-card__frame::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -80%;
    z-index: 2;
    width: 45%;
    height: 200%;
    background: linear-gradient(115deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.45) 50%,
            rgba(255, 255, 255, 0) 100%);
    transition: left 0.8s ease;
    pointer-events: none;
}

/* 悬浮：上浮 + 蓝色描边 + 蓝色光晕（暗底上更突出） */
.fourth-card:hover .fourth-card__frame {
    transform: translateY(-0.08rem);
    border-color: #0265B2;
    box-shadow:
        0 0 0 0.01rem rgba(2, 101, 178, 0.6),
        0 0.2rem 0.4rem rgba(2, 101, 178, 0.4),
        0 0 0.6rem rgba(2, 101, 178, 0.35);
}

.fourth-card:hover .fourth-card__frame::after {
    left: 135%;
}

.fourth-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.6s var(--ease-out);
}

.fourth-card:hover .fourth-card__img {
    transform: scale(1.08);
}

/* 分隔线：1px 白 20%（对齐设计稿 309 位置），悬浮点亮为品牌蓝 */
.fourth-card__line {
    display: block;
    margin-top: 0.29rem;
    width: 3.8rem;
    height: 0.01rem;
    background: rgba(255, 255, 255, 0.2);
    transform-origin: left center;
    transition:
        background 0.45s var(--ease-out),
        transform 0.45s var(--ease-out);
}

.fourth-card:hover .fourth-card__line {
    background: #0265B2;
    transform: scaleX(1.06);
}

/* 标签：20px 600 白（对齐设计稿 328 位置），悬浮变亮蓝 */
.fourth-card__label {
    margin-top: 0.19rem;
    color: #fff;
    font-size: 0.2rem;
    font-weight: 600;
    line-height: 1;
    transition: color 0.45s var(--ease-out);
}

.fourth-card:hover .fourth-card__label {
    color: #3FA5FF;
}

/* ---------- 箭头按钮：默认灰描边，悬浮蓝底白箭头 ---------- */
.fourth__nav {
    position: absolute;
    right: 1.6rem;
    top: 2.25rem;
    z-index: 2;
    display: flex;
    gap: 0.2rem;
}

.fourth__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0.6rem;
    height: 0.6rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition:
        transform 0.3s var(--ease-out),
        box-shadow 0.3s var(--ease-out);
}

/* 两态图标：默认灰描边圆，悬浮切换为蓝底白箭头 */
.fourth__btn-icon {
    display: block;
    width: 100%;
    height: 100%;
}

.fourth__btn-icon--hover {
    display: none;
}

.fourth__btn:hover .fourth__btn-icon--default {
    display: none;
}

.fourth__btn:hover .fourth__btn-icon--hover {
    display: block;
}

.fourth__btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0.08rem 0.2rem rgba(2, 101, 178, 0.35);
}

.fourth__btn:active {
    transform: scale(0.94);
    box-shadow: 0 0.04rem 0.1rem rgba(2, 101, 178, 0.3);
}

.fourth__btn:focus-visible {
    outline: 0.02rem solid #0265B2;
    outline-offset: 0.03rem;
}

/* ---------- 入场动画：模糊淡入上浮错峰 ---------- */
@keyframes fourth-in {
    from {
        opacity: 0;
        transform: translateY(0.4rem);
        filter: blur(0.06rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* 轮播专用：仅透明度/模糊，避免动画 transform 覆盖轨道位移 */
@keyframes fourth-carousel-in {
    from {
        opacity: 0;
        filter: blur(0.06rem);
    }

    to {
        opacity: 1;
        filter: blur(0);
    }
}

.fourth__title[data-reveal],
.fourth__desc[data-reveal],
.fourth__sub[data-reveal],
.fourth__nav[data-reveal] {
    opacity: 0;
    transform: translateY(0.4rem);
    filter: blur(0.06rem);
}

.fourth__carousel[data-reveal] {
    opacity: 0;
    filter: blur(0.06rem);
}

.fourth__title[data-reveal].is-in-view,
.fourth__desc[data-reveal].is-in-view,
.fourth__sub[data-reveal].is-in-view,
.fourth__nav[data-reveal].is-in-view {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    animation: fourth-in 0.7s var(--ease-out) var(--reveal-delay, 0s) backwards;
}

.fourth__carousel[data-reveal].is-in-view {
    opacity: 1;
    filter: blur(0);
    animation: fourth-carousel-in 0.7s var(--ease-out) var(--reveal-delay, 0s) backwards;
}

/* 错峰延迟：标题 → 描述 → 副标题 → 轮播 → 按钮 */
.fourth__desc[data-reveal] {
    --reveal-delay: 0.12s;
}

.fourth__sub[data-reveal] {
    --reveal-delay: 0.18s;
}

.fourth__carousel[data-reveal] {
    --reveal-delay: 0.26s;
}

.fourth__nav[data-reveal] {
    --reveal-delay: 0.38s;
}

/* ---------- H5（read.md 规范：模块主标题 0.44rem，内容不小于 0.32rem） ---------- */
html[data-mode="h5"] .fourth {
    height: auto;
    padding: 0.6rem 0.4rem 0.8rem;
}

html[data-mode="h5"] .fourth__inner {
    position: static;
    width: auto;
}

html[data-mode="h5"] .fourth__title {
    font-size: 0.44rem;
}

html[data-mode="h5"] .fourth__desc {
    margin-top: 0.3rem;
    font-size: 0.32rem;
}

html[data-mode="h5"] .fourth__sub {
    position: static;
    margin-top: 0.4rem;
    font-size: 0.32rem;
    line-height: 1.4;
}

html[data-mode="h5"] .fourth__carousel {
    position: static;
    /* 基础样式带 0.3rem 垂直 padding（防悬浮裁切），这里补偿间距 */
    margin-top: 0.2rem;
}

html[data-mode="h5"] .fourth-card {
    /* 一屏一卡：占满轮播可视区（视口宽 - 两侧 padding） */
    width: 100%;
}

html[data-mode="h5"] .fourth-card__frame {
    height: auto;
    aspect-ratio: 380 / 280;
}

html[data-mode="h5"] .fourth-card__line {
    width: 100%;
}

html[data-mode="h5"] .fourth-card__label {
    font-size: 0.32rem;
}

html[data-mode="h5"] .fourth__nav {
    position: static;
    margin-top: 0.5rem;
    gap: 0.24rem;
    justify-content: center;
}

html[data-mode="h5"] .fourth__btn {
    width: 0.8rem;
    height: 0.8rem;
}

html[data-mode="h5"] .fourth__btn svg {
        width: 0.8rem;
    height: 0.8rem;
}

/* ============================================================
   第七屏：Quality Control（设计稿 373_2133，1920×765）
   - 左图 989 宽（object-fit cover）+ 右面板 931 宽 #F2F9FF
   - 内容块 608 宽，距面板左缘 77、距顶 167（垂直居中）
   - 盾牌图标 60px（#333）→ 标题 48px #131841 → 描述 16px #666
     → 胶囊按钮 218×48 #0265B2（文案 + 白色 ↗ 箭头 20px）
   - 图片资源：assets/images/factory/video-cover.png
   - 按钮悬浮：上浮 + 蓝色光晕 + 高光扫过 + 箭头对角换位
   - 入场：复用 common.js data-reveal → .is-in-view，
     图标 → 标题 → 描述 → 按钮模糊淡入上浮错峰
   ============================================================ */
.seventh {
    display: grid;
    grid-template-columns: 989fr 931fr;
    min-height: 7.65rem;
    background: #F2F9FF;
    padding-top: 0.7rem;
}

/* ---------- 左侧图片 ---------- */
.seventh__media {
    margin: 0;
    overflow: hidden;
}

.seventh__img {
    display: block;
    width: 100%;
    height: 100%;
    transform: scale(1);
    transition: transform 0.8s var(--ease-out);
}

.seventh__media:hover .seventh__img {
    transform: scale(1.04);
}

/* ---------- 右侧面板 ---------- */
.seventh__panel {
    display: flex;
    align-items: center;
}

.seventh__inner {
    width: 6.08rem;
    margin-left: 0.77rem;
    padding: 0.7rem 0 0.6rem;
}

.seventh__icon {
    display: block;
    width: 0.6rem;
    height: 0.6rem;
    color: #333;
}

.seventh__icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.seventh__title {
    margin-top: 0.3rem;
    color: #131841;
    font-size: 0.48rem;
    font-weight: 600;
    line-height: 1.2;
}

.seventh__desc {
    margin-top: 0.21rem;
    color: #666;
    font-size: 0.16rem;
    font-weight: 500;
    line-height: 1.5;
}

/* ---------- 胶囊按钮：悬浮上浮 + 光晕 + 高光扫过 + 箭头对角换位 ---------- */
.seventh__btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.12rem;
    width: 2.18rem;
    height: 0.48rem;
    margin-top: 0.99rem;
    padding: 0 0.24rem;
    overflow: hidden;
    border-radius: 1rem;
    background: #0265B2;
    transition:
        transform 0.35s var(--ease-out),
        box-shadow 0.35s var(--ease-out),
        background-color 0.35s ease;
}

/* 高光扫过层 */
.seventh__btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -80%;
    z-index: 1;
    width: 40%;
    height: 200%;
    background: linear-gradient(115deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0) 100%);
    transition: left 0.6s ease;
    pointer-events: none;
}

.seventh__btn:hover {
    transform: translateY(-0.03rem);
    background: #0378CF;
    box-shadow: 0 0.12rem 0.28rem rgba(2, 101, 178, 0.35);
}

.seventh__btn:hover::after {
    left: 140%;
}

.seventh__btn:active {
    transform: translateY(-0.01rem) scale(0.97);
    box-shadow: 0 0.06rem 0.14rem rgba(2, 101, 178, 0.3);
}

.seventh__btn:focus-visible {
    outline: 0.02rem solid #0265B2;
    outline-offset: 0.03rem;
}

.seventh__btn-text {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 0.16rem;
    font-weight: 600;
    line-height: 1;
}

/* 箭头对角换位：旧箭头飞出右上角，新箭头从左下角飞入 */
.seventh__btn-arrow {
    position: relative;
    z-index: 2;
    flex: none;
    width: 0.2rem;
    height: 0.2rem;
    overflow: hidden;
}

.seventh__btn-arrow-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.35s var(--ease-out);
}

.seventh__btn-arrow-svg--in {
    transform: translate(-150%, 150%);
}

.seventh__btn:hover .seventh__btn-arrow-svg--out {
    transform: translate(150%, -150%);
}

.seventh__btn:hover .seventh__btn-arrow-svg--in {
    transform: translate(0, 0);
}

/* ---------- 入场动画：模糊淡入上浮错峰 ---------- */
@keyframes seventh-in {
    from {
        opacity: 0;
        transform: translateY(0.4rem);
        filter: blur(0.06rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.seventh__icon[data-reveal],
.seventh__title[data-reveal],
.seventh__desc[data-reveal],
.seventh__btn[data-reveal] {
    opacity: 0;
    transform: translateY(0.4rem);
    filter: blur(0.06rem);
}

.seventh__icon[data-reveal].is-in-view,
.seventh__title[data-reveal].is-in-view,
.seventh__desc[data-reveal].is-in-view,
.seventh__btn[data-reveal].is-in-view {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    animation: seventh-in 0.7s var(--ease-out) var(--reveal-delay, 0s) backwards;
}

/* 错峰延迟：图标 → 标题 → 描述 → 按钮依次入场 */
.seventh__title[data-reveal] {
    --reveal-delay: 0.12s;
}

.seventh__desc[data-reveal] {
    --reveal-delay: 0.2s;
}

.seventh__btn[data-reveal] {
    --reveal-delay: 0.32s;
}

/* ---------- H5（read.md 规范：模块主标题 0.44rem，内容不小于 0.32rem） ---------- */
html[data-mode="h5"] .seventh {
    grid-template-columns: 1fr;
    min-height: 0;
}

html[data-mode="h5"] .seventh__media {
    height: 4rem;
}

html[data-mode="h5"] .seventh__panel {
    padding: 0.6rem 0.4rem;
}

html[data-mode="h5"] .seventh__inner {
    width: auto;
    margin-left: 0;
    padding: 0;
}

html[data-mode="h5"] .seventh__icon {
    width: 0.8rem;
    height: 0.8rem;
}

html[data-mode="h5"] .seventh__title {
    margin-top: 0.24rem;
    font-size: 0.44rem;
}

html[data-mode="h5"] .seventh__desc {
    margin-top: 0.24rem;
    font-size: 0.32rem;
}

html[data-mode="h5"] .seventh__btn {
    width: max-content;
    height: 0.88rem;
    margin-top: 0.48rem;
    gap: 0.24rem;
    padding: 0 0.4rem;
}

html[data-mode="h5"] .seventh__btn-text {
    font-size: 0.32rem;
}

html[data-mode="h5"] .seventh__btn-arrow {
    width: 0.32rem;
    height: 0.32rem;
}

/* ============================================================
   第六屏：Technical Strength（设计稿 373_2115，1920×765）
   - 左面板 931 宽 #F2F9FF + 右图 989 宽（object-fit cover）
   - 内容块 629 宽，距面板左缘 160、垂直居中（顶 112 / 底 126）
   - 图标 60px（#333）→ 标题 48px #131841 → 描述 16px #666（宽 608）
     → 双数据块（286 宽，间距 57）：数字 48px #0265B2 + 标签 16px #666
   - 数字动态加载：进入视口从 0 滚动到目标值（js/factory.js，
     data-count-to，千位分隔符与设计稿 "150,000+" 一致）
   - 图片资源：assets/images/factory/video-cover.png
   - 入场：复用 common.js data-reveal → .is-in-view，
     图标 → 标题 → 描述 → 数据块 → 右图模糊淡入上浮错峰
   ============================================================ */
.sixth {
    display: grid;
    grid-template-columns: 931fr 989fr;
    min-height: 7.65rem;
    background: #F2F9FF;
}

/* ---------- 左侧面板 ---------- */
.sixth__panel {
    display: flex;
    align-items: center;
}

.sixth__content {
    width: 6.29rem;
    padding: 0.8rem 0;
    margin-left: 1.6rem;
}

.sixth__icon {
    display: block;
    width: 0.6rem;
    height: 0.6rem;
}

.sixth__title {
    margin-top: 0.3rem;
    color: #131841;
    font-size: 0.48rem;
    font-weight: 600;
    line-height: 1.2;
}

.sixth__desc {
    max-width: 6.08rem;
    margin-top: 0.21rem;
    color: #666;
    font-size: 0.16rem;
    font-weight: 500;
    line-height: 1.5;
}

/* ---------- 数据块 ---------- */
.sixth__stats {
    display: flex;
    gap: 0.57rem;
    margin-top: 0.95rem;
    padding: 0;
    list-style: none;
}

.sixth-stat {
    width: 2.86rem;
}

.sixth-stat__num {
    color: #0265B2;
    font-size: 0.48rem;
    font-weight: 600;
    line-height: 1.2;
}

.sixth-stat__label {
    margin-top: 0.21rem;
    color: #666;
    font-size: 0.16rem;
    font-weight: 500;
    line-height: 1.5;
}

/* ---------- 右侧图片 ---------- */
.sixth__media {
    margin: 0;
    overflow: hidden;
}

.sixth__img {
    display: block;
    width: 100%;
    height: 100%;
    transform: scale(1);
    transition: transform 0.8s var(--ease-out);
}

.sixth__media:hover .sixth__img {
    transform: scale(1.04);
}

/* ---------- 入场动画：模糊淡入上浮错峰 ---------- */
@keyframes sixth-block-in {
    from {
        opacity: 0;
        transform: translateY(0.4rem);
        filter: blur(0.06rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.sixth__icon[data-reveal],
.sixth__title[data-reveal],
.sixth__desc[data-reveal],
.sixth-stat[data-reveal] {
    opacity: 0;
    transform: translateY(0.4rem);
    filter: blur(0.06rem);
}

.sixth__icon[data-reveal].is-in-view,
.sixth__title[data-reveal].is-in-view,
.sixth__desc[data-reveal].is-in-view,
.sixth-stat[data-reveal].is-in-view {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    animation: sixth-block-in 0.7s var(--ease-out) var(--reveal-delay, 0s) backwards;
}

/* 右图：淡入 + 轻微缩放复位，与文字块错峰 */
.sixth__media[data-reveal] {
    opacity: 0;
}

.sixth__media[data-reveal].is-in-view {
    opacity: 1;
    animation: sixth-media-in 0.9s var(--ease-out) 0.3s backwards;
}

@keyframes sixth-media-in {
    from {
        opacity: 0;
        transform: scale(1.04);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 错峰延迟：图标 → 标题 → 描述 → 数据块依次入场 */
.sixth__title[data-reveal] {
    --reveal-delay: 0.12s;
}

.sixth__desc[data-reveal] {
    --reveal-delay: 0.2s;
}

.sixth__stats .sixth-stat:nth-child(1) {
    --reveal-delay: 0.28s;
}

.sixth__stats .sixth-stat:nth-child(2) {
    --reveal-delay: 0.36s;
}

/* ---------- H5（read.md 规范：模块主标题 0.44rem，内容不小于 0.32rem） ---------- */
html[data-mode="h5"] .sixth {
    grid-template-columns: 1fr;
    min-height: 0;
}

html[data-mode="h5"] .sixth__panel {
    padding: 0.6rem 0.4rem;
}

html[data-mode="h5"] .sixth__content {
    width: auto;
    margin-left: 0;
    padding: 0;
}

html[data-mode="h5"] .sixth__icon {
    width: 0.8rem;
    height: 0.8rem;
}

html[data-mode="h5"] .sixth__title {
    margin-top: 0.24rem;
    font-size: 0.44rem;
}

html[data-mode="h5"] .sixth__desc {
    max-width: 100%;
    margin-top: 0.24rem;
    font-size: 0.32rem;
}

html[data-mode="h5"] .sixth__stats {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

html[data-mode="h5"] .sixth-stat {
    width: 100%;
}

html[data-mode="h5"] .sixth-stat__num {
    font-size: 0.48rem;
}

html[data-mode="h5"] .sixth-stat__label {
    margin-top: 0.16rem;
    font-size: 0.32rem;
}

html[data-mode="h5"] .sixth__media {
    height: 4rem;
}

/* ============================================================
   第五屏：Precision Machinery（设计稿 373_2088，1600×947）
   - 内边距 100/160 → padding: 1rem 1.6rem；内容 16rem
   - 标题 48px #131841 → 卡片区（2 行横向滚动）→ 自定义滚动条
     （轨道 4px #D9D9D9 / 滑块 #131841，圆角 30）→ 描述 16px #666 居中
   - 卡片 522×320 圆角 10，列间距/行间距 17；图片不加遮罩
     + 左下角白色标签（20px 600）
   - 图片循环使用 img1-4.webp，共 8 卡 4 列（与滚动条滑块比例吻合）
   - 悬浮：卡片上浮 + 蓝色光晕 + 图片放大
     + 蓝色底线从左展开 + 高光斜扫 + 标签上浮
   - 入场：复用 common.js data-reveal → .is-in-view，
     标题 → 卡片逐张（视口内可见者先入，横向滚动后剩余卡片随滚动入场）
     → 描述 模糊淡入上浮错峰
   ============================================================ */
.fifith {
    padding: 1rem 1.6rem;
    background: #fff;
}

.fifith__title {
    color: #131841;
    font-size: 0.48rem;
    font-weight: 600;
    line-height: 1.2;
}

/* ---------- 横滑区（仅横向；滚动条沿用全局页面样式：4px 高、无箭头、渐变滑块） ---------- */
.fifith__scroll {
    margin-top: 0.29rem;
    padding: 0.12rem 0 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
}

.fifith__grid {
    display: grid;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    grid-auto-columns: 5.22rem;
    gap: 0.17rem;
    margin-top: 0;
    padding: 0;
    list-style: none;
}

/* ---------- 卡片 ---------- */
.fifith-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 522 / 320;
    border-radius: 0.1rem;
    transition:
        transform 0.45s var(--ease-out),
        box-shadow 0.45s var(--ease-out);
}

.fifith-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: scale(1);
    transition: transform 0.6s var(--ease-out);
}

/* 图片不加遮罩，仅保留悬浮缩放 */

/* 蓝色底线：默认缩为 0，悬浮时从左展开 */
.fifith-card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    width: 100%;
    height: 0.04rem;
    background: linear-gradient(90deg, #0265B2 0%, #0077D3 100%);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.5s var(--ease-out);
}

/* 高光斜扫层：默认平移到左侧外，悬浮时掠过 */
.fifith-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 40%;
    height: 100%;
    background: linear-gradient(115deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.35) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: translateX(-150%) skewX(-15deg);
    transition: transform 0.8s ease;
    pointer-events: none;
}

.fifith-card:hover {
    transform: translateY(-0.08rem);
    box-shadow:
        0 0.18rem 0.36rem rgba(2, 101, 178, 0.22),
        0 0.08rem 0.14rem rgba(19, 24, 65, 0.1);
}

.fifith-card:hover .fifith-card__img {
    transform: scale(1.08);
}

.fifith-card:hover::after {
    transform: scaleX(1);
}

.fifith-card:hover::before {
    transform: translateX(400%) skewX(-15deg);
}

.fifith-card__label {
    position: absolute;
    left: 0.26rem;
    right: 0.26rem;
    bottom: 0.2rem;
    z-index: 3;
    color: #fff;
    font-size: 0.2rem;
    font-weight: 600;
    line-height: 1.2;
    transition: transform 0.45s var(--ease-out);
}

.fifith-card:hover .fifith-card__label {
    transform: translateY(-0.08rem);
}

/* ---------- 底部描述 ---------- */
.fifith__desc {
    max-width: 8.4rem;
    margin: 0.41rem auto 0;
    color: #666;
    font-size: 0.16rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
}

/* ---------- 入场动画：模糊淡入上浮错峰 ---------- */
@keyframes fifith-block-in {
    from {
        opacity: 0;
        transform: translateY(0.4rem);
        filter: blur(0.06rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.fifith__title[data-reveal],
.fifith__desc[data-reveal],
.fifith-card[data-reveal] {
    opacity: 0;
    transform: translateY(0.4rem);
    filter: blur(0.06rem);
}

.fifith__title[data-reveal].is-in-view,
.fifith__desc[data-reveal].is-in-view,
.fifith-card[data-reveal].is-in-view {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    animation: fifith-block-in 0.7s var(--ease-out) var(--reveal-delay, 0s) backwards;
}

/* 错峰延迟：标题 → 8 张卡片依次 → 描述 */
.fifith__grid .fifith-card:nth-child(1) {
    --reveal-delay: 0.12s;
}

.fifith__grid .fifith-card:nth-child(2) {
    --reveal-delay: 0.2s;
}

.fifith__grid .fifith-card:nth-child(3) {
    --reveal-delay: 0.28s;
}

.fifith__grid .fifith-card:nth-child(4) {
    --reveal-delay: 0.36s;
}

.fifith__grid .fifith-card:nth-child(5) {
    --reveal-delay: 0.44s;
}

.fifith__grid .fifith-card:nth-child(6) {
    --reveal-delay: 0.52s;
}

.fifith__grid .fifith-card:nth-child(7) {
    --reveal-delay: 0.6s;
}

.fifith__grid .fifith-card:nth-child(8) {
    --reveal-delay: 0.68s;
}

.fifith__desc[data-reveal] {
    --reveal-delay: 0.3s;
}

/* ---------- H5（read.md 规范：模块主标题 0.44rem，内容不小于 0.32rem） ---------- */
html[data-mode="h5"] .fifith {
    padding: 0.6rem 0.4rem;
}

html[data-mode="h5"] .fifith__title {
    font-size: 0.44rem;
}

html[data-mode="h5"] .fifith__scroll {
    padding: 0;
    overflow: visible;
}

html[data-mode="h5"] .fifith__scroll::-webkit-scrollbar {
    height: 0;
}

html[data-mode="h5"] .fifith__grid {
    grid-template-rows: none;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 0.3rem;
    margin-top: 0.4rem;
}

html[data-mode="h5"] .fifith-card__label {
    left: 0.24rem;
    right: 0.24rem;
    bottom: 0.2rem;
    font-size: 0.32rem;
}

html[data-mode="h5"] .fifith__desc {
    max-width: 100%;
    margin-top: 0.4rem;
    font-size: 0.32rem;
    text-align: left;
}

/* ============================================================
   12. 第十一屏 Client Voices（设计稿 373_1670）→ 见 css/index.css
   ============================================================ */
