/* ==========================================================================
   B612 · 星球看板  原型样式
   深色 / 小王子 / 星空 + 暖金
   ========================================================================== */

:root {
	--ink:        #05070f;
	--ink-2:      #080c18;
	--ink-3:      #0b1120;
	--panel:      rgba(255, 255, 255, .045);
	--panel-2:    rgba(255, 255, 255, .07);
	--line:       rgba(233, 238, 255, .10);
	--line-soft:  rgba(233, 238, 255, .05);
	--text:       #eef1f8;
	--text-2:     #c3c9da;
	--muted:      #8a92a8;
	--muted-2:    #78809a;
	--gold:       #e7b96a;
	--gold-soft:  rgba(231, 185, 106, .13);
	--rose:       #e07a90;
	--rose-soft:  rgba(224, 122, 144, .13);
	--blue:       #8ea8ff;
	--blue-soft:  rgba(142, 168, 255, .12);
	--teal:       #6fd6c0;
	--radius:     18px;
	--radius-sm:  12px;
	--serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", STSong, Georgia, "Times New Roman", serif;
	--sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
	--mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

a { text-decoration: none; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--ink);
	color: var(--text);
	font-family: var(--sans);
	font-size: 15px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* 星尘与光晕背景 ---------------------------------------------------------- */
.sky {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(1200px 700px at 78% -8%, rgba(72, 92, 168, .28), transparent 62%),
		radial-gradient(900px 600px at 8% 12%, rgba(231, 185, 106, .10), transparent 60%),
		radial-gradient(1000px 800px at 50% 108%, rgba(224, 122, 144, .09), transparent 62%),
		linear-gradient(180deg, #05070f 0%, #070b16 45%, #05070f 100%);
}

.sky::after {
	content: "";
	position: absolute;
	inset: 0;
	opacity: .35;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/><feColorMatrix type='saturate' values='0'/></filter><rect width='180' height='180' filter='url(%23n)' opacity='.045'/></svg>");
}

#stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.page { position: relative; z-index: 1; }

.wrap {
	width: min(1240px, calc(100% - 64px));
	margin: 0 auto;
}

/* 顶栏 -------------------------------------------------------------------- */
.topbar {
	position: sticky;
	top: 0;
	z-index: 40;
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	background: linear-gradient(180deg, rgba(5, 7, 15, .88), rgba(5, 7, 15, .55));
	border-bottom: 1px solid var(--line-soft);
}

.topbar .wrap {
	display: flex;
	align-items: center;
	gap: 36px;
	height: 70px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--text);
}

.brand-mark {
	width: 34px;
	height: 34px;
	flex: none;
}

.brand-text { line-height: 1.1; }

.brand-sub {
	display: block;
	font-size: 10px;
	letter-spacing: .34em;
	color: var(--muted-2);
	text-transform: uppercase;
	margin-top: 3px;
}

.nav {
	display: flex;
	gap: 30px;
	margin-left: 12px;
}

.nav a {
	position: relative;
	color: var(--text-2);
	text-decoration: none;
	font-size: 14px;
	letter-spacing: .04em;
	padding: 6px 0;
	transition: color .25s;
}

.nav a:hover { color: var(--gold); }

.nav a.is-active { color: var(--gold); }

.nav a.is-active::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -1px;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--gold);
	transform: translateX(-50%);
	box-shadow: 0 0 10px 2px rgba(231, 185, 106, .55);
}

.topbar-right {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 16px;
}

.icon-btn {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, .02);
	color: var(--text-2);
	cursor: pointer;
	transition: .25s;
}

.icon-btn:hover { color: var(--gold); border-color: rgba(231, 185, 106, .4); }

.btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 10px 20px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: transparent;
	color: var(--text);
	font-family: inherit;
	font-size: 14px;
	text-decoration: none;
	cursor: pointer;
	transition: .25s;
	white-space: nowrap;
}

.btn:hover { border-color: rgba(231, 185, 106, .45); color: var(--gold); }

.btn-gold {
	border-color: rgba(231, 185, 106, .5);
	background: linear-gradient(135deg, rgba(231, 185, 106, .18), rgba(224, 122, 144, .10));
	color: var(--gold);
}

.btn-gold:hover {
	background: linear-gradient(135deg, rgba(231, 185, 106, .3), rgba(224, 122, 144, .16));
	color: #f6d9a3;
	box-shadow: 0 6px 26px -8px rgba(231, 185, 106, .5);
}

/* Hero -------------------------------------------------------------------- */
.hero {
	position: relative;
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	align-items: center;
	gap: 40px;
	padding: 44px 0 36px;
}

.kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: .32em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 22px;
}

.kicker::before {
	content: "";
	width: 26px;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--gold));
}

.hero h1 {
	margin: 0 0 20px;
	font-family: var(--serif);
	font-weight: 600;
	font-size: clamp(38px, 4.4vw, 60px);
	line-height: 1.18;
	letter-spacing: .02em;
}

.hero h1 em {
	font-style: normal;
	color: var(--gold);
	text-shadow: 0 0 42px rgba(231, 185, 106, .35);
}

.hero-lead {
	max-width: 30em;
	color: var(--text-2);
	font-size: 16px;
	line-height: 1.9;
	margin: 0 0 26px;
}

.hero-lead .q {
	color: var(--muted);
}

.hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	margin-bottom: 34px;
	font-size: 13px;
	color: var(--muted);
}

.hero-meta b {
	font-family: var(--mono);
	color: var(--text);
	font-weight: 500;
	letter-spacing: .06em;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* 星球插画：抽象线条风（全部 SVG 描边 + CSS 动效，无逐帧脚本） ---------- */
.hero-art {
	position: relative;
	height: 400px;
	display: grid;
	place-items: center;
}

.planet-wrap {
	position: relative;
	width: 380px;
	height: 380px;
	display: grid;
	place-items: center;
}

.planet-glow {
	position: absolute;
	inset: -6%;
	border-radius: 50%;
	background: radial-gradient(circle at 50% 45%, rgba(232, 168, 92, .16), rgba(160, 96, 44, .08) 46%, transparent 68%);
	filter: blur(16px);
}

.planet-art {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: visible;
	font-size: 0;
}

/* 球体与网格 */
.pa-fill { pointer-events: none; }
.pa-globe { fill: none; stroke: rgba(231, 185, 106, .88); stroke-width: 1.6; }
.pa-globe-inner { fill: none; stroke: rgba(231, 185, 106, .17); stroke-width: 1; }
.pa-lat { fill: none; stroke: rgba(142, 168, 255, .16); stroke-width: 1; }
.pa-meridian { fill: none; stroke: rgba(231, 185, 106, .25); stroke-width: 1; }
.pa-crater { fill: none; stroke: rgba(231, 185, 106, .42); stroke-width: 1; stroke-dasharray: 2 3; }

/* 火山 */
.pa-volcano {
	fill: none;
	stroke: rgba(231, 185, 106, .78);
	stroke-width: 1.7;
	stroke-linejoin: round;
	stroke-linecap: round;
}
.pa-volcano.dead { stroke: rgba(233, 238, 255, .26); }
.pa-crater-lip { fill: none; stroke: rgba(231, 185, 106, .5); stroke-width: 1.1; stroke-linejoin: round; }
.pa-crater-lip.dead { stroke: rgba(233, 238, 255, .2); }
.pa-smoke {
	fill: none;
	stroke: rgba(231, 185, 106, .5);
	stroke-width: 1.3;
	stroke-linecap: round;
	stroke-dasharray: 2 2.6;
	animation: paSmoke 4.6s ease-in-out infinite;
}
@keyframes paSmoke {
	0%, 100% { opacity: .45; transform: translateY(0); }
	50% { opacity: .95; transform: translateY(-2.5px); }
}
.pa-vent {
	fill: #e04a2e;
	filter: drop-shadow(0 0 6px rgba(255, 110, 70, .9));
	animation: paPulse 3.6s ease-in-out infinite;
}
.pa-vent.dead { fill: rgba(233, 238, 255, .3); filter: none; animation: none; }

/* 玫瑰 */
.pa-rose { transform-box: fill-box; transform-origin: bottom center; animation: paSway 7s ease-in-out infinite; }
.pa-stem { fill: none; stroke: rgba(111, 214, 192, .7); stroke-width: 1.7; stroke-linecap: round; }
.pa-leaf { fill: none; stroke: rgba(111, 214, 192, .55); stroke-width: 1.3; }
.pa-bloom {
	fill: none;
	stroke: var(--rose);
	stroke-width: 1.9;
	stroke-linecap: round;
	filter: drop-shadow(0 0 10px rgba(224, 122, 144, .6));
}
.pa-bloom-2 { stroke-width: 1.5; opacity: .85; }
.pa-bloom-3 { fill: var(--rose); stroke: none; filter: drop-shadow(0 0 8px rgba(224, 122, 144, .9)); }

/* 轨道 */
.pa-orbit-group {
	transform-box: view-box;
	transform-origin: 200px 200px;
	animation: paSpin 46s linear infinite;
}
.pa-orbit { fill: none; stroke: rgba(231, 185, 106, .30); stroke-width: 1; }
.pa-orbit-dash { stroke: rgba(231, 185, 106, .14); stroke-dasharray: 3 8; }
.pa-orbit-dot { fill: var(--gold); filter: drop-shadow(0 0 7px rgba(231, 185, 106, .95)); }

/* 明暗线 + 扫描弧 */
.pa-term-group {
	transform-box: view-box;
	transform-origin: 200px 200px;
	animation: paSpin 38s linear infinite reverse;
}
.pa-term { fill: none; stroke: rgba(231, 185, 106, .30); stroke-width: 1.3; stroke-dasharray: 1 7; stroke-linecap: round; }
.pa-scan {
	fill: none;
	stroke: rgba(231, 185, 106, .45);
	stroke-width: 1.4;
	stroke-dasharray: 30 711;
	animation: paScan 7s linear infinite;
}

.pa-globe-group { transform-box: view-box; transform-origin: 200px 200px; animation: paBreath 9s ease-in-out infinite; }

@keyframes paBreath {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}
@keyframes paSpin { to { transform: rotate(360deg); } }
@keyframes paSway {
	0%, 100% { transform: rotate(-4deg); }
	50% { transform: rotate(5deg); }
}
@keyframes paPulse {
	0%, 100% { opacity: .5; }
	50% { opacity: 1; }
}
@keyframes paScan { to { stroke-dashoffset: -741; } }

@media (prefers-reduced-motion: reduce) {
	.pa-orbit-group, .pa-term-group, .pa-globe-group, .pa-rose, .pa-vent, .pa-scan { animation: none; }
}

/* 漂浮数据牌 */
.float-chip {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 14px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: rgba(10, 15, 28, .72);
	backdrop-filter: blur(8px);
	font-size: 12px;
	color: var(--text-2);
	box-shadow: 0 18px 40px -24px #000;
	animation: floaty 7s ease-in-out infinite;
}

.float-chip b {
	font-family: var(--mono);
	font-size: 13px;
	color: var(--gold);
	letter-spacing: .04em;
}

.chip-a { left: -6%; top: 16%; animation-delay: -1s; }
.chip-b { right: -8%; top: 46%; animation-delay: -3s; }
.chip-c { left: 4%; bottom: 12%; animation-delay: -5s; }

@keyframes floaty {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}

/* 区块标题 ---------------------------------------------------------------- */
.section { padding: 10px 0 56px; }

.sec-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
}

