/* ============================================================
   新闻列表页 专属样式 (news.css)
   黑底容器 + 白色卡片（设计稿：卡片底 #FFFFFF，标题 #141414，
   正文摘要 #3D3D3D，日期/浏览量 #141414 + MiSans 数字）
   ============================================================ */

/* ---------- Tab 切换条（绝对定位于 banner 底部） ---------- */
.news-tabs {
    display: flex;
    justify-content: center;
    gap: clamp(40px, 5vw, 150px);
    padding: 0 24px clamp(28px, 3vw, 44px);
}
.news-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: clamp(40px, 4vw, 46px);
    padding: 0 24px;
    border-radius: 50px;
    background: var(--c-white);
    color: var(--c-dark);
    font-size: var(--fs-body-sm-20);
    font-weight: 400;
    text-decoration: none;
    text-align: center;
    transition: background .3s, color .3s, opacity .3s;
}
.news-tab.is-active {
    background: var(--c-white);
    color: var(--c-dark);
    font-weight: 500;
}
.news-tab:not(.is-active) {
    background: var(--c-white);
    color: var(--c-dark);
    font-weight: 500;
}
.news-tab:not(.is-active):hover { background: var(--c-white); }

/* ---------- 头部：标题 + 搜索框 ---------- */
.news-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: clamp(20px, 2.5vw, 36px);
    border-bottom: 1px solid rgba(255, 255, 255, .15);
    margin-bottom: clamp(28px, 3vw, 48px);
}
.news-search {
    position: relative;
    width: clamp(220px, 24vw, 400px);
    max-width: 100%;
}
.news-search input {
    width: 100%;
    height: clamp(42px, 4vw, 50px);
    border-radius: 50px;
    border: none;
    background: #F4F4F4;
    padding: 0 56px 0 24px;
    font-size: var(--fs-caption-16);
    color: #3D3D3D;
    outline: none;
}
.news-search input::placeholder { color: #999; }
.news-search__icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(22px, 1.8vw, 30px);
    height: clamp(22px, 1.8vw, 30px);
    cursor: pointer;
}

/* ---------- 公共元信息（日期/浏览量）---------- */
.news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(24px, 3vw, 48px);
    color: #141414;
}
.news-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-family: var(--font-num);
    font-weight: 500;
}
.news-meta__item img { width: clamp(18px, 1.4vw, 24px); height: clamp(18px, 1.4vw, 24px); }


/* ---------- 置顶新闻轮播（水平方向） ---------- */
.news-sliders {
    position: relative;
}
.news-sliders__viewport {
    overflow: hidden;
}
.news-sliders__track {
    display: flex;
    transition: transform .6s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}
