/* ============================================================
   Products 页面
   ============================================================ */
.products-main {
    background: #fff;
}

/* 首屏 Products banner（1920×600） */
.first {
    position: relative;
    width: 100%;
    max-width: 19.2rem;
    margin: 0 auto;
    background: #000;
    overflow: hidden;
}

.first__viewport {
    position: relative;
    width: 100%;
    padding-top: 31.25%;
}

.first__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.first__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.18) 55%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.first__content {
    position: absolute;
    top: 3.91rem;
    left: 3.1rem;
    z-index: 2;
    color: #fff;
}

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

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

/* ============================================================
   第2屏 产品列表（与 index 屏同款卡片 + 分页器）
   ============================================================ */
.second {
    position: relative;
    padding: 1rem 3.1rem;
    background: #fff;
    overflow: hidden;
}

.second__tabs {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.second__tab {
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 2.1rem;
    padding: 0.12rem 0;
    justify-content: center;
    align-items: center;
    gap: 0.1rem;
    flex-shrink: 0;
    align-self: stretch;
    color: #333;
    text-align: center;
    font-family: Gabarito;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-transform: capitalize;
    border-radius: 0.4rem;
    background: #EDEFF2;
}

.second__tab:hover {
    background: #E0E0E0;
    transform: translateY(-0.02rem);
}

.second__tab:active {
    transform: scale(0.95);
}

.second__tab.is-active {
    background: #333;
    color: #fff;
}

.second__tab.is-active:hover {
    background: #00B8E2;
}

.second__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.24rem;
}

.second__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 4.12rem;
    height: 5.5rem;
    padding: 0.32rem;
    border-radius: 0.16rem;
    background: #F8F9FB;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.second__card:hover {
    transform: translateY(-0.08rem);
    box-shadow: 0 0.2rem 0.48rem rgba(31, 45, 89, 0.1);
}

.second__card-tag {
    color: #999;
    text-align: center;
    font-family: Gabarito;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 0.08rem;
}

.second__card-title {
    color: #333;
    text-align: center;
    font-family: Gabarito;
    font-size: 0.3rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: capitalize;
    margin-bottom: 0.25rem;
}

.second__card:hover .second__card-title {
    color: transparent;
    background-image: linear-gradient(90deg, #00B8E2, #4D7CFE, #00B8E2);
    background-size: 200% auto;
    background-position: 0% center;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: secondTitleGradient 2.5s linear infinite;
}

@keyframes secondTitleGradient {
    to {
        background-position: 200% center;
    }
}

.second__card-media {
    width: 2.6rem;
    height: 2.6rem;
    margin-bottom: 0.37rem;
}

.second__card-media img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

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

/* 整卡可点击：绝对定位覆盖链接（按钮区 z-index 更高，不受影响） */
.second__card-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    border-radius: 0.16rem;
}

