/* ============================================================
   1. 首屏 Hero（Figma 560_2：1920 × 700）
   ============================================================ */
.first {
    position: relative;
    height: 7rem;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

/* 背景大图：入场缓慢回缩（Ken Burns），顶部品牌蓝压色保证 header 衔接 */
.first__bg {
    position: absolute;
    inset: 0;
    background: url("../assets/images/news/news.webp") center / cover no-repeat;
    animation: firstZoom 2.2s var(--ease-out) both;
    will-change: transform;
}

/* 底部轻压暗，保证标题/面包屑可读性 */
.first::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(3, 82, 141, 0.35) 0%,
            rgba(3, 82, 141, 0) 30%,
            rgba(0, 0, 0, 0) 62%,
            rgba(0, 0, 0, 0.32) 100%);
    pointer-events: none;
}

.first__content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0 1.6rem 0.76rem;
}

/* ---------- 标题：遮罩上滑 + 字距收缩 ---------- */
.first__title {
    overflow: hidden;
    /* 遮罩：文字从下方滑入 */
    font-size: 0.64rem;
    font-weight: 600;
    line-height: 1.15;
    color: #ffffff;
}

.first__title span {
    display: inline-block;
    animation: firstTitleUp 0.9s var(--ease-out) 0.25s both;
}

/* ---------- 入场动效 ---------- */
@keyframes firstZoom {
    from {
        transform: scale(1.12);
    }

    to {
        transform: scale(1);
    }
}

@keyframes firstTitleUp {
    from {
        transform: translateY(110%);
        letter-spacing: 0.04rem;
        opacity: 0.4;
    }

    to {
        transform: translateY(0);
        letter-spacing: normal;
        opacity: 1;
    }
}

/* ============================================================
   2. H5 适配
   ============================================================ */
html[data-mode="h5"] .first {
    height: 4.8rem;
}

html[data-mode="h5"] .first__content {
    padding: 0 0.4rem 0.5rem;
}

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

/* ============================================================
   2. 第二屏顶部检索条（Figma 571_139）
   ------------------------------------------------------------
   左：分类 tabs（选中态 = Exhibition 样式：蓝字 + 底部 3px 指示线）
   右：时间选择器（自绘 select，182 × 46，圆角 6px）
   ============================================================ */
.second {
    gap: 0.4rem;
    padding: 0.8rem 1.6rem;
}

.second .second_header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    z-index: 100;
    position: relative;
}

/* ---------- 左：分类 tabs ---------- */
.filter-tabs {
    display: flex;
    gap: 0.45rem;
}

.filter-tabs__item {
    position: relative;
    padding-bottom: 0.2rem;
    font-size: 0.2rem;
    font-weight: 600;
    color: #333333;
    transition: color 0.3s ease;
}

/* 底部指示线：贴文字宽度，水平居中缩放滑出 */
.filter-tabs__item::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100%;
    height: 0.03rem;
    border-radius: 0.02rem;
    background: #03528D;
    transform: translateX(-50%) scaleX(0);
    transition: transform 0.35s var(--ease-out), background-color 0.3s ease;
}

.filter-tabs__item:hover,
.filter-tabs__item:focus-visible {
    color: #03528D;
}

/* 悬浮：浅色指示线预示可切换 */
.filter-tabs__item:hover::after,
.filter-tabs__item:focus-visible::after {
    transform: translateX(-50%) scaleX(1);
    background: rgba(3, 82, 141, 0.35);
}

/* 选中态：蓝字 + 实线 */
.filter-tabs__item.is-active {
    color: #03528D;
}

.filter-tabs__item.is-active::after {
    transform: translateX(-50%) scaleX(1);
}

/* ---------- 右：时间选择器 ---------- */
.year-select {
    position: relative;
    width: 1.82rem;
    flex-shrink: 0;
}

.year-select__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 0.46rem;
    padding: 0 0.14rem 0 0.2rem;
    background: #ffffff;
    border: 1px solid #D9D9D9;
    border-radius: 0.06rem;
    font-family: var(--font-base);
    font-size: 0.16rem;
    color: #666666;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.year-select__toggle:hover,
.year-select.is-open .year-select__toggle {
    border-color: #03528D;
    box-shadow: 0 0 0 2px rgba(3, 82, 141, 0.08);
}