/* 轮播 slide：固定高度 560px */
.news-sliders__slide {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
    height: 560px;
}
.news-sliders__slide .news-feature {
    height: 100%;
}
.news-sliders__slide .news-feature__img,
.news-sliders__slide .news-feature__img img {
    height: 100%;
}
/* 轮播内卡片：去掉 hover 上移，仅保留阴影反馈 */
.news-sliders__slide.card-hover:hover {
    transform: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

/* 小屏（< lg）：只显示封面图，隐藏文字区 */
@media (max-width: 1023px) {
    .news-sliders__slide { height: auto; }
    .news-sliders__slide .news-feature__body { display: none; }
}

/* 圆点指示器 */
.news-sliders__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: clamp(16px, 2vw, 24px);
}
.news-sliders__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .35);
    cursor: pointer;
    padding: 0;
    transition: width .3s, background .3s;
}
.news-sliders__dot.is-active {
    width: 28px;
    border-radius: 5px;
    background: #fff;
}
/* ---------- 置顶新闻（大图横向卡）---------- */
.news-feature {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    background: var(--c-white);
}
/* lg 及以上：两栏（左文右图），左侧文字固定宽度，右侧图片占满剩余空间 */
@media (min-width: 1024px) {
    .news-feature { grid-template-columns: minmax(0, 620px) minmax(0, 1fr); }
}
.news-feature__body {
    padding: clamp(24px, 3vw, 44px) clamp(28px, 3.5vw, 56px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.news-feature__title {
    font-size: var(--fs-h5);
    font-weight: 700;
    line-height: 1.45;
    color: #141414;
}
.news-feature__desc {
    margin-top: clamp(16px, 1.8vw, 28px);
    font-size: var(--fs-body-sm-20);
    line-height: 2;
    color: #3D3D3D;
    font-weight: 400;
}
.news-feature__desc + .news-meta { margin-top: clamp(18px, 2vw, 28px); }
.news-feature__img { overflow: hidden; }
.news-feature__img img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    transition: transform .6s ease;
}
.news-feature:hover .news-feature__img img { transform: scale(1.05); }

/* 了解更多按钮（文字+箭头，黑/灰描边） */
.news-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: clamp(22px, 2.4vw, 36px);
    align-self: flex-start;
    min-width: clamp(130px, 9vw, 160px);
    height: clamp(40px, 3.2vw, 45px);
    padding: 0 22px;
    border-radius: 50px;
    border: 1px solid #666;
    font-size: var(--fs-body-sm-20);
    color: #666;
    transition: background .3s, color .3s, border-color .3s;
}
.news-more::after {
    content: "";
    width: 16px; height: 8px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 8'><path d='M12 1l3 3-3 3M15 4H0' stroke='black' stroke-width='1.5' fill='none'/></svg>") center/contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 8'><path d='M12 1l3 3-3 3M15 4H0' stroke='black' stroke-width='1.5' fill='none'/></svg>") center/contain no-repeat;
}
.news-more:hover { background: #141414; color: #fff; border-color: #141414; }

/* ---------- 新闻卡片（图上文下，白底）---------- */
.news-card {
    display: flex;
    flex-direction: column;
    background: var(--c-white);
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}
.news-card__img { overflow: hidden; }
.news-card__img img {
    width: 100%;
    height: clamp(220px, 26vw, 340px);
    object-fit: cover;
    transition: transform .6s ease;
}
.news-card:hover .news-card__img img { transform: scale(1.06); }
.news-card__body {
    padding: clamp(20px, 2vw, 30px) clamp(22px, 2.4vw, 42px);
    display: flex;
    flex-direction: column;
    flex: 1;
}
.news-card__title {
    font-size: var(--fs-body);
    font-weight: 500;
    line-height: 1.4;
    color: #141414;
    /* 标题最多两行 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card__desc {
    margin-top: clamp(12px, 1.4vw, 18px);
    font-size: var(--fs-body-sm);
    line-height: 2;
    color: #3D3D3D;
    font-weight: 300;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card__body .news-meta { margin-top: auto; padding-top: clamp(16px, 1.8vw, 24px); }

/* ---------- 案例卡片（透明背景，融入黑底页面） ---------- */
.case-card {
    display: block;
    background: transparent;
    overflow: hidden;
}
.case-card__img { overflow: hidden; }
.case-card__img img {
    width: 100%;
    height: clamp(260px, 30vw, 460px);
    object-fit: cover;
    transition: transform .6s ease;
}
.case-card:hover .case-card__img img { transform: scale(1.05); }
.case-card__body {
    padding: clamp(16px, 1.6vw, 24px) clamp(18px, 1.8vw, 28px) clamp(18px, 2vw, 30px);
}
.case-card__title {
    font-size: 28px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--c-white);
    margin-bottom: clamp(10px, 1vw, 14px);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.case-card__loc {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    color: var(--c-white);
}
.case-card__loc img { width: clamp(18px, 1.4vw, 25px); height: clamp(18px, 1.4vw, 25px); }

/* ---------- 翻页 ---------- */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(16px, 2vw, 32px);
    margin-top: clamp(48px, 5vw, 80px);
    font-family: var(--font-num);
}
.news-page,
.news-page__arrow,
.news-page__ellipsis {
    font-size: var(--fs-h5);
    font-weight: 400;
    color: var(--c-white);
    line-height: 1;
    transition: color .25s;
}
.news-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
}
.news-page.is-active {
    background: #F2554E;
    color: var(--c-white);
}
.news-page:not(.is-active):hover,
.news-page__arrow:hover { color: #F2554E; }
.news-page__arrow { font-size: var(--fs-h4-36); padding: 0 4px; }
.news-page__ellipsis { cursor: default; }

@media (max-width: 768px) {
    .news-tabs { gap: 24px; }
    .news-pagination { gap: 12px; }
}
