.first {
    height: 7.6rem;
    background-image: url('../assets/images/Contact/first-img.webp');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    padding-left: 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.first h2 {
    color: #FFF;
    font-family: Montserrat;
    font-size: 0.48rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 0.2rem;
    width: 8rem;
}

.first p {
    color: #FFF;
    font-family: Montserrat;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    width: 6.5rem;
    /* 24px */
    text-transform: capitalize;
}
/* ---------- H5 适配 ---------- */
html[data-mode="h5"] .first {
    height: 4.6rem;
    padding: 0.8rem 0.24rem 0;
    background-size: cover;
}

html[data-mode="h5"] .fourth {
    height: auto;
}

html[data-mode="h5"] .fourth img {
    width: 100%;
    height: auto;
    display: block;
}

html[data-mode="h5"] .first h2 {
    font-size: 0.36rem;
    margin-bottom: 0.16rem;
}

html[data-mode="h5"] .first p {
    font-size: 0.14rem;
}

/* H5 下忽略桌面端的强制换行，避免窄屏断句生硬 */
html[data-mode="h5"] .first p br {
    display: none;
}

.fourth{
    height: 5.38rem;
}

.fourth img{
    height: 5.38rem;
}

/* ============================================================
   第二屏：联系方式卡片（上移叠在首屏底部）
   设计稿基准：1920×355，padding 0 160（1rem = 100px）
   ============================================================ */
.second {
    width: 100%;
    max-width: 19.2rem;
    height: 3.55rem; /* 355px */
    margin: 0 auto;
    padding: 0 1.6rem; /* 0 160px */
    box-sizing: border-box;
    overflow: visible;
}

.second__grid {
    display: flex;
    justify-content: center;
    gap: 0.2rem; /* 3×520 + 2×20 = 1600 */
}

.second__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 5.2rem; /* 520px */
    height: 3.49rem; /* 349px */
    margin-top: -1.65rem; /* 向上位移 349-184=165px，叠在首屏底部 */
    padding-top: 0.75rem; /* padding-top 75px */
    box-sizing: border-box;
    border-radius: 0.2rem; /* 20px */
    border: 1px solid #D9D9D9;
    background: #FFF;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s ease, border-color 0.4s ease;
}

.second__card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0.6rem; /* 60px */
    height: 0.6rem; /* 60px */
    border-radius: 50%;
    background: #044EAD;
    margin-bottom: 0.3rem; /* 下边距 30px */
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s ease;
}

.second__card-icon img {
    display: block;
    width: 0.32rem; /* 32px */
    height: 0.32rem; /* 32px */
}

.second__card-title {
    color: #333;
    text-align: center;
    font-family: Montserrat, sans-serif;
    font-size: 0.24rem; /* 24px */
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin: 0 0 0.1rem; /* 下边距 10px */
    transition: color 0.4s ease;
}

.second__card-desc {
    width: 3.18rem; /* 318px */
    color: #666;
    text-align: center;
    font-family: Montserrat, sans-serif;
    font-size: 0.16rem; /* 16px */
    font-style: normal;
    font-weight: 400;
    line-height: 150%; /* 24px */
    margin: 0;
    transition: color 0.4s ease;
}

/* ---------- 悬浮动效：上浮 + 蓝色光晕 + 图标弹跳放大 + 标题变蓝 ---------- */
.second__card:hover {
    transform: translateY(-0.08rem);
    border-color: #044EAD;
    box-shadow: 0 0.12rem 0.26rem rgba(4, 78, 173, 0.15);
}

.second__card:hover .second__card-icon {
    transform: scale(1.12);
    box-shadow: 0 0 0.16rem rgba(4, 78, 173, 0.45);
}

.second__card:hover .second__card-title {
    color: #044EAD;
}

/* ---------- 入场动画（common.js 滚动加 .is-in-view 触发） ----------
   三卡自下依次翻入 → 图标圆底弹跳点亮 → 文本次第浮现 */
html.js .second:not(.is-in-view) .second__card {
    opacity: 0;
}

