/* ==========================================================================
   组件层：按钮、标签、元信息、区块头、卡片、侧栏、分页

   2.0 暗色霓虹要点：
   - 暗底上不用投影，改用**辉光**（box-shadow 带主色）
   - 卡片 hover 时边框换成频道色并发光，而不是「抬起来」
   - 频道色只出现在细处：色条、序号环、hover 描边
   ========================================================================== */

/* --------------------------------------------------------------------------
   按钮
   -------------------------------------------------------------------------- */
.tb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--tb-sp-2);
	height: 40px;
	padding: 0 var(--tb-sp-6);
	border-radius: var(--tb-r-pill);
	border: 1px solid transparent;
	font-size: var(--tb-fs-14);
	font-weight: var(--tb-fw-medium);
	white-space: nowrap;
	cursor: pointer;
	transition: all var(--tb-transition);
}

.tb-btn--solid {
	background: var(--tb-blue-500);
	color: #0A0B10;
	font-weight: var(--tb-fw-bold);
}

.tb-btn--solid:hover {
	background: var(--tb-blue-400);
	color: #0A0B10;
	box-shadow: 0 0 22px rgba(198, 255, 61, 0.45);
}

.tb-btn--ghost {
	background: transparent;
	border-color: var(--tb-line);
	color: var(--tb-ink-2);
}

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

.tb-btn--onDark {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.3);
	color: #fff;
	backdrop-filter: blur(4px);
}

.tb-btn--onDark:hover {
	background: #fff;
	border-color: #fff;
	color: var(--tb-blue-800);
}

.tb-btn--sm {
	height: 34px;
	padding: 0 var(--tb-sp-4);
	font-size: var(--tb-fs-13);
}

/* 箭头图标 */
.tb-arrow {
	display: inline-block;
	width: 6px;
	height: 6px;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform var(--tb-transition);
}

a:hover .tb-arrow,
.tb-btn:hover .tb-arrow {
	transform: rotate(45deg) translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   标签 / 徽标
   -------------------------------------------------------------------------- */
.tb-tag {
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding: 0 var(--tb-sp-3);
	border-radius: var(--tb-r-pill);
	background: rgba(198, 255, 61, 0.12);
	color: var(--tb-blue-500);
	font-size: var(--tb-fs-11);
	font-weight: var(--tb-fw-medium);
	white-space: nowrap;
}

.tb-tag:hover {
	background: rgba(198, 255, 61, 0.22);
}

.tb-tag--hot {
	background: rgba(255, 77, 77, 0.14);
	color: var(--tb-red-500);
}

.tb-tag--solid {
	background: var(--tb-blue-500);
	color: #0A0B10;
	font-weight: var(--tb-fw-bold);
}

/* --------------------------------------------------------------------------
   元信息行
   -------------------------------------------------------------------------- */
.tb-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--tb-sp-2);
	font-size: var(--tb-fs-12);
	color: var(--tb-ink-4);
	line-height: 1.4;
}

/* 分类链接：取所属频道色，行高撑到 24px 满足触控标准 */
.tb-meta__cat {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding-right: 2px;
	color: var(--ch, var(--tb-blue-500));
	font-weight: var(--tb-fw-medium);
}

.tb-meta__cat:hover {
	color: var(--ch, var(--tb-blue-500));
	text-shadow: 0 0 14px var(--ch, var(--tb-blue-500));
}

.tb-meta__sep {
	color: var(--tb-line);
}

/* --------------------------------------------------------------------------
   区块标题条
   --------------------------------------------------------------------------
   【移动端竖排修复 —— 2.0 必须保留】
   标题必须 nowrap 且不参与压缩，副标题给 min-width:0 允许省略。
   否则副标题（长句不换行）会把标题压到每行 1 个字。 */
.tb-sechead {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--tb-sp-4);
	padding-bottom: var(--tb-sp-3);
	margin-bottom: var(--tb-sp-6);
	border-bottom: 1px solid var(--tb-line);
}

.tb-sechead__main {
	display: flex;
	align-items: baseline;
	gap: var(--tb-sp-3);
	min-width: 0;
	flex: 1 1 auto;
}

