/**
 * 新闻中心 — 原型 1920×3479 实现
 * Banner：1920×700 呼吸缩放背景 + 深灰文字（标题 50/700、描述 26/400，#333333）+ 面包屑贴底
 * 列表：1628px 整宽卡片（左图 625 + 日期_分类 18px / 标题 24px / 摘要 20px / 蓝色圆形箭头 44px）
 * 分页：36px 圆形箭头 + 24px 页码（当前页 #2A6BB5）
 *
 * 缩放方案（参照 page-party.css 画布等比，同招贤纳士页）：PC 段（≥768）所有承重尺寸 =
 * calc(N × var(--u))，--u = 100vw/1920（main.css .nyocor-u-page 挂在 main 上）；
 * 浏览器 Ctrl+滚轮缩放时整页等比缩放，版式不变形。≤767 断点接管为堆叠布局 + 固定字号。
 */

/* === 页面基础 === */
.page-news-center {
	padding-top: 0;
	padding-bottom: 0;
	clear: both;
	overflow: visible;
	position: relative;
	z-index: 1;
}

/* ============================================
   Banner（原型 Group 209 / 67 / 210）
   容器高度分档 / 内容块几何 / 标题字号全站统一，由 main.css .nyocor-page-hero 控制
   （本页即全站基准页）；本文件仅保留背景层与深灰配色差异
   ============================================ */
.news-hero {
	/* 高度/布局由 .nyocor-page-hero 提供 */
}

/* 背景层：呼吸缩放（与关于我们页 aboutHeroBreath 同节奏），父级 overflow:hidden 裁切 */
.news-hero__bg {
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	animation: newsHeroBreath 12s ease-in-out infinite;
	will-change: transform;
}

@keyframes newsHeroBreath {
	0%   { transform: scale(1); }
	50%  { transform: scale(1.06); }
	100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
	.news-hero__bg {
		animation: none;
	}
}

/* 标题/描述字号与分档由 .nyocor-hero-title / .nyocor-hero-subtitle 提供，此处仅配色 */
.news-hero__title,
.news-hero__desc {
	color: #333333;
}

.news-hero__desc {
	max-width: calc(736 * var(--u));
}

/* 面包屑：margin auto 钉到内容块底部（与 about-hero-content .breadcrumb 同款），
   复用全站 .breadcrumb 样式（#333 深灰即本页默认色，无需覆盖） */
.news-hero__content .breadcrumb {
	margin: auto 0 0;
}

/* ============================================
   新闻列表（原型 Rectangle 46 / Group 211-214）
   PC 段全部 calc × --u 等比，无中间断点；≤767 堆叠 + 固定字号
   ============================================ */
.news-list-section {
	width: 100%;
	background: #FFFFFF;
	padding: calc(92 * var(--u)) 0 calc(100 * var(--u));
}

.news-list-inner {
	width: calc(1628 * var(--u));
	margin: 0 auto;
	padding: 0 calc(40 * var(--u));
	box-sizing: border-box;
}

.news-card-list {
	display: flex;
	flex-direction: column;
	gap: calc(40 * var(--u));
	transition: opacity 0.2s ease;
}

.news-card-list.is-loading {
	opacity: 0.5;
	pointer-events: none;
}

/* ---- 卡片：1628×409，左图 625，右侧文字区 ----
   卡片本身是 data-reveal 元素（transform 被划入动画占用），
   hover 上浮放在内层 .news-card__link 上，避免与动画的 transform 冲突 */
.news-card {
	background: #F9F9F9;
	transition: box-shadow 0.25s ease;
}

.news-card:hover {
	box-shadow: 0 16px 40px rgba(11, 65, 137, 0.10);
}

.news-card__link {
	display: flex;
	align-items: stretch;
	height: calc(409 * var(--u));
	text-decoration: none;
	color: inherit;
	transition: transform 0.25s ease;
}

.news-card:hover .news-card__link {
	transform: translateY(-4px);
}

/* 链接任何状态下都无下划线 */
.news-card__link:hover,
.news-card__link:focus,
.news-card__link:visited {
	text-decoration: none;
}

/* 左图 625px（原型 Rectangle 47）—— 等比缩放 */
.news-card__media {
	flex: 0 0 calc(625 * var(--u));
	overflow: hidden;
}