.year-select__toggle svg {
    width: 0.2rem;
    height: 0.2rem;
    color: #666666;
    transition: transform 0.3s var(--ease-out), color 0.3s ease;
}

.year-select.is-open .year-select__toggle svg {
    transform: rotate(180deg);
    color: #03528D;
}

/* 下拉面板：展开时滑入 */
.year-select__list {
    display: none;
    position: absolute;
    top: calc(100% + 0.06rem);
    left: 0;
    right: 0;
    z-index: 20;
    padding: 0.04rem;
    background: #ffffff;
    border: 1px solid #D9D9D9;
    border-radius: 0.06rem;
    box-shadow: 0 0.08rem 0.2rem rgba(0, 0, 0, 0.12);
    list-style: none;
}

.year-select.is-open .year-select__list {
    display: block;
    animation: selectDrop 0.28s var(--ease-out) both;
}

.year-select__option {
    display: flex;
    align-items: center;
    width: 100%;
    height: 0.46rem;
    padding: 0 0.2rem;
    border: none;
    border-radius: 0.04rem;
    background: transparent;
    font-family: var(--font-base);
    font-size: 0.16rem;
    color: #666666;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, padding-left 0.25s ease;
}

.year-select__option:hover,
.year-select__option:focus-visible {
    background: rgba(3, 82, 141, 0.08);
    color: #03528D;
    padding-left: 0.24rem;
}

/* 选中项：蓝底白字（设计稿 2026 态） */
.year-select__option.is-selected,
.year-select__option.is-selected:hover {
    background: #03528D;
    color: #ffffff;
}

/* ---------- 入场动效（data-reveal 触发，子项错峰播放） ---------- */
@keyframes filterTabUp {
    from {
        opacity: 0;
        transform: translateY(0.2rem);
    }

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

.filter-tabs.is-in-view .filter-tabs__item {
    animation: filterTabUp 0.55s var(--ease-out) both;
}

.filter-tabs.is-in-view .filter-tabs__item:nth-child(2) {
    animation-delay: 0.1s;
}

.filter-tabs.is-in-view .filter-tabs__item:nth-child(3) {
    animation-delay: 0.2s;
}

.filter-tabs.is-in-view .filter-tabs__item:nth-child(4) {
    animation-delay: 0.3s;
}

/* 选中项指示线：等 tabs 滑入后从左画出 */
@keyframes underlineIn {
    from {
        transform: translateX(-50%) scaleX(0);
    }

    to {
        transform: translateX(-50%) scaleX(1);
    }
}

.filter-tabs.is-in-view .filter-tabs__item.is-active::after {
    animation: underlineIn 0.4s 0.55s var(--ease-out) backwards;
}

@keyframes selectDrop {
    from {
        opacity: 0;
        transform: translateY(-0.08rem);
    }

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

/* ============================================================
   3. H5 适配
   ============================================================ */
html[data-mode="h5"] .second {
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.5rem 0.4rem;
}

html[data-mode="h5"] .filter-tabs {
    gap: 0.4rem;
    flex-wrap: wrap;
}

html[data-mode="h5"] .filter-tabs__item {
    font-size: 0.32rem;
    padding-bottom: 0.24rem;
}

html[data-mode="h5"] .year-select {
    width: 3rem;
}

html[data-mode="h5"] .year-select__toggle {
    height: 0.66rem;
    font-size: 0.32rem;
}

html[data-mode="h5"] .year-select__toggle svg {
    width: 0.3rem;
    height: 0.3rem;
}

html[data-mode="h5"] .year-select__option {
    height: 0.66rem;
    font-size: 0.32rem;
}

/* ============================================================
   3. 列表卡片（Figma 571_180：520 × 415，图 354 + 60px 标题条）
   ------------------------------------------------------------
   图片卡片与视频卡片是两套独立列表，样式分开书写
   ============================================================ */
.exh-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.3rem 0.19rem;
    list-style: none;
}

.exh-grid--video {
    margin-top: 0.3rem;
}

/* ---------- 图片卡片（a 包裹，跳转详情） ---------- */
.exh-card {
    display: block;
    border-radius: 0.1rem;
    overflow: hidden;
    background: #F5F5F5;
    box-shadow: 0 0.02rem 0.08rem rgba(0, 0, 0, 0.06);
    transition:
        transform 0.4s var(--ease-out),
        box-shadow 0.4s ease;
}

.exh-card:hover {
    transform: translateY(-0.06rem);
    box-shadow: 0 0.1rem 0.28rem rgba(3, 82, 141, 0.2);
}

.exh-card__media {
    position: relative;
    display: block;
    aspect-ratio: 520 / 354;
    overflow: hidden;
}

.exh-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.exh-card__bar {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 0.6rem;
    font-size: 0.2rem;
    color: #333333;
    transition: color 0.3s ease;
    width: 5.19rem;
    padding: 0 0.1rem;
}


.exh-card__bar span{
        width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.exh-card:hover .exh-card__media img {
    transform: scale(1.06);
}

.exh-card:hover .exh-card__bar {
    color: #03528D;
}

/* ---------- 视频卡片（fancybox 弹窗播放） ----------
   图片上常驻 20% 压暗（设计稿），悬浮加深；
   播放钮：92px 半透明蓝圆 + 白色三角，悬浮放大 + 外圈扩散 */
.exh-card--video .exh-card__media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.2);
    transition: background-color 0.4s ease;
    pointer-events: none;
}

