/* ============================================
   Product Detail 页面样式
   ============================================ */

/* ---------- First ---------- */
.first {
    position: relative;
    width: 100%;
    max-width: 19.2rem;
    margin: 0 auto;
    background: #000 url('../assets/images/productsDetail/first-img1.png') no-repeat center/cover;
    padding: 3.91rem 0 0 3.1rem;
    min-height: 6rem;
    overflow: hidden;
}

.first__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 3.1rem;
}

.first__title {
    color: #FFF;
    font-family: Gabarito, sans-serif;
    font-size: 0.56em;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: capitalize;
    margin: 0;
}

.first__back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 0.5rem;
    border-radius: 0.25rem;
    background: rgba(240, 240, 240, 0.2);
    text-decoration: none;
    transition: background .3s ease;
}

.first__back:hover {
    background: rgba(240, 240, 240, 0.4);
}

.first__back img {
    width: 0.3rem;
    height: 0.3rem;
}

/* ---------- Second ---------- */
.second {
    width: 19.2rem;
    height: 7.16rem;
    padding: 1rem 3.1rem 0;
    background: #fff;
}

.second__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.second__left {
    max-width: 7.1rem;
}

.second__title {
    color: #333;
    font-family: Gabarito, sans-serif;
    font-size: 0.48rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0 0 0.33rem;
}

.second__desc {
    color: #666;
    font-family: Gabarito, sans-serif;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 180%;
    text-transform: capitalize;
    margin: 0 0 0.44rem;
}

.second__icons {
    display: flex;
    gap: 0.24rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.second__icon-item {
    flex-shrink: 0;
}

.second__icon-bg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: url('../assets/images/productsDetail/second-img2.svg') no-repeat center/contain;
}

.second__icon-bg img {
    width: 0.5rem;
    height: 0.46rem;
}

.second__icon-bg--text {
    color: #333;
    text-align: center;
    font-family: Gabarito, sans-serif;
    font-size: 0.18rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: capitalize;
}

.second__icon-bg--text span {
    display: block;
}

.second__right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.second__carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
}

.second__carousel-track {
    position: relative;
    width: 7.08rem;
    height: 3.88rem;
    overflow: hidden;
}

.second__carousel-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1.5rem;
    height: 1.5rem;
    opacity: 0.2;
    transition: all 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.second__carousel-slide.is-left {
    left: 0.75rem;
}