.sec-title {
	margin: 0;
	font-family: var(--serif);
	font-size: 24px;
	font-weight: 600;
	letter-spacing: .06em;
}

.sec-title small {
	display: block;
	margin-top: 6px;
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--muted-2);
}

.sec-more {
	font-size: 13px;
	color: var(--muted);
	text-decoration: none;
	letter-spacing: .05em;
	transition: color .2s;
}

.sec-more:hover { color: var(--gold); }

/* KPI --------------------------------------------------------------------- */
.kpis {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.kpi {
	position: relative;
	padding: 22px 22px 20px;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: linear-gradient(165deg, var(--panel-2), var(--panel) 55%, rgba(255, 255, 255, .012));
	overflow: hidden;
	transition: transform .3s, border-color .3s;
}

.kpi:hover {
	transform: translateY(-3px);
	border-color: rgba(231, 185, 106, .28);
}

.kpi::after {
	content: "";
	position: absolute;
	right: -30px;
	top: -30px;
	width: 110px;
	height: 110px;
	border-radius: 50%;
	background: radial-gradient(circle, var(--glow, rgba(231, 185, 106, .16)), transparent 70%);
}

/* 版块 -------------------------------------------------------------------- */
.forums {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.forum-card {
	position: relative;
	display: block;
	padding: 24px;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: linear-gradient(165deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
	text-decoration: none;
	color: inherit;
	overflow: hidden;
	transition: .3s;
}

.forum-card:hover {
	border-color: rgba(231, 185, 106, .35);
	transform: translateY(-3px);
	box-shadow: 0 24px 60px -34px rgba(231, 185, 106, .5);
}

.forum-card h3 {
	margin: 0;
	font-family: var(--serif);
	font-size: 21px;
	font-weight: 600;
	letter-spacing: .08em;
}

.forum-card p {
	margin: 6px 0 16px;
	font-size: 12.5px;
	color: var(--muted);
}

.fc-stat {
	display: flex;
	align-items: baseline;
	gap: 6px;
	font-family: var(--mono);
	font-size: 22px;
}

.fc-stat span { font-family: var(--sans); font-size: 11px; color: var(--muted-2); letter-spacing: .1em; }

.fc-bar {
	margin-top: 14px;
	height: 3px;
	border-radius: 3px;
	background: rgba(255, 255, 255, .06);
	overflow: hidden;
}

.fc-bar i {
	display: block;
	height: 100%;
	border-radius: 3px;
	background: linear-gradient(90deg, var(--gold), var(--rose));
	width: var(--w, 0%);
}

.fc-arrow {
	position: absolute;
	right: 22px;
	bottom: 22px;
	color: var(--muted-2);
	transition: .3s;
}

.forum-card:hover .fc-arrow { color: var(--gold); transform: translateX(4px); }

/* 卡片 -------------------------------------------------------------------- */
.card {
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: linear-gradient(170deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
	overflow: hidden;
}

.card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 18px 22px 0;
}

.card-title {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .14em;
	color: var(--text-2);
}

.card-sub {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--muted-2);
}

.card-body { padding: 16px 22px 22px; }

.grid-main {
	display: grid;
	grid-template-columns: 7fr 3fr;
	gap: 16px;
	align-items: start;
}

/* 图表 -------------------------------------------------------------------- */
.chart { width: 100%; height: auto; display: block; overflow: visible; }

.chart .bar:hover { fill-opacity: 1; }

.chart-tip {
	position: fixed;
	z-index: 90;
	pointer-events: none;
	padding: 8px 12px;
	border-radius: 10px;
	border: 1px solid rgba(231, 185, 106, .3);
	background: rgba(8, 12, 24, .95);
	font-size: 12px;
	line-height: 1.6;
	color: var(--text);
	box-shadow: 0 20px 50px -20px #000;
	opacity: 0;
	transform: translate(-50%, -130%);
	transition: opacity .15s;
	white-space: nowrap;
}

.chart-tip b { color: var(--gold); font-family: var(--mono); }

/* 图表卡：两张等高，元素垂直对齐 --------------------------------------- */
.charts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	align-items: stretch;
}

.chart-card { display: flex; flex-direction: column; }
.chart-card .card-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}
.chart-box {
	height: 300px;
	display: grid;
	place-items: center;
}
.chart-box svg { width: 100%; height: 100%; display: block; }
.chart-note {
	margin: 10px 0 0;
	font-size: 12px;
	line-height: 1.7;
	color: var(--muted-2);
}