.second.is-in-view .second__card {
    animation: contact-card-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.second.is-in-view .second__card:nth-child(1) { animation-delay: 0.3s; }
.second.is-in-view .second__card:nth-child(2) { animation-delay: 0.42s; }
.second.is-in-view .second__card:nth-child(3) { animation-delay: 0.54s; }

.second.is-in-view .second__card-icon {
    animation: contact-icon-in 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.second.is-in-view .second__card:nth-child(1) .second__card-icon { animation-delay: 0.5s; }
.second.is-in-view .second__card:nth-child(2) .second__card-icon { animation-delay: 0.62s; }
.second.is-in-view .second__card:nth-child(3) .second__card-icon { animation-delay: 0.74s; }

.second.is-in-view .second__card-title {
    animation: contact-fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.second.is-in-view .second__card:nth-child(1) .second__card-title { animation-delay: 0.62s; }
.second.is-in-view .second__card:nth-child(2) .second__card-title { animation-delay: 0.74s; }
.second.is-in-view .second__card:nth-child(3) .second__card-title { animation-delay: 0.86s; }

.second.is-in-view .second__card-desc {
    animation: contact-fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.second.is-in-view .second__card:nth-child(1) .second__card-desc { animation-delay: 0.7s; }
.second.is-in-view .second__card:nth-child(2) .second__card-desc { animation-delay: 0.82s; }
.second.is-in-view .second__card:nth-child(3) .second__card-desc { animation-delay: 0.94s; }

@keyframes contact-card-in {
    0% {
        opacity: 0;
        transform: translateY(0.45rem) rotateX(-18deg) scale(0.94);
        filter: blur(0.05rem);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0) scale(1);
        filter: blur(0);
    }
}

@keyframes contact-icon-in {
    0% {
        transform: scale(0);
    }

    70% {
        transform: scale(1.18);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes contact-fade-up {
    0% {
        opacity: 0;
        transform: translateY(0.12rem);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- H5 适配 ---------- */
html[data-mode="h5"] .second {
    height: auto;
    padding: 0 0.24rem;
}

html[data-mode="h5"] .second__grid {
    flex-direction: column;
    gap: 0.24rem;
}

html[data-mode="h5"] .second__card {
    width: 100%;
    height: auto;
    margin-top: 0;
    padding-bottom: 0.4rem;
}


/* ============================================================
   第三屏：Leave a Message（左图上移叠出 + 右侧留言表单）
   设计稿基准：1920×715，padding 0 160（1rem = 100px）
   表单结构复制自 catalog twelfth，除宽度外样式一致
   ============================================================ */
.third {
    width: 100%;
    max-width: 19.2rem;
    height: 7.15rem; /* 715px */
    margin: 0 auto;
    padding: 0 1.6rem; /* 0 160px */
    box-sizing: border-box;
    background: #F4F7FD;
    display: flex;
    align-items: center;
}

/* ---------- 左侧图片：向上位移 81px 叠出区块 ---------- */
.third__figure {
    position: relative;
    flex-shrink: 0;
    width: 6.24rem; /* 624px */
    height: 7.04rem; /* 704px */
    margin-right: 0.96rem; /* 右边距 96px */
    overflow: hidden;
    transform: translateY(-0.81rem); /* 向上位移 81px */
    transition: box-shadow 0.4s ease;
}

.third__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 悬浮：图片放大 + 蓝色柔光投影 */
.third__figure:hover {
    box-shadow: 0 0.2rem 0.44rem rgba(4, 78, 173, 0.22);
}

.third__figure:hover .third__img {
    transform: scale(1.05);
}

/* ---------- 右侧：标题 + 表单 ---------- */
.third__panel {
    flex: 1;
    min-width: 0;
}

.third__title {
    color: #333;
    font-family: Montserrat, sans-serif;
    font-size: 0.56rem; /* 56px */
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0 0 0.43rem; /* 下边距 10px */
}

/* ---------- 表单（样式与 catalog twelfth 一致，仅字段宽度不同） ---------- */
.third form ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.28rem 0.2rem; /* 上下间隔 28，左右间隔 20 */
    margin: 0 0 0.46rem; /* 下边距 46px */
    padding: 0;
    list-style: none;
}

.third form li {
    width: 2.8rem; /* 280px */
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 第三行：文本域通栏 */
.third form li:last-child {
    width: 100%;
}

.third form label {
    display: block;
    color: #999;
    font-family: Montserrat, sans-serif;
    font-size: 0.16rem; /* 16px */
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 150% */
    transition: color 0.3s ease;
}

.third form input,
.third form textarea {
    display: block;
    width: 100%;
    padding: 0.18rem 0; /* 上下内边距 18px */
    box-sizing: border-box;
    background: none;
    border: 0;
    border-bottom: 1px solid #E5E5E5;
    color: #000;
    font-family: Montserrat, sans-serif;
    font-size: 0.16rem; /* 16px */
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 150% */
    outline: none;
    transition: border-color 0.3s ease;
    padding-top: 0;
}

.third form textarea {
    resize: none;
    height: 0.7rem;
}

.third form input::placeholder,
.third form textarea::placeholder {
    color: #999;
}

.third form input:focus,
.third form textarea:focus {
    border-bottom-color: #044EAD;
}

/* 悬浮：字段微抬 + 标签变蓝 */
.third form li:hover {
    transform: translateY(-0.02rem);
}

.third form li:hover label {
    color: #044EAD;
}

/* ---------- 表单下方描述（左对齐） ---------- */
.third__privacy {
    color: #999;
    font-family: Montserrat, sans-serif;
    margin: 0 0 0.4rem; /* 下边距 40px */
    font-size: 0.16rem; /* 16px */
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 150% */
}

/* ---------- 按钮区（左对齐） ---------- */
.third__btns p{
    display: flex;
}

.third__reset,
.third__submit {
    width: 1.3rem; /* 130px */
    height: 0.46rem; /* 46px */
    font-family: Montserrat, sans-serif;
    font-size: 0.18rem; /* 18px */
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    border: 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.third__reset {
    margin-right: 0.1rem; /* 右边距 10px */
    background: #F5F5F5;
    color: #666;
}

.third__submit {
    background: #044EAD;
    color: #FFF;
}

/* ---------- 按钮悬浮炫酷动效：高光斜扫 + 柔和光晕 ---------- */
.third__reset::before,
.third__submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(105deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    transition: left 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.third__reset:hover {
    background: #333;
    color: #FFF;
    box-shadow: 0 0.04rem 0.12rem rgba(0, 0, 0, 0.15);
}

.third__reset:hover::before {
    left: 130%;
}

.third__submit:hover {
    background: linear-gradient(90deg, #044EAD 0%, #1078D8 100%);
    box-shadow: 0 0.06rem 0.16rem rgba(4, 78, 173, 0.28);
    transform: translateY(-0.02rem);
}

.third__submit:hover::before {
    left: 130%;
}

.third__submit:active,
.third__reset:active {
    transform: translateY(0);
    transition-duration: 0.12s;
}

/* ---------- 入场动画（common.js 滚动加 .is-in-view 触发） ----------
   图片自左揭开并归位 → 标题擦亮 → 字段错峰上浮 → 按钮弹入 */
html.js .third:not(.is-in-view) .third__figure,
html.js .third:not(.is-in-view) .third__title,
html.js .third:not(.is-in-view) .third form li,
html.js .third:not(.is-in-view) .third__privacy,
html.js .third:not(.is-in-view) .third__btns {
    opacity: 0;
}

.third.is-in-view .third__figure {
    animation: third-img-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s backwards;
}

.third.is-in-view .third__title {
    animation: third-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s backwards;
}

.third.is-in-view .third form li {
    animation: third-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.third.is-in-view .third form li:nth-child(1) { animation-delay: 0.45s; }
.third.is-in-view .third form li:nth-child(2) { animation-delay: 0.53s; }
.third.is-in-view .third form li:nth-child(3) { animation-delay: 0.61s; }
.third.is-in-view .third form li:nth-child(4) { animation-delay: 0.69s; }
.third.is-in-view .third form li:nth-child(5) { animation-delay: 0.77s; }
.third.is-in-view .third form li:nth-child(6) { animation-delay: 0.85s; }
.third.is-in-view .third form li:nth-child(7) { animation-delay: 0.93s; }

.third.is-in-view .third__privacy {
    animation: third-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1.05s backwards;
}

.third.is-in-view .third__btns {
    animation: third-btn-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.15s backwards;
}

@keyframes third-img-in {
    0% {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
        transform: translateY(-0.81rem) translateX(-0.3rem);
    }

    100% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
        transform: translateY(-0.81rem) translateX(0);
    }
}

@keyframes third-fade-up {
    0% {
        opacity: 0;
        transform: translateY(0.2rem);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes third-btn-in {
    0% {
        opacity: 0;
        transform: translateY(0.25rem) scale(0.88);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ---------- H5 适配 ---------- */
html[data-mode="h5"] .third {
    height: auto;
    padding: 0.6rem 0.24rem;
    flex-direction: column;
    align-items: flex-start;
}

html[data-mode="h5"] .third__figure {
    width: 100%;
    height: auto;
    margin-right: 0;
    transform: none;
}

html[data-mode="h5"] .third__img {
    height: auto;
}

html[data-mode="h5"] .third__panel {
    width: 100%;
    margin-top: 0.4rem;
}

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

html[data-mode="h5"] .third form li {
    width: 100%;
}