.second__carousel-slide.is-active {
    left: 50%;
    width: 3.88rem;
    height: 3.88rem;
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.second__carousel-slide.is-right {
    left: 6.33rem;
}

.second__carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.second__carousel-dots {
    display: flex;
    gap: 0.08rem;
}

.second__carousel-dots button {
    width: 0.3rem;
    height: 0.04rem;
    border-radius: 0.02rem;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.second__carousel-dots button.is-active {
    background: #333;
}

/* ---------- Third：Effect Display ---------- */
.third {
    padding: 0 3.1rem 1.28rem;
}

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

.third__cards {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
}

.third__card {
    width: 4.06rem;
    border-radius: 0.1rem;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.3s ease;
}

.third__card:hover {
    transform: translateY(-0.06rem);
    box-shadow: 0 0.2rem 0.5rem 0 rgba(0, 0, 0, 0.22);
}

.third__card-img {
    width: 4.06rem;
    height: 2.67rem;
    display: block;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.third__card:hover .third__card-img {
    transform: scale(1.06);
}

.third__card-text {
    width: 4.06rem;
    height: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-align: center;
    font-family: Gabarito;
    font-size: 0.2rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    transition: color 0.3s ease, background 0.3s ease;
}

.third__card:hover .third__card-text {
    color: #FFF;
    background: #CDA875;
}

/* ---------- Fourth: Scroll-driven crossfade ---------- */
.fourth {
    position: relative;
    width: 100%;
    max-width: 19.2rem;
    margin: 0 auto;
}

.fourth__sticky {
    position: sticky;
    top: 0;
    width: 19.2rem;
    height: 8.73rem;
    margin: 0 auto;
    overflow: hidden;
}

.fourth__panel {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.fourth__panel--1 {
    background: url('../assets/images/productsDetail/fourth-img1.webp') no-repeat center/cover;
    z-index: 2;
    will-change: opacity;
    padding: 0 1.93rem 0 3.1rem;
}

.fourth__panel--2 {
    background: #000;
    z-index: 1;
    padding: 0 3.1rem 0 1.29rem;
}

.fourth__content {
    display: flex;
    flex-direction: column;
    min-width: 5.8rem;
}

.fourth__num {
    font-family: Gabarito, sans-serif;
    font-size: 0.96rem;
    font-style: normal;
    font-weight: 700;
    line-height: 0.96rem;
    background: linear-gradient(180deg, #FFF 0%, #E6E6E6 25%, #A6A6A6 50%, #000 73%, #000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fourth__heading {
    color: #FFF;
    font-family: Gabarito, sans-serif;
    font-size: 0.48rem;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    margin: 0 0 0.2rem;
}

.fourth__desc {
    color: #FFF;
    font-family: Gabarito, sans-serif;
    font-size: 0.2rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin: 0;
}

.fourth__img-wrap {
    flex-shrink: 0;
    width: 8.31rem;
    height: 5.44rem;
    margin-left: 0.94rem;
}

.fourth__panel--2 .fourth__img-wrap {
    margin-left: 0;
    margin-right: 0.94rem;
}

.fourth__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ---------- Fifth: Core Specifications ---------- */
.fifth {
    position: relative;
    width: 100%;
    max-width: 19.2rem;
    margin: 0 auto;
    padding: 1rem 3.1rem;
    box-sizing: border-box;
}

.fifth__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.69rem;
}

.fifth form {
    width: 13rem;
    height: 1.8rem;
    background: #F5F5F5;
    border-radius: 0.1rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.fifth form ul {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.fifth form ul li {
    display: contents;
}

.fifth form li:first-child span {
    flex: 0 0 3.5rem;
    width: 3.5rem;
    padding: 0.25rem 0.2rem;
    box-sizing: border-box;
    color: #333;
    font-family: Gabarito, sans-serif;
    font-size: 0.2rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.fifth form li input {
    flex: 1;
    max-width: 2.5rem;
    margin: 0 auto;
    width: 2.5rem;
    height: 0.6rem;
    padding: 0 0.12rem;
    box-sizing: border-box;
    border-radius: 0.1rem;
    border: 1px solid #D9D9D9;
    background: #FFF;
    outline: none;
    color: #333;
    text-align: center;
    font-family: Gabarito, sans-serif;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.fifth form li input:focus {
    border-color: #CDA875;
    box-shadow: 0 0 0 0.02rem rgba(205, 168, 117, 0.25);
}

#fifthTable {
    display: block;
    width: 13rem;
    margin: 0 auto;
    background: #FFF;
    border-spacing: 0;
    border-collapse: collapse;
}

#fifthTable table {
    height: max-content !important;
}

#fifthTable tbody {
    display: block;
    width: 100%;
}

#fifthTable tr {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #EEE;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.35s ease;
}

#fifthTable tr:last-child {
    border-bottom: none;
}

#fifthTable td:first-child {
    flex: 0 0 3.5rem;
    width: 3.5rem;
    color: #303030;
    font-family: Gabarito, sans-serif;
    font-size: 0.2rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    padding: 0.25rem 0.2rem;
    box-sizing: border-box;
    height: auto !important;
}

#fifthTable td:not(:first-child) {
    flex: 1;
    color: #666;
    text-align: center;
    font-family: Gabarito, sans-serif;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    padding: 0.25rem 0.2rem;
    box-sizing: border-box;
}

#fifthTable tr:first-child td:last-child {
    display: flex;
    justify-content: center;
    padding: 0.4rem 0.2rem;
}

#fifthTable td div {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.1rem;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#fifthTable td  img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
}