.news-card__image {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: transform 0.4s ease;
}

.news-card:hover .news-card__image {
	transform: scale(1.04);
}

/* 无图兜底：默认底图（风场）+ 居中题字「新闻资讯」+ 装饰搜索胶囊
   （采购公告 banner 同款：深灰粗体题字 + 白描边圆角搜索条，仅装饰无功能） */
.news-card__image--default {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: calc(26 * var(--u));
}

.news-card__image--default img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news-card__default-title {
	position: relative;
	z-index: 1;
	font-family: var(--font);
	font-size: max(24px, calc(62 * var(--u)));
	font-weight: 500;
	letter-spacing: 0.04em;
	color: #3B3B3B;
	transform: translateY(calc(-10 * var(--u)));
}

.news-card__default-search {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	width: calc(360 * var(--u));
	height: calc(52 * var(--u));
	box-sizing: border-box;
	/* 边框半透明黑：比纯黑柔和，亮背景上不显生硬 */
	border: max(1px, calc(3 * var(--u))) solid rgba(0, 0, 0, 0.4);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.32);
}

.news-card__default-search-icon {
	position: absolute;
	left: calc(30 * var(--u));
	width: max(14px, calc(26 * var(--u)));
	height: max(14px, calc(26 * var(--u)));
	color: #2F2F2F;
}

.news-card__default-search-text {
	margin: 0 auto;
	font-family: var(--font);
	font-size: max(13px, calc(26 * var(--u)));
	font-weight: 500;
	color: #2F2F2F;
}

/* 右侧文字区（原型 x 881 起） */
.news-card__body {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	padding: calc(62 * var(--u)) calc(90 * var(--u)) calc(62 * var(--u)) calc(66 * var(--u));
	display: flex;
	flex-direction: column;
}

/* 日期_分类（原型 18px #797979） */
.news-card__meta {
	display: flex;
	align-items: center;
	gap: calc(8 * var(--u));
	font-size: max(13px, calc(18 * var(--u)));
	line-height: 1.45;
	font-weight: 500;
	color: #797979;
}

.news-card__sep {
	margin: 0 2px;
}

/* 置顶徽章：前端隐藏（排序仍置顶优先，仅不显示标记） */

/* 标题（原型 24px #1D1D1D，距日期 16px）；悬浮标题变蓝（仅标题自身触发，2026-09）
   两行省略：标题完整输出（利于 SEO/读屏），超出两行由 line-clamp 截断并显示省略号 */
