/* ============================================================
   Contact Us 页面
   ============================================================ */
.contact-us-main {
    background: #fff;
}

/* ---------- 第一屏 banner（1920×600） ---------- */
.first {
    position: relative;
    width: 19.2rem;
    max-width: 100%;
    height: 6rem;
    margin: 0 auto;
    background: url("../assets/images/ContactUs/first-img.png") no-repeat center center / cover;
    /* 用户指定的内边距：顶部 392px，左侧 310px
       rem 换算（基准 100px / rem）：
         392 / 100 = 3.92rem
         310 / 100 = 3.1rem   */
    padding: 3.92rem 0 0 3.1rem;
    box-sizing: border-box;
    overflow: hidden;
    color: #fff;
}

.first__content {
    /* 内容块紧贴 padding 内侧即可 */
    color: #fff;
}

.first__title {
    color: #FFF;
    font-family: Gabarito;
    font-size: 0.56rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0 0 0.1rem;
}

.first__desc {
    color: #CCC;
    font-family: Gabarito;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin: 0;
}

/* ---------- 第二屏 Contact Information ---------- */
.contact-info {
    width: 19.2rem;
    max-width: 100%;
    height: 7.3rem;
    margin: 0 auto;
    padding: 1rem 3.1rem 0;
    box-sizing: border-box;
    background: #fff;
}

.contact-info__header {
    text-align: center;
    margin-bottom: 0.6rem;
}

.contact-info__title {
    color: #333;
    font-family: Gabarito;
    font-size: 0.48rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0 0 0.1rem;
}

.contact-info__subtitle {
    color: #999;
    text-align: center;
    font-family: Gabarito;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin: 0;
}

.contact-info__card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F7F8FA;
    border-radius: 0.12rem;
    padding: 0.4rem;
    gap: 0.4rem;
}

.contact-info__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0.32rem 0.24rem;
    flex: 1;
}

.contact-info__item {
    display: flex;
    align-items: flex-start;
    gap: 0.12rem;
}

.contact-info__item:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.contact-info__item:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.contact-info__item:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
}