.fifth__more {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 0.4rem;
    margin: 0.4rem auto 0;
    padding: 0.1rem 0.14rem;
    border-radius: 0.2rem;
    background: #fff;
    border: 1px solid #D9D9D9;
    box-sizing: border-box;
    color: #333;
    font-family: Gabarito, sans-serif;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    cursor: pointer;
}

.fifth__more-icon {
    width: 0.16rem;
    height: 0.16rem;
    margin-left: 0.1rem;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.fifth__more.is-expanded .fifth__more-icon {
    transform: rotate(180deg);
}

/* ---------- Sixth: Related Products ---------- */
.sixth {
    width: 19.2rem;
    height: 8.85rem;
    margin: 0 auto;
    background: #1A1A1A;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
}

.sixth__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sixth__title {
    color: #FFF;
    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.49rem;
}

.sixth__cards {
    display: flex;
    justify-content: center;
    gap: 0.24rem;
}

.sixth__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;
    box-sizing: border-box;
    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;
}

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

.sixth__card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 0.16rem;
    cursor: pointer;
}

.sixth__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;
}

.sixth__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;
}

.sixth__card:hover .sixth__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: sixthTitleGradient 2.5s linear infinite;
}

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

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

.sixth__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;
}

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

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

.sixth__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;
}

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

.sixth__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;
}

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

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

/* Sixth entrance animation */
html.js .sixth:not(.is-in-view):not(.sixth--played) .sixth__title,
html.js .sixth:not(.is-in-view):not(.sixth--played) .sixth__card {
    opacity: 0;
    transform: translateY(0.3rem);
}

