.first {
    height: 7.6rem;
    background-image: url('../assets/images/product/first-img.webp');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    padding-left: 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.first h2 {
    color: #FFF;
    font-family: Montserrat;
    font-size: 0.48rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 0.2rem;
    width: 8rem;
}

.first p {
    color: #FFF;
    font-family: Montserrat;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    width: 6.5rem;
    line-height: 150%;
    /* 24px */
    text-transform: capitalize;
}
/* ---------- H5 适配 ---------- */
html[data-mode="h5"] .first {
    height: 4.6rem;
    padding: 0.8rem 0.24rem 0;
    background-size: cover;
}

html[data-mode="h5"] .first h2 {
    font-size: 0.36rem;
    margin-bottom: 0.16rem;
    width: 5rem;
}

html[data-mode="h5"] .first p {
    font-size: 0.14rem;
}

/* H5 下忽略桌面端的强制换行，避免窄屏断句生硬 */
html[data-mode="h5"] .first p br {
    display: none;
}

/* ============================================================
   第二屏：Products list（横幅 + 三张产品卡片）
   设计稿基准：1920，padding 123 160（1rem = 100px）
   ============================================================ */
.second {
    width: 100%;
    max-width: 19.2rem;
    margin: 0 auto;
    padding: 1.23rem 1.6rem 0; /* 123px 160px */
    box-sizing: border-box;
}

/* ---------- 上方横幅 ---------- */
.second__banner {
    height: 3.5rem; /* 350px */
    background-image: url('../assets/images/product/second-img1.webp');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
    padding-left: 0.82rem;
    justify-content: center;
}

.second__banner-title {
    color: #FFF;
    font-family: Montserrat, sans-serif;
    font-size: 0.36rem; /* 36px */
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0;
}

/* 各模块横幅使用不同背景图 */
.second__module:nth-of-type(2) .second__banner {
    background-image: url('../assets/images/product/second-img5.webp');
}

.second__module:nth-of-type(3) .second__banner {
    background-image: url('../assets/images/product/second-img9.webp');
}

.second__module:nth-of-type(4) .second__banner {
    background-image: url('../assets/images/product/second-img13.webp');
}

/* ---------- 下方产品卡片 ---------- */
.second__grid {
    display: flex;
    margin-top: 0.42rem;
    margin-bottom: 1.16rem;
    flex-wrap: wrap;
    gap: 0.32rem;
}

.second__card {
    display: block;
    width: 5.12rem; /* 511.572px */
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
}

.second__card-img {
    position: relative;
    width: 5.12rem; /* 511.572px */
    height: 3.13rem; /* 313.474px */
    margin-bottom: 0.34rem; /* 下边距 34px */
    border: 0.01rem solid #D9D9D9;
    box-sizing: border-box;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* 悬浮时斜切高光扫过图片 */
.second__card-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(105deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.45) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    transition: left 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

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

.second__card-title {
    color: #333;
    font-family: Montserrat, sans-serif;
    font-size: 0.2rem; /* 20px */
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin: 0 0 0.1rem; /* 下边距 10px */
    transition: color 0.3s ease;
}

.second__card-desc {
    color: #666;
    font-family: Montserrat, sans-serif;
    font-size: 0.16rem; /* 16px */
    font-style: normal;
    font-weight: 400;
    line-height: 150%; /* 24px */
    margin: 0;
    transition: color 0.3s ease;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

/* ---------- 悬浮态：边框点亮 + 高光扫过 + 图片缩放 + 标题变蓝 ---------- */
.second__card:hover .second__card-img {
    border-color: #044EAD;
}

.second__card:hover .second__card-img::after {
    left: 130%;
}

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

.second__card:hover .second__card-title {
    color: #044EAD;
}

.second__card:hover .second__card-desc {
    color: #333;
}

/* ---------- 入场动画（product.js 逐模块观测加 .is-in-view 触发） ----------
   横幅标题自左擦亮 → 卡片 3D 翻入错峰 → 图片缩放揭开 → 标题/描述浮现 */
html.js .second__module:not(.is-in-view) .second__banner-title,
html.js .second__module:not(.is-in-view) .second__card,
html.js .second__module:not(.is-in-view) .second__card-img img,
html.js .second__module:not(.is-in-view) .second__card-title,
html.js .second__module:not(.is-in-view) .second__card-desc {
    opacity: 0;
}

.second__module.is-in-view .second__banner-title {
    animation: product-title-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s backwards;
}

.second__module.is-in-view .second__card {
    animation: product-card-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    transform-origin: 50% 0;
}

.second__module.is-in-view .second__card:nth-child(1) { animation-delay: 0.3s; }
.second__module.is-in-view .second__card:nth-child(2) { animation-delay: 0.42s; }
.second__module.is-in-view .second__card:nth-child(3) { animation-delay: 0.54s; }
.second__module.is-in-view .second__card:nth-child(4) { animation-delay: 0.66s; }
.second__module.is-in-view .second__card:nth-child(5) { animation-delay: 0.78s; }
.second__module.is-in-view .second__card:nth-child(6) { animation-delay: 0.9s; }
.second__module.is-in-view .second__card:nth-child(7) { animation-delay: 1.02s; }
.second__module.is-in-view .second__card:nth-child(8) { animation-delay: 1.14s; }
.second__module.is-in-view .second__card:nth-child(9) { animation-delay: 1.26s; }
.second__module.is-in-view .second__card:nth-child(10) { animation-delay: 1.38s; }
.second__module.is-in-view .second__card:nth-child(11) { animation-delay: 1.5s; }

.second__module.is-in-view .second__card-img img {
    animation: product-img-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.second__module.is-in-view .second__card:nth-child(1) .second__card-img img { animation-delay: 0.4s; }
.second__module.is-in-view .second__card:nth-child(2) .second__card-img img { animation-delay: 0.52s; }
.second__module.is-in-view .second__card:nth-child(3) .second__card-img img { animation-delay: 0.64s; }
.second__module.is-in-view .second__card:nth-child(4) .second__card-img img { animation-delay: 0.76s; }
.second__module.is-in-view .second__card:nth-child(5) .second__card-img img { animation-delay: 0.88s; }
.second__module.is-in-view .second__card:nth-child(6) .second__card-img img { animation-delay: 1s; }
.second__module.is-in-view .second__card:nth-child(7) .second__card-img img { animation-delay: 1.12s; }
.second__module.is-in-view .second__card:nth-child(8) .second__card-img img { animation-delay: 1.24s; }
.second__module.is-in-view .second__card:nth-child(9) .second__card-img img { animation-delay: 1.36s; }
.second__module.is-in-view .second__card:nth-child(10) .second__card-img img { animation-delay: 1.48s; }
.second__module.is-in-view .second__card:nth-child(11) .second__card-img img { animation-delay: 1.6s; }

.second__module.is-in-view .second__card-title {
    animation: product-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.second__module.is-in-view .second__card-desc {
    animation: product-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.second__module.is-in-view .second__card:nth-child(1) .second__card-title,
.second__module.is-in-view .second__card:nth-child(1) .second__card-desc { animation-delay: 0.55s; }
.second__module.is-in-view .second__card:nth-child(2) .second__card-title,
.second__module.is-in-view .second__card:nth-child(2) .second__card-desc { animation-delay: 0.67s; }
.second__module.is-in-view .second__card:nth-child(3) .second__card-title,
.second__module.is-in-view .second__card:nth-child(3) .second__card-desc { animation-delay: 0.79s; }
.second__module.is-in-view .second__card:nth-child(4) .second__card-title,
.second__module.is-in-view .second__card:nth-child(4) .second__card-desc { animation-delay: 0.91s; }
.second__module.is-in-view .second__card:nth-child(5) .second__card-title,
.second__module.is-in-view .second__card:nth-child(5) .second__card-desc { animation-delay: 1.02s; }
.second__module.is-in-view .second__card:nth-child(6) .second__card-title,
.second__module.is-in-view .second__card:nth-child(6) .second__card-desc { animation-delay: 1.14s; }
.second__module.is-in-view .second__card:nth-child(7) .second__card-title,
.second__module.is-in-view .second__card:nth-child(7) .second__card-desc { animation-delay: 1.26s; }
.second__module.is-in-view .second__card:nth-child(8) .second__card-title,
.second__module.is-in-view .second__card:nth-child(8) .second__card-desc { animation-delay: 1.38s; }
.second__module.is-in-view .second__card:nth-child(9) .second__card-title,
.second__module.is-in-view .second__card:nth-child(9) .second__card-desc { animation-delay: 1.5s; }
.second__module.is-in-view .second__card:nth-child(10) .second__card-title,
.second__module.is-in-view .second__card:nth-child(10) .second__card-desc { animation-delay: 1.62s; }
.second__module.is-in-view .second__card:nth-child(11) .second__card-title,
.second__module.is-in-view .second__card:nth-child(11) .second__card-desc { animation-delay: 1.74s; }

@keyframes product-title-in {
    0% {
        opacity: 0;
        transform: translateX(-0.4rem);
        filter: blur(0.06rem);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

@keyframes product-card-in {
    0% {
        opacity: 0;
        transform: translateY(0.4rem) rotateX(-22deg) scale(0.94);
        filter: blur(0.05rem);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0) scale(1);
        filter: blur(0);
    }
}

@keyframes product-img-in {
    0% {
        opacity: 0;
        transform: scale(1.18);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes product-fade-up {
    0% {
        opacity: 0;
        transform: translateY(0.2rem);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- H5 适配 ---------- */
html[data-mode="h5"] .second {
    padding: 0.6rem 0.24rem;
}

html[data-mode="h5"] .second__banner {
    height: 2.4rem;
    padding: 0 0.24rem 0.3rem;
}

html[data-mode="h5"] .second__banner-title {
    font-size: 0.28rem;
}

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

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

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

html[data-mode="h5"] .second__card-img img {
    height: auto;
}