.contact-info__icon {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info__icon--green {
    background: #4CAF50;
}

.contact-info__icon--dark {
    background: #333;
}

.contact-info__icon--blue {
    background: #2196F3;
}

.contact-info__icon img {
    width: 0.36rem;
    height: 0.36rem;
}

.contact-info__text {
    display: flex;
    flex-direction: column;
    gap: 0.02rem;
    padding-top: 0.04rem;
}

.contact-info__label {
    color: #333;
    font-family: Gabarito;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
}

.contact-info__value {
    color: #666;
    font-family: Gabarito;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.contact-info__image {
    width: 3.2rem;
    height: 3.1rem;
    flex-shrink: 0;
    border-radius: 0.08rem;
    overflow: hidden;
    transition: box-shadow 0.4s ease;
}

.contact-info__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.contact-info__image:hover {
    box-shadow: 0 0.08rem 0.24rem rgba(20, 87, 224, 0.22);
}

.contact-info__image:hover img {
    transform: scale(1.05);
}

/* ---------- 第二屏 Contact Information 入场动画 ---------- */
/* 初始隐藏：仅当页面启用 JS 时生效（html.js），无 JS 时内容直接可见 */
html.js .contact-info__title,
html.js .contact-info__subtitle,
html.js .contact-info__item,
html.js .contact-info__image {
    opacity: 0;
}

/* 标题：自上而下淡入 */
.contact-info.is-in-view .contact-info__title {
    animation: contact-info-title-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 描述：延迟淡入上浮 */
.contact-info.is-in-view .contact-info__subtitle {
    animation: contact-info-up-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.12s;
}

/* 左侧联系项：阶梯式上浮 */
.contact-info.is-in-view .contact-info__item {
    animation: contact-info-up-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.contact-info.is-in-view .contact-info__item:nth-child(1) { animation-delay: 0.2s; }
.contact-info.is-in-view .contact-info__item:nth-child(2) { animation-delay: 0.32s; }
.contact-info.is-in-view .contact-info__item:nth-child(3) { animation-delay: 0.44s; }

/* 右侧图片：缩放淡入 */
.contact-info.is-in-view .contact-info__image {
    animation: contact-info-img-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.3s;
}

@keyframes contact-info-title-in {
    from { opacity: 0; transform: translateY(-0.25rem); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes contact-info-up-in {
    from { opacity: 0; transform: translateY(0.3rem); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes contact-info-img-in {
    from { opacity: 0; transform: scale(1.06); }
    to { opacity: 1; transform: scale(1); }
}

/* ---------- 第三屏 Leave a Message ---------- */
.third {
    width: 19.2rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 3.1rem 1rem;
    box-sizing: border-box;
    background: #fff;
    overflow: hidden;
}

.third__inner {
    width: 13rem;
    margin: 0 auto;
}

.third__title {
    color: #333;
    text-align: center;
    font-family: Gabarito;
    font-size: 0.48rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0 0 0.1rem;
}

.third__subtitle {
    color: #999;
    text-align: center;
    font-family: Gabarito;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin: 0 auto 0.56rem;
    max-width: 10.6rem;
}

.third__body {
    display: flex;
    align-items: flex-start;
}

.third__image {
    flex-shrink: 0;
    width: 5.82rem;
    height: 5.89rem;
    margin-right: 0.38rem;
    border-radius: 0.08rem;
    overflow: hidden;
    transition: box-shadow 0.4s ease;
}

.third__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.third__image:hover {
    box-shadow: 0 0.08rem 0.24rem rgba(20, 87, 224, 0.22);
}

.third__image:hover img {
    transform: scale(1.05);
}

.third__form {
    flex: 1 1 auto;
    width: 6.8rem;
    text-align: left;
}

.third form ul {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 0 0.12rem;
    column-gap: 0.16rem;
    row-gap: 0.12rem;
    padding: 0;
    list-style: none;
    box-sizing: border-box;
}

.third form ul li {
    flex: 0 0 3.32rem;
    width: 3.32rem;
}

.third form ul li:nth-child(5),
.third form ul li:nth-child(6) {
    flex: 1 1 100%;
    width: 100%;
}

.third form ul li p {
    margin: 0;
}

.third form ul li span {
    display: block;
}

.third form ul li input,
.third form ul li textarea {
    display: block;
}

.third form input {
    width: 3.32rem;
    height: 0.6rem;
    padding: 0 0.2rem;
    background: #F3F8FD;
    border: none;
    border-radius: 0.04rem;
    font-family: inherit;
    font-size: 0.16rem;
    color: #0a1d3b;
    outline: none;
    box-sizing: border-box;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.third form input::placeholder {
    color: #98a3b8;
}

.third form input:focus {
    background: #e6ecf6;
    box-shadow: 0 0 0 0.02rem rgba(31, 110, 224, 0.18);
}

.third form input[name="your-prod"] {
    width: 100%;
}

.third form textarea {
    width: 100%;
    height: 2.1rem;
    padding: 0.18rem 0.2rem;
    background: #F3F8FD;
    border: none;
    border-radius: 0.04rem;
    font-family: inherit;
    font-size: 0.16rem;
    color: #0a1d3b;
    outline: none;
    resize: vertical;
    box-sizing: border-box;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.third form textarea::placeholder {
    color: #98a3b8;
}

.third form textarea:focus {
    background: #e6ecf6;
    box-shadow: 0 0 0 0.02rem rgba(31, 110, 224, 0.18);
}

.third form > p {
    margin: 0.18rem 0 0.2rem;
    color: #999;
    text-align: left;
    font-family: Gabarito;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 0.24rem;
}

.third form > div {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.16rem;
}

.third form button {
    width: 1.3rem;
    height: 0.5rem;
    padding: 0;
    border: 0.01rem solid transparent;
    border-radius: 0.04rem;
    font-family: Gabarito;
    font-size: 0.18rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

.third form button:hover {
    transform: translateY(-0.03rem) scale(1.04);
}

.third form button:active {
    transform: translateY(0.01rem) scale(0.98);
}

.third form button[type="reset"] {
    background: #f3f8fd;
    border-color: transparent;
    color: #666;
}

.third form button[type="reset"]:hover {
    background: #e3edf9;
    color: #1457e0;
    box-shadow: 0 0.04rem 0.12rem rgba(20, 87, 224, 0.18);
}

.third form button[type="submit"] {
    background: linear-gradient(135deg, #2a8bff 0%, #1457e0 100%);
    color: #fff;
    box-shadow: 0 0.03rem 0.08rem rgba(31, 110, 224, 0.2);
}

.third form button[type="submit"]:hover {
    box-shadow: 0 0.08rem 0.24rem rgba(31, 110, 224, 0.4);
}

.third form input.is-shake,
.third form textarea.is-shake {
    animation: third-shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
    background: #fbe9ec;
}

@keyframes third-shake {
    10%, 90% { transform: translateX(-0.02rem); }
    20%, 80% { transform: translateX(0.04rem); }
    30%, 50%, 70% { transform: translateX(-0.06rem); }
    40%, 60% { transform: translateX(0.06rem); }
}

.third form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.third-toast {
    position: fixed;
    left: 50%;
    bottom: 1.2rem;
    transform: translate(-50%, 0.4rem);
    padding: 0.16rem 0.32rem;
    background: rgba(10, 29, 59, 0.92);
    color: #fff;
    font-family: Gabarito, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 0.16rem;
    border-radius: 0.04rem;
    box-shadow: 0 0.08rem 0.24rem rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
    pointer-events: none;
}

.third-toast.is-show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ---------- 第三屏：滚动入场动画 ---------- */
/* 初始隐藏：仅当页面启用 JS 时生效（html.js），无 JS 时内容直接可见 */
html.js .third__title,
html.js .third__subtitle,
html.js .third__image,
html.js .third__form {
    opacity: 0;
    transform: translateY(0.3rem);
    will-change: opacity, transform;
}

/* 标题：淡入上浮 */
.third.is-in-view .third__title {
    animation: thirdFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 描述：延迟淡入上浮 */
.third.is-in-view .third__subtitle {
    animation: thirdFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.08s;
}

/* 左侧图片：淡入上浮 */
.third.is-in-view .third__image {
    animation: thirdFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.14s;
}

/* 右侧表单：延迟淡入上浮 */
.third.is-in-view .third__form {
    animation: thirdFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.2s;
}

@keyframes thirdFadeUp {
    from {
        opacity: 0;
        transform: translateY(0.3rem);
    }

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

/* ============================================================
   H5（移动端）适配
   设计稿基准：750px
   ============================================================ */

/* ---------- 顶部导航：汉堡菜单按钮 ---------- */
/* 桌面端默认隐藏，仅移动端显示 */
.menu-btn {
    display: none;
}

html[data-mode="h5"] .menu-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.09rem;
    width: 0.44rem;
    height: 0.44rem;
    margin-left: auto;
    padding: 0;
    border: none;
    border-radius: 0.1rem;
    background: rgba(255, 255, 255, 0.24);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

html[data-mode="h5"] .menu-btn span {
    display: block;
    width: 0.22rem;
    height: 0.03rem;
    border-radius: 0.03rem;
    background: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

html[data-mode="h5"] .header.is-scrolled .menu-btn {
    background: rgba(51, 51, 51, 0.08);
}

html[data-mode="h5"] .header.is-scrolled .menu-btn span {
    background: #333;
}

html[data-mode="h5"] .menu-btn.is-open span:nth-child(1) {
    transform: translateY(0.12rem) rotate(45deg);
}

html[data-mode="h5"] .menu-btn.is-open span:nth-child(2) {
    opacity: 0;
}

html[data-mode="h5"] .menu-btn.is-open span:nth-child(3) {
    transform: translateY(-0.12rem) rotate(-45deg);
}

/* 移动端：隐藏桌面导航，保留搜索与 Get a Quote 等右侧按钮 */
html[data-mode="h5"] .header__inner-nav {
    display: none;
}

/* 移动端：导航栏紧凑布局（避免右侧按钮换行，菜单按钮靠最右） */
html[data-mode="h5"] .header__inner {
    justify-content: space-between;
}

html[data-mode="h5"] .logo {
    order: 1;
    margin-left: 0;
    flex-shrink: 0;
}

html[data-mode="h5"] .logo img {
    width: 1.1rem;
    height: auto;
}

html[data-mode="h5"] .header__inner-right {
    order: 2;
    margin-right: 0;
    margin-left: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.08rem;
}

html[data-mode="h5"] .menu-btn {
    order: 3;
    width: 0.4rem;
    height: 0.4rem;
    margin-left: 0.08rem;
    margin-right: 0;
    flex-shrink: 0;
}

/* 右侧按钮统一不换行 */
html[data-mode="h5"] .header__inner-right-search,
html[data-mode="h5"] .header__inner-right-language,
html[data-mode="h5"] .header__inner-right-msg,
html[data-mode="h5"] .header__inner-right > a:last-child {
    flex-shrink: 0;
    white-space: nowrap;
}

html[data-mode="h5"] .header__inner-right-search {
    width: 0.36rem;
    height: 0.36rem;
    margin-right: 0;
}

html[data-mode="h5"] .header__inner-right-language {
    width: auto;
    min-width: 0.62rem;
    height: 0.36rem;
    padding: 0 0.08rem;
    margin-right: 0;
    font-size: 0.2rem;
}

html[data-mode="h5"] .header__inner-right-msg {
    height: 0.36rem;
    padding: 0 0.14rem;
    margin-right: 0;
    font-size: 0.2rem;
}

html[data-mode="h5"] .header__inner-right > a:last-child {
    height: 0.36rem;
    padding: 0 0.14rem;
    margin-right: 0;
    font-size: 0.2rem;
}

/* 移动端：展开后的全屏下拉菜单 */
html[data-mode="h5"] .header__inner-nav.is-open {
    position: fixed;
    top: 0.8rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 7.5rem;
    height: calc(100vh - 0.8rem);
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0.3rem 0.6rem 0.6rem;
    box-sizing: border-box;
    background: #fff;
    overflow-y: auto;
    animation: h5NavFadeIn 0.25s ease both;
}

@keyframes h5NavFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -0.2rem);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

html[data-mode="h5"] .header__inner-nav.is-open .header__inner-nav-item {
    width: 100%;
    padding: 0.22rem 0;
    border-bottom: 0.01rem solid #f0f2f5;
}

html[data-mode="h5"] .header__inner-nav.is-open .header__inner-nav-item a {
    color: #333;
    font-size: 0.3rem;
}

html[data-mode="h5"] .header__inner-nav.is-open .header__inner-nav-item:active a,
html[data-mode="h5"] .header__inner-nav.is-open .header__inner-nav-item a:active {
    color: #00B8E2;
}

/* ---------- 第一屏 banner（与 oem-odm 页高度对齐） ---------- */
html[data-mode="h5"] .first {
    height: auto;
    min-height: 5.85rem;
    padding: 3.4rem 0.4rem 0.6rem;
    align-items: flex-start;
    box-sizing: border-box;
}

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

html[data-mode="h5"] .first__desc {
    font-size: 0.26rem;
    line-height: 1.6;
    max-width: 100%;
}

/* ---------- 第二屏 Contact Information ---------- */
html[data-mode="h5"] .contact-info {
    height: auto;
    padding: 0.7rem 0.4rem 0.8rem;
}

html[data-mode="h5"] .contact-info__title {
    font-size: 0.4rem;
    margin-bottom: 0.15rem;
}

html[data-mode="h5"] .contact-info__subtitle {
    font-size: 0.24rem;
    line-height: 1.6;
}

html[data-mode="h5"] .contact-info__card {
    flex-direction: column;
    align-items: stretch;
    padding: 0.3rem;
    gap: 0.3rem;
}

html[data-mode="h5"] .contact-info__list {
    grid-template-columns: 1fr;
    gap: 0.28rem;
}

html[data-mode="h5"] .contact-info__item:nth-child(1),
html[data-mode="h5"] .contact-info__item:nth-child(2),
html[data-mode="h5"] .contact-info__item:nth-child(3) {
    grid-column: 1;
    grid-row: auto;
}

html[data-mode="h5"] .contact-info__icon {
    width: 0.72rem;
    height: 0.72rem;
}

html[data-mode="h5"] .contact-info__icon img {
    width: 0.42rem;
    height: 0.42rem;
}

html[data-mode="h5"] .contact-info__label {
    font-size: 0.26rem;
}

html[data-mode="h5"] .contact-info__value {
    font-size: 0.24rem;
    line-height: 1.6;
}

html[data-mode="h5"] .contact-info__image {
    width: 100%;
    height: 4rem;
    margin: 0;
}

/* ---------- 第三屏 Leave a Message ---------- */
html[data-mode="h5"] .third {
    padding: 0 0.4rem 0.7rem;
}

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

html[data-mode="h5"] .third__title {
    font-size: 0.4rem;
    margin-bottom: 0.15rem;
}

html[data-mode="h5"] .third__subtitle {
    font-size: 0.24rem;
    line-height: 1.6;
    max-width: 100%;
    margin-bottom: 0.4rem;
}

html[data-mode="h5"] .third__body {
    flex-direction: column;
    align-items: stretch;
}

html[data-mode="h5"] .third__image {
    width: 100%;
    height: 4rem;
    margin-right: 0;
    margin-bottom: 0.3rem;
}

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

html[data-mode="h5"] .third form ul {
    width: 100%;
    margin-bottom: 0.22rem;
    flex-direction: column;
    gap: 0.22rem;
}

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

html[data-mode="h5"] .third form input {
    width: 100%;
    height: 0.8rem;
    font-size: 0.26rem;
    border-radius: 0.08rem;
}

html[data-mode="h5"] .third form textarea {
    width: 100%;
    height: 2rem;
    font-size: 0.26rem;
    border-radius: 0.08rem;
}

html[data-mode="h5"] .third form > p {
    font-size: 0.22rem;
    line-height: 1.6;
    max-width: 100%;
}

html[data-mode="h5"] .third form > div {
    gap: 0.22rem;
    margin-top: 0.38rem;
}

html[data-mode="h5"] .third form button {
    flex: 1;
    max-width: 2.8rem;
    height: 0.76rem;
    font-size: 0.28rem;
    border-radius: 0.08rem;
}

/* ---------- 页脚 ---------- */
html[data-mode="h5"] .footer__main {
    padding: 0.6rem 0.4rem 0.5rem;
}

html[data-mode="h5"] .footer__links {
    flex-wrap: wrap;
    gap: 0.3rem 0.2rem;
}

html[data-mode="h5"] .footer__col {
    flex: 1 1 40%;
    min-width: 2.6rem;
}

html[data-mode="h5"] .footer__contact-item {
    font-size: 0.2rem;
}

html[data-mode="h5"] .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    margin-top: 0.4rem;
    padding-top: 0.3rem;
}

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

html[data-mode="h5"] .footer__bar {
    flex-direction: column;
    height: auto;
    padding: 0.18rem 0.4rem;
    gap: 0.1rem;
}
