/* RiPro 站内消息 — 前台样式（短代码内嵌） */

.rsm-app {
	--rsm-bg: #f0f2f5;
	--rsm-card: #fff;
	--rsm-border: #e8eaed;
	--rsm-accent: #e11d48;
	--rsm-accent-soft: #fff1f2;
	--rsm-blue: #2563eb;
	--rsm-text: #1e293b;
	--rsm-muted: #64748b;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
	color: var(--rsm-text);
	background: var(--rsm-bg);
	padding: 20px;
	border-radius: 16px;
	box-sizing: border-box;
}
/* 顶部横幅紧贴上沿（由 PHP 类 rsm-app--with-hero 标记；勿用 :first-child：div 与 header 间换行会产生文本节点） */
.rsm-app.rsm-app--with-hero {
	padding-top: 2px;
}
.rsm-app * {
	box-sizing: border-box;
}
.rsm-layout {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 20px;
	max-width: 1200px;
	margin: 0 auto;
}

/* —— 消息中心顶部：国学风历程 + 子比式公告胶囊 —— */
.rsm-hero-head {
	position: relative;
	max-width: 1200px;
	margin: 0 auto 16px;
	border-radius: 16px;
	overflow: hidden;
	background: linear-gradient(165deg, #fdf8f0 0%, #f5ebe0 45%, #efe6d8 100%);
	border: 1px solid rgba(180, 83, 9, 0.22);
	box-shadow: 0 8px 32px rgba(120, 53, 15, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85);
	font-family: "STSong", "SimSun", "Songti SC", "Microsoft YaHei", Georgia, serif;
}
.rsm-hero-deco {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.14;
	background-image: radial-gradient(circle at 18% 22%, rgba(185, 28, 28, 0.35) 0, transparent 42%),
		radial-gradient(circle at 88% 78%, rgba(120, 53, 15, 0.28) 0, transparent 38%),
		repeating-linear-gradient(-12deg, transparent, transparent 11px, rgba(120, 53, 15, 0.03) 11px, rgba(120, 53, 15, 0.03) 12px);
}
.rsm-hero-head-inner {
	position: relative;
	padding: var(--rsm-hero-inner-pt, 2px) 2px 12px;
	z-index: 1;
}
.rsm-hero-head-inner--custom {
	padding: var(--rsm-hero-inner-pt, 2px) 2px 12px;
}
/* 主题常为 .entry-content h2 设 margin-top，会顶出大缝 */
.rsm-app .rsm-hero-head h2.rsm-hero-title {
	margin: 0 !important;
}
.rsm-hero-titles {
	max-width: min(100%, 46rem);
	width: 100%;
	margin: 0 auto 6px;
	padding-top: 0;
	text-align: center;
	--rsm-hero-title-fs: clamp(1.05rem, 2.8vw, 1.42rem);
	box-sizing: border-box;
}
.rsm-hero-title-frame {
	position: relative;
	display: block;
	max-width: 100%;
	width: 100%;
	margin: 0 auto 3px;
	padding: 0;
	overflow: visible;
	box-sizing: border-box;
	border: none;
	background: none;
	box-shadow: none;
	text-align: center;
}
.rsm-hero-title-frame::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	transform: translateX(-50%);
	width: min(92%, 38rem);
	border-radius: 9px;
	z-index: 0;
	pointer-events: none;
	background: linear-gradient(
		90deg,
		rgba(253, 248, 240, 0) 0%,
		rgba(255, 255, 255, 0.38) 18%,
		rgba(255, 255, 255, 0.38) 82%,
		rgba(253, 248, 240, 0) 100%
	);
	box-shadow: inset 0 0 0 1px rgba(127, 29, 29, 0.14);
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}
.rsm-hero-title {
	position: relative;
	z-index: 1;
	margin: 0;
	padding: 0 12px 2px;
	font-size: var(--rsm-hero-title-fs);
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.22;
	color: var(--rsm-hero-title-color, #7f1d1d);
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
	white-space: normal;
	overflow: visible;
	text-align: center;
}
.rsm-hero-sub {
	margin: 0;
	padding: 0 2px;
	font-size: clamp(0.75rem, 1.85vw, 0.88rem);
	line-height: 1.38;
	color: var(--rsm-hero-sub-color, #78350f);
	letter-spacing: 0.05em;
	opacity: 0.95;
	text-align: center;
}
.rsm-hero-sub p {
	margin: 0.15em 0 0;
}
.rsm-hero-sub p:first-child {
	margin-top: 0;
}
.rsm-hero-track {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px 8px;
	margin-bottom: 10px;
	padding: 22px 12px 12px;
	background: rgba(255, 255, 255, 0.45);
	border-radius: 14px;
	border: 1px solid rgba(180, 83, 9, 0.15);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
	overflow: visible;
}
.rsm-hero-route--desktop {
	display: block;
	position: absolute;
	left: 3%;
	right: 3%;
	top: 34px;
	width: 94%;
	height: 36px;
	z-index: 0;
	pointer-events: none;
}
.rsm-hero-route--desktop .rsm-hero-route-path {
	filter: drop-shadow(0 1px 0 rgba(255, 250, 240, 0.9));
}
.rsm-hero-mile {
	flex: 1 1 calc(20% - 8px);
	min-width: 132px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 5px;
	padding: 6px 4px 8px;
	position: relative;
	z-index: 1;
}
.rsm-hero-mile--plain {
	min-width: 100%;
	flex-basis: 100%;
}
.rsm-hero-year {
	font-size: 1.05rem;
	font-weight: 800;
	color: #991b1b;
	letter-spacing: 0.06em;
}
.rsm-hero-mile-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: linear-gradient(145deg, #ca8a04, #b45309);
	box-shadow: 0 0 0 3px rgba(202, 138, 4, 0.25);
}
.rsm-hero-mile-txt {
	font-size: 0.78rem;
	line-height: 1.45;
	color: #44403c;
	max-width: 12em;
}
.rsm-hero-mile--plain .rsm-hero-mile-txt {
	max-width: none;
}
.rsm-hero-notice {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 18px;
	border-radius: 999px;
	background: var(--rsm-notice-bg, #fff0f3);
	border: 1px solid var(--rsm-notice-bd, rgba(159, 18, 57, 0.2));
	box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
	min-height: 44px;
}
.rsm-hero-notice--ticker {
	cursor: grab;
	user-select: none;
	-webkit-user-select: none;
	touch-action: none;
}
.rsm-hero-notice--ticker .rsm-hero-notice-ico,
.rsm-hero-notice--ticker .rsm-hero-notice-ico svg {
	pointer-events: none;
}
.rsm-hero-notice--ticker.rsm-hero-notice--grabbing {
	cursor: grabbing;
}
.rsm-hero-notice--ticker .rsm-hero-notice-line a {
	cursor: pointer;
}
.rsm-hero-notice-ico {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--rsm-notice-fg, #e11d48);
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}
.rsm-hero-notice-viewport {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	position: relative;
}
.rsm-hero-notice-viewport--pending-init {
	opacity: 0;
	visibility: hidden;
}
.rsm-hero-notice-viewport--ready {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.12s ease;
}
.rsm-hero-notice-roller {
	display: flex;
	flex-direction: column;
}
.rsm-hero-notice-ico svg,
.rsm-hero-notice-ico .rsm-hero-notice-ico-svg {
	display: block;
}
.rsm-hero-notice-line {
	flex: 0 0 auto;
	margin: 0;
	font-size: clamp(0.8rem, 2vw, 0.9rem);
	line-height: 1.45;
	color: var(--rsm-notice-fg, #9f1239);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}
.rsm-hero-notice-line a {
	color: var(--rsm-notice-fg, #9f1239);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	opacity: 0.95;
}

@media (max-width: 720px) {
	/* 顶部横幅：仅主标题 + 副标题（默认模板）；时间轴与公告在手机端隐藏。色调见同文件下一则 720px 中的 .rsm-app 变量。 */
	.rsm-hero-head-inner:not(.rsm-hero-head-inner--custom) .rsm-hero-track,
	.rsm-hero-head-inner:not(.rsm-hero-head-inner--custom) .rsm-hero-notice {
		display: none !important;
	}

	.rsm-hero-head {
		margin: 0 auto 10px;
		border-radius: 14px;
		background: #f9f1e7;
		border: 1px solid rgba(128, 16, 32, 0.22);
		box-shadow: 0 6px 24px rgba(128, 16, 32, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.75);
	}

	.rsm-hero-deco {
		opacity: 0.12;
		background-image: radial-gradient(circle at 20% 18%, rgba(128, 16, 32, 0.2) 0, transparent 48%),
			radial-gradient(circle at 85% 82%, rgba(176, 125, 79, 0.22) 0, transparent 42%),
			repeating-linear-gradient(-12deg, transparent, transparent 11px, rgba(128, 16, 32, 0.035) 11px, rgba(128, 16, 32, 0.035) 12px);
	}

	.rsm-hero-head-inner {
		padding: var(--rsm-hero-inner-pt, 2px) 2px 10px;
	}

	.rsm-hero-head-inner:not(.rsm-hero-head-inner--custom) .rsm-hero-titles {
		margin-bottom: 0;
	}

	.rsm-hero-titles {
		max-width: 100%;
		margin-bottom: 4px;
	}

	.rsm-hero-title-frame {
		margin-bottom: 2px;
		padding: 0;
		border: none;
		background: none;
		box-shadow: none;
	}
	.rsm-hero-title-frame::before {
		width: min(94%, 100%);
		border-radius: 8px;
		background: linear-gradient(
			90deg,
			rgba(249, 241, 231, 0) 0%,
			rgba(255, 255, 255, 0.48) 16%,
			rgba(255, 255, 255, 0.48) 84%,
			rgba(249, 241, 231, 0) 100%
		);
		box-shadow: inset 0 0 0 1px rgba(128, 16, 32, 0.12);
		-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
		mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
	}
	/* 提高优先级，避免主题 .entry-content h2 等覆盖字号。
	   若设了 --rsm-hero-title-fs-mobile 则直接用后台值；未设时才用 vw 上限自动缩小单行。 */
	.rsm-app .rsm-hero-head h2.rsm-hero-title {
		padding: 0 10px 1px;
		letter-spacing: 0.05em;
		line-height: 1.2;
		color: var(--rsm-hero-title-color, #7f1d1d);
		text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		text-align: center;
		font-size: var(
			--rsm-hero-title-fs-mobile,
			min(
				var(--rsm-hero-title-fs, 1.05rem),
				max(0.5rem, 3.15vw)
			)
		) !important;
	}

	.rsm-hero-sub {
		font-size: clamp(0.68rem, 3vw, 0.82rem);
		line-height: 1.34;
		letter-spacing: 0.035em;
		color: var(--rsm-hero-sub-color, #78350f);
		opacity: 1;
	}
}
@media (max-width: 900px) {
	.rsm-layout {
		grid-template-columns: 1fr;
	}
}
.rsm-side {
	background: var(--rsm-card);
	border-radius: 16px;
	padding: 20px 14px;
	box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
	border: 1px solid var(--rsm-border);
}
.rsm-bell-wrap {
	text-align: center;
	margin-bottom: 16px;
}
@media (min-width: 721px) {
	.rsm-bell-wrap {
		display: flex;
		justify-content: center;
		align-items: center;
	}
	.rsm-bell-wrap-inner {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		flex-wrap: nowrap;
	}
	.rsm-bell-header-badge.rsm-bell-header-badge--on {
		position: static;
		flex-shrink: 0;
		font-size: 12px;
		font-weight: 700;
		padding: 3px 10px;
		line-height: 1.2;
		white-space: nowrap;
	}
}
.rsm-nav-ico-svg {
	display: inline-block;
	vertical-align: middle;
}
.rsm-nav-ico {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
@media (min-width: 721px) {
	.rsm-nav-btn .rsm-nav-badge--tail {
		position: static;
		margin-left: auto;
		align-self: center;
		flex-shrink: 0;
		white-space: nowrap;
		line-height: 1.2;
	}
}
.rsm-nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.rsm-nav-btn {
	border: 0;
	background: transparent;
	width: 100%;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 10px;
	cursor: pointer;
	font-size: 14px;
	color: var(--rsm-text);
	text-align: left;
	transition: background 0.12s;
}
.rsm-nav-btn:hover {
	background: #f3f4f6;
}
.rsm-nav-btn.is-active {
	background: #eff6ff;
	font-weight: 600;
	color: #1d4ed8;
}
.rsm-nav-txt {
	flex: 1;
	min-width: 0;
}
.rsm-nav-badge {
	font-size: 11px;
	font-weight: 700;
	color: #dc2626;
	background: #fee2e2;
	padding: 2px 8px;
	border-radius: 999px;
	box-shadow: none;
}
.rsm-nav-badge--chan {
	background: #fee2e2;
	color: #dc2626;
	font-weight: 700;
}
a.rsm-nav-custom {
	text-decoration: none;
	color: inherit;
}
a.rsm-nav-custom:hover {
	color: inherit;
}
.rsm-nav-ico--custom {
	width: 22px;
	height: 22px;
	min-width: 22px;
	border-radius: 50%;
	background: var(--rsm-custom-ico-bg, #6366f1);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 1;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
	overflow: hidden;
}
.rsm-nav-custom-char {
	font-size: 12px;
	line-height: 1;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	overflow: hidden;
	max-width: 100%;
	max-height: 100%;
}
.rsm-main {
	background: var(--rsm-card);
	border-radius: 16px;
	padding: 20px;
	border: 1px solid var(--rsm-border);
	min-height: 480px;
}
.rsm-toolbar {
	margin-bottom: 12px;
}
.rsm-hint {
	font-size: 13px;
	color: var(--rsm-muted);
	line-height: 1.55;
}
.rsm-hint p {
	margin: 0.35em 0;
}
.rsm-hint p:first-child {
	margin-top: 0;
}
.rsm-hint p:last-child {
	margin-bottom: 0;
}
.rsm-hint a {
	color: var(--rsm-blue);
	text-decoration: underline;
}
.rsm-hint a:hover {
	filter: brightness(0.95);
}
.rsm-list {
	min-height: 0;
	transition: opacity 0.15s ease;
}
.rsm-list.is-loading {
	min-height: 200px;
}
.rsm-list-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 180px;
	padding: 28px 16px;
	box-sizing: border-box;
	color: var(--rsm-muted);
	font-size: 14px;
}
.rsm-list-loading-txt {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}
.rsm-list-loading-txt::before {
	content: "";
	width: 1.15em;
	height: 1.15em;
	flex-shrink: 0;
	border: 2px solid #cbd5e1;
	border-top-color: #2563eb;
	border-radius: 50%;
	animation: rsm-spin 0.65s linear infinite;
}
@keyframes rsm-spin {
	to {
		transform: rotate(360deg);
	}
}
.rsm-dm-bcast-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 120px;
	padding: 24px 12px;
	color: var(--rsm-muted);
	font-size: 14px;
}
.rsm-dm-bcast-loading span {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}
.rsm-dm-bcast-loading span::before {
	content: "";
	width: 1.1em;
	height: 1.1em;
	border: 2px solid #cbd5e1;
	border-top-color: #2563eb;
	border-radius: 50%;
	animation: rsm-spin 0.65s linear infinite;
}
.rsm-item {
	display: flex;
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid var(--rsm-border);
	cursor: pointer;
	align-items: flex-start;
	transition: background 0.12s;
}
.rsm-item:hover {
	background: #fafbfc;
	margin: 0 -12px;
	padding-left: 12px;
	padding-right: 12px;
	border-radius: 12px;
}
.rsm-item:last-child {
	border-bottom: 0;
}
.rsm-item.rsm-item--accordion {
	padding-top: 10px;
	padding-bottom: 10px;
	gap: 10px;
}
.rsm-ico {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #eff6ff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 17px;
}
/* 系统通知 / 私信推送：小圆标与 ▶、标题同一行视觉对齐 */
.rsm-item--accordion > .rsm-ico {
	width: 28px;
	height: 28px;
	font-size: 13px;
}
#rsm-list .rsm-ico {
	background: var(--rsm-sys-list-ico-bg, #eff6ff);
}
.rsm-item.unread .rsm-title {
	font-weight: 700;
	color: var(--rsm-blue);
}
.rsm-item-main {
	flex: 1;
	min-width: 0;
}
.rsm-title-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 8px;
}
.rsm-item-del {
	border: 0;
	background: #fee2e2;
	color: #b91c1c;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	cursor: pointer;
	line-height: 1;
	font-size: 18px;
	flex-shrink: 0;
}
.rsm-item-del:hover {
	background: #fecaca;
}
.rsm-meta {
	font-size: 12px;
	color: var(--rsm-muted);
	margin-top: 6px;
}
.rsm-meta .rsm-meta-time::after {
	content: " \00b7 ";
	color: var(--rsm-muted);
	font-weight: 400;
}
.rsm-meta-state--read {
	color: #64748b;
	font-weight: 500;
}
.rsm-meta-state--unread {
	color: #b91c1c;
	font-weight: 700;
}
.rsm-unread-nav-hint {
	font-size: 12px;
	color: #0d9488;
	margin: 8px 0 0;
	padding: 8px 10px;
	background: #ecfdf5;
	border-radius: 8px;
	border: 1px solid #99f6e4;
	line-height: 1.45;
	text-align: left;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
}
.rsm-title {
	font-size: 15px;
}
.rsm-body {
	font-size: 13px;
	color: #475569;
	margin-top: 8px;
	line-height: 1.5;
}
.rsm-item--unread-summary {
	cursor: pointer;
}
.rsm-item--unread-summary:hover {
	background: #f8fafc;
	margin: 0;
	padding-left: 0;
	padding-right: 0;
	border-radius: 10px;
}
.rsm-item--accordion .rsm-item-acc-top {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
}
.rsm-item--accordion .rsm-item-hd {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	font: inherit;
	text-align: left;
	cursor: pointer;
	color: inherit;
	border-radius: 8px;
}
.rsm-item--accordion .rsm-item-hd:focus-visible {
	outline: 2px solid #3b82f6;
	outline-offset: 2px;
}
.rsm-item--accordion .rsm-item-hd-text {
	flex: 1;
	min-width: 0;
}
.rsm-item--accordion .rsm-item-title-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 10px;
	width: 100%;
}
.rsm-item--accordion .rsm-item-title-row .rsm-title {
	flex: 0 1 auto;
	max-width: 100%;
}
.rsm-item--accordion .rsm-item-title-row .rsm-meta {
	margin-top: 0;
	flex: 0 1 auto;
	min-width: 0;
	max-width: 100%;
}
.rsm-item--accordion .rsm-acc-chevron {
	flex-shrink: 0;
	width: 1.25em;
	line-height: 1;
	color: var(--rsm-muted);
	font-size: 11px;
	margin-top: 0;
}
.rsm-item--accordion .rsm-item-body-wrap {
	width: 100%;
	box-sizing: border-box;
	padding-top: 6px;
}
.rsm-item--accordion .rsm-body {
	margin-top: 0;
	padding: 8px 10px;
	font-size: 13px;
	line-height: 1.55;
	color: #0f172a;
	font-weight: 600;
	letter-spacing: 0.01em;
	background: linear-gradient(145deg, #eef6ff 0%, #f0fdf4 35%, #f8fafc 100%);
	border: 1px solid #93c5fd;
	border-left: 4px solid #2563eb;
	border-radius: 10px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 2px 8px rgba(37, 99, 235, 0.1);
}
.rsm-item--accordion .rsm-body :where(p, li, td, th, span, div) {
	font-size: inherit;
}
.rsm-item--accordion .rsm-body a {
	color: #1d4ed8;
	font-weight: 600;
}
.rsm-item--accordion .rsm-body img {
	border-radius: 6px;
}
.rsm-item.rsm-item--accordion:hover {
	margin: 0;
	padding-left: 0;
	padding-right: 0;
	border-radius: 0;
	background: transparent;
}
.rsm-list-empty {
	margin-top: 24px;
	padding: 0;
	text-align: center;
	background: #fff;
	border: 1px solid rgba(37, 99, 235, 0.18);
	border-radius: 18px;
	box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
	position: relative;
	overflow: hidden;
}
.rsm-list-empty-inner {
	padding: 36px 24px 32px;
	position: relative;
	z-index: 1;
}
.rsm-list-empty::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #2563eb, #7c3aed, #db2777);
}
.rsm-list-empty-txt {
	margin: 6px auto 22px;
	max-width: 22em;
	font-size: 15px;
	color: #334155;
	line-height: 1.65;
}
.rsm-list-empty-foot {
	margin: 18px auto 0;
	max-width: 22em;
	font-size: 13px;
	color: #64748b;
	line-height: 1.5;
}
.rsm-empty-goto-sys {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 14px 28px 14px 24px;
	font-size: 16px;
	font-weight: 700;
	font-family: inherit;
	letter-spacing: 0.02em;
	color: #fff !important;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	background: linear-gradient(135deg, #2563eb 0%, #5b21b6 48%, #a21caf 100%);
	box-shadow: 0 6px 22px rgba(91, 33, 182, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
	transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.rsm-empty-goto-sys::after {
	content: "→";
	font-weight: 500;
	font-size: 1.1em;
	line-height: 1;
	opacity: 0.95;
}
.rsm-empty-goto-sys:hover {
	filter: brightness(1.06);
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(91, 33, 182, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.rsm-empty-goto-sys:active {
	transform: translateY(0);
	filter: brightness(0.97);
}
.rsm-more {
	margin-top: 16px;
	width: 100%;
	padding: 12px;
	border: 1px solid var(--rsm-border);
	background: #fff;
	border-radius: 10px;
	cursor: pointer;
	font-size: 14px;
}
.rsm-more:hover {
	border-color: #cbd5e1;
}

/* 联系管理员 */
.rsm-contact-hero {
	text-align: center;
	padding: 32px 24px;
	background: linear-gradient(180deg, #f8fafc, #fff);
	border-radius: 20px;
	border: 1px solid var(--rsm-border);
	box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}
.rsm-contact-icon {
	margin-bottom: 16px;
}
.rsm-contact-icon .rsm-nav-ico-svg {
	width: 56px !important;
	height: 56px !important;
	margin: 0 auto;
}
.rsm-contact-title {
	margin: 0 0 12px;
	font-size: 22px;
}
.rsm-contact-desc {
	margin: 0 0 24px;
	color: var(--rsm-muted);
	font-size: 15px;
	line-height: 1.65;
}
.rsm-btn-primary-lg {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	font-size: 16px;
	font-weight: 600;
	color: #fff !important;
	background: linear-gradient(135deg, #2563eb, #1d4ed8);
	border: 0;
	border-radius: 12px;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.rsm-btn-primary-lg:hover {
	filter: brightness(1.05);
}

.rsm-contact-stack {
	display: flex;
	flex-direction: column;
	gap: 14px;
	align-items: stretch;
}
.rsm-contact-hero--compact {
	padding: 14px 16px;
	border-radius: 14px;
}
.rsm-contact-hero--compact .rsm-contact-icon {
	margin-bottom: 8px;
}
.rsm-contact-hero--compact .rsm-contact-icon .rsm-nav-ico-svg {
	width: 40px !important;
	height: 40px !important;
}
.rsm-contact-hero--compact .rsm-contact-title {
	margin: 0 0 6px;
	font-size: 17px;
}
.rsm-contact-hero--compact .rsm-contact-desc {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.55;
}
.rsm-btn-contact-cta.rsm-btn-primary-lg,
.rsm-contact-hero--compact .rsm-btn-primary-lg {
	padding: 9px 18px;
	font-size: 14px;
	border-radius: 10px;
	box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28);
}
.rsm-dm-feed-wrap.rsm-dm-feed-wrap--under-contact {
	margin-top: 0;
	background: var(--rsm-dm-feed-panel-bg, var(--rsm-card));
}
.rsm-dm-feed-wrap.rsm-dm-feed-wrap--under-contact .rsm-dm-feed-head {
	background: var(--rsm-dm-feed-head-bg, linear-gradient(180deg, #f8fafc, #f1f5f9));
}
.rsm-dm-feed-wrap.rsm-dm-feed-wrap--under-contact .rsm-dm-feed-title {
	color: var(--rsm-dm-feed-title-color, #334155);
}
.rsm-dm-feed-wrap.rsm-dm-feed-wrap--under-contact .rsm-dm-thread-feed,
.rsm-dm-feed-wrap.rsm-dm-feed-wrap--under-contact .rsm-dm-feed-empty {
	color: var(--rsm-dm-feed-text-color, inherit);
}
.rsm-dm-feed-wrap.rsm-dm-feed-wrap--under-contact .rsm-thread-card-summary,
.rsm-dm-feed-wrap.rsm-dm-feed-wrap--under-contact .rsm-thread-card-summary-text,
.rsm-dm-feed-wrap.rsm-dm-feed-wrap--under-contact .rsm-thread-card-summary-title,
.rsm-dm-feed-wrap.rsm-dm-feed-wrap--under-contact .rsm-thread-card-user {
	color: var(--rsm-dm-feed-text-color, inherit);
}
.rsm-nav-btn .rsm-nav-badge--contact {
	font-size: 10px;
	font-weight: 700;
	padding: 2px 5px;
	border-radius: 6px;
	line-height: 1.25;
	max-width: 4.8rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.rsm-nav-badge--contact.is-newreply {
	color: #dc2626;
	background: #fee2e2;
}
.rsm-nav-badge--contact.is-awaiting {
	color: #475569;
	background: #e2e8f0;
}

/* 弹窗 */
.rsm-modal {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.rsm-modal-inner {
	background: #fff;
	border-radius: 16px;
	padding: 24px;
	max-width: 480px;
	width: 100%;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
	color: #1e293b;
}
.rsm-modal-inner h3 {
	margin-top: 0;
	color: #0f172a;
}
.rsm-modal-inner label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #334155;
}
.rsm-modal--pretty .rsm-modal-inner {
	max-width: 520px;
	padding: 0 0 28px;
	overflow: hidden;
	position: relative;
}
.rsm-modal-accent {
	height: 4px;
	width: 100%;
	background: linear-gradient(90deg, #2563eb, #06b6d4, #db2777);
}
.rsm-modal--pretty .rsm-modal-inner h3 {
	padding: 24px 28px 8px;
	margin: 0;
	font-size: 20px;
	color: #0f172a;
}
.rsm-modal--pretty .rsm-field {
	padding: 0 28px 16px;
}
.rsm-modal--pretty .rsm-field label {
	display: block;
	margin-bottom: 8px;
	font-weight: 700;
	font-size: 14px;
	color: #334155;
}
.rsm-input,
.rsm-textarea {
	width: 100%;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 12px 14px;
	font-size: 15px;
	font-family: inherit;
}
.rsm-textarea {
	resize: vertical;
	min-height: 120px;
}
.modal-actions,
.rsm-modal-actions {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	padding: 8px 28px 0;
}
.rsm-modal-actions .rsm-btn-secondary,
#rsm-sup-modal .rsm-btn-secondary {
	color: #1e293b;
	border-color: #94a3b8;
	background: #fff;
	font-weight: 600;
}
.rsm-modal-actions .rsm-btn-secondary:hover,
#rsm-sup-modal .rsm-btn-secondary:hover {
	background: #f1f5f9;
	color: #0f172a;
}
.rsm-btn-secondary {
	padding: 10px 20px;
	border-radius: 10px;
	border: 1px solid var(--rsm-border);
	background: #fff;
	font-size: 15px;
	cursor: pointer;
	color: var(--rsm-text);
}
.rsm-btn-secondary:hover {
	background: #f8fafc;
}
.rsm-btn-send {
	padding: 10px 24px;
	border-radius: 10px;
	border: 0;
	background: linear-gradient(135deg, #2563eb, #1d4ed8);
	color: #fff !important;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}
.rsm-btn-danger-text {
	background: none !important;
	border: 0 !important;
	color: #dc2626 !important;
	font-size: 14px;
	cursor: pointer;
	font-weight: 500;
}
.rsm-btn-danger-outline {
	padding: 10px 18px;
	border-radius: 10px;
	border: 1px solid #fecaca;
	background: #fff;
	color: #b91c1c;
	font-size: 14px;
	cursor: pointer;
}
.rsm-btn-danger-outline:hover {
	background: #fef2f2;
}
.rsm-modal--pretty .rsm-btn-send {
	background: linear-gradient(180deg, #3b7cff 0%, #2b5bed 100%) !important;
}

/* 新建留言：提交结果提示（紧贴操作按钮上方） */
.rsm-sup-feedback {
	margin: 0 28px 14px;
	padding: 13px 16px 13px 48px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.55;
	position: relative;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
	animation: rsm-fade-slide 0.26s ease-out;
}
@keyframes rsm-fade-slide {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
.rsm-sup-feedback--success {
	background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 55%, #ecfdf5 100%);
	border: 1px solid #34d399;
	color: #047857;
}
.rsm-sup-feedback--success::before {
	content: "✓";
	position: absolute;
	left: 16px;
	top: 50%;
	margin-top: -11px;
	width: 22px;
	height: 22px;
	line-height: 22px;
	text-align: center;
	border-radius: 50%;
	background: #10b981;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	box-shadow: 0 2px 6px rgba(16, 185, 129, 0.45);
}
.rsm-sup-feedback--error {
	background: linear-gradient(145deg, #fef2f2 0%, #ffe4e6 50%, #fef2f2 100%);
	border: 1px solid #f87171;
	color: #9f1239;
}
.rsm-sup-feedback--error::before {
	content: "!";
	position: absolute;
	left: 16px;
	top: 50%;
	margin-top: -11px;
	width: 22px;
	height: 22px;
	line-height: 22px;
	text-align: center;
	border-radius: 50%;
	background: #ef4444;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	box-shadow: 0 2px 6px rgba(239, 68, 68, 0.45);
}

/* 私信消息 · 管理员通知列表（与系统通知同款 .rsm-item--accordion） */
.rsm-adm-dm-wrap #rsm-dm-bcast-list {
	max-height: min(70vh, 520px);
	overflow-x: hidden;
	overflow-y: auto;
	min-height: 48px;
}
.rsm-adm-dm-wrap #rsm-dm-bcast-list .rsm-ico {
	background: var(--rsm-adm-dm-ico-bg, #eff6ff);
}
.rsm-dm-feed-wrap {
	border: 1px solid var(--rsm-border);
	border-radius: 16px;
	background: var(--rsm-card);
	overflow: hidden;
}
.rsm-dm-feed-head {
	padding: 8px 12px;
	border-bottom: 1px solid var(--rsm-border);
	background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}
.rsm-dm-feed-title {
	font-size: 13px;
	font-weight: 700;
	color: #334155;
}
.rsm-dm-thread-feed {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 10px 12px;
	min-height: 80px;
}
.rsm-dm-feed-empty {
	margin: 0;
	padding: 24px 12px;
	text-align: center;
	color: var(--rsm-muted);
	font-size: 14px;
}
.rsm-thread-card {
	border: 1px solid var(--rsm-border);
	border-radius: 10px;
	background: #fff;
	padding: 0;
	overflow: hidden;
	box-shadow: 0 1px 6px rgba(15, 23, 42, 0.05);
}
.rsm-thread-card.is-unread {
	border-left: 3px solid #b91c1c;
	box-shadow: 0 1px 8px rgba(185, 28, 28, 0.07);
}
.rsm-thread-card.is-detail-collapsed .rsm-thread-card-detail {
	display: none;
}
.rsm-thread-card-summary {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	margin: 0;
	padding: 7px 10px;
	border: 0;
	background: #f8fafc;
	font: inherit;
	text-align: left;
	cursor: pointer;
	color: inherit;
	box-sizing: border-box;
	border-radius: 10px 10px 0 0;
}
.rsm-thread-card-summary:hover {
	background: #f1f5f9;
}
.rsm-thread-card:not(.is-detail-collapsed) .rsm-thread-card-summary {
	border-bottom: 1px solid #eef2f6;
}
.rsm-thread-card-summary:focus-visible {
	outline: 2px solid #3b82f6;
	outline-offset: -2px;
}
.rsm-thread-card-summary-chev {
	flex-shrink: 0;
	font-size: 9px;
	color: #64748b;
	width: 1em;
	line-height: 1;
}
.rsm-thread-card-summary-text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	align-items: flex-start;
}
.rsm-thread-card-summary-title-row {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	flex-wrap: wrap;
}
.rsm-thread-card-summary-title-row .rsm-thread-card-summary-title {
	flex: 1;
	min-width: 0;
	width: auto;
	font-size: 13px;
	font-weight: 700;
	color: #1d4ed8;
	line-height: 1.25;
	word-break: break-word;
}
.rsm-thread-new-badge {
	flex-shrink: 0;
	font-size: 12px;
	font-weight: 800;
	color: #fff;
	background: linear-gradient(135deg, #f87171, #dc2626);
	padding: 3px 9px;
	border-radius: 6px;
	line-height: 1.2;
	box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
	letter-spacing: 0.02em;
}
.rsm-thread-card-summary-time {
	font-size: 11px;
	color: #94a3b8;
	line-height: 1.2;
	width: 100%;
}
.rsm-thread-card:not(.is-detail-collapsed) .rsm-thread-card-summary-text {
	display: none;
}
.rsm-thread-card.is-detail-collapsed .rsm-thread-card-summary {
	border-radius: 10px;
}
.rsm-thread-card-rowbar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	border-bottom: 1px solid #f1f5f9;
	background: #fff;
	line-height: 1.2;
}
.rsm-thread-card-rowbar .rsm-thread-card-user-name {
	font-size: 12px;
	font-weight: 700;
	color: #111827;
	flex: 1;
	min-width: 0;
}
.rsm-thread-card-rowbar .rsm-thread-card-del {
	flex-shrink: 0;
	margin-left: auto;
	font-size: 12px !important;
	padding: 0 2px;
}
.rsm-thread-card-user {
	padding: 6px 10px 8px;
	background: #fafbfc;
}
.rsm-thread-user-msgs {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.rsm-thread-card-muted {
	margin: 0;
	color: var(--rsm-muted);
	font-size: 12px;
	line-height: 1.45;
}
.rsm-chat-user-bubble {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 6px;
	border-radius: 8px;
	padding: 6px 8px 7px;
	overflow: hidden;
	box-sizing: border-box;
}
.rsm-user-msg-index {
	flex-shrink: 0;
	min-width: 1.35rem;
	height: 1.35rem;
	line-height: 1.35rem;
	text-align: center;
	font-size: 11px;
	font-weight: 800;
	border-radius: 5px;
	margin-top: 1px;
}
.rsm-chat-user-bubble--tier1 {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
}
.rsm-chat-user-bubble--tier1 .rsm-user-msg-index {
	background: #2563eb;
	color: #fff;
	box-shadow: 0 1px 3px rgba(37, 99, 235, 0.35);
}
.rsm-chat-user-bubble--tier2 {
	background: #ecfdf5;
	border: 1px solid #6ee7b7;
}
.rsm-chat-user-bubble--tier2 .rsm-user-msg-index {
	background: #059669;
	color: #fff;
	box-shadow: 0 1px 3px rgba(5, 150, 105, 0.35);
}
.rsm-chat-user-bubble--tiern {
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
}
.rsm-chat-user-bubble--tiern .rsm-user-msg-index {
	background: #64748b;
	color: #fff;
}
.rsm-chat-user-bubble-main {
	flex: 1;
	min-width: 0;
	overflow: hidden;
}
.rsm-chat-user-bubble .rsm-quote-decor {
	float: left;
	font-size: 20px;
	line-height: 0.85;
	color: rgba(100, 116, 139, 0.45);
	margin-right: 2px;
	font-family: Georgia, "Times New Roman", serif;
}
.rsm-chat-user-bubble .rsm-bub-inner {
	font-size: 12px;
	line-height: 1.45;
	color: #374151;
	word-break: break-word;
	overflow-wrap: anywhere;
}
.rsm-chat-user-bubble .rsm-bub-inner img {
	max-width: 100%;
	height: auto;
}
.rsm-thread-card-admin-block {
	padding: 0 10px 8px;
	background: #fafbfc;
}
.rsm-thread-admin-fold {
	width: 100%;
	justify-content: center;
	font-weight: 600;
	font-size: 12px;
	line-height: 1.3;
	padding: 6px 10px !important;
	min-height: 0;
	border-color: #93c5fd !important;
	color: #1d4ed8 !important;
	background: linear-gradient(180deg, #eff6ff, #dbeafe) !important;
	border-radius: 8px !important;
}
.rsm-thread-admin-fold:hover:not(:disabled) {
	filter: brightness(1.03);
}
.rsm-thread-admin-fold:disabled {
	opacity: 0.65;
	cursor: default;
}
.rsm-thread-admin-fold .rsm-thread-admin-fold-n {
	color: #dc2626;
	font-weight: 900;
}
.rsm-thread-admin-body {
	margin-top: 6px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}
.rsm-thread-admin-item + .rsm-thread-admin-item {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px dashed #e2e8f0;
}
.rsm-chat-admin-top {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 8px;
	margin-bottom: 4px;
	line-height: 1.2;
}
.rsm-chat-admin-top .rsm-badge-admin {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 4px;
	background: #dbeafe;
	color: #1d4ed8;
	border: 1px solid #bfdbfe;
	flex-shrink: 0;
	line-height: 1.3;
}
.rsm-chat-admin-top .rsm-chat-time {
	font-size: 11px;
	color: #9ca3af;
	margin-left: auto;
	flex-shrink: 0;
}
.rsm-chat-admin-inner {
	border: 1px dashed #f87171;
	border-radius: 6px;
	padding: 6px 9px;
	background: #fff5f5;
	box-sizing: border-box;
}
.rsm-chat-admin-inner .rsm-bub-inner {
	font-size: 12px;
	line-height: 1.45;
	color: #1f2937;
	word-break: break-word;
	overflow-wrap: anywhere;
}
.rsm-chat-admin-inner .rsm-bub-inner img {
	max-width: 100%;
	height: auto;
}
.rsm-thread-card-latest-actions {
	padding: 8px 10px;
	border-top: 1px solid #eef2f6;
	background: #fff;
}
.rsm-thread-card .rsm-btn-primary-lg.rsm-thread-continue {
	width: 100%;
	margin: 0;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	border-radius: 8px;
}
.rsm-thread-card-latest-actions .rsm-thread-continue.is-active {
	box-shadow: 0 0 0 2px rgba(43, 91, 237, 0.35);
}
.rsm-thread-card-compose {
	padding: 8px 10px 10px;
	border-top: 1px solid #eef2f6;
	background: #f9fafb;
}
.rsm-thread-card-compose .rsm-compose-textarea {
	display: block;
	width: 100%;
	min-height: 52px;
	max-height: 200px;
	padding: 7px 10px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.45;
	font-family: inherit;
	resize: none;
	overflow-y: auto;
	background: #fff;
	box-sizing: border-box;
}
.rsm-thread-card-compose .rsm-compose-textarea:focus {
	outline: none;
	border-color: #2b5bed;
	box-shadow: 0 0 0 2px rgba(43, 91, 237, 0.15);
}
.rsm-thread-card-compose .rsm-dm-compose-actions {
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 6px;
}
.rsm-thread-card-compose .rsm-btn-secondary {
	padding: 5px 12px !important;
	font-size: 12px !important;
	border-radius: 6px !important;
	color: #1e293b !important;
	border-color: #64748b !important;
	background: #f1f5f9 !important;
	font-weight: 600;
}
.rsm-thread-card-compose .rsm-btn-secondary:hover {
	background: #e2e8f0 !important;
	color: #0f172a !important;
}
.rsm-thread-card-compose .rsm-btn-send {
	padding: 5px 14px !important;
	font-size: 12px !important;
	border-radius: 6px !important;
}
.rsm-dm-pager {
	padding: 0;
	border-top: none;
	background: transparent;
}
.rsm-classic-pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 14px;
	padding: 12px 14px;
	font-size: 14px;
	line-height: 1.35;
	background: #f1f5f9;
	border-top: 1px solid var(--rsm-border);
	color: #0f172a;
	box-sizing: border-box;
}
.rsm-classic-pager--notify {
	background: #f8fafc;
}
.rsm-classic-pager--bcast {
	background: #f8fafc;
	border-radius: 0 0 11px 11px;
	margin-top: 0;
}
.rsm-classic-pager--dm-thread {
	background: #f8fafc;
	border-radius: 0 0 15px 15px;
}
.rsm-classic-pager__ratio {
	font-weight: 600;
	color: #334155;
	margin-right: 4px;
}
.rsm-classic-pager__group {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.rsm-classic-pager__sym,
.rsm-classic-pager__text {
	margin: 0;
	padding: 4px 8px;
	border: 1px solid transparent;
	border-radius: 6px;
	background: transparent;
	font: inherit;
	font-size: 14px;
	color: inherit;
	cursor: pointer;
	line-height: 1.25;
}
.rsm-classic-pager__sym:hover:not(:disabled),
.rsm-classic-pager__text:hover:not(:disabled) {
	background: rgba(15, 23, 42, 0.06);
}
.rsm-classic-pager__sym:disabled,
.rsm-classic-pager__text:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}
.rsm-classic-pager__nums {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.rsm-classic-pager__num {
	min-width: 2em;
	padding: 5px 10px;
	margin: 0;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
	cursor: pointer;
	line-height: 1.2;
	box-sizing: border-box;
}
.rsm-classic-pager__num:hover:not(.is-active) {
	border-color: #94a3b8;
	background: #f8fafc;
}
.rsm-classic-pager__num.is-active {
	background: #0f172a;
	border-color: #0f172a;
	color: #fff;
	cursor: default;
}
.rsm-list-pager {
	margin-top: 0;
}

.rsm-dm-side-row {
	padding: 12px 14px;
	border-bottom: 1px solid var(--rsm-border);
}
.rsm-support-brand {
	margin: 0 0 8px;
	font-size: 13px;
}

.rsm-off {
	color: var(--rsm-muted);
	text-align: center;
	padding: 24px;
}

/* 未登录访客提示（短代码） */
.rsm-guest-wrap {
	max-width: 420px;
	margin: 24px auto;
	padding: 0 16px;
	box-sizing: border-box;
}
.rsm-guest-card {
	position: relative;
	text-align: center;
	background: linear-gradient(165deg, #ffffff 0%, #f1f5f9 100%);
	border: 1px solid #e2e8f0;
	border-radius: 18px;
	box-shadow:
		0 12px 40px rgba(15, 23, 42, 0.1),
		0 2px 8px rgba(37, 99, 235, 0.08);
	padding: 28px 22px 26px;
	overflow: hidden;
}
.rsm-guest-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #2563eb, #0ea5e9, #22d3ee);
}
.rsm-guest-card__icon {
	display: flex;
	justify-content: center;
	margin-bottom: 16px;
}
.rsm-guest-card__svg {
	display: block;
	filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.25));
}
.rsm-guest-card__lead {
	margin: 0 0 10px;
	font-size: 16px;
	line-height: 1.65;
	font-weight: 600;
	color: #0f172a;
	letter-spacing: 0.02em;
}
.rsm-guest-card__thanks {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	font-weight: 500;
	color: #475569;
}
.rsm-guest-card__actions {
	margin-top: 22px;
	width: 100%;
}
.rsm-guest-card__login.rsm-btn-primary-lg {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	text-decoration: none;
	line-height: 1.35;
}

/* 未登录访客：旋转彩框主入口（暗色，与彩环内文案反向旋转持平） */
.rsm-guest-wrap--spin {
	max-width: 520px;
	margin: 24px auto;
	padding: 28px 20px 32px;
	background: #0f1419;
	border-radius: 16px;
	box-sizing: border-box;
}
.rsm-guest-card--spin {
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
	overflow: visible;
}
.rsm-guest-card--spin::before {
	display: none;
}
.rsm-guest-spin-ring {
	display: inline-block;
	padding: 3px;
	border-radius: 14px;
	background: conic-gradient(
		#3b82f6,
		#8b5cf6,
		#ec4899,
		#f97316,
		#eab308,
		#22c55e,
		#3b82f6
	);
	animation: rsm-guest-ring-spin 2.8s linear infinite;
	text-decoration: none;
	color: inherit;
	outline-offset: 4px;
}
.rsm-guest-spin-ring:focus-visible {
	outline: 2px solid #93c5fd;
}
.rsm-guest-spin-inner {
	display: block;
	padding: 14px 28px;
	border-radius: 11px;
	background: #1a2332;
	color: #e8eef5;
	font-size: 16px;
	letter-spacing: 0.02em;
	user-select: none;
	animation: rsm-guest-inner-counter 2.8s linear infinite;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
	transition: background 0.2s ease;
	font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.rsm-guest-spin-ring:hover .rsm-guest-spin-inner {
	background: #243044;
}
@keyframes rsm-guest-ring-spin {
	to {
		transform: rotate(360deg);
	}
}
@keyframes rsm-guest-inner-counter {
	to {
		transform: rotate(-360deg);
	}
}
@media (prefers-reduced-motion: reduce) {
	.rsm-guest-spin-ring,
	.rsm-guest-spin-inner {
		animation: none;
	}
}
.rsm-guest-card__thanks--spin {
	margin-top: 18px;
	font-size: 14px;
	line-height: 1.5;
	font-weight: 500;
	color: #94a3b8;
}
.rsm-guest-card__actions--spin {
	margin-top: 18px;
	width: 100%;
	max-width: 280px;
	margin-left: auto;
	margin-right: auto;
}

/* —— 手机端：横向圆形图标导航 + 米黄/酒红内容区（与顶栏示意一致） —— */
@media (max-width: 720px) {
	.rsm-app {
		--rsm-bg: #f9f1e7;
		--rsm-card: #fff9f2;
		--rsm-border: rgba(128, 16, 32, 0.16);
		--rsm-accent: #801020;
		--rsm-accent-soft: #fdf2f5;
		--rsm-text: #3d2424;
		--rsm-muted: #7a5e58;
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
		overflow-x: hidden;
		padding: 2px 12px 16px;
		border-radius: 0;
	}
	.rsm-layout {
		gap: 12px;
		max-width: 100%;
		width: 100%;
		min-width: 0;
	}
	.rsm-side,
	.rsm-main {
		min-width: 0;
		max-width: 100%;
		width: 100%;
	}
	.rsm-bell-wrap {
		display: none;
	}
	.rsm-side {
		background: transparent;
		border: 0;
		box-shadow: none;
		padding: 0;
		border-radius: 0;
		overflow-x: hidden;
	}
	.rsm-nav-btn[data-rsm-mobile="0"],
	a.rsm-nav-custom[data-rsm-mobile="0"] {
		display: none !important;
	}
	/* 手机端自定义链接：与浅色底上的深字一致 */
	a.rsm-nav-btn.rsm-nav-custom {
		color: var(--rsm-text);
		-webkit-tap-highlight-color: transparent;
	}
	a.rsm-nav-btn.rsm-nav-custom .rsm-nav-txt {
		color: inherit;
	}
	a.rsm-nav-btn.rsm-nav-custom:hover,
	a.rsm-nav-btn.rsm-nav-custom:focus-visible {
		color: #801020;
	}
	.rsm-nav {
		flex-direction: row;
		flex-wrap: nowrap;
		justify-content: space-evenly;
		align-items: stretch;
		gap: 8px;
		overflow-x: visible;
		overflow-y: visible;
		-webkit-overflow-scrolling: touch;
		padding: 10px 4px 16px;
		margin: 0;
		max-width: 100%;
		mask-image: none;
	}
	.rsm-nav[data-rsm-mnav-count="5"] {
		gap: 4px;
		padding-left: 2px;
		padding-right: 2px;
		justify-content: space-evenly;
	}
	.rsm-nav[data-rsm-mnav-count="5"] .rsm-nav-btn .rsm-nav-ico,
	.rsm-nav[data-rsm-mnav-count="5"] .rsm-nav-btn .rsm-nav-ico-svg {
		width: 3.05rem;
		height: 3.05rem;
		min-width: 3.05rem;
	}
	.rsm-nav[data-rsm-mnav-count="5"] .rsm-nav-btn .rsm-nav-ico--custom {
		width: 3.05rem;
		height: 3.05rem;
		min-width: 3.05rem;
	}
	.rsm-nav[data-rsm-mnav-count="5"] .rsm-nav-btn .rsm-nav-custom-char {
		font-size: 1.12rem;
	}
	.rsm-nav[data-rsm-mnav-count="5"] .rsm-nav-btn .rsm-nav-txt {
		font-size: 9px;
		line-height: 1.22;
		-webkit-line-clamp: 3;
	}
	.rsm-nav::-webkit-scrollbar {
		height: 3px;
	}
	.rsm-nav::-webkit-scrollbar-thumb {
		background: rgba(128, 16, 32, 0.32);
		border-radius: 3px;
	}
	.rsm-nav-btn {
		position: relative;
		flex: 1 1 0;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		width: 0;
		min-width: 0;
		max-width: none;
		padding: 8px 2px 8px;
		gap: 8px;
		text-align: center;
		border-radius: 12px;
		background: transparent;
		color: var(--rsm-text);
	}
	.rsm-nav-btn:hover {
		background: rgba(128, 16, 32, 0.07);
	}
	.rsm-nav-btn.is-active {
		background: transparent;
		color: #801020;
		font-weight: 600;
	}
	.rsm-nav-btn.is-active .rsm-nav-txt {
		color: #801020;
		font-weight: 700;
	}
	.rsm-nav-btn .rsm-nav-badge--tail {
		position: absolute;
		left: calc(50% + 1.925rem - 4px);
		top: 4px;
		transform: translateX(-100%);
		z-index: 2;
		margin: 0;
		line-height: 1.15;
		max-width: none;
		font-size: 11px;
		font-weight: 800;
		padding: 3px 7px;
		min-width: 1.35rem;
		text-align: center;
		color: #dc2626;
		background: #fee2e2;
		box-shadow: 0 1px 6px rgba(220, 38, 38, 0.35);
		white-space: nowrap;
	}
	.rsm-nav-btn .rsm-nav-ico:not(.rsm-nav-ico--custom) {
		width: 3.85rem;
		height: 3.85rem;
		border-radius: 50%;
		align-items: center;
		justify-content: center;
		background: transparent;
		box-shadow: none;
	}
	.rsm-nav-btn .rsm-nav-ico-svg {
		width: 3.85rem;
		height: 3.85rem;
	}
	.rsm-nav-btn .rsm-nav-ico-svg circle:first-of-type {
		transition: filter 0.15s ease;
	}
	.rsm-nav-btn[data-tab="public-unread"] .rsm-nav-ico-svg circle:first-of-type {
		fill: #22d3ee;
	}
	.rsm-nav-btn[data-tab="system-notify"] .rsm-nav-ico-svg circle:first-of-type {
		fill: #3b82f6;
	}
	.rsm-nav-btn[data-tab="contact-admin"] .rsm-nav-ico-svg circle:first-of-type {
		fill: #38bdf8;
	}
	.rsm-nav-btn[data-tab="admin-dm"] .rsm-nav-ico-svg circle:first-of-type {
		fill: #34d399;
	}
	.rsm-nav-btn.is-active[data-tab="public-unread"] .rsm-nav-ico-svg circle:first-of-type {
		fill: #06b6d4;
		filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.5));
	}
	.rsm-nav-btn.is-active[data-tab="system-notify"] .rsm-nav-ico-svg circle:first-of-type {
		filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.45));
	}
	.rsm-nav-btn.is-active[data-tab="contact-admin"] .rsm-nav-ico-svg circle:first-of-type {
		filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.45));
	}
	.rsm-nav-btn.is-active[data-tab="admin-dm"] .rsm-nav-ico-svg circle:first-of-type {
		filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.5));
	}
	.rsm-nav-btn .rsm-nav-ico--custom {
		width: 3.85rem;
		height: 3.85rem;
		min-width: 3.85rem;
		border-radius: 50%;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		background: var(--rsm-custom-ico-bg, #6366f1);
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
	}
	.rsm-nav-btn .rsm-nav-custom-char {
		font-size: 1.45rem;
	}
	.rsm-nav-txt {
		flex: none;
		font-size: 10px;
		line-height: 1.28;
		max-width: 100%;
		width: 100%;
		word-break: break-word;
		overflow-wrap: anywhere;
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
		text-align: center;
		color: inherit;
		hyphens: auto;
	}
	.rsm-main {
		background: var(--rsm-card);
		border-radius: 14px;
		padding: 12px 12px 16px;
		min-height: 280px;
		border: 1px solid var(--rsm-border);
		box-shadow: 0 6px 20px rgba(128, 16, 32, 0.09);
		overflow-x: hidden;
	}
	.rsm-panel {
		max-width: 100%;
		min-width: 0;
	}
	.rsm-toolbar .rsm-hint,
	.rsm-hint {
		color: var(--rsm-muted);
		font-size: 12px;
		line-height: 1.45;
		word-break: break-word;
	}
	.rsm-list,
	.rsm-list-empty {
		max-width: 100%;
		min-width: 0;
	}
	.rsm-list-loading {
		color: var(--rsm-muted);
	}
	.rsm-list-loading-txt::before {
		border-color: rgba(128, 16, 32, 0.22);
		border-top-color: #801020;
	}
	.rsm-dm-bcast-loading {
		color: var(--rsm-muted);
	}
	.rsm-dm-bcast-loading span::before {
		border-color: rgba(128, 16, 32, 0.22);
		border-top-color: #801020;
	}
	.rsm-item {
		border-bottom-color: var(--rsm-border);
		max-width: 100%;
	}
	/* 未读 Tab：提示条左缘与左侧图标（图2）对齐，单行可横滑 */
	.rsm-item--unread-summary .rsm-item-main {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		text-align: left;
	}
	.rsm-item--unread-summary .rsm-title-row {
		justify-content: flex-start;
		width: 100%;
	}
	.rsm-item--unread-summary .rsm-unread-nav-hint {
		--rsm-unread-hint-offset: calc(36px + 14px);
		width: calc(100% + var(--rsm-unread-hint-offset));
		max-width: calc(100% + var(--rsm-unread-hint-offset));
		box-sizing: border-box;
		margin: 6px 0 0 calc(-1 * var(--rsm-unread-hint-offset));
		padding: 6px 8px;
		text-align: left;
		align-self: stretch;
		white-space: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		font-size: 11px;
		line-height: 1.35;
		background: rgba(128, 16, 32, 0.08);
		border-color: rgba(128, 16, 32, 0.22);
		color: var(--rsm-text);
	}
	.rsm-item:hover {
		background: rgba(128, 16, 32, 0.06);
	}
	.rsm-item.rsm-item--accordion:hover {
		background: transparent;
	}
	.rsm-item--accordion:hover {
		margin: 0;
		padding-left: 0;
		padding-right: 0;
	}
	/* 系统通知手风琴：小图标与标题行对齐；元数据单行不换行 */
	.rsm-item--accordion {
		align-items: flex-start;
		gap: 0;
		padding-top: 8px;
		padding-bottom: 8px;
	}
	.rsm-item--accordion .rsm-ico {
		display: none;
	}
	.rsm-item--accordion .rsm-item-hd {
		align-items: flex-start;
	}
	.rsm-item--accordion .rsm-acc-chevron {
		display: none;
	}
	.rsm-item--accordion .rsm-item-title-row {
		flex-direction: column;
		align-items: flex-start;
		flex-wrap: nowrap;
		gap: 4px;
		width: 100%;
		min-width: 0;
	}
	.rsm-item--accordion .rsm-item-title-row .rsm-title {
		flex: 0 1 auto;
		width: 100%;
		max-width: 100%;
		font-size: 14px;
		line-height: 1.35;
	}
	.rsm-item--accordion .rsm-item-title-row .rsm-meta {
		flex: 0 0 auto;
		width: 100%;
		max-width: 100%;
		margin-top: 0;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		font-size: 11px;
	}
	.rsm-item.unread .rsm-title {
		color: #801020;
	}
	.rsm-title {
		color: var(--rsm-text);
	}
	.rsm-meta {
		color: var(--rsm-muted);
	}
	.rsm-meta .rsm-meta-time::after {
		content: " \00b7 ";
		color: var(--rsm-muted);
		font-weight: 400;
	}
	.rsm-meta-state--read {
		color: var(--rsm-muted);
		font-weight: 500;
	}
	.rsm-meta-state--unread {
		color: #b42318;
		font-weight: 700;
	}
	.rsm-body {
		color: var(--rsm-text);
	}
	.rsm-ico {
		background: rgba(128, 16, 32, 0.08);
	}
	.rsm-adm-dm-wrap #rsm-dm-bcast-list .rsm-ico {
		background: var(--rsm-adm-dm-ico-bg, rgba(128, 16, 32, 0.08));
	}
	.rsm-more {
		background: #fffdfb;
		border-color: rgba(128, 16, 32, 0.2);
		color: var(--rsm-text);
		max-width: 100%;
	}
	.rsm-contact-hero {
		background: linear-gradient(180deg, #fff9f2, #f9f1e7);
		border-color: var(--rsm-border);
		box-shadow: none;
		max-width: 100%;
	}
	.rsm-contact-title {
		color: #801020;
	}
	.rsm-contact-desc {
		color: var(--rsm-muted);
	}
	.rsm-contact-hero--compact {
		max-width: 100%;
	}
	.rsm-contact-hero--compact .rsm-contact-title {
		color: #801020;
	}
	.rsm-contact-hero--compact .rsm-contact-desc {
		color: var(--rsm-muted);
	}
	.rsm-dm-feed-wrap {
		border-color: rgba(128, 16, 32, 0.22);
		background: #faf5ef;
		max-width: 100%;
		min-width: 0;
	}
	.rsm-dm-feed-wrap.rsm-dm-feed-wrap--under-contact {
		background: var(--rsm-dm-feed-panel-bg, #faf5ef);
	}
	.rsm-dm-feed-wrap.rsm-dm-feed-wrap--under-contact .rsm-dm-feed-head {
		background: var(--rsm-dm-feed-head-bg, linear-gradient(180deg, #fff0f3 0%, #ffdbe3 100%));
	}
	.rsm-dm-feed-head {
		padding: 5px 12px;
		min-height: 0;
		line-height: 1.28;
		background: linear-gradient(180deg, #fff0f3 0%, #ffdbe3 100%);
		border-bottom: 2px solid rgba(159, 18, 57, 0.5);
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
		color: var(--rsm-text);
		display: flex;
		justify-content: center;
		align-items: center;
	}
	.rsm-dm-feed-title {
		color: #9f1239;
		font-weight: 800;
		font-size: 13px;
		letter-spacing: 0.04em;
		text-shadow: none;
	}
	.rsm-dm-thread-feed {
		background: transparent;
		max-width: 100%;
		min-width: 0;
		padding: 14px 12px 10px;
		margin-top: 2px;
	}
	.rsm-thread-card {
		background: #fdf8f3;
		border-color: var(--rsm-border);
		box-shadow: 0 2px 10px rgba(128, 16, 32, 0.08);
		max-width: 100%;
		min-width: 0;
	}
	.rsm-thread-card-summary {
		background: #faf6f1;
		color: var(--rsm-text);
	}
	.rsm-thread-card-summary:hover {
		background: #f2eae3;
	}
	.rsm-thread-card-summary-title-row .rsm-thread-card-summary-title {
		color: #801020;
		font-weight: 800;
	}
	.rsm-thread-card-summary-title {
		color: #801020;
		font-weight: 800;
	}
	.rsm-thread-card-summary-time {
		color: var(--rsm-muted);
	}
	.rsm-thread-new-badge {
		font-size: 11px;
		padding: 2px 8px;
		box-shadow: 0 2px 10px rgba(128, 16, 32, 0.2);
	}
	.rsm-thread-card-rowbar,
	.rsm-thread-card-top {
		background: #f3ebe4;
		border-color: var(--rsm-border);
	}
	.rsm-thread-card-user {
		background: #f7efe8;
	}
	.rsm-dm-pager.rsm-classic-pager,
	.rsm-classic-pager--dm-thread,
	.rsm-classic-pager--bcast,
	.rsm-classic-pager--notify {
		background: #fdf8f3;
		border-color: var(--rsm-border);
	}
	/* 手机：展开正文区 — 淡蓝底+细蓝边（与「图四」卡片风格一致） */
	.rsm-item--accordion .rsm-body {
		background: #f0f5ff;
		border: 1px solid #c7d2fe;
		border-left: 4px solid #6366f1;
		border-radius: 10px;
		box-shadow: none;
		color: #334155;
		font-weight: 500;
	}
	.rsm-item--accordion .rsm-body a {
		color: #4f46e5;
	}
	.rsm-item--accordion .rsm-item-hd-text {
		min-width: 0;
	}
	.rsm-list-empty {
		margin-left: 0;
		margin-right: 0;
		padding: 0;
		background: var(--rsm-card);
		border-color: var(--rsm-border);
		box-shadow: 0 4px 22px rgba(128, 16, 32, 0.1);
	}
	.rsm-list-empty-inner {
		padding: 22px 14px 24px;
	}
	.rsm-list-empty-txt {
		color: var(--rsm-text);
	}
	.rsm-empty-goto-sys {
		max-width: 100%;
		width: 100%;
		box-sizing: border-box;
		white-space: normal;
		padding: 12px 16px;
		font-size: 14px;
	}
}
