/**
 * mod_homeblocks — 首页内容块样式
 * 配色对齐站点：主蓝 #006599，标题 #333，正文 #666，弱文本 #999，分隔线 #eee
 * 注意：站点 body font-size 为 10px，本文件所有字号均显式声明 px
 */

.hblk {
	margin-bottom: 20px;
	font-size: 14px;
	line-height: 1.6;
	color: #666;
}

/* 同一模块内的多个区块依次排列，最后一个不留底部间距 */
.hblk-home > .hblk:last-child {
	margin-bottom: 0;
}

/* ---------- 居中标题头 ---------- */
.hblk-head {
	text-align: center;
	margin-bottom: 18px;
}

.hblk-title {
	margin: 0 0 8px;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.3;
	color: #444;
	letter-spacing: 1px;
}

.hblk-subtitle {
	margin: 0;
	font-size: 13px;
	color: #999;
	text-align: center;
}

/* ---------- 通用卡片 ---------- */
.hblk-card {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 8px;
	background-color: #2f4b5c;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	text-decoration: none;
	transition: filter .25s ease;
}

.hblk-card:hover {
	filter: brightness(1.08);
	text-decoration: none;
}

.hblk-card.no-img {
	background-image: linear-gradient(135deg, #0b6f9e 0%, #0a4a6b 55%, #08344c 100%);
}

.hblk-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.34) 34%, rgba(0,0,0,0) 62%);
	pointer-events: none;
	transition: opacity .3s ease;
}

.hblk-badges {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 3;
	display: flex;
	gap: 6px;
	transition: opacity .3s ease;
}

.hblk-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 3px;
	font-style: normal;
	font-size: 12px;
	line-height: 1.5;
	font-weight: 700;
}

.hblk-badge-top {
	background: #f3912e;
	color: #fff;
}

.hblk-badge-vip {
	background: #f7b500;
	color: #423000;
}

/* 推荐角标：中性标识，无付费含义，用站点主蓝 */
.hblk-badge-reco {
	background: #006599;
	color: #fff;
}

.hblk-badge-abs {
	position: absolute;
	top: 6px;
	left: 6px;
	z-index: 2;
}

.hblk-play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin: -26px 0 0 -26px;
	border: 2px solid rgba(255,255,255,.9);
	border-radius: 50%;
	background: rgba(0,0,0,.32);
	color: #fff;
	pointer-events: none;
}

.hblk-play-sm {
	width: 36px;
	height: 36px;
	margin: -18px 0 0 -18px;
	border-width: 1px;
}

.hblk-play svg {
	margin-left: 3px;
}

.hblk-card-body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	transition: opacity .3s ease;
}

.hblk-cat {
	display: inline-flex;
	align-items: center;
	font-size: 12px;
	font-style: normal;
	color: rgba(255,255,255,.92);
	line-height: 1.4;
}

.hblk-cat i {
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 6px;
	border-radius: 50%;
	background: #2ea7d8;
	flex: 0 0 auto;
}

.hblk-card-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	color: #fff;
	font-weight: 700;
	line-height: 1.45;
}

.hblk-card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	font-size: 12px;
	color: rgba(255,255,255,.72);
}

.hblk-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.hblk-meta-item i {
	font-style: normal;
}

/* ---------- 幻灯网格 bento ---------- */
.hblk-grid {
	display: grid;
	grid-template-columns: 2fr 1.05fr 1.05fr;
	grid-auto-rows: 1fr;
	gap: 10px;
	height: 470px;
}

.hblk-card-lg {
	grid-row: 1 / -1;
}

.hblk-card-lg .hblk-card-body {
	padding: 18px 20px;
	gap: 8px;
}

.hblk-card-lg .hblk-card-title {
	font-size: 20px;
}

.hblk-card-lg .hblk-cat {
	font-size: 13px;
}

.hblk-card-lg .hblk-card-meta {
	font-size: 13px;
}

.hblk-grid-side {
	grid-column: 2 / 4;
	grid-row: 1 / -1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 10px;
	min-width: 0;
}

.hblk-card-sm .hblk-card-title {
	font-size: 14px;
}

.hblk-card-sm .hblk-card-body {
	padding: 10px 12px;
	gap: 4px;
}

/* ---------- 幻灯网格：左侧幻灯片 ---------- */
.hblk-slides {
	position: relative;
	grid-column: 1 / 2;
	grid-row: 1 / -1;
	overflow: hidden;
	border-radius: 8px;
	background: #2f4b5c;
}

/* 右侧无小卡时，幻灯片占满整行 */
.hblk-grid-noside .hblk-slides {
	grid-column: 1 / -1;
}