/* 年轮 */
.ring-axis { stroke: rgba(233, 238, 255, .06); stroke-width: 1; }
.ring-year { fill: rgba(231, 185, 106, .9); font: 11.5px var(--mono); letter-spacing: .08em; }
.ring-val { fill: #8d95ab; font: 11.5px var(--mono); }
.ring-name { fill: rgba(233, 238, 255, .55); font: 11px var(--sans); }
.ring-hit { fill: none; stroke: rgba(0, 0, 0, 0); }
.ring-hit:hover { stroke: rgba(231, 185, 106, .16); }

/* 昼夜 */
.dn-night { fill: rgba(142, 168, 255, .07); }
.dn-day { fill: rgba(231, 185, 106, .045); }
.dn-bar { fill: rgba(142, 168, 255, .42); transition: fill .2s; }
.dn-bar.is-night { fill: rgba(231, 185, 106, .72); }
.dn-bar:hover { fill: rgba(231, 185, 106, .95); }
.dn-label { fill: #8d95ab; font: 11.5px var(--mono); letter-spacing: .04em; }
.dn-peak-text { fill: var(--gold); font: 11.5px var(--mono); letter-spacing: .02em; }
.dn-axis { stroke: rgba(233, 238, 255, .10); stroke-width: 1; }
.dn-tick { stroke: rgba(233, 238, 255, .05); stroke-width: 1; }

@media (max-width: 1080px) {
	.charts { grid-template-columns: 1fr; }
}

/* 动态时间线 -------------------------------------------------------------- */
.timeline { display: grid; gap: 2px; }

.tl-item {
	display: grid;
	grid-template-columns: 34px 1fr auto;
	gap: 14px;
	align-items: start;
	padding: 13px 12px;
	border-radius: 14px;
	text-decoration: none;
	color: inherit;
	transition: background .25s;
}

.tl-item:hover { background: rgba(255, 255, 255, .04); }

.avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-family: var(--serif);
	font-size: 14px;
	color: #0a0f1c;
	background: linear-gradient(140deg, var(--gold), #c8874a);
	flex: none;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
}

.avatar.alt { background: linear-gradient(140deg, #9fb4ff, #6b7fd4); }
.avatar.alt2 { background: linear-gradient(140deg, #e7a9b6, #b3627a); }
.avatar.alt3 { background: linear-gradient(140deg, #9fe0cf, #4f9c8a); }

.tl-main { min-width: 0; }

.tl-subject {
	display: block;
	font-size: 14.5px;
	color: var(--text);
	line-height: 1.5;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tl-item:hover .tl-subject { color: var(--gold); }

.tl-meta {
	display: flex;
	gap: 12px;
	margin-top: 4px;
	font-size: 11.5px;
	color: var(--muted-2);
}

.tl-meta b { font-weight: 500; color: var(--muted); }

.tl-right {
	text-align: right;
	font-family: var(--mono);
	font-size: 11px;
	color: var(--muted-2);
	white-space: nowrap;
}

.range {
	display: inline-flex;
	gap: 2px;
	padding: 3px;
	border-radius: 999px;
	border: 1px solid var(--line);
}

.range button {
	border: 0;
	background: transparent;
	color: var(--muted);
	font-family: inherit;
	font-size: 11px;
	padding: 4px 10px;
	border-radius: 999px;
	cursor: pointer;
}

.range button.on { background: rgba(231, 185, 106, .14); color: var(--gold); }

/* 侧栏列表 ---------------------------------------------------------------- */
.mini-list { display: grid; gap: 4px; grid-template-columns: minmax(0, 1fr); }

.mini-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 10px;
	border-radius: 12px;
	transition: background .2s;
}

.mini-item:hover { background: rgba(255, 255, 255, .035); }

.mini-main { flex: 1; min-width: 0; }

.mini-name {
	display: block;
	font-size: 13.5px;
	color: var(--text-2);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mini-sub { display: block; font-size: 11px; color: var(--muted-2); }

.mini-num {
	flex: none;
	font-family: var(--mono);
	font-size: 12px;
	color: var(--muted);
}

.rank {
	width: 20px;
	font-family: var(--mono);
	font-size: 11px;
	color: var(--muted-2);
	text-align: center;
}

.rank.top { color: var(--gold); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
	padding: 6px 13px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, .025);
	font-size: 12px;
	color: var(--text-2);
	text-decoration: none;
	transition: .25s;
}

.tag:hover { border-color: rgba(231, 185, 106, .4); color: var(--gold); }

.tag b { font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); margin-left: 6px; }

/* 引用 -------------------------------------------------------------------- */
.quote-band {
	position: relative;
	margin: 8px 0 0;
	padding: 54px 40px;
	border-radius: 26px;
	border: 1px solid var(--line);
	background:
		radial-gradient(700px 300px at 20% 0%, rgba(231, 185, 106, .10), transparent 60%),
		radial-gradient(600px 300px at 85% 100%, rgba(224, 122, 144, .10), transparent 60%),
		rgba(255, 255, 255, .02);
	text-align: center;
	overflow: hidden;
}

.quote-band::before,
.quote-band::after {
	content: "✦";
	position: absolute;
	color: rgba(231, 185, 106, .35);
	font-size: 22px;
}

.quote-band::before { left: 40px; top: 34px; }
.quote-band::after { right: 40px; bottom: 30px; }

.quote-band blockquote {
	margin: 0 auto;
	max-width: 20em;
	font-family: var(--serif);
	font-size: clamp(22px, 2.6vw, 31px);
	line-height: 1.75;
	color: #f2e9d8;
}

.quote-band cite {
	display: block;
	margin-top: 20px;
	font-family: var(--mono);
	font-style: normal;
	font-size: 11px;
	letter-spacing: .3em;
	color: var(--muted-2);
	text-transform: uppercase;
}

/* 页脚 -------------------------------------------------------------------- */
.footer {
	border-top: 1px solid var(--line-soft);
	padding: 34px 0 46px;
	color: var(--muted-2);
	font-size: 12.5px;
}

.footer .wrap {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.footer .f-brand { display: flex; align-items: center; gap: 10px; color: var(--muted); }

.footer .f-links { display: flex; gap: 20px; margin-left: auto; }

.footer a { color: var(--muted-2); text-decoration: none; }

.footer a:hover { color: var(--gold); }

/* 入场动画 ---------------------------------------------------------------- */
.reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
}

.reveal.in { opacity: 1; transform: none; }

html.static .reveal { opacity: 1; transform: none; transition: none; }

/* 响应式 ------------------------------------------------------------------ */
@media (max-width: 1080px) {
	.hero { grid-template-columns: 1fr; gap: 8px; padding-top: 48px; }
	.hero-art { height: 380px; }
	.planet-wrap { transform: scale(.9); }
	.kpis { grid-template-columns: repeat(2, 1fr); }
	.grid-2, .grid-main { grid-template-columns: 1fr; }
	.forums { grid-template-columns: 1fr; }
	.nav { display: none; }
}

@media (max-width: 620px) {
	html, body { overflow-x: hidden; }
	.wrap { width: calc(100% - 32px); }
	.kpis { grid-template-columns: 1fr; }
	
	
	.planet-wrap { width: 300px; height: 300px; transform: scale(.92); }
	.chip-a { left: 0; top: 10%; }
	.chip-b { right: 0; top: 52%; }
	.chip-c { left: 2%; bottom: 6%; }
	.float-chip { font-size: 11px; padding: 7px 11px; }
	.hero-meta { gap: 8px 18px; font-size: 12px; }
	.quote-band { padding: 34px 22px; }
	.footer .wrap { flex-direction: column; gap: 12px; text-align: center; }
	.toolbar { flex-wrap: wrap; gap: 12px; }
	.page-hero { padding: 26px 0 22px; }
	
	
	.trow { grid-template-columns: 34px 1fr; row-gap: 8px; }
	.trow .trow-stats { grid-column: 2; justify-content: flex-start; }
	.article { padding: 22px 20px; }
	.article h1 { font-size: 22px; }
	.reply { grid-template-columns: 34px 1fr; }
	.auth { padding-top: 24px; padding-bottom: 60px; }
	.auth-card { padding: 24px 20px 26px; }
}

/* ==========================================================================
   列表页 / 详情页
   ========================================================================== */

.crumb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--muted-2);
	letter-spacing: .06em;
}

.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--gold); }
.crumb i { font-style: normal; opacity: .45; }

/* 版块页头 */
.page-hero {
	position: relative;
	padding: 46px 0 40px;
	border-bottom: 1px solid var(--line-soft);
	overflow: hidden;
}

.page-hero::after {
	content: "";
	position: absolute;
	right: -120px;
	top: -160px;
	width: 460px;
	height: 460px;
	border-radius: 50%;
	background: radial-gradient(circle at 40% 40%, rgba(231, 185, 106, .10), rgba(72, 92, 168, .07) 45%, transparent 70%);
	pointer-events: none;
}

.page-hero h1 {
	margin: 16px 0 12px;
	font-family: var(--serif);
	font-size: clamp(34px, 4vw, 52px);
	font-weight: 600;
	letter-spacing: .06em;
}

.page-hero h1 small {
	margin-left: 14px;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: .3em;
	color: var(--muted-2);
	vertical-align: 10px;
}

.page-hero .desc {
	max-width: 34em;
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}

/* 工具条 */
.toolbar {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 22px 0 14px;
}

.tabs { display: flex; gap: 6px; }

.tabs a {
	padding: 7px 14px;
	border-radius: 999px;
	font-size: 13px;
	color: var(--muted);
	text-decoration: none;
	border: 1px solid transparent;
}

.tabs a.on {
	color: var(--gold);
	background: var(--gold-soft);
	border-color: rgba(231, 185, 106, .25);
}

.tabs a:hover { color: var(--text); }

.toolbar .grow { flex: 1; }

/* 主题列表 */
.tlist { display: grid; }

.trow {
	position: relative;
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
	padding: 16px 18px;
	border-radius: 14px;
	text-decoration: none;
	color: inherit;
	border-bottom: 1px solid var(--line-soft);
	transition: background .2s;
}

.trow:last-child { border-bottom: 0; }

.trow:hover { background: rgba(255, 255, 255, .035); }

.trow-main { min-width: 0; }

/* 整行可点：标题链接用伪元素铺满整行，标签/编号链接浮在上面 */
.trow-subject { position: static; color: inherit; text-decoration: none; }

.trow-subject::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
}

.trow-tags a,
.trow-meta a {
	position: relative;
	z-index: 2;
}

.trow-title {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	font-size: 15px;
	color: var(--text);
	line-height: 1.55;
}

.trow-subject {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.trow-title > a.haya-post-info-home-thread-forum {
	flex: none;
	font-size: 12px;
	color: var(--muted-2);
}

/* 主题标签：覆盖 Bootstrap 的 badge，改成与全站一致的细边胶囊 */
.trow-tags { display: flex; flex: none; gap: 6px; }

.trow-tags .badge,
.trow-title .badge {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 1px 9px 2px;
	border-radius: 999px;
	border: 1px solid rgba(231, 185, 106, .28);
	background: var(--gold-soft);
	color: var(--gold);
	font-size: 11px;
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: .02em;
	white-space: nowrap;
	transition: background .2s, border-color .2s;
}

.trow-tags .badge:hover,
.trow-title .badge:hover {
	background: rgba(231, 185, 106, .22);
	border-color: rgba(231, 185, 106, .55);
	color: var(--gold);
	text-decoration: none;
}

.trow:hover .trow-title,
.trow:hover .trow-subject { color: var(--gold); }
.trow-subject:hover { text-decoration: none; }

.trow-meta {
	display: flex;
	gap: 10px;
	margin-top: 5px;
	font-size: 11.5px;
	color: var(--muted-2);
}

.trow-meta b { font-weight: 400; color: var(--muted); }

.trow-stats {
	display: flex;
	align-items: center;
	gap: 20px;
	text-align: right;
}

.trow-stat {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 1px;
	min-width: 40px;
}

.trow-stat b {
	font-family: var(--mono);
	font-size: 13.5px;
	line-height: 1.3;
	color: var(--text-2);
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.trow-stat span {
	font-size: 10px;
	line-height: 1.3;
	color: var(--muted-2);
	letter-spacing: .12em;
}

/* 分页 */
.pager {
	display: flex;
	justify-content: center;
	gap: 6px;
	padding: 26px 0 8px;
}

.pager a {
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border-radius: 9px;
	border: 1px solid var(--line);
	color: var(--muted);
	text-decoration: none;
	font-family: var(--mono);
	font-size: 12.5px;
}

.pager a.on { background: var(--gold-soft); color: var(--gold); border-color: rgba(231, 185, 106, .3); }
.pager a:hover { color: var(--text); }

/* 文章 */
.article { padding: 34px 0 10px; }

.rail-sticky { position: sticky; top: 86px; }

.article-title {
	margin: 14px 0 18px;
	font-family: var(--serif);
	font-size: clamp(26px, 3vw, 38px);
	line-height: 1.42;
	font-weight: 600;
	letter-spacing: .02em;
}

.article-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	color: var(--muted);
	font-size: 12.5px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--line-soft);
}

.article-meta .who { color: var(--text-2); }

.article-meta .dot { opacity: .35; }

.article-body {
	padding: 30px 0 8px;
	max-width: 46em;
	font-size: 15.5px;
	line-height: 2;
	color: #d8deec;
}

.article-body p { margin: 0 0 1.2em; }

.article-body img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	border: 1px solid var(--line);
	margin: 6px 0;
	display: inline-block;
}

.article-body a { color: var(--gold); }

.article-body blockquote {
	margin: 1.4em 0;
	padding: 2px 0 2px 18px;
	border-left: 2px solid rgba(231, 185, 106, .5);
	color: var(--muted);
}

.article-foot {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	padding: 20px 0 30px;
	border-bottom: 1px solid var(--line-soft);
}

/* 回复 */
.replies { padding: 8px 0 0; }

.reply-count {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 24px 0 6px;
	font-size: 12px;
	letter-spacing: .22em;
	color: var(--muted-2);
}

.reply-count::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, var(--line), transparent);
}

.reply {
	display: grid;
	grid-template-columns: 40px 1fr;
	gap: 16px;
	padding: 20px 0;
	border-bottom: 1px solid var(--line-soft);
}

.reply:last-child { border-bottom: 0; }

.reply-head {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12.5px;
	color: var(--muted);
}

.reply-head .n { color: var(--text-2); }

.reply-head .floor {
	margin-left: auto;
	font-family: var(--mono);
	font-size: 11px;
	color: var(--muted-2);
	letter-spacing: .08em;
}

.reply-body {
	margin-top: 8px;
	font-size: 14.5px;
	line-height: 1.95;
	color: #ccd3e4;
}

.reply-body p { margin: 0 0 .9em; }
.reply-body img { max-width: 100%; border-radius: 10px; }

/* 编辑器 */
.editor {
	margin-top: 26px;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, .025);
	overflow: hidden;
}

.editor-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	border-bottom: 1px solid var(--line-soft);
	font-size: 12px;
	color: var(--muted-2);
}

.editor-bar b { font-weight: 500; color: var(--muted); letter-spacing: .1em; }

.editor textarea {
	width: 100%;
	min-height: 120px;
	padding: 16px 18px;
	border: 0;
	background: transparent;
	color: var(--text);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.8;
	resize: vertical;
	outline: none;
}

.editor-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-top: 1px solid var(--line-soft);
	color: var(--muted-2);
	font-size: 11.5px;
}

/* 作者卡 */
.author-card { text-align: center; padding: 26px 22px 22px; }

.author-card .avatar {
	width: 64px;
	height: 64px;
	font-size: 24px;
	margin: 0 auto 14px;
}

.author-name {
	font-family: var(--serif);
	font-size: 19px;
	letter-spacing: .06em;
}

.author-sub { font-size: 11.5px; color: var(--muted-2); margin-top: 4px; }

.author-stats {
	display: flex;
	justify-content: center;
	gap: 26px;
	margin: 18px 0;
	padding: 14px 0;
	border-top: 1px solid var(--line-soft);
	border-bottom: 1px solid var(--line-soft);
}

.author-stats b {
	display: block;
	font-family: var(--mono);
	font-size: 16px;
	font-weight: 500;
	color: var(--text);
}

.author-stats span { font-size: 10.5px; color: var(--muted-2); letter-spacing: .14em; }

/* 引用小卡 */
.tip-card {
	padding: 20px 22px;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background:
		radial-gradient(300px 160px at 100% 0%, rgba(231, 185, 106, .10), transparent 70%),
		rgba(255, 255, 255, .02);
	font-family: var(--serif);
	font-size: 14.5px;
	line-height: 1.9;
	color: var(--text-2);
}

.tip-card cite {
	display: block;
	margin-top: 10px;
	font-family: var(--mono);
	font-style: normal;
	font-size: 10px;
	letter-spacing: .22em;
	color: var(--muted-2);
}

@media (max-width: 1080px) {
	.grid-main { grid-template-columns: 1fr; }
}

/* ── 登录 / 注册 ─────────────────────────────────────────────── */
.auth {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: 48px;
	align-items: center;
	min-height: calc(100vh - 300px);
	padding-top: 40px;
	padding-bottom: 90px;
}

.auth-quote {
	position: relative;
	padding: 10px 0;
}

.auth-quote .eyebrow { margin-bottom: 22px; }

.auth-quote h1 {
	margin: 0 0 20px;
	font-family: var(--serif);
	font-size: 40px;
	font-weight: 400;
	line-height: 1.42;
	letter-spacing: .05em;
}

.auth-quote h1 em {
	font-style: normal;
	color: var(--gold);
}

.auth-quote p {
	margin: 0;
	max-width: 30em;
	color: var(--muted);
	font-size: 14px;
	line-height: 2;
}

