/* ============================================================
   Become a Dealer 页面
   ============================================================ */
.become-a-dealer-main {
    background: #fff;
}

/* ---------- 第一屏 banner（1920×992） ---------- */
.first {
    position: relative;
    width: 19.2rem;
    max-width: 100%;
    height: 9.92rem;
    margin: 0 auto;
    background: #F5F5F5;
    overflow: hidden;
}

.first::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6rem;
    background: url("../assets/images/BecomeADealer/first-img.png") no-repeat center center / cover;
}

.first__content {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 6rem 0 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

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

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

.first__desc2 {
    color: #666;
    font-family: Gabarito;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin: 0 auto;
    max-width: 8rem;
}

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

/* 标题：淡入上浮 */
.first.is-in-view .first__title {
    animation: firstFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 描述1：延迟淡入上浮 */
.first.is-in-view .first__desc1 {
    animation: firstFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.1s;
}

/* 描述2：延迟淡入上浮 */
.first.is-in-view .first__desc2 {
    animation: firstFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.2s;
}

@keyframes firstFadeUp {
    from {
        opacity: 0;
        transform: translateY(0.3rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   第二屏：What Will You Gain By Becoming A Reseller?
   1920 设计稿：宽 1920，padding 100/310；图文交错布局
   ============================================================ */
.second {
    position: relative;
    width: 19.2rem;
    /* 1920 */
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem 3.1rem;
    /* 100 / 310 */
    box-sizing: border-box;
}

.second__title {
    color: #333;
    text-align: center;
    font-family: Gabarito;
    font-size: 0.48rem;
    /* 48 */
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0 0 0.6rem;
    /* 60 */
}

.second__list {
    display: flex;
    flex-direction: column;
    /* 条目间垂直间距 */
    gap: 0.4rem;
}

.second__item {
    display: flex;
    align-items: flex-start;
    /* 默认：图左，文右 */
}

/* 文左图右：通过 row-reverse 翻转视觉顺序 */
.second__item--reverse {
    flex-direction: row-reverse;
}

.second__item-img {
    width: 6.8rem;
    /* 680 */
    height: 4.4rem;
    /* 440 */
    margin-right: 0.95rem;
    /* 95 */
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 0.04rem;
    box-shadow: 0 0.1rem 0.25rem rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.4s ease;
}

.second__item--reverse .second__item-img {
    margin-right: 0;
    margin-left: 0.95rem;
}

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

/* 悬浮整个条目：图片放大 + 阴影加深 */
.second__item:hover .second__item-img {
    box-shadow: 0 0.15rem 0.4rem rgba(0, 0, 0, 0.14);
}

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

.second__item-text {
    /* 占据剩余宽度，高度与图片一致 */
    flex: 1;
    height: 4.4rem;
    /* 440，与图片等高 */
    padding-top: 1.02rem;
    /* 102 */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.second__item-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.7rem;
    /* 70 */
    height: 0.7rem;
    /* 70 */
    margin-bottom: 0.2rem;
    /* 20 */
    border-radius: 0.1rem;
    /* 10 */
    background: #666;
    color: #FFF;
    text-align: center;
    font-family: Gabarito;
    font-size: 0.42rem;
    /* 42 */
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    transition: background 0.35s ease;
    cursor: default;
    user-select: none;
}

/* 悬浮整个条目：数字变为蓝色渐变背景 */
.second__item:hover .second__item-num {
    background: linear-gradient(135deg, #4A90E2 0%, #2A6DF4 100%);
}

.second__item-title {
    color: #333;
    font-family: Gabarito;
    font-size: 0.32rem;
    /* 32 */
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    margin: 0 0 0.1rem;
    /* 10 */
}

.second__item-desc {
    color: #999;
    font-family: Gabarito;
    font-size: 0.2rem;
    /* 20 */
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin: 0;
}

/* ---------- 第二屏：滚动入场动画（标题 + 每个条目各自进入视口触发） ---------- */
/* 初始隐藏：仅当页面启用 JS 时生效（html.js），无 JS 时内容直接可见 */
html.js .second__title,
html.js .second__item {
    opacity: 0;
    transform: translateY(0.3rem);
    will-change: opacity, transform;
}

/* 触发：进入视口后淡入上浮 */
.second__title.is-in-view,
.second__item.is-in-view {
    animation: secondFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes secondFadeUp {
    from {
        opacity: 0;
        transform: translateY(0.3rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   第三屏：成为经销商表单
   ============================================================ */

/* ---------- 第三屏整体容器 ---------- */
.third {
    position: relative;
    width: 19.2rem;
    max-width: 100%;
    height: 10.63rem;
    margin: 0 auto;
    box-sizing: border-box;
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- 底部背景图 ---------- */
.third__bg {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 5.98rem;
    background: url("../assets/images/BecomeADealer/third-img.webp") no-repeat center bottom / cover;
    z-index: 0;
    pointer-events: none;
}

/* ---------- 中间白色容器 ---------- */
.third__inner {
    position: relative;
    z-index: 1;
    width: 14.9rem;
    height: 7.96rem;
    background: #fff;
    box-sizing: border-box;
    text-align: center;
    padding-top: 0.6rem;
}

/* ---------- 标题 ---------- */
.third__title {
    color: #333;
    text-align: center;
    font-family: Gabarito, sans-serif;
    font-size: 0.48rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0 0 0.13rem;
}

/* ---------- 副标题描述 ---------- */
.third__subtitle {
    color: #999;
    text-align: center;
    font-family: Gabarito, sans-serif;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin: 0 auto 0.4rem;
    max-width: 6.4rem;
}

/* ---------- 表单 ---------- */
.third form {
    width: 14.9rem;
    margin: 0 auto;
}

.third form ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 13rem;
    height: auto;
    margin: 0 auto 0.3rem;
    column-gap: 0.2rem;
    row-gap: 0.3rem;
    padding: 0;
    list-style: none;
    box-sizing: border-box;
}

.third form ul li {
    flex: 0 0 4.2rem;
    width: 4.2rem;
    height: 0.6rem;
}

/* 内容文本域整行 */
.third form ul li:nth-child(7) {
    flex: 1 1 100%;
    width: 100%;
    height: auto;
}

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

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

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

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

.third form input,
.third form textarea {
    width: 4.2rem;
    height: 0.6rem;
    padding: 0 0.2rem;
    box-sizing: border-box;
    border: none;
    outline: none;
    background: #f2f6fa;
    color: #333;
    font-family: Gabarito, sans-serif;
    font-size: 0.14rem;
    font-weight: 400;
    border-radius: 0.02rem;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

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

.third form input:focus,
.third form textarea:focus {
    background: #fff;
    box-shadow: 0 0 0 0.01rem #00B8E2 inset;
}

/* ---------- 内容文本域 ---------- */
.third form textarea {
    display: block;
    width: 13rem;
    height: 2.1rem;
    margin: 0 auto 0.3rem;
    padding: 0.18rem 0.2rem;
    resize: none;
    line-height: 1.5;
}

/* ---------- 隐私声明 ---------- */
.third form > p {
    color: #999;
    text-align: center;
    font-family: Gabarito, sans-serif;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 0.24rem;
    margin: 0 auto;
    max-width: 8.7rem;
    display: flex;
    justify-content: center;
    gap: 0.1rem;
    margin-top: 0.4rem;
}

/* ---------- 按钮组 ---------- */
.third form > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    margin-top: 0.36rem;
}

.third form button {
    cursor: pointer;
    border: none;
    outline: none;
    height: 0.36rem;
    padding: 0 0.32rem;
    border-radius: 0.02rem;
    background: #fff;
    color: #333;
    font-family: Gabarito, sans-serif;
    font-size: 0.14rem;
    font-weight: 500;
    transition: background 0.25s ease, color 0.25s ease,
        transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.25s ease;
}

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

.third form button[type="reset"] {
    background: #fff;
    color: #333;
    border: 0.01rem solid #e1e6ee;
}

.third form button[type="reset"]:hover {
    background: #f2f6fa;
}

.third form button[type="submit"] {
    background: linear-gradient(135deg, #00B8E2 0%, #0063C3 100%);
    color: #fff;
}

.third form button[type="submit"]:hover {
    transform: translateY(-0.02rem);
    box-shadow: 0 0.06rem 0.2rem rgba(0, 102, 195, 0.32);
}

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

/* ---------- 校验抖动 ---------- */
.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);
}

@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); }
}

/* ---------- Toast 提示 ---------- */
.third-toast {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    transform: translate(-50%, 0.4rem);
    z-index: 9999;
    padding: 0.12rem 0.24rem;
    background: rgba(33, 37, 41, 0.92);
    color: #fff;
    border-radius: 0.02rem;
    font-size: 0.14rem;
    font-family: Gabarito, sans-serif;
    line-height: 1.5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

/* ============================================================
   H5 端（移动端）适配
   framework.js 在移动端 html 上设置 data-mode="h5"，
   本区块仅对移动端生效，不影响浏览器端（PC）任何样式。
   设计稿基准：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;
}

html[data-mode="h5"] .first::before {
    height: 3.4rem;
}

html[data-mode="h5"] .first__content {
    width: 100%;
    padding: 3.4rem 0.4rem 0.6rem;
    justify-content: 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__desc1 {
    font-size: 0.28rem;
    margin-bottom: 0.25rem;
}

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

/* ---------- 第二屏：经销商权益 ---------- */
html[data-mode="h5"] .second {
    padding: 0.7rem 0.4rem 0.8rem;
}

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

html[data-mode="h5"] .second__list {
    gap: 0.6rem;
}

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

html[data-mode="h5"] .second__item-img,
html[data-mode="h5"] .second__item--reverse .second__item-img {
    width: 100%;
    height: 3.9rem;
    margin: 0;
    border-radius: 0.1rem;
}

html[data-mode="h5"] .second__item-text {
    height: auto;
    padding-top: 0.3rem;
    align-items: flex-start;
    text-align: left;
}

html[data-mode="h5"] .second__item-num {
    width: 0.66rem;
    height: 0.66rem;
    font-size: 0.36rem;
    margin-bottom: 0.2rem;
}

html[data-mode="h5"] .second__item-title {
    font-size: 0.32rem;
    margin-bottom: 0.12rem;
}

html[data-mode="h5"] .second__item-desc {
    font-size: 0.26rem;
    line-height: 1.6;
}

/* ---------- 第三屏：申请表单 ---------- */
html[data-mode="h5"] .third {
    height: auto;
    display: block;
    padding: 0.5rem 0.4rem 0.7rem;
}

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

html[data-mode="h5"] .third__inner {
    width: 100%;
    height: auto;
    padding: 0.55rem 0.3rem 0.65rem;
    border-radius: 0.14rem;
    box-shadow: 0 0.1rem 0.35rem rgba(0, 0, 0, 0.08);
}

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

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 form {
    width: 100%;
}

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

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

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: 1.9rem;
    font-size: 0.26rem;
    margin-bottom: 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;
}

html[data-mode="h5"] .footer__bar-left,
html[data-mode="h5"] .footer__bar-right {
    font-size: 0.18rem;
    text-align: center;
}

/* ---------- 浮动侧边栏 ---------- */
html[data-mode="h5"] .float-bar {
    right: 0.3rem;
    bottom: 1.2rem;
}

html[data-mode="h5"] .third-toast {
    bottom: 1.4rem;
}