.hblk-slide {
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: 0;
}

/* 多张幻灯片轮播：未轮到的那几张不可见也不接收鼠标，避免悬停命中到隐藏的那张 */
.hblk-slide-anim {
	opacity: 0;
	visibility: hidden;
}

/* 仅一张幻灯片：静态显示 */
.hblk-slide-solo {
	opacity: 1;
}

.hblk-dots {
	position: absolute;
	top: 12px;
	right: 14px;
	z-index: 4;
	display: flex;
	gap: 5px;
	pointer-events: none;
}

.hblk-dot {
	display: block;
	width: 18px;
	height: 3px;
	border-radius: 2px;
	background: rgba(255,255,255,.9);
	opacity: .3;
}

/* ---------- 鼠标经过封面：只隐藏被经过的那张卡片的文字 ---------- */
.hblk-card:hover .hblk-card-body,
.hblk-card:hover .hblk-badges,
.hblk-card:hover .hblk-shade {
	opacity: 0;
}

/* ---------- CMS 文章 ---------- */
.hblk-cms {
	display: flex;
	gap: 14px;
	align-items: stretch;
	height: 430px;
}

.hblk-cms-list {
	flex: 0 0 52%;
	min-width: 0;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 1px 4px rgba(0,0,0,.06);
	padding: 4px 16px;
	display: flex;
	flex-direction: column;
}

.hblk-row {
	flex: 1;
	min-height: 0;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 9px 0;
	border-bottom: 1px solid #eee;
	text-decoration: none;
	color: #333;
	transition: background .2s ease;
}

.hblk-row:last-child {
	border-bottom: 0;
}

.hblk-row:hover {
	background: #f7fbfe;
	text-decoration: none;
}

.hblk-row-thumb {
	position: relative;
	flex: 0 0 122px;
	width: 122px;
	height: 76px;
	border-radius: 6px;
	overflow: hidden;
	background: #e8e8e8;
}

.hblk-row-thumb.no-img {
	background-image: linear-gradient(135deg, #0b6f9e 0%, #0a4a6b 100%);
}

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

.hblk-row-txt {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.hblk-row-txt .hblk-cat {
	color: #006599;
	font-size: 12px;
}

.hblk-row-title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
	color: #333;
}

.hblk-row:hover .hblk-row-title {
	color: #006599;
}

.hblk-row-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 12px;
	color: #999;
}

.hblk-row-meta span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.hblk-row-meta i {
	font-style: normal;
}

.hblk-feature {
	flex: 1;
	min-width: 0;
	height: 100%;
}

.hblk-feature .hblk-card-title {
	font-size: 21px;
}

.hblk-feature .hblk-card-body {
	padding: 20px 22px;
	gap: 8px;
}

.hblk-feature .hblk-card-meta {
	font-size: 13px;
}

/* ---------- 标题栏目 titlelist ---------- */
.hblk-tl {
	display: grid;
	gap: 14px;
	align-items: start;
}

.hblk-tl-cols-1 { grid-template-columns: 1fr; }
.hblk-tl-cols-2 { grid-template-columns: repeat(2, 1fr); }
.hblk-tl-cols-3 { grid-template-columns: repeat(3, 1fr); }
.hblk-tl-cols-4 { grid-template-columns: repeat(4, 1fr); }