.auth-quote .mini-planet {
	position: absolute;
	right: 6px;
	top: -54px;
	width: 148px;
	height: 148px;
	border-radius: 50%;
	background: radial-gradient(circle at 36% 30%, #2b3a5e, #0d1526 55%, #060a13 100%);
	box-shadow: inset -18px -22px 46px rgba(0, 0, 0, .8), 0 0 70px rgba(120, 150, 255, .13);
	opacity: .7;
	animation: breathe 9s ease-in-out infinite;
}

.auth-quote .mini-planet::before {
	content: "";
	position: absolute;
	left: -26px;
	top: 50%;
	width: 200px;
	height: 56px;
	margin-top: -28px;
	border: 1px solid rgba(231, 185, 106, .28);
	border-radius: 50%;
	transform: rotate(-18deg);
}

.auth-quote .mini-planet::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 46%;
	width: 9px;
	height: 9px;
	margin: -4px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #ffb6c4, #d1485f);
	box-shadow: 0 0 14px rgba(224, 122, 144, .8);
}

.auth-card {
	padding: 30px 34px 34px;
	background: linear-gradient(175deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
}

.field { margin-bottom: 18px; }

.field label {
	display: block;
	margin-bottom: 8px;
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--muted-2);
}

.field input {
	width: 100%;
	padding: 12px 14px;
	border-radius: 8px;
	border: 1px solid var(--line);
	background: rgba(6, 10, 20, .6);
	color: var(--text);
	font-family: inherit;
	font-size: 14px;
	letter-spacing: .04em;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}

.field input::placeholder { color: #4e5772; }

.field input:focus {
	border-color: rgba(231, 185, 106, .5);
	box-shadow: 0 0 0 3px rgba(231, 185, 106, .08);
}

.field-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 4px 0 24px;
	font-size: 12px;
	color: var(--muted-2);
}

.field-row label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	cursor: pointer;
	font-family: var(--sans);
	font-size: 12px;
	letter-spacing: .02em;
	text-transform: none;
	margin: 0;
}

.field-row input[type="checkbox"] { accent-color: var(--gold); }

.field-row a { color: var(--muted); }
.field-row a:hover { color: var(--gold); }

.btn-block {
	width: 100%;
	justify-content: center;
	padding: 13px 20px;
	font-size: 14px;
}

.btn-block.btn-gold {
	background: linear-gradient(135deg, #ecc780, #d99a58);
	border-color: transparent;
	color: #16110a;
	font-weight: 500;
	letter-spacing: .14em;
	box-shadow: 0 10px 30px -14px rgba(231, 185, 106, .8);
}

.btn-block.btn-gold:hover {
	background: linear-gradient(135deg, #f4d190, #e2a765);
	color: #16110a;
	box-shadow: 0 12px 34px -12px rgba(231, 185, 106, .9);
}

.auth-note {
	margin-top: 20px;
	font-size: 11.5px;
	line-height: 1.9;
	color: var(--muted-2);
}

.auth-note a { color: var(--muted); border-bottom: 1px solid rgba(233, 238, 255, .16); }

.auth-alt {
	margin-top: 26px;
	padding-top: 20px;
	border-top: 1px solid var(--line-soft);
	text-align: center;
	font-size: 12.5px;
	color: var(--muted-2);
}

.auth-alt a { color: var(--gold); }

@media (max-width: 900px) {
	.auth { grid-template-columns: 1fr; gap: 30px; }
	.auth-quote .mini-planet { display: none; }
	.auth-quote h1 { font-size: 30px; }
}

/* ==========================================================================
   UID 徽章 + 个人资料页（温暖版）
   ========================================================================== */

/* 帖子页：作者名旁的小号 UID 标 */
.uid-chip {
	display: inline-flex;
	align-items: center;
	padding: 1px 8px;
	border-radius: 999px;
	border: 1px solid rgba(231, 185, 106, .42);
	background: var(--gold-soft);
	color: var(--gold);
	font-family: var(--mono);
	font-size: 10.5px;
	line-height: 1.6;
	letter-spacing: .04em;
	vertical-align: middle;
}

.who-link { color: inherit; }
.who-link:hover { color: var(--gold); }

.article-meta .who-link:hover { color: var(--gold); }
.reply-head .n.who-link:hover { color: var(--gold); }

/* 资料头：UID 徽章 + 身份卡 */
.profile-hero {
	display: grid;
	grid-template-columns: 340px 1fr;
	gap: 16px;
	margin-top: 26px;
}

.uid-card {
	padding: 30px 30px 24px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(360px 200px at 88% -8%, rgba(231, 185, 106, .15), transparent 62%),
		var(--panel);
}

.u-label {
	font-size: 11px;
	letter-spacing: .24em;
	color: var(--muted-2);
}

.uid-number {
	font-family: var(--mono);
	font-size: clamp(36px, 3.5vw, 46px);
	line-height: 1;
	letter-spacing: .01em;
	color: var(--gold);
	text-shadow: 0 0 38px rgba(231, 185, 106, .42);
	white-space: nowrap;
}

.uid-number .hash { opacity: .55; margin-right: 3px; font-size: .42em; letter-spacing: 0; }

.uid-barcode {
	height: 34px;
	background: repeating-linear-gradient(90deg,
		var(--gold) 0 2px, transparent 2px 5px,
		var(--gold) 5px 6px, transparent 6px 10px);
	opacity: .35;
	border-radius: 3px;
}

.uid-foot {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
	font-size: 11px;
	color: var(--muted-2);
}

.uid-foot b { font-weight: 500; color: var(--text-2); font-family: var(--mono); }

/* 身份卡 */
.id-card { padding: 26px 28px; }

.id-top { display: flex; gap: 18px; align-items: center; }

.avatar-lg {
	width: 68px;
	height: 68px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-family: var(--serif);
	font-size: 26px;
	color: #0a0f1c;
	background: linear-gradient(140deg, var(--gold), #c8874a);
	flex: none;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
}

.id-name { font-family: var(--serif); font-size: 22px; letter-spacing: .06em; }

.id-group { font-size: 12px; color: var(--muted-2); }

.id-rows {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 30px;
	margin-top: 22px;
	padding-top: 16px;
	border-top: 1px solid var(--line-soft);
}

.id-row {
	display: flex;
	justify-content: space-between;
	padding: 7px 0;
	font-size: 12.5px;
	color: var(--muted-2);
	border-bottom: 1px solid var(--line-soft);
}

.id-row b { font-weight: 500; color: var(--text-2); font-family: var(--mono); }

/* 统计条 */
.pstats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-top: 16px;
}

.pstat { padding: 18px 22px; text-align: center; }

.pstat b {
	display: block;
	font-family: var(--mono);
	font-size: 26px;
	font-weight: 500;
	color: var(--gold);
}

.pstat span { font-size: 11px; color: var(--muted-2); letter-spacing: .18em; }

/* 活动区 */
.profile-grid {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 16px;
	margin-top: 16px;
}

.p-tabs {
	display: flex;
	gap: 4px;
	padding: 14px 18px 0;
	border-bottom: 1px solid var(--line-soft);
}

.p-tabs button {
	border: 0;
	background: transparent;
	color: var(--muted);
	font-family: inherit;
	font-size: 13px;
	padding: 8px 14px;
	cursor: pointer;
	border-bottom: 2px solid transparent;
}

.p-tabs button.on { color: var(--gold); border-bottom-color: var(--gold); }

.p-rows { padding: 8px 22px 18px; }

.p-row {
	display: grid;
	grid-template-columns: 96px 1fr;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--line-soft);
}

.p-row:last-child { border-bottom: 0; }

.p-date {
	font-family: var(--mono);
	font-size: 11.5px;
	color: var(--muted-2);
	padding-top: 2px;
}

.p-t a { color: var(--text); font-size: 14px; }
.p-t a:hover { color: var(--gold); }

.p-ex {
	font-size: 12.5px;
	color: var(--muted);
	margin-top: 4px;
	line-height: 1.8;
}

.p-empty { padding: 26px; text-align: center; color: var(--muted-2); font-size: 13px; }

@media (max-width: 900px) {
	.profile-hero { grid-template-columns: 1fr; }
	.profile-grid { grid-template-columns: 1fr; }
	.pstats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
	.uid-number { font-size: 38px; }
	.id-rows { grid-template-columns: 1fr; }
	.p-row { grid-template-columns: 1fr; gap: 4px; }
	.pstats { gap: 10px; }
}

/* ============================================================ */
/* Xiuno 内容集成样式（复刻 V1 时补充的桥接层）                  */
/* ============================================================ */

/* 分页：Xiuno pagination() 输出 <li class="page-item"><a class="page-link"> */
.pager { flex-wrap: wrap; }
.pager .page-item { list-style: none; display: inline-flex; margin: 0; }
.pager .page-link {
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	padding: 0;
	border-radius: 9px;
	border: 1px solid var(--line);
	color: var(--muted);
	text-decoration: none;
	font-family: var(--mono);
	font-size: 12.5px;
	background: transparent;
}
.pager .page-item.active .page-link { background: var(--gold-soft); color: var(--gold); border-color: rgba(231, 185, 106, .3); }
.pager .page-link:hover { color: var(--text); }

/* 帖子正文内容（article-body / reply-body 均带 .message 类，供 resize_image 定位） */
.message { font-size: 15px; line-height: 1.9; word-break: break-word; }
.message p { margin: 0 0 .9em; }
.message img { max-width: 100%; height: auto !important; border-radius: 10px; border: 1px solid var(--line-soft); }
.message a { color: var(--gold); }
.message blockquote,
.message .quote {
	margin: .8em 0;
	padding: 10px 14px;
	border-left: 3px solid var(--gold);
	background: rgba(231, 185, 106, .06);
	color: var(--text-2);
	border-radius: 0 8px 8px 0;
}
.message .quote img { display: none; }
.message table { border-collapse: collapse; }
.message table td, .message table th { border: 1px solid var(--line); padding: 6px 10px; }
.table-responsive { overflow-x: auto; }
.table { width: 100%; color: var(--text); }

/* 快捷回复编辑器 */
.editor-actions { display: inline-flex; align-items: center; gap: 10px; }
#message { height: auto; min-height: 120px; }

/* 回复操作（引用 / 编辑 / 删除） */
.reply-actions { display: inline-flex; gap: 10px; margin-left: 2px; }
.reply-actions a { color: var(--muted-2); font-size: 11px; text-decoration: none; }
.reply-actions a:hover { color: var(--gold); }
.reply-subject { margin: 0 0 .5em; }
.reply-subject a { color: var(--muted); font-weight: 600; }

/* 注册页验证码行 */
.field-code { display: flex; gap: 10px; align-items: center; }
.field-code input { flex: 1; }
.field-code .btn { white-space: nowrap; height: 44px; }

/* 内容区超宽表格与图片兜底 */
.article-body.message, .reply-body.message { overflow-wrap: break-word; }

/* Xiuno bootstrap.css 的 a:hover 会加下划线并变蓝(#49b2e5)，这里全局中和 */
a:hover, a:focus { text-decoration: none; }

/* ---------- 顶栏修正：插件注入的搜索项 + 窄屏品牌排版 ---------- */
.topbar-right > .nav-item { display: none !important; }
.brand-name {
	font-family: var(--serif);
	font-size: 20px;
	letter-spacing: .14em;
	font-weight: 600;
	white-space: nowrap;
}

@media (max-width: 760px) {
	.topbar .wrap {
		gap: 10px;
		height: 62px;
	}
	.brand { gap: 8px; }
	.brand-mark { width: 26px; height: 26px; }
	.brand-name {
		font-size: 14.5px;
		letter-spacing: .06em;
	}
	.brand-sub { display: none; }
	.topbar-right { gap: 8px; }
	.topbar-right .btn {
		padding: 7px 11px;
		font-size: 13px;
	}
	.icon-btn {
		width: 32px;
		height: 32px;
		flex: none;
	}
}

/* haya 插件给用户名包的 span：保持与编号同行对齐 */
.trow-meta .haya-post-info-username {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
}

/* 防止长标题撑破栅格列（grid min-width:auto 的经典坑） */
.grid-main > *,
.grid-2 > *,
.rail-sticky,
.rail-sticky > * { min-width: 0; }

/* 窄屏主题行：头像 | 标题+标签 | 回复/浏览（追加在文件末尾以覆盖前面的基规则） */
@media (max-width: 620px) {
	.trow {
		grid-template-columns: 34px minmax(0, 1fr) auto;
		gap: 12px;
		padding: 14px 12px;
	}
	.trow .trow-title { flex-wrap: wrap; gap: 6px; row-gap: 4px; }
	.trow .trow-stats { grid-column: 3; grid-row: 1; justify-content: flex-end; gap: 12px; }
	.trow .trow-stat { min-width: 32px; }
	.trow .trow-stat b { font-size: 12.5px; }
	.trow .trow-subject { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

/* 「最后回复」用辅色（玫瑰），与金色的作者名区分 */
.trow-meta .trow-last {
	color: rgba(224, 122, 144, .88);
}
.trow-meta .trow-last b { color: inherit; }

/* 底部合并卡：关于这颗星球（简介 + 数据） */
.about-card .card-body {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 34px;
	align-items: center;
	padding: 28px 30px 30px;
}

.about-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	margin-top: 18px;
	font-size: 12px;
	color: var(--muted-2);
}

.about-meta b {
	font-family: var(--mono);
	font-size: 13.5px;
	font-weight: 500;
	color: var(--text-2);
	margin-right: 2px;
}

.about-kpis {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.about-kpi {
	padding: 14px 16px 13px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: linear-gradient(165deg, var(--panel-2), var(--panel) 60%, rgba(255, 255, 255, .01));
}

.about-kpi .l {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: .16em;
	color: var(--muted-2);
}

.about-kpi .n {
	font-family: var(--mono);
	font-size: clamp(22px, 2.2vw, 27px);
	line-height: 1.25;
	margin: 3px 0 2px;
	color: var(--text);
	font-variant-numeric: tabular-nums;
}

.about-kpi .f {
	font-size: 11px;
	color: var(--muted-2);
}

.about-kpi .f b { color: var(--gold); font-weight: 400; }

@media (max-width: 900px) {
	.about-card .card-body { grid-template-columns: 1fr; gap: 22px; padding: 22px 20px 24px; }
}

/* ==========================================================================
   「我的」系列页面（左侧栏 3 : 右侧内容 7）
   ========================================================================== */
.my-grid {
	display: grid;
	grid-template-columns: 3fr 7fr;
	gap: 16px;
	align-items: start;
}

.my-aside { display: grid; gap: 16px; }

.my-id .card-body { padding: 26px 20px 22px; text-align: center; }

.my-id .avatar { width: 72px; height: 72px; font-size: 26px; margin: 0 auto 14px; }

.my-id-name { font-family: var(--serif); font-size: 19px; letter-spacing: .06em; color: var(--text); }

.my-id .uid-chip { margin-top: 8px; display: inline-block; }

.my-id-sub { margin-top: 8px; font-size: 11.5px; color: var(--muted-2); }

.my-nav { display: grid; gap: 2px; padding: 8px; }

.my-nav-item {
	display: block;
	padding: 11px 14px;
	border-radius: 12px;
	font-size: 13.5px;
	color: var(--text-2);
	transition: background .2s, color .2s;
}

.my-nav-item:hover { background: rgba(255, 255, 255, .045); color: var(--text); text-decoration: none; }

.my-nav-item.on { background: rgba(231, 185, 106, .13); color: var(--gold); }

/* 插件注入的侧栏链接（huux_notice 的通知）对齐成同一款 */
.my-nav .list-group-item {
	display: block;
	padding: 11px 14px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	font-size: 13.5px;
	color: var(--text-2);
}

.my-nav .list-group-item:hover { background: rgba(255, 255, 255, .045); color: var(--text); text-decoration: none; }

.my-main .card-body { padding: 22px 24px 26px; }

.my-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin-bottom: 20px;
}

.my-stat {
	padding: 14px 16px 12px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: linear-gradient(165deg, var(--panel-2), var(--panel) 60%, rgba(255, 255, 255, .01));
}

.my-stat b {
	display: block;
	font-family: var(--mono);
	font-size: 20px;
	font-weight: 500;
	color: var(--text);
	font-variant-numeric: tabular-nums;
}

.my-stat span { font-size: 11px; letter-spacing: .14em; color: var(--muted-2); }

.my-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 11px 0;
	border-bottom: 1px solid var(--line-soft);
	font-size: 13.5px;
}

.my-row span { color: var(--muted-2); flex: none; }

.my-row b { font-weight: 400; color: var(--text-2); word-break: break-all; text-align: right; }

.my-form .field { margin-bottom: 12px; }

.my-form .btn-block { margin-top: 18px; width: 100%; justify-content: center; }

.my-avatar-box { text-align: center; padding: 6px 0 18px; }

.my-avatar-img {
	width: 128px;
	height: 128px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid rgba(231, 185, 106, .35);
	background: rgba(255, 255, 255, .04);
}

.my-avatar-tip { margin: 14px 0 0; font-size: 12px; color: var(--muted-2); }

/* 插件自带的 my 页面（通知 / 我的帖子）仍用原 Bootstrap 骨架，这里把栅格对齐成 3:7 */
@media (min-width: 992px) {
	#my_aside { flex: 0 0 30%; max-width: 30%; }
	#my_main { flex: 0 0 70%; max-width: 70%; }
}

#my_aside .list-group-item {
	border: 0;
	background: transparent;
	font-size: 13.5px;
	color: var(--text-2);
}

