/* ==========================================================================
   霓虹矩阵 · 布局层：页头 / 栅格 / 页脚
   ========================================================================== */
.nm-site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.nm-main {
	flex: 1;
	padding-block: clamp(28px, 3.4vw, 52px);
}

/* ---------- 顶部信号条 ---------- */
.nm-topbar {
	background: rgba(5, 8, 18, 0.88);
	border-bottom: 1px solid var(--nm-border-soft);
	color: var(--nm-muted);
	font-size: var(--nm-fs-xs);
}

.nm-topbar__inner {
	align-items: center;
	display: flex;
	gap: 20px;
	justify-content: space-between;
	min-height: 34px;
}

.nm-topbar__signal {
	align-items: center;
	display: flex;
	gap: 8px;
	letter-spacing: 0.06em;
}

.nm-topbar__dot {
	background: var(--nm-success);
	border-radius: 50%;
	box-shadow: 0 0 8px var(--nm-success);
	display: inline-block;
	height: 6px;
	width: 6px;
}

.nm-topbar__links {
	align-items: center;
	display: flex;
	gap: 18px;
}

.nm-topbar__links a {
	color: var(--nm-muted);
}

.nm-topbar__links a:hover {
	color: var(--nm-cyan);
}

@media (max-width: 900px) {
	.nm-topbar {
		display: none;
	}
}

/* ---------- 页头 ---------- */
.nm-header {
	background: rgba(7, 11, 24, 0.86);
	border-bottom: 1px solid var(--nm-border);
	position: sticky;
	top: 0;
	z-index: 200;
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
}

.nm-header__inner {
	align-items: center;
	display: flex;
	gap: clamp(16px, 2.4vw, 36px);
	min-height: var(--nm-header-h);
}

.nm-brand {
	align-items: center;
	display: flex;
	flex-shrink: 0;
	gap: 11px;
	text-decoration: none;
}

.nm-brand__mark {
	align-items: center;
	background: linear-gradient(145deg, rgba(0, 229, 255, 0.16), rgba(168, 85, 247, 0.18));
	border: 1px solid rgba(0, 229, 255, 0.35);
	border-radius: 10px;
	box-shadow: inset 0 0 18px rgba(0, 229, 255, 0.16);
	display: inline-flex;
	height: 38px;
	justify-content: center;
	width: 38px;
}

.nm-brand__mark svg {
	height: 22px;
	width: 22px;
}

.nm-brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.nm-brand__name {
	color: var(--nm-text);
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 0.06em;
}

.nm-brand__name em {
	color: var(--nm-cyan);
	font-style: normal;
}