.hblk-tl-col {
	min-width: 0;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

/* 分类栏头：分类图 / 主题渐变 + 白色文字 */
.hblk-tl-head {
	position: relative;
	display: block;
	height: 92px;
	background-color: #2f4b5c;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	text-decoration: none;
}

.hblk-tl-head.no-img {
	background-image: linear-gradient(135deg, #0b6f9e 0%, #0a4a6b 55%, #08344c 100%);
}

.hblk-tl-shade {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.42);
}

.hblk-tl-headtxt {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 0 14px;
	text-align: center;
}

.hblk-tl-name {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 17px;
	font-weight: 700;
	color: #fff;
}

.hblk-tl-name svg {
	flex: 0 0 auto;
	opacity: .9;
}

.hblk-tl-name em {
	font-style: normal;
	font-weight: 400;
	opacity: .85;
}

.hblk-tl-desc {
	max-width: 100%;
	font-size: 12px;
	color: rgba(255,255,255,.82);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* 栏内编号标题列表 */
.hblk-tl-list {
	margin: 0;
	padding: 4px 14px;
	list-style: none;
}

.hblk-tl-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 0;
	border-bottom: 1px solid #eee;
	text-decoration: none;
}

.hblk-tl-list li:last-child .hblk-tl-row {
	border-bottom: 0;
}

.hblk-tl-no {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #006599;
	color: #fff;
	font-style: normal;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

.hblk-tl-title {
	flex: 1;
	min-width: 0;
	font-size: 14px;
	color: #333;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hblk-tl-row:hover .hblk-tl-title {
	color: #006599;
}

.hblk-tl-hits {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-size: 12px;
	color: #006599;
}

/* ---------- 一大六小 bento6 ---------- */
.hblk-b6 {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: 14px;
	align-items: stretch;
}

.hblk-b6-main {
	min-width: 0;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.hblk-b6-photo {
	position: relative;
	display: block;
	flex: 1;
	min-height: 280px;
	background-color: #2f4b5c;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	text-decoration: none;
	transition: filter .25s ease;
}

.hblk-b6-photo:hover {
	filter: brightness(1.08);
}

.hblk-b6-photo.no-img {
	background-image: linear-gradient(135deg, #0b6f9e 0%, #0a4a6b 55%, #08344c 100%);
}

/* 图底信息条：日期居左、浏览量居右 */
.hblk-b6-photo-meta {
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 10px;
	z-index: 2;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
	color: rgba(255,255,255,.85);
}

.hblk-b6-text {
	padding: 12px 14px 14px;
}

.hblk-b6-title {
	display: block;
	margin: 0 0 6px;
	padding-left: 9px;
	border-left: 3px solid #006599;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	color: #333;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hblk-b6-title:hover {
	color: #006599;
	text-decoration: none;
}

.hblk-b6-desc {
	margin: 0;
	font-size: 12px;
	line-height: 1.7;
	color: #999;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

/* 右侧 2 行 3 列小图 */
.hblk-b6-side {
	min-width: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(2, 1fr);
	gap: 12px;
}

.hblk-b6-side .hblk-card-sm {
	height: auto;
	min-height: 0;
}

.hblk-b6-side .hblk-card-body {
	padding: 8px 10px;
	gap: 4px;
}

.hblk-b6-side .hblk-card-title {
	font-size: 12px;
	line-height: 1.4;
}

.hblk-b6-side .hblk-card-meta {
	gap: 8px;
	font-size: 11px;
}

/* ---------- 三栏自选 tricol ---------- */
.hblk-tc {
	display: grid;
	gap: 16px;
	align-items: start;
}

.hblk-tc-cols-1 { grid-template-columns: 1fr; }
.hblk-tc-cols-2 { grid-template-columns: repeat(2, 1fr); }
.hblk-tc-cols-3 { grid-template-columns: repeat(3, 1fr); }
.hblk-tc-cols-4 { grid-template-columns: repeat(4, 1fr); }

.hblk-tc-col {
	min-width: 0;
}

/* —— 大图摘要栏 —— */
.hblk-tc-photo {
	display: block;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	background-color: #2f4b5c;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	transition: filter .25s ease;
}

.hblk-tc-photo:hover {
	filter: brightness(1.08);
}

.hblk-tc-photo.no-img {
	background-image: linear-gradient(135deg, #0b6f9e 0%, #0a4a6b 55%, #08344c 100%);
}

.hblk-tc-f-title {
	display: block;
	margin: 10px 0 6px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.45;
	color: #333;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hblk-tc-f-title:hover {
	color: #006599;
	text-decoration: none;
}

.hblk-tc-f-desc {
	margin: 0;
	font-size: 12px;
	line-height: 1.8;
	color: #999;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
}

.hblk-tc-f-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 8px;
	font-size: 12px;
	color: #999;
}

.hblk-tc-f-mleft {
	display: inline-flex;
	align-items: center;
	gap: 14px;
}

.hblk-tc-more {
	font-size: 12px;
	color: #006599;
	text-decoration: none;
}

/* —— 图文列表栏 —— */
.hblk-tc-l-row {
	display: flex;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
}

.hblk-tc-l-row:first-child {
	padding-top: 0;
}

.hblk-tc-l-row:last-child {
	border-bottom: 0;
}

.hblk-tc-l-thumb {
	flex: 0 0 108px;
	width: 108px;
	aspect-ratio: 4 / 3;
	border-radius: 6px;
	background-color: #2f4b5c;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.hblk-tc-l-thumb.no-img {
	background-image: linear-gradient(135deg, #0b6f9e 0%, #0a4a6b 55%, #08344c 100%);
}

.hblk-tc-l-text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.hblk-tc-l-title {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	color: #333;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hblk-tc-l-title:hover {
	color: #006599;
	text-decoration: none;
}

.hblk-tc-l-desc {
	margin: 4px 0;
	font-size: 12px;
	line-height: 1.6;
	color: #999;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.hblk-tc-l-meta {
	margin-top: auto;
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 12px;
	color: #999;
}

/* —— 排行榜栏 —— */
.hblk-tc-rank {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 1px 4px rgba(0,0,0,.06);
	padding: 12px;
}

.hblk-tc-r-photo {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	border-radius: 6px;
	overflow: hidden;
	background-color: #2f4b5c;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.hblk-tc-r-photo.no-img {
	background-image: linear-gradient(135deg, #0b6f9e 0%, #0a4a6b 55%, #08344c 100%);
}

.hblk-tc-r-no-lg {
	position: absolute;
	top: 0;
	left: 0;
	min-width: 26px;
	height: 26px;
	padding: 0 8px;
	border-radius: 6px 0 6px 0;
	background: #006599;
	color: #fff;
	font-style: normal;
	font-size: 15px;
	font-weight: 700;
	line-height: 26px;
	text-align: center;
}

.hblk-tc-r-title {
	display: block;
	margin: 8px 0 4px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	color: #333;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hblk-tc-r-title:hover {
	color: #006599;
	text-decoration: none;
}

.hblk-tc-r-desc {
	margin: 0 0 8px;
	font-size: 12px;
	line-height: 1.6;
	color: #999;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.hblk-tc-r-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hblk-tc-r-row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 0;
	border-bottom: 1px solid #f2f2f2;
	text-decoration: none;
}

.hblk-tc-r-list li:last-child .hblk-tc-r-row {
	border-bottom: 0;
}

.hblk-tc-r-no {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	border-radius: 3px;
	background: #c8c8c8;
	color: #fff;
	font-style: normal;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

.hblk-tc-r-no.top {
	background: #006599;
}

.hblk-tc-r-rowtitle {
	flex: 1;
	min-width: 0;
	font-size: 13px;
	color: #333;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hblk-tc-r-row:hover .hblk-tc-r-rowtitle {
	color: #006599;
}

/* ---------- 响应式 ---------- */
/* 2026-10-19: 平板/手机端隐藏幻灯网格右侧小卡区, 只保留幻灯片(全宽)。
   取模板平板断点 985px —— 覆盖 985~768 之间窗口(此时仍是桌面三列布局)与真手机 */
@media (max-width: 985px) {
	.hblk-grid {
		grid-template-columns: 1fr; /* side 隐藏后 grid 只剩幻灯一列 */
	}

	.hblk-slides {
		grid-column: 1 / -1; /* 覆盖桌面 grid-column:1/2, 幻灯占满整行 */
	}

	.hblk-grid-side {
		display: none;
	}
}

@media (max-width: 768px) {
	.hblk-title {
		font-size: 22px;
	}

	.hblk-grid {
		grid-template-columns: 1fr 1fr;
		/* 重置桌面遗留的 grid-auto-rows:1fr: 高度不定的容器里所有 1fr 行强制等高(=最高行),
		   堆叠布局下幻灯行会被右侧单列卡片区的高度撑出成片空白 */
		grid-auto-rows: auto;
		height: auto;
	}

	.hblk-card-lg {
		grid-column: 1 / -1;
		grid-row: auto;
		height: 320px;
	}

	.hblk-slides {
		grid-column: 1 / -1;
		grid-row: auto;
		height: 320px;
	}

	/* .hblk-grid-side 已在上方 ≤985 断点整体隐藏, 无需再排 */

	.hblk-cms {
		flex-direction: column;
		height: auto;
	}

	.hblk-feature {
		order: -1;
		height: 320px;
	}

	.hblk-cms-list {
		flex-basis: auto;
	}

	.hblk-tl-cols-3,
	.hblk-tl-cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}

	.hblk-b6 {
		grid-template-columns: 1fr;
	}

	.hblk-b6-photo {
		flex: none;
		height: 300px;
	}

	.hblk-b6-side {
		grid-template-rows: none;
		grid-auto-rows: 150px;
	}

	.hblk-tc-cols-3,
	.hblk-tc-cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 590px) {
	.hblk-tl-cols-2,
	.hblk-tl-cols-3,
	.hblk-tl-cols-4 {
		grid-template-columns: 1fr;
	}

	.hblk-b6-side {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: 140px;
	}

	.hblk-tc-cols-2,
	.hblk-tc-cols-3,
	.hblk-tc-cols-4 {
		grid-template-columns: 1fr;
	}

	.hblk-card-sm {
		height: 220px;
	}

	.hblk-row-thumb {
		flex-basis: 100px;
		width: 100px;
		height: 70px;
	}
}
