/* ============================================================
   1. 首屏 Hero（Figma 560_2：1920 × 700）
   ============================================================ */
.first {
    position: relative;
    height: 7rem;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

/* 背景大图：入场缓慢回缩（Ken Burns），顶部品牌蓝压色保证 header 衔接 */
.first__bg {
    position: absolute;
    inset: 0;
    background: url("../assets/images/oem/oem.webp") center / cover no-repeat;
    animation: firstZoom 2.2s var(--ease-out) both;
    will-change: transform;
}

/* 底部轻压暗，保证标题/面包屑可读性 */
.first::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(3, 82, 141, 0.35) 0%,
            rgba(3, 82, 141, 0) 30%,
            rgba(0, 0, 0, 0) 62%,
            rgba(0, 0, 0, 0.32) 100%);
    pointer-events: none;
}

.first__content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0 1.6rem 0.76rem;
}

/* ---------- 标题：遮罩上滑 + 字距收缩 ---------- */
.first__title {
    overflow: hidden;
    /* 遮罩：文字从下方滑入 */
    font-size: 0.64rem;
    font-weight: 600;
    line-height: 1.15;
    color: #ffffff;
}

.first__title span {
    display: inline-block;
    animation: firstTitleUp 0.9s var(--ease-out) 0.25s both;
}

/* ---------- 入场动效 ---------- */
@keyframes firstZoom {
    from {
        transform: scale(1.12);
    }

    to {
        transform: scale(1);
    }
}

@keyframes firstTitleUp {
    from {
        transform: translateY(110%);
        letter-spacing: 0.04rem;
        opacity: 0.4;
    }

    to {
        transform: translateY(0);
        letter-spacing: normal;
        opacity: 1;
    }
}

/* ============================================================
   2. 第四屏 Customized options（Figma 730_1119：1920 基准）
      内边距 100 / 160，三列卡片 500×~726，列间距 50
   ============================================================ */
.fourth {
    padding: 1rem 1.6rem;
}

/* ---------- 模块头部：标题 48px + 副标题 20px，居中 ---------- */
.fourth__head {
    text-align: center;
}

.fourth__title {
    overflow: hidden; /* 遮罩：文字从下方滑入 */
    font-size: 0.48rem;
    font-weight: 600;
    line-height: 1.2;
    color: #333333;
}

.fourth__title span {
    display: inline-block;
}

.fourth__desc {
    max-width: 7.12rem;
    margin: 0.32rem auto 0;
    font-size: 0.2rem;
    line-height: 1.5;
    color: #666666;
}

/* ---------- 卡片网格：3 列 × 500，间距 50 ---------- */
.fourth__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    align-items: start;
    margin-top: 1.06rem;
}

.fourth__card {
    perspective: 12rem;
}

.fourth__card-inner {
    position: relative;
    border-radius: 0.2rem;
    transform-style: preserve-3d;
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
    will-change: transform;
}

/* 鼠标跟随光斑（坐标由 oem.js 写入 --mx / --my） */
.fourth__card-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(3rem 3rem at var(--mx, 50%) var(--my, 50%),
            rgba(3, 82, 141, 0.14), rgba(3, 82, 141, 0) 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.fourth__card:hover .fourth__card-inner {
    transform: translateY(-0.12rem);
}

.fourth__card:hover .fourth__card-inner::after {
    opacity: 1;
}

/* ---------- 卡片头图：500×281，圆角 20 ---------- */
.fourth__card-media {
    overflow: hidden;
    aspect-ratio: 500 / 281;
    border-radius: 0.2rem;
    background: #ecf3fc;
}

.fourth__card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out), filter 0.7s var(--ease-out);
    will-change: transform;
}

.fourth__card:hover .fourth__card-media img {
    transform: scale(1.08) rotate(0.6deg);
    filter: saturate(1.12);
}

/* ---------- 卡片标题 24px + 描述 20px ---------- */
.fourth__card-title {
    position: relative;
    display: inline-block;
    margin-top: 0.24rem;
    font-size: 0.24rem;
    font-weight: 600;
    line-height: 1.35;
    color: #333333;
    transition: color 0.35s var(--ease-out);
}

/* 标题下划线扫入 */
.fourth__card-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.04rem;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #03528d, #4aa3e0);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--ease-out);
}

.fourth__card:hover .fourth__card-title {
    color: #03528d;
}

.fourth__card:hover .fourth__card-title::after {
    transform: scaleX(1);
}