#my_aside .list-group-item.active,
#my_aside .list-group-item:hover { background: rgba(255, 255, 255, .05); color: var(--gold); }

#my_main .card-header { background: transparent; border-bottom: 1px solid var(--line-soft); }

#my_main .nav-tabs { border: 0; gap: 4px; }

#my_main .nav-tabs .nav-link {
	border: 0;
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 13px;
	color: var(--muted);
}

#my_main .nav-tabs .nav-link.active { background: var(--gold-soft); color: var(--gold); }

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

/* my 页里的文件选择框 / 进度条统一成深色 */
.my-main .custom-file-label,
.my-main .custom-file-label::after { border-color: var(--line); }

.my-main .custom-file-label {
	background: rgba(255, 255, 255, .04);
	color: var(--muted);
	border-radius: 10px;
	height: 42px;
	line-height: 28px;
}

.my-main .custom-file-label::after {
	background: var(--gold-soft);
	color: var(--gold);
	border-left: 1px solid var(--line);
	border-radius: 0 10px 10px 0;
	height: 42px;
	line-height: 28px;
}

.my-main .progress {
	height: 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .07);
	overflow: hidden;
}

.my-main .progress-bar {
	background: linear-gradient(90deg, var(--gold-deep), var(--gold));
}

/* ---- 「我的」里的消息列表 ---- */
.my-notice-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.my-notice-bar .tabs { display: flex; flex-wrap: wrap; gap: 8px; }

.my-notice-bar .tabs a {
	padding: 5px 14px;
	border-radius: 999px;
	border: 1px solid var(--line);
	color: var(--text-2);
	font-size: 13px;
	transition: all .2s;
}

.my-notice-bar .tabs a:hover { color: var(--text); border-color: var(--line-soft); }

.my-notice-bar .tabs a.on {
	border-color: rgba(231, 185, 106, .5);
	background: var(--gold-soft);
	color: var(--gold);
}

.my-notice-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.my-notice-acts .btn { padding: 5px 14px; font-size: 12.5px; }

.noticelist { display: grid; gap: 10px; }

.notice {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	gap: 14px;
	padding: 14px 16px;
	border-radius: 14px;
	border: 1px solid var(--line-soft);
	background: rgba(255, 255, 255, .02);
}

.notice.isread { opacity: .58; }

.notice-body { min-width: 0; }

.notice-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 10px;
}

.notice-who { color: var(--gold); font-size: 13.5px; }
.notice-date { color: var(--muted-2); font-family: var(--mono); font-size: 11.5px; }
.notice-acts { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.notice-read { font-size: 11.5px; color: var(--muted-2); }

.btn-mini {
	padding: 2px 10px;
	font-size: 11.5px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: transparent;
	color: var(--muted);
	transition: all .2s;
}

.btn-mini:hover { color: var(--gold); border-color: rgba(231, 185, 106, .45); }

.notice-msg { margin-top: 6px; font-size: 14px; color: var(--text-2); }
.notice-msg a { color: var(--blue); }

.my-empty { padding: 54px 0; text-align: center; color: var(--muted-2); }
.my-empty div { font-size: 34px; opacity: .35; margin-bottom: 10px; }
.my-empty p { margin: 0; font-size: 13.5px; }

.my-nav .list-group-item.active {
	color: var(--gold);
	background: var(--gold-soft);
}

/* 「我的帖子」里的回声列表：比详情页更紧凑 */
.postlist-compact { display: grid; gap: 2px; }

.postlist-compact .reply {
	grid-template-columns: 34px minmax(0, 1fr);
	gap: 12px;
	padding: 14px 0;
}

.postlist-compact .avatar { width: 34px; height: 34px; font-size: 13px; }
.postlist-compact .reply-body { font-size: 13.5px; line-height: 1.65; color: var(--text-2); }
.postlist-compact .reply-body p { margin: .2rem 0; }
.postlist-compact .reply-subject { font-size: 14px; margin-bottom: 2px; }
.postlist-compact .reply-head { font-size: 12px; }

/* ---- 帖子页：作者 UID 作为顶部背景水印 ---- */
/* 作者卡：UID 作为头像背后的水印 */
#author-card { position: relative; overflow: hidden; }

.author-uid-mark {
	position: absolute;
	top: 4px;
	left: 0;
	right: 0;
	z-index: 0;
	text-align: center;
	font-family: var(--mono);
	font-size: clamp(42px, 4vw, 58px);
	line-height: 1;
	letter-spacing: -.04em;
	color: rgba(231, 185, 106, .15);
	pointer-events: none;
	user-select: none;
	-webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .5) 78%, transparent 100%);
	mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .5) 78%, transparent 100%);
}

/* 头像下移，把编号让出来 */
#author-card .author-card { padding-top: 72px; }

#author-card .author-card { position: relative; z-index: 1; }

#author-card .author-card .avatar {
	position: relative;
	z-index: 1;
	box-shadow: 0 0 0 6px rgba(5, 7, 15, .55);
}

/* 高级回复 / 发帖 / 编辑页：返回条 */
.editor-back {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin: 14px 0 0;
}

.editor-back span { font-size: 12.5px; color: var(--muted-2); }

/* 提交行：取消按钮放在提交左边 */
#form .text-right {
	display: inline-flex;
	flex-direction: row-reverse;
	align-items: center;
	gap: 10px;
}

.btn-ghost-edit { border-color: var(--line); color: var(--muted); }
.btn-ghost-edit:hover { color: var(--text); border-color: var(--line-soft); }

/* 作者卡：整卡是链接，文字颜色不要走 Bootstrap 的链接蓝 */
.author-card,
.author-card:hover,
.author-card:focus { color: var(--text); }

