﻿/**
 * 新闻资讯门户首页（news/index.html）— trial-layout + 左侧导航
 */
body.news-portal-page .news-portal-main {
	padding-bottom: 48px;
}

body.news-portal-page .trial-right-content .container-inner {
	width: 100%;
	max-width: none;
	margin: 0;
	box-sizing: border-box;
}

/* —— 页头 —— */
body.news-portal-page .news-portal-hero {
	margin: 8px 0 28px;
	padding: 22px 24px;
	border-radius: var(--r-md);
	border: 1px solid var(--c-line);
	background: linear-gradient(145deg, var(--c-bg-soft) 0%, var(--c-bg-card) 55%, var(--c-bg) 100%);
	box-shadow: var(--s-xs);
}

/* —— 主标题 + 小点 + 副标题（单行） —— */
body.news-portal-page .news-portal-heading {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 12px;
	min-width: 0;
	flex: 1 1 auto;
}

@media (min-width: 641px) {
	body.news-portal-page .news-portal-heading {
		flex-wrap: nowrap;
	}
}

body.news-portal-page .news-portal-heading-icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	font-size: 0.9375rem;
	color: var(--c-action);
	background: linear-gradient(145deg, rgba(var(--c-action-rgb), 0.18), rgba(var(--c-action-rgb), 0.06));
	border: 1px solid rgba(var(--c-action-rgb), 0.22);
}

body.news-portal-page .news-portal-heading--hero {
	margin-bottom: 12px;
}

body.news-portal-page .news-portal-heading--hero .news-portal-heading-icon {
	width: 44px;
	height: 44px;
	font-size: 1.1rem;
	border-radius: 12px;
}

body.news-portal-page .news-portal-heading-title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--c-text);
	line-height: 1.3;
	white-space: nowrap;
}

body.news-portal-page .news-portal-heading--hero .news-portal-heading-title {
	font-size: clamp(1.25rem, 2.2vw, 1.5rem);
}

body.news-portal-page .news-portal-heading-sep {
	flex-shrink: 0;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--c-text-3);
	box-shadow: 0 0 0 2px rgba(138, 138, 138, 0.15);
}

body.news-portal-page .news-portal-heading-sub {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.45;
	color: var(--c-text-2);
	min-width: 0;
}

@media (min-width: 641px) {
	body.news-portal-page .news-portal-heading-sub {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}

body.news-portal-page .news-portal-hero-lead {
	margin: 0 0 18px;
	font-size: 0.9375rem;
	line-height: 1.75;
	color: var(--c-text-2);
	max-width: 52rem;
}

body.news-portal-page .news-portal-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* —— 区块标题 —— */
body.news-portal-page .news-portal-section-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	margin-bottom: 16px;
}

body.news-portal-page .news-portal-section-more {
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--c-action);
	text-decoration: none;
	white-space: nowrap;
}

body.news-portal-page .news-portal-section-more:hover {
	color: var(--c-action-hover);
	text-decoration: none;
}

/* —— 今日焦点 —— */
body.news-portal-page .news-portal-featured {
	margin-bottom: 24px;
}

body.news-portal-page .news-portal-featured-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 1.25rem;
	align-items: stretch;
}

@media (max-width: 991px) {
	body.news-portal-page .news-portal-featured-grid {
		grid-template-columns: 1fr;
	}
}

body.news-portal-page .news-portal-spotlight {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: 0;
	border-radius: var(--r-md);
	overflow: hidden;
	border: 1px solid var(--c-line);
	background: var(--c-bg-card);
	box-shadow: var(--s-sm);
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.news-portal-page .news-portal-spotlight:hover {
	transform: translateY(-2px);
	box-shadow: var(--s-md);
	border-color: var(--c-line-strong);
	text-decoration: none;
	color: inherit;
}

body.news-portal-page .news-portal-spotlight-media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 9;
	font-size: 3rem;
	color: rgba(255, 255, 255, 0.92);
	background: linear-gradient(135deg, var(--c-action-hover) 0%, var(--c-action) 45%, var(--trial-accent-deep) 100%);
}