.fourth__card-desc {
    margin-top: 0.24rem;
    font-size: 0.2rem;
    line-height: 1.5;
    color: #666666;
}

/* ---------- 特性列表：勾选图标 + 20px 品牌蓝文字 ---------- */
.fourth__card-list {
    display: flex;
    flex-direction: column;
    gap: 0.11rem;
    margin-top: 0.4rem;
    list-style: none;
}

.fourth__card-item {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    min-height: 0.3rem;
    font-size: 0.2rem;
    font-weight: 500;
    line-height: 1.5;
    color: #03528d;
    transition: transform 0.35s var(--ease-out);
}

.fourth__check {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 0.2rem;
    height: 0.2rem;
    color: #03528d;
    border-radius: 50%;
    transition: background-color 0.35s var(--ease-out),
        color 0.35s var(--ease-out), transform 0.35s var(--ease-out),
        box-shadow 0.35s var(--ease-out);
}

.fourth__check svg {
    width: 100%;
    height: 100%;
}

/* 悬浮：勾选图标逐个点亮（stagger），列表右移 */
.fourth__card:hover .fourth__card-item {
    transform: translateX(0.08rem);
}

.fourth__card:hover .fourth__check {
    background-color: #03528d;
    color: #ffffff;
    transform: scale(1.15);
    box-shadow: 0 0.04rem 0.12rem rgba(3, 82, 141, 0.35);
}

.fourth__card-item:nth-child(1) .fourth__check,
.fourth__card-item:nth-child(1) {
    transition-delay: 0s;
}

.fourth__card-item:nth-child(2) .fourth__check,
.fourth__card-item:nth-child(2) {
    transition-delay: 0.05s;
}

.fourth__card-item:nth-child(3) .fourth__check,
.fourth__card-item:nth-child(3) {
    transition-delay: 0.1s;
}

.fourth__card-item:nth-child(4) .fourth__check,
.fourth__card-item:nth-child(4) {
    transition-delay: 0.15s;
}

.fourth__card-item:nth-child(5) .fourth__check,
.fourth__card-item:nth-child(5) {
    transition-delay: 0.2s;
}

.fourth__card-item:nth-child(6) .fourth__check,
.fourth__card-item:nth-child(6) {
    transition-delay: 0.25s;
}

/* ---------- 入场动画（data-reveal + 区块内错峰） ---------- */
/* 标题：遮罩上滑 */
.fourth__title span {
    transform: translateY(110%);
    transition: transform 0.9s var(--ease-out) 0.1s;
}

.fourth__title.is-in-view span {
    transform: translateY(0);
}

/* 列表项：入场左移淡入逐个滑入 */
.fourth__card .fourth__card-item {
    opacity: 0;
    transform: translateX(-0.24rem);
    transition: opacity 0.55s ease, transform 0.55s var(--ease-out);
}

.fourth__card.is-in-view .fourth__card-item {
    opacity: 1;
    transform: translateX(0);
}


/* ============================================================
   3. H5 适配（read.md：模块主标题 0.44rem，内容不小于 0.32rem）
   ============================================================ */
html[data-mode="h5"] .fourth {
    padding: 0.8rem 0.4rem;
}

html[data-mode="h5"] .fourth__title {
    font-size: 0.44rem;
}

html[data-mode="h5"] .fourth__desc {
    max-width: none;
    margin-top: 0.24rem;
    font-size: 0.32rem;
}

html[data-mode="h5"] .fourth__grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin-top: 0.6rem;
}

html[data-mode="h5"] .fourth__card-title {
    margin-top: 0.32rem;
    font-size: 0.36rem;
}

html[data-mode="h5"] .fourth__card-desc {
    margin-top: 0.16rem;
    font-size: 0.32rem;
}

html[data-mode="h5"] .fourth__card-list {
    gap: 0.2rem;
    margin-top: 0.4rem;
}

html[data-mode="h5"] .fourth__card-item {
    gap: 0.24rem;
    min-height: 0.42rem;
    font-size: 0.32rem;
}

html[data-mode="h5"] .fourth__check {
    width: 0.36rem;
    height: 0.36rem;
}

/* ============================================================
   4. 首屏 H5 适配
   ============================================================ */
html[data-mode="h5"] .first {
    height: 4.8rem;
}

html[data-mode="h5"] .first__content {
    padding: 0 0.4rem 0.5rem;
}

html[data-mode="h5"] .first__title {
    font-size: 0.56rem;
}