.second__card-actions {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.second__card-link {
    color: #666;
    font-family: Gabarito, sans-serif;
    font-size: 0.15rem;
    font-weight: 400;
    line-height: normal;
    text-decoration: underline;
    text-underline-offset: 0.04rem;
    transition: color 0.3s ease;
}

.second__card-link:hover {
    color: #00B8E2;
}

.second__card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.06rem;
    padding: 0.1rem 0.2rem;
    border-radius: 0.3rem;
    background: #333;
    color: #fff;
    font-family: Gabarito, sans-serif;
    font-size: 0.14rem;
    font-weight: 500;
    line-height: normal;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.second__card-btn::after {
    content: ">";
    font-size: 0.12rem;
}

.second__card-btn:hover {
    background: #00B8E2;
    transform: translateY(-0.02rem);
}

/* CTA 卡片：替换右下角第 9 格 */
.second__card--cta {
    justify-content: center;
}

.second__card--cta .second__card-title {
    margin-bottom: 0.1rem;
    color: #333;
    text-align: center;
    font-family: Gabarito;
    font-size: 0.48rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: capitalize;
}

.second__card--cta .second__card-btn {
    position: relative;
    z-index: 2;
}

.second__card-desc {
    color: #999;
text-align: center;
font-family: Gabarito;
font-size: 0.16rem;
font-style: normal;
font-weight: 400;
line-height: normal;
margin-bottom: 30px;
}

/* 分页器：与 news.html third__pagination 一致 */
.second__pagination {
    margin-top: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    flex-shrink: 0;
}

/* 对应目标站 <span class='pages'>，保留结构、页面中隐藏不占位 */
.second__pagination > span:first-child {
    display: none;
}

.second__pagination a,
.second__pagination [data-page] {
    width: 0.45rem;
    height: 0.45rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #D9D9D9;
    border-radius: 0.04rem;
    background: #fff;
    color: #666;
    text-align: center;
    font-family: Roboto;
    font-size: 0.18rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    outline: none;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
}

.second__pagination a:not([aria-current]):not([aria-disabled="true"]):hover,
.second__pagination [data-page]:not([aria-current]):not([aria-disabled="true"]):hover {
    border-color: #0063C3;
    color: #0063C3;
}

.second__pagination [data-page][aria-current] {
    background: linear-gradient(135deg, #00B8E2 0%, #0063C3 100%);
    border: none;
    color: #FFF;
}

.second__pagination [aria-disabled="true"] {
    opacity: 0.35;
    cursor: not-allowed;
}

/* 入场动画：与首页 .popular 同套机制 */
html.js .second:not(.is-in-view):not(.second--played) .second__tab,
html.js .second:not(.is-in-view):not(.second--played) .second__card,
html.js .second:not(.is-in-view):not(.second--played) .second__pagination {
    opacity: 0;
}

@keyframes secondFadeUp {
    from {
        opacity: 0;
        transform: translateY(0.28rem);
    }

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

.second.is-in-view .second__tabs {
    animation: secondFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.second.is-in-view .second__card:nth-child(1) {
    animation: secondFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.second.is-in-view .second__card:nth-child(2) {
    animation: secondFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.second.is-in-view .second__card:nth-child(3) {
    animation: secondFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.29s both;
}

.second.is-in-view .second__card:nth-child(4) {
    animation: secondFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.36s both;
}

.second.is-in-view .second__card:nth-child(5) {
    animation: secondFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.43s both;
}

.second.is-in-view .second__card:nth-child(6) {
    animation: secondFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

.second.is-in-view .second__card:nth-child(7) {
    animation: secondFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.57s both;
}

.second.is-in-view .second__card:nth-child(8) {
    animation: secondFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.64s both;
}

.second.is-in-view .second__card:nth-child(9) {
    animation: secondFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.71s both;
}

.second.is-in-view .second__pagination {
    animation: secondFadeUp 0.6s ease 0.8s both;
}

/* ============================================================
   Mega Menu（Products 导航二级菜单）样式已移至 framework.css（公共样式）
   ============================================================ */

/* ============================================================
   H5 移动端适配（data-mode="h5"）
   ============================================================ */
/* ---------- 汉堡菜单按钮（与其他页面一致） ---------- */
/* 桌面端默认隐藏，仅移动端显示 */
.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;
}

/* 当前页（Products）在 H5 菜单中与其他项保持一致，重置渐变文字与下划线 */
html[data-mode="h5"] .header__inner-nav.is-open .header__inner-nav-item.is-active a {
    color: #333;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: initial;
}

html[data-mode="h5"] .header__inner-nav.is-open .header__inner-nav-item.is-active::after {
    display: none;
}

/* Mega Menu：H5 下隐藏（使用全屏菜单）— 已移至 framework.css（公共样式） */

/* ---------- 第一屏 Banner（与 oem-odm 页高度对齐） ---------- */
html[data-mode="h5"] .first {
    height: auto;
    min-height: 5.85rem;
}

/* 背景图铺满整个第一屏，内容脱离背景容器由自身撑起高度（与其他页面一致） */
html[data-mode="h5"] .first__viewport {
    position: absolute;
    inset: 0;
    height: 100%;
    padding-top: 0;
}

html[data-mode="h5"] .first__content {
    position: relative;
    top: auto;
    left: auto;
    padding: 3.4rem 0.4rem 0.6rem;
    max-width: 100%;
    box-sizing: border-box;
}

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

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

/* ---------- 第二屏 产品列表 ---------- */
html[data-mode="h5"] .second {
    padding: 0.6rem 0.4rem 0.7rem;
}

html[data-mode="h5"] .second__tabs {
    gap: 0.12rem;
    justify-content: flex-start;
    margin-bottom: 0.3rem;
    padding-bottom: 0.08rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

html[data-mode="h5"] .second__tabs::-webkit-scrollbar {
    display: none;
}

html[data-mode="h5"] .second__tab {
    flex: 0 0 auto;
    width: auto;
    min-width: 2.1rem;
    align-self: center;
    padding: 0.16rem 0.3rem;
    font-size: 0.24rem;
    border-radius: 0.34rem;
}

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

html[data-mode="h5"] .second__card {
    width: 100%;
    height: auto;
    min-height: 4.6rem;
    padding: 0.26rem 0.2rem 0.3rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

html[data-mode="h5"] .second__card-media {
    width: 2.1rem;
    height: 2.1rem;
    margin-bottom: 0.2rem;
}

html[data-mode="h5"] .second__card-tag {
    font-size: 0.2rem;
    line-height: 1.4;
    margin-bottom: 0.12rem;
}

html[data-mode="h5"] .second__card-title {
    font-size: 0.27rem;
    line-height: 1.3;
    margin-bottom: 0.14rem;
}

html[data-mode="h5"] .second__card-desc {
    font-size: 0.22rem;
    line-height: 1.5;
    margin-bottom: 0.16rem;
    -webkit-line-clamp: 3;
}

html[data-mode="h5"] .second__card-actions {
    margin-top: auto;
    gap: 0.1rem;
}

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

html[data-mode="h5"] .second__card-btn {
    padding: 0.12rem 0.18rem;
    font-size: 0.2rem;
    border-radius: 0.24rem;
}

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

html[data-mode="h5"] .second__pagination {
    margin-top: 0.4rem;
    gap: 0.12rem;
}

html[data-mode="h5"] .second__pagination a,
html[data-mode="h5"] .second__pagination [data-page] {
    width: 0.54rem;
    height: 0.54rem;
    font-size: 0.24rem;
}



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

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

html[data-mode="h5"] .footer__col {
    min-width: 0;
    gap: 0.1rem;
}

html[data-mode="h5"] .footer__title {
    font-size: 0.24rem;
    margin-bottom: 0.12rem;
    padding-bottom: 0.08rem;
}

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

html[data-mode="h5"] .footer__contact-item {
    font-size: 0.22rem;
    gap: 0.1rem;
    margin-bottom: 0.14rem;
}

html[data-mode="h5"] .footer__contact-icon {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 0.5rem;
}

html[data-mode="h5"] .footer__contact-icon img {
    width: 0.24rem;
    height: 0.24rem;
}

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

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

html[data-mode="h5"] .footer__social {
    flex-direction: row;
    align-items: center;
    gap: 0.2rem;
}

html[data-mode="h5"] .footer__social-label {
    font-size: 0.22rem;
}

html[data-mode="h5"] .footer__social-icon {
    width: 0.5rem;
    height: 0.5rem;
}

html[data-mode="h5"] .footer__social-icon img {
    width: 0.24rem;
    height: 0.24rem;
}

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

/* ---------- 浮动侧边栏 ---------- */
html[data-mode="h5"] .float-bar {
    right: 0.2rem;
    bottom: 1.2rem;
    gap: 0.16rem;
    padding: 0.14rem 0.12rem;
}

html[data-mode="h5"] .float-bar__btn {
    width: 0.8rem;
    height: 0.8rem;
}

html[data-mode="h5"] .float-bar__btn img {
    width: 0.38rem;
    height: 0.38rem;
}