body.news-portal-page .news-portal-spotlight-tag {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 4px 10px;
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	color: #fff;
	background: var(--c-action);
	border-radius: 4px;
}

body.news-portal-page .news-portal-spotlight-title {
	margin: 0;
	padding: 16px 18px 8px;
	font-size: 1.0625rem;
	font-weight: 800;
	line-height: 1.45;
	color: var(--c-text);
}

body.news-portal-page .news-portal-spotlight-excerpt {
	margin: 0;
	padding: 0 18px 18px;
	font-size: 0.8125rem;
	line-height: 1.65;
	color: var(--c-text-2);
}

body.news-portal-page .news-portal-hotlist {
	list-style: none;
	margin: 0;
	padding: 8px;
	border-radius: var(--r-md);
	border: 1px solid var(--c-line);
	background: var(--c-bg-card);
	box-shadow: var(--s-xs);
	display: flex;
	flex-direction: column;
	gap: 4px;
}

body.news-portal-page .news-portal-hotlink {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 10px;
	border-radius: var(--r-sm);
	text-decoration: none;
	color: var(--c-text);
	transition: background 0.15s ease, color 0.15s ease;
}

body.news-portal-page .news-portal-hotlink:hover {
	background: rgba(var(--c-action-rgb), 0.06);
	color: var(--c-action);
	text-decoration: none;
}

body.news-portal-page .news-portal-hotrank {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	font-weight: 800;
	color: var(--c-text-3);
	background: var(--c-bg-soft);
	border-radius: 6px;
}

body.news-portal-page .news-portal-hotlink.is-top .news-portal-hotrank {
	color: #fff;
	background: var(--c-action);
}

body.news-portal-page .news-portal-hottext {
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.5;
}

body.news-portal-page .news-portal-hotlink.is-top .news-portal-hottext {
	font-weight: 800;
	color: var(--c-text);
}

/* —— 主题标签 —— */
body.news-portal-page .news-portal-topics {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}

body.news-portal-page .news-portal-topic {
	padding: 8px 16px;
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--c-text-2);
	text-decoration: none;
	background: var(--c-bg-card);
	border: 1px solid var(--c-line-strong);
	border-radius: 999px;
	transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

body.news-portal-page .news-portal-topic:hover,
body.news-portal-page .news-portal-topic.is-active {
	color: var(--c-action);
	border-color: rgba(var(--c-action-rgb), 0.45);
	box-shadow: var(--s-xs);
	text-decoration: none;
}

body.news-portal-page .news-portal-topic.is-active {
	color: #fff;
	background: var(--c-action);
	border-color: var(--c-action);
}

/* —— 精选卡片 —— */
body.news-portal-page .news-portal-mosaic-section {
	margin-bottom: 28px;
}