/* ============================================================
   5. 第三屏 Craft capability（Figma 730_1140：1920 × 1191）
      浅蓝底 #F0F8FF；标题 48px 居中（两行，行高 1.5）；
      网格 1600 宽：3 列 × 510，列间距 35，行间距 50
   ============================================================ */
.third {
    padding: 0.83rem 1.6rem 0.96rem;
    background: #f0f8ff;
}

/* ---------- 模块标题：遮罩上滑（与第四屏一致） ---------- */
.third__title {
    max-width: 12.6rem;
    margin: 0 auto;
    overflow: hidden;
    text-align: center;
    font-size: 0.48rem;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
}

.third__title span {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 0.9s var(--ease-out) 0.1s;
}

.third__title.is-in-view span {
    transform: translateY(0);
}

/* ---------- 卡片网格 ---------- */
.third__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem 0.35rem;
    margin-top: 0.6rem;
}

.third__card-inner {
    transition: transform 0.5s var(--ease-out);
    will-change: transform;
}

/* ---------- 入场：上浮 + 缩放（覆盖 data-reveal 默认） ---------- */
.third__card[data-reveal] {
    transform: translateY(0.5rem) scale(0.94);
    transition: opacity 0.7s ease, transform 0.7s var(--ease-out);
}

.third__card[data-reveal].is-in-view {
    transform: translateY(0) scale(1);
}

/* ---------- 卡片头图 510×320，圆角 10 ---------- */
.third__card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 510 / 320;
    border-radius: 0.1rem;
    background: #ffffff;
    transition: box-shadow 0.5s var(--ease-out);
}

.third__card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.12);
    transition: transform 0.9s var(--ease-out);
    will-change: transform;
}

/* 图片入场：由 1.12 缓缓回落到 1（Ken Burns 收势） */
.third__card.is-in-view .third__card-media img {
    transform: scale(1);
}

/* ---------- 卡片名称 24px 居中 ---------- */
.third__card-name {
    position: relative;
    margin-top: 0.23rem;
    text-align: center;
    font-size: 0.24rem;
    font-weight: 500;
    line-height: 1.4;
    color: #333333;
    transition: color 0.35s var(--ease-out);
}

/* 名称下划线扫入 */
.third__card-name::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.06rem;
    width: 0.5rem;
    height: 2px;
    background: linear-gradient(90deg, #03528d, #4aa3e0);
    border-radius: 1px;
    transform: translateX(-50%) scaleX(0);
    transition: transform 0.45s var(--ease-out);
}

/* ============================================================
   悬浮动效（仅精确指针设备）：上浮投影 + 图片回缩 +
   高光扫过 + 旋转渐变描边 + 名称变色下划线
   ============================================================ */
@media (hover: hover) and (pointer: fine) {

    .third__card:hover .third__card-inner {
        transform: translateY(-0.12rem);
    }

    .third__card:hover .third__card-media {
        box-shadow: 0 0.24rem 0.48rem rgba(3, 82, 141, 0.2);
    }

    .third__card:hover .third__card-media img {
        transform: scale(1.08);
    }

    .third__card:hover .third__card-name {
        color: #03528d;
    }

    .third__card:hover .third__card-name::after {
        transform: translateX(-50%) scaleX(1);
    }

    /* 高光斜向扫过图片 */
    .third__card-media::before {
        content: "";
        position: absolute;
        top: -20%;
        left: 0;
        z-index: 1;
        width: 55%;
        height: 140%;
        background: linear-gradient(100deg,
                rgba(255, 255, 255, 0) 0%,
                rgba(255, 255, 255, 0.5) 50%,
                rgba(255, 255, 255, 0) 100%);
        transform: translateX(-160%) skewX(-18deg);
        transition: transform 0.8s var(--ease-out);
        pointer-events: none;
    }

    .third__card:hover .third__card-media::before {
        transform: translateX(320%) skewX(-18deg);
    }

    /* 旋转渐变描边（--ring-angle 由 @property 驱动旋转） */
    .third__card-media::after {
        content: "";
        position: absolute;
        inset: -0.04rem;
        padding: 0.03rem;
        border-radius: 0.14rem;
        background: conic-gradient(from var(--ring-angle, 0deg),
                #03528d, #4aa3e0, #a7d8ff, #03528d);
        -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.4s ease;
        pointer-events: none;
    }

    .third__card:hover .third__card-media::after {
        opacity: 1;
        animation: thirdRingSpin 2.6s linear infinite;
    }
}

@property --ring-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

@keyframes thirdRingSpin {
    to {
        --ring-angle: 360deg;
    }
}

/* 无 JS 兜底：直接呈现最终状态 */
html:not(.js) .third__title span {
    transform: none;
}

html:not(.js) .third__card-media img {
    transform: none;
}

/* ============================================================
   6. 第三屏 H5 适配（read.md：主标题 0.44rem，内容不小于 0.32rem）
   ============================================================ */
html[data-mode="h5"] .third {
    padding: 0.6rem 0.4rem 0.8rem;
}

html[data-mode="h5"] .third__title {
    font-size: 0.44rem;
}

html[data-mode="h5"] .third__grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

html[data-mode="h5"] .third__card-name {
    margin-top: 0.24rem;
    font-size: 0.32rem;
}


/* ============================================================
   2. 第二屏：定制流程（Figma 611_466：标题 + 4 列流程卡片）
      设计稿：内容区 1600，内边距 100 / 160
   ============================================================ */
.second {
    box-sizing: border-box;
    padding: 1rem 1.6rem;
}

/* ---------- 头部：标题 + 描述 ---------- */
.second__title {
    font-size: 0.48rem;
    font-weight: 600;
    line-height: 1.2;
    color: #333333;
}

.second__desc {
    max-width: 7.12rem;
    margin-top: 0.22rem;
    font-size: 0.2rem;
    font-weight: 400;
    line-height: 1.5;
    color: #666666;
}

/* ---------- 卡片网格：4 列，列距 32 ---------- */
.second__grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.32rem;
    margin-top: 0.46rem;
    perspective: 12rem;
}