.exh-card--video .exh-card__play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 0.92rem;
    height: 0.92rem;
    margin: -0.46rem 0 0 -0.46rem;
    display: grid;
    place-items: center;
    transition:
        transform 0.35s var(--ease-out),
        filter 0.35s ease;
}

/* 播放钮整体即设计稿 SVG（外圈 20% 蓝圆 + 内圈 80% 蓝圆 + 白三角） */
.exh-card--video .exh-card__play svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* 外圈扩散环 */
.exh-card--video .exh-card__play::after {
    content: "";
    position: absolute;
    inset: -0.08rem;
    border-radius: 50%;
    border: 0.01rem solid rgba(255, 255, 255, 0.55);
    opacity: 0;
    transform: scale(0.7);
    transition:
        opacity 0.35s var(--ease-out),
        transform 0.35s var(--ease-out);
}

.exh-card--video:hover .exh-card__media::before {
    background: rgba(0, 0, 0, 0.38);
}

.exh-card--video:hover .exh-card__media img {
    transform: scale(1.06);
}

.exh-card--video:hover .exh-card__play {
    transform: scale(1.12);
    filter: drop-shadow(0 0.06rem 0.16rem rgba(3, 82, 141, 0.45));
}

.exh-card--video:hover .exh-card__play::after {
    opacity: 1;
    transform: scale(1);
}

.exh-card--video:hover .exh-card__bar {
    color: #03528D;
}

/* ---------- 入场动画（复用 data-reveal，按列错峰） ----------
   与 case 页一致：delay 加在 li 包裹层，不影响卡片悬浮 transform */
.exh-item[data-reveal] {
    transform: translateY(0.4rem) scale(0.96);
}

.exh-item[data-reveal].is-in-view {
    transform: translateY(0) scale(1);
}

.exh-item:nth-child(3n + 2) {
    transition-delay: 0.12s;
}

.exh-item:nth-child(3n) {
    transition-delay: 0.24s;
}

/* ---------- H5 适配 ---------- */
html[data-mode="h5"] .exh-grid {
    grid-template-columns: 1fr;
    gap: 0.4rem;
}

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

html[data-mode="h5"] .exh-card__bar {
    height: 0.72rem;
    font-size: 0.32rem;
}

html[data-mode="h5"] .exh-card--video .exh-card__play {
    width: 1.1rem;
    height: 1.1rem;
    margin: -0.55rem 0 0 -0.55rem;
}

/* ============================================================
   3. 新闻卡片（Figma 551_1184）
   ------------------------------------------------------------
   大卡（前 2 张，2 列 777×774）与小卡（3 列 500×597）共用一套结构；
   悬浮态（设计稿第 1 张）：蓝底白字 + 分隔线变色 + 圆形箭头钮滑入
   ============================================================ */
.news-grid {
    display: grid;
    list-style: none;
}

.news-grid--large {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.46rem;
}

.news-grid--small {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.47rem 0.46rem;
    margin-top: 0.46rem;
}

.news-card {
    position: relative;
    display: block;
    border-radius: 0.2rem;
    overflow: hidden;
    background: #F5F5F5;
    box-shadow: 0 0.02rem 0.08rem rgba(0, 0, 0, 0.06);
    transition:
        transform 0.4s var(--ease-out),
        box-shadow 0.4s ease,
        background-color 0.4s ease;
}