body.news-portal-page .news-portal-mosaic {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

@media (max-width: 1199px) {
	body.news-portal-page .news-portal-mosaic {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	body.news-portal-page .news-portal-mosaic {
		grid-template-columns: 1fr;
	}
}

body.news-portal-page .news-portal-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: var(--r-md);
	overflow: hidden;
	border: 1px solid var(--c-line);
	background: var(--c-bg-card);
	box-shadow: var(--s-xs);
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.news-portal-page .news-portal-tile:hover {
	transform: translateY(-3px);
	box-shadow: var(--s-md);
	border-color: var(--c-line-strong);
	text-decoration: none;
	color: inherit;
}

body.news-portal-page .news-portal-tile-media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 10;
	font-size: 2rem;
	color: rgba(255, 255, 255, 0.9);
}

body.news-portal-page .news-portal-tile-media--idc {
	background: linear-gradient(135deg, var(--c-action-hover), var(--c-action));
}

body.news-portal-page .news-portal-tile-media--net {
	background: linear-gradient(135deg, #0f766e, #14b8a6);
}

body.news-portal-page .news-portal-tile-media--sec {
	background: linear-gradient(135deg, #b45309, #f59e0b);
}

body.news-portal-page .news-portal-tile-media--cdn {
	background: linear-gradient(135deg, #6d28d9, #a78bfa);
}

body.news-portal-page .news-portal-tile-media--law {
	background: linear-gradient(135deg, #475569, #94a3b8);
}

body.news-portal-page .news-portal-tile-media--ship {
	background: linear-gradient(135deg, #0369a1, #38bdf8);
}

body.news-portal-page .news-portal-tile-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 4px 10px;
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: #fff;
	border-radius: 4px;
	z-index: 1;
}

body.news-portal-page .news-portal-tile-badge--hot {
	background: linear-gradient(135deg, #dc2626, #f87171);
}

body.news-portal-page .news-portal-tile-badge--new {
	background: linear-gradient(135deg, var(--c-action-hover), #fdba74);
}

body.news-portal-page .news-portal-tile-badge--deep {
	background: linear-gradient(135deg, #c2410c, #fb923c);
}

body.news-portal-page .news-portal-tile-title {
	margin: 0;
	padding: 14px 16px 6px;
	font-size: 0.9375rem;
	font-weight: 800;
	line-height: 1.45;
	color: var(--c-text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

body.news-portal-page .news-portal-tile-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 0 16px 14px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--c-text-2);
}

body.news-portal-page .news-portal-tile-meta span:first-child {
	color: var(--c-text);
	font-weight: 700;
}

body.news-portal-page .news-portal-tile-meta span:last-child {
	color: var(--c-text-3);
	font-variant-numeric: tabular-nums;
}

/* —— 分栏 CTA —— */
body.news-portal-page .news-portal-split-band {
	margin-bottom: 28px;
}

body.news-portal-page .news-portal-split-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: 1.25rem;
	align-items: stretch;
}

@media (max-width: 767px) {
	body.news-portal-page .news-portal-split-grid {
		grid-template-columns: 1fr;
	}
}

body.news-portal-page .news-portal-split-card {
	border-radius: var(--r-md);
	padding: 24px 26px;
	box-sizing: border-box;
	min-height: 100%;
	display: flex;
	flex-direction: column;
}

body.news-portal-page .news-portal-split-card--accent {
	background: linear-gradient(135deg, var(--c-action-hover) 0%, var(--c-action) 42%, var(--trial-accent-deep) 100%);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 12px 36px rgba(29, 78, 216, 0.28);
}

body.news-portal-page .news-portal-split-card--plain {
	background: var(--c-bg-card);
	border: 1px solid var(--c-line-strong);
	box-shadow: var(--s-xs);
}

body.news-portal-page .news-portal-split-title {
	margin: 0 0 12px;
	font-size: 1.1875rem;
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.01em;
}

body.news-portal-page .news-portal-split-lead {
	margin: 0 0 20px;
	font-size: 0.9375rem;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.9);
	max-width: 36rem;
}

body.news-portal-page .news-portal-split-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

body.news-portal-page .news-portal-mini-title {
	margin: 0 0 16px;
	padding-bottom: 12px;
	font-size: 1.0625rem;
	font-weight: 800;
	color: var(--c-text);
	border-bottom: 1px solid var(--c-line);
	letter-spacing: -0.01em;
}

body.news-portal-page .news-portal-quick-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

body.news-portal-page .news-portal-quick-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 14px;
	border-radius: var(--r-sm);
	text-decoration: none;
	color: var(--c-text);
	background: var(--c-bg-soft);
	border: 1px solid var(--c-line);
	transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

body.news-portal-page .news-portal-quick-link:hover {
	color: var(--c-action);
	background: rgba(var(--c-action-rgb), 0.08);
	border-color: rgba(var(--c-action-rgb), 0.35);
	box-shadow: var(--s-xs);
	text-decoration: none;
}

body.news-portal-page .news-portal-quick-link-icon {
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	font-size: 0.875rem;
	color: var(--c-action);
	background: rgba(var(--c-action-rgb), 0.12);
	border: 1px solid rgba(var(--c-action-rgb), 0.2);
}

body.news-portal-page .news-portal-quick-link-text {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.45;
}

body.news-portal-page .news-portal-quick-link-arrow {
	flex-shrink: 0;
	font-size: 0.8125rem;
	color: var(--c-text-3);
	transition: color 0.15s ease, transform 0.15s ease;
}

body.news-portal-page .news-portal-quick-link:hover .news-portal-quick-link-arrow {
	color: var(--c-action);
	transform: translateX(2px);
}

/* —— 资料下载（对接 download.lekuidc.com 编程开发） —— */
body.news-portal-page .news-portal-downloads {
	margin-bottom: 24px;
	padding-top: 8px;
	border-top: 1px solid var(--c-line);
}

body.news-portal-page .news-portal-res-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

@media (min-width: 1200px) {
	body.news-portal-page .news-portal-res-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	body.news-portal-page .news-portal-res-grid {
		grid-template-columns: 1fr;
	}
}

body.news-portal-page .news-portal-res-card {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 16px 18px;
	border-radius: var(--r-md);
	background: var(--c-bg-card);
	border: 1px solid var(--c-line);
	box-shadow: var(--s-xs);
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.news-portal-page .news-portal-res-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--s-md);
	border-color: var(--c-line-strong);
	text-decoration: none;
	color: inherit;
}

body.news-portal-page .news-portal-res-thumb {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	overflow: hidden;
	background: var(--c-bg-soft);
	border: 1px solid var(--c-line);
}

body.news-portal-page .news-portal-res-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

body.news-portal-page .news-portal-res-body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

body.news-portal-page .news-portal-res-name {
	font-size: 0.9375rem;
	font-weight: 800;
	line-height: 1.35;
	color: var(--c-text);
}

body.news-portal-page .news-portal-res-desc {
	font-size: 0.8125rem;
	line-height: 1.6;
	color: var(--c-text-2);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

body.news-portal-page .news-portal-res-go {
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	border-radius: 8px;
	font-size: 0.875rem;
	color: var(--c-action);
	background: rgba(var(--c-action-rgb), 0.1);
	border: 1px solid rgba(var(--c-action-rgb), 0.22);
	transition: background 0.15s ease, color 0.15s ease;
}

body.news-portal-page .news-portal-res-card:hover .news-portal-res-go {
	color: #fff;
	background: var(--c-action);
	border-color: var(--c-action);
}

/* —— 底栏 CTA —— */
body.news-portal-page .news-portal-bottom-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 22px;
	border-radius: var(--r-md);
	border: 1px solid rgba(var(--c-action-rgb), 0.22);
	background: linear-gradient(135deg, rgba(var(--c-action-rgb), 0.1), rgba(var(--c-action-rgb), 0.04));
}

body.news-portal-page .news-portal-bottom-cta p {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--c-text);
	line-height: 1.55;
}

/* —— 按钮 —— */
body.news-portal-page .news-portal-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: var(--r-sm);
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
	border: 1px solid transparent;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

body.news-portal-page .news-portal-btn--primary {
	color: #fff;
	background: var(--c-action);
	border-color: var(--c-action);
	box-shadow: 0 2px 12px rgba(var(--c-action-rgb), 0.28);
}

body.news-portal-page .news-portal-btn--primary:hover {
	color: #fff;
	background: var(--c-action-hover);
	border-color: var(--c-action-hover);
	text-decoration: none;
}

body.news-portal-page .news-portal-btn--ghost {
	color: var(--c-text);
	background: var(--c-bg-card);
	border-color: var(--c-line-strong);
}

body.news-portal-page .news-portal-btn--ghost:hover {
	color: var(--c-action);
	border-color: rgba(var(--c-action-rgb), 0.45);
	text-decoration: none;
}

body.news-portal-page .news-portal-btn--light {
	color: #1e3a8a;
	background: #fff;
	border-color: rgba(255, 255, 255, 0.9);
}

body.news-portal-page .news-portal-btn--light:hover {
	color: var(--c-action-hover);
	background: #fff7ed;
	text-decoration: none;
}

body.news-portal-page .news-portal-btn--outline-light {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.75);
}

body.news-portal-page .news-portal-btn--outline-light:hover {
	background: rgba(255, 255, 255, 0.18);
	border-color: #fff;
	color: #fff;
	text-decoration: none;
}

/* —— 深色模式：提升正文与辅助字对比度 —— */
html.io-dark-mode body.news-portal-page .news-portal-heading-title {
	color: #f1f5f9;
}

html.io-dark-mode body.news-portal-page .news-portal-heading-sub,
html.io-dark-mode body.news-portal-page .news-portal-hero-lead,
html.io-dark-mode body.news-portal-page .news-portal-spotlight-excerpt,
html.io-dark-mode body.news-portal-page .news-portal-res-desc {
	color: #b9cbe2;
}

html.io-dark-mode body.news-portal-page .news-portal-heading-sep {
	background: #8fa8c8;
	box-shadow: 0 0 0 2px rgba(143, 168, 200, 0.2);
}

html.io-dark-mode body.news-portal-page .news-portal-tile-meta span:last-child,
html.io-dark-mode body.news-portal-page .news-portal-quick-link-arrow {
	color: #8fa8c8;
}

html.io-dark-mode body.news-portal-page .news-portal-tile-meta span:first-child,
html.io-dark-mode body.news-portal-page .news-portal-quick-link-text,
html.io-dark-mode body.news-portal-page .news-portal-hottext {
	color: #eef4fc;
}

html.io-dark-mode body.news-portal-page .news-portal-quick-link {
	color: #eef4fc;
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(185, 203, 226, 0.18);
}

html.io-dark-mode body.news-portal-page .news-portal-quick-link:hover {
	color: #fed7aa;
	background: rgba(var(--c-action-rgb), 0.14);
	border-color: rgba(96, 165, 250, 0.45);
}

html.io-dark-mode body.news-portal-page .news-portal-quick-link-icon {
	color: #fed7aa;
	background: rgba(var(--c-action-rgb), 0.18);
	border-color: rgba(96, 165, 250, 0.35);
}

html.io-dark-mode body.news-portal-page .news-portal-split-card--plain {
	background: rgba(255, 255, 255, 0.03);
	border-color: rgba(185, 203, 226, 0.16);
}

html.io-dark-mode body.news-portal-page .news-portal-mini-title {
	color: #f1f5f9;
	border-bottom-color: rgba(185, 203, 226, 0.16);
}

html.io-dark-mode body.news-portal-page .news-portal-split-lead {
	color: rgba(255, 255, 255, 0.92);
}

html.io-dark-mode body.news-portal-page .news-portal-bottom-cta p {
	color: #eef4fc;
}

html.io-dark-mode body.news-portal-page .news-portal-hero {
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, var(--c-bg-card) 100%);
}

html.io-dark-mode body.news-portal-page .news-portal-hotlist,
html.io-dark-mode body.news-portal-page .news-portal-tile,
html.io-dark-mode body.news-portal-page .news-portal-res-card {
	border-color: rgba(185, 203, 226, 0.14);
}

html.io-dark-mode body.news-portal-page .news-portal-res-name {
	color: #eef4fc;
}

html.io-dark-mode body.news-portal-page .news-portal-bottom-cta {
	border-color: rgba(96, 165, 250, 0.25);
}