.news-card__title {
	font-size: max(15px, calc(24 * var(--u)));
	line-height: 1.45;
	font-weight: 500;
	color: #1D1D1D;
	transition: color 0.2s ease;
	margin: calc(16 * var(--u)) 0 0;
	padding: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.news-card__title:hover {
	color: #2A6BB5;
}

/* 摘要（原型 20px/30px #797979，两行 875×60） */
.news-card__excerpt {
	font-size: max(13px, calc(20 * var(--u)));
	line-height: 1.5;
	color: #797979;
	max-width: calc(875 * var(--u));
	margin: calc(30 * var(--u)) 0 0;
	padding: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* 蓝色圆形箭头（原型 Ellipse 1 44px #2A6BB5，距卡底约 62px）；文字区无悬浮填充 */
.news-card__arrow {
	position: absolute;
	left: calc(66 * var(--u));
	bottom: calc(56 * var(--u));
	width: max(30px, calc(40 * var(--u)));
	height: max(30px, calc(40 * var(--u)));
	border: 1.5px solid #2A6BB5; /* 描边对齐采购列表卡片箭头 */
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #2A6BB5;
}

/* 箭头 svg 尺寸由 main.css 全站圆标类（svg 规则）统一提供 */

/* ============================================
   分页（原型「翻页」：36px 圆形箭头 + 24px 页码）
   ============================================ */
.news-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: max(18px, calc(34 * var(--u)));
	margin-top: max(28px, calc(80 * var(--u)));
}

.news-pagination__arrow {
	width: max(32px, calc(44 * var(--u)));
	height: max(32px, calc(44 * var(--u)));
	border: 1.5px solid #9D9D9D; /* 描边对齐采购列表分页 */
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #9D9D9D;
	background: transparent;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.news-pagination__arrow svg {
	width: max(14px, calc(20 * var(--u)));
	height: max(14px, calc(20 * var(--u)));
}

.news-pagination__arrow:not(.is-disabled):hover {
	border-color: #2A6BB5;
	color: #2A6BB5;
}

.news-pagination__arrow.is-disabled {
	opacity: 0.45;
	cursor: default;
}

.news-pagination__pages {
	display: flex;
	align-items: center;
	gap: max(18px, calc(34 * var(--u)));
}

.news-pagination__num {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: max(18px, calc(14 * var(--u)));
	height: max(32px, calc(36 * var(--u)));
	font-size: max(15px, calc(24 * var(--u)));
	line-height: 1.5;
	color: #000000;
	text-decoration: none;
	transition: color 0.2s ease;
}

.news-pagination__num:hover {
	color: #2A6BB5;
}

.news-pagination__num.is-current {
	color: #2A6BB5;
	cursor: default;
}

/* 省略号（窗口化分页的间隔标记） */
.news-pagination__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: max(18px, calc(14 * var(--u)));
	height: max(32px, calc(36 * var(--u)));
	font-size: max(15px, calc(24 * var(--u)));
	color: #000000;
}

/* === 空状态 === */
.news-empty {
	text-align: center;
	padding: 100px 20px;
}

.news-empty p {
	color: #797979;
	font-size: 18px;
}

/* ============================================
   响应式（PC 段 ≥768 全程等比无断点；≤767 堆叠 + 固定字号）
   ============================================ */
@media (max-width: 991px) {
	/* 分页触屏点击域兜底：PC 等比在此档过小，回固定 px（≤767 沿用） */
	.news-pagination__arrow {
		width: 32px;
		height: 32px;
	}

	.news-pagination__num {
		font-size: 18px;
		height: 32px;
		min-width: 18px;
	}
}

@media (max-width: 767px) {
	/* Hero 面包屑字号由 main.css .nyocor-hero-content .breadcrumb 统一控制 */

	.news-list-section {
		padding: 44px 0 56px;
	}

	.news-list-inner {
		width: auto;
		max-width: 100%;
		margin: 0;
		padding: 0 20px;
	}

	.news-card-list {
		gap: 24px;
	}

	/* 卡片保持左图右文（2026-10 按需求移动端不再堆叠）：左缩略图 128px，
	   右文字区高度自适应，箭头改右缘垂直居中（原左下角会与两行摘要重叠） */
	.news-card__link {
		height: auto;
		min-height: 140px;
	}

	.news-card__media {
		flex: 0 0 128px;
		min-height: 140px;
	}

	.news-card__body {
		padding: 12px 52px 12px 16px;
	}

	.news-card__title {
		margin-top: 4px;
	}

	.news-card__excerpt {
		margin-top: 6px;
	}

	/* 字号兜底：PC 段 calc 无下限（等价旧 clamp 下限） */
	.news-card__meta {
		font-size: 13px;
	}

	.news-card__title {
		font-size: 16px;
	}

	.news-card__excerpt {
		font-size: 13px;
	}

	.news-card__arrow {
		left: auto;
		bottom: auto;
		right: 14px;
		top: 50%;
		transform: translateY(-50%);
		width: 32px;
		height: 32px;
	}

	.news-card__arrow svg {
		width: 16px;
		height: 16px;
	}

	/* 无图兜底卡（题字+搜索胶囊）：--u 等比在窄屏过小，回固定 px */
	.news-card__default-title {
		font-size: 15px;
		transform: none;
	}

	.news-card__default-search {
		width: 72%;
		height: 24px;
		margin-top: 6px;
		gap: 0;
	}

	.news-card__default-search-icon {
		left: 8px;
		width: 11px;
		height: 11px;
	}

	.news-card__default-search-text {
		font-size: 10px;
	}

	/* 分页：页码多时允许换行、间距收紧 */
	.news-pagination {
		gap: 16px;
		margin-top: 48px;
		flex-wrap: wrap;
	}

	.news-pagination__pages {
		gap: 16px;
	}
}
