/*!
 * Theme Name: zhime
 * Theme URI:  https://www.67v.cn
 * Description: 智言小站的产品展示风 WordPress 主题 — 白底、蓝色点缀、大横幅、主题卡片、多列页脚，视觉参考 themebetter.com。
 * Author:     Coco
 * Author URI: https://www.67v.cn
 * Version:    1.9.2
 * License:    GNU General Public License v2 or later
 * Text Domain: zhime
 */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
	--bg:        #ffffff;
	--bg-soft:   #f7f9fc;
	--bg-blue:   #eef5ff;
	--line:      #eef1f6;
	--line-2:    #dfe5ee;

	--ink:       #17263d;
	--ink-2:     #55647a;
	--ink-3:     #93a0b4;

	--blue:      #1e6ff5;
	--blue-dark: #1a5fd6;
	--blue-soft: #e8f1ff;
	--cyan:      #0ea5e9;

	--font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", Roboto, Arial, sans-serif;
	--mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;

	--w:    1200px;
	--head-h: 68px;
	--r:    10px;
	--r-sm: 6px;
	--r-pill: 999px;

	--shadow:  0 2px 12px rgba(23, 38, 61, .06);
	--shadow-l:0 8px 28px rgba(30, 111, 245, .12);
	--ease: cubic-bezier(.25,.6,.3,1);
	--tr:   .22s var(--ease);
}

/* =============================================================
   2. Reset & Base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }

/* 组件里的 display 规则会盖掉浏览器默认的 [hidden]，筛选隐藏必须靠它兜底 */
[hidden] { display: none !important; }

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--tr); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; }

h1, h2, h3, h4, h5, h6 { margin: 0 0 .55em; font-weight: 700; line-height: 1.3; color: var(--ink); }

::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.tb-container { max-width: var(--w); margin: 0 auto; padding: 0 24px; }

/* 元件 -------------------------------------------------------- */
.tb-cat {
	display: inline-block;
	padding: 3px 10px;
	background: var(--blue-soft);
	color: var(--blue);
	border-radius: var(--r-pill);
	font-size: 12px;
	font-weight: 600;
}
.tb-cat:hover { background: var(--blue); color: #fff; }

/* 列表卡封面右上角悬浮分类 — 毛玻璃胶囊，卡片 hover 时点亮为蓝色 */
.tb-cat-shot {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	padding: 4px 11px;
	border-radius: var(--r-pill);
	background: rgba(255, 255, 255, .82);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	box-shadow: 0 2px 10px rgba(15, 28, 48, .16), inset 0 0 0 1px rgba(255, 255, 255, .5);
	font-size: 11.5px;
	line-height: 1.5;
	letter-spacing: .02em;
	transition: var(--tr);
}
.tb-cat-shot a, .tb-cat-shot .tb-cat { background: none; padding: 0; border-radius: 0; color: var(--blue); font-size: inherit; font-weight: 700; box-shadow: none; }
.tb-cat-shot:hover, .tb-card:hover .tb-cat-shot {
	background: linear-gradient(135deg, var(--blue), #5b93ff);
	color: #fff;
	box-shadow: 0 6px 16px rgba(30, 111, 245, .4), inset 0 0 0 1px rgba(255, 255, 255, .18);
	transform: translateY(-1px);
}
.tb-cat-shot:hover a, .tb-card:hover .tb-cat-shot a, .tb-card:hover .tb-cat-shot .tb-cat { color: #fff; }

.tb-tag-label {
	display: inline-block;
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--blue);
	font-weight: 500;
}

.tb-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 26px;
	background: var(--blue);
	color: #fff;
	border: 1px solid var(--blue);
	border-radius: var(--r-pill);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: var(--tr);
}
.tb-btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }

/* 顶栏“联系我”紧凑按钮，与 36px 图标按钮等高 */
.tb-head-cta {
	height: 34px;
	padding: 0 16px;
	font-size: 13px;
	gap: 0;
	font-weight: 600;
	box-shadow: 0 2px 8px rgba(30, 111, 245, .22);
}

.tb-btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.tb-btn-ghost:hover { border-color: var(--blue); color: var(--blue); background: #fff; }

/* =============================================================
   3. 顶栏
   ============================================================= */
.tb-head {
	position: sticky;
	top: 0;
	z-index: 70;
	background: rgba(255, 255, 255, .96);
	border-bottom: 1px solid var(--line);
}
.tb-head-inner {
	max-width: var(--w);
	margin: 0 auto;
	padding: 0 24px;
	height: var(--head-h);
	display: flex;
	align-items: center;
	gap: 30px;
}

.tb-logo { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.tb-logo-mark {
	width: 30px; height: 30px;
	display: grid; place-items: center;
	background: var(--blue);
	color: #fff;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 800;
}
.tb-logo i { font-style: normal; color: var(--blue); }

.tb-nav { flex: 1; }
.tb-nav ul { display: flex; gap: 4px; list-style: none; }
.tb-nav a {
	display: block;
	padding: 8px 14px;
	border-radius: var(--r-sm);
	font-size: 14.5px;
	font-weight: 500;
	color: var(--ink-2);
}
.tb-nav a:hover { color: var(--blue); background: var(--bg-blue); }
.tb-nav .current-menu-item > a, .tb-nav a[aria-current="page"] { color: var(--blue); background: var(--bg-blue); font-weight: 600; }

/* 二级下拉 */
.tb-nav > ul > li { position: relative; padding-bottom: 16px; margin-bottom: -16px; }
.tb-nav .menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	margin-left: 6px;
	border-left: 3.5px solid transparent;
	border-right: 3.5px solid transparent;
	border-top: 4px solid currentColor;
	opacity: .45;
	vertical-align: 1px;
}
.tb-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 172px;
	padding: 6px;
	background: #fff;
	border: 1px solid var(--line-2);
	border-radius: 10px;
	box-shadow: 0 14px 34px rgba(23, 38, 61, .12);
	display: flex;
	flex-direction: column;
	gap: 2px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.tb-nav li:hover > .sub-menu,
.tb-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.tb-nav .sub-menu li { position: static; padding: 0; margin: 0; }
.tb-nav .sub-menu a { padding: 9px 12px; font-size: 13.5px; border-radius: 7px; }
.tb-nav .sub-menu a::after { content: none; }
.tb-nav .sub-menu .current-menu-item > a { color: var(--blue); background: var(--bg-blue); font-weight: 600; }

.tb-head-act { display: flex; align-items: center; gap: 10px; }
.tb-icon-btn {
	width: 36px; height: 36px;
	display: grid; place-items: center;
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	color: var(--ink-2);
	cursor: pointer;
	transition: var(--tr);
}
.tb-icon-btn:hover { color: var(--blue); border-color: var(--blue); background: #fff; }
.tb-burger { display: none; }

/* 移动菜单 */
.tb-mnav {
	display: none;
	position: fixed;
	top: var(--head-h); left: 0; right: 0;
	background: #fff;
	border-bottom: 1px solid var(--line-2);
	box-shadow: var(--shadow);
	padding: 10px 24px 18px;
	z-index: 69;
}
body.tb-nav-open .tb-mnav { display: block; }
.tb-mnav ul { list-style: none; }
.tb-mnav a { display: block; padding: 12px 6px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink-2); }
.tb-mnav a:hover { color: var(--blue); }
.tb-mnav li.menu-item-has-children { position: relative; }
.tb-mnav li.menu-item-has-children > a { padding-right: 44px; }
.tb-sub-toggle {
	position: absolute;
	top: 8px;
	right: 0;
	width: 30px;
	height: 30px;
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: 8px;
	color: var(--ink-2);
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
}
.tb-mnav ul ul { padding-left: 14px; border-left: 1px dashed var(--line-2); margin: 2px 0 8px 6px; }
.tb-mnav ul ul a { padding: 10px 6px; font-size: 13.5px; font-weight: 500; color: var(--ink-3); border-bottom-style: dashed; }

/* 搜索弹层 */
.tb-searchlayer {
	position: fixed; inset: 0;
	background: rgba(23, 38, 61, .45);
	z-index: 90;
	display: none;
	padding: 14vh 24px 0;
}
.tb-searchlayer.open { display: block; }
.tb-searchlayer form {
	max-width: 600px; margin: 0 auto;
	background: #fff;
	border-radius: var(--r);
	padding: 26px;
	box-shadow: var(--shadow-l);
}
.tb-searchlayer input[type="search"] {
	width: 100%;
	padding: 13px 18px;
	border: 1px solid var(--line-2);
	border-radius: var(--r-pill);
	font-size: 16px;
	font-family: var(--font);
	outline: none;
}
.tb-searchlayer input[type="search"]:focus { border-color: var(--blue); }
.tb-searchlayer .tb-btn { margin-top: 16px; }
.tb-search-close {
	position: absolute;
	top: 22px; right: 24px;
	width: 40px; height: 40px;
	background: #fff;
	border: 0;
	border-radius: var(--r-pill);
	font-size: 16px;
	cursor: pointer;
	color: var(--ink-2);
}
.tb-search-close:hover { color: var(--blue); }

/* =============================================================
   4. 首页横幅 Banner
   ============================================================= */
.tb-hero {
	background:
		radial-gradient(1000px 400px at 85% -10%, var(--bg-blue), transparent 60%),
		linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
	border-bottom: 1px solid var(--line);
	padding: clamp(56px, 9vh, 96px) 0 clamp(48px, 7vh, 76px);
	text-align: center;
}
.tb-hero h1 {
	font-size: clamp(30px, 4.8vw, 52px);
	font-weight: 800;
	letter-spacing: -.03em;
	line-height: 1.2;
	margin: 14px 0 0;
}
.tb-hero h1 span { color: var(--blue); }
.tb-hero-sub {
	max-width: 56ch;
	margin: 18px auto 0;
	font-size: clamp(14.5px, 1.5vw, 17px);
	color: var(--ink-2);
}
.tb-hero-act { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.tb-hero-stats {
	margin-top: clamp(36px, 6vh, 56px);
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-pill);
	box-shadow: var(--shadow);
	padding: 6px;
}
.tb-hstat { padding: 12px 30px; border-left: 1px solid var(--line); }
.tb-hstat:first-child { border-left: 0; }
.tb-hstat b { display: block; font-size: 22px; font-weight: 800; color: var(--blue); line-height: 1.2; font-variant-numeric: tabular-nums; }
.tb-hstat i { font-style: normal; font-size: 12px; color: var(--ink-3); }

/* =============================================================
   5. 区块通用
   ============================================================= */
.tb-sect { padding: clamp(44px, 7vh, 72px) 0; }
.tb-sect.gray { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.tb-sect-head { text-align: center; margin-bottom: clamp(26px, 4vh, 40px); }
.tb-sect-head h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.02em; margin: 6px 0 0; }
.tb-sect-head p { color: var(--ink-2); margin: 8px 0 0; font-size: 14.5px; }

/* 主题/文章 展示卡 —— 列数来自后台设置（--tb-cols），卡片内部排版按实际卡宽自适应 */
.tb-cards { display: grid; grid-template-columns: repeat(var(--tb-cols, 3), minmax(0, 1fr)); gap: var(--card-gap, 22px); --card-gap: 22px; }
/* 精选区：设几条就一行摆几条，永不换行；装不下时整行横向滑动。
   负 margin 抵掉为悬浮阴影/上浮留出的滚动区内边距，观感与栅格版一致。 */
.tb-cards--fit {
	display: flex;
	gap: var(--card-gap, 22px);
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	padding: 14px 2px 22px;
	margin: -12px -2px -20px;
	scrollbar-width: thin;
	scrollbar-color: var(--line-2) transparent;
}
.tb-cards--fit > .tb-card { flex: 1 1 216px; min-width: 176px; scroll-snap-align: start; }
.tb-cards--fit::-webkit-scrollbar { height: 6px; }
.tb-cards--fit::-webkit-scrollbar-track { background: transparent; }
.tb-cards--fit::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: var(--r-pill); }
.tb-cards--fit:hover::-webkit-scrollbar-thumb { background: #c3cede; }

.tb-card {
	position: relative;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: var(--tr);
	container-type: inline-size;
}
.tb-card:hover { border-color: var(--blue); box-shadow: var(--shadow-l); transform: translateY(-4px); }

.tb-card-shot { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-blue); border-bottom: 1px solid var(--line); }
.tb-card-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.tb-card:hover .tb-card-shot img { transform: scale(1.04); }

.tb-thumb-alt { width: 100%; height: 100%; display: grid; place-items: center; }
.tb-thumb-alt::before {
	content: '';
	width: 42px;
	height: 42px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2' ry='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21'/%3E%3C/svg%3E") center / contain no-repeat;
	opacity: .9;
}

.tb-card-body { padding: 20px 22px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tb-card-body h3 {
	font-size: 17px;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.tb-card:hover h3 a { color: var(--blue); }
.tb-card-body p { margin: 0; font-size: 13.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tb-card-foot {
	margin-top: auto;
	padding-top: 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 12px;
	color: var(--ink-3);
	font-family: var(--mono);
}
.tb-card-foot .tb-arrow { transition: transform var(--tr); display: inline-block; }
.tb-card:hover .tb-arrow { transform: translateX(4px); color: var(--blue); }

/* 卡片变窄时逐级收紧：4 列走第一档，5 列走第二档，字距/留白跟着缩 */
@container (max-width: 330px) {
	.tb-card-shot { aspect-ratio: 4 / 3; }
	.tb-card-body { padding: 14px 15px 13px; gap: 6px; }
	.tb-card-body h3 { font-size: 15.5px; line-height: 1.42; }
	.tb-card-body p { font-size: 12.5px; }
	.tb-card-foot { font-size: 11px; padding-top: 9px; }
	.tb-card-foot > span:first-child { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
	.tb-card .tb-cat-shot { font-size: 10.5px; padding: 3px 8px; }
}
@container (max-width: 252px) {
	.tb-card-body { padding: 12px 13px 11px; gap: 5px; }
	.tb-card-body h3 { font-size: 14.5px; }
	.tb-card-body p { font-size: 12px; }
	.tb-card-foot { padding-top: 8px; gap: 8px; }
	.tb-card:hover { transform: translateY(-2px); }
	.tb-card .tb-cat-shot { display: none; }
}

/* 更新日志 / 新闻列表 */
.tb-news { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 40px; }
.tb-news-item {
	display: flex;
	gap: 16px;
	align-items: baseline;
	padding: 14px 4px;
	border-bottom: 1px dashed var(--line-2);
	min-width: 0;
}
.tb-news-item:hover { color: var(--blue); }
.tb-news-item time { font-family: var(--mono); font-size: 12px; color: var(--ink-3); flex-shrink: 0; }
.tb-news-item span { flex: 1; min-width: 0; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-news-item:hover span { color: var(--blue); }

/* 特性四宫格 */
.tb-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tb-feat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; text-align: center; transition: var(--tr); }
.tb-feat:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow); }
.tb-feat-mark {
	width: 48px; height: 48px;
	margin: 0 auto 14px;
	display: grid; place-items: center;
	background: var(--bg-blue);
	color: var(--blue);
	border-radius: 12px;
	font-size: 20px;
	font-weight: 800;
}
.tb-feat h3 { font-size: 15.5px; margin-bottom: 6px; }
.tb-feat p { font-size: 13px; color: var(--ink-2); margin: 0; }

/* 分页 */
.tb-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: center; margin-top: clamp(28px, 5vh, 44px); }
.tb-pager a, .tb-pager span {
	min-width: 38px;
	padding: 8px 14px;
	text-align: center;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	font-size: 13px;
	color: var(--ink-2);
	transition: var(--tr);
}
.tb-pager a:hover { color: var(--blue); border-color: var(--blue); }
.tb-pager .current { background: var(--blue); border-color: var(--blue); color: #fff; }
.tb-pager .dots { min-width: auto; padding: 8px 4px; border-color: transparent; background: none; }
.tb-pager .prev, .tb-pager .next { font-size: 15px; line-height: 1.35; }
.tb-pager-edge { font-size: 12.5px; letter-spacing: .04em; }
.tb-pager-note { margin: 13px 0 0; text-align: center; font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--ink-2); }
.tb-pager-note b { color: var(--blue); font-weight: 600; }

/* 空状态 */
.tb-empty { padding: clamp(52px, 9vh, 92px) 0; text-align: center; }
.tb-empty b { display: block; font-size: 84px; font-weight: 800; color: var(--line-2); line-height: 1; }
.tb-empty p { color: var(--ink-2); margin: 14px 0 22px; }
.tb-empty-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 26px; }
.tb-empty-cats a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: 13px; color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: var(--r-sm); transition: var(--tr); }
.tb-empty-cats a:hover { color: var(--blue); border-color: var(--blue); background: #fff; }
.tb-empty-cats i { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.tb-empty-cats a:hover i { color: var(--blue); }

/* =============================================================
   6. 内页页头
   ============================================================= */
.tb-pagehead {
	background: linear-gradient(180deg, var(--bg-blue), #fff);
	border-bottom: 1px solid var(--line);
	padding: clamp(40px, 6vh, 64px) 0 clamp(24px, 4vh, 36px);
}
.tb-pagehead h1 { font-size: clamp(24px, 3.6vw, 38px); font-weight: 800; margin: 8px 0 0; }
.tb-pagehead p { color: var(--ink-2); font-size: 13.5px; margin: 6px 0 0; }

/* -------------------------------------------------------------
   6b. 归档页头 — 面包屑 / 统计 / 徽标 / 横向分类 / 排序条
   ------------------------------------------------------------- */
.tb-archhead {
	position: relative;
	overflow: hidden;
	padding: clamp(28px, 5vh, 46px) 0 clamp(20px, 3.4vh, 30px);
	background:
		radial-gradient(120% 150% at 100% 0%, var(--bg-blue) 0%, rgba(255, 255, 255, 0) 60%),
		linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
	border-bottom: 1px solid var(--line);
}
/* 淡网格底纹：科技感来自这一层，压到 8px 以下就不抢正文了 */
.tb-archhead::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(to right, rgba(30, 111, 245, .055) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(30, 111, 245, .055) 1px, transparent 1px);
	background-size: 34px 34px;
	-webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 76%);
	mask-image: linear-gradient(180deg, #000 0%, transparent 76%);
	pointer-events: none;
}
.tb-archhead > .tb-container { position: relative; z-index: 1; }

.tb-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-3); }
.tb-crumb a { color: var(--ink-2); }
.tb-crumb a:hover { color: var(--blue); }
.tb-crumb i { font-style: normal; color: var(--line-2); }
.tb-crumb span { color: var(--ink); font-weight: 600; }