.tb-sechead__title {
	position: relative;
	padding-left: var(--tb-sp-4);
	flex: 0 0 auto;
	white-space: nowrap;
	font-size: var(--tb-fs-24);
	font-weight: var(--tb-fw-black);
	letter-spacing: -0.025em;
	color: var(--tb-ink);
}

/* 频道色条：暗底上靠双层辉光制造发光感 */
.tb-sechead__title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 5px;
	height: 24px;
	border-radius: 3px;
	background: var(--ch, var(--tb-blue-500));
	box-shadow: 0 0 12px var(--ch, var(--tb-blue-500)), 0 0 26px var(--ch, var(--tb-blue-500));
}

.tb-sechead__sub {
	min-width: 0;
	flex: 1 1 auto;
	font-size: var(--tb-fs-13);
	color: var(--tb-ink-4);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tb-sechead__more {
	display: inline-flex;
	align-items: center;
	gap: var(--tb-sp-1);
	flex-shrink: 0;
	font-size: var(--tb-fs-13);
	color: var(--tb-ink-3);
	padding-bottom: 3px;
	transition: color var(--tb-transition), text-shadow var(--tb-transition);
}

.tb-sechead__more:hover {
	color: var(--ch, var(--tb-blue-500));
	text-shadow: 0 0 14px var(--ch, var(--tb-blue-500));
}

/* --------------------------------------------------------------------------
   频道识别色挂载
   -------------------------------------------------------------------------- */
#channel-ai-martech    { --ch: var(--ch-ai-martech);    --ch-soft: var(--ch-ai-martech-soft); }
#channel-martech-stack { --ch: var(--ch-martech-stack); --ch-soft: var(--ch-martech-stack-soft); }
#channel-growth-method { --ch: var(--ch-growth-method); --ch-soft: var(--ch-growth-method-soft); }
#channel-tools-review  { --ch: var(--ch-tools-review);  --ch-soft: var(--ch-tools-review-soft); }
#channel-rankings      { --ch: var(--ch-rankings);      --ch-soft: var(--ch-rankings-soft); }

/* 列表页 / 文章页的频道头也取同色 */
.tb-archive .tb-archive__grouptitle b { color: var(--ch, var(--tb-blue-500)); }

/* --------------------------------------------------------------------------
   卡片容器
   -------------------------------------------------------------------------- */
.tb-card--feature,
.tb-card--tile,
.tb-gridview .tb-card,
.tb-topicgrid .tb-card {
	background: var(--tb-bg-soft);
	border: 1px solid var(--tb-line);
	border-radius: var(--tb-r-lg);
	overflow: hidden;
	transition: border-color var(--tb-transition), box-shadow var(--tb-transition), transform var(--tb-transition);
}

.tb-card--feature:hover,
.tb-card--tile:hover,
.tb-gridview .tb-card:hover,
.tb-topicgrid .tb-card:hover {
	border-color: var(--ch, var(--tb-blue-500));
	box-shadow: 0 0 28px color-mix(in srgb, var(--ch, #C6FF3D) 32%, transparent);
	transform: translateY(-3px);
}

.tb-card--feature .tb-card__body,
.tb-card--tile .tb-card__body {
	padding: var(--tb-sp-4) var(--tb-sp-5) var(--tb-sp-5);
}

.tb-card--feature .tb-card__thumb,
.tb-card--tile .tb-card__thumb,
.tb-gridview .tb-card__thumb,
.tb-topicgrid .tb-card__thumb {
	border-radius: 0;
}

/* --------------------------------------------------------------------------
   缩略图
   --------------------------------------------------------------------------
   暗底上把图压暗一档并提饱和，图和霓虹色才融成一体而不是互相打架。 */
.tb-thumb {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	background: #12141C;
	overflow: hidden;
	border-radius: inherit;
}

.tb-thumb__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(1.12) brightness(0.92);
	transition: transform 500ms cubic-bezier(0.2, 0, 0.2, 1), filter var(--tb-transition);
}

a:hover .tb-thumb__img,
.tb-card:hover .tb-thumb__img {
	transform: scale(1.06);
	filter: saturate(1.3) brightness(1.02);
}

/* 无图占位 */
.tb-thumb--empty {
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, #14251A 0%, #0A0B10 100%);
}

.tb-thumb__cover {
	transform-origin: center;
	filter: saturate(1.05) brightness(0.95);
}

a:hover .tb-thumb__cover,
.tb-card:hover .tb-thumb__cover {
	transform: scale(1.05);
	filter: saturate(1.15) brightness(1);
}

.tb-thumb__char {
	font-size: var(--tb-fs-32);
	font-weight: var(--tb-fw-black);
	color: rgba(255, 255, 255, 0.24);
	line-height: 1;
	user-select: none;
}

/* --------------------------------------------------------------------------
   文章卡片
   -------------------------------------------------------------------------- */
.tb-card {
	position: relative;
	display: flex;
	gap: var(--tb-sp-4);
	min-width: 0;
}

.tb-card__thumb {
	flex-shrink: 0;
	display: block;
	border-radius: var(--tb-r-md);
	overflow: hidden;
	background: #12141C;
}

.tb-card__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: var(--tb-sp-2);
}

.tb-card__title {
	font-size: var(--tb-fs-16);
	font-weight: var(--tb-fw-bold);
	line-height: 1.45;
	letter-spacing: -0.01em;
	color: var(--tb-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color var(--tb-transition), text-shadow var(--tb-transition);
}

.tb-card__title a:hover {
	color: var(--ch, var(--tb-blue-500));
	text-shadow: 0 0 18px var(--ch, var(--tb-blue-500));
}

.tb-card__excerpt {
	font-size: var(--tb-fs-13);
	line-height: 1.7;
	color: var(--tb-ink-3);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* --- 列表式 --- */
.tb-card--list .tb-card__thumb {
	width: 132px;
	height: 88px;
}

.tb-card--list .tb-card__title {
	font-size: var(--tb-fs-15);
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.tb-card--list {
	padding-bottom: var(--tb-sp-4);
	margin-bottom: var(--tb-sp-4);
	border-bottom: 1px solid var(--tb-line-2);
}

.tb-card--list:last-child {
	padding-bottom: 0;
	margin-bottom: 0;
	border-bottom: 0;
}

/* --- 头条式 --- */
.tb-card--lead .tb-card__thumb {
	width: 264px;
	height: 178px;
}

.tb-card--lead .tb-card__title {
	font-size: var(--tb-fs-24);
	font-weight: var(--tb-fw-black);
	letter-spacing: -0.02em;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.tb-card--lead .tb-card__excerpt {
	font-size: var(--tb-fs-14);
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

/* --- 特色式 / 图上文下 --- */
.tb-card--feature,
.tb-card--tile {
	flex-direction: column;
	gap: 0;
}

.tb-card--feature .tb-card__thumb,
.tb-card--tile .tb-card__thumb {
	width: 100%;
	aspect-ratio: 16 / 10;
	border-radius: 0;
}

.tb-card--feature .tb-card__title {
	font-size: var(--tb-fs-17);
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.tb-card--tile .tb-card__title {
	font-size: var(--tb-fs-15);
	-webkit-line-clamp: 3;
	line-clamp: 3;
	font-weight: var(--tb-fw-medium);
}

/* --- 榜单式 --- */
.tb-card--rank {
	align-items: flex-start;
	gap: var(--tb-sp-3);
	padding: var(--tb-sp-3) 0;
	border-bottom: 1px dashed var(--tb-line-2);
}

.tb-card--rank:last-child {
	border-bottom: 0;
}

.tb-card--rank .tb-card__thumb {
	width: 88px;
	height: 60px;
}

.tb-card--rank .tb-card__title {
	font-size: var(--tb-fs-14);
	font-weight: var(--tb-fw-medium);
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

/* 榜单序号：空心方环 + 频道色，前三名实心 */
.tb-card__no {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	display: grid;
	place-items: center;
	border-radius: var(--tb-r-sm);
	background: transparent;
	border: 1px solid var(--ch, var(--tb-line));
	color: var(--ch, var(--tb-ink-3));
	font-family: var(--tb-font-num);
	font-size: var(--tb-fs-12);
	font-weight: var(--tb-fw-black);
	font-style: normal;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.tb-card--rank:nth-child(-n + 3) .tb-card__no {
	background: var(--ch, var(--tb-blue-500));
	border-color: var(--ch, var(--tb-blue-500));
	color: #0A0B10;
	box-shadow: 0 0 14px color-mix(in srgb, var(--ch, #C6FF3D) 55%, transparent);
}

.tb-card--rank:nth-child(1) .tb-card__no {
	background: var(--tb-grad-line);
	border-color: transparent;
	color: #0A0B10;
	box-shadow: 0 0 20px rgba(198, 255, 61, 0.6);
}

/* --------------------------------------------------------------------------
   侧栏组件
   -------------------------------------------------------------------------- */
.tb-widget {
	padding: var(--tb-sp-6);
	background: var(--tb-bg-soft);
	border: 1px solid var(--tb-line);
	border-radius: var(--tb-r-lg);
}

.tb-widget .tb-sechead {
	padding-bottom: var(--tb-sp-3);
	margin-bottom: var(--tb-sp-3);
	border-bottom-width: 1px;
}

.tb-widget .tb-sechead__title {
	font-size: var(--tb-fs-16);
}

.tb-widget .tb-sechead__title::before {
	height: 14px;
	width: 4px;
}

.tb-widget .tb-sechead__sub {
	display: none;
}

/* 最新发布 */
.tb-newlist__item {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--tb-sp-3);
	padding: var(--tb-sp-3) 0;
	border-bottom: 1px dashed var(--tb-line-2);
}

.tb-newlist__item:last-child {
	border-bottom: 0;
}

.tb-newlist__item a {
	font-size: var(--tb-fs-14);
	color: var(--tb-ink-2);
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

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

.tb-newlist__item time {
	flex-shrink: 0;
	font-family: var(--tb-font-num);
	font-size: var(--tb-fs-12);
	color: var(--tb-ink-4);
}

/* CTA 侧卡 */
.tb-widget--cta {
	background: var(--tb-grad-dark);
	border: 1px solid var(--ch-ai-martech);
	box-shadow: 0 0 32px rgba(198, 255, 61, 0.12);
	color: #fff;
	position: relative;
	overflow: hidden;
}

.tb-widget--cta::after {
	content: "";
	position: absolute;
	right: -40px;
	top: -40px;
	width: 180px;
	height: 180px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(43, 245, 255, 0.28) 0%, transparent 70%);
}

.tb-cta__eyebrow {
	position: relative;
	font-size: var(--tb-fs-12);
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.55);
	text-transform: uppercase;
}

.tb-cta__title {
	position: relative;
	margin: var(--tb-sp-2) 0 var(--tb-sp-3);
	font-size: var(--tb-fs-20);
	color: #FFFFFF;
	font-weight: var(--tb-fw-black);
	letter-spacing: -0.02em;
}

.tb-cta__text {
	position: relative;
	font-size: var(--tb-fs-13);
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.72);
	margin-bottom: var(--tb-sp-5);
}

.tb-cta__btn {
	position: relative;
	background: var(--tb-blue-500);
	color: #0A0B10;
	font-weight: var(--tb-fw-bold);
	width: 100%;
}

.tb-cta__btn:hover {
	background: var(--tb-neon-cyan);
	color: #0A0B10;
	box-shadow: 0 0 22px rgba(43, 245, 255, 0.5);
}

/* --------------------------------------------------------------------------
   分页
   -------------------------------------------------------------------------- */
.tb-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: var(--tb-sp-2);
	margin-top: var(--tb-sp-12);
	padding-top: var(--tb-sp-8);
	border-top: 1px solid var(--tb-line);
}

.tb-pager .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 var(--tb-sp-2);
	background: var(--tb-bg-soft);
	border: 1px solid var(--tb-line);
	border-radius: var(--tb-r-md);
	font-size: var(--tb-fs-14);
	font-family: var(--tb-font-num);
	color: var(--tb-ink-2);
	transition: all var(--tb-transition);
}

.tb-pager .page-numbers:hover {
	border-color: var(--tb-blue-500);
	color: var(--tb-blue-500);
	background: rgba(198, 255, 61, 0.08);
	box-shadow: 0 0 16px rgba(198, 255, 61, 0.25);
}

.tb-pager .page-numbers.current {
	background: var(--tb-blue-500);
	border-color: var(--tb-blue-500);
	color: #0A0B10;
	font-weight: var(--tb-fw-black);
	box-shadow: 0 0 20px rgba(198, 255, 61, 0.45);
}

.tb-pager .page-numbers.dots {
	border-color: transparent;
	background: transparent;
	color: var(--tb-ink-4);
}

/* --------------------------------------------------------------------------
   空状态
   -------------------------------------------------------------------------- */
.tb-empty {
	padding: var(--tb-sp-16) var(--tb-sp-6);
	text-align: center;
	background: var(--tb-bg-mute);
	border: 1px dashed var(--tb-line);
	border-radius: var(--tb-r-lg);
}

.tb-empty__title {
	font-size: var(--tb-fs-18);
	font-weight: var(--tb-fw-bold);
	color: var(--tb-ink-2);
}

.tb-empty__text {
	margin-top: var(--tb-sp-2);
	font-size: var(--tb-fs-14);
	color: var(--tb-ink-4);
}

/* --------------------------------------------------------------------------
   频道头（分类页顶部）
   -------------------------------------------------------------------------- */
.tb-chanhead {
	position: relative;
	overflow: hidden;
	padding: var(--tb-sp-12) var(--tb-sp-10);
	border-radius: var(--tb-r-2xl);
	background: var(--tb-grad-dark);
	border: 1px solid var(--tb-line);
	color: #fff;
	margin-bottom: var(--tb-sp-10);
}

.tb-chanhead::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 88% 14%, rgba(43, 245, 255, 0.28) 0%, transparent 48%),
		radial-gradient(circle at 8% 96%, rgba(198, 255, 61, 0.2) 0%, transparent 54%);
}

.tb-chanhead__inner {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--tb-sp-8);
	flex-wrap: wrap;
}

.tb-chanhead__eyebrow {
	font-size: var(--tb-fs-12);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
	margin-bottom: var(--tb-sp-2);
}

.tb-chanhead__title {
	font-size: var(--tb-fs-40);
	font-weight: var(--tb-fw-black);
	color: #FFFFFF;
	letter-spacing: -0.03em;
	line-height: 1.2;
}

.tb-chanhead__desc {
	margin-top: var(--tb-sp-3);
	max-width: 62ch;
	font-size: var(--tb-fs-15);
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.72);
}

.tb-chanhead__stats {
	display: flex;
	gap: var(--tb-sp-10);
	flex-shrink: 0;
}

.tb-chanhead__stat b {
	display: block;
	font-family: var(--tb-font-num);
	font-size: var(--tb-fs-32);
	font-weight: var(--tb-fw-black);
	line-height: 1.1;
	color: var(--tb-blue-500);
	text-shadow: 0 0 26px rgba(198, 255, 61, 0.5);
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}

.tb-chanhead__stat span {
	font-size: var(--tb-fs-12);
	color: rgba(255, 255, 255, 0.55);
}

/* 频道内子分类筛选条 */
.tb-filterbar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--tb-sp-2);
	margin-bottom: var(--tb-sp-8);
	padding-bottom: var(--tb-sp-5);
	border-bottom: 1px solid var(--tb-line);
}

.tb-filterbar a {
	display: inline-flex;
	align-items: center;
	height: 34px;
	padding: 0 var(--tb-sp-4);
	background: var(--tb-bg-soft);
	border: 1px solid var(--tb-line);
	border-radius: var(--tb-r-pill);
	font-size: var(--tb-fs-13);
	color: var(--tb-ink-2);
	transition: all var(--tb-transition);
}

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

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

.tb-filterbar__count {
	margin-left: var(--tb-sp-1);
	opacity: 0.6;
	font-family: var(--tb-font-num);
}