/* ==========================================================================
   布局层：页头、次级导航、页脚、栅格
   2.0：暗底霓虹 —— 页头用半透明玻璃 + 荧光下边线，页脚压到最深的 #06070B。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 中和 Astra 站点容器
   -------------------------------------------------------------------------- */
.site-container {
	max-width: none;
	padding: 0;
}

.site-inner {
	max-width: none;
	padding: 0;
	margin: 0;
	width: 100%;
}

.ast-container,
.ast-container * {
	box-sizing: border-box;
}

#primary {
	padding: 0;
	margin: 0;
}

.site-content > .ast-container {
	padding: 0;
}

/* --------------------------------------------------------------------------
   1.6 接管 Astra 残留的导航标记
   -------------------------------------------------------------------------- */
.tb-nav .ast-menu-toggle,
.tb-nav .ast-header-navigation-arrow,
.tb-nav .dropdown-menu-toggle,
.tb-nav .ast-arrow-svg {
	display: none !important;
}

/* --------------------------------------------------------------------------
   2. 页头
   -------------------------------------------------------------------------- */
.tb-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: rgba(10, 11, 16, 0.82);
	backdrop-filter: saturate(160%) blur(16px);
	-webkit-backdrop-filter: saturate(160%) blur(16px);
	border-bottom: 1px solid var(--tb-line);
}

/* 顶部一道 2px 荧光线 —— 暗底上代替「粗边框」做品牌锚点 */
.tb-header::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--tb-grad-line);
	box-shadow: 0 0 12px rgba(198, 255, 61, 0.6);
}

.tb-header__inner {
	display: flex;
	align-items: center;
	gap: var(--tb-sp-6);
	height: var(--tb-header-h);
}

/* 品牌 */
.tb-brand {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	flex-shrink: 0;
	line-height: 1.15;
}

.tb-brand__logo {
	max-height: 40px;
	width: auto;
}

.tb-brand__name {
	font-size: var(--tb-fs-22);
	font-weight: var(--tb-fw-black);
	color: #FFFFFF;
	letter-spacing: -0.03em;
	text-shadow: 0 0 22px rgba(198, 255, 61, 0.45);
}

.tb-brand__slogan {
	font-size: var(--tb-fs-11);
	color: var(--tb-neon-cyan);
	letter-spacing: 0.1em;
	margin-top: 2px;
}

.tb-header__brand:hover .tb-brand__name {
	color: var(--tb-blue-500);
}

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

.tb-nav__list {
	display: flex;
	align-items: center;
	gap: 2px;
}

.tb-nav__list > .tb-nav__item > a {
	padding-inline: var(--tb-sp-3);
	font-size: var(--tb-fs-14);
	white-space: nowrap;
}

.tb-nav__list .tb-nav__sub a {
	font-size: var(--tb-fs-14);
	padding-inline: var(--tb-sp-3);
}

.tb-nav__item > a {
	display: block;
	position: relative;
	padding: var(--tb-sp-2) var(--tb-sp-3);
	border-radius: var(--tb-r-sm);
	font-size: var(--tb-fs-15);
	font-weight: var(--tb-fw-medium);
	color: #A8AEC0;
	white-space: nowrap;
	transition: color var(--tb-transition), background var(--tb-transition);
}

.tb-nav__item > a:hover {
	color: var(--tb-blue-500);
	background: rgba(198, 255, 61, 0.08);
}

.tb-nav__item > a[aria-current="page"],
.tb-nav__item.is-current > a {
	color: var(--tb-blue-500);
}

.tb-nav__item > a[aria-current="page"]::after,
.tb-nav__item.is-current > a::after {
	content: "";
	position: absolute;
	left: var(--tb-sp-3);
	right: var(--tb-sp-3);
	bottom: 0;
	height: 2px;
	border-radius: 2px 2px 0 0;
	background: var(--tb-blue-500);
	box-shadow: 0 0 12px var(--tb-blue-500);
}

/* 二级下拉 */
.tb-nav__item--has-children {
	position: relative;
}

