.first {
    position: relative;
    width: 100%;
    max-width: 19.2rem;
    height: 8rem;
    margin: 0 auto;
    background: #1a1a1a url('../assets/images/Project/first-img.webp') no-repeat center / cover;
    box-sizing: border-box;
    padding: 0 1.6rem;
    color: #FFF;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.first__content {
    flex: 1;
    min-width: 0;
}

.first__title {
    color: #FFF;
    font-family: Montserrat, sans-serif;
    font-size: 0.44rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-transform: capitalize;
    margin: 0 0 0.24rem;
}

.first__desc {
    color: #FFF;
    font-family: Montserrat, sans-serif;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    text-transform: capitalize;
    margin: 0;
}

.first__breadcrumb {
    position: absolute;
    left: 1.6rem;
    bottom: 0.30rem;
    color: #FFF;
    font-family: Montserrat, sans-serif;
    font-size: 0.18rem;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    text-transform: capitalize;
    display: flex;
    align-items: center;
    gap: 0.10rem;
    margin: 0;
    padding: 0;
}

.first__breadcrumb a {
    color: #FFF;
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.first__breadcrumb a:hover {
    opacity: 0.75;
}

.first__breadcrumb-sep {
    color: #FFF;
    opacity: 0.85;
}

.first__breadcrumb-current {
    color: #FFF;
}

/* ============================================================
   第二屏：Our Projects 项目案例列表
   - 样式规则与 industries.css 的 .second__cards 等保持一致
     （industries.html / industries.css 中复制而来，保证两页卡片视觉一致）
   - 差异：本页无分类 tabs，故只保留卡片列表相关规则
   ============================================================ */
.second {
    padding-bottom: 0.6rem;
}

.second h2{
    color: #333;
font-family: Inter;
font-size: 0.4rem;
font-style: normal;
font-weight: 600;
line-height: normal;
text-transform: capitalize;
margin:1.05rem 0 0.46rem 1.6rem;
}

/* ---------- 卡片列表 ---------- */
.second__cards {
    max-width: 16.0rem;
    margin: 0.6rem auto 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.second__card {
    display: flex;
    width: 100%;
    max-width: 16.0rem;
    margin: 0 auto;
    background: #FFF;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.second__card:nth-child(even) {
    flex-direction: row-reverse;
}

/* ---------- 卡片悬浮动效 ---------- */
.second__card:hover {
    transform: translateY(-0.03rem);
    box-shadow: 0 0.1rem 0.24rem rgba(2, 52, 125, 0.12);
}

html[data-mode="h5"] .second__card:hover {
    transform: none;
}

/* ---------- 图片 ---------- */
.second__img {
    width: 8rem;
    height: 5rem;
    flex-shrink: 0;
    overflow: hidden;
}

.second__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.second__card:hover .second__img img {
    transform: scale(1.05);
}

/* ---------- 文字模块 ---------- */
.second__body {
    width: 8rem;
    height: 5rem;
    padding: 0 0.8rem 0 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.second__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #000;
    font-family: Inter, sans-serif;
    font-size: 0.34rem;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin: 0 0 0.8rem;
    transition: color 0.3s ease;
}

.second__desc {
    color: #666;
    font-family: Inter, sans-serif;
    font-size: 0.18rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin: 0 0 0.2rem;
}

.second__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.1rem;
    margin: 0 0 1.2rem;
}

.second__tag {
    display: flex;
    padding: 0.05rem 0.2rem;
    justify-content: center;
    align-items: center;
    gap: 0.1rem;
    border-radius: 0.02rem;
    background: rgba(2, 52, 125, 0.15);
    color: #02347D;
    font-family: Inter, sans-serif;
    font-size: 0.14rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    transition: background 0.3s ease, transform 0.3s ease;
}

.second__card:hover .second__tag {
    background: rgba(2, 52, 125, 0.25);
}

.second__card:hover .second__title {
    color: #02347D;
}

/* ============================================================
   Learn More 按钮悬浮微交互（与首页统一）
   底色渐变自左向右擦入 + 高光斜向扫过 + 轻微上浮
   阴影采用紧致柔和的小投影，不再使用大扩散阴影与 brightness 提亮
   ============================================================ */
.second__btn {
    display: inline-flex;
    padding: 0.18rem 0.4rem;
    justify-content: center;
    align-items: center;
    gap: 0.1rem;
    background: var(--Style, #02347D);
    color: #FFF;
    font-family: Inter, sans-serif;
    font-size: 0.18rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-transform: capitalize;
    border: none;
    cursor: pointer;
    text-decoration: none;
    align-self: flex-start;
    /* 建立包含块，供高光层定位并裁切 */
    position: relative;
    overflow: hidden;
    /* 擦入层：默认宽度 0，悬浮时铺满 */
    background-image: linear-gradient(100deg, #0A4BA8 0%, #014ADC 100%);
    background-repeat: no-repeat;
    background-size: 0% 100%;
    background-position: 0 0;
    transition: background-size 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1),
        box-shadow 0.3s ease,
        color 0.3s ease;
}

/* 高光扫过层：半透明白色斜条，掠过按钮表面 */
.second__btn::after {
    content: "";
    position: absolute;
    top: -30%;
    left: 0;
    width: 34%;
    height: 160%;
    background: linear-gradient(100deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.38) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: translateX(-220%) skewX(-18deg);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.25s ease;
}

.second__btn:hover {
    background-size: 100% 100%;
    transform: translateY(-0.02rem);
    box-shadow: 0 0.05rem 0.14rem rgba(2, 52, 125, 0.22);
    filter: none;
}

.second__btn:hover::after {
    transform: translateX(320%) skewX(-18deg);
    opacity: 1;
}

.second__btn:active {
    transform: translateY(0);
    box-shadow: 0 0.01rem 0.04rem rgba(2, 52, 125, 0.16);
    transition-duration: 0.12s;
}

/* 系统开启"减少动态效果"时：只保留颜色变化 */
@media (prefers-reduced-motion: reduce) {
    .second__btn::after {
        display: none;
    }

    .second__btn:hover,
    .second__btn:active {
        transform: none;
    }
}

/* ---------- 滚动入场动效 ----------
   本页复用 index.js 的 sectionReveal（给 #second 添加 .is-in-view），
   故选择器用父级 .second.is-in-view，与 industries 页触发的层级不同，
   但动画效果（secondFadeUp 错峰上浮）保持一致 */
html.js .second:not(.is-in-view) .second__card {
    opacity: 0;
    transform: translateY(0.2rem);
}

.second.is-in-view .second__card:nth-child(1) {
    animation: projectFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s backwards;
}

.second.is-in-view .second__card:nth-child(2) {
    animation: projectFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s backwards;
}

.second.is-in-view .second__card:nth-child(3) {
    animation: projectFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s backwards;
}

.second.is-in-view .second__card:nth-child(4) {
    animation: projectFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s backwards;
}

@keyframes projectFadeUp {
    from {
        opacity: 0;
        transform: translateY(0.2rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 系统开启"减少动态效果"时：直接显示 */
@media (prefers-reduced-motion: reduce) {

    html.js .second:not(.is-in-view) .second__card {
        opacity: 1;
        transform: none;
    }
}

/* ---------- H5 适配 ---------- */
html[data-mode="h5"] .second__cards {
    margin: 0.3rem auto 0.4rem;
    gap: 0.3rem;
    padding: 0 0.3rem;
}

html[data-mode="h5"] .second__card,
html[data-mode="h5"] .second__card:nth-child(even) {
    flex-direction: column;
    max-width: 100%;
}

html[data-mode="h5"] .second__img {
    width: 100%;
    height: 3.5rem;
}

html[data-mode="h5"] .second__body {
    width: 100%;
    height: auto;
    padding: 0.3rem;
}

html[data-mode="h5"] .second__title {
    font-size: 0.24rem;
    margin-bottom: 0.12rem;
}

html[data-mode="h5"] .second__desc {
    font-size: 0.14rem;
    margin-bottom: 0.12rem;
}

html[data-mode="h5"] .second__tags {
    margin-bottom: 0.3rem;
}

html[data-mode="h5"] .second__tag {
    font-size: 0.12rem;
}

html[data-mode="h5"] .second__btn {
    font-size: 0.14rem;
    padding: 0.12rem 0.3rem;
}

/* ---------- 首屏 Banner H5 适配 ---------- */
html[data-mode="h5"] .first {
    height: 4.4rem;
    padding: 0 0.3rem;
}

html[data-mode="h5"] .first__title {
    font-size: 0.36rem;
    margin-bottom: 0.16rem;
}

html[data-mode="h5"] .first__desc {
    font-size: 0.14rem;
    max-width: 100%;
}

html[data-mode="h5"] .first__breadcrumb {
    left: 0.3rem;
    bottom: 0.2rem;
    font-size: 0.14rem;
    gap: 0.06rem;
}