.tb-archhead-main { display: flex; align-items: center; gap: clamp(18px, 3vw, 34px); margin-top: 13px; }
.tb-archhead-l { flex: 1 1 auto; min-width: 0; }
.tb-archhead-r { flex: 0 0 auto; }
.tb-arch-kind { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.tb-arch-kind i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.tb-archhead h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; margin: 9px 0 0; }
.tb-arch-desc { max-width: 62ch; color: var(--ink-2); font-size: 14px; margin: 9px 0 0; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.tb-stats { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; margin: 16px 0 0; }
.tb-stats li { display: flex; align-items: baseline; gap: 6px; padding: 5px 13px; background: rgba(255, 255, 255, .82); border: 1px solid var(--line); border-radius: var(--r-pill); }
.tb-stats b { font-size: 14px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.tb-stats i { font-style: normal; font-size: 12px; color: var(--ink-2); }

.tb-arch-mark { display: grid; place-items: center; width: clamp(64px, 7vw, 86px); aspect-ratio: 1; border-radius: 18px; background: linear-gradient(135deg, var(--blue), #5b93ff); color: #fff; font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; box-shadow: var(--shadow-l); }
.tb-arch-mark.is-img { background: #fff; border: 1px solid var(--line-2); overflow: hidden; box-shadow: var(--shadow); }
.tb-arch-mark.is-img img { display: block; width: 100%; height: 100%; object-fit: cover; }

.tb-subcats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: clamp(16px, 3vh, 26px); padding-top: clamp(13px, 2.4vh, 19px); border-top: 1px dashed var(--line-2); }
.tb-subcats-h { margin-right: 2px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.tb-subcats a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: 13px; color: var(--ink-2); background: rgba(255, 255, 255, .82); border: 1px solid var(--line-2); border-radius: var(--r-sm); transition: var(--tr); }
.tb-subcats a:hover { color: var(--blue); border-color: var(--blue); background: #fff; transform: translateY(-1px); }
.tb-subcats a i { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.tb-subcats a:hover i { color: var(--blue); }

/* 列表工具条 */
.tb-archlist { padding-top: clamp(20px, 3.6vh, 34px); }
.tb-archbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: clamp(15px, 2.6vh, 22px); }
.tb-archbar-h { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.tb-sort { display: inline-flex; gap: 2px; padding: 3px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-pill); }
.tb-sort a { padding: 5px 14px; font-size: 12.5px; color: var(--ink-2); border-radius: var(--r-pill); transition: var(--tr); white-space: nowrap; }
.tb-sort a:hover { color: var(--blue); }
.tb-sort a.is-on { background: var(--blue); color: #fff; font-weight: 600; }

@media (max-width: 900px) {
	.tb-archhead-main { align-items: flex-start; }
	.tb-arch-mark { width: 60px; border-radius: 14px; }
}
@media (max-width: 640px) {
	.tb-archhead-r { display: none; }
	.tb-archbar { flex-direction: column; align-items: stretch; }
	.tb-sort { width: 100%; overflow-x: auto; scrollbar-width: none; }
	.tb-sort::-webkit-scrollbar { display: none; }
	.tb-sort a { flex: 1 0 auto; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
	.tb-subcats a:hover { transform: none; }
}

/* =============================================================
   7. 图片专题：美图归档 + 看图页
   ============================================================= */
/* 归档瀑布流 */
.tb-gal { columns: 3; column-gap: 16px; }
.tb-gal-item { break-inside: avoid; margin-bottom: 16px; }
.tb-gal-shot { position: relative; display: block; border-radius: 14px; overflow: hidden; background: var(--bg-blue); border: 1px solid var(--line); transition: var(--tr); }
.tb-gal-shot img { display: block; width: 100%; height: auto; transition: transform .5s var(--ease); }
.tb-gal-shot:hover { border-color: var(--blue); box-shadow: 0 10px 30px rgba(30, 111, 245, .18); }
.tb-gal-shot:hover img { transform: scale(1.045); }
.tb-gal-count { position: absolute; left: 10px; top: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: var(--blue); background: rgba(255, 255, 255, .86); border-radius: var(--r-pill); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 2px 8px rgba(15, 28, 48, .14); }
.tb-gal-count svg { width: 13px; height: 13px; }
.tb-gal-shot .tb-cat-shot { top: 10px; right: 10px; }
.tb-gal-mask { position: absolute; inset: auto 0 0 0; z-index: 2; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 42px 14px 13px; background: linear-gradient(180deg, rgba(11, 22, 40, 0), rgba(11, 22, 40, .78)); color: #fff; opacity: 0; transform: translateY(8px); transition: var(--tr); }
.tb-gal-shot:hover .tb-gal-mask { opacity: 1; transform: none; }
.tb-gal-mask b { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-clamp: 2; }
.tb-gal-mask i { font-style: normal; font-family: var(--mono); font-size: 11px; opacity: .8; flex-shrink: 0; }

/* 看图页 */
.tb-single-wide { padding: 0 0 40px; }
.tb-view-head { position: relative; padding: clamp(30px, 5vh, 46px) 0 clamp(20px, 3vh, 26px); background: linear-gradient(160deg, #f4f8ff, #fff); border-bottom: 1px solid var(--line); }
.tb-view-head .tb-cat-shot { top: clamp(20px, 3vh, 30px); right: clamp(20px, 3vw, 34px); }
.tb-view-head h1 { font-size: clamp(22px, 3.2vw, 32px); font-weight: 800; letter-spacing: -.02em; margin: 6px 0 10px; }
.tb-view-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-2); }
.tb-view-meta span { padding: 4px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); font-family: var(--mono); font-size: 11.5px; }
.tb-view-meta a { padding: 4px 12px; color: var(--blue); background: var(--blue-soft); border-radius: var(--r-pill); font-weight: 600; }
.tb-view-meta a:hover { background: var(--blue); color: #fff; }

.tb-view-strip { display: flex; gap: 10px; overflow-x: auto; padding: 18px 2px; scrollbar-width: thin; }
.tb-view-thumb { position: relative; flex: 0 0 auto; width: 92px; height: 64px; padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: none; cursor: pointer; transition: var(--tr); }
.tb-view-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-view-thumb i { position: absolute; left: 5px; bottom: 4px; font-style: normal; font-family: var(--mono); font-size: 10px; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.tb-view-thumb:hover { border-color: var(--blue); transform: translateY(-2px); }
.tb-view-thumb.is-on { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }

.tb-view-stage { position: relative; margin-top: 6px; border: 1px solid var(--line); border-radius: 16px; background: repeating-conic-gradient(#f6f8fb 0 25%, #fff 0 50%) 50% / 22px 22px; overflow: hidden; }
.tb-view-stage:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.tb-view-figure { margin: 0; display: grid; place-items: center; min-height: 320px; padding: 26px 60px 60px; }
.tb-view-figure img { display: block; max-width: 100%; max-height: min(72vh, 760px); width: auto; border-radius: 8px; box-shadow: 0 16px 44px rgba(23, 38, 61, .16); transition: transform .22s var(--ease); cursor: zoom-in; transform-origin: center top; }
.tb-view-figure.is-full { display: block; min-height: 0; max-height: 78vh; overflow: auto; padding: 0; }
.tb-view-figure.is-full img { max-height: none; width: 100%; border-radius: 0; box-shadow: none; }
.tb-view-figure figcaption { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 14px; background: rgba(255, 255, 255, .9); border: 1px solid var(--line); border-radius: 10px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tb-view-figure figcaption b { font-size: 12.5px; font-weight: 600; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-view-figure figcaption span { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); flex-shrink: 0; }
.tb-view-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink-2); font-size: 22px; cursor: pointer; transition: var(--tr); box-shadow: var(--shadow); }
.tb-view-nav:hover { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(30, 111, 245, .3); }
.tb-view-prev { left: 12px; }
.tb-view-next { right: 12px; }
.tb-view-tools { position: absolute; right: 16px; top: 16px; z-index: 3; display: flex; gap: 6px; }
.tb-view-tool { min-width: 32px; height: 30px; padding: 0 10px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .92); color: var(--ink-2); font-size: 12.5px; cursor: pointer; transition: var(--tr); }
.tb-view-tool:hover { color: var(--blue); border-color: var(--blue); }
.tb-view-tool.is-on { background: var(--blue); border-color: var(--blue); color: #fff; }
.tb-view-hint { position: absolute; left: 18px; top: 18px; z-index: 2; margin: 0; font-family: var(--mono); font-size: 11px; color: var(--ink-3); background: rgba(255, 255, 255, .8); padding: 4px 10px; border-radius: var(--r-pill); }
.tb-view-figure img.is-swap { animation: tb-view-in .28s var(--ease); }
@keyframes tb-view-in { from { opacity: 0 } to { opacity: 1 } }

/* 全屏看图：深色底 + 让画面占满视口 */
.tb-view-stage.is-fs { background: #0e1726; border: 0; border-radius: 0; }
.tb-view-stage.is-fs .tb-view-figure { min-height: 100vh; padding: 64px 76px 88px; }
.tb-view-stage.is-fs .tb-view-figure img { max-height: calc(100vh - 152px); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.tb-view-stage.is-fs .tb-view-figure.is-full { min-height: 0; max-height: 100vh; }
.tb-view-stage.is-fs .tb-view-figure figcaption { background: rgba(17, 27, 44, .86); border-color: rgba(255, 255, 255, .14); }
.tb-view-stage.is-fs .tb-view-figure figcaption b { color: #eaf1fb; }
.tb-view-stage.is-fs .tb-view-figure figcaption span { color: #9fb2cd; }
.tb-view-stage.is-fs .tb-view-nav { background: rgba(17, 27, 44, .8); border-color: rgba(255, 255, 255, .16); color: #eaf1fb; }
.tb-view-stage.is-fs .tb-view-tool { background: rgba(17, 27, 44, .8); border-color: rgba(255, 255, 255, .16); color: #eaf1fb; }
.tb-view-stage.is-fs .tb-view-hint { background: rgba(17, 27, 44, .8); color: #9fb2cd; }

.tb-view-info, .tb-view-text { margin-top: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 28px); }
.tb-view-info h2, .tb-view-text h2 { display: flex; align-items: center; gap: 9px; font-size: 15.5px; font-weight: 800; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.tb-view-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tb-view-table th { text-align: left; padding: 8px 12px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.tb-view-table td { padding: 10px 12px; border-bottom: 1px dashed var(--line); color: var(--ink-2); font-family: var(--mono); font-size: 12px; }
.tb-view-table tr:last-child td { border-bottom: 0; }
.tb-view-table tr:hover td { background: var(--bg-blue); }
.tb-view-table tr.is-on td { background: var(--blue-soft); }
.tb-view-table tr.is-on .tb-view-td-n { text-decoration: underline; text-underline-offset: 3px; }
.tb-view-td-n { color: var(--blue) !important; font-weight: 700; }
.tb-view-td-desc { font-family: var(--font) !important; color: var(--ink-2); }
.tb-view-na { color: var(--ink-3); opacity: .7; }
.tb-view-none { margin: 0; color: var(--ink-3); font-size: 13px; }
.tb-view-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
@media (max-width: 1024px) { .tb-gal { columns: 2; } }
@media (max-width: 640px) { .tb-gal { columns: 1; } .tb-view-figure { padding: 14px 14px 54px; } .tb-view-nav { width: 34px; height: 34px; font-size: 18px; } .tb-view-hint { top: 54px; left: 12px; font-size: 10px; } .tb-view-tools { right: 12px; } .tb-view-table th:nth-child(4), .tb-view-table td:nth-child(4), .tb-view-table th:nth-child(5), .tb-view-table td:nth-child(5) { display: none; } }

/* =============================================================
   8. 文章页
   ============================================================= */
.tb-single { padding: clamp(36px, 6vh, 56px) 0 clamp(56px, 9vh, 88px); }
.tb-single-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }

.tb-article {
	position: relative;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r);
	padding: clamp(26px, 3.4vw, 42px);
}
.tb-article-head { padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.tb-article-head h1 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; letter-spacing: -.02em; margin: 12px 0 12px; }

/* 栏目标签 — 悬浮在内容块右上角，压在卡片边线上 */
.tb-cat-float {
	position: absolute;
	top: -14px;
	right: clamp(18px, 3vw, 34px);
	z-index: 3;
}
.tb-cat-float .tb-cat {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	position: relative;
	padding: 7px 16px 7px 13px;
	background: linear-gradient(135deg, #1e6ff5, #5b93ff);
	border-radius: var(--r-pill);
	box-shadow: 0 8px 18px rgba(30, 111, 245, .28), 0 0 0 4px #fff;
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .02em;
	transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.tb-cat-float .tb-cat::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 2px;
	background: rgba(255, 255, 255, .95);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, .35);
}
.tb-cat-float .tb-cat:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(30, 111, 245, .36), 0 0 0 4px #fff;
	background: linear-gradient(135deg, #1a61d8, #4f8bff);
}
@media (max-width: 640px) {
	.tb-cat-float { top: -11px; right: 14px; }
	.tb-cat-float .tb-cat { padding: 5px 12px 5px 10px; font-size: 11.5px; box-shadow: 0 6px 14px rgba(30,111,245,.25), 0 0 0 3px #fff; }
}
.tb-article-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink-3); font-family: var(--mono); }
.tb-article-meta b { color: var(--ink-2); font-weight: 600; }

.tb-entry { font-size: 15.5px; line-height: 1.95; color: #33404f; }
.tb-entry h2 { font-size: 20px; margin: 2em 0 .8em; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.tb-entry h3 { font-size: 17px; margin: 1.8em 0 .7em; }
.tb-entry a { color: var(--blue); }
.tb-entry a:hover { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.tb-entry ul, .tb-entry ol { padding-left: 1.5em; margin-bottom: 1.3em; }
.tb-entry li::marker { color: var(--blue); }
.tb-entry blockquote {
	margin: 1.7em 0;
	padding: 16px 20px;
	background: var(--bg-blue);
	border-left: 3px solid var(--blue);
	border-radius: 0 var(--r-sm) var(--r-sm) 0;
	color: var(--ink-2);
}
.tb-entry blockquote p:last-child { margin: 0; }
.tb-entry img { border-radius: var(--r-sm); border: 1px solid var(--line); }
.tb-entry img.tb-img-broken,
.tb-view-figure img.tb-img-broken {
	display: inline-block;
	position: relative;
	min-width: 180px;
	min-height: 110px;
	max-width: 100%;
	background: repeating-linear-gradient(45deg, #f4f7fb, #f4f7fb 10px, #e9eff7 10px, #e9eff7 20px);
	border: 1px dashed var(--line-2);
	text-indent: -9999px;
	overflow: hidden;
}
.tb-view-thumb img.tb-img-broken { min-width: 100%; min-height: 100%; border-radius: 0; }
.tb-entry img.tb-img-broken::before {
	content: '';
	position: absolute;
	top: 50%; left: 50%;
	width: 34px; height: 34px;
	transform: translate(-50%, -50%);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2' ry='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tb-entry hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }

.tb-code {
	margin: 1.8em 0;
	position: relative;
	border: 1px solid #1d2c44;
	border-radius: 10px;
	overflow: hidden;
	background: #0f1c30;
	box-shadow: 0 10px 26px rgba(16, 28, 48, .14);
}
.tb-code-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 14px;
	background: #16233a;
	border-bottom: 1px solid #223351;
}
.tb-code-dots { display: flex; gap: 6px; margin-right: 2px; }
.tb-code-dots i { width: 10px; height: 10px; border-radius: 50%; background: #33476b; }
.tb-code-dots i:nth-child(1) { background: #f2615c; }
.tb-code-dots i:nth-child(2) { background: #f0b429; }
.tb-code-dots i:nth-child(3) { background: #34c26e; }
.tb-code-lang {
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #7d93b8;
}
.tb-entry pre {
	margin: 0;
	padding: 18px 20px;
	background: #0f1c30;
	overflow-x: auto;
	font-family: var(--mono);
	font-size: 12.8px;
	line-height: 1.8;
	color: #d7e3f4;
}
.tb-entry pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.tb-entry pre::-webkit-scrollbar { height: 8px; }
.tb-entry pre::-webkit-scrollbar-thumb { background: #2b3f61; border-radius: 4px; }
.tb-entry pre::-webkit-scrollbar-track { background: transparent; }
.tb-entry code {
	background: var(--bg-blue);
	color: var(--blue-dark);
	border-radius: 4px;
	padding: .12em .45em;
	font-family: var(--mono);
	font-size: .86em;
}
.tb-code-bar .tb-copy {
	margin-left: auto;
	padding: 4px 12px;
	background: transparent;
	border: 1px solid #33476b;
	border-radius: 6px;
	color: #9db2d2;
	font-family: var(--mono);
	font-size: 11px;
	cursor: pointer;
	transition: var(--tr);
}
.tb-code-bar .tb-copy:hover { color: #fff; border-color: var(--blue); background: var(--blue); }
.tb-code-bar .tb-copy.done { color: #4ade80; border-color: #4ade80; background: transparent; }

.tb-table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: var(--r-sm); }
.tb-entry table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.tb-entry th, .tb-entry td { padding: 9px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.tb-entry th { background: var(--bg-soft); }
.tb-entry tr:last-child td { border-bottom: 0; }

.tb-tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--line); }
.tb-tag {
	padding: 5px 13px;
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: var(--r-pill);
	font-size: 12.5px;
	color: var(--ink-2);
}
.tb-tag:hover { color: var(--blue); border-color: var(--blue); }

.tb-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.tb-prevnext a {
	padding: 16px 20px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
	transition: var(--tr);
}
.tb-prevnext a:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.tb-prevnext small { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-bottom: 6px; }
.tb-prevnext b {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	word-break: break-all;
}
.tb-prevnext .next { text-align: right; }

/* 侧栏 */
.tb-side { position: sticky; top: calc(var(--head-h) + 20px); display: flex; flex-direction: column; gap: 18px; }
.tb-widget { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.tb-widget-title { font-size: 14.5px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 7px; }
.tb-widget-title::before { content: ""; width: 4px; height: 14px; background: var(--blue); border-radius: 2px; }
.tb-side-list { list-style: none; }
.tb-side-list li { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; display: flex; gap: 10px; justify-content: space-between; }
.tb-side-list li:last-child { border-bottom: 0; }
.tb-side-list a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.tb-side-list a:hover { color: var(--blue); }
.tb-side-list time { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.tb-side-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tb-side-cloud a { padding: 4px 11px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-pill); font-size: 12px; color: var(--ink-2); }
.tb-side-cloud a:hover { color: var(--blue); border-color: var(--blue); }

/* 侧栏作者简介 */
.tb-widget-author .tb-author-line { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tb-side-avatar, .tb-widget-author .avatar { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line-2); }
.tb-widget-author .tb-avatar-alt { width: 52px; height: 52px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line-2); }
.tb-author-name { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.tb-author-role { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.tb-author-bio { font-size: 13px; line-height: 1.75; color: var(--ink-2); margin: 0; }

/* =============================================================
   9. 标签云（page-81.php）
   ============================================================= */
.tb-tc-head { padding: clamp(26px, 4vh, 38px) 0 clamp(22px, 3.4vh, 30px); background: linear-gradient(160deg, #f4f8ff 0%, #eef5ff 55%, #fff 100%); border-bottom: 1px solid var(--line); }
.tb-tc-head h1 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; letter-spacing: -.02em; margin: 6px 0 8px; }
.tb-tc-sub { font-size: 13.5px; color: var(--ink-2); margin: 0; }
.tb-tc-sub b { font-family: var(--mono); color: var(--blue); font-weight: 700; }
.tb-tc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 20px; }
.tb-tc-search { position: relative; flex: 1 1 300px; max-width: 520px; display: flex; align-items: center; }
.tb-tc-search svg { position: absolute; left: 14px; width: 17px; height: 17px; color: var(--ink-3); pointer-events: none; }
.tb-tc-search input { width: 100%; padding: 11px 110px 11px 42px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-pill); font-size: 14px; color: var(--ink); transition: var(--tr); }
.tb-tc-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.tb-tc-search input::placeholder { color: var(--ink-3); }
.tb-tc-search kbd { position: absolute; right: 14px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 5px; padding: 3px 7px; }
.tb-tc-sort { display: flex; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 3px; }
.tb-tc-sort-btn { border: 0; background: none; cursor: pointer; padding: 7px 16px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; color: var(--ink-2); transition: var(--tr); }
.tb-tc-sort-btn.is-on { background: var(--blue); color: #fff; box-shadow: 0 2px 8px rgba(30, 111, 245, .3); }
.tb-tc-cats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: 10px 14px; }
.tb-tc-cat { display: grid; grid-template-columns: minmax(0, 88px) 1fr auto; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; transition: var(--tr); }
.tb-tc-cat:hover { border-color: var(--blue); box-shadow: var(--shadow-l); transform: translateY(-2px); }
.tb-tc-cat-name { font-size: 13px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-tc-cat-bar { height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; }
.tb-tc-cat-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--blue), #6aa8ff); }
.tb-tc-cat-n { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }

.tb-tc-group { margin-bottom: 26px; }
.tb-tc-gtitle { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 12px; }
.tb-tc-gtitle::before { content: ""; width: 4px; height: 13px; background: var(--blue); border-radius: 2px; }
.tb-tc-gtitle i { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--ink-3); background: #fff; border: 1px solid var(--line); padding: 1px 8px; border-radius: var(--r-pill); }
.tb-tc-cloud { display: flex; flex-wrap: wrap; gap: 9px; }
.tb-tc-tag { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: #fff; font-size: 13px; color: var(--ink-2); transition: var(--tr); }
.tb-tc-tag b { font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: var(--ink-3); background: var(--bg-soft); padding: 1px 7px; border-radius: var(--r-pill); transition: var(--tr); }
.tb-tc-tag:hover { color: #fff; border-color: var(--blue); background: var(--blue); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(30, 111, 245, .3); }
.tb-tc-tag:hover b { background: rgba(255, 255, 255, .22); color: #fff; }
.tb-tc-tag.lv5 { font-size: 15px; font-weight: 700; color: var(--blue); border-color: rgba(30, 111, 245, .38); background: var(--blue-soft); }
.tb-tc-tag.lv4 { font-size: 14px; font-weight: 600; color: var(--blue); border-color: rgba(30, 111, 245, .26); }
.tb-tc-tag.lv3 { font-size: 13.5px; }
.tb-tc-tag.is-hit { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.tb-tc-empty { text-align: center; padding: 48px 0 8px; color: var(--ink-3); }
.tb-tc-empty b { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--bg-soft); border: 1px dashed var(--line-2); font-family: var(--mono); margin-bottom: 12px; }
.tb-tc-empty p { margin: 0; font-size: 13px; }
@media (max-width: 900px) { .tb-tc-cats-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .tb-tc-cats-grid { grid-template-columns: 1fr; } .tb-tc-search kbd { display: none; } .tb-tc-search input { padding-right: 16px; } }

/* =============================================================
   10. 关于我（page-about.php）
   ============================================================= */
.tb-ab-hero + .tb-sect { padding-top: clamp(26px, 4vh, 36px); }
.tb-ab-hero { position: relative; padding: clamp(24px, 4vh, 34px) 0 clamp(28px, 4.5vh, 38px); background: linear-gradient(160deg, #f4f8ff 0%, #eef5ff 46%, #ffffff 100%); overflow: hidden; }
.tb-ab-hero::before, .tb-ab-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.tb-ab-hero::before { width: 340px; height: 340px; right: -110px; top: -120px; background: radial-gradient(closest-side, rgba(30, 111, 245, .12), transparent); }
.tb-ab-hero::after { width: 260px; height: 260px; left: -90px; bottom: -130px; background: radial-gradient(closest-side, rgba(14, 165, 233, .1), transparent); }
.tb-ab-card { position: relative; z-index: 1; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 44px rgba(23, 38, 61, .07); padding: clamp(24px, 4vw, 40px); }
.tb-ab-id { display: flex; align-items: center; gap: clamp(18px, 3vw, 30px); flex-wrap: wrap; }
.tb-ab-ring { position: relative; display: inline-grid; place-items: center; padding: 5px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), #6aa8ff 60%, #9cd3fd); box-shadow: 0 10px 26px rgba(30, 111, 245, .28); }
.tb-ab-ring::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px dashed rgba(30, 111, 245, .35); animation: tb-ab-spin 14s linear infinite; }
.tb-ab-avatar, .tb-ab-ring img { width: 96px; height: 96px; border-radius: 50%; display: block; background: #fff; box-shadow: inset 0 0 0 4px #fff; }
.tb-ab-ring .tb-avatar-alt { width: 96px; height: 96px; }
.tb-ab-id h1 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; letter-spacing: -.02em; margin: 4px 0 6px; }
.tb-ab-bio { font-size: 14.5px; line-height: 1.9; color: var(--ink-2); margin: 0; max-width: 560px; }
.tb-ab-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tb-ab-chip { padding: 4px 12px; font-size: 12px; color: var(--blue); background: var(--blue-soft); border: 1px solid rgba(30, 111, 245, .14); border-radius: var(--r-pill); font-weight: 600; }
.tb-ab-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: clamp(20px, 3vw, 30px); padding-top: clamp(20px, 3vw, 28px); border-top: 1px dashed var(--line-2); }
.tb-ab-stat { text-align: center; padding: 12px 6px; border-radius: 12px; background: var(--bg-soft); transition: var(--tr); }
.tb-ab-stat:hover { background: var(--bg-blue); transform: translateY(-2px); }
.tb-ab-stat b { display: block; font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--blue); letter-spacing: -.02em; }
.tb-ab-stat i { font-style: normal; font-size: 12px; color: var(--ink-3); }
@keyframes tb-ab-spin { to { transform: rotate(360deg); } }

/* 正文 + 侧栏 */
.tb-ab-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.tb-ab-article { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); }
.tb-ab-sec-head { padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.tb-ab-sec-head h2 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; margin-top: 4px; }
.tb-ab-side { display: grid; gap: 18px; position: sticky; top: calc(var(--head-h) + 18px); }
.tb-ab-widget { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow); }
.tb-ab-widget h3 { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 800; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.tb-ab-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.tb-ab-dl { display: grid; grid-template-columns: 52px 1fr; gap: 9px 12px; margin: 0; font-size: 13px; }
.tb-ab-dl dt { color: var(--ink-3); }
.tb-ab-dl dd { margin: 0; color: var(--ink-2); word-break: break-all; }
.tb-ab-dl a { color: var(--ink-2); }
.tb-ab-dl a:hover { color: var(--blue); }
.tb-ab-links { display: grid; gap: 8px; }
.tb-ab-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; color: var(--ink-2); transition: var(--tr); }
.tb-ab-link:hover { border-color: var(--blue); background: var(--bg-blue); color: var(--blue); transform: translateX(2px); }
.tb-ab-link .tb-arrow { margin-left: auto; opacity: 0; transition: var(--tr); }
.tb-ab-link:hover .tb-arrow { opacity: 1; }
.tb-ab-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 700; flex-shrink: 0; }
.tb-ab-note { margin: 12px 0 0; font-size: 12px; line-height: 1.8; color: var(--ink-3); }
@media (max-width: 1024px) { .tb-ab-grid { grid-template-columns: 1fr; } .tb-ab-side { position: static; grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .tb-ab-stats { grid-template-columns: repeat(2, 1fr); } .tb-ab-side { grid-template-columns: 1fr; } .tb-ab-id { flex-direction: column; text-align: center; } .tb-ab-chips { justify-content: center; } }

/* =============================================================
   11. 名站汇聚（pages/navs.php）
   ============================================================= */
.tb-st-head { padding: clamp(30px, 5vh, 44px) 0 clamp(24px, 4vh, 34px); background: linear-gradient(160deg, #f4f8ff 0%, #eef5ff 55%, #fff 100%); border-bottom: 1px solid var(--line); }
.tb-st-head h1 { font-size: clamp(23px, 3.4vw, 33px); font-weight: 800; letter-spacing: -.02em; margin: 6px 0 8px; }
.tb-st-sub { margin: 0; font-size: 13px; color: var(--ink-3); }
.tb-st-sub b { font-family: var(--mono); font-weight: 700; color: var(--blue); }
.tb-st-note { max-width: 760px; margin-top: 16px; padding: 12px 16px; font-size: 13px; color: var(--ink-2); background: rgba(255, 255, 255, .74); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 0 10px 10px 0; }
.tb-st-note p { margin: 0 0 4px; }
.tb-st-note p:last-child { margin: 0; }
.tb-st-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
.tb-st-cta-n { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }

.tb-st-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.tb-st-tools .tb-tc-search { flex: 1 1 300px; max-width: 420px; }
.tb-st-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.tb-st-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); cursor: pointer; transition: var(--tr); }
.tb-st-chip b { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--ink-3); }
.tb-st-chip:hover { border-color: var(--blue); color: var(--blue); }
.tb-st-chip.is-on { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 2px 8px rgba(30, 111, 245, .3); }
.tb-st-chip.is-on b { color: rgba(255, 255, 255, .82); }
/* 关键词命中后，被清空的分类 chips 退到背景层 */
.tb-st-chip.is-off { opacity: .45; }
.tb-st-chip.is-off:hover { border-color: var(--line); color: var(--ink-2); }

.tb-st-group { margin-top: 24px; }
.tb-st-gtitle { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 800; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.tb-st-gtitle::before { content: ''; width: 3px; height: 14px; border-radius: 2px; background: var(--blue); }
.tb-st-gtitle i { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--ink-3); background: var(--bg-soft); padding: 2px 8px; border-radius: var(--r-pill); }
.tb-st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 14px; }

.tb-st-card { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px 34px 14px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: var(--tr); }
.tb-st-card:hover { border-color: var(--blue); box-shadow: 0 10px 26px rgba(30, 111, 245, .14); transform: translateY(-2px); }
.tb-st-tile { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; font-size: 17px; font-weight: 800; color: #fff; transition: var(--tr); }
.tb-st-card:hover .tb-st-tile { transform: scale(1.06); }
.tb-st-tile.p0 { background: linear-gradient(135deg, #4b86f5, #2f63dc); }
.tb-st-tile.p1 { background: linear-gradient(135deg, #34a08f, #1f7d70); }
.tb-st-tile.p2 { background: linear-gradient(135deg, #6f7fd6, #4d5cc0); }
.tb-st-tile.p3 { background: linear-gradient(135deg, #7d8ea6, #5c6e88); }
.tb-st-tile.p4 { background: linear-gradient(135deg, #3aa0d8, #2b7cb8); }
.tb-st-tile.p5 { background: linear-gradient(135deg, #9b6fc9, #7a4fae); }
.tb-st-info { min-width: 0; display: block; }
.tb-st-info b { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-st-card:hover .tb-st-info b { color: var(--blue); }
.tb-st-info i { display: block; margin-top: 2px; font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 简介固定占两行，卡片高度一致，网格才不会参差不齐 */
.tb-st-info p { margin: 7px 0 0; min-height: 3.25em; font-size: 12.5px; line-height: 1.62; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tb-st-out { position: absolute; right: 12px; top: 13px; font-size: 13px; color: var(--blue); opacity: 0; transform: translate(-4px, 4px); transition: var(--tr); }
.tb-st-card:hover .tb-st-out { opacity: 1; transform: none; }
/* 搜索命中的角标，低调但一眼能认出 */
.tb-st-card.is-hit::after { content: ''; position: absolute; right: 0; top: 0; border: 6px solid transparent; border-top-color: var(--blue); border-right-color: var(--blue); border-radius: 0 var(--r) 0 0; }

@media (max-width: 640px) { .tb-st-grid { grid-template-columns: 1fr; } .tb-st-tools .tb-tc-search { max-width: none; } }

/* =============================================================
   12. 登录 / 注册（顶栏 · 首页会员模块 · pages/login.php · pages/register.php）
   ============================================================= */
/* 顶栏：登录文字链 + 注册按钮 */
.tb-head-login { padding: 8px 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.tb-head-login:hover { color: var(--blue); }

/* 顶栏：已登录用户菜单 */
.tb-user { position: relative; }
.tb-user-btn { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 11px 0 4px; font: inherit; background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); cursor: pointer; transition: var(--tr); }
.tb-user-btn:hover { border-color: var(--blue); }
.tb-user-btn.is-on { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.tb-user-ava { width: 28px; height: 28px; border-radius: 50%; }
.tb-user-name { max-width: 96px; overflow: hidden; font-size: 13px; font-weight: 600; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.tb-user-caret { opacity: .5; transition: transform var(--tr); }
.tb-user-btn.is-on .tb-user-caret { transform: rotate(180deg); }
.tb-user-menu { position: absolute; top: calc(100% + 9px); right: 0; min-width: 194px; padding: 6px; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 14px 34px rgba(23, 38, 61, .12); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s; }
.tb-user.is-open .tb-user-menu { opacity: 1; visibility: visible; transform: none; }
.tb-user-head { padding: 8px 10px 10px; margin-bottom: 6px; border-bottom: 1px dashed var(--line); }
.tb-user-head b { display: block; font-size: 13px; }
.tb-user-head i { display: block; overflow: hidden; margin-top: 2px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); text-overflow: ellipsis; white-space: nowrap; }
.tb-user-menu a { display: block; padding: 9px 10px; border-radius: 7px; font-size: 13.5px; color: var(--ink-2); }
.tb-user-menu a:hover { color: var(--blue); background: var(--bg-blue); }

/* 移动抽屉里的登录/注册 */
.tb-mnav-auth { display: flex; gap: 10px; padding: 18px 0 4px; }
.tb-mnav-auth .tb-btn { flex: 1; justify-content: center; }
.tb-mnav-auth:has(.tb-mnav-me) { flex-direction: column; gap: 0; }
.tb-mnav-me { display: flex; align-items: center; gap: 10px; padding: 4px 0 12px; }
.tb-mnav-me b { display: block; font-size: 13.5px; }
.tb-mnav-me i { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); font-style: normal; }

/* 首页会员模块 */
.tb-join { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(20px, 3vw, 36px); padding: clamp(22px, 3vw, 34px); overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.tb-join::before { content: ''; position: absolute; top: 0; left: 0; width: 62%; height: 3px; background: linear-gradient(90deg, var(--blue), rgba(30, 111, 245, 0)); }
.tb-join.is-welcome { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.tb-join-copy h2 { margin: 8px 0 10px; font-size: clamp(19px, 2.4vw, 26px); letter-spacing: -.02em; line-height: 1.4; }
.tb-join-copy h2 i { font-style: normal; color: var(--blue); }
.tb-join-copy > p { max-width: 54ch; margin: 0 0 4px; font-size: 14px; color: var(--ink-2); }
.tb-join-line { margin-top: 12px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.tb-join-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.tb-join-perks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line-2); list-style: none; }
.tb-join-perks li { position: relative; padding-left: 16px; font-size: 12.5px; color: var(--ink-2); }
.tb-join-perks li::before { content: ''; position: absolute; top: .62em; left: 0; width: 6px; height: 6px; border-radius: 2px; background: var(--blue); opacity: .6; }
.tb-join-card { padding: 18px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; }
.tb-join-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 13px; letter-spacing: .02em; color: var(--ink-2); }
.tb-join-card h3 i { order: 2; padding: 1px 8px; margin-left: auto; font-family: var(--mono); font-size: 11px; font-style: normal; color: var(--ink-3); background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); }
.tb-join-talk { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.tb-join-talk a { display: block; padding: 11px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; transition: var(--tr); }
.tb-join-talk a:hover { border-color: var(--blue); transform: translateY(-1px); }
.tb-join-talk b { display: block; font-size: 12.5px; color: var(--blue); }
.tb-join-talk p { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 3px 0 6px; font-size: 13px; color: var(--ink-2); }
.tb-join-talk span { display: block; overflow: hidden; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); text-overflow: ellipsis; white-space: nowrap; }
.tb-join-none { margin: 0; font-size: 13px; color: var(--ink-3); }
.tb-join-meter { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: 12px; color: var(--ink-3); }
.tb-join-meter b { font-family: var(--mono); color: var(--blue); }
.tb-join-meter a { font-weight: 600; color: var(--blue); white-space: nowrap; }

/* 登录 / 注册页 */
.tb-auth { padding: clamp(24px, 5vh, 52px) 0 clamp(30px, 6vh, 58px); background: linear-gradient(180deg, var(--bg-blue) 0%, #fff 58%); }
.tb-auth-box { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); max-width: 980px; margin: 0 auto; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 46px rgba(23, 38, 61, .09); }
.tb-auth-side { position: relative; padding: clamp(26px, 3.4vw, 38px); overflow: hidden; background: linear-gradient(165deg, #eaf1ff 0%, #f8fbff 100%); border-right: 1px solid var(--line); }
.tb-auth-side::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(30, 111, 245, .17) 1px, transparent 1px); background-size: 16px 16px; opacity: .6; }
.tb-auth-side > * { position: relative; }
.tb-auth-side h2 { margin: 8px 0 10px; font-size: clamp(19px, 2.3vw, 25px); letter-spacing: -.02em; line-height: 1.45; }
.tb-auth-side h2 i { font-style: normal; color: var(--blue); }
.tb-auth-side > p { max-width: 36ch; margin: 0; font-size: 13px; color: var(--ink-2); }
.tb-auth-points { display: flex; flex-direction: column; gap: 12px; margin: 22px 0 0; list-style: none; }
.tb-auth-points li { display: flex; align-items: flex-start; gap: 10px; }
.tb-auth-points b { flex: 0 0 auto; padding: 2px 6px; margin-top: 2px; font-family: var(--mono); font-size: 10.5px; color: var(--blue); background: #fff; border: 1px solid rgba(30, 111, 245, .18); border-radius: 6px; }
.tb-auth-points span { font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }
.tb-auth-points strong { display: block; font-size: 13px; font-weight: 700; color: var(--ink); }
.tb-auth-stats { display: flex; gap: 22px; margin-top: 26px; padding-top: 16px; border-top: 1px dashed rgba(30, 111, 245, .25); }
.tb-auth-stats div { display: flex; flex-direction: column; }
.tb-auth-stats b { font-family: var(--mono); font-size: 17px; color: var(--blue); }
.tb-auth-stats i { font-family: var(--font); font-size: 11px; font-style: normal; color: var(--ink-3); }

.tb-auth-main { padding: clamp(26px, 3.4vw, 38px); }
.tb-auth-main h1 { margin: 0 0 6px; font-size: clamp(21px, 2.6vw, 27px); letter-spacing: -.02em; }
.tb-auth-sub { margin: 0 0 20px; font-size: 13px; color: var(--ink-2); }
.tb-auth-sub b { color: var(--ink); }
.tb-auth-msg, .tb-auth-err { margin: 0 0 14px; padding: 10px 13px; border-radius: 9px; font-size: 12.5px; }
.tb-auth-msg { color: #1a6a45; background: #f0fbf5; border: 1px solid #cdeedd; border-left: 3px solid #23a06a; }
.tb-auth-err { color: #8b3038; background: #fdf1f2; border: 1px solid #f4d8dc; border-left: 3px solid #d9536b; }
.tb-auth-form { display: flex; flex-direction: column; gap: 15px; }
.tb-auth-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.tb-field { display: block; }
.tb-field-label { display: block; margin-bottom: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; color: var(--ink-3); }
.tb-field input[type=email], .tb-field input[type=password], .tb-field input[type=text] { width: 100%; height: 44px; padding: 0 13px; font: inherit; font-size: 14px; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 10px; transition: var(--tr); }
.tb-field input::placeholder { color: #b7c1d0; }
.tb-field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.tb-field small { display: block; margin-top: 5px; font-size: 11.5px; color: var(--ink-3); }
.tb-field-wrap { position: relative; display: block; }
.tb-field-wrap input { padding-right: 46px; }
.tb-auth-eye { position: absolute; top: 50%; right: 6px; display: grid; place-items: center; width: 32px; height: 32px; color: var(--ink-3); background: none; border: 0; border-radius: 8px; cursor: pointer; transform: translateY(-50%); transition: var(--tr); }
.tb-auth-eye svg { width: 17px; height: 17px; }
.tb-auth-eye:hover { color: var(--blue); background: var(--bg-blue); }
.tb-auth-eye.is-on { color: var(--blue); }

.tb-auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.tb-auth-link { font-weight: 600; color: var(--blue); }
.tb-auth-link:hover { text-decoration: underline; }
.tb-auth-check { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); cursor: pointer; user-select: none; }
.tb-auth-check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tb-auth-check i { flex: 0 0 auto; display: grid; place-items: center; width: 16px; height: 16px; background: #fff; border: 1.5px solid var(--line-2); border-radius: 5px; transition: var(--tr); }
.tb-auth-check i::after { content: ''; width: 8px; height: 4px; border-bottom: 2px solid #fff; border-left: 2px solid #fff; opacity: 0; transform: rotate(-45deg) scale(.4); transition: var(--tr); }
.tb-auth-check input:checked + i { background: var(--blue); border-color: var(--blue); }
.tb-auth-check input:checked + i::after { opacity: 1; transform: rotate(-45deg) scale(1); }
.tb-auth-check input:focus-visible + i { box-shadow: 0 0 0 3px var(--blue-soft); }
.tb-auth-terms { align-items: flex-start; font-size: 12.5px; line-height: 1.6; }
.tb-auth-terms i { margin-top: 3px; }
.tb-auth-terms a { color: var(--blue); }
.tb-auth-submit { height: 46px; margin-top: 3px; justify-content: center; font-size: 15px; box-shadow: 0 6px 18px rgba(30, 111, 245, .22); }
.tb-btn.is-loading { position: relative; pointer-events: none; }
.tb-btn.is-loading > span { visibility: hidden; }
.tb-btn.is-loading::before { position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; content: ''; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: tb-spin .62s linear infinite; }
.tb-btn-ghost.is-loading::before { border-color: rgba(30, 111, 245, .25); border-top-color: var(--blue); }
@keyframes tb-spin { to { transform: rotate(360deg); } }
.tb-chall { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; padding: 9px 12px; background: var(--bg-soft); border: 1px dashed var(--line-2); border-radius: 9px; }
.tb-chall-q { font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--ink); }
.tb-chall-btn { flex: 0 0 auto; padding: 4px 10px; font-size: 12px; color: var(--blue); background: none; border: 1px solid var(--line-2); border-radius: var(--r-pill); cursor: pointer; transition: var(--tr); }
.tb-chall-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.tb-auth-meter { display: block; height: 3px; margin-top: 7px; overflow: hidden; background: var(--line); border-radius: 2px; }
.tb-auth-meter i { display: block; width: 33%; height: 100%; background: var(--line-2); border-radius: 2px; transition: width .22s var(--ease), background var(--tr); }
.tb-auth-meter.lv1 i { width: 33%; background: #d9536b; }
.tb-auth-meter.lv2 i { width: 66%; background: #f0a53c; }
.tb-auth-meter.lv3 i { width: 100%; background: var(--blue); }
.tb-auth-alt { margin: 20px 0 0; padding-top: 16px; font-size: 12.5px; color: var(--ink-3); text-align: center; border-top: 1px dashed var(--line-2); }
.tb-auth-alt a { font-weight: 700; color: var(--blue); }
.tb-auth-done { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 16px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; }
.tb-auth-ava { width: 48px; height: 48px; border-radius: 12px; }
.tb-auth-done b { display: block; font-size: 14px; }
.tb-auth-done i { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.tb-auth-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tb-auth-foot { max-width: 980px; margin: 16px auto 0; font-size: 11.5px; color: var(--ink-3); text-align: center; }

@media (max-width: 880px) {
	.tb-auth-box { grid-template-columns: 1fr; }
	.tb-auth-side { border-right: 0; border-bottom: 1px solid var(--line); }
	.tb-join { grid-template-columns: 1fr; }
}

/* =============================================================
   13. 独立页面（左侧导航 · 导航地图 · 业务合作 · 免责申明）
   ============================================================= */
/* 内页页头 */
.tb-inhead { padding: clamp(30px, 5vh, 44px) 0 clamp(24px, 4vh, 34px); background: linear-gradient(160deg, #f4f8ff 0%, #eef5ff 55%, #fff 100%); border-bottom: 1px solid var(--line); }
.tb-inhead h1 { font-size: clamp(23px, 3.4vw, 33px); font-weight: 800; letter-spacing: -.02em; margin: 6px 0 8px; }
.tb-inhead-sub { margin: 0; font-size: 13px; color: var(--ink-3); }
.tb-inhead-sub b { font-family: var(--mono); font-weight: 700; color: var(--blue); }
.tb-inhead-lead { margin: 12px 0 0; max-width: 720px; font-size: 14px; line-height: 1.85; color: var(--ink-2); }
.tb-inhead-note { max-width: 760px; margin-top: 16px; padding: 12px 16px; font-size: 13px; color: var(--ink-2); background: rgba(255, 255, 255, .74); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 0 10px 10px 0; }
.tb-inhead-note p { margin: 0 0 4px; }
.tb-inhead-note p:last-child { margin: 0; }
.tb-inhead-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }

/* 左导航 + 右正文骨架 */
.tb-page-grid { display: grid; grid-template-columns: 212px minmax(0, 1fr); gap: 28px; align-items: start; }
.tb-page-solo { display: grid; justify-content: center; }
.tb-page-solo > .tb-page-main { max-width: 860px; }
.tb-page-main { min-width: 0; }
.tb-pg-sec + .tb-pg-sec { margin-top: clamp(30px, 4.5vh, 44px); }
.tb-pg-h2 { display: flex; align-items: baseline; gap: 10px; font-size: 16px; font-weight: 800; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.tb-pg-h2 small { margin-left: auto; font-family: var(--mono); font-size: 11.5px; font-weight: 400; color: var(--ink-3); }
.tb-pg-num { font-family: var(--mono); font-size: 11.5px; font-style: normal; font-weight: 700; color: var(--blue); letter-spacing: .04em; }
.tb-page-cmts { margin-top: clamp(30px, 4.5vh, 44px); padding-top: clamp(22px, 4vh, 32px); border-top: 1px solid var(--line); }

/* 左侧独立页面导航 */
.tb-rail { position: sticky; top: calc(var(--head-h) + 18px); min-width: 0; }
.tb-rail-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: var(--ink-3); }
.tb-rail-title b { margin-left: auto; padding: 1px 7px; font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: var(--ink-3); background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); }
.tb-rail-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 5px; box-shadow: var(--shadow); }
.tb-rail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tb-rail-link { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 8px; font-size: 13.5px; color: var(--ink-2); transition: var(--tr); }
.tb-rail-link:hover { background: var(--bg-blue); color: var(--blue); }
.tb-rail-link.is-on { background: var(--blue-soft); color: var(--blue); font-weight: 700; box-shadow: inset 2px 0 0 var(--blue); }
.tb-rail-tile { flex: 0 0 auto; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 11.5px; font-weight: 700; color: var(--ink-3); transition: var(--tr); }
.tb-rail-link:hover .tb-rail-tile, .tb-rail-link.is-on .tb-rail-tile { background: var(--blue); border-color: var(--blue); color: #fff; }
.tb-rail-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-rail-foot { display: flex; gap: 14px; margin: 10px 0 0 4px; font-size: 12px; color: var(--ink-3); }
.tb-rail-foot a { color: var(--ink-3); }
.tb-rail-foot a:hover { color: var(--blue); }

/* 导航地图 */
.tb-map-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 12px; }
.tb-map-page { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 13px 30px 13px 13px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: var(--tr); }
.tb-map-page:hover { border-color: var(--blue); box-shadow: 0 10px 26px rgba(30, 111, 245, .14); transform: translateY(-2px); }
.tb-map-page.is-on { border-color: rgba(30, 111, 245, .42); background: linear-gradient(180deg, #fbfdff, #f4f9ff); }
.tb-map-pinfo { min-width: 0; display: block; }
.tb-map-pinfo b { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.tb-map-page:hover .tb-map-pinfo b { color: var(--blue); }
.tb-map-pinfo p { margin: 4px 0 0; font-size: 12px; line-height: 1.6; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tb-map-cur { padding: 1px 7px; font-family: var(--mono); font-size: 10px; font-style: normal; font-weight: 500; color: var(--blue); background: #fff; border: 1px solid rgba(30, 111, 245, .28); border-radius: var(--r-pill); }

.tb-map-cats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.tb-map-cat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 2px 14px 12px; transition: var(--tr); }
.tb-map-cat:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.tb-map-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 2px; padding: 12px 0 9px; border-bottom: 1px dashed var(--line-2); font-size: 15px; font-weight: 800; color: var(--ink); }
.tb-map-cat-head b { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--blue); }
.tb-map-cat-head:hover { color: var(--blue); }
.tb-map-subs { list-style: none; margin: 0; padding: 0; }
.tb-map-subs li + li { border-top: 1px solid var(--line); }
.tb-map-subs a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 2px; font-size: 13px; color: var(--ink-2); transition: var(--tr); }
.tb-map-subs a:hover { color: var(--blue); padding-left: 6px; }
.tb-map-subs b { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--ink-3); }
.tb-map-nosub { margin: 10px 0 2px; font-size: 12.5px; color: var(--ink-3); }

/* 标题禁止换行，轨道就必须写 minmax(0,1fr)，否则 1fr 会按 max-content 撑破容器 */
.tb-map-lat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 26px; }
.tb-map-lat-item { display: flex; min-width: 0; align-items: baseline; gap: 10px; padding: 10px 4px; border-bottom: 1px dashed var(--line-2); }
.tb-map-lat-item:hover { border-bottom-color: rgba(30, 111, 245, .42); }
.tb-map-latt { flex: 1; min-width: 0; font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-map-lat-item:hover .tb-map-latt { color: var(--blue); }
.tb-map-latd { flex: 0 0 auto; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }

.tb-map-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 28px; align-items: start; }
.tb-map-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tb-map-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: #fff; font-size: 12.5px; color: var(--ink-2); transition: var(--tr); }
.tb-map-tag b { font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: var(--ink-3); }
.tb-map-tag:hover { color: #fff; border-color: var(--blue); background: var(--blue); transform: translateY(-2px); }
.tb-map-tag:hover b { color: rgba(255, 255, 255, .82); }
.tb-map-more { margin: 14px 0 0; font-size: 12.5px; }
.tb-map-more a { color: var(--blue); }
.tb-map-arch { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 18px; }
.tb-map-arch li { display: flex; min-width: 0; align-items: baseline; justify-content: space-between; gap: 8px; padding: 7px 2px; border-bottom: 1px dashed var(--line-2); font-size: 13px; }
.tb-map-arch a { color: var(--ink-2); }
.tb-map-arch a:hover { color: var(--blue); }
.tb-map-arch span { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

/* 业务合作 */
.tb-ad-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(18px, 2.4vw, 26px); }
.tb-ad-card-title { display: flex; align-items: center; gap: 9px; margin: 0 0 4px; font-size: 15px; font-weight: 800; }
.tb-ad-card-title::before { content: ''; width: 3px; height: 14px; border-radius: 2px; background: var(--blue); }
.tb-ad-rows { display: grid; gap: 2px; }
.tb-ad-row { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px dashed var(--line-2); }
.tb-ad-row:last-child { border-bottom: 0; }
.tb-ad-k { flex: 0 0 52px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.tb-ad-v { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: 14.5px; color: var(--ink); }
.tb-ad-v a { color: var(--ink); overflow-wrap: anywhere; }
.tb-ad-v a:hover { color: var(--blue); }
.tb-ad-v i { font-style: normal; font-size: 12px; color: var(--ink-3); }
.tb-ad-qq { font-family: var(--mono); font-size: 21px; font-weight: 700; color: var(--blue); }
.tb-ad-tag { padding: 2px 9px; font-size: 11px; color: var(--ink-3); background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-pill); }
.tb-ad-copy { flex: 0 0 auto; padding: 7px 14px; font-size: 12.5px; font-weight: 600; color: var(--blue); background: var(--blue-soft); border: 1px solid rgba(30, 111, 245, .2); border-radius: var(--r-sm); cursor: pointer; transition: var(--tr); }
.tb-ad-copy:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.tb-ad-copy.done { background: #14b8a6; border-color: #14b8a6; color: #fff; }

.tb-ad-ways { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.tb-ad-way { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; transition: var(--tr); }
.tb-ad-way:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-2px); }
.tb-ad-way h3 { margin: 8px 0 6px; font-size: 15px; font-weight: 800; }
.tb-ad-way p { margin: 0; font-size: 13px; line-height: 1.78; color: var(--ink-2); }
.tb-ad-way .tb-pg-num { position: absolute; right: 18px; top: 16px; opacity: .45; }
.tb-ad-waylink { display: inline-block; margin-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--blue); }

.tb-ad-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tb-ad-steps li { display: flex; align-items: flex-start; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; }
.tb-ad-steps b { flex: 0 0 auto; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-family: var(--mono); font-size: 12.5px; font-weight: 700; }
.tb-ad-steps h3 { margin: 2px 0 4px; font-size: 14px; font-weight: 700; }
.tb-ad-steps p { margin: 0; font-size: 12.5px; line-height: 1.75; color: var(--ink-2); }

.tb-ad-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tb-ad-stat { text-align: center; padding: 16px 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: var(--tr); }
.tb-ad-stat:hover { border-color: var(--blue); background: var(--bg-blue); transform: translateY(-2px); }
.tb-ad-stat b { display: block; font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--blue); }
.tb-ad-stat i { font-style: normal; font-size: 12px; color: var(--ink-3); }
.tb-ad-line { margin: 14px 0 0; font-size: 12.5px; color: var(--ink-3); }
.tb-ad-note { margin-top: clamp(30px, 4.5vh, 44px); }
.tb-ad-note-title { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.tb-ad-note .tb-inhead-note { margin-top: 0; background: #fff; }

/* 免责申明 */
.tb-doc-points { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.tb-doc-points li { position: relative; padding: 5px 13px 5px 26px; font-size: 12.5px; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); }
.tb-doc-points li::before { content: ''; position: absolute; left: 12px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--blue); opacity: .55; }
.tb-doc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(22px, 3vw, 38px); }
.tb-doc-lede { padding: 18px 22px; font-size: 14.5px; line-height: 1.95; color: var(--ink); background: linear-gradient(180deg, #f7fbff, #fff); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.tb-doc-lede p { margin: 0; }
.tb-doc-entry { margin-top: 26px; font-size: 14.5px; line-height: 1.95; color: var(--ink-2); }
.tb-doc-entry > p:first-child { margin-top: 0; }
.tb-doc-entry > p:last-child { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.tb-doc-h2 { display: flex; align-items: center; gap: 10px; margin: 30px 0 14px; font-size: 16.5px; font-weight: 800; color: var(--ink); }
.tb-doc-h2::before { content: ''; width: 4px; height: 15px; border-radius: 2px; background: var(--blue); }
.tb-doc-entry ol { margin: 0 0 18px; padding: 0 0 0 4px; list-style: none; counter-reset: tb-doc; }
.tb-doc-entry ol li { position: relative; padding: 9px 0 9px 34px; border-bottom: 1px dashed var(--line-2); counter-increment: tb-doc; }
.tb-doc-entry ol li:last-child { border-bottom: 0; }
.tb-doc-entry ol li::before { content: counter(tb-doc); position: absolute; left: 0; top: 10px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-family: var(--mono); font-size: 11px; font-weight: 700; }
.tb-doc-entry a { color: var(--blue); border-bottom: 1px solid rgba(30, 111, 245, .3); }
.tb-doc-entry a:hover { border-bottom-color: var(--blue); }
.tb-doc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 26px; padding-top: 16px; border-top: 1px dashed var(--line-2); font-size: 12.5px; color: var(--ink-3); }
.tb-doc-foot a { color: var(--blue); font-weight: 600; }

@media (max-width: 1024px) {
	.tb-page-grid { grid-template-columns: 184px minmax(0, 1fr); gap: 22px; }
	.tb-map-cats, .tb-map-lat, .tb-map-cols, .tb-ad-ways { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
	.tb-page-grid { grid-template-columns: 1fr; gap: 20px; }
	.tb-rail { position: static; }
	/* 窄屏换成横向滑动的一行，页面主体不被挤掉 */
	.tb-rail-list { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
	.tb-rail-link { white-space: nowrap; border-radius: var(--r-pill); }
	.tb-rail-link.is-on { box-shadow: inset 0 0 0 1px rgba(30, 111, 245, .45); }
	.tb-ad-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tb-map-arch { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
	.tb-doc-lede { padding: 14px 16px; }
	.tb-doc-card { padding: 20px 18px; }
	.tb-ad-row { flex-wrap: wrap; gap: 6px 12px; }
	.tb-ad-k { flex-basis: 100%; }
}

/* =============================================================
   14. 评论
   ============================================================= */
.tb-comments { margin-top: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3vw, 34px); }
.tb-comments-title { font-size: 17px; font-weight: 800; letter-spacing: -.01em; padding-bottom: 14px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }

/* 评论列表 */
.comment-list { list-style: none; }
.comment-list > li { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.comment-list > li:last-child { border-bottom: 0; }
.comment-list article { position: relative; padding: 18px 86px 18px 64px; border-radius: 12px; background: #f2f6fc; transition: background .2s var(--ease); }
.comment-list article:hover { background: #d3e2f8; }
.comment-list article:has(.reply form) { padding-right: 14px; }
.comment-list .avatar, .comment-list .tb-avatar-alt { position: absolute; left: 12px; top: 20px; width: 40px; height: 40px; border-radius: 50%; display: block; flex-shrink: 0; }
.comment-list .comment-author { display: flex; align-items: baseline; gap: 10px; }
.comment-list .comment-author .fn { font-size: 14px; font-weight: 700; color: var(--ink); font-style: normal; }
.comment-list .comment-author .fn a { color: inherit; }
.comment-list .says { display: none; }
.comment-list .comment-metadata { margin-top: 4px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.comment-list .comment-metadata a { color: inherit; }
.comment-list .comment-content { margin-top: 12px; font-size: 14px; line-height: 1.9; color: #3a4656; word-break: break-word; }
.comment-list .comment-content p { margin: 0 0 .6em; }
/* 回复按钮：悬浮在评论卡右上角，省一行纵向空间 */
.comment-list .reply { position: absolute; top: 14px; right: 14px; margin: 0; z-index: 2; }
.comment-list .reply a { display: inline-flex; align-items: center; gap: 4px; padding: 4px 13px; font-size: 12px; font-weight: 600; color: var(--blue); background: rgba(255, 255, 255, .85); border: 1px solid rgba(30, 111, 245, .22); border-radius: var(--r-pill); box-shadow: 0 2px 8px rgba(15, 28, 48, .08); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: var(--tr); }
.comment-list .reply a:hover { color: #fff; background: var(--blue); border-color: var(--blue); box-shadow: 0 4px 12px rgba(30, 111, 245, .35); transform: translateY(-1px); }
.comment-list .reply:has(form) { position: static; }
.comment-list .children { list-style: none; margin: 10px 0 14px 14px; padding-left: 22px; border-left: 2px solid #e6edf7; }
.comment-list .pingback, .comment-list .trackback { padding: 12px 14px; border-bottom: 1px dashed var(--line); font-size: 13px; }
.bypostauthor > article { background: #e4effc; }
.bypostauthor > article:hover { background: #d2e2f8; }
.bypostauthor > article .fn::after { content: '博主'; margin-left: 8px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--blue); color: #fff; font-size: 10.5px; font-weight: 600; vertical-align: 1.5px; }
.pingback .comment-body, .trackback .comment-body { padding-left: 4px; }

/* 评论锚点定位 — 无滚动动画，用高亮闪烁代替 */
.comment-list li.tb-anchor-flash > article { animation: tb-anchor-flash 1.2s var(--ease); }
@keyframes tb-anchor-flash {
	0%   { background: #c9dcf6; box-shadow: 0 0 0 3px rgba(30, 111, 245, .22); }
	70%  { background: #d5e4f9; box-shadow: 0 0 0 3px rgba(30, 111, 245, .10); }
	100% { background: #f2f6fc; box-shadow: 0 0 0 3px rgba(30, 111, 245, 0); }
}

/* 占位头像 — 清淡圆形人像 */
.tb-avatar-alt {
	display: inline-block;
	flex-shrink: 0;
	vertical-align: middle;
	border-radius: 50%;
	background-color: #f1f5f9;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b6c3d6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8.2' r='3.6'/%3E%3Cpath d='M4.8 20.4c0-3.6 3.2-6.2 7.2-6.2s7.2 2.6 7.2 6.2'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 52%;
	box-shadow: inset 0 0 0 1px #e4eaf2;
	animation: tb-fade .25s var(--ease);
}
@keyframes tb-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* 评论表单 */
.comment-respond { margin-top: 26px; padding: 24px clamp(16px, 2.6vw, 28px); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; }
.comment-respond.tb-respond-in { animation: tb-form-in .3s var(--ease); }
@keyframes tb-form-in {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: none; }
}
.comment-respond h3, .comment-respond #reply-title { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.comment-notes, .required-field-message { font-size: 12px; color: var(--ink-3); margin-bottom: 14px; }
.comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.comment-form > p { margin: 0; }
.comment-form p.comment-form-comment, .comment-form p.comment-form-cookies-consent, .comment-form p.form-submit, .comment-form p.logged-in-as { grid-column: 1 / -1; }
.comment-form label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%;
	padding: 10px 14px;
	background: #fff;
	border: 1px solid var(--line-2);
	border-radius: var(--r-sm);
	font-family: var(--font);
	font-size: 14px;
	outline: none;
	transition: var(--tr);
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); background: #fff; }
.comment-form textarea { min-height: 128px; resize: vertical; line-height: 1.8; }
.comment-form .logged-in-as a { color: var(--blue); font-size: 12.5px; }
.comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); }
.comment-form-cookies-consent label { display: inline; margin: 0; font-weight: 500; }
.comment-form input[type="submit"] {
	padding: 11px 34px;
	background: var(--blue);
	color: #fff;
	border: 0;
	border-radius: var(--r-pill);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: var(--tr);
	box-shadow: 0 4px 14px rgba(30, 111, 245, .28);
}
.comment-form input[type="submit"]:hover { background: var(--blue-dark); transform: translateY(-1px); }
#cancel-comment-reply-link { margin-left: 12px; font-size: 12px; font-weight: 500; color: #e05d5d; }
@media (max-width: 640px) { .comment-form { grid-template-columns: 1fr; } .comment-list article { padding-right: 76px; } .comment-list .reply a { padding: 3px 10px; font-size: 11.5px; } }

/* =============================================================
   15. 页脚
   ============================================================= */
.tb-footer { background: #101c30; color: #8fa0ba; margin-top: auto; }
.tb-footer a { color: #8fa0ba; }
.tb-footer a:hover { color: #fff; }

.tb-footer-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1fr;
	gap: 36px;
	padding: clamp(40px, 6vh, 60px) 0 36px;
}
.tb-footer-brand .tb-logo { color: #fff; margin-bottom: 12px; }
.tb-footer-brand p { font-size: 13px; line-height: 1.9; margin: 0; max-width: 30ch; }
.tb-footer h4 { color: #fff; font-size: 14px; margin-bottom: 16px; }
.tb-footer nav ul, .tb-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tb-footer nav a, .tb-footer-col a { font-size: 13px; }

.tb-footer-bar {
	border-top: 1px solid #1d2b45;
	padding: 20px 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
	font-size: 12px;
	color: #5f7191;
}
.tb-footer-bar a { color: #5f7191; }
.tb-footer-bar a:hover { color: #fff; }

.tb-to-top {
	position: fixed;
	right: 26px; bottom: 30px;
	width: 42px; height: 42px;
	display: grid; place-items: center;
	background: #fff;
	border: 1px solid var(--line-2);
	border-radius: var(--r-pill);
	box-shadow: var(--shadow);
	color: var(--ink-2);
	font-size: 15px;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transform: translateY(8px);
	transition: var(--tr);
	z-index: 65;
}
.tb-to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.tb-to-top:hover { color: var(--blue); border-color: var(--blue); }

/* =============================================================
   16. 搜索表单（searchform.php）
   ============================================================= */
.tb-searchform { display: flex; width: 100%; gap: 10px; }
.tb-searchform input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 11px 18px;
	border: 1px solid var(--line-2);
	border-radius: var(--r-pill);
	font-size: 14px;
	font-family: var(--font);
	outline: none;
}
.tb-searchform input[type="search"]:focus { border-color: var(--blue); }
.tb-searchform button[type="submit"], .tb-searchform input[type="submit"] {
	padding: 11px 24px;
	background: var(--blue);
	color: #fff;
	border: 0;
	border-radius: var(--r-pill);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.tb-searchform button[type="submit"]:hover { background: var(--blue-dark); }

/* =============================================================
   17. 404
   ============================================================= */
.tb-404 { padding: clamp(70px, 14vh, 140px) 0; text-align: center; }
.tb-404 b { display: block; font-size: clamp(90px, 18vw, 180px); font-weight: 800; color: var(--blue); line-height: 1; opacity: .18; }
.tb-404 h1 { font-size: clamp(20px, 2.8vw, 28px); margin: 14px 0 8px; }
.tb-404 p { color: var(--ink-2); margin-bottom: 26px; }
.tb-404-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* =============================================================
   18. 动效
   ============================================================= */
[data-tb-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
[data-tb-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	.tb-btn.is-loading::before { animation: none; }
	[data-tb-reveal] { opacity: 1; transform: none; }
}

/* =============================================================
   19. 积分（pages/points.php · 顶栏下拉 · 首页会员模块）
   ============================================================= */
/* 页头余额 + 签到卡 */
.tb-pt-sect { padding-top: clamp(24px, 4vh, 38px); }
.tb-pt-grid { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 28px; align-items: start; }
.tb-pt-card { display: grid; grid-template-columns: 218px minmax(0, 1fr); gap: clamp(18px, 2.4vw, 30px); padding: clamp(18px, 2.4vw, 24px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.tb-pt-bal { padding-right: clamp(14px, 2vw, 22px); border-right: 1px dashed var(--line-2); }
.tb-pt-sum { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 0; }
.tb-pt-sum b { font-family: var(--mono); font-size: clamp(31px, 4.2vw, 42px); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ink); transition: color .5s var(--ease); }
.tb-pt-sum b.is-bump { color: var(--blue); }
.tb-pt-sum i { font-style: normal; font-size: 12.5px; color: var(--ink-3); }
.tb-pt-facts { list-style: none; display: grid; gap: 5px; margin: 15px 0 0; padding: 0; font-size: 12px; }
.tb-pt-facts li { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-3); }
.tb-pt-facts b { font-family: var(--mono); font-weight: 600; color: var(--ink-2); }

/* 最近 7 天签到格 */
.tb-pt-cal { list-style: none; display: flex; gap: 6px; margin: 0 0 15px; padding: 0; }
.tb-pt-cell { flex: 1 1 0; min-width: 0; display: grid; justify-items: center; gap: 1px; padding: 8px 3px 6px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 9px; transition: var(--tr); }
.tb-pt-cell b { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.tb-pt-cell i { font-style: normal; font-size: 10.5px; color: var(--ink-3); }
.tb-pt-cell s { font-family: var(--mono); font-size: 10px; text-decoration: none; color: var(--ink-3); }
.tb-pt-cell.is-on { background: var(--blue-soft); border-color: rgba(30, 111, 245, .22); }
.tb-pt-cell.is-on b, .tb-pt-cell.is-on s { color: var(--blue); }
.tb-pt-cell.is-today { outline: 1px dashed rgba(30, 111, 245, .5); outline-offset: 2px; }

.tb-pt-act { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.tb-pt-go { height: 42px; padding: 0 22px; justify-content: center; font-size: 14px; box-shadow: 0 5px 16px rgba(30, 111, 245, .2); }
.tb-pt-go[disabled] { background: var(--blue-soft); border-color: transparent; color: var(--blue); box-shadow: none; cursor: default; }
.tb-pt-note { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.tb-pt-note.is-ok { color: var(--blue); }
.tb-pt-note.is-err { color: #d9536b; }

/* 明细 */
.tb-pt-panel { margin-top: clamp(26px, 4vh, 38px); }
.tb-pt-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.tb-pt-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; font-size: 12.5px; color: var(--ink-2); background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-pill); transition: var(--tr); }
.tb-pt-chip:hover { border-color: var(--blue); color: var(--blue); }
.tb-pt-chip b { font-family: var(--mono); font-size: 10.5px; font-weight: 500; padding: 0 5px; color: var(--ink-3); background: var(--bg-soft); border-radius: var(--r-pill); }
.tb-pt-chip.is-on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.tb-pt-chip.is-on b { color: var(--blue); background: #fff; }
.tb-pt-list { list-style: none; margin: 0; padding: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.tb-pt-row { display: grid; grid-template-columns: 118px minmax(0, 1fr) 128px 70px; gap: 14px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; transition: background var(--tr); }
.tb-pt-row:first-child { border-top: 0; }
.tb-pt-row:hover { background: var(--bg-soft); }
.tb-pt-type { display: flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink); }
.tb-pt-type::before { content: ''; flex: 0 0 auto; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.tb-pt-row.is-out .tb-pt-type::before { background: var(--ink-3); }
.tb-pt-note-cell { overflow: hidden; color: var(--ink-2); text-overflow: ellipsis; white-space: nowrap; }
.tb-pt-time { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.tb-pt-val { font-family: var(--mono); font-size: 14px; font-weight: 700; text-align: right; color: var(--blue); }
.tb-pt-row.is-out .tb-pt-val { color: var(--ink-3); }
.tb-pt-none { margin: 0; padding: 26px 18px; font-size: 13px; color: var(--ink-3); text-align: center; background: var(--bg-soft); border: 1px dashed var(--line-2); border-radius: 12px; }

/* 侧栏说明 */
.tb-pt-side { position: sticky; top: calc(var(--head-h) + 18px); display: grid; gap: 16px; }
.tb-pt-widget { padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.tb-pt-widget h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 13px; font-size: 13.5px; font-weight: 800; }
.tb-pt-mark { display: grid; place-items: center; width: 22px; height: 22px; font-size: 11.5px; font-weight: 700; color: var(--blue); background: var(--bg-blue); border-radius: 7px; }
.tb-pt-ladder { list-style: none; display: grid; gap: 7px; margin: 0; padding: 0; }
.tb-pt-ladder li { display: grid; grid-template-columns: 58px minmax(0, 1fr) 34px; align-items: center; gap: 9px; font-size: 12px; color: var(--ink-2); }
.tb-pt-ladder b { font-weight: 600; }
.tb-pt-ladder i { font-family: var(--mono); font-style: normal; font-size: 11.5px; text-align: right; color: var(--ink-3); }
.tb-pt-lbar { display: block; height: 4px; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 2px; }
.tb-pt-lbar i { display: block; height: 100%; background: var(--line-2); }
.tb-pt-ladder li.is-now { color: var(--blue); }
.tb-pt-ladder li.is-now b, .tb-pt-ladder li.is-now i { color: var(--blue); }
.tb-pt-ladder li.is-now .tb-pt-lbar { border-color: rgba(30, 111, 245, .3); }
.tb-pt-ladder li.is-now .tb-pt-lbar i { background: var(--blue); }
.tb-pt-rules { display: grid; gap: 8px; margin: 0; padding-left: 17px; font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }
.tb-pt-rules li::marker { font-family: var(--mono); font-size: 11px; color: var(--blue); }
.tb-pt-wfoot { margin: 12px 0 0; font-size: 11.5px; line-height: 1.7; color: var(--ink-3); }
.tb-pt-links { display: grid; gap: 2px; }
.tb-pt-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 -10px; padding: 8px 10px; font-size: 13px; color: var(--ink-2); border-radius: 8px; transition: var(--tr); }
.tb-pt-link:hover { color: var(--blue); background: var(--bg-blue); }

/* 未登录 */
.tb-pt-guest .tb-pt-card { grid-template-columns: minmax(0, 1fr) 132px; align-items: center; }
.tb-pt-off h2 { margin: 0 0 8px; font-size: 19px; font-weight: 800; }
.tb-pt-off p { margin: 0 0 16px; max-width: 560px; font-size: 13.5px; line-height: 1.8; color: var(--ink-2); }
.tb-pt-off-cal { position: relative; display: grid; gap: 7px; justify-items: center; padding: 16px 0; }
.tb-pt-off-cal b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; font-weight: 800; color: var(--blue-soft); }
.tb-pt-dot { width: 26px; height: 8px; background: var(--line); border-radius: var(--r-pill); }
.tb-pt-dot.is-today { background: var(--blue-soft); }

/* 顶栏下拉里的余额 */
.tb-user-pts { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 7px; padding-top: 7px; border-top: 1px dashed var(--line); font-size: 11.5px; color: var(--ink-3); }
.tb-user-pts b { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--blue); }
.tb-mnav-pts { margin-left: auto; font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.tb-mnav-pts b { margin-left: 5px; font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--blue); }

/* 首页会员模块的签到条 */
.tb-pt-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 18px; padding: 12px 14px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; }
.tb-pt-strip-txt { min-width: 0; font-size: 12.5px; color: var(--ink-2); }
.tb-pt-strip-txt b { font-family: var(--mono); color: var(--ink); }
.tb-pt-strip-go { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tb-pt-strip-go .tb-btn { height: 34px; padding: 0 16px; font-size: 13px; }
.tb-pt-strip-link { font-size: 12.5px; font-weight: 600; color: var(--blue); }
.tb-pt-strip-link:hover { text-decoration: underline; }

/* =============================================================
   20. 响应式
   ============================================================= */
@media (max-width: 1024px) {
	/* 列表列数由 tb_theme_css() 按后台设置逐级下发，这里只管剩下的 */
	.tb-feats { grid-template-columns: repeat(2, 1fr); }
	.tb-single-grid { grid-template-columns: 1fr; }
	.tb-side { position: static; flex-direction: row; flex-wrap: wrap; }
	.tb-side .tb-widget { flex: 1 1 280px; }
	.tb-pt-grid { grid-template-columns: 1fr; }
	.tb-pt-side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
	.tb-pt-card { grid-template-columns: 1fr; }
	.tb-pt-bal { padding: 0 0 16px; border-right: 0; border-bottom: 1px dashed var(--line-2); }
	.tb-pt-guest .tb-pt-card { grid-template-columns: 1fr; }
	.tb-pt-off-cal { display: none; }
}

@media (max-width: 1120px) {
	/* 顶栏交给「注册」当主按钮，联系我收进页脚 */
	.tb-head-contact { display: none; }
}

@media (max-width: 900px) {
	.tb-nav { display: none; }
	.tb-burger { display: grid; }
	.tb-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
	.tb-news { grid-template-columns: 1fr; }
	.tb-prevnext { grid-template-columns: 1fr; }
	.tb-prevnext .next { text-align: left; }
	.tb-hero-stats { flex-direction: column; border-radius: var(--r); }
	.tb-hstat { border-left: 0; border-top: 1px solid var(--line); }
	.tb-hstat:first-child { border-top: 0; }
	.tb-hstat { text-align: center; }
	.tb-head-login, .tb-user-name { display: none; }
	.tb-pt-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; padding: 12px 14px; }
	.tb-pt-val { grid-row: 1; grid-column: 2; }
	.tb-pt-note-cell, .tb-pt-time { grid-column: 1 / -1; }
	.tb-pt-cal { gap: 4px; }
	.tb-pt-cell { padding: 6px 2px 5px; }
	.tb-pt-strip-go { width: 100%; margin-left: 0; }
	.tb-pt-strip-go .tb-btn { flex: 1; justify-content: center; }
}

/* =============================================================
   21. WP 兜底
   ============================================================= */
.aligncenter { margin: 0 auto 1.4em; }
.alignleft { float: left; margin: 0 1.4em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.4em; }
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px; width: 1px;
	overflow: hidden;
}
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 1.6em 0; }

/* =============================================================
   公告条（外观 → zhime 设置 → 品牌与外观）
   ============================================================= */
.tb-notice {
	position: relative;
	background: var(--blue-soft);
	color: #24405f;
	border-bottom: 1px solid var(--line);
	font-size: 13.5px;
	line-height: 1.6;
}
.tb-notice-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px 10px;
	width: min(var(--w, 1200px), calc(100% - 40px));
	margin: 0 auto;
	/* 两侧对称留白：右侧要躲开绝对定位的 ✕，留白不对称就会看着偏 */
	padding: 10px 34px;
}
.tb-notice-ic {
	display: flex;
	align-items: center;
	flex: none;
	color: var(--blue);
}
.tb-notice-ic svg { width: 16px; height: 16px; }
.tb-notice a {
	color: var(--blue);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid rgba(30, 111, 245, .32);
}
.tb-notice a:hover { color: var(--blue-dark); border-bottom-color: var(--blue-dark); }
.tb-notice-x {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
	opacity: .55;
	transition: var(--tr);
}
.tb-notice-x:hover { opacity: 1; background: rgba(23, 38, 61, .08); }
.tb-notice.is-solid { background: var(--blue); border-bottom-color: transparent; color: #fff; }
.tb-notice.is-solid a { color: #fff; border-bottom-color: rgba(255, 255, 255, .55); }
.tb-notice.is-solid .tb-notice-ic { color: #fff; }
.tb-notice.is-solid .tb-notice-x:hover { background: rgba(255, 255, 255, .18); }
.tb-notice.is-dark { background: #17263d; border-bottom-color: transparent; color: #d7e2f2; }
.tb-notice.is-dark a { color: #7fb0ff; border-bottom-color: rgba(127, 176, 255, .45); }
.tb-notice.is-dark .tb-notice-ic { color: #7fb0ff; }
.tb-notice.is-dark .tb-notice-x:hover { background: rgba(255, 255, 255, .14); }

/* 关掉「缩略图兜底」时只留色块，不放图形 */
.tb-thumb-alt.is-blank::before { display: none; }

/* =============================================================
   头像加载中占位：gravatar/镜像首屏慢时先给骨架圈，落地或超时后移除
   ============================================================= */
img.avatar.tb-ava-loading {
	border-radius: 50%;
	background: linear-gradient( 100deg, #eef1f6 22%, #dfe5ee 42%, #eef1f6 62% ) #eef1f6;
	background-size: 220% 100%;
	animation: tb-ava-shimmer 1.25s linear infinite;
}
@keyframes tb-ava-shimmer {
	from { background-position: 120% 0; }
	to   { background-position: -120% 0; }
}
@media (prefers-reduced-motion: reduce) {
	img.avatar.tb-ava-loading { animation: none; }
}
/* =============================================================
   文末互动条 — 点赞 + 红包
   两颗等高的小卡片并排居中：上面一条主操作，隔一根细线，下面一行说明。
   红包做成微信那种紧凑信封，头像堆在信封底行，悬停才摊开。
   ============================================================= */
.tb-acts {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: center;
	gap: 14px 16px;
	margin-top: 30px;
	padding: 18px 20px;
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: var(--r);
}

/* 两个控件等高（42 + 26），并排时上下沿都对齐 */
.tb-act-card,
.tb-rp {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 196px;
	max-width: 100%;
}
.tb-rp { width: 252px; }

/* --- 左：点赞 ---------------------------------------------------- */
.tb-act-card {
	background: var(--bg);
	border: 1px solid var(--line-2);
	border-radius: var(--r);
	transition: border-color var(--tr), box-shadow var(--tr), transform var(--tr);
}
.tb-act-card:hover {
	border-color: var(--blue);
	box-shadow: 0 3px 14px rgba(30, 111, 245, .1);
	transform: translateY(-1px);
}

.tb-act-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 42px;
	padding: 0 12px;
	font: inherit;
	font-size: 14px;
	color: var(--ink-2);
	background: none;
	border: 0;
	border-bottom: 1px solid var(--line);
	border-radius: var(--r) var(--r) 0 0;
	cursor: pointer;
	transition: color var(--tr), background var(--tr);
}
.tb-act-btn .tb-ic {
	width: 17px; height: 17px;
	fill: none; stroke: currentColor; stroke-width: 1.6;
	stroke-linejoin: round; stroke-linecap: round;
}
.tb-act-btn b { font-weight: 600; }
.tb-act-btn i { font-style: normal; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tb-act-btn:hover { color: var(--blue); background: var(--blue-soft); }
.tb-act-btn:hover i { color: var(--blue-dark); }
.tb-act-btn.is-on { color: var(--blue); }
.tb-act-btn.is-on .tb-ic { fill: var(--blue); stroke: var(--blue); }
.tb-act-btn[disabled] { opacity: .6; cursor: default; }
.tb-act-btn.is-pop { animation: tb-pop .36s var(--ease); }
@keyframes tb-pop {
	0%   { transform: scale(1); }
	38%  { transform: scale(.93); }
	68%  { transform: scale(1.06); }
	100% { transform: scale(1); }
}
.tb-act-hint {
	display: flex;
	align-items: center;
	width: 100%;
	height: 26px;
	margin: 0;
	padding: 0 12px;
	font-size: 12px;
	line-height: 1.2;
	color: var(--ink-3);
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* --- 右：微信那种小信封 ------------------------------------------ */
.tb-rp-btn {
	display: block;
	width: 100%;
	padding: 0;
	font: inherit;
	text-align: left;
	color: #8a4a15;
	background: linear-gradient(104deg, #fdf4e5, #f9e6c6 58%, #f4d8ab);
	border: 1px solid #eccf9c;
	border-radius: var(--r);
	overflow: hidden;
	cursor: pointer;
	transition: border-color var(--tr), box-shadow var(--tr), transform var(--tr);
}
.tb-rp-btn:hover {
	border-color: #dcb277;
	box-shadow: 0 3px 14px rgba(180, 116, 40, .16);
	transform: translateY(-1px);
}
.tb-rp-btn:active { transform: translateY(0); }
.tb-rp-btn[disabled] { cursor: default; }
.tb-rp-btn[disabled]:hover { transform: none; box-shadow: none; }

.tb-rp-top {
	display: flex;
	align-items: center;
	gap: 9px;
	height: 42px;
	padding: 0 12px;
	border-bottom: 1px solid rgba(176, 122, 46, .22);
}
.tb-rp-name {
	flex: 0 1 auto;
	min-width: 0;
	font-size: 14px;
	font-weight: 600;
	color: #a3470f;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.tb-rp-kind {
	flex: 1;
	min-width: 0;
	font-style: normal;
	font-size: 12px;
	color: #a9834f;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* 底行：左边「几人已拆」，hover 换成名单；右边头像叠着 */
.tb-rp-row2 {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 26px;
	padding: 0 12px;
}
.tb-rp-who { position: relative; flex: 1; min-width: 0; height: 14px; }
.tb-rp-who span {
	position: absolute;
	inset: 0;
	font-size: 12px;
	line-height: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: opacity var(--tr);
}
.tb-rp-who-n { color: #a9834f; }
.tb-rp-who-b { color: #8a4a15; opacity: 0; }
.tb-rp:hover .tb-rp-who-n { opacity: 0; }
.tb-rp:hover .tb-rp-who-b { opacity: 1; }

.tb-rp-avas { display: flex; align-items: center; flex: none; }
/* 头像挂了会被换成 .tb-avatar-alt 占位，所以规则压在孩子上而不是类名上 */
.tb-rp-avas > * {
	width: 20px; height: 20px;
	flex: none;
	margin-left: -8px;
	border-radius: 50%;
	background-color: #f1f5f9;
	border: 1px solid #fffaf0;
	box-shadow: 0 1px 3px rgba(120, 80, 30, .2);
	transition: margin-left var(--tr), transform var(--tr);
}
.tb-rp-avas > :first-child { margin-left: 0; }
.tb-rp:hover .tb-rp-avas > * { margin-left: -2px; transform: translateY(-1px); }
.tb-rp:hover .tb-rp-avas > :first-child { margin-left: 0; }
/* 一颗颗错开摊开，别整排一起弹 */
.tb-rp:hover .tb-rp-avas > :nth-child(2) { transition-delay: .03s }
.tb-rp:hover .tb-rp-avas > :nth-child(3) { transition-delay: .06s }
.tb-rp:hover .tb-rp-avas > :nth-child(4) { transition-delay: .09s }
.tb-rp:hover .tb-rp-avas > :nth-child(5) { transition-delay: .12s }
.tb-rp:hover .tb-rp-avas > :nth-child(6) { transition-delay: .15s }
span.tb-rp-ava {
	display: grid;
	place-items: center;
	font-size: 10px;
	font-weight: 600;
	color: #8a4a15;
}
/* 刚拆完把自己顶到最前，用首字圆片，不赌头像图能不能加载 */
span.tb-rp-ava.is-me {
	font-size: 11px;
	color: #fff;
	background: #c8402f;
	border-color: #fffaf0;
}

/* 红封小标记 */
.tb-rp-mark {
	position: relative;
	flex: none;
	width: 26px; height: 20px;
	border-radius: 3px;
	background: linear-gradient(180deg, #e2564a, #c8402f);
	transition: transform var(--tr);
}
/* 悬停时信封微微翘一下，拆过了就不再有这个小动作 */
.tb-rp-btn:hover .tb-rp-mark { transform: rotate(-4deg); }
.tb-rp-btn[disabled]:hover .tb-rp-mark { transform: none; }
.tb-rp-mark::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 9px;
	background: #d6493a;
	clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.tb-rp-mark i {
	position: absolute;
	left: 50%; top: 55%;
	width: 8px; height: 8px;
	margin: -4px 0 0 -4px;
	border-radius: 50%;
	background: #ffd98a;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, .28);
}

/* 拆过了 / 抢完了：信封褪成中性，标记换成金章 */
.tb-rp.is-mine .tb-rp-btn { background: var(--bg); border-color: var(--line-2); }
.tb-rp.is-mine .tb-rp-top { border-bottom-color: var(--line); }
.tb-rp.is-mine .tb-rp-name { color: var(--ink); }
.tb-rp.is-mine .tb-rp-kind,
.tb-rp.is-mine .tb-rp-who-n { color: var(--ink-3); }
.tb-rp.is-mine .tb-rp-who-b { color: var(--ink-2); }
.tb-rp.is-mine .tb-rp-mark { background: linear-gradient(180deg, #f0c265, #dba53f); }
.tb-rp.is-mine .tb-rp-mark::before { background: #e6b452; }
.tb-rp.is-mine .tb-rp-mark i { background: #fff; box-shadow: none; }
.tb-rp.is-mine .tb-rp-avas > * { border-color: var(--bg); }
.tb-rp.is-done .tb-rp-name { color: var(--ink-2); }
.tb-rp.is-done .tb-rp-mark { filter: grayscale(1) opacity(.55); }

/* --- 拆红包弹窗：未拆是金底，点金币才真的抢，拆开翻成红底 ---------------- */
.tb-rp-pop {
	position: fixed;
	inset: 0;
	z-index: 140;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
}
.tb-rp-pop[hidden] { display: none; }
body.tb-pop-open { overflow: hidden; }

.tb-rp-scrim {
	position: absolute;
	inset: 0;
	background: rgba(12, 20, 34, .62);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	animation: tb-rp-fade .22s var(--ease) both;
}
@keyframes tb-rp-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}
.tb-rp-dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	width: min(320px, 100%);
	animation: tb-rp-pop .36s var(--ease) both;
}
@keyframes tb-rp-pop {
	from { opacity: 0; transform: translateY(18px) scale(.96); }
	to   { opacity: 1; transform: none; }
}
.tb-rp-sheet {
	position: relative;
	width: 100%;
	color: #fff;
	border-radius: var(--r);
	background: linear-gradient(168deg, #f0b954, #dd9a30 62%, #cd8922);
	box-shadow: 0 20px 46px rgba(18, 12, 4, .38);
	transition: background .3s var(--ease);
}
/* 顶部那层高光，纯装饰 */
.tb-rp-sheet::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(120% 58% at 50% -14%, rgba(255, 255, 255, .32), rgba(255, 255, 255, 0) 62%);
}
.tb-rp-pop.is-open .tb-rp-sheet {
	background: linear-gradient(175deg, #d0483a, #a8332a);
}
.tb-rp-x {
	flex: none;
	width: 34px;
	height: 34px;
	padding: 0;
	display: grid;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, .55);
	border-radius: 50%;
	background: none;
	color: #fff;
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
	transition: var(--tr);
}
.tb-rp-x:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }

/* 未拆那一面 */
.tb-rp-shut {
	position: relative;
	z-index: 1;
	padding: 26px 22px 24px;
	text-align: center;
}
.tb-rp-from {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	font-size: 14px;
	color: rgba(255, 255, 255, .94);
}
.tb-rp-badge {
	flex: none;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: var(--r-sm);
	background: #fff;
	color: #c9871f;
	font-size: 13px;
	font-weight: 700;
}
.tb-rp-sub { margin: 9px 0 0; font-size: 12px; color: rgba(255, 255, 255, .8); }
.tb-rp-word { margin: 22px 0 24px; font-size: 15px; font-weight: 600; }
.tb-rp-coin {
	position: relative;
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	margin: 0 auto;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: radial-gradient(circle at 50% 30%, #ffeeb6, #f2c869 55%, #dda93f);
	color: #a3600c;
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 5px 0 #c8892a, 0 14px 26px rgba(0, 0, 0, .24);
	transition: transform var(--tr), box-shadow var(--tr);
}
.tb-rp-coin:hover { transform: translateY(-2px); }
.tb-rp-coin:active { transform: translateY(3px); box-shadow: 0 2px 0 #c8892a, 0 6px 14px rgba(0, 0, 0, .2); }
.tb-rp-coin[disabled] { opacity: .72; cursor: default; transform: none; }
/* 「点我」呼吸圈；用伪元素做，才不会和 hover 的 transform 打架 */
.tb-rp-coin::after {
	content: "";
	position: absolute;
	inset: -7px;
	border: 1px solid rgba(255, 255, 255, .6);
	border-radius: 50%;
	animation: tb-rp-ring 2.2s var(--ease) infinite;
}
.tb-rp-coin[disabled]::after { animation: none; opacity: 0; }
@keyframes tb-rp-ring {
	0%   { transform: scale(.9); opacity: 0; }
	30%  { opacity: .6; }
	100% { transform: scale(1.14); opacity: 0; }
}
.tb-rp-tip { margin: 18px 0 0; font-size: 12px; color: rgba(255, 255, 255, .82); }
.tb-rp-tip.is-err { color: #8f2c1c; font-weight: 600; }

/* --- 拆开那一刻的卡片 -------------------------------------------- */
.tb-rp-card {
	position: relative;
	z-index: 1;
	overflow: hidden;
	width: 100%;
	padding: 24px 20px 22px;
	text-align: center;
	animation: tb-rp-rise .34s var(--ease) both;
}
@keyframes tb-rp-rise {
	from { opacity: 0; transform: translateY(10px) scale(.985); }
	to   { opacity: 1; transform: none; }
}
.tb-rp-flap {
	position: absolute;
	left: 0; right: 0; top: 0;
	height: 44%;
	background: #b83a2e;
	clip-path: polygon(0 0, 100% 0, 50% 100%);
	transform-origin: top center;
	animation: tb-rp-flap .5s var(--ease) .12s both;
	pointer-events: none;
}
@keyframes tb-rp-flap {
	0%   { transform: scaleY(1); opacity: 1; }
	70%  { transform: scaleY(.06); opacity: .35; }
	100% { transform: scaleY(0); opacity: 0; }
}
.tb-rp-in { position: relative; z-index: 1; text-align: center; }
.tb-rp-in .tb-tag-label { color: rgba(255, 255, 255, .72); }
.tb-rp-sum { margin: 6px 0 2px; line-height: 1.05; }
.tb-rp-sum b { font-size: 34px; font-weight: 700; color: #ffe6ac; font-variant-numeric: tabular-nums; }
.tb-rp-sum i { margin-left: 3px; font-style: normal; font-size: 14px; color: rgba(255, 255, 255, .8); }
.tb-rp-wish { margin: 4px 0 0; font-size: 13px; color: rgba(255, 255, 255, .88); }
.tb-rp-rules {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 14px;
	margin: 12px 0 0;
	padding: 10px 0 0;
	border-top: 1px solid rgba(255, 255, 255, .16);
	font-size: 12px;
	color: rgba(255, 255, 255, .72);
}
.tb-rp-foot { margin: 10px 0 0; font-size: 12px; color: rgba(255, 255, 255, .8); min-height: 16px; }
.tb-rp-foot.is-err { color: #ffd7d2; }
.tb-rp-take {
	margin-top: 14px;
	background: #fff;
	color: #b23527;
	border-color: #fff;
}
.tb-rp-take:hover { background: #fff4ee; color: #9c2c20; border-color: #fff4ee; }
.tb-rp-take[disabled] { opacity: .7; cursor: default; }

@media (max-width: 640px) {
	.tb-acts { padding: 15px 14px; gap: 12px; }
	.tb-act-card, .tb-rp { width: 100%; }
	.tb-rp-card { padding: 20px 14px 15px; }
	.tb-rp-pop { padding: 18px 14px; }
	.tb-rp-shut { padding: 22px 16px 20px; }
	.tb-rp-word { margin: 18px 0 20px; }
	.tb-rp-sum b { font-size: 30px; }
	.tb-rp-kind { white-space: normal; }
	/* 触屏没有 hover，名单直接摊开就行 */
	.tb-rp:hover .tb-rp-avas > * { margin-left: -8px; transform: none; }
	.tb-rp-who .tb-rp-who-n { display: none; }
	.tb-rp-who .tb-rp-who-b { position: static; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.tb-rp-card, .tb-rp-flap, .tb-act-btn.is-pop { animation: none; }
	.tb-rp-scrim, .tb-rp-dialog, .tb-rp-coin::after { animation: none; }
	.tb-rp-avas > *, .tb-rp-who span, .tb-rp-btn, .tb-rp-mark, .tb-act-card { transition: none; }
}

/* --- 轻提示：互动条的三个动作都用它 -------------------------------- */
/* 三种状态共用同一枚墨色胶囊，只用左侧小圆点区分别，绿/红底太跳 */
.tb-toast {
	position: fixed;
	left: 50%;
	bottom: 30px;
	z-index: 120;
	display: flex;
	align-items: center;
	gap: 9px;
	max-width: min(84vw, 420px);
	padding: 10px 18px 10px 15px;
	font-size: 13px;
	line-height: 1.5;
	color: #fff;
	background: rgba(23, 38, 61, .9);
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: var(--r-pill);
	box-shadow: 0 10px 28px rgba(23, 38, 61, .22);
	backdrop-filter: blur(6px);
	opacity: 0;
	transform: translate(-50%, 12px);
	transition: opacity .2s var(--ease), transform .2s var(--ease);
	pointer-events: none;
}
.tb-toast::before {
	content: "";
	flex: none;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .5);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, .12);
}
.tb-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.tb-toast.is-ok::before { background: var(--blue); box-shadow: 0 0 0 3px rgba(255, 255, 255, .16); }
.tb-toast.is-err::before { background: #ff9d8f; box-shadow: 0 0 0 3px rgba(255, 157, 143, .22); }

/* 积分页「怎么赚分」小工具 ------------------------------------------ */
.tb-pt-ways { list-style: none; display: grid; gap: 9px; margin: 0; padding: 0; }
.tb-pt-ways li {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: baseline;
	gap: 4px 10px;
	padding-bottom: 9px;
	border-bottom: 1px dashed var(--line-2);
}
.tb-pt-ways li:last-child { padding-bottom: 0; border-bottom: 0; }
.tb-pt-ways b { font-size: 13px; font-weight: 600; color: var(--ink); }
.tb-pt-ways i { font-style: normal; font-size: 12px; color: var(--blue); font-variant-numeric: tabular-nums; }
.tb-pt-ways span { grid-column: 1 / -1; font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }
.tb-pt-notes { list-style: none; display: grid; gap: 5px; margin: 12px 0 0; padding: 0; font-size: 11.5px; color: var(--ink-3); }
.tb-pt-notes li { padding-left: 11px; position: relative; }
.tb-pt-notes li::before { content: "·"; position: absolute; left: 2px; color: var(--blue); }

/* =============================================================
   文末分享条 — 一排平台按钮
   胶囊按钮居中一排，和上方居中的互动条对齐；手机扫码的二维码在全站角落。
   ============================================================= */
.tb-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 20px;
	margin-top: 12px;
	padding: 12px 16px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--r);
}
.tb-share:empty { display: none; }

.tb-share-nets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tb-share-label {
	font-size: 12px;
	color: var(--ink-3);
	letter-spacing: .05em;
	margin-right: 2px;
}

.tb-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	padding: 0 11px 0 4px;
	font: inherit;
	font-size: 12.5px;
	line-height: 1;
	color: var(--ink-2);
	background: var(--bg-soft);
	border: 1px solid var(--line-2);
	border-radius: var(--r-pill);
	text-decoration: none;
	cursor: pointer;
	transition: color var(--tr), border-color var(--tr), background var(--tr), transform var(--tr);
}
.tb-share-btn:hover {
	color: var(--blue);
	border-color: var(--blue);
	background: var(--blue-soft);
	transform: translateY(-1px);
}
.tb-share-btn:active { transform: none; }
.tb-share-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* 字母牌当图标用：品牌色只在悬停时点亮，整体仍然是安静的一套 */
.tb-share-ic {
	display: grid;
	place-items: center;
	flex: none;
	width: 22px;
	height: 22px;
	font-size: 11px;
	font-style: normal;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	background: var(--ink-3);
	border-radius: 50%;
	transition: background var(--tr);
}
.tb-share-wechat .tb-share-ic { background: #17a35a; }
.tb-share-weibo  .tb-share-ic { background: #d8393f; }
.tb-share-qq     .tb-share-ic { background: #12b7f5; }
.tb-share-qzone  .tb-share-ic { background: #f0a323; }
.tb-share-xhs    .tb-share-ic { background: #f04358; }
.tb-share-copy   .tb-share-ic,
.tb-share-system .tb-share-ic { background: var(--ink-3); }
.tb-share-btn:hover .tb-share-ic { background: var(--blue); }

/* =============================================================
   赞赏（打赏）— 文末收款码卡片 + 选金额弹层
   主题只负责把后台上传的收款码摆出来，不经手钱：读者挑个金额，扫图上那张码自己付。
   ============================================================= */
.tb-rw {
	margin-top: 12px;
	padding: 12px 16px 11px;
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: var(--r);
}
.tb-rw-in { display: flex; align-items: center; gap: 12px; }
.tb-rw-ic {
	flex: none;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--blue-soft);
	color: var(--blue);
	font-size: 14px;
	font-weight: 600;
}
.tb-rw-txt { flex: 1 1 auto; min-width: 0; }
.tb-rw-title { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.tb-rw-intro { margin: 3px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }
.tb-rw-go {
	flex: none;
	padding: 8px 16px;
	border: 1px solid var(--line-2);
	border-radius: var(--r-pill);
	background: #fff;
	color: var(--ink);
	font-size: 13px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	cursor: pointer;
	transition: var(--tr);
}
.tb-rw-go:hover { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.tb-rw-go:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.tb-rw-quick { margin: 9px 0 0; font-size: 11.5px; color: var(--ink-3); }

/* --- 弹层：搬去 body 才不会被正文容器的 transform 困住 ---------------- */
.tb-rw-pop {
	position: fixed;
	inset: 0;
	z-index: 140;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
}
.tb-rw-pop[hidden] { display: none; }
.tb-rw-scrim {
	position: absolute;
	inset: 0;
	background: rgba(12, 20, 34, .58);
	animation: tb-rw-fade .2s var(--ease) both;
}
@keyframes tb-rw-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}
.tb-rw-dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	width: min(344px, 100%);
	animation: tb-rw-rise .3s var(--ease) both;
}
@keyframes tb-rw-rise {
	from { opacity: 0; transform: translateY(16px) scale(.97); }
	to   { opacity: 1; transform: none; }
}
.tb-rw-sheet {
	width: 100%;
	padding: 16px 16px 14px;
	background: #fff;
	border-radius: var(--r);
	box-shadow: 0 20px 46px rgba(12, 20, 34, .3);
	/* 文案 + 金额 + 收款码 + 说明叠起来能超过一屏，让卡片自己滚，✕ 始终在外面可见 */
	max-height: calc(100vh - 96px);
	overflow: auto;
	overscroll-behavior: contain;
}
.tb-rw-x {
	flex: none;
	width: 34px;
	height: 34px;
	padding: 0;
	display: grid;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, .55);
	border-radius: 50%;
	background: none;
	color: #fff;
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
	transition: var(--tr);
}
.tb-rw-x:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }

.tb-rw-head {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding-bottom: 12px;
	border-bottom: 1px dashed var(--line-2);
}
.tb-rw-badge {
	flex: none;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--blue);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
}
.tb-rw-dtitle { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.tb-rw-dintro { margin: 3px 0 0; font-size: 12px; line-height: 1.6; color: var(--ink-2); }

.tb-rw-cap { margin: 13px 0 8px; font-size: 12px; color: var(--ink-3); }
.tb-rw-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tb-rw-chip {
	min-width: 62px;
	padding: 7px 10px;
	border: 1px solid var(--line-2);
	border-radius: var(--r-sm);
	background: var(--bg-soft);
	color: var(--ink-2);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	cursor: pointer;
	transition: var(--tr);
}
.tb-rw-chip:hover { border-color: var(--blue); color: var(--blue); }
.tb-rw-chip.is-on { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.tb-rw-chip:focus-visible, .tb-rw-tab:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.tb-rw-custom { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.tb-rw-custom input {
	width: 64px;
	padding: 6px 8px;
	border: 1px solid var(--line-2);
	border-radius: var(--r-sm);
	background: #fff;
	color: var(--ink);
	font: inherit;
	font-size: 13px;
}
.tb-rw-custom input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }

.tb-rw-tabs {
	display: flex;
	gap: 6px;
	margin-top: 14px;
	padding: 3px;
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: var(--r-pill);
}
.tb-rw-tab {
	flex: 1;
	padding: 6px 10px;
	border: 0;
	border-radius: var(--r-pill);
	background: none;
	color: var(--ink-2);
	font-size: 12.5px;
	cursor: pointer;
	transition: var(--tr);
}
.tb-rw-tab.is-on { background: #fff; color: var(--blue); font-weight: 600; box-shadow: var(--shadow); }

.tb-rw-codes { display: grid; place-items: center; margin-top: 14px; }
.tb-rw-code {
	display: none;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--line-2);
	border-radius: var(--r-sm);
	line-height: 0;
}
.tb-rw-code.is-on { display: block; }
/* 收款码是位图，宽度按后台边长给，手机上按屏宽收缩，别横向撑破弹层 */
.tb-rw-code img { width: min(var(--rw-size, 168px), 58vw); height: auto; }
.tb-rw-paytip { margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--ink-2); }
.tb-rw-paytip b { color: var(--blue); font-variant-numeric: tabular-nums; }
.tb-rw-notes {
	list-style: none;
	display: grid;
	gap: 5px;
	margin: 12px 0 0;
	padding: 12px 0 0;
	border-top: 1px dashed var(--line-2);
	font-size: 11.5px;
	color: var(--ink-3);
}
.tb-rw-notes li { position: relative; padding-left: 11px; }
.tb-rw-notes li::before { content: "\00b7"; position: absolute; left: 2px; color: var(--blue); }

@media (max-width: 640px) {
	.tb-rw-pop { padding: 18px 12px; }
	.tb-rw-in { flex-wrap: wrap; }
	.tb-rw-go { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.tb-rw-scrim, .tb-rw-dialog { animation: none; }
	.tb-rw-go, .tb-rw-chip, .tb-rw-tab { transition: none; }
}

/* =============================================================
   全站角落二维码 — 当前页网址，矢量 SVG
   固定在一个角：默认电脑左下、手机右下，位置和边长在后台可调。
   卡片可以收成一枚小圆钮，免得长期挡内容（js/main.js 记在 sessionStorage）。
   ============================================================= */
.tb-qr-corner {
	position: fixed;
	z-index: 66;
	bottom: 22px;
	left: 22px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	max-width: calc(100vw - 32px);
	padding: 9px 9px 7px;
	/* 扫码靠的是黑白对比，这两色不跟主色变量走，白底深字是硬要求 */
	background: #fff;
	border: 1px solid var(--line-2);
	border-radius: var(--r);
	box-shadow: var(--shadow);
	color: #17263d;            /* SVG 前景用 currentColor */
}
.tb-qr-corner--right { left: auto; right: 22px; }
.tb-qr-corner--auto { left: 22px; right: auto; }

.tb-qr {
	display: block;
	padding: 0;
	line-height: 0;
}
.tb-qr svg { display: block; max-width: 100%; height: auto; }
.tb-qr-tip { margin: 0; font-size: 11.5px; line-height: 1.45; color: var(--ink-3); text-align: center; }
/* 本页路径：让读者一眼确认这枚码属于当前这一页，长路径省略号截断、不许把卡片撑宽 */
.tb-qr-url {
	max-width: 100%;
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-family: var(--mono);
	font-size: 10.5px;
	line-height: 1.4;
	color: var(--ink-3);
	text-align: center;
	user-select: all;
}
.tb-qr.is-fail { min-width: 96px; min-height: 60px; line-height: 1.5; font-size: 11.5px; color: var(--ink-3); }

/* 收起 / 展开：同一枚按钮，两种形态 */
.tb-qr-fold {
	position: absolute;
	top: -9px;
	right: -9px;
	display: none;
	place-items: center;
	width: 22px;
	height: 22px;
	font: inherit;
	font-size: 13px;
	line-height: 1;
	color: var(--ink-3);
	background: var(--bg);
	border: 1px solid var(--line-2);
	border-radius: 50%;
	box-shadow: var(--shadow);
	cursor: pointer;
	transition: color var(--tr), border-color var(--tr), transform var(--tr);
}
.tb-qr-corner--fold .tb-qr-fold { display: grid; }
.tb-qr-fold:hover { color: var(--blue); border-color: var(--blue); }
.tb-qr-fold:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.tb-qr-fold-g { display: none; font-style: normal; font-size: 11px; font-weight: 700; }
.tb-qr-corner.is-fold {
	/* 收成一颗小圆钮：卡片本身不再占位，只留按钮 */
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 50%;
	background: var(--bg-soft);
}
.tb-qr-corner.is-fold > :not(.tb-qr-fold) { display: none; }
.tb-qr-corner.is-fold .tb-qr-fold {
	position: static;
	width: 100%;
	height: 100%;
	border: 0;
	box-shadow: none;
	background: none;
	border-radius: 50%;
}
.tb-qr-corner.is-fold .tb-qr-fold-x { display: none; }
.tb-qr-corner.is-fold .tb-qr-fold-g { display: block; }

/* 二维码占了右下角时，返回顶部按钮抬到它上方（--tb-qr-h 由 functions.php 写在 body 上） */
.tb-to-top--lift { bottom: calc(22px + var(--tb-qr-h, 140px)); }

@media (max-width: 860px) {
	.tb-qr-corner--auto { left: auto; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
	.tb-to-top { right: 16px; }
	.tb-to-top--lift-auto { bottom: calc(16px + env(safe-area-inset-bottom, 0px) + var(--tb-qr-h, 140px)); }
}

@media (prefers-reduced-motion: reduce) {
	.tb-share-btn,
	.tb-share-btn:hover,
	.tb-share-btn:active { transform: none; transition: none; }
	.tb-qr-fold,
	.tb-qr-fold:hover { transform: none; transition: none; }
}