.sixth.is-in-view .sixth__title {
    animation: pdFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.sixth.is-in-view .sixth__card:nth-child(1) {
    animation: pdFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.sixth.is-in-view .sixth__card:nth-child(2) {
    animation: pdFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.sixth.is-in-view .sixth__card:nth-child(3) {
    animation: pdFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

/* ---------- Seventh: Leave Your Message ---------- */
.seventh {
    width: 19.2rem;
    height: 8.85rem;
    padding: 1rem 3.1rem 0;
    margin: 0 auto;
    background: #fff;
    overflow: hidden;
}

.seventh__inner {
    width: 100%;
    height: 100%;
}

.seventh__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.1rem;
}

.seventh__desc {
    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 0 0.4rem;
}

.seventh form {
    width: 100%;
    margin: 0;
    text-align: left;
}

.seventh form ul {
    display: flex;
    flex-wrap: wrap;
    width: 13rem;
    margin: 0 auto 0.12rem;
    column-gap: 0.15476rem;
    row-gap: 0.12rem;
    padding: 0;
    list-style: none;
    box-sizing: border-box;
}

.seventh form ul li {
    flex: 0 0 3.13393rem;
}

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

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

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

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

.seventh form input {
    width: 100%;
    height: 0.6rem;
    padding: 0 0.16rem;
    border-radius: 0.05rem;
    border: 1px solid #f0f3f8;
    background: #f3f5f9;
    color: #333;
    font-family: Gabarito, sans-serif;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    outline: none;
    box-sizing: border-box;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

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

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

.seventh form textarea {
    width: 100%;
    height: 2.1rem;
    padding: 0.16rem;
    border-radius: 0.05rem;
    border: 1px solid #f0f3f8;
    background: #f3f5f9;
    color: #333;
    font-family: Gabarito, sans-serif;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    outline: none;
    resize: none;
    box-sizing: border-box;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

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

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

.seventh form > p {
    margin: 0.3rem auto 0.4rem;
    color: #999;
    text-align: center;
    font-family: Gabarito, sans-serif;
    font-size: 0.14rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.seventh form > div {
    display: flex;
    justify-content: center;
    align-items: center;
}

.seventh form button {
    width: 1.3rem;
    height: 0.46rem;
    padding: 0;
    border: none;
    border-radius: 0.05rem;
    font-family: Gabarito, sans-serif;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    cursor: pointer;
    transition: opacity 0.3s ease, box-shadow 0.3s ease, transform 0.15s ease;
}

.seventh form button:active {
    transform: translateY(0.01rem);
}

.seventh form button[type="reset"] {
    color: #666;
}

.seventh form button[type="reset"]:hover {
    opacity: 0.85;
}

.seventh form button[type="submit"] {
    background: linear-gradient(135deg, #2a8bff 0%, #1457e0 100%);
    color: #fff;
}

.seventh form button[type="submit"]:hover {
    box-shadow: 0 0.04rem 0.16rem rgba(31, 110, 224, 0.32);
    opacity: 0.92;
}

/* ---------- 第七屏 抖动反馈与 Toast ---------- */
.seventh form input.is-shake,
.seventh form textarea.is-shake {
    animation: seventh-shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
    background: #fbe9ec;
}

@keyframes seventh-shake {
    10%,
    90% {
        transform: translateX(-0.01rem);
    }

    20%,
    80% {
        transform: translateX(0.02rem);
    }

    30%,
    50%,
    70% {
        transform: translateX(-0.04rem);
    }

    40%,
    60% {
        transform: translateX(0.04rem);
    }
}

.seventh-toast {
    position: fixed;
    top: 0.5rem;
    left: 50%;
    transform: translate(-50%, -120%);
    z-index: 9999;
    max-width: 90%;
    padding: 0.12rem 0.3rem;
    border-radius: 0.06rem;
    background: #fff;
    color: #333;
    font-family: Gabarito, sans-serif;
    font-size: 0.16rem;
    line-height: 150%;
    box-shadow: 0 0.08rem 0.3rem rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

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

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

/* ============================================================
   入场动画：进入视口触发各屏上浮淡入（与全站统一风格，第五屏除外）
   html.js 标记由 framework.js 添加；无 JS 时内容默认可见
   ============================================================ */

/* ---------- First ---------- */
html.js .first:not(.is-in-view):not(.first--played) .first__title,
html.js .first:not(.is-in-view):not(.first--played) .first__back {
    opacity: 0;
    transform: translateY(0.3rem);
}

.first.is-in-view .first__title {
    animation: pdFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.first.is-in-view .first__back {
    animation: pdFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

/* ---------- Second ---------- */
html.js .second:not(.is-in-view):not(.second--played) .second__title,
html.js .second:not(.is-in-view):not(.second--played) .second__desc,
html.js .second:not(.is-in-view):not(.second--played) .second__icons,
html.js .second:not(.is-in-view):not(.second--played) .second__right {
    opacity: 0;
    transform: translateY(0.3rem);
}

.second.is-in-view .second__title {
    animation: pdFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.second.is-in-view .second__desc {
    animation: pdFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.second.is-in-view .second__icons {
    animation: pdFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.second.is-in-view .second__right {
    animation: pdFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

/* ---------- Third ---------- */
html.js .third:not(.is-in-view):not(.third--played) .third__title,
html.js .third:not(.is-in-view):not(.third--played) .third__card {
    opacity: 0;
    transform: translateY(0.3rem);
}

.third.is-in-view .third__title {
    animation: pdFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.third.is-in-view .third__card:nth-child(1) {
    animation: pdFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.third.is-in-view .third__card:nth-child(2) {
    animation: pdFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.third.is-in-view .third__card:nth-child(3) {
    animation: pdFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

/* ---------- Fifth ---------- */
html.js .fifth:not(.is-in-view):not(.fifth--played) .fifth__title,
html.js .fifth:not(.is-in-view):not(.fifth--played) .fifth form,
html.js .fifth:not(.is-in-view):not(.fifth--played) #fifthTable,
html.js .fifth:not(.is-in-view):not(.fifth--played) .fifth__more {
    opacity: 0;
    transform: translateY(0.3rem);
}

.fifth.is-in-view .fifth__title {
    animation: pdFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.fifth.is-in-view .fifth form {
    animation: pdFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.fifth.is-in-view #fifthTable {
    animation: pdFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.fifth.is-in-view .fifth__more {
    animation: pdFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

/* ---------- Seventh ---------- */
html.js .seventh:not(.is-in-view):not(.seventh--played) .seventh__title,
html.js .seventh:not(.is-in-view):not(.seventh--played) .seventh__desc,
html.js .seventh:not(.is-in-view):not(.seventh--played) .seventh__form {
    opacity: 0;
    transform: translateY(0.3rem);
}

.seventh.is-in-view .seventh__title {
    animation: pdFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.seventh.is-in-view .seventh__desc {
    animation: pdFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.seventh.is-in-view .seventh__form {
    animation: pdFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

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

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

/* ============================================================
   H5 移动端适配
   ============================================================ */

/* ---------- 汉堡菜单按钮（与其他页面一致） ---------- */
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;
}

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

html[data-mode="h5"] .first__inner {
    width: 100%;
    padding-right: 0;
}

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

html[data-mode="h5"] .first__back {
    width: 0.9rem;
    height: 0.45rem;
    border-radius: 0.25rem;
    flex-shrink: 0;
}

html[data-mode="h5"] .first__back img {
    width: 0.3rem;
    height: 0.3rem;
}

/* ---------- 第二屏 产品概览 ---------- */
html[data-mode="h5"] .second {
    width: 100%;
    height: auto;
    padding: 0.6rem 0.4rem;
    box-sizing: border-box;
}

html[data-mode="h5"] .second__inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5rem;
}

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

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

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

html[data-mode="h5"] .second__icon-bg {
    width: 0.9rem;
    height: 0.9rem;
}

html[data-mode="h5"] .second__icon-bg img {
    width: 0.44rem;
    height: 0.4rem;
}

html[data-mode="h5"] .second__icon-bg--text {
    font-size: 0.18rem;
}

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

html[data-mode="h5"] .second__carousel {
    width: 100%;
    gap: 0.16rem;
}

html[data-mode="h5"] .second__carousel-track {
    width: 6.2rem;
    height: 3.4rem;
}

html[data-mode="h5"] .second__carousel-slide {
    width: 1.3rem;
    height: 1.3rem;
}

html[data-mode="h5"] .second__carousel-slide.is-left {
    left: 0.66rem;
}

html[data-mode="h5"] .second__carousel-slide.is-active {
    width: 3.4rem;
    height: 3.4rem;
}

html[data-mode="h5"] .second__carousel-slide.is-right {
    left: 5.54rem;
}

html[data-mode="h5"] .second__carousel-dots button {
    width: 0.26rem;
    height: 0.04rem;
}

/* ---------- 第三屏 效果展示 ---------- */
html[data-mode="h5"] .third {
    padding: 0 0.4rem 0.6rem;
}

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

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

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

html[data-mode="h5"] .third__card-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4.06 / 2.67;
}

html[data-mode="h5"] .third__card-text {
    width: 100%;
    height: 0.7rem;
    font-size: 0.24rem;
}

/* ---------- 第四屏 H5 平铺展示（无滚动切换） ---------- */
html[data-mode="h5"] .fourth {
    height: auto;
}

html[data-mode="h5"] .fourth__sticky {
    position: static;
    width: 100%;
    height: auto;
}

html[data-mode="h5"] .fourth__panel {
    position: relative;
    inset: auto;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    z-index: auto;
    opacity: 1 !important;
}

html[data-mode="h5"] .fourth__panel--1 {
    background: url('../assets/images/productsDetail/fourth-img1.webp') no-repeat center/cover;
}

html[data-mode="h5"] .fourth__panel--2 {
    background: #000;
}

html[data-mode="h5"] .fourth__panel--1,
html[data-mode="h5"] .fourth__panel--2 {
    padding: 0 0.5rem;
}

html[data-mode="h5"] .fourth__content {
    min-width: 0;
    width: 100%;
    align-items: center;
    text-align: center;
}

html[data-mode="h5"] .fourth__num {
    font-size: 0.8rem;
    line-height: 0.8rem;
}

html[data-mode="h5"] .fourth__heading {
    font-size: 0.34rem;
    margin-bottom: 0.14rem;
}

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

html[data-mode="h5"] .fourth__img-wrap {
    width: 5rem;
    height: 3.27rem;
    margin-left: 0;
    margin-right: 0;
}

/* ---------- 第五屏 规格表 ---------- */
html[data-mode="h5"] .fifth {
    padding: 0.6rem 0.4rem;
}

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

html[data-mode="h5"] .fifth form {
    width: 100%;
    height: auto;
    min-height: 1rem;
    padding: 0.16rem 0.2rem;
    box-sizing: border-box;
}

html[data-mode="h5"] .fifth form li:first-child span {
    flex: 0 0 2.4rem;
    width: 2.4rem;
    font-size: 0.22rem;
    padding: 0;
}

html[data-mode="h5"] .fifth form li input {
    flex: 1;
    max-width: 3.2rem;
    width: 100%;
    height: 0.68rem;
    font-size: 0.22rem;
}

html[data-mode="h5"] #fifthTable {
    width: 100%;
    overflow: auto;
}

html[data-mode="h5"] #fifthTable td:first-child {
    flex: 0 0 2.4rem;
    width: 2.4rem;
    font-size: 0.22rem;
    padding: 0.2rem 0.12rem;
}

html[data-mode="h5"] #fifthTable td:not(:first-child) {
    font-size: 0.2rem;
    padding: 0.2rem 0.12rem;
}

html[data-mode="h5"] #fifthTable td div {
    width: 1.8rem;
    height: 1.8rem;
}

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

/* ---------- 第六屏 相关产品（横向滑动卡片） ---------- */
html[data-mode="h5"] .sixth {
    width: 100%;
    height: auto;
    padding: 0.6rem 0.4rem;
    box-sizing: border-box;
}

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

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

html[data-mode="h5"] .sixth__cards {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.2rem;
    padding-bottom: 0.1rem;
    scrollbar-width: none;
}

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

html[data-mode="h5"] .sixth__card {
    flex: 0 0 auto;
    width: 3.1rem;
    height: auto;
    min-height: 4.4rem;
    padding: 0.24rem 0.2rem;
    border-radius: 0.12rem;
}

html[data-mode="h5"] .sixth__card-tag {
    font-size: 0.16rem;
    margin-bottom: 0.06rem;
}

html[data-mode="h5"] .sixth__card-title {
    font-size: 0.26rem;
    margin-bottom: 0.18rem;
}

html[data-mode="h5"] .sixth__card-media {
    width: 1.8rem;
    height: 1.8rem;
    margin-bottom: 0.26rem;
}

html[data-mode="h5"] .sixth__card-actions {
    gap: 0.16rem;
}

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

html[data-mode="h5"] .sixth__card-btn {
    font-size: 0.18rem;
    padding: 0.08rem 0.18rem;
}

/* ---------- 第七屏 留言表单 ---------- */
html[data-mode="h5"] .seventh {
    width: 100%;
    height: auto;
    padding: 0.6rem 0.4rem;
    box-sizing: border-box;
}

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

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

html[data-mode="h5"] .seventh form ul {
    width: 100%;
    margin-bottom: 0.16rem;
    column-gap: 0.16rem;
    row-gap: 0.16rem;
}

html[data-mode="h5"] .seventh form ul li {
    flex: 1 1 calc(50% - 0.08rem);
}

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

html[data-mode="h5"] .seventh form input {
    width: 100%;
    height: 0.8rem;
    font-size: 0.24rem;
    padding: 0 0.2rem;
}

html[data-mode="h5"] .seventh form textarea {
    height: 2.4rem;
    font-size: 0.24rem;
    padding: 0.2rem;
}

html[data-mode="h5"] .seventh form > p {
    margin: 0.3rem 0 0.5rem;
    font-size: 0.2rem;
}

html[data-mode="h5"] .seventh form > div {
    gap: 0.3rem;
}

html[data-mode="h5"] .seventh form button {
    width: 1.8rem;
    height: 0.6rem;
    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;
}
