/* ==========================================================================
   基础层：重置、排版、链接、辅助工具

   2.0 改动：暗底体系。正文字色定在 #C4C7D4（--tb-ink-2）而非纯白 ——
   纯白正文在近黑底上长时间阅读会刺眼且字重发虚。
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--tb-header-h) + var(--tb-subnav-h) + 16px);
}

body {
	margin: 0;
	font-family: var(--tb-font);
	font-size: var(--tb-fs-15);
	line-height: var(--tb-lh-body);
	color: var(--tb-ink-2);
	background: var(--tb-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-wrap: break-word;
}

/*
 * 氛围光层：三处径向渐变，给近黑底一点呼吸感。
 * 固定定位 + pointer-events:none，不参与布局也不拦截交互。
 * 频道色变化时不跟着变 —— 它是「环境光」不是「品牌色」。
 */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background:
		radial-gradient(60vw 40vh at 12% -5%, rgba(198, 255, 61, 0.09), transparent 60%),
		radial-gradient(50vw 36vh at 92% 8%, rgba(43, 245, 255, 0.07), transparent 60%),
		radial-gradient(46vw 34vh at 50% 105%, rgba(255, 62, 165, 0.06), transparent 60%);
}

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-weight: var(--tb-fw-bold);
	line-height: var(--tb-lh-tight);
	color: var(--tb-ink);
	letter-spacing: -0.015em;
}

p {
	margin: 0;
}

ul, ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

img, svg, video {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color var(--tb-transition);
}

a:hover {
	color: var(--tb-color);
}

button {
	font-family: inherit;
	font-size: inherit;
	cursor: pointer;
}

input, textarea, select {
	font-family: inherit;
	font-size: inherit;
}

hr {
	border: 0;
	border-top: 1px solid var(--tb-line);
	margin: var(--tb-sp-8) 0;
}

/* 键盘可达性：只在键盘导航时显示焦点环 */
:focus-visible {
	outline: 2px solid var(--tb-blue-500);
	outline-offset: 2px;
	border-radius: var(--tb-r-sm);
}

::selection {
	background: rgba(198, 255, 61, 0.26);
	color: #F2F3F8;
}

/* 资讯站正文中的外链 */
.tb-content a:not(.tb-btn) {
	color: var(--tb-blue-500);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

/* ---- 辅助类 ---- */
.tb-container {
	width: 100%;
	max-width: var(--tb-container);
	margin-inline: auto;
	padding-inline: var(--tb-gutter);
}

.tb-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.tb-skip-link {
	position: absolute;
	top: -60px;
	left: var(--tb-gutter);
	z-index: 999;
	padding: var(--tb-sp-2) var(--tb-sp-4);
	background: var(--tb-blue-500);
	color: #0A0B10;
	border-radius: 0 0 var(--tb-r-md) var(--tb-r-md);
	font-weight: var(--tb-fw-bold);
	transition: top var(--tb-transition);
}

.tb-skip-link:focus {
	top: 0;
	color: #0A0B10;
}

.tb-num {
	font-family: var(--tb-font-num);
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}