.author-card .author-name { color: var(--gold); }
.author-card .author-sub { color: var(--muted-2); }
.author-card .author-stats b { color: var(--text); }

/* 高级回复 / 发帖页的提交按钮统一成金色 */
#form .btn-primary {
	border-color: rgba(231, 185, 106, .5);
	background: linear-gradient(135deg, #ecc780, #d99a58);
	color: #1a1206;
	font-weight: 500;
}

#form .btn-primary:hover { filter: brightness(1.06); }

/* 编辑器容器贴合深色卡片 */
.edui-editor { border-color: var(--line) !important; }
.edui-editor-toolbarbox { border-bottom-color: var(--line) !important; }

/* 表单控件（发帖/编辑/搜索等）统一深色 */
.form-control,
.custom-select {
	background-color: rgba(255, 255, 255, .04);
	border: 1px solid var(--line);
	color: var(--text);
}

.form-control:focus,
.custom-select:focus {
	background-color: rgba(255, 255, 255, .06);
	border-color: rgba(231, 185, 106, .45);
	color: var(--text);
	box-shadow: none;
}

.form-control::placeholder { color: var(--muted-2); }
.form-control:disabled,
.form-control[readonly] { background-color: rgba(255, 255, 255, .02); color: var(--muted); }

/* 编辑器区域不要叠两层半透明白 */
#message,
.edui-editor-body,
.edui-body-container { background-color: transparent !important; }

.edui-editor { background-color: rgba(255, 255, 255, .015); }

/* 全站 badge / 标签胶囊统一（发帖页标签、列表标签、计数） */
.badge,
.badge-pill {
	display: inline-flex;
	align-items: center;
	padding: 1px 9px 2px;
	border-radius: 999px;
	border: 1px solid rgba(231, 185, 106, .28);
	background: var(--gold-soft);
	color: var(--gold);
	font-size: 11px;
	font-weight: 400;
	line-height: 1.6;
	vertical-align: middle;
}

a.badge:hover,
a.badge-pill:hover,
.badge:hover {
	background: rgba(231, 185, 106, .2);
	border-color: rgba(231, 185, 106, .45);
	color: var(--gold);
	text-decoration: none;
}

.badge.badge-secondary,
.badge.badge-light { background: rgba(255, 255, 255, .06); color: var(--muted); border-color: var(--line); }

/* 发帖/编辑页的标签选择器（xn_tag 注入 .nav_tag_list） */
.nav_tag_list { border-collapse: separate; border-spacing: 0 4px; }
.nav_tag_list td { padding: 0; border: 0; }

.nav_tag_list .tag_option {
	display: inline-flex;
	align-items: center;
	margin: 2px 6px 2px 0;
	padding: 1px 10px 2px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, .03);
	color: var(--muted);
	font-size: 11.5px;
	line-height: 1.7;
}

.nav_tag_list .tag_option:hover {
	color: var(--gold);
	border-color: rgba(231, 185, 106, .4);
	background: rgba(231, 185, 106, .08);
	text-decoration: none;
}

.nav_tag_list .tag_option.active {
	background: var(--gold-soft);
	border-color: rgba(231, 185, 106, .5);
	color: var(--gold);
}

/* 版块页：标题行右侧显示主题/回帖总数 */
.hero-title-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px 24px;
	flex-wrap: wrap;
}

.hero-counts {
	display: flex;
	align-items: baseline;
	gap: 22px;
	padding-bottom: 14px;
}

.hero-counts span {
	display: inline-flex;
	align-items: baseline;
	gap: 7px;
	font-size: 12px;
	letter-spacing: .12em;
	color: var(--muted-2);
	white-space: nowrap;
}

.hero-counts b {
	font-family: var(--mono);
	font-size: clamp(17px, 1.6vw, 21px);
	font-weight: 400;
	letter-spacing: 0;
	color: var(--gold);
}

@media (max-width: 620px) {
	.hero-title-row { flex-direction: column; align-items: flex-start; gap: 4px; }
	.hero-counts { padding-bottom: 0; gap: 16px; }
}

/* 分页：数字多时不要挤出格子 */
.pager .page-link {
	width: auto;
	min-width: 34px;
	padding: 0 10px;
}

/* 版块公告 */
.announce {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin: 0 0 18px;
	padding: 16px 20px 17px;
	border-radius: var(--radius);
	border: 1px solid rgba(231, 185, 106, .26);
	background:
		radial-gradient(120% 160% at 0% 0%, rgba(231, 185, 106, .10), transparent 60%),
		linear-gradient(120deg, rgba(231, 185, 106, .07), rgba(224, 122, 144, .04));
}

.ann-mark {
	flex: none;
	font-size: 13px;
	line-height: 1.9;
	color: var(--gold);
}

.ann-main { min-width: 0; }

.ann-label {
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 5px;
}

.ann-text {
	font-size: 13.5px;
	line-height: 1.85;
	color: var(--text-2);
	overflow-wrap: break-word;
}

.ann-text p { margin: 0 0 .45em; }
.ann-text p:last-child { margin-bottom: 0; }
.ann-text a { color: var(--gold); }

@media (max-width: 620px) {
	.announce { padding: 14px 16px 15px; gap: 10px; }
}

/* 已登录时的 hero：头像 + 星环 */
.planet-me { width: 380px; height: 380px; }

.me-halo {
	position: absolute;
	width: 300px;
	height: 300px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(231, 185, 106, .16), rgba(231, 185, 106, .05) 55%, transparent 72%);
	filter: blur(6px);
}

.me-ring {
	position: absolute;
	width: 330px;
	height: 330px;
	border-radius: 50%;
	border: 1px solid rgba(231, 185, 106, .22);
	pointer-events: none;
}

.me-ring-a { transform: rotate(-19deg) scaleY(.34); }
.me-ring-b { width: 262px; height: 262px; transform: rotate(16deg) scaleY(.44); border-color: rgba(142, 168, 255, .18); }

.me-spin {
	position: absolute;
	width: 330px;
	height: 330px;
	border-radius: 50%;
	pointer-events: none;
}

.me-spin-a { animation: meSpinA 26s linear infinite; }
.me-spin-b { width: 262px; height: 262px; animation: meSpinB 19s linear infinite; }

.me-dot {
	position: absolute;
	left: 50%;
	top: -3.5px;
	width: 7px;
	height: 7px;
	margin-left: -3.5px;
	border-radius: 50%;
	background: var(--gold);
	box-shadow: 0 0 12px rgba(231, 185, 106, .85);
}

.me-dot-b { width: 5px; height: 5px; top: -2.5px; background: var(--blue); box-shadow: 0 0 10px rgba(142, 168, 255, .8); }

@keyframes meSpinA {
	from { transform: rotate(-19deg) scaleY(.34) rotate(0deg); }
	to   { transform: rotate(-19deg) scaleY(.34) rotate(360deg); }
}

@keyframes meSpinB {
	from { transform: rotate(16deg) scaleY(.44) rotate(0deg); }
	to   { transform: rotate(16deg) scaleY(.44) rotate(-360deg); }
}

.me-avatar {
	position: relative;
	z-index: 2;
	width: 178px;
	height: 178px;
	border-radius: 50%;
	overflow: hidden;
	border: 1px solid rgba(231, 185, 106, .5);
	box-shadow:
		0 0 0 6px rgba(5, 7, 15, .55),
		0 0 70px rgba(231, 185, 106, .18);
	animation: meBreath 9s ease-in-out infinite;
}