/* ---------- 卡片：上图下文，底部 4px #E5E5E5 ---------- */
.process {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-bottom: 0.04rem solid #E5E5E5;
    border-radius: 0.2rem;
    overflow: hidden;
    transform-style: preserve-3d;
    transition:
        transform 0.45s var(--ease-out),
        box-shadow 0.45s ease;
}

/* 悬浮蓝色渐变描边（默认隐藏） */
.process::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 1px solid transparent;
    border-radius: 0.2rem;
    background: linear-gradient(135deg, rgba(3, 82, 141, 0.9), rgba(1, 74, 220, 0.6)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* 底部 4px 进度条：品牌蓝从左擦入，覆盖 #E5E5E5 */
.process::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.04rem;
    z-index: 2;
    width: 100%;
    height: 0.04rem;
    background: linear-gradient(90deg, #03528D 0%, #014ADC 100%);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.45s var(--ease-out);
    pointer-events: none;
}

.process:hover {
    transform: translateY(-0.12rem) rotateX(3deg);
    box-shadow: 0 0.16rem 0.4rem rgba(3, 82, 141, 0.22);
}

/* 悬浮时立即响应（抵消入场错峰的 transition-delay） */
.process:hover,
.process:focus-within {
    transition-delay: 0s;
}

.process:hover::before,
.process:focus-within::before {
    opacity: 1;
}

.process:hover::after,
.process:focus-within::after {
    transform: scaleX(1);
}

/* ---------- 图片区：376 × 250 ---------- */
.process__media {
    position: relative;
    height: 2.5rem;
    overflow: hidden;
}

.process__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out), filter 0.6s ease;
    will-change: transform;
}

/* 悬浮蓝色渐变压色 */
.process__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(3, 82, 141, 0) 40%,
            rgba(3, 82, 141, 0.35) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.process:hover .process__media img {
    transform: scale(1.08);
    filter: saturate(1.15) brightness(1.04);
}

.process:hover .process__media::after {
    opacity: 1;
}

/* ---------- 文本区 ---------- */
.process__body {
    position: relative;
    flex: 1;
    min-height: 3.48rem;
    padding: 0.38rem 0.3rem 0.4rem;
}

.process__name {
    font-size: 0.24rem;
    font-weight: 600;
    line-height: 1.2;
    color: #333333;
    transition: color 0.3s ease;
}

.process__text {
    margin-top: 0.26rem;
    font-size: 0.2rem;
    font-weight: 500;
    line-height: 1.5;
    color: #666666;
}

/* 箭头：右上角，悬浮右移 */
.process__arrow {
    position: absolute;
    top: 0.45rem;
    right: 0.26rem;
    width: 0.33rem;
    height: auto;
    transition: transform 0.35s var(--ease-out), opacity 0.35s ease;
}

.process:hover .process__name {
    color: #03528D;
}

.process:hover .process__arrow {
    transform: translateX(0.1rem);
}

/* ---------- 入场动画：个性化变体（上浮 + 缩放），按列错峰 ---------- */
.process[data-reveal] {
    transform: translateY(0.5rem) scale(0.95);
}

