.first {
    position: relative;
    width: 100%;
    max-width: 19.2rem;
    height: 8.8rem;
    margin: 0 auto;
    background: #1a1a1a url('../assets/images/Contact/first-img.webp') no-repeat center / cover;
    box-sizing: border-box;
    padding: 0 1.6rem;
    color: #FFF;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.first__content {
    flex: 1;
    min-width: 0;
}

.first__title {
    color: #FFF;
    font-family: Montserrat, sans-serif;
    font-size: 0.40rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: capitalize;
    margin: 0 0 0.24rem;
    width: 6.58rem;
}

.first__desc {
    color: #FFF;
    font-family: Montserrat, sans-serif;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-transform: capitalize;
    margin: 0;
    line-height: 175%;
    width: 5.44rem;
}

.first__breadcrumb {
    position: absolute;
    left: 1.6rem;
    bottom: 0.30rem;
    color: #FFF;
    font-family: Montserrat, sans-serif;
    font-size: 0.18rem;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    text-transform: capitalize;
    display: flex;
    align-items: center;
    gap: 0.10rem;
    margin: 0;
    padding: 0;
}

.first__breadcrumb a {
    color: #FFF;
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.first__breadcrumb a:hover {
    opacity: 0.75;
}

.first__breadcrumb-sep {
    color: #FFF;
    opacity: 0.85;
}

.first__breadcrumb-current {
    color: #FFF;
}

.second {
    height: 4rem;
    display: flex;
    justify-content: center;
}

.second__inner {
    width: 15.52rem;
    height: 5.05rem;
    border-radius: 0.2rem;
    background: #FFF;
    box-shadow: 0 0.04rem 0.36rem 0 rgba(0, 0, 0, 0.09);
    padding: 0.51rem 0.71rem 0;
    position: relative;
    top: -1.84rem;
}

.second__inner h1 {
    color: #333;
    font-family: Inter;
    font-size: 0.4rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: capitalize;
    margin-bottom: 0.53rem;
}

.second__inner-box {
    display: flex;
    justify-content: space-between;
}

.second__inner-item {
    border-radius: 0.1rem;
    background: #F6F6F6;
    width: 3.36rem;
    height: 3rem;
    padding: 0.8rem 0.4rem 0;
    display: flex;
    flex-direction: column;
}

.second__inner-box img {
    width: 0.5rem;
    height: 0.5rem;
    margin-bottom: 0.3rem;
}

.second__inner-box span {
    color: #999;
    font-family: Figtree;
    font-size: 0.24rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-transform: capitalize;
    margin-bottom: 0.1rem;

}

.second__inner-box p {
    color: #333;
    font-family: Figtree;
    font-size: 0.18rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-transform: capitalize;
}

/* ---------- 第二屏：入场动画（进入视口后错峰淡入上浮） ---------- */
html.js .second:not(.is-in-view) .second__inner > h1,
html.js .second:not(.is-in-view) .second__inner-item {
    opacity: 0;
    transform: translateY(0.2rem);
}

.second.is-in-view .second__inner > h1 {
    animation: contactSecondFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0s backwards;
}

.second.is-in-view .second__inner-item:nth-child(1) {
    animation: contactSecondFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s backwards;
}

.second.is-in-view .second__inner-item:nth-child(2) {
    animation: contactSecondFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.16s backwards;
}

.second.is-in-view .second__inner-item:nth-child(3) {
    animation: contactSecondFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.22s backwards;
}

.second.is-in-view .second__inner-item:nth-child(4) {
    animation: contactSecondFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.28s backwards;
}

@keyframes contactSecondFadeUp {
    from {
        opacity: 0;
        transform: translateY(0.2rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- 第二屏：卡片悬浮动效 & 文字变色 ---------- */
.second__inner-item {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.second__inner-item span,
.second__inner-item p {
    transition: color 0.3s ease;
}

.second__inner-item:hover {
    transform: translateY(-0.05rem);
    box-shadow: 0 0.1rem 0.24rem rgba(2, 52, 125, 0.12);
}

.second__inner-item:hover span,
.second__inner-item:hover p {
    color: #02347D;
}

/* ---------- 第三屏：Message 区（仅用父级 + 元素选择器定位表单） ---------- */
.third {
    width: 19.2rem;
    height: 8.37rem;
    padding: 1.19rem 2.26rem 0;
    margin: 0 auto;
    box-sizing: border-box;
    background: linear-gradient(180deg, #F3F9FF 0%, #FFF 100%);
    display: flex;
    flex-direction: column;
}

.third__inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 标题（左） + 描述（右） */
.third__inner > h2 {
    color: #333;
    text-align: center;
    font-family: Inter, sans-serif;
    font-size: 0.4rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: capitalize;
    margin: 0;
    flex: 0 0 auto;
}

.third__inner > p {
    width: 5.03rem;
    color: #999;
    font-family: Inter, sans-serif;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 175%;
    text-transform: capitalize;
    margin: 0;
    flex: 0 0 auto;
    max-width: 8rem;
    text-align: left;
}

/* 表单容器独占下方（wpcf7 结构：form 外多包了一层 div.wpcf7） */
.third > .wpcf7 {
    flex: 0 0 100%;
    margin-top: 0.27rem;
}

.third form {
    display: flex;
    flex-direction: column;
}

/* ul 两列 → 单列布局 */
.third form ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.third form ul li {
    box-sizing: border-box;
}

/* 1~4 行：两列 */
.third form ul li:nth-child(1),
.third form ul li:nth-child(2),
.third form ul li:nth-child(3),
.third form ul li:nth-child(4) {
    width: calc(50% - 0.1rem);
}

/* 5、6 行：整行 */
.third form ul li:nth-child(5),
.third form ul li:nth-child(6) {
    width: 100%;
}

/* 抹默认 margin */
.third form ul li > p {
    margin: 0;
}

/* 外层 span：作为 label 的定位上下文 */
.third form ul li > p > span {
    display: block;
    position: relative;
}

/* label 浮在输入框左上角 */
.third form ul li label {
    position: absolute;
    top: 0.16rem;
    left: 0.2rem;
    color: #333;
    font-family: Inter, sans-serif;
    font-size: 0.14rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    pointer-events: none;
    z-index: 10;
}

/* input / textarea 通用样式 */
.third form ul li input,
.third form ul li textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: #FFF;
    color: #333;
    font-family: Inter, sans-serif;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    padding: 0.36rem 0.2rem 0.12rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.third form ul li input:focus,
.third form ul li textarea:focus {
    border-color: rgba(2, 52, 125, 0.5);
    box-shadow: 0 0 0 2px rgba(2, 52, 125, 0.08);
}

/* 1~5 行高 60px */
.third form ul li:nth-child(1) input,
.third form ul li:nth-child(2) input,
.third form ul li:nth-child(3) input,
.third form ul li:nth-child(4) input,
.third form ul li:nth-child(5) input {
    height: 0.6rem;
}

/* 附件行：行容器 flex（input + Upload 按钮同行，按钮为绝对定位） */
.third form ul li:nth-child(5) > p > span > span {
    display: flex;
    align-items: center;
}

/* wrap 层是 flex 项，负责拉伸铺满整行 */
.third form ul li:nth-child(5) > p > span > span > span {
    flex: 1;
}

/* 附件行为原生文件选择框：去掉浏览器默认按钮，保持与文本框一致外观 */
.third form ul li input[type="file"] {
    cursor: pointer;
}

.third form ul li input[type="file"]::file-selector-button {
    display: none;
}

/* Upload 按钮 */
.third form ul li:nth-child(5) button {
    position: absolute;
    right: 0.24rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-left: none;
    border-radius: 0;
    background: var(--Style, #02347D);
    color: #FFF;
    font-family: Inter, sans-serif;
    font-size: 0.14rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0.92rem;
    height: 0.35rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

/* Upload 扫光高光层 */
.third form ul li:nth-child(5) button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.third form ul li:nth-child(5) button:hover {
    background: linear-gradient(135deg, #00B8E2 0%, #0063C3 100%);
    transform: translateY(-0.03rem);
    box-shadow: 0 0.02rem 0.06rem rgba(0, 99, 195, 0.18);
    filter: brightness(1.06);
}

.third form ul li:nth-child(5) button:hover::after {
    left: 150%;
}

/* Message 行 */
.third form ul li:nth-child(6) textarea {
    height: 1.56rem;
    resize: vertical;
    padding-top: 0.4rem;
}

/* 提交按钮（wpcf7 结构：按钮被 <p> 包裹） */
.third form > p:has(> button[type="submit"]) {
    margin: 0;
    display: flex;
    justify-content: center;
}

.third form > p > button[type="submit"] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 0.47rem;
    position: relative;
    overflow: hidden;
    align-self: center;
    margin-top: 0.4rem;
    background: var(--Style, #02347D);
    color: #FFF;
    font-family: Inter, sans-serif;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-transform: capitalize;
    border: none;
    border-radius: 0;
    cursor: pointer;
    gap: 0.1rem;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

/* 提交按钮扫光高光层 */
.third form > p > button[type="submit"]::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.third form > p > button[type="submit"]:hover {
    background: linear-gradient(135deg, #00B8E2 0%, #0063C3 100%);
    transform: translateY(-0.03rem);
    box-shadow: 0 0.02rem 0.06rem rgba(2, 52, 125, 0.18);
    filter: brightness(1.06);
}

.third form > p > button[type="submit"]:hover::after {
    left: 150%;
}

/* ---------- 第三屏：入场动画（进入视口后错峰淡入上浮） ---------- */
html.js .third:not(.is-in-view) .third__inner > h2,
html.js .third:not(.is-in-view) .third__inner > p,
html.js .third:not(.is-in-view) .wpcf7 form {
    opacity: 0;
    transform: translateY(0.2rem);
}

.third.is-in-view .third__inner > h2 {
    animation: contactThirdFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0s backwards;
}

.third.is-in-view .third__inner > p {
    animation: contactThirdFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.08s backwards;
}

.third.is-in-view .wpcf7 form {
    animation: contactThirdFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.16s backwards;
}

@keyframes contactThirdFadeUp {
    from {
        opacity: 0;
        transform: translateY(0.2rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fourth{
    padding: 0.93rem 1.60rem;
}

.fourth iframe{
    width: 100%;
    height: 6.12rem;
}

.fourth img{
    height: 6.12rem;
}

/* ---------- 第四屏：入场动画（进入视口后淡入上浮） ---------- */
html.js .fourth:not(.is-in-view) img {
    opacity: 0;
    transform: translateY(0.2rem);
}

.fourth.is-in-view img {
    animation: contactFourthFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0s backwards;
}

@keyframes contactFourthFadeUp {
    from {
        opacity: 0;
        transform: translateY(0.2rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   H5 适配（data-mode="h5"，750 设计稿基准）
   ============================================================ */
/* ---------- 第一屏：Contact 横幅 ---------- */
html[data-mode="h5"] .first {
    height: auto;
    min-height: 4.4rem;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.16rem;
    padding: 1.2rem 0.3rem 0.6rem;
}

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

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

/* PC 稿的强制换行在窄屏会退化成逐词断行，H5 下取消 */
html[data-mode="h5"] .first__title br,
html[data-mode="h5"] .first__desc br {
    display: none;
}

/* ---------- 第二屏：Contact Information ---------- */
html[data-mode="h5"] .second {
    height: auto;
    padding: 0 0.3rem 0.4rem;
}

html[data-mode="h5"] .second__inner {
    position: static;
    width: 100%;
    height: auto;
    padding: 0.4rem 0.3rem;
    border-radius: 0.16rem;
}

html[data-mode="h5"] .second__inner h1 {
    font-size: 0.36rem;
    margin-bottom: 0.3rem;
}

html[data-mode="h5"] .second__inner-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.2rem;
}

html[data-mode="h5"] .second__inner-item {
    width: 100%;
    height: auto;
    min-height: 2.6rem;
    padding: 0.4rem 0.24rem;
}

html[data-mode="h5"] .second__inner-box img {
    width: 0.44rem;
    height: 0.44rem;
    margin-bottom: 0.2rem;
}

html[data-mode="h5"] .second__inner-box span {
    font-size: 0.24rem;
}

html[data-mode="h5"] .second__inner-box p {
    font-size: 0.22rem;
    line-height: 1.4;
}

/* 触屏无 hover，取消悬浮动效避免点击后残留位移 */
html[data-mode="h5"] .second__inner-item:hover {
    transform: none;
    box-shadow: 0 0.04rem 0.36rem 0 rgba(0, 0, 0, 0.09);
}

/* ---------- 第三屏：Message 表单 ---------- */
html[data-mode="h5"] .third {
    width: 100%;
    height: auto;
    padding: 0.6rem 0.3rem;
}

html[data-mode="h5"] .third__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.16rem;
}

html[data-mode="h5"] .third__inner > h2 {
    font-size: 0.36rem;
    text-align: left;
}

html[data-mode="h5"] .third__inner > p {
    font-size: 0.26rem;
    max-width: none;
    text-align: left;
}

html[data-mode="h5"] .third__inner > p br {
    display: none;
}

html[data-mode="h5"] .third > .wpcf7 {
    margin-top: 0.4rem;
}

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

html[data-mode="h5"] .third form ul li:nth-child(1),
html[data-mode="h5"] .third form ul li:nth-child(2),
html[data-mode="h5"] .third form ul li:nth-child(3),
html[data-mode="h5"] .third form ul li:nth-child(4) {
    width: 100%;
}

html[data-mode="h5"] .third form ul li label {
    top: 0.18rem;
    left: 0.24rem;
    font-size: 0.22rem;
}

html[data-mode="h5"] .third form ul li input,
html[data-mode="h5"] .third form ul li textarea {
    font-size: 0.26rem;
    padding: 0.5rem 0.24rem 0.16rem;
}

html[data-mode="h5"] .third form ul li:nth-child(1) input,
html[data-mode="h5"] .third form ul li:nth-child(2) input,
html[data-mode="h5"] .third form ul li:nth-child(3) input,
html[data-mode="h5"] .third form ul li:nth-child(4) input,
html[data-mode="h5"] .third form ul li:nth-child(5) input {
    height: 0.96rem;
}

/* 附件行：为 Upload 按钮预留输入空间，避免文字被按钮覆盖 */
html[data-mode="h5"] .third form ul li:nth-child(5) input {
    padding-right: 1.6rem;
}

html[data-mode="h5"] .third form ul li:nth-child(5) button {
    right: 0.16rem;
    width: 1.3rem;
    height: 0.6rem;
    font-size: 0.22rem;
}

html[data-mode="h5"] .third form ul li:nth-child(6) textarea {
    height: 2.4rem;
    padding-top: 0.56rem;
}

html[data-mode="h5"] .third form > p > button[type="submit"] {
    width: 3.2rem;
    height: 0.8rem;
    margin-top: 0.4rem;
    font-size: 0.26rem;
}

/* ---------- 第四屏：地图 ---------- */
html[data-mode="h5"] .fourth {
    padding: 0.4rem 0.3rem 0.6rem;
}

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