.tb-nav__item--has-children > a::before {
	content: "";
	display: inline-block;
	width: 5px;
	height: 5px;
	margin-left: 7px;
	vertical-align: 2px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	opacity: 0.45;
	transform: rotate(45deg);
	transition: transform var(--tb-transition), opacity var(--tb-transition);
}

.tb-nav__item--has-children:hover > a::before,
.tb-nav__item--has-children:focus-within > a::before {
	opacity: 1;
	transform: rotate(225deg);
}

.tb-nav__item--has-children > .tb-nav__sub {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 184px;
	padding: var(--tb-sp-2);
	background: #131520;
	border: 1px solid var(--tb-line);
	border-radius: var(--tb-r-lg);
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6), 0 0 22px rgba(198, 255, 61, 0.08);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity var(--tb-transition), transform var(--tb-transition), visibility var(--tb-transition);
	z-index: 10;
}

.tb-nav__item--has-children:hover > .tb-nav__sub,
.tb-nav__item--has-children:focus-within > .tb-nav__sub {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.tb-nav__sub a {
	display: block;
	padding: var(--tb-sp-2) var(--tb-sp-3);
	border-radius: var(--tb-r-sm);
	font-size: var(--tb-fs-14);
	color: var(--tb-ink-2);
}

.tb-nav__sub a:hover {
	background: rgba(198, 255, 61, 0.1);
	color: var(--tb-blue-500);
}

/* 头部操作区 */
.tb-header__actions {
	display: flex;
	align-items: center;
	gap: var(--tb-sp-2);
	flex-shrink: 0;
}

.tb-search {
	position: relative;
	flex-shrink: 1;
	min-width: 0;
}

.tb-search__form {
	display: flex;
	align-items: center;
	gap: var(--tb-sp-2);
	height: 40px;
	padding: 0 var(--tb-sp-2) 0 var(--tb-sp-4);
	background: #131520;
	border: 1px solid var(--tb-line);
	border-radius: var(--tb-r-pill);
	transition: border-color var(--tb-transition), box-shadow var(--tb-transition);
}

.tb-search__form:focus-within {
	border-color: var(--tb-blue-500);
	box-shadow: 0 0 0 3px rgba(198, 255, 61, 0.14);
}

.tb-search__input {
	flex: 1;
	min-width: 0;
	width: 150px;
	border: 0;
	background: transparent;
	outline: none;
	font-size: var(--tb-fs-13);
	color: #FFFFFF;
}

.tb-search__input::placeholder {
	color: var(--tb-ink-4);
}

.tb-search__btn {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: var(--tb-r-pill);
	background: transparent;
	color: var(--tb-ink-3);
	transition: background var(--tb-transition), color var(--tb-transition);
}

.tb-search__btn:hover {
	background: var(--tb-blue-500);
	color: #0A0B10;
}

/* 汉堡 */
.tb-burger {
	display: none;
	width: 40px;
	height: 40px;
	border: 1px solid var(--tb-line);
	border-radius: var(--tb-r-md);
	background: #131520;
	padding: 0;
	place-items: center;
}

.tb-burger span {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--tb-ink);
	border-radius: 2px;
	position: relative;
	transition: background var(--tb-transition);
}

.tb-burger span::before,
.tb-burger span::after {
	content: "";
	position: absolute;
	left: 0;
	width: 18px;
	height: 2px;
	background: var(--tb-ink);
	border-radius: 2px;
	transition: transform var(--tb-transition);
}

.tb-burger span::before { top: -6px; }
.tb-burger span::after  { top: 6px; }