.nm-brand__tagline {
	color: var(--nm-muted);
	font-family: var(--nm-font-mono);
	font-size: 9px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.nm-brand img {
	display: block;
	max-height: 44px;
	width: auto;
}

/* 主导航 */
.nm-nav {
	flex: 1;
	min-width: 0;
}

.nm-nav ul {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nm-nav li {
	margin: 0;
	position: relative;
}

.nm-nav a {
	border-radius: 8px;
	color: var(--nm-muted-strong);
	display: block;
	font-size: 15px;
	font-weight: 500;
	padding: 9px 13px;
	position: relative;
	text-decoration: none;
	white-space: nowrap;
}

.nm-nav > ul > li > a::after {
	background: linear-gradient(90deg, var(--nm-cyan), var(--nm-purple));
	border-radius: 2px;
	bottom: 3px;
	content: "";
	height: 2px;
	left: 13px;
	opacity: 0;
	position: absolute;
	right: 13px;
	transform: scaleX(0.4);
	transition: all var(--nm-dur) var(--nm-ease);
}

.nm-nav > ul > li:hover > a,
.nm-nav > ul > li.current-menu-item > a,
.nm-nav > ul > li.current-menu-ancestor > a,
.nm-nav > ul > li > a:focus-visible {
	color: var(--nm-cyan);
}

.nm-nav > ul > li:hover > a::after,
.nm-nav > ul > li.current-menu-item > a::after,
.nm-nav > ul > li.current-menu-ancestor > a::after {
	opacity: 1;
	transform: scaleX(1);
}

/* 下拉 */
.nm-nav .sub-menu {
	background: #0c1326;
	border: 1px solid var(--nm-border);
	border-radius: 12px;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
	display: block;
	left: 0;
	min-width: 190px;
	opacity: 0;
	padding: 8px;
	pointer-events: none;
	position: absolute;
	top: calc(100% + 8px);
	transform: translateY(6px);
	transition: all var(--nm-dur) var(--nm-ease);
	visibility: hidden;
	z-index: 30;
}

.nm-nav .sub-menu::before {
	content: "";
	height: 12px;
	left: 0;
	position: absolute;
	right: 0;
	top: -12px;
}

.nm-nav li:hover > .sub-menu,
.nm-nav li:focus-within > .sub-menu {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
	visibility: visible;
}

.nm-nav .sub-menu a {
	border-radius: 7px;
	font-size: 14px;
	padding: 8px 12px;
}

.nm-nav .sub-menu a:hover {
	background: rgba(0, 229, 255, 0.08);
	color: var(--nm-cyan);
}

.nm-nav .sub-menu .sub-menu {
	left: 100%;
	top: -8px;
}

/* 页头动作区 */
.nm-header__actions {
	align-items: center;
	display: flex;
	flex-shrink: 0;
	gap: 8px;
}

.nm-icon-btn {
	align-items: center;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--nm-border);
	border-radius: 10px;
	color: var(--nm-muted-strong);
	display: inline-flex;
	height: 38px;
	justify-content: center;
	padding: 0;
	width: 38px;
}

.nm-icon-btn:hover {
	background: rgba(0, 229, 255, 0.08);
	border-color: var(--nm-border-strong);
	color: var(--nm-cyan);
}

.nm-icon-btn svg {
	height: 18px;
	width: 18px;
}

.nm-header__login {
	border: 1px solid var(--nm-border);
	border-radius: 999px;
	color: var(--nm-text);
	font-size: var(--nm-fs-sm);
	padding: 8px 16px;
}

.nm-header__login:hover {
	border-color: var(--nm-border-strong);
	color: var(--nm-cyan);
}

.nm-menu-toggle {
	display: none;
}

@media (max-width: 1180px) {
	.nm-nav > ul > li > a {
		font-size: 14px;
		padding: 8px 9px;
	}

	.nm-header__login {
		display: none;
	}
}

@media (max-width: 1024px) {
	.nm-nav {
		display: none;
	}

	.nm-menu-toggle {
		display: inline-flex;
	}

	.nm-header__inner {
		justify-content: space-between;
	}
}

/* 移动抽屉 */
.nm-drawer {
	background: #080d1c;
	border-left: 1px solid var(--nm-border);
	bottom: 0;
	display: flex;
	flex-direction: column;
	max-width: 360px;
	position: fixed;
	right: 0;
	top: 0;
	transform: translateX(102%);
	transition: transform 0.34s var(--nm-ease);
	width: 88vw;
	z-index: 500;
	overflow-y: auto;
	padding: 22px;
}

.nm-drawer.is-open {
	transform: translateX(0);
}

.nm-drawer__head {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin-bottom: 20px;
}

.nm-drawer__close {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--nm-border);
	border-radius: 10px;
	color: var(--nm-text);
	font-size: 22px;
	height: 38px;
	line-height: 1;
	padding: 0;
	width: 38px;
}

.nm-drawer__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nm-drawer__nav li {
	border-bottom: 1px solid var(--nm-border-soft);
	margin: 0;
}

.nm-drawer__nav a {
	color: var(--nm-muted-strong);
	display: flex;
	font-size: 16px;
	justify-content: space-between;
	padding: 13px 4px;
}

.nm-drawer__nav a:hover {
	color: var(--nm-cyan);
}

.nm-drawer__nav .sub-menu {
	padding-left: 16px;
}

.nm-drawer__nav .sub-menu a {
	font-size: 14px;
	padding-block: 9px;
}

.nm-drawer__foot {
	display: grid;
	gap: 10px;
	margin-top: auto;
	padding-top: 26px;
}

.nm-drawer__search {
	margin-bottom: 18px;
}

.nm-overlay {
	background: rgba(2, 4, 10, 0.66);
	inset: 0;
	opacity: 0;
	pointer-events: none;
	position: fixed;
	transition: opacity var(--nm-dur) var(--nm-ease);
	z-index: 400;
	backdrop-filter: blur(2px);
}

.nm-overlay.is-active {
	opacity: 1;
	pointer-events: auto;
}

/* 搜索层 */
.nm-search-panel {
	background: #0a1020;
	border-bottom: 1px solid var(--nm-border);
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
	display: none;
	left: 0;
	padding: 22px 0;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 450;
}

.nm-search-panel.is-open {
	display: block;
}

