/* ==========================================================================
   霓虹矩阵 · 公共组件
   ========================================================================== */

/* ---------- 区块标题 ---------- */
.nm-section {
	margin-bottom: clamp(34px, 4vw, 58px);
}

.nm-section__head {
	align-items: flex-end;
	display: flex;
	gap: 18px;
	justify-content: space-between;
	margin-bottom: 20px;
}

.nm-section__eyebrow {
	color: var(--nm-cyan);
	font-family: var(--nm-font-mono);
	font-size: 11px;
	letter-spacing: 0.24em;
	margin-bottom: 6px;
	text-transform: uppercase;
}

.nm-section__title {
	font-size: clamp(21px, 2vw, 28px);
	margin: 0;
	position: relative;
}

.nm-section__title::before {
	background: linear-gradient(180deg, var(--nm-cyan), var(--nm-purple));
	border-radius: 2px;
	content: "";
	display: inline-block;
	height: 0.9em;
	margin-right: 12px;
	vertical-align: -0.06em;
	width: 4px;
}

.nm-section__sub {
	color: var(--nm-muted);
	font-size: var(--nm-fs-sm);
	margin: 6px 0 0;
}

.nm-section__more {
	color: var(--nm-muted);
	font-size: var(--nm-fs-sm);
	white-space: nowrap;
}

.nm-section__more:hover {
	color: var(--nm-cyan);
}

.nm-section__more::after {
	content: " →";
}

.nm-section__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* ---------- 首页首屏（赛博朋克城市版） ---------- */
.nm-hero--cyber {
	display: grid;
	gap: clamp(16px, 1.8vw, 24px);
	grid-template-columns: minmax(0, 1fr) 320px;
	margin-bottom: clamp(34px, 4vw, 56px);
}

.nm-hero__main {
	background: var(--nm-hero-grad);
	border: 1px solid rgba(0, 229, 255, 0.18);
	border-radius: var(--nm-radius-lg);
	display: grid;
	gap: 20px;
	grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
	min-height: 430px;
	overflow: hidden;
	padding: clamp(26px, 3.2vw, 46px);
	position: relative;
	box-shadow: var(--nm-glow-soft);
}

.nm-hero__main::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 50%, var(--nm-bg-070b18-55) 100%),
		repeating-linear-gradient(90deg, rgba(0, 229, 255, 0.025) 0 1px, transparent 1px 80px),
		repeating-linear-gradient(0deg, rgba(168, 85, 247, 0.02) 0 1px, transparent 1px 80px);
	pointer-events: none;
}

.nm-hero__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative;
	z-index: 2;
}

.nm-hero__eyebrow {
	color: var(--nm-cyan);
	font-family: var(--nm-font-mono);
	font-size: 11px;
	letter-spacing: 0.24em;
	margin-bottom: 14px;
	text-transform: uppercase;
}

.nm-hero__title {
	font-size: var(--nm-fs-hero);
	line-height: 1.2;
	margin-bottom: 14px;
	max-width: 560px;
	text-shadow: 0 4px 30px var(--nm-sh-000000-50);
}

.nm-hero__subtitle {
	color: var(--nm-tx-c3cee0);
	font-size: var(--nm-fs-base);
	line-height: 1.8;
	margin-bottom: 22px;
	max-width: 520px;
}

.nm-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 22px;
}