.news-card__media {
    position: relative;
    display: block;
    aspect-ratio: 777 / 438;
    overflow: hidden;
}

.news-card--small .news-card__media {
    aspect-ratio: 500 / 282;
}

.news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

/* 分类徽标：白色胶囊，浮于图片左上角 */
.news-card__badge {
    position: absolute;
    top: 0.36rem;
    left: 0.4rem;
    display: inline-flex;
    align-items: center;
    height: 0.36rem;
    padding: 0 0.16rem;
    background: #ffffff;
    border-radius: 0.3rem;
    font-size: 0.16rem;
    color: #333333;
}

.news-card__body {
    display: flex;
    flex-direction: column;
    min-height: 3.36rem;
    padding: 0.5rem 0.42rem 0.4rem;
    box-sizing: border-box;
}

.news-card--small .news-card__body {
    min-height: 3.15rem;
    padding: 0.38rem 0.38rem 0.36rem;
}

.news-card__title {
    font-size: 0.24rem;
    font-weight: 600;
    line-height: 1.45;
    color: #333333;
    /* 两行超出显示省略号 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.news-card--small .news-card__title {
    font-size: 0.2rem;
}

.news-card__desc {
    margin-top: 0.2rem;
    font-size: 0.2rem;
    font-weight: 500;
    line-height: 1.4;
    color: #666666;
    /* 两行超出显示省略号 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.news-card--small .news-card__desc {
    margin-top: 0.24rem;
    font-size: 0.16rem;
    font-weight: 400;
}

/* meta 行：分隔线 + 左箭头钮（悬浮滑入）+ 右日期 */
.news-card__meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.26rem;
    border-top: 1px solid #D9D9D9;
    transition: border-color 0.3s ease;
}

.news-card__date {
    font-size: 0.2rem;
    color: #999999;
    transition: color 0.3s ease;
}

.news-card--small .news-card__date {
    font-size: 0.16rem;
}

.news-card__arrow {
    width: 0.46rem;
    height: 0.46rem;
    opacity: 0;
    transform: translateX(-0.12rem);
    transition:
        opacity 0.3s ease,
        transform 0.35s var(--ease-out);
}

.news-card__arrow svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ---------- 悬浮态（设计稿第 1 张大卡） ---------- */
.news-card:hover {
    transform: translateY(-0.06rem);
    box-shadow: 0 0.12rem 0.32rem rgba(3, 82, 141, 0.22);
    background: #03528D;
}

.news-card:hover .news-card__media img {
    transform: scale(1.06);
}

.news-card:hover .news-card__title {
    color: #ffffff;
}

.news-card:hover .news-card__desc {
    color: rgba(255, 255, 255, 0.85);
}

.news-card:hover .news-card__date {
    color: #F5F5F5;
}

.news-card:hover .news-card__meta {
    border-top-color: #025C9F;
}

.news-card:hover .news-card__arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ---------- 入场动画（复用 data-reveal，按列错峰） ---------- */
.news-item[data-reveal] {
    transform: translateY(0.4rem) scale(0.96);
}

.news-item[data-reveal].is-in-view {
    transform: translateY(0) scale(1);
}

.news-grid--large .news-item:nth-child(2) {
    transition-delay: 0.12s;
}

.news-grid--small .news-item:nth-child(3n + 2) {
    transition-delay: 0.12s;
}

.news-grid--small .news-item:nth-child(3n) {
    transition-delay: 0.24s;
}

/* ---------- H5 适配 ---------- */
html[data-mode="h5"] .news-grid--large,
html[data-mode="h5"] .news-grid--small {
    grid-template-columns: 1fr;
    gap: 0.4rem;
}

html[data-mode="h5"] .news-card__badge {
    top: 0.24rem;
    left: 0.24rem;
    height: 0.5rem;
    padding: 0 0.24rem;
    font-size: 0.32rem;
}

html[data-mode="h5"] .news-card__body {
    min-height: 0;
    padding: 0.4rem 0.32rem;
}

html[data-mode="h5"] .news-card__title {
    font-size: 0.32rem;
}

html[data-mode="h5"] .news-card__desc {
    margin-top: 0.2rem;
    font-size: 0.32rem;
}

html[data-mode="h5"] .news-card__date {
    font-size: 0.32rem;
}

html[data-mode="h5"] .news-card__arrow {
    width: 0.6rem;
    height: 0.6rem;
}