.tb-burger[aria-expanded="true"] span { background: transparent; }
.tb-burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.tb-burger[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   3. 次级频道导航
   -------------------------------------------------------------------------- */
.tb-subnav {
	position: sticky;
	top: var(--tb-header-h);
	z-index: 190;
	background: var(--tb-bg-soft);
	border-bottom: 1px solid var(--tb-line);
	overflow-x: auto;
	scrollbar-width: none;
}

.tb-subnav::-webkit-scrollbar {
	display: none;
}

.tb-subnav .tb-container {
	display: flex;
	align-items: center;
	gap: var(--tb-sp-6);
	height: var(--tb-subnav-h);
}

.tb-subnav__group {
	display: flex;
	align-items: center;
	gap: 2px;
	flex-shrink: 0;
}

.tb-subnav__group + .tb-subnav__group {
	padding-left: var(--tb-sp-6);
	border-left: 1px solid var(--tb-line-2);
}

.tb-subnav a {
	display: block;
	padding: var(--tb-sp-1) var(--tb-sp-3);
	font-size: var(--tb-fs-13);
	color: var(--tb-ink-3);
	border-radius: var(--tb-r-sm);
	white-space: nowrap;
}

.tb-subnav a:hover {
	color: var(--tb-blue-500);
	background: rgba(198, 255, 61, 0.08);
}

.tb-subnav a.is-current {
	color: #0A0B10;
	font-weight: var(--tb-fw-bold);
	background: var(--tb-blue-500);
	box-shadow: 0 0 16px rgba(198, 255, 61, 0.4);
}

/* --------------------------------------------------------------------------
   4. 面包屑
   -------------------------------------------------------------------------- */
.tb-crumbs {
	background: var(--tb-bg-mute);
	border-bottom: 1px solid var(--tb-line-2);
	font-size: var(--tb-fs-13);
}

.tb-crumbs .tb-container {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--tb-sp-2);
	height: 46px;
}

.tb-crumbs a {
	color: var(--tb-ink-3);
}

.tb-crumbs a:hover {
	color: var(--tb-blue-500);
}

.tb-crumbs__sep {
	color: var(--tb-ink-4);
}

.tb-crumbs__cur {
	color: var(--tb-ink);
	font-weight: var(--tb-fw-medium);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 60ch;
}

/* --------------------------------------------------------------------------
   5. 内容栅格
   -------------------------------------------------------------------------- */
.tb-main {
	padding-block: var(--tb-sp-10) var(--tb-sp-20);
	/* 抬到氛围光层之上，否则会整体沉到背景里 */
	position: relative;
	z-index: 1;
}

.tb-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--tb-sidebar-w);
	gap: var(--tb-sp-12);
	align-items: start;
}

.tb-grid--wide {
	grid-template-columns: minmax(0, 1fr);
}

.tb-sidebar {
	position: sticky;
	top: calc(var(--tb-header-h) + var(--tb-subnav-h) + 24px);
	display: flex;
	flex-direction: column;
	gap: var(--tb-sp-6);
}

/* --------------------------------------------------------------------------
   6. 页脚
   -------------------------------------------------------------------------- */
.tb-footer {
	margin-top: var(--tb-sp-20);
	background: #06070B;
	color: var(--tb-ink-4);
	font-size: var(--tb-fs-13);
	position: relative;
	z-index: 1;
}

.tb-footer__main {
	display: grid;
	grid-template-columns: 1.5fr repeat(3, 1fr);
	gap: var(--tb-sp-10);
	padding-block: var(--tb-sp-16);
}

.tb-footer__brand .tb-brand__name {
	color: #FFFFFF;
	font-size: var(--tb-fs-20);
}

.tb-footer__brand .tb-brand__slogan {
	color: var(--tb-neon-cyan);
}

.tb-footer__desc {
	margin-top: var(--tb-sp-4);
	max-width: 36ch;
	line-height: 1.75;
	color: var(--tb-ink-3);
}

.tb-footer__col h3 {
	font-size: var(--tb-fs-14);
	color: #FFFFFF;
	margin-bottom: var(--tb-sp-4);
	font-weight: var(--tb-fw-bold);
	letter-spacing: 0.02em;
}

.tb-footer__col li + li {
	margin-top: var(--tb-sp-3);
}

.tb-footer__col a {
	color: var(--tb-ink-3);
	transition: color var(--tb-transition);
}

.tb-footer__col a:hover {
	color: var(--tb-blue-500);
	text-shadow: 0 0 14px rgba(198, 255, 61, 0.6);
}

.tb-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: var(--tb-sp-3);
	padding-block: var(--tb-sp-5);
	border-top: 1px solid var(--tb-line);
	font-size: var(--tb-fs-12);
	color: var(--tb-ink-4);
}

.tb-footer__bottom a {
	color: var(--tb-ink-3);
}

.tb-footer__bottom a:hover {
	color: #FFFFFF;
}