/* ============================================================
   News 页面
   ============================================================ */
.news-main {
    background: #fff;
}

/* ---------- 第一屏 banner（1920×600） ---------- */
.first {
    position: relative;
    width: 19.2rem;
    max-width: 100%;
    height: 6rem;
    margin: 0 auto;
    background: url("../assets/images/news/first-img.png") no-repeat center center / cover;
    /* 用户指定的内边距：顶部 392px，左右 310px
       rem 换算（基准 100px / rem）：
         392 / 100 = 3.92rem
         310 / 100 = 3.1rem   */
    padding: 3.92rem 3.1rem 0;
    box-sizing: border-box;
    overflow: hidden;
    color: #fff;
}

.first__content {
    color: #fff;
}

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

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

/* ---------- 第二屏：Featured News 轮播 ---------- */
.second {
    position: relative;
    width: 19.2rem;
    max-width: 100%;
    height: 6.57rem;
    margin: 0 auto;
    padding: 0 3.1rem;
    box-sizing: border-box;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
}

.second__slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.second__slides {
    position: relative;
    width: 100%;
    height: 3.93rem;
}

.second__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 1;
}

.second__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* 幻灯片入场动画：图片与文字依次淡入上浮 */
@keyframes secondFadeUp {
    from {
        opacity: 0;
        transform: translateY(0.2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.second__slide.is-active .second__media,
.second__slide.is-active .second__date,
.second__slide.is-active .second__title,
.second__slide.is-active .second__desc,
.second__slide.is-active .second__btn {
    animation: secondFadeUp 0.6s ease both;
}

.second__slide.is-active .second__media {
    animation-delay: 0.1s;
}

.second__slide.is-active .second__date {
    animation-delay: 0.2s;
}

.second__slide.is-active .second__title {
    animation-delay: 0.3s;
}

.second__slide.is-active .second__desc {
    animation-delay: 0.4s;
}

.second__slide.is-active .second__btn {
    animation-delay: 0.5s;
}

.second__media {
    flex-shrink: 0;
    width: 6.51rem;
    height: 3.93rem;
    border-radius: 0.04rem;
    overflow: hidden;
    background: #f2f2f2;
}

.second__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.second__info {
    flex: 1;
    min-width: 0;
    padding-top: 0.54rem;
    margin-left: 0.63rem;
    display: flex;
    flex-direction: column;
    height: 3.93rem;
}

.second__date {
    color: #999;
    font-family: Gabarito, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin-bottom: 0.2rem;
}

.second__title {
    color: #333;
    font-family: Gabarito, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 0.24rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin: 0 0 0.2rem;
}

.second__title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.second__title-link:hover {
    color: #0063C3;
}

.second__desc {
    color: #999;
    font-family: Gabarito, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin: 0 0 0.4rem;
}

.second__btn {
    display: inline-block;
    padding: 0.14rem 0.24rem;
    border-radius: 1rem;
    border: 1px solid #CCC;
    background: transparent;
    color: #333;
    font-family: Gabarito, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease,
        box-shadow 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
    width: max-content;
}

.second__btn:hover {
    background: linear-gradient(135deg, #00B8E2 0%, #0063C3 100%);
    border-color: transparent;
    color: #FFF;
    box-shadow: 0 0.08rem 0.24rem rgba(0, 99, 195, 0.3);
    transform: translateY(-0.02rem);
}

.second__btn:active {
    transform: translateY(0);
}

.second__dots {
    position: absolute;
    bottom: 0.32rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.08rem;
    z-index: 3;
}

.second__dot {
    width: 0.24rem;
    height: 0.03rem;
    padding: 0;
    border: none;
    background: #E5E5E5;
    border-radius: 0.015rem;
    cursor: pointer;
    outline: none;
    transition: background 0.3s ease, width 0.3s ease;
}

.second__dot.is-active {
    width: 0.4rem;
    background: #333;
}

/* ---------- 第三屏：Latest News & Blogs 列表 ---------- */
.third {
    position: relative;
    width: 19.2rem;
    max-width: 100%;
    min-height: 6rem;
    height: auto;
    margin: 0 auto;
    background: #ffffff;
    padding: 0 3.1rem 1rem;
    box-sizing: border-box;
    overflow: hidden;
    color: #1a1d23;
}

.third__list {
    display: flex;
    flex-direction: column;
    gap: 0.04rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.third__item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    width: 100%;
    padding: 0.32rem 0.5rem;
    background: #f6f7f9;
    border-radius: 0.04rem;
    box-sizing: border-box;
    color: #1a1d23;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.third__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0.04rem;
    border-radius: 0.04rem 0 0 0.04rem;
    background: linear-gradient(180deg, #22d3ee, #4f7cff);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.25s ease;
    will-change: transform;
}

.third__item:hover::before {
    transform: scaleY(1);
}

.third__item:hover {
    background: #ffffff;
    transform: translateY(-0.02rem);
    box-shadow: 0 0.1rem 0.32rem rgba(31, 45, 89, 0.1);
}

.third__item:hover .third__img {
    transform: scale(1.06);
}

.third__item:hover .third__item-title {
    color: #0063C3;
}

/* 整条卡片可点击跳转：绝对定位覆盖链接 */
.third__link {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.third__date {
    flex: 0 0 1.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #1a1d23;
    line-height: 1;
}

.third__date-day {
    font-family: "Gabarito", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
}

.third__date-year {
    font-family: "Gabarito", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 0.16rem;
    font-weight: 400;
    margin-top: 0.06rem;
    color: #6b7280;
    letter-spacing: 0.01rem;
}

.third__content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.08rem;
}

.third__item-title {
    margin: 0;
    color: #1a1d23;
    font-family: "Gabarito", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 0.24rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.third__item-desc {
    margin: 0;
    color: #6b7280;
    font-family: "Gabarito", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 0.16rem;
    font-weight: 400;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.third__media {
    flex: 0 0 auto;
    width: 2.4rem;
    height: 1.5rem;
    border-radius: 0.04rem;
    overflow: hidden;
    background: #f2f2f2;
}

.third__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

/* 入场动画：与首页第六屏同套机制 */
html.js .third:not(.is-in-view):not(.third--played) .third__item,
html.js .third:not(.is-in-view):not(.third--played) .third__pagination {
    opacity: 0;
}

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

.third.is-in-view .third__item:nth-child(1) { animation: thirdFadeUp 0.7s ease 0.08s both; }
.third.is-in-view .third__item:nth-child(2) { animation: thirdFadeUp 0.7s ease 0.18s both; }
.third.is-in-view .third__item:nth-child(3) { animation: thirdFadeUp 0.7s ease 0.28s both; }
.third.is-in-view .third__item:nth-child(4) { animation: thirdFadeUp 0.7s ease 0.38s both; }
.third.is-in-view .third__item:nth-child(5) { animation: thirdFadeUp 0.7s ease 0.48s both; }
.third.is-in-view .third__pagination {
    animation: thirdFadeUp 0.6s ease 0.6s both;
}

/* 分页器：与 FAQ 第二屏完全一致 */
.third__pagination {
    margin-top: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    flex-shrink: 0;
}

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

.third__pagination a,
.third__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;
}

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

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

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

/* ============================================================
   H5（移动端）适配
   设计稿基准：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;
    padding: 3.4rem 0.4rem 0.6rem;
    align-items: 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__desc {
    font-size: 0.26rem;
    line-height: 1.6;
    max-width: 100%;
}

/* ---------- 第二屏 Featured News 轮播 ---------- */
html[data-mode="h5"] .second {
    height: auto;
    padding: 0.5rem 0.4rem 0.9rem;
}

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

html[data-mode="h5"] .second__slide {
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.26rem;
}

html[data-mode="h5"] .second__media {
    width: 100%;
    height: 3.6rem;
}

html[data-mode="h5"] .second__info {
    margin-left: 0;
    padding-top: 0;
    height: auto;
}

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

html[data-mode="h5"] .second__title {
    font-size: 0.3rem;
    line-height: 1.4;
    margin-bottom: 0.16rem;
}

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

html[data-mode="h5"] .second__btn {
    font-size: 0.24rem;
    padding: 0.16rem 0.3rem;
}

html[data-mode="h5"] .second__dots {
    bottom: 0.4rem;
}

/* ---------- 第三屏 Latest News & Blogs 列表 ---------- */
html[data-mode="h5"] .third {
    padding: 0 0.4rem 0.7rem;
}

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

html[data-mode="h5"] .third__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.22rem;
    padding: 0.3rem 0.28rem;
}

html[data-mode="h5"] .third__date {
    flex: none;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.14rem;
}

html[data-mode="h5"] .third__date-day {
    font-size: 0.4rem;
}

html[data-mode="h5"] .third__date-year {
    font-size: 0.24rem;
    margin-top: 0;
}

html[data-mode="h5"] .third__item-title {
    font-size: 0.28rem;
    line-height: 1.5;
}

html[data-mode="h5"] .third__item-desc {
    font-size: 0.24rem;
    line-height: 1.7;
}

html[data-mode="h5"] .third__media {
    width: 100%;
    height: 3.2rem;
}

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

/* ---------- 页脚 ---------- */
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;
}