.process[data-reveal].is-in-view {
    transform: translateY(0) scale(1);
}

.process:nth-child(2) {
    transition-delay: 0.12s;
}

.process:nth-child(3) {
    transition-delay: 0.24s;
}

.process:nth-child(4) {
    transition-delay: 0.36s;
}

/* ============================================================
   3. H5 适配（模块主标题 0.44rem，内容不小于 0.32rem）
   ============================================================ */
html[data-mode="h5"] .second {
    padding: 0.6rem 0.4rem;
}

html[data-mode="h5"] .second__title {
    font-size: 0.44rem;
}

html[data-mode="h5"] .second__desc {
    max-width: 100%;
    margin-top: 0.24rem;
    font-size: 0.32rem;
}

html[data-mode="h5"] .second__grid {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

html[data-mode="h5"] .process__media {
    height: 4rem;
}

html[data-mode="h5"] .process__body {
    min-height: 0;
    padding: 0.4rem 0.32rem 0.48rem;
}

html[data-mode="h5"] .process__name {
    font-size: 0.32rem;
}

html[data-mode="h5"] .process__text {
    margin-top: 0.24rem;
    font-size: 0.32rem;
}

html[data-mode="h5"] .process__arrow {
    top: 0.52rem;
    right: 0.3rem;
    width: 0.44rem;
}

/* ============================================================
   4. 第五屏 Leave a Message（Figma 1264_809：1920×840）
   ------------------------------------------------------------
   #F0F8FF 底；内容区 1340 居中，标题 48 居中，
   说明/隐私 16 #999（870 宽居中）；字段 3 列 ×420（列距 40，行距 29），
   输入框 60 高白底 #D9D9D9 描边，留言区 1340×157，
   Reset/Submit 130×46 圆角 10；表单内部不加 class，样式由 .fifth 父级定位
   ============================================================ */
.fifth {
    box-sizing: border-box;
    padding: 0.8rem 2.9rem 0.98rem;
    background: #f0f8ff;
}

.fifth__title {
    margin: 0;
    font-family: "Poppins", "Montserrat", sans-serif;
    font-size: 0.48rem;
    font-weight: 600;
    line-height: 1.15;
    color: #333333;
    text-align: center;
}

.fifth__intro {
    width: 8.7rem;
    margin: 0.27rem auto 0;
    font-family: "Poppins", "Montserrat", sans-serif;
    font-size: 0.16rem;
    font-weight: 400;
    line-height: 1.5;
    color: #999999;
    text-align: center;
}

/* ---------- 表单栅格：3 列 ×420，列距 40，行距 29 ---------- */
.fifth form>ul {
    display: grid;
    grid-template-columns: repeat(3, 4.2rem);
    justify-content: space-between;
    row-gap: 0.29rem;
    margin: 0.45rem 0 0;
    padding: 0;
    list-style: none;
}

.fifth form>ul>li,
.fifth form>ul>li>p {
    margin: 0;
}

/* Content 留言区：整行 1340（行距 +0.02 对齐设计稿 355 基准） */
.fifth form>ul>li:nth-child(7) {
    grid-column: 1 / -1;
    margin-top: 0.02rem;
}

/* label 视觉隐藏（保留无障碍），可见文字由 placeholder 承担 */
.fifth form label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* 框式输入框：420×60，白底 #D9D9D9 描边 */
.fifth form input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 0.6rem;
    padding: 0 0.2rem;
    border: 1px solid #d9d9d9;
    border-radius: 0;
    background: #ffffff;
    outline: none;
    color: #333333;
    font-family: "Poppins", "Montserrat", sans-serif;
    font-size: 0.16rem;
    font-weight: 400;
    line-height: normal;
    transition: border-color 0.3s ease;
}

.fifth form input::placeholder,
.fifth form textarea::placeholder {
    color: #666666;
    opacity: 1;
}

.fifth form input:focus,
.fifth form textarea:focus {
    border-color: #03528d;
}

/* Content 留言区：1340×157 */
.fifth form textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 1.57rem;
    padding: 0.15rem 0.2rem;
    border: 1px solid #d9d9d9;
    border-radius: 0;
    background: #ffffff;
    outline: none;
    color: #333333;
    font-family: "Poppins", "Montserrat", sans-serif;
    font-size: 0.16rem;
    font-weight: 400;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease;
}