.me-avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.me-initial {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	font-family: var(--serif);
	font-size: 64px;
	line-height: 1;
	color: #0a0f1c;
	background: linear-gradient(140deg, var(--gold), #c8874a);
}

@keyframes meBreath {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}

@media (max-width: 620px) {
	
	.me-avatar { width: 140px; height: 140px; }
	.me-initial { font-size: 50px; }
	.me-ring { width: 260px; height: 260px; }
	.me-spin { width: 260px; height: 260px; }
	.me-ring-b, .me-spin-b { width: 206px; height: 206px; }
	
}

@media (prefers-reduced-motion: reduce) {
	.me-spin-a, .me-spin-b, .me-avatar { animation: none; }
}

/* hero 收紧 + 登录态头像星球（覆盖前面的基础尺寸） */
.hero { padding: 44px 0 36px; }
.hero-art { height: 400px; }

.hero-art-me { height: 340px; }

.hero-art-me .me-ring-a { transform: rotate(-19deg) scaleY(.34); }

.hero-art-me .me-spin-a { animation: meSpinA2 24s linear infinite; }
.hero-art-me .me-spin-b { animation: meSpinB2 17s linear infinite; }

@keyframes meSpinA2 {
	from { transform: rotate(-19deg) scaleY(.34) rotate(0deg); }
	to   { transform: rotate(-19deg) scaleY(.34) rotate(360deg); }
}

@keyframes meSpinB2 {
	from { transform: rotate(16deg) scaleY(.44) rotate(0deg); }
	to   { transform: rotate(16deg) scaleY(.44) rotate(-360deg); }
}

/* 登录态：标签往头像方向收 */
.hero-art-me .chip-a { left: 4%; top: 6%; }

@media (max-width: 1080px) {
	.hero-art { height: 360px; }
	
}

@media (max-width: 620px) {
	.hero {
	padding: 30px 0 24px;
}
	.hero-art {
	height: 300px;
}
	
	
	
	
	
	
	
	
	
	
}

/* 登录态：浮动标签贴在头像周围（相对 planet-me 定位） */
.hero-art-me .chip-a { left: -30%; top: 2%; }

@media (max-width: 1080px) {
	.hero-art-me .chip-a { left: -16%; top: 0; }
	.hero-art-me .chip-b { right: -16%; top: 28%; }
	.hero-art-me .chip-c { left: -8%; bottom: 2%; }
	
}

@media (max-width: 620px) {
	.hero-art-me .chip-a {
	left: -6%;
	top: -2%;
}
	.hero-art-me .chip-b {
	right: -6%;
	top: 26%;
}
	.hero-art-me .chip-c {
	left: -2%;
	bottom: 0;
}
	
	
}

/* 再收一档：标签更贴近头像/星环 */
.hero-art-me .chip-a { left: -22%; top: 2%; }

/* 登录态 hero 最终档：星环更大、头像更小、六枚标签两列排布 */
.hero-art-me { height: 380px; }
.planet-me {
	width: 360px;
	height: 360px;
}
.hero-art-me .me-halo {
	width: 250px;
	height: 250px;
}

.hero-art-me .me-avatar {
	width: 112px;
	height: 112px;
}
.hero-art-me .me-initial {
	font-size: 44px;
}

.hero-art-me .me-ring,
.hero-art-me .me-spin {
	width: 330px;
	height: 330px;
}

.hero-art-me .me-ring-b,
.hero-art-me .me-spin-b {
	width: 276px;
	height: 276px;
}

.hero-art-me .chip-a { left: -25%; top: 0; }

.hero-art-me .chip-b {
	right: -25%;
	top: 36%;
}

.hero-art-me .chip-c {
	left: -25%;
	bottom: 2%;
}

@media (max-width: 1080px) {
	.hero-art-me {
	height: 340px;
}
	.planet-me { width: 320px; height: 320px; }
	.hero-art-me .me-ring, .hero-art-me .me-spin { width: 292px; height: 292px; }
	.hero-art-me .me-ring-b, .hero-art-me .me-spin-b { width: 244px; height: 244px; }
	.hero-art-me .me-avatar { width: 100px; height: 100px; }
	.hero-art-me .chip-a, .hero-art-me .chip-c, .hero-art-me .chip-f { left: -14%; }
	.hero-art-me .chip-b, .hero-art-me .chip-d, .hero-art-me .chip-e { right: -14%; }
}

@media (max-width: 620px) {
	.hero-art-me {
	height: 330px;
}
	.planet-me {
	width: 268px;
	height: 268px;
}
	.hero-art-me .me-ring, .hero-art-me .me-spin {
	width: 250px;
	height: 250px;
}
	.hero-art-me .me-ring-b, .hero-art-me .me-spin-b {
	width: 206px;
	height: 206px;
}
	.hero-art-me .me-avatar {
	width: 86px;
	height: 86px;
}
	.hero-art-me .me-initial {
	font-size: 34px;
}
	.hero-art-me .chip-a, .hero-art-me .chip-c, .hero-art-me .chip-f { left: -6%; }
	.hero-art-me .chip-b, .hero-art-me .chip-d, .hero-art-me .chip-e { right: -6%; }
	.hero-art-me .float-chip {
	font-size: 10.5px;
	padding: 6px 10px;
	gap: 7px;
}
	.hero-art-me .float-chip b { font-size: 12px; }
}

/* 星环再亮一点点，让小头像时也能看清 */
.hero-art-me .me-ring-a { border-color: rgba(231, 185, 106, .32); }
.hero-art-me .me-ring-b {
	transform: rotate(16deg) scaleY(.44);
	border-color: rgba(142, 168, 255, .26);
}
.hero-art-me .me-dot { width: 8px; height: 8px; margin-left: -4px; top: -4px; }

/* 登录态：六枚标签改为环绕头像的六边形排布（贴着头像与星环） */
.hero-art-me .me-chp {
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	animation: floatyC 7s ease-in-out infinite;
}

.hero-art-me .me-chp-top    { left: 50%; top: 16%; animation-delay: -1s; }
.hero-art-me .me-chp-ur     { left: 84%; top: 32%; animation-delay: -2.4s; }
.hero-art-me .me-chp-lr     { left: 84%; top: 68%; animation-delay: -3.6s; }
.hero-art-me .me-chp-bottom { left: 50%; top: 84%; animation-delay: -5s; }
.hero-art-me .me-chp-ll     { left: 16%; top: 68%; animation-delay: -4.3s; }
.hero-art-me .me-chp-ul     { left: 16%; top: 32%; animation-delay: -0.6s; }

@keyframes floatyC {
	0%, 100% { transform: translate(-50%, -50%); }
	50%      { transform: translate(-50%, calc(-50% - 7px)); }
}

@media (max-width: 1080px) {
	.hero-art-me .me-chp-top    { left: 50%; top: 14%; }
	.hero-art-me .me-chp-ur     { left: 82%; top: 31%; }
	.hero-art-me .me-chp-lr     { left: 82%; top: 69%; }
	.hero-art-me .me-chp-bottom { left: 50%; top: 86%; }
	.hero-art-me .me-chp-ll     { left: 18%; top: 69%; }
	.hero-art-me .me-chp-ul     { left: 18%; top: 31%; }
}

@media (max-width: 620px) {
	.hero-art-me .me-chp { font-size: 10.5px; padding: 6px 10px; gap: 6px; }
	.hero-art-me .me-chp b { font-size: 12px; }
	.hero-art-me .me-chp-top    { top: 12%; }
	.hero-art-me .me-chp-bottom { top: 88%; }
	.hero-art-me .me-chp-ur, .hero-art-me .me-chp-lr { left: 84%; }
	.hero-art-me .me-chp-ul, .hero-art-me .me-chp-ll { left: 16%; }
}

/* 环绕标签不要换行（绝对定位 + left 百分比会把宽度压窄） */
.hero-art-me .me-chp {
	white-space: nowrap;
	width: max-content;
}

/* 搜索页 */
.search-card { margin-top: 22px; margin-bottom: 18px; }

.search-card .card-body { padding: 20px 22px; }

.search-form { display: grid; gap: 12px; }

.search-input {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 6px 6px 14px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, .035);
	color: var(--muted-2);
	transition: border-color .2s, background .2s;
}

.search-input:focus-within {
	border-color: rgba(231, 185, 106, .45);
	background: rgba(255, 255, 255, .05);
}

.search-input .form-control {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 8px 0;
	font-size: 14.5px;
	color: var(--text);
}

.search-input .form-control:focus { background: transparent; border: 0; }

.search-input .btn { flex: none; padding: 9px 22px; }

.search-scope {
	display: flex;
	align-items: center;
	gap: 18px;
	padding-left: 6px;
	font-size: 12.5px;
	color: var(--muted);
}

.search-scope .form-check-inline { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.search-scope .form-check-input { margin: 0; }

.search-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.search-empty { margin: 6px 0 2px; color: var(--muted); font-size: 13.5px; }

@media (max-width: 1080px) {
	.search-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
	.search-input { padding: 5px 5px 5px 12px; }
	.search-input .btn { padding: 8px 16px; }
	.search-card .card-body { padding: 16px; }
}

/* 搜索命中的关键词高亮（插件注入 <span class="text-danger">），改成金色 */
.trow-subject .text-danger,
.postlist-compact .text-danger,
.article-body .text-danger,
.reply-body .text-danger {
	color: var(--gold) !important;
	background: rgba(231, 185, 106, .14);
	border-radius: 3px;
	padding: 0 2px;
}

/* 关于卡里的站点简介：多行时分段显示 */
.about-text p + p { margin-top: 2px; }
.about-text p {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.95;
	color: var(--muted);
	margin-bottom: 2px;
}
.about-text p:last-of-type { margin-bottom: 14px; }

/* 分享结果的轻提示 */
#b612-toast {
	position: fixed;
	left: 50%;
	bottom: 42px;
	z-index: 90;
	transform: translate(-50%, 12px);
	padding: 9px 18px;
	border-radius: 999px;
	border: 1px solid rgba(231, 185, 106, .32);
	background: rgba(10, 15, 28, .92);
	backdrop-filter: blur(10px);
	color: var(--gold);
	font-size: 12.5px;
	letter-spacing: .04em;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s, transform .25s;
}

#b612-toast.in {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* ==========================================================================
   弹窗（$.alert / $.confirm / 版主操作 / 上传）统一成整站风格
   ========================================================================== */

.modal-backdrop {
	background: #03050b;
}

.modal-backdrop.show {
	opacity: .74;
	backdrop-filter: blur(3px);
}

.modal.fade .modal-dialog {
	transform: translate(0, 14px) scale(.985);
	transition: transform .22s cubic-bezier(.22, .61, .36, 1);
}

.modal.show .modal-dialog {
	transform: none;
}