.nm-search-panel form {
	align-items: center;
	display: flex;
	gap: 10px;
}

.nm-search-panel input[type="search"] {
	background: rgba(5, 10, 22, 0.8);
	border-radius: 10px;
	font-size: 16px;
	height: 46px;
}

.nm-search-panel__hint {
	color: var(--nm-muted);
	font-size: var(--nm-fs-xs);
	margin-top: 10px;
}

/* ---------- 页面头部 / 面包屑 ---------- */
.nm-breadcrumbs {
	align-items: center;
	color: var(--nm-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: var(--nm-fs-xs);
	gap: 6px;
	margin-bottom: 18px;
}

.nm-breadcrumbs a {
	color: var(--nm-muted);
}

.nm-breadcrumbs a:hover {
	color: var(--nm-cyan);
}

.nm-breadcrumbs__sep {
	color: #53627b;
}

.nm-breadcrumbs__current {
	color: var(--nm-muted-strong);
}

.nm-page-head {
	margin-bottom: clamp(22px, 3vw, 36px);
}

.nm-page-head__eyebrow {
	color: var(--nm-cyan);
	font-family: var(--nm-font-mono);
	font-size: var(--nm-fs-xs);
	letter-spacing: 0.24em;
	margin-bottom: 10px;
	text-transform: uppercase;
}

.nm-page-head h1 {
	font-size: var(--nm-fs-2xl);
	margin-bottom: 10px;
}

.nm-page-head__desc {
	color: var(--nm-muted);
	font-size: var(--nm-fs-base);
	max-width: 780px;
}

.nm-page-head__desc p:last-child {
	margin-bottom: 0;
}

/* ---------- 内容栅格 ---------- */
.nm-layout {
	display: grid;
	gap: clamp(24px, 2.6vw, 40px);
	grid-template-columns: minmax(0, 1fr) 320px;
}

.nm-layout--full {
	grid-template-columns: minmax(0, 1fr);
}

.nm-main-col {
	min-width: 0;
}

.nm-sidebar {
	display: flex;
	flex-direction: column;
	gap: 22px;
	min-width: 0;
}

@media (max-width: 1080px) {
	.nm-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.nm-sidebar {
		display: grid;
		gap: 20px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.nm-sidebar {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- 页脚 ---------- */
.nm-footer {
	background: linear-gradient(180deg, rgba(8, 12, 26, 0.5), #050812);
	border-top: 1px solid var(--nm-border);
	margin-top: clamp(40px, 5vw, 76px);
	padding-block: clamp(36px, 4vw, 56px) 26px;
	position: relative;
}

.nm-footer::before {
	background: linear-gradient(90deg, transparent, var(--nm-cyan), var(--nm-purple), transparent);
	content: "";
	height: 1px;
	left: 0;
	opacity: 0.55;
	position: absolute;
	right: 0;
	top: -1px;
}

.nm-footer__grid {
	display: grid;
	gap: 32px;
	grid-template-columns: 1.5fr repeat(3, 1fr);
}

.nm-footer__brand p {
	color: var(--nm-muted);
	font-size: var(--nm-fs-sm);
	margin: 14px 0;
	max-width: 340px;
}

.nm-footer__title {
	color: var(--nm-text);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	margin-bottom: 14px;
}

.nm-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nm-footer li {
	margin-bottom: 8px;
}

.nm-footer li a {
	color: var(--nm-muted);
	font-size: var(--nm-fs-sm);
}

.nm-footer li a:hover {
	color: var(--nm-cyan);
}

.nm-footer__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.nm-footer__bottom {
	align-items: center;
	border-top: 1px solid var(--nm-border-soft);
	color: #7c8aa2;
	display: flex;
	flex-wrap: wrap;
	font-size: var(--nm-fs-xs);
	gap: 12px;
	justify-content: space-between;
	margin-top: 36px;
	padding-top: 20px;
}

.nm-footer__bottom a {
	color: #8e9cb4;
}

.nm-footer__bottom a:hover {
	color: var(--nm-cyan);
}

.nm-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.nm-compliance-note {
	background: rgba(255, 180, 84, 0.05);
	border: 1px solid rgba(255, 180, 84, 0.16);
	border-radius: 10px;
	color: #b9a68d;
	font-size: var(--nm-fs-xs);
	line-height: 1.7;
	margin-top: 18px;
	padding: 12px 14px;
}

@media (max-width: 900px) {
	.nm-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 560px) {
	.nm-footer__grid {
		grid-template-columns: 1fr;
	}
}