/* 隐私说明：870 宽居中，位于留言区与按钮之间 */
.fifth form>p:nth-of-type(1) {
    width: 8.7rem;
    margin: 0.26rem auto 0;
    font-family: "Poppins", "Montserrat", sans-serif;
    font-size: 0.16rem;
    font-weight: 400;
    line-height: 1.5;
    color: #999999;
    text-align: center;
}

/* 按钮组：Reset 130×46 描边 + Submit 130×46 品牌蓝，圆角 10，间距 10 */
.fifth form>p:nth-of-type(2) {
    display: flex;
    justify-content: center;
    gap: 0.1rem;
    margin: 0.3rem 0 0;
}

.fifth form>p:nth-of-type(2) button {
    width: 1.3rem;
    height: 0.46rem;
    border-radius: 0.1rem;
    font-family: "Poppins", "Montserrat", sans-serif;
    font-size: 0.18rem;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.fifth form>p:nth-of-type(2) button[type="button"] {
    border: 1px solid #d9d9d9;
    background: transparent;
    color: #666666;
}

.fifth form>p:nth-of-type(2) button[type="button"]:hover {
    border-color: #03528d;
    color: #03528d;
}

.fifth form>p:nth-of-type(2) button[type="submit"] {
    border: none;
    background: #03528d;
    color: #ffffff;
}

.fifth form>p:nth-of-type(2) button[type="submit"]:hover {
    background: #034674;
}

/* ---------- 入场动画（data-reveal：标题/说明上浮，表单逐项错峰上滑） ---------- */
.fifth__title[data-reveal],
.fifth__intro[data-reveal] {
    opacity: 0;
    transform: translateY(0.4rem);
    transition: opacity 0.7s ease, transform 0.7s var(--ease-out);
}

.fifth__title[data-reveal].is-in-view,
.fifth__intro[data-reveal].is-in-view {
    opacity: 1;
    transform: none;
}

.fifth form[data-reveal]>ul>li,
.fifth form[data-reveal]>p {
    opacity: 0;
    transform: translateY(0.3rem);
    transition: opacity 0.6s ease, transform 0.6s var(--ease-out);
}

.fifth form[data-reveal].is-in-view>ul>li,
.fifth form[data-reveal].is-in-view>p {
    opacity: 1;
    transform: none;
}

/* 逐项错峰：字段 → 隐私说明 → 按钮 */
.fifth form>ul>li:nth-child(1) { transition-delay: 0s; }
.fifth form>ul>li:nth-child(2) { transition-delay: 0.06s; }
.fifth form>ul>li:nth-child(3) { transition-delay: 0.12s; }
.fifth form>ul>li:nth-child(4) { transition-delay: 0.18s; }
.fifth form>ul>li:nth-child(5) { transition-delay: 0.24s; }
.fifth form>ul>li:nth-child(6) { transition-delay: 0.3s; }
.fifth form>ul>li:nth-child(7) { transition-delay: 0.36s; }
.fifth form>p:nth-of-type(1) { transition-delay: 0.42s; }
.fifth form>p:nth-of-type(2) { transition-delay: 0.48s; }

/* ---------- H5 适配（模块主标题 0.44rem，内容不小于 0.32rem） ---------- */
html[data-mode="h5"] .fifth {
    padding: 0.8rem 0.4rem 1rem;
}

html[data-mode="h5"] .fifth__title {
    font-size: 0.44rem;
}

html[data-mode="h5"] .fifth__intro {
    width: 100%;
    margin-top: 0.24rem;
    font-size: 0.32rem;
}

html[data-mode="h5"] .fifth form>ul {
    grid-template-columns: 1fr;
    row-gap: 0.3rem;
    margin-top: 0.4rem;
}

html[data-mode="h5"] .fifth form>ul>li:nth-child(7) {
    margin-top: 0;
}

html[data-mode="h5"] .fifth form input {
    height: 0.88rem;
    padding: 0 0.24rem;
    font-size: 0.32rem;
}

html[data-mode="h5"] .fifth form textarea {
    height: 2.4rem;
    padding: 0.2rem 0.24rem;
    font-size: 0.32rem;
}

html[data-mode="h5"] .fifth form>p:nth-of-type(1) {
    width: 100%;
    margin-top: 0.3rem;
    font-size: 0.32rem;
}

html[data-mode="h5"] .fifth form>p:nth-of-type(2) {
    margin-top: 0.4rem;
}

html[data-mode="h5"] .fifth form>p:nth-of-type(2) button {
    width: 2.4rem;
    height: 0.8rem;
    font-size: 0.32rem;
}