.nm-hero__featured {
	align-items: center;
	border-top: 1px dashed rgba(0, 229, 255, 0.18);
	color: var(--nm-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 12px;
	gap: 10px;
	padding-top: 14px;
}

.nm-hero__featured-label {
	color: var(--nm-cyan);
	font-family: var(--nm-font-mono);
	font-size: 10px;
	letter-spacing: 0.14em;
}

.nm-hero__featured-link {
	color: var(--nm-muted-strong);
	max-width: 420px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nm-hero__featured-link:hover {
	color: var(--nm-cyan);
}

.nm-hero__art {
	align-items: center;
	display: flex;
	justify-content: center;
	min-height: 280px;
	position: relative;
	z-index: 1;
}

.nm-hero__art img {
	border: 1px solid rgba(0, 229, 255, 0.2);
	border-radius: 16px;
	box-shadow: 0 20px 50px var(--nm-sh-000000-50), var(--nm-glow-purple);
	height: auto;
	max-height: 360px;
	object-fit: cover;
	width: 100%;
}

.nm-hero__art-placeholder {
	background: radial-gradient(circle at 30% 40%, rgba(0, 229, 255, 0.25), transparent 50%),
		radial-gradient(circle at 70% 60%, rgba(168, 85, 247, 0.3), transparent 55%),
		linear-gradient(135deg, var(--nm-bg-1a0f3a), var(--nm-bg-0a1430));
	border: 1px solid rgba(0, 229, 255, 0.2);
	border-radius: 16px;
	height: 100%;
	min-height: 280px;
	width: 100%;
}

/* 兼容旧 carousel 样式保留（其他页面可能复用） */
.nm-hero__carousel {
	background: var(--nm-bg-0a1122);
	border: 1px solid var(--nm-border);
	border-radius: var(--nm-radius-lg);
	min-height: 430px;
	overflow: hidden;
	position: relative;
}

.nm-hero__track {
	height: 100%;
}

.nm-hero__slide {
	display: block;
	inset: 0;
	opacity: 0;
	position: absolute;
	transition: opacity 0.5s var(--nm-ease);
	visibility: hidden;
	z-index: 1;
}

.nm-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

.nm-hero__slide-link {
	color: var(--nm-text);
	display: block;
	height: 100%;
	min-height: 430px;
	position: relative;
	text-decoration: none;
}

.nm-hero__media {
	background: linear-gradient(135deg, var(--nm-bg-0b1730), #1a0f30);
	inset: 0;
	position: absolute;
}

.nm-hero__media img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.nm-hero__media::after {
	background: linear-gradient(180deg, var(--nm-bg-070b18-00) 20%, var(--nm-bg-070b18-75) 66%, var(--nm-bg-070b18-97) 100%),
		linear-gradient(90deg, rgba(0, 229, 255, 0.13), transparent 42%);
	content: "";
	inset: 0;
	position: absolute;
}

.nm-hero__content {
	bottom: 0;
	left: 0;
	padding: clamp(24px, 3vw, 40px);
	position: absolute;
	right: 0;
	z-index: 3;
}

.nm-hero__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.nm-hero__excerpt {
	color: var(--nm-tx-c9d5e8);
	display: -webkit-box;
	font-size: var(--nm-fs-base);
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	max-width: 700px;
	overflow: hidden;
}

.nm-hero__meta {
	align-items: center;
	color: var(--nm-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: var(--nm-fs-xs);
	gap: 14px;
	margin-top: 14px;
}

.nm-hero__nav {
	align-items: center;
	bottom: 20px;
	display: flex;
	gap: 8px;
	position: absolute;
	right: 22px;
	z-index: 4;
}

.nm-hero__dot {
	background: var(--nm-bg-ffffff-25);
	border: 0;
	border-radius: 999px;
	height: 6px;
	padding: 0;
	transition: all var(--nm-dur) var(--nm-ease);
	width: 18px;
}

.nm-hero__dot.is-active {
	background: var(--nm-cyan);
	box-shadow: 0 0 12px var(--nm-sh-00e5ff-60);
	width: 30px;
}

.nm-hero__arrow {
	background: var(--nm-bg-050914-60);
	border: 1px solid var(--nm-border);
	border-radius: 50%;
	color: var(--nm-text);
	height: 34px;
	min-height: 0;
	padding: 0;
	width: 34px;
}

.nm-hero__arrow:hover {
	border-color: var(--nm-border-strong);
	color: var(--nm-cyan);
}

/* 热榜 */
.nm-hotlist {
	background: linear-gradient(180deg, var(--nm-bg-111b32), var(--nm-bg-0b1224));
	border: 1px solid var(--nm-border);
	border-radius: var(--nm-radius-lg);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 22px;
}

.nm-hotlist__head {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin-bottom: 14px;
}

.nm-hotlist__title {
	align-items: center;
	display: flex;
	font-size: 17px;
	font-weight: 700;
	gap: 8px;
	margin: 0;
}

.nm-hotlist__title svg {
	color: var(--nm-magenta);
	height: 18px;
	width: 18px;
}

.nm-hotlist__mode {
	color: var(--nm-muted);
	font-size: 10px;
	letter-spacing: 0.1em;
}

.nm-hotlist__items {
	counter-reset: hot;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nm-hotlist__items li {
	border-bottom: 1px dashed var(--nm-border-soft);
	counter-increment: hot;
	margin: 0;
	padding: 0;
}

.nm-hotlist__items li:last-child {
	border-bottom: 0;
}

.nm-hotlist__link {
	align-items: flex-start;
	color: var(--nm-muted-strong);
	display: grid;
	font-size: 14px;
	gap: 10px;
	grid-template-columns: 22px minmax(0, 1fr);
	line-height: 1.55;
	padding: 11px 0;
}

.nm-hotlist__link::before {
	color: rgba(154, 170, 195, 0.5);
	content: counter(hot, decimal-leading-zero);
	font-family: var(--nm-font-mono);
	font-size: 12px;
	line-height: 1.6;
}

.nm-hotlist__items li:nth-child(1) .nm-hotlist__link::before {
	color: var(--nm-magenta);
}

.nm-hotlist__items li:nth-child(2) .nm-hotlist__link::before {
	color: var(--nm-warning);
}

.nm-hotlist__items li:nth-child(3) .nm-hotlist__link::before {
	color: var(--nm-cyan);
}

.nm-hotlist__link:hover {
	color: var(--nm-cyan);
}

.nm-hotlist__tag {
	color: var(--nm-muted);
	display: block;
	font-size: 11px;
	grid-column: 2;
	margin-top: 3px;
}

.nm-hotlist__foot {
	border-top: 1px solid var(--nm-border);
	margin-top: auto;
	padding-top: 14px;
}

@media (max-width: 1024px) {
	.nm-hero--cyber {
		grid-template-columns: minmax(0, 1fr);
	}

	.nm-hero__main {
		grid-template-columns: minmax(0, 1fr);
		min-height: auto;
	}

	.nm-hero__art {
		min-height: 220px;
	}

	.nm-hotlist {
		padding: 18px;
	}
}

@media (max-width: 560px) {
	.nm-hero__title {
		font-size: 28px;
	}

	.nm-hero__subtitle {
		font-size: 14px;
	}

	.nm-hero__actions .nm-btn {
		flex: 1;
	}
}

/* ---------- 分类快捷入口（圆形图标） ---------- */
.nm-quickcats {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin-bottom: clamp(34px, 4vw, 56px);
}

.nm-quickcat {
	align-items: center;
	background: linear-gradient(160deg, var(--nm-bg-111b32-60), var(--nm-bg-0a1020-60));
	border: 1px solid var(--nm-border);
	border-radius: var(--nm-radius);
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px 14px 18px;
	position: relative;
	text-align: center;
	transition: all var(--nm-dur) var(--nm-ease);
	overflow: hidden;
}

.nm-quickcat::before {
	background: radial-gradient(circle, color-mix(in srgb, var(--nm-qc, var(--nm-cyan)) 30%, transparent), transparent 70%);
	content: "";
	height: 120px;
	left: 50%;
	opacity: 0;
	position: absolute;
	top: -40px;
	transform: translateX(-50%);
	transition: opacity var(--nm-dur) var(--nm-ease);
	width: 120px;
}

.nm-quickcat:hover {
	background: var(--nm-card-hover);
	border-color: var(--nm-border-strong);
	transform: translateY(-3px);
	box-shadow: var(--nm-glow-soft);
}

.nm-quickcat:hover::before {
	opacity: 1;
}

.nm-quickcat__icon {
	align-items: center;
	background: color-mix(in srgb, var(--nm-qc, var(--nm-cyan)) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--nm-qc, var(--nm-cyan)) 32%, transparent);
	border-radius: 50%;
	color: var(--nm-qc, var(--nm-cyan));
	display: inline-flex;
	flex-shrink: 0;
	height: 56px;
	justify-content: center;
	position: relative;
	width: 56px;
	z-index: 1;
	box-shadow: 0 0 16px color-mix(in srgb, var(--nm-qc, var(--nm-cyan)) 25%, transparent);
}

.nm-quickcat__icon svg {
	height: 26px;
	width: 26px;
}

.nm-quickcat__name {
	color: var(--nm-text);
	display: block;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	position: relative;
	z-index: 1;
}

.nm-quickcat__count {
	color: var(--nm-muted);
	display: block;
	font-size: 11px;
	margin-top: 2px;
	position: relative;
	z-index: 1;
}

@media (max-width: 1024px) {
	.nm-quickcats {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.nm-quickcat__icon {
		height: 48px;
		width: 48px;
	}

	.nm-quickcat__icon svg {
		height: 22px;
		width: 22px;
	}
}

@media (max-width: 640px) {
	.nm-quickcats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 420px) {
	.nm-quickcats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---------- 文章卡片 ---------- */
.nm-grid {
	display: grid;
	gap: 18px;
}

.nm-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nm-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nm-grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nm-grid--feature {
	grid-template-columns: 1.35fr 1fr 1fr;
}

.nm-card {
	background: linear-gradient(160deg, var(--nm-bg-111b32-96), var(--nm-bg-0b1224-96));
	border: 1px solid var(--nm-border);
	border-radius: var(--nm-radius);
	overflow: hidden;
	position: relative;
	transition: border-color var(--nm-dur) var(--nm-ease), transform var(--nm-dur) var(--nm-ease), box-shadow var(--nm-dur) var(--nm-ease);
}

.nm-card:hover {
	border-color: rgba(0, 229, 255, 0.42);
	box-shadow: 0 18px 36px var(--nm-sh-000000-40), var(--nm-glow-cyan);
	transform: translateY(-3px);
}

.nm-post-card {
	display: flex;
	flex-direction: column;
}

.nm-post-card__media {
	background: var(--nm-bg-0b1224);
	display: block;
	overflow: hidden;
	position: relative;
}

.nm-post-card__media::before {
	content: "";
	display: block;
	padding-top: 58%;
}

.nm-post-card__media img {
	height: 100%;
	inset: 0;
	object-fit: cover;
	position: absolute;
	transition: transform 0.6s var(--nm-ease);
	width: 100%;
}

.nm-post-card:hover .nm-post-card__media img {
	transform: scale(1.045);
}

.nm-post-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 16px 18px 18px;
}

.nm-post-card__cat {
	align-items: center;
	color: var(--nm-cyan);
	display: inline-flex;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	margin-bottom: 8px;
}

.nm-post-card__title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.5;
	margin: 0 0 8px;
}

.nm-post-card__title a {
	color: var(--nm-text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nm-post-card__title a:hover {
	color: var(--nm-cyan);
}

.nm-post-card__excerpt {
	color: var(--nm-muted);
	display: -webkit-box;
	font-size: 13px;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	line-height: 1.7;
	margin: 0 0 12px;
	overflow: hidden;
}

.nm-post-card__meta {
	align-items: center;
	color: var(--nm-tx-7f8ea6);
	display: flex;
	flex-wrap: wrap;
	font-size: 11px;
	gap: 10px;
	margin-top: auto;
}

.nm-post-card__meta span {
	align-items: center;
	display: inline-flex;
	gap: 4px;
}

.nm-post-card__meta svg {
	height: 12px;
	width: 12px;
}

/* 大卡（首页第一张） */
.nm-post-card--lead .nm-post-card__media::before {
	padding-top: 66%;
}

.nm-post-card--lead .nm-post-card__body {
	padding: 20px 22px 22px;
}

.nm-post-card--lead .nm-post-card__title {
	font-size: 22px;
}

.nm-post-card--lead .nm-post-card__excerpt {
	font-size: 14px;
	-webkit-line-clamp: 3;
}

/* 横向小卡 */
.nm-post-row {
	align-items: stretch;
}

.nm-post-row .nm-post-card {
	flex-direction: row;
}

.nm-post-row .nm-post-card__media {
	flex: 0 0 38%;
}

.nm-post-row .nm-post-card__media::before {
	height: 100%;
	padding-top: 0;
}

.nm-post-row .nm-post-card__body {
	padding: 14px 16px;
}

.nm-post-row .nm-post-card__title {
	font-size: 15px;
}

.nm-post-row .nm-post-card__excerpt {
	display: none;
}

/* ---------- 项目卡片 ---------- */
.nm-project-card {
	display: flex;
	flex-direction: column;
	padding: 20px;
}

.nm-project-card__top {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: space-between;
	margin-bottom: 12px;
}

.nm-project-card__game {
	color: var(--nm-cyan);
	font-size: 11px;
	letter-spacing: 0.06em;
}

.nm-project-card__title {
	font-size: 18px;
	margin: 0 0 8px;
}

.nm-project-card__title a {
	color: var(--nm-text);
}

.nm-project-card__title a:hover {
	color: var(--nm-cyan);
}

.nm-project-card__summary {
	color: var(--nm-muted);
	display: -webkit-box;
	font-size: 13px;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	line-height: 1.7;
	margin: 0 0 14px;
	overflow: hidden;
}

.nm-project-card__stats {
	border-top: 1px dashed var(--nm-border-soft);
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: auto;
	padding-top: 13px;
}

.nm-stat__label {
	color: var(--nm-tx-7f8ea6);
	display: block;
	font-size: 10px;
	letter-spacing: 0.06em;
	margin-bottom: 2px;
}

.nm-stat__value {
	color: var(--nm-text);
	display: block;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}

.nm-project-card__foot {
	align-items: center;
	border-top: 1px solid var(--nm-border-soft);
	color: var(--nm-tx-7f8ea6);
	display: flex;
	font-size: 11px;
	gap: 8px;
	justify-content: space-between;
	margin-top: 12px;
	padding-top: 12px;
}

.nm-project-card__foot .nm-badge {
	font-size: 10px;
	padding: 4px 8px;
}

/* ---------- 工具卡片 ---------- */
.nm-tool-card {
	display: flex;
	flex-direction: column;
	padding: 18px;
}

.nm-tool-card__head {
	align-items: center;
	display: flex;
	gap: 12px;
	margin-bottom: 10px;
}

.nm-tool-card__logo {
	align-items: center;
	background: linear-gradient(145deg, rgba(0, 229, 255, 0.12), rgba(168, 85, 247, 0.16));
	border: 1px solid var(--nm-border);
	border-radius: 10px;
	color: var(--nm-cyan);
	display: inline-flex;
	flex-shrink: 0;
	font-size: 18px;
	font-weight: 700;
	height: 40px;
	justify-content: center;
	width: 40px;
}

.nm-tool-card__name {
	font-size: 16px;
	margin: 0;
}

.nm-tool-card__name a {
	color: var(--nm-text);
}

.nm-tool-card__name a:hover {
	color: var(--nm-cyan);
}

.nm-tool-card__cat {
	color: var(--nm-muted);
	font-size: 11px;
}

.nm-tool-card__desc {
	color: var(--nm-muted);
	display: -webkit-box;
	font-size: 13px;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	line-height: 1.65;
	margin: 0 0 12px;
	overflow: hidden;
}

.nm-tool-card__foot {
	align-items: center;
	display: flex;
	font-size: 11px;
	gap: 8px;
	justify-content: space-between;
	margin-top: auto;
}

/* ---------- 专题卡片 ---------- */
.nm-topic-card {
	background: linear-gradient(140deg, rgba(0, 229, 255, 0.08), rgba(168, 85, 247, 0.1) 55%, rgba(255, 60, 172, 0.08)),
		var(--nm-bg-0d1529);
	border: 1px solid var(--nm-border);
	border-radius: var(--nm-radius);
	display: flex;
	flex-direction: column;
	min-height: 190px;
	overflow: hidden;
	padding: 22px;
	position: relative;
}

.nm-topic-card::after {
	border: 1px solid rgba(0, 229, 255, 0.16);
	border-radius: 50%;
	content: "";
	height: 160px;
	position: absolute;
	right: -60px;
	top: -60px;
	width: 160px;
}

.nm-topic-card__index {
	color: rgba(0, 229, 255, 0.28);
	font-family: var(--nm-font-mono);
	font-size: 42px;
	font-weight: 700;
	line-height: 1;
	margin-bottom: 10px;
}

.nm-topic-card__title {
	font-size: 19px;
	margin: 0 0 8px;
}

.nm-topic-card__title a {
	color: var(--nm-text);
}

.nm-topic-card__title a:hover {
	color: var(--nm-cyan);
}

.nm-topic-card__desc {
	color: var(--nm-muted);
	font-size: 13px;
	line-height: 1.7;
	margin: 0 0 14px;
}

.nm-topic-card__foot {
	color: var(--nm-muted);
	display: flex;
	font-size: 11px;
	gap: 12px;
	margin-top: auto;
}

/* ---------- 分类条 / 筛选栏 ---------- */
.nm-filterbar {
	align-items: center;
	background: var(--nm-bg-0d1428-70);
	border: 1px solid var(--nm-border);
	border-radius: var(--nm-radius);
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: space-between;
	margin-bottom: 22px;
	padding: 12px 14px;
}

.nm-filterbar__group {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.nm-filterbar__label {
	color: var(--nm-muted);
	font-size: 12px;
	margin-right: 2px;
}

.nm-filterbar__count {
	color: var(--nm-muted);
	font-size: 12px;
	white-space: nowrap;
}

.nm-filterbar form {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.nm-filterbar select {
	font-size: 13px;
	min-width: 120px;
	padding: 7px 32px 7px 12px;
	width: auto;
}

/* ---------- 分页 ---------- */
.nm-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin-top: 34px;
}

.nm-pagination .page-numbers {
	align-items: center;
	background: var(--nm-bg-111b32-80);
	border: 1px solid var(--nm-border);
	border-radius: 8px;
	color: var(--nm-muted-strong);
	display: inline-flex;
	font-size: 13px;
	height: 36px;
	justify-content: center;
	min-width: 36px;
	padding: 0 10px;
}

.nm-pagination .page-numbers:hover {
	border-color: var(--nm-border-strong);
	color: var(--nm-cyan);
}

.nm-pagination .page-numbers.current {
	background: linear-gradient(100deg, rgba(0, 229, 255, 0.2), rgba(168, 85, 247, 0.24));
	border-color: var(--nm-border-strong);
	color: var(--nm-cyan);
	font-weight: 700;
}

.nm-pagination .page-numbers.dots {
	background: none;
	border-color: transparent;
}

/* ---------- 侧栏组件 ---------- */
.nm-widget {
	background: linear-gradient(165deg, var(--nm-bg-111b32-90), var(--nm-bg-0a1020-92));
	border: 1px solid var(--nm-border);
	border-radius: var(--nm-radius);
	padding: 18px;
}

.nm-widget__title {
	align-items: center;
	display: flex;
	font-size: 15px;
	gap: 8px;
	margin: 0 0 14px;
	padding-bottom: 12px;
	position: relative;
}

.nm-widget__title::after {
	background: linear-gradient(90deg, var(--nm-cyan), transparent);
	bottom: 0;
	content: "";
	height: 1px;
	left: 0;
	position: absolute;
	right: 30%;
}

.nm-widget__title::before {
	background: var(--nm-cyan);
	border-radius: 2px;
	content: "";
	height: 13px;
	width: 3px;
}

.nm-widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nm-widget li {
	border-bottom: 1px dashed var(--nm-border-soft);
	margin: 0;
	padding: 9px 0;
}

.nm-widget li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.nm-widget li a {
	color: var(--nm-muted-strong);
	font-size: 13px;
	line-height: 1.6;
}

.nm-widget li a:hover {
	color: var(--nm-cyan);
}

.nm-widget__meta {
	color: var(--nm-tx-7f8ea6);
	display: block;
	font-size: 11px;
	margin-top: 3px;
}

.nm-sidebar-about {
	background: linear-gradient(150deg, rgba(0, 229, 255, 0.07), rgba(168, 85, 247, 0.08)),
		var(--nm-bg-0c1427);
	border: 1px solid var(--nm-border);
	border-radius: var(--nm-radius);
	padding: 20px;
}

/* WordPress 默认搜索表单（侧栏小工具、搜索结果页、404）。 */
.search-form {
	align-items: stretch;
	display: flex;
	gap: 8px;
}

.search-form label {
	flex: 1;
	min-width: 0;
}

.search-form .search-field {
	width: 100%;
}

.search-form .search-submit {
	flex: 0 0 auto;
	padding-left: 18px;
	padding-right: 18px;
	white-space: nowrap;
}

/* 区块搜索小工具：按钮保持整行文字，不被输入框挤压。 */
.wp-block-search__inside-wrapper {
	gap: 8px;
}

.wp-block-search__input {
	flex: 1 1 auto;
	min-width: 0;
}

.wp-block-search__button {
	flex: 0 0 auto;
	padding-left: 18px;
	padding-right: 18px;
	white-space: nowrap;
}

.nm-sidebar-about__logo {
	align-items: center;
	display: flex;
	gap: 10px;
	margin-bottom: 10px;
}

.nm-sidebar-about p {
	color: var(--nm-muted);
	font-size: 13px;
	line-height: 1.75;
}

.nm-sidebar-about__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* ---------- 广告位 ---------- */
.nm-ad {
	margin-bottom: 22px;
}

.nm-ad__label {
	color: var(--nm-tx-6f7f98);
	font-size: 10px;
	letter-spacing: 0.16em;
	margin-bottom: 6px;
}

.nm-ad__body {
	background: var(--nm-bg-0d1428-60);
	border: 1px dashed var(--nm-border);
	border-radius: var(--nm-radius-sm);
	color: var(--nm-muted);
	font-size: 13px;
	padding: 18px;
	text-align: center;
}

.nm-ad__body a {
	color: var(--nm-cyan);
}

/* ---------- 目录 TOC ---------- */
.nm-toc {
	background: var(--nm-bg-0d1428-74);
	border: 1px solid var(--nm-border);
	border-radius: var(--nm-radius);
	font-size: 13px;
	margin-bottom: 24px;
	padding: 16px 18px;
}

.nm-toc__title {
	align-items: center;
	color: var(--nm-text);
	cursor: pointer;
	display: flex;
	font-size: 14px;
	font-weight: 700;
	justify-content: space-between;
	list-style: none;
	margin: 0;
}

.nm-toc__title::-webkit-details-marker {
	display: none;
}

.nm-toc__title::after {
	color: var(--nm-muted);
	content: "展开";
	font-size: 11px;
	font-weight: 400;
}

.nm-toc[open] .nm-toc__title::after {
	content: "收起";
}

.nm-toc ol {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
}

.nm-toc li {
	margin: 0;
}

.nm-toc a {
	color: var(--nm-muted);
	display: block;
	line-height: 1.55;
	padding: 5px 0 5px 12px;
	border-left: 2px solid transparent;
}

.nm-toc a:hover,
.nm-toc a.is-current {
	border-left-color: var(--nm-cyan);
	color: var(--nm-cyan);
}

.nm-toc .nm-toc__h3 {
	padding-left: 24px;
	font-size: 12px;
}

/* ---------- FAQ ---------- */
.nm-faq {
	display: grid;
	gap: 10px;
	margin: 26px 0;
}

.nm-faq__item {
	background: var(--nm-bg-0d1428-72);
	border: 1px solid var(--nm-border);
	border-radius: var(--nm-radius-sm);
	overflow: hidden;
}

.nm-faq__item summary {
	color: var(--nm-text);
	cursor: pointer;
	display: flex;
	font-size: 15px;
	font-weight: 600;
	gap: 12px;
	justify-content: space-between;
	list-style: none;
	padding: 14px 18px;
}

.nm-faq__item summary::-webkit-details-marker {
	display: none;
}

.nm-faq__item summary::after {
	color: var(--nm-cyan);
	content: "+";
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
}

.nm-faq__item[open] summary::after {
	content: "−";
}

.nm-faq__answer {
	color: var(--nm-muted-strong);
	font-size: 14px;
	padding: 0 18px 16px;
}

.nm-faq__answer p:last-child {
	margin-bottom: 0;
}

/* ---------- 步骤条 ---------- */
.nm-steps {
	counter-reset: step;
	display: grid;
	gap: 14px;
	margin: 20px 0;
}

.nm-step {
	background: var(--nm-bg-0d1428-66);
	border: 1px solid var(--nm-border);
	border-radius: var(--nm-radius-sm);
	counter-increment: step;
	padding: 16px 18px 16px 60px;
	position: relative;
}

.nm-step::before {
	align-items: center;
	background: linear-gradient(145deg, rgba(0, 229, 255, 0.18), rgba(168, 85, 247, 0.2));
	border: 1px solid rgba(0, 229, 255, 0.3);
	border-radius: 9px;
	color: var(--nm-cyan);
	content: counter(step, decimal-leading-zero);
	display: flex;
	font-family: var(--nm-font-mono);
	font-size: 13px;
	font-weight: 700;
	height: 30px;
	justify-content: center;
	left: 16px;
	position: absolute;
	top: 16px;
	width: 30px;
}

.nm-step__title {
	color: var(--nm-text);
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 4px;
}

.nm-step__desc {
	color: var(--nm-muted);
	font-size: 13px;
	line-height: 1.7;
	margin: 0;
}

/* ---------- 数据速览 ---------- */
.nm-specgrid {
	background: var(--nm-bg-0d1428-60);
	border: 1px solid var(--nm-border);
	border-radius: var(--nm-radius);
	display: grid;
	gap: 1px;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	margin: 24px 0;
	overflow: hidden;
}

.nm-spec {
	background: var(--nm-bg-111b32-75);
	padding: 16px;
}

.nm-spec__label {
	color: var(--nm-tx-7f8ea6);
	font-size: 11px;
	letter-spacing: 0.04em;
	margin-bottom: 4px;
}

.nm-spec__value {
	color: var(--nm-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

@media (max-width: 780px) {
	.nm-specgrid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---------- 空状态 ---------- */
.nm-empty {
	border: 1px dashed var(--nm-border);
	border-radius: var(--nm-radius);
	color: var(--nm-muted);
	padding: 42px 24px;
	text-align: center;
}

.nm-empty__icon {
	color: rgba(0, 229, 255, 0.4);
	font-size: 30px;
	margin-bottom: 10px;
}

.nm-empty__title {
	color: var(--nm-text);
	font-size: 16px;
	margin-bottom: 6px;
}

.nm-empty p {
	font-size: 13px;
	margin: 0;
}

/* ---------- Toast ---------- */
.nm-toast-wrap {
	bottom: 22px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	position: fixed;
	right: 22px;
	z-index: 900;
}

.nm-toast {
	background: var(--nm-bg-101a30);
	border: 1px solid var(--nm-border-strong);
	border-radius: 10px;
	box-shadow: 0 16px 40px var(--nm-sh-000000-50);
	color: var(--nm-text);
	font-size: 13px;
	max-width: 330px;
	padding: 12px 16px;
}

.nm-toast--error {
	border-color: rgba(255, 92, 108, 0.5);
}

/* ---------- 收藏按钮 ---------- */
.nm-fav {
	align-items: center;
	background: var(--nm-bg-ffffff-04);
	border: 1px solid var(--nm-border);
	border-radius: 999px;
	color: var(--nm-muted-strong);
	display: inline-flex;
	font-size: 12px;
	gap: 6px;
	min-height: 34px;
	padding: 7px 14px;
}

.nm-fav:hover {
	border-color: var(--nm-border-strong);
	color: var(--nm-cyan);
}

.nm-fav.is-active {
	background: rgba(255, 60, 172, 0.12);
	border-color: rgba(255, 60, 172, 0.4);
	color: #ff9ed2;
}

.nm-fav svg {
	height: 14px;
	width: 14px;
}

/* ---------- 评论区 ---------- */
.nm-comments {
	border-top: 1px solid var(--nm-border);
	margin-top: 40px;
	padding-top: 28px;
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .comment-body {
	background: var(--nm-bg-0d1428-60);
	border: 1px solid var(--nm-border);
	border-radius: var(--nm-radius-sm);
	margin-bottom: 14px;
	padding: 16px 18px;
}

.comment-list .children {
	list-style: none;
	margin: 0 0 0 22px;
	padding: 0;
}

.comment-author {
	align-items: center;
	display: flex;
	font-size: 13px;
	gap: 8px;
}

.comment-author .avatar {
	border-radius: 50%;
	height: 32px;
	width: 32px;
}

.comment-metadata {
	color: var(--nm-muted);
	font-size: 11px;
	margin: 4px 0 8px;
}

.comment-content {
	color: var(--nm-muted-strong);
	font-size: 14px;
}

.comment-respond {
	margin-top: 26px;
}

.comment-form .form-submit input {
	width: auto;
}

/* ---------- 标签云 ---------- */
.nm-tagcloud {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.nm-tagcloud a {
	background: var(--nm-bg-ffffff-03);
	border: 1px solid var(--nm-border);
	border-radius: 6px;
	color: var(--nm-muted);
	font-size: 12px;
	padding: 5px 10px;
}

.nm-tagcloud a:hover {
	border-color: var(--nm-border-strong);
	color: var(--nm-cyan);
}

/* ---------- 相关文章 ---------- */
.nm-related {
	margin-top: 40px;
}

/* ---------- 表格滚动 ---------- */
.nm-table-wrap {
	overflow-x: auto;
}

/* ---------- 文章上下篇 ---------- */
.nm-postnav,
.nm-article__foot .nav-links {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 30px;
}

.nm-postnav a,
.nm-article__foot .nav-links a {
	background: var(--nm-bg-0d1428-70);
	border: 1px solid var(--nm-border);
	border-radius: var(--nm-radius-sm);
	color: var(--nm-muted-strong);
	display: block;
	font-size: 13px;
	padding: 14px 16px;
}

.nm-postnav a:hover,
.nm-article__foot .nav-links a:hover {
	border-color: var(--nm-border-strong);
	color: var(--nm-cyan);
}

.nm-postnav__label {
	color: var(--nm-tx-7f8ea6);
	display: block;
	font-size: 10px;
	letter-spacing: 0.1em;
	margin-bottom: 4px;
}

@media (max-width: 560px) {
	.nm-postnav,
	.nm-article__foot .nav-links {
		grid-template-columns: 1fr;
	}
}

/* ---------- 图标与目录（补充） ---------- */
.nm-i {
	display: inline-block;
	flex: none;
	height: 1em;
	vertical-align: -0.14em;
	width: 1em;
}

.nm-toc[hidden] {
	display: none;
}

.nm-toc__list {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
}

.nm-toc__list li {
	border: 0;
	margin: 0;
	padding: 5px 0;
}

.nm-toc__list li.is-sub {
	padding-left: 16px;
}

.nm-toc__list a {
	color: var(--nm-muted-strong);
	font-size: 13px;
	line-height: 1.6;
}

.nm-toc__list a:hover {
	color: var(--nm-cyan);
}

.nm-footer-promo-wrap {
	margin-top: 30px;
}

.nm-toast.is-leaving {
	opacity: 0;
	transform: translateY(8px);
}

.nm-field-error {
	color: var(--nm-danger);
	display: block;
	font-size: 12px;
	margin-top: 4px;
}