.modal-content {
	background:
		radial-gradient(120% 90% at 78% -10%, rgba(231, 185, 106, .10), transparent 60%),
		linear-gradient(168deg, #0d1322, #080c18 60%, #060a13);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 28px 70px rgba(0, 0, 0, .62), 0 0 0 1px rgba(255, 255, 255, .02) inset;
	color: var(--text);
	overflow: hidden;
}

.modal-header {
	padding: 20px 26px 14px;
	border-bottom: 1px solid var(--line-soft);
}

.modal-title {
	font-family: var(--serif);
	font-size: 17px;
	letter-spacing: .08em;
	color: var(--text);
}

.modal-header .close {
	margin: -6px -10px 0 auto;
	padding: 4px 8px;
	color: var(--muted-2);
	font-size: 22px;
	line-height: 1;
	opacity: 1;
	text-shadow: none;
	transition: color .2s;
}

.modal-header .close:hover,
.modal-header .close:focus {
	color: var(--gold);
	opacity: 1;
	outline: none;
}

.modal-body {
	padding: 20px 26px 22px;
	color: var(--text-2);
	font-size: 14px;
	line-height: 1.85;
}

.modal-body h5,
.modal-body h4 {
	font-family: var(--sans);
	font-size: 14.5px;
	font-weight: 400;
	line-height: 1.85;
	color: var(--text-2);
	margin: 0;
}

.modal-body p:last-child { margin-bottom: 0; }

.modal-body .form-group:last-child { margin-bottom: 0; }

.modal-footer {
	padding: 14px 26px 20px;
	border-top: 1px solid var(--line-soft);
	gap: 10px;
}

.modal-footer > :not(:first-child) { margin-left: 0; }
.modal-footer > :not(:last-child) { margin-right: 0; }

/* 弹窗里的按钮 */
.modal .btn {
	padding: 8px 18px;
	border-radius: 999px;
	font-size: 13.5px;
	border: 1px solid var(--line);
	background: transparent;
	color: var(--text-2);
}

.modal .btn:hover { border-color: rgba(231, 185, 106, .4); color: var(--gold); }

.modal .btn-primary,
.modal .btn-danger {
	border-color: rgba(231, 185, 106, .5);
	background: linear-gradient(135deg, #ecc780, #d99a58);
	color: #1a1206;
}

.modal .btn-primary:hover,
.modal .btn-danger:hover {
	color: #1a1206;
	filter: brightness(1.06);
}

.modal .btn-secondary {
	border-color: var(--line);
	background: rgba(255, 255, 255, .03);
	color: var(--muted);
}

.modal .btn-secondary:hover { color: var(--text); background: rgba(255, 255, 255, .06); }

/* 表单字段报错时用 tooltip 提示 */
.tooltip-inner {
	max-width: 280px;
	padding: 8px 12px;
	border-radius: 10px;
	border: 1px solid rgba(224, 122, 144, .4);
	background: rgba(12, 8, 14, .96);
	color: #f6d8de;
	font-size: 12.5px;
	line-height: 1.6;
	box-shadow: 0 10px 26px rgba(0, 0, 0, .5);
}

.bs-tooltip-top .arrow::before,
.bs-tooltip-auto[x-placement^="top"] .arrow::before { border-top-color: rgba(224, 122, 144, .4); }

.bs-tooltip-bottom .arrow::before,
.bs-tooltip-auto[x-placement^="bottom"] .arrow::before { border-bottom-color: rgba(224, 122, 144, .4); }

.bs-tooltip-left .arrow::before,
.bs-tooltip-auto[x-placement^="left"] .arrow::before { border-left-color: rgba(224, 122, 144, .4); }

.bs-tooltip-right .arrow::before,
.bs-tooltip-auto[x-placement^="right"] .arrow::before { border-right-color: rgba(224, 122, 144, .4); }

/* 页面级的 message() 提示块（提交后整页跳转时出现） */
.alert {
	border-radius: var(--radius-sm);
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, .04);
	color: var(--text-2);
	font-size: 14px;
	line-height: 1.8;
}

.alert-success {
	border-color: rgba(111, 214, 192, .35);
	background: rgba(111, 214, 192, .09);
	color: #bfeee2;
}

.alert-danger,
.alert-error {
	border-color: rgba(224, 122, 144, .38);
	background: rgba(224, 122, 144, .09);
	color: #f6d3da;
}

/* 弹窗垂直位置：不要贴着顶部 */
.modal-dialog { margin: 10vh auto 2rem; }
@media (max-width: 620px) { .modal-dialog { margin: 6vh 16px 1.5rem; } }
.modal-dialog.modal-sm { max-width: 380px; }

/* 静态截图模式（?static=1）下别让弹窗卡在淡入中间态 */
html.static .modal,
html.static .modal-dialog { transition: none !important; }
html.static .modal.fade { opacity: 1 !important; }

/* 管理员才能看到的资料行 */
.id-row-admin b { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.id-row-admin b a { color: var(--gold); }
.id-row-admin b a:hover { text-decoration: underline; }

@media (max-width: 620px) {
	#id-email { word-break: break-all; text-align: right; }
}

/* ==========================================================================
   内容与顶栏 / 页脚之间的呼吸距离（各页面统一）
   ========================================================================== */

/* 顶部：贴着顶栏开始的内容段落，统一留出 30px（hero / 登录页有自己的内边距，不重复加） */
.page > section.wrap:first-of-type:not(.hero):not(.page-hero):not(.auth) {
	padding-top: 30px;
}

/* 底部：页面最后一段，距离页脚统一 56px（登录/注册页自带 90px，不重复加） */
.page > section.wrap:last-of-type:not(.auth),
.page > section.section:last-of-type:not(.auth) {
	padding-bottom: 56px;
}

/* 发帖/编辑页：表单是裸的 .row，同样给它留出与页脚的距离 */
.page > div.row:last-of-type {
	padding-bottom: 56px;
}

/* 居民卡上的「信号」状态 */
.uid-foot .sig-on { color: var(--rose); }
.uid-foot .sig-off { color: var(--muted-2); }

/* ==========================================================================
   首页「星球的角落」版块卡：图标与排版微调
   ========================================================================== */

.forum-card { padding: 22px 24px 24px; }

.forum-card .fc-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 14px;
}

.forum-card .fc-symbol {
	width: 46px;
	height: 46px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: linear-gradient(150deg, rgba(231, 185, 106, .18), rgba(231, 185, 106, .05) 60%, rgba(224, 122, 144, .08));
	color: var(--gold);
	margin-bottom: 0;
	border: 1px solid rgba(231, 185, 106, .26);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 6px 18px -12px rgba(231, 185, 106, .8);
	flex: none;
	transition: border-color .25s, background .25s, transform .25s;
}

.forum-card .fc-meta { min-width: 0; }

.forum-card .fc-name {
	display: block;
	font-family: var(--serif);
	font-size: 20px;
	font-weight: 600;
	letter-spacing: .08em;
	line-height: 1.25;
}

.forum-card .fc-name small {
	display: block;
	margin-top: 2px;
	font-family: var(--mono);
	font-size: 9.5px;
	letter-spacing: .26em;
	text-transform: uppercase;
	color: var(--muted-2);
	font-weight: 400;
}

.forum-card .fc-brief {
	margin: 0 0 16px;
	font-size: 12.5px;
	line-height: 1.75;
	color: var(--muted);
}

.forum-card .fc-stats {
	display: flex;
	align-items: baseline;
	gap: 28px;
}

.forum-card .fc-stat {
	display: flex;
	align-items: baseline;
	gap: 6px;
	font-family: var(--mono);
	font-size: 19px;
	color: var(--text);
}

.forum-card .fc-stat span {
	font-family: var(--sans);
	font-size: 10.5px;
	letter-spacing: .12em;
	color: var(--muted-2);
}

.forum-card .fc-bar {
	display: block;
	margin-top: 15px;
	height: 4px;
}

/* hover：图标框提亮、箭头右移 */
.forum-card:hover .fc-symbol {
	border-color: rgba(231, 185, 106, .5);
	background: linear-gradient(150deg, rgba(231, 185, 106, .26), rgba(231, 185, 106, .09) 60%, rgba(224, 122, 144, .12));
	transform: translateY(-1px);
}

.forum-card:hover .fc-name { color: var(--gold); }

@media (max-width: 620px) {
	.forum-card { padding: 20px; }
	.forum-card .fc-head { gap: 12px; margin-bottom: 12px; }
	.forum-card .fc-symbol { width: 40px; height: 40px; border-radius: 12px; }
	
	.forum-card .fc-name { font-size: 18px; }
	.forum-card .fc-stats { gap: 20px; }
	.forum-card .fc-stat { font-size: 17px; }
}

/* 图标再放大一档，笔画略加粗 */
.forum-card .fc-symbol svg { width: 26px; height: 26px; stroke-width: 1.7; }
@media (max-width: 620px) {
	
}

.forum-card .fc-symbol svg {
	width: 28px;
	height: 28px;
	overflow: visible;
	filter: drop-shadow(0 0 6px rgba(231, 185, 106, .28));
}
@media (max-width: 620px) { .forum-card .fc-symbol svg {
	width: 23px;
	height: 23px;
} }

/* ==========================================================================
   提示 / 错误页（message.htm 覆写）
   ========================================================================== */
.msg-page {
	padding-top: 56px;
	padding-bottom: 64px;
	display: grid;
	place-items: center;
	min-height: 52vh;
}

.msg-card {
	width: min(520px, 100%);
	padding: 38px 34px 32px;
	text-align: center;
}

.msg-mark {
	width: 54px;
	height: 54px;
	margin: 0 auto 18px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 1px solid rgba(231, 185, 106, .3);
	background: rgba(231, 185, 106, .08);
	color: var(--gold);
}

.msg-mark.is-ok {
	border-color: rgba(111, 214, 192, .35);
	background: rgba(111, 214, 192, .1);
	color: var(--teal);
}

.msg-mark svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.msg-kicker {
	margin: 0 0 10px;
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--muted-2);
}

.msg-title {
	margin: 0 0 12px;
	font-family: var(--serif);
	font-size: clamp(20px, 2.4vw, 26px);
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: .04em;
	color: var(--text);
}

.msg-desc {
	margin: 0 0 24px;
	font-size: 13.5px;
	line-height: 1.8;
	color: var(--muted);
}

.msg-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

@media (max-width: 620px) {
	.msg-page { padding-top: 34px; padding-bottom: 56px; }
	.msg-card { padding: 30px 22px 26px; }
}

/* ==========================================================================
   移动端导航（汉堡 + 侧滑抽屉）
   nav 在 1080px 以下隐藏，由抽屉接管
   ========================================================================== */
.nav-toggle { display: none; }

.nav-scrim {
	position: fixed;
	inset: 0;
	z-index: 60;
	background: rgba(3, 5, 11, .62);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity .22s ease;
}

.nav-scrim.is-open { opacity: 1; }

.nav-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 61;
	width: min(310px, 84vw);
	display: flex;
	flex-direction: column;
	background: linear-gradient(180deg, #0b1120, #070b16 70%, #060a13);
	border-left: 1px solid var(--line);
	box-shadow: -24px 0 60px rgba(0, 0, 0, .55);
	transform: translateX(100%);
	transition: transform .26s cubic-bezier(.32, .72, 0, 1);
	overflow-y: auto;
}

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

.nav-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px 12px;
	border-bottom: 1px solid var(--line-soft);
}

.nav-drawer-title {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--muted-2);
}

.nav-drawer-list {
	display: flex;
	flex-direction: column;
	padding: 10px 12px;
	gap: 2px;
}

.nav-drawer-item {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 12px;
	border-radius: 12px;
	color: var(--text-2);
	font-size: 14.5px;
	transition: background .18s, color .18s;
}

.nav-drawer-item small {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: .12em;
	color: var(--muted-2);
}

.nav-drawer-item:hover { background: rgba(255, 255, 255, .04); color: var(--text); }

.nav-drawer-item.is-active { color: var(--gold); background: var(--gold-soft); }
.nav-drawer-item.is-active small { color: rgba(231, 185, 106, .7); }

.nav-drawer-foot {
	margin-top: auto;
	padding: 16px 20px 24px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	border-top: 1px solid var(--line-soft);
}

.nav-drawer-foot .btn-block { justify-content: center; }

body.nav-open { overflow: hidden; }

@media (max-width: 1080px) {
	.nav-toggle { display: inline-flex; }
}

@media (min-width: 1081px) {
	.nav-drawer, .nav-scrim { display: none !important; }
}

/* 静态截图模式下抽屉直接就位 */
html.static .nav-drawer,
html.static .nav-scrim { transition: none !important; }
html.static .nav-drawer.is-open { transform: none; }
html.static .nav-scrim.is-open { opacity: 1; }

/* ==========================================================================
   独立页：关于 / 规则 / 标签
   ========================================================================== */
.about-body p {
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 1.95;
	color: var(--text-2);
}

.about-body p:last-child { margin-bottom: 0; }

.about-q {
	font-family: var(--serif);
	font-size: 17px;
	line-height: 1.9;
	color: #f2e9d8;
	margin: 0 0 8px !important;
}

.about-cite {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--muted-2);
	margin: 0 !important;
}

.about-facts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 18px;
	margin-bottom: 18px;
}

.about-fact b {
	display: block;
	font-family: var(--mono);
	font-size: 17px;
	color: var(--gold);
	letter-spacing: .02em;
}

.about-fact span {
	font-size: 11px;
	letter-spacing: .16em;
	color: var(--muted-2);
}

.about-note {
	margin: 0 0 6px;
	font-size: 12.5px;
	line-height: 1.85;
	color: var(--muted);
}

.rules-list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: rule;
}

.rules-list li {
	position: relative;
	padding: 14px 0 14px 44px;
	border-bottom: 1px solid var(--line-soft);
	counter-increment: rule;
}

.rules-list li:last-child { border-bottom: 0; }

.rules-list li::before {
	content: counter(rule, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 14px;
	font-family: var(--mono);
	font-size: 12px;
	color: var(--gold);
	opacity: .8;
}

.rules-list b {
	display: block;
	font-family: var(--serif);
	font-size: 16px;
	font-weight: 400;
	color: var(--text);
	margin-bottom: 4px;
	letter-spacing: .04em;
}

.rules-list span {
	font-size: 13.5px;
	line-height: 1.85;
	color: var(--text-2);
}

.rules-foot {
	margin: 18px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--line-soft);
	font-size: 12.5px;
	color: var(--muted);
}

.tag-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}

.tag-panel {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: linear-gradient(170deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
	padding: 18px 20px 16px;
}

.tag-panel-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--line-soft);
}

.tag-panel-name {
	font-family: var(--serif);
	font-size: 17px;
	letter-spacing: .06em;
	color: var(--gold);
}

.tag-panel-cnt {
	font-family: var(--mono);
	font-size: 11px;
	color: var(--muted-2);
}

.tag-panel-list {
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
}

.tag-panel-list li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.tag-panel-list a {
	font-size: 13.5px;
	color: var(--text-2);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tag-panel-list a:hover { color: var(--gold); }

.tag-panel-list span {
	flex: none;
	font-family: var(--mono);
	font-size: 10.5px;
	color: var(--muted-2);
}

.tag-panel-empty {
	margin: 12px 0 0;
	font-size: 12.5px;
	color: var(--muted-2);
}

@media (max-width: 620px) {
	.about-facts { grid-template-columns: 1fr 1fr; gap: 12px; }
	.tag-grid { grid-template-columns: 1fr; }
}

/* 回到顶部：平滑滚动（尊重减少动效设置） */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* 抽屉关闭时不可聚焦、不拦截点击 */
.nav-drawer { visibility: hidden; pointer-events: none; }
.nav-drawer.is-open { visibility: visible; pointer-events: auto; }
html.static .nav-drawer.is-open { visibility: visible; }

/* 独立页内容块：与顶部 hero 之间留白 */
.page-body { padding-top: 32px; }
@media (max-width: 620px) { .page-body { padding-top: 24px; } }

