/* ==========================================================================
   X时代 · X.com 风格（像素级复刻）
   启用方式：后台 → 主题设置 → 风格 → 时代选择 = X时代
   作用范围：整体页面 UI（布局 / 图标 / 配色），不影响原有功能
   ========================================================================== */

body.x-era {
	--x-bg: #ffffff;
	--x-fg: #0f1419;
	--x-secondary: #536471;
	--x-border: #eff3f4;
	--x-hover: #f7f9f9;
	--x-blue: #1d9bf0;
	--x-green: #00ba7c;
	--x-red: #f91880;
	--x-blue-hover: rgba(29, 155, 240, 0.12);
	--x-green-hover: rgba(0, 186, 124, 0.12);
	--x-red-hover: rgba(249, 24, 128, 0.12);
	background: var(--x-bg) !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* ============ 隐藏旧版头部 / 导航 / 底部 ============ */
body.x-era #header.site-header,
body.x-era #appbar,
body.x-era #fixedbar,
body.x-era #mobilebar,
body.x-era #footer.site-footer,
body.x-era .gotop,
body.x-era #overlay .full-link {
	display: none !important;
}

body.x-era #wrapper.theme {
	background: var(--x-bg);
}

body.x-era #container.site-refresh {
	position: static;
}

/* ============ 三栏网格布局 ============ */
body.x-era #contents.width {
	display: grid;
	grid-template-columns: 275px minmax(0, 600px) 350px;
	grid-template-rows: auto 1fr; /* 显式行高，防止 sticky 侧栏 height:100vh 把首行撑成 100vh 导致标签栏下方空白 */
	justify-content: center;
	margin: 0 auto;
	padding: 0 !important;
	letter-spacing: 0 !important;
	max-width: 100%;
}

body.x-era #aside.left,
body.x-era #loop.right,
body.x-era #main {
	display: block;
	letter-spacing: 0;
	box-sizing: border-box;
	vertical-align: top;
}

/* 中栏容器扁平化，让 个人主页头部 / 主内容 / 右面板 成为网格项，自动对齐 */
body.x-era #loop.right {
	display: contents;
}

body.x-era #aside.left {
	grid-column: 1;
	width: 275px;
}

body.x-era .x-profile {
	grid-column: 2;
	border-left: 1px solid var(--x-border);
	border-right: 1px solid var(--x-border);
}

body.x-era #main {
	grid-column: 2;
	width: 100% !important;
	overflow: visible;
	border-left: 1px solid var(--x-border);
	border-right: 1px solid var(--x-border);
	border-radius: 0;
	background: var(--x-bg);
}

body.x-era #aside.right.x-panel {
	grid-column: 3;
	width: 350px;
}

/* ============ 左侧导航栏 ============ */
body.x-era #aside.left.x-rail {
	grid-row: 1 / -1; /* 跨所有网格行，避免 height:100vh 把首行撑成 100vh 导致中间列 profile 拉伸出现空白 */
	position: sticky;
	top: 0;
	height: 100vh;
	height: 100dvh;
	overflow-y: auto;
	background: var(--x-bg);
	z-index: 20;
}

body.x-era #aside.left .inner {
	padding: 8px 12px;
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
}

/* X Logo */
body.x-era .x-logo {
	width: 52px;
	height: 52px;
	margin: 2px 0 2px 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: var(--x-fg);
	transition: background .15s;
}

body.x-era .x-logo:hover {
	background: var(--x-blue-hover);
	color: var(--x-blue);
}

/* 左侧导航站点 logo（后台常规设置）；宽度不限制，按比例显示 */
body.x-era .x-logo-img {
	height: 32px;
	width: auto;
	max-width: none;
	display: block;
	border-radius: 8px;
}

/* 导航项 */
body.x-era .x-nav {
	display: flex;
	flex-direction: column;
	margin: 4px 0;
}

body.x-era .x-nav-item {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 50px;
	padding: 0 12px;
	margin: 1px 0;
	border-radius: 999px;
	color: var(--x-fg);
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
	transition: background .15s;
}

body.x-era .x-nav-item:hover {
	background: var(--x-hover);
}

body.x-era .x-nav-item.active {
	font-weight: 700;
}

body.x-era .x-nav-icon {
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--x-fg);
}

body.x-era .x-nav-item.active .x-nav-icon,
body.x-era .x-nav-item:hover .x-nav-icon {
	color: var(--x-fg);
}

/* 发帖按钮 */
body.x-era .x-post-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	margin: 12px 0;
	padding: 0 16px;
	border-radius: 999px;
	background: var(--x-fg);
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition: opacity .15s;
}

body.x-era .x-post-btn:hover {
	opacity: .85;
}

/* 底部个人资料 */
body.x-era .x-rail-profile {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	padding: 12px;
	border-radius: 999px;
	color: var(--x-fg);
	text-decoration: none;
	transition: background .15s;
}

body.x-era .x-rail-profile:hover {
	background: var(--x-hover);
}

body.x-era .x-rail-avatar img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

body.x-era .x-rail-info {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
	line-height: 1.2;
}

body.x-era .x-rail-name {
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

body.x-era .x-rail-handle {
	font-size: 14px;
	color: var(--x-secondary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

body.x-era .x-rail-more {
	width: 18px;
	color: var(--x-fg);
	display: flex;
}

/* ============ 个人主页头部 ============ */
body.x-era .x-profile {
	background: var(--x-bg);
	border-bottom: 1px solid var(--x-border);
}

/* 吸顶标题栏 */
body.x-era .x-profile-bar {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 0 16px;
	height: 53px;
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--x-border);
}

body.x-era .x-profile-bar-back {
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: var(--x-fg);
	cursor: pointer;
	transition: background .15s;
}

body.x-era .x-profile-bar-back:hover {
	background: var(--x-hover);
}

body.x-era .x-profile-bar-title {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

body.x-era .x-profile-bar-name {
	font-size: 20px;
	font-weight: 700;
	color: var(--x-fg);
}

body.x-era .x-profile-bar-count {
	font-size: 13px;
	color: var(--x-secondary);
}

/* 头图 */
body.x-era .x-cover {
	height: 200px;
	background-color: #cfd9de;
	background-size: cover;
	background-position: center;
}

/* 头像区 */
body.x-era .x-profile-main {
	padding: 0 16px 16px;
}

body.x-era .x-avatar-wrap {
	margin-top: -68px;
	margin-bottom: 12px;
	width: 136px;
	height: 136px;
	padding: 4px;
	background: var(--x-bg);
	border-radius: 50%;
	box-sizing: border-box;
}

body.x-era .x-avatar-wrap img {
	width: 128px;
	height: 128px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

body.x-era .x-name {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 20px;
	font-weight: 800;
	color: var(--x-fg);
	line-height: 1.3;
}

body.x-era .x-verified {
	display: inline-flex;
	color: var(--x-blue);
	flex: none;
}

body.x-era .x-handle {
	font-size: 15px;
	color: var(--x-secondary);
	margin-top: 2px;
}

body.x-era .x-bio {
	font-size: 15px;
	color: var(--x-fg);
	line-height: 1.4;
	margin: 12px 0 0;
}

body.x-era .x-extras {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin-top: 12px;
	color: var(--x-secondary);
}

body.x-era .x-extra {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 15px;
}

body.x-era .x-extra svg {
	flex: none;
}

body.x-era .x-stats {
	display: flex;
	gap: 20px;
	margin-top: 12px;
}

body.x-era .x-stat {
	color: var(--x-secondary);
	font-size: 14px;
	text-decoration: none;
	transition: color .15s;
}

body.x-era .x-stat b {
	color: var(--x-fg);
	font-weight: 700;
	font-size: 15px;
}

body.x-era .x-stat:hover {
	color: var(--x-blue);
}

body.x-era .x-stat:hover b {
	color: var(--x-blue);
}

/* 页签 */
body.x-era .x-tabs {
	display: flex;
	border-bottom: 1px solid var(--x-border);
}

body.x-era .x-tab {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 53px;
	font-size: 15px;
	color: var(--x-secondary);
	text-decoration: none;
	position: relative;
	transition: background .15s;
}

body.x-era .x-tab:hover {
	background: var(--x-hover);
	color: var(--x-fg);
}

body.x-era .x-tab.active {
	color: var(--x-fg);
	font-weight: 700;
}

body.x-era .x-tab.active::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 56px;
	height: 4px;
	border-radius: 999px;
	background: var(--x-blue);
}

/* ============ 时间线推文卡片 ============ */
body.x-era .x-timeline {
	padding: 0 !important;
}

body.x-era .x-tweet {
	position: relative;
	display: flex;
	gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--x-border);
	background: var(--x-bg);
	transition: background .15s;
}

body.x-era .x-tweet:hover {
	background: var(--x-hover);
}

body.x-era .x-tweet-avatar {
	flex: none;
	width: 40px;
}

body.x-era .x-tweet-avatar img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

body.x-era .x-tweet-body {
	flex: 1;
	min-width: 0;
}

body.x-era .x-tweet-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0 4px;
	font-size: 15px;
	line-height: 1.3;
}

body.x-era .x-tweet-name {
	color: var(--x-fg);
	font-weight: 700;
}

body.x-era .x-tweet-handle,
body.x-era .x-tweet-time {
	color: var(--x-secondary);
	font-size: 15px;
}

body.x-era .x-tweet-title {
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	margin: 4px 0 0;
	color: var(--x-fg);
	word-break: break-word;
}

body.x-era .x-tweet-title a {
	color: inherit;
	text-decoration: none;
}

body.x-era .x-tweet-title a:hover {
	text-decoration: underline;
}

body.x-era .x-tweet-summary {
	font-size: 15px;
	line-height: 1.5;
	color: var(--x-fg);
	margin-top: 2px;
	word-break: break-word;
}

body.x-era .x-tweet-summary p {
	margin: 0;
}

body.x-era .x-tweet-summary a {
	color: var(--x-blue);
	text-decoration: none;
}

body.x-era .x-tweet-summary a:hover {
	text-decoration: underline;
}

/* 摘要内嵌的配图不重复展示（媒体卡片单独展示） */
body.x-era .x-tweet-summary .entry-image,
body.x-era .x-tweet-summary img.entry-image {
	display: none !important;
}

/* 点赞数为 0 时隐藏数字，点击后（is-active）再显示 */
body.x-era .x-act-like .x-zero {
	display: none;
}

body.x-era .x-act-like.is-active .x-zero {
	display: inline;
}

/* 推文媒体卡片 */
body.x-era .x-tweet-media {
	margin-top: 12px;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--x-border);
}



body.x-era .x-tweet .post-image-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

body.x-era .x-tweet .post-image-more-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.4);
	color: #fff;
	font-size: 22px;
	font-weight: 700;
}

/* 操作栏 */
body.x-era .x-tweet-actions {
	display: flex;
	justify-content: space-between;
	max-width: 425px;
	margin-top: 12px;
}

body.x-era .x-act {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	padding: 0 12px;
	height: 36px;
	border-radius: 999px;
	color: var(--x-secondary);
	font-size: 13px;
	line-height: 1;
	text-decoration: none;
	transition: background .15s, color .15s;
}

body.x-era .x-act:hover {
	background: var(--x-blue-hover);
	color: var(--x-blue);
}

body.x-era .x-act svg {
	flex: none;
}

body.x-era .x-act-num {
	font-size: 13px;
}

body.x-era .x-act-retweet:hover {
	background: var(--x-green-hover);
	color: var(--x-green);
}

body.x-era .x-act-like:hover {
	background: var(--x-red-hover);
	color: var(--x-red);
}

body.x-era .x-act-like.is-active {
	color: var(--x-red);
}

/* ============ 右侧面板 ============ */
body.x-era #aside.right.x-panel {
	grid-row: 1 / -1; /* 跨所有网格行，随页面自然滚动 */
	background: var(--x-bg);
}

body.x-era #aside.right .inner {
	padding: 12px 0 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* 搜索框 */
body.x-era .x-search form {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 16px;
	height: 44px;
	border-radius: 999px;
	background: var(--x-hover);
	color: var(--x-secondary);
}

body.x-era .x-search input {
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--x-fg);
	font-size: 15px;
	width: 100%;
}

body.x-era .x-search input:focus {
	outline: 0;
}

body.x-era .x-search form:focus-within {
	background: #fff;
	border: 1px solid var(--x-blue);
	box-shadow: 0 0 0 1px var(--x-blue);
	color: var(--x-blue);
}

/* 卡片 */
body.x-era .x-card {
	background: var(--x-hover);
	border-radius: 16px;
	padding: 12px 0;
	overflow: hidden;
}

body.x-era .x-card-title {
	font-size: 20px;
	font-weight: 800;
	color: var(--x-fg);
	margin: 0;
	padding: 4px 16px 12px;
}

body.x-era .x-card-more {
	display: block;
	padding: 16px;
	color: var(--x-blue);
	font-size: 15px;
	text-decoration: none;
	transition: background .15s;
}

body.x-era .x-card-more:hover {
	background: rgba(29, 155, 240, 0.08);
}

/* 你可能会喜欢 */
body.x-era .x-suggest-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	transition: background .15s;
}

body.x-era .x-suggest-item:hover {
	background: rgba(0, 0, 0, 0.03);
}

body.x-era .x-suggest-avatar img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

body.x-era .x-suggest-info {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
	line-height: 1.3;
}

body.x-era .x-suggest-name {
	font-size: 15px;
	font-weight: 700;
	color: var(--x-fg);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

body.x-era .x-suggest-handle {
	font-size: 14px;
	color: var(--x-secondary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

body.x-era .x-follow-btn {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 66px;
	height: 32px;
	padding: 0 16px;
	border-radius: 999px;
	background: var(--x-fg);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: opacity .15s;
}

body.x-era .x-follow-btn:hover {
	opacity: .85;
}

/* 趋势 */
body.x-era .x-trend-item {
	display: block;
	padding: 12px 16px;
	text-decoration: none;
	transition: background .15s;
}

body.x-era .x-trend-item:hover {
	background: rgba(0, 0, 0, 0.03);
}

body.x-era .x-trend-cat {
	display: block;
	font-size: 13px;
	color: var(--x-secondary);
}

body.x-era .x-trend-name {
	display: block;
	font-size: 15px;
	font-weight: 700;
	color: var(--x-fg);
	margin: 2px 0;
}

body.x-era .x-trend-count {
	display: block;
	font-size: 13px;
	color: var(--x-secondary);
}

/* 小工具容器（强制卡片化） */
body.x-era .x-widgets .widget {
	background: transparent;
	padding: 0;
	margin: 0;
	border: 0;
}

body.x-era .x-widgets .widget + .widget {
	border-top: 1px solid var(--x-border);
	padding-top: 12px;
}

body.x-era .x-widgets .widget-title {
	font-size: 20px;
	font-weight: 800;
	color: var(--x-fg);
	padding: 4px 16px 12px;
	margin: 0;
}

/* 底部条款 */
body.x-era .x-legal {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	padding: 16px;
	color: var(--x-secondary);
	font-size: 13px;
}

body.x-era .x-legal a {
	color: var(--x-secondary);
	text-decoration: none;
}

body.x-era .x-legal a:hover {
	text-decoration: underline;
}

body.x-era .x-copyright {
	width: 100%;
	margin-top: 4px;
}

/* ============ 单篇文章 / 其他页面 ============ */
body.x-era .content {
	max-width: none !important;
	padding: 16px;
}

body.x-era .content .entry-header {
	padding: 0 0 12px;
	border-bottom: 1px solid var(--x-border);
}

body.x-era .content .title {
	font-size: 32px;
	font-weight: 800;
	color: var(--x-fg);
	line-height: 1.2;
	margin: 0 0 8px;
}

body.x-era .content .meta,
body.x-era .content .meta a,
body.x-era .content .meta time {
	color: var(--x-secondary);
	font-size: 15px;
}

body.x-era .content .entry-content {
	padding: 16px 0;
	color: var(--x-fg);
	font-size: 17px;
	line-height: 1.7;
}

body.x-era .content .entry-content a {
	color: var(--x-blue);
}

body.x-era .content h2,
body.x-era .content h3 {
	color: var(--x-fg);
}

body.x-era .content .entry-footer {
	border-top: 1px solid var(--x-border);
	border-bottom: 1px solid var(--x-border);
	padding: 12px 0;
}

/* ============ 分页 ============ */
body.x-era .posts-paging a,
body.x-era .posts-paging span {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 16px;
	color: var(--x-blue);
	border: 0;
	font-size: 15px;
	text-decoration: none;
}

body.x-era .posts-paging a:hover {
	background: var(--x-blue-hover);
}

body.x-era .posts-paging .dot {
	display: none;
}

/* ============ 归档 / 搜索 / 日期等页面标题（X 风格页头） ============ */
body.x-era .heading {
	border-bottom: 1px solid var(--x-border);
}

body.x-era .heading .inner {
	border: 0;
	padding: 16px;
	color: var(--x-fg);
	font-size: 18px;
	font-weight: 700;
}

body.x-era .heading .inner strong {
	color: var(--x-fg);
}

/* ============ 中等屏幕：收起左侧导航文字 ============ */
@media (max-width: 1264px) and (min-width: 1000px) {
	body.x-era #contents.width {
		grid-template-columns: 88px minmax(0, 600px) 350px;
	}

	body.x-era #aside.left {
		width: 88px;
	}

	body.x-era #aside.left .inner {
		align-items: center;
		padding: 8px 4px;
	}

	body.x-era #aside.left .x-logo {
		margin: 2px 0;
	}

	body.x-era .x-nav-item {
		justify-content: center;
		padding: 0;
		gap: 0;
	}

	body.x-era .x-nav-label,
	body.x-era .x-post-btn {
		display: none;
	}

	body.x-era .x-post-btn {
		width: 52px;
		height: 52px;
		min-height: 52px;
		border-radius: 50%;
		padding: 0;
	}

	body.x-era .x-post-btn::after {
		content: "";
		width: 24px;
		height: 24px;
		background: currentColor;
		-webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M23 3c-6.62-.1-10.38 2.421-13.05 6.03C7.29 12.61 6 17.331 6 22h2c0-1.007.07-2.012.19-3H12c4.1 0 7.48-3.082 7.94-7.054C22.79 10.147 23.17 6.359 23 3zm-7 8h-1.5v2H16c.63-.016 1.2-.08 1.72-.188C16.95 15.24 14.68 17 12 17H8.55c.57-2.512 1.57-4.851 3-6.78 2.16-2.912 5.29-4.911 9.45-5.187C20.95 8.079 19.9 9.931 18 11z"/></svg>') no-repeat center;
		mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M23 3c-6.62-.1-10.38 2.421-13.05 6.03C7.29 12.61 6 17.331 6 22h2c0-1.007.07-2.012.19-3H12c4.1 0 7.48-3.082 7.94-7.054C22.79 10.147 23.17 6.359 23 3zm-7 8h-1.5v2H16c.63-.016 1.2-.08 1.72-.188C16.95 15.24 14.68 17 12 17H8.55c.57-2.512 1.57-4.851 3-6.78 2.16-2.912 5.29-4.911 9.45-5.187C20.95 8.079 19.9 9.931 18 11z"/></svg>') no-repeat center;
		background-color: #fff;
	}
}

/* ============ 平板：隐藏右侧面板 ============ */
@media (max-width: 999px) and (min-width: 688px) {
	body.x-era #contents.width {
		grid-template-columns: 88px minmax(0, 1fr);
	}

	body.x-era #aside.left {
		width: 88px;
	}

	body.x-era #aside.left .inner {
		align-items: center;
		padding: 8px 4px;
	}

	body.x-era .x-nav-item {
		justify-content: center;
		padding: 0;
		gap: 0;
	}

	body.x-era .x-nav-label,
	body.x-era .x-post-btn {
		display: none;
	}

	body.x-era .x-post-btn {
		width: 52px;
		height: 52px;
		min-height: 52px;
		border-radius: 50%;
		padding: 0;
	}

	body.x-era .x-post-btn::after {
		content: "";
		width: 24px;
		height: 24px;
		background-color: #fff;
		-webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M23 3c-6.62-.1-10.38 2.421-13.05 6.03C7.29 12.61 6 17.331 6 22h2c0-1.007.07-2.012.19-3H12c4.1 0 7.48-3.082 7.94-7.054C22.79 10.147 23.17 6.359 23 3zm-7 8h-1.5v2H16c.63-.016 1.2-.08 1.72-.188C16.95 15.24 14.68 17 12 17H8.55c.57-2.512 1.57-4.851 3-6.78 2.16-2.912 5.29-4.911 9.45-5.187C20.95 8.079 19.9 9.931 18 11z"/></svg>') no-repeat center;
		mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M23 3c-6.62-.1-10.38 2.421-13.05 6.03C7.29 12.61 6 17.331 6 22h2c0-1.007.07-2.012.19-3H12c4.1 0 7.48-3.082 7.94-7.054C22.79 10.147 23.17 6.359 23 3zm-7 8h-1.5v2H16c.63-.016 1.2-.08 1.72-.188C16.95 15.24 14.68 17 12 17H8.55c.57-2.512 1.57-4.851 3-6.78 2.16-2.912 5.29-4.911 9.45-5.187C20.95 8.079 19.9 9.931 18 11z"/></svg>') no-repeat center;
	}

	body.x-era .x-profile {
		border-left: 0;
	}

	body.x-era #main {
		border-left: 0;
	}

	body.x-era #aside.right.x-panel {
		display: none;
	}
}

/* ============ 移动端：底部导航 ============ */
@media (max-width: 687px) {
	body.x-era #contents.width {
		display: block;
		max-width: 100%;
	}

	body.x-era #aside.left.x-rail {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		top: auto;
		height: auto;
		width: 100%;
		z-index: 30;
		border-top: 1px solid var(--x-border);
		background: rgba(255, 255, 255, 0.95);
		backdrop-filter: blur(12px);
	}

	body.x-era #aside.left .inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-around;
		height: auto;
		padding: 0;
	}

	body.x-era .x-logo,
	body.x-era .x-post-btn,
	body.x-era .x-rail-profile {
		display: none;
	}

	body.x-era .x-nav {
		flex-direction: row;
		justify-content: space-around;
		width: 100%;
		margin: 0;
	}

	body.x-era .x-nav-item {
		flex-direction: column;
		gap: 2px;
		min-height: 0;
		padding: 6px 0;
		margin: 0;
		border-radius: 0;
		justify-content: center;
	}

	/* 底部导航只保留前 5 项 */
	body.x-era .x-nav-item:nth-child(n+6) {
		display: none;
	}

	body.x-era .x-nav-icon svg {
		width: 24px;
		height: 24px;
	}

	body.x-era .x-nav-label {
		display: block;
		font-size: 11px;
		line-height: 1;
	}

	body.x-era #loop.right {
		width: 100%;
		border-left: 0;
		border-right: 0;
		border-bottom: 1px solid var(--x-border);
	}

	body.x-era .x-profile {
		border-left: 0;
		border-right: 0;
	}

	body.x-era #main {
		border-left: 0;
		border-right: 0;
	}

	body.x-era #aside.right.x-panel {
		display: none;
	}

	body.x-era .x-profile-bar {
		top: 0;
	}

	body.x-era .x-cover {
		height: 130px;
	}

	body.x-era .x-avatar-wrap {
		margin-top: -56px;
		width: 112px;
		height: 112px;
	}

	body.x-era .x-avatar-wrap img {
		width: 104px;
		height: 104px;
	}

	body.x-era .x-profile-main {
		padding-bottom: 12px;
	}

	/* 给底部导航留出空间 */
	body.x-era #container.site-refresh {
		padding-bottom: 56px;
	}
}

/* ============ X时代：文章分类 / 目录 / 模板页全宽 ============ */

/* 文章分类（右侧栏小组件） */
body.x-era .x-cat-list {
	display: flex;
	flex-direction: column;
}

body.x-era .x-cat-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 16px;
	text-decoration: none;
	transition: background .15s;
}

body.x-era .x-cat-item:hover {
	background: rgba(0, 0, 0, 0.03);
}

body.x-era .x-cat-name {
	font-size: 15px;
	font-weight: 700;
	color: var(--x-fg);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

body.x-era .x-cat-count {
	flex: none;
	font-size: 13px;
	color: var(--x-secondary);
}

/* 单篇目录 */
body.x-era .x-toc-list {
	display: flex;
	flex-direction: column;
}

body.x-era .x-toc-item {
	display: block;
	padding: 8px 16px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--x-fg);
	text-decoration: none;
	transition: background .15s;
	border-left: 2px solid transparent;
}

body.x-era .x-toc-item:hover {
	background: rgba(0, 0, 0, 0.03);
	color: var(--x-blue);
	border-left-color: var(--x-blue);
}


/* ============ X时代：中栏顶部文章分类（横向胶囊） ============ */
body.x-era .x-cat-top {
	margin: 0;
	border-radius: 0;
	padding: 12px 0;
	border-bottom: 1px solid var(--x-border);
	overflow: visible; /* 让“更多”下拉不被裁剪 */
}

body.x-era .x-cat-top .x-cat-list {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0 16px;
}

body.x-era .x-cat-top .x-cat-item {
	display: inline-flex;
	gap: 6px;
	padding: 6px 12px;
	background: var(--x-hover);
	border-radius: 999px;
}

body.x-era .x-cat-top .x-cat-name {
	font-size: 15px;
}

body.x-era .x-cat-top .x-cat-count {
	font-size: 13px;
}

body.x-era .x-cat-top .x-card-more {
	display: inline-block;
	margin: 8px 16px 0;
	padding: 6px 12px;
	border-radius: 999px;
}

/* ============ X时代：分类“更多”下拉 ============ */
body.x-era .x-cat-more {
	position: relative;
	padding: 4px 16px;
}

body.x-era .x-cat-more-btn {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--x-hover);
	color: var(--x-fg);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
	user-select: none;
	transition: background .15s;
}

body.x-era .x-cat-more-btn::-webkit-details-marker { display: none; }

body.x-era .x-cat-more-btn:hover { background: rgba(0,0,0,.06); }

body.x-era .x-cat-more-btn::after {
	content: "";
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 16.5l-6-6 1.06-1.06L12 14.38l4.94-4.94L18 10.5z"/></svg>') no-repeat center;
	mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 16.5l-6-6 1.06-1.06L12 14.38l4.94-4.94L18 10.5z"/></svg>') no-repeat center;
	transition: transform .15s;
}

body.x-era .x-cat-more[open] .x-cat-more-btn::after { transform: rotate(180deg); }

body.x-era .x-cat-more-drop {
	display: none;
	position: absolute;
	top: 100%;
	left: 16px;
	right: 16px;
	margin-top: 4px;
	background: var(--x-bg);
	border: 1px solid var(--x-border);
	border-radius: 16px;
	box-shadow: 0 6px 20px rgba(0,0,0,.12);
	padding: 8px 0;
	z-index: 40;
}

body.x-era .x-cat-more[open] .x-cat-more-drop { display: block; }

body.x-era .x-cat-more-drop .x-cat-item { padding: 10px 16px; }

/* 侧栏小组件卡片若含“更多”下拉也不裁剪 */
body.x-era .x-card:has(.x-cat-more) { overflow: visible; }


/* ============ X时代：文章分类切换条（复用 .x-tabs/.x-tab 页签样式） ============ */
body.x-era .x-cat-tabs { margin: 0; }

body.x-era .x-cat-tabs .x-tab { white-space: nowrap; }

body.x-era .x-cat-tabs .x-tab-label {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* “更多”下拉页签 */
body.x-era .x-cat-tabs .x-cat-more {
	flex: 1;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 53px;
	margin: 0;
	padding: 0;
}

body.x-era .x-cat-tabs .x-cat-more-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 100%;
	height: 100%;
	padding: 0;
	background: transparent;
	border-radius: 0;
	color: var(--x-secondary);
	font-size: 15px;
	font-weight: 400;
	cursor: pointer;
	list-style: none;
	user-select: none;
	transition: background .15s, color .15s;
}

body.x-era .x-cat-tabs .x-cat-more:hover .x-cat-more-btn { background: var(--x-hover); color: var(--x-fg); }

body.x-era .x-cat-tabs .x-cat-more-btn::-webkit-details-marker { display: none; }

body.x-era .x-cat-tabs .x-cat-more-btn::after {
	content: "";
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 16.5l-6-6 1.06-1.06L12 14.38l4.94-4.94L18 10.5z"/></svg>') no-repeat center;
	mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 16.5l-6-6 1.06-1.06L12 14.38l4.94-4.94L18 10.5z"/></svg>') no-repeat center;
	transition: transform .15s;
}

body.x-era .x-cat-tabs .x-cat-more[open] .x-cat-more-btn::after { transform: rotate(180deg); }

/* “更多”下拉菜单（带蓝色对勾选中项） */
body.x-era .x-cat-tabs .x-cat-more-drop {
	display: none;
	position: absolute;
	top: 100%;
	right: 8px;
	margin-top: 4px;
	min-width: 220px;
	background: var(--x-bg);
	border: 1px solid var(--x-border);
	border-radius: 16px;
	box-shadow: 0 6px 20px rgba(0,0,0,.12);
	padding: 8px 0;
	z-index: 40;
}

body.x-era .x-cat-tabs .x-cat-more[open] .x-cat-more-drop { display: block; }

body.x-era .x-cat-tabs .x-cat-more-drop .x-cat-item.active { color: var(--x-blue); font-weight: 700; }

body.x-era .x-cat-tabs .x-cat-check {
	color: var(--x-blue);
	margin-left: 8px;
	flex: none;
	display: inline-flex;
	align-items: center;
}

body.x-era .x-card:has(.x-cat-more) { overflow: visible; }


/* ============ X时代：右侧栏小工具内容适配（主题自带小工具） ============ */
/* 覆盖全局 .widget 默认样式 */
body.x-era .x-panel .widget {
	font-size: 15px;
	color: var(--x-fg);
	margin-bottom: 0;
}

/* 通用列表：无圆点 */
body.x-era .x-panel .inner .widget ul,
body.x-era .x-panel .inner .widget ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* —— 文本小工具 —— */
body.x-era .x-panel .textwidget {
	font-size: 15px;
	line-height: 1.5;
	color: var(--x-fg);
	padding: 0 16px 8px;
	word-break: break-word;
}

body.x-era .x-panel .textwidget a {
	color: var(--x-blue);
	text-decoration: none;
}

body.x-era .x-panel .textwidget a:hover { text-decoration: underline; }

body.x-era .x-panel .x-card ul.items {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* 热门文章（浏览排行 HotPosts_1） */
body.x-era .x-panel .hot-views .item,
body.x-era .x-panel .hot-comment .item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px;
	transition: background .15s;
}

body.x-era .x-panel .hot-views .item:hover,
body.x-era .x-panel .hot-comment .item:hover { background: rgba(0, 0, 0, 0.03); }

body.x-era .x-panel .hot-views .title,
body.x-era .x-panel .hot-comment .title {
	margin: 0;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	min-width: 0;
}

body.x-era .x-panel .hot-views .title a,
body.x-era .x-panel .hot-comment .title a {
	color: var(--x-fg);
	text-decoration: none;
}

body.x-era .x-panel .hot-views .title a:hover,
body.x-era .x-panel .hot-comment .title a:hover { color: var(--x-blue); }

body.x-era .x-panel .hot-views .meta,
body.x-era .x-panel .hot-comment .meta {
	font-size: 13px;
	color: var(--x-secondary);
	margin-top: 2px;
}

body.x-era .x-panel .hot-comment .image { flex: none; }
body.x-era .x-panel .hot-comment .image img { border-radius: 10px; object-fit: cover; display: block; }

/* 谁关心我（评论最多头像排行 MaxCommentUser） */
body.x-era .x-panel .attention {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 8px 16px 12px;
}

body.x-era .x-panel .attention .item { padding: 0; display: block; }
body.x-era .x-panel .attention .item a { display: block; }
body.x-era .x-panel .attention img {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	transition: opacity .15s;
}

body.x-era .x-panel .attention img:hover { opacity: .8; }

/* 友情链接（Links） */
body.x-era .x-panel .links-bar .item { padding: 0; }
body.x-era .x-panel .links-bar .item a {
	display: block;
	padding: 10px 16px;
	color: var(--x-fg);
	text-decoration: none;
	transition: background .15s, color .15s;
}

body.x-era .x-panel .links-bar .item a:hover {
	background: rgba(0, 0, 0, 0.03);
	color: var(--x-blue);
}

/* 照片（文章特色图网格 AttachmentImage） */
body.x-era .x-panel .attachmentimage {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2px;
	padding: 4px 0 8px;
}

body.x-era .x-panel .attachmentimage .item { padding: 0; display: block; }
body.x-era .x-panel .attachmentimage .item a { display: block; }
body.x-era .x-panel .attachmentimage img {
	width: 100%;
	height: 74px;
	object-fit: cover;
	display: block;
}
/* ============ X时代：左侧导航 黑色胶囊内联播放器 ============ */
body.x-era .x-player-dock {
	position: fixed;
	left: 0;
	right: 0;
	top: 0; /* 由 footer 内联 JS 计算为左栏导航菜单底部 */
	z-index: 35;
	display: none;
	grid-template-columns: 275px minmax(0, 600px) 350px;
	justify-content: center;
	pointer-events: none;
}
body.x-era #listen.x-player {
	display: block !important;
	position: static !important;
	grid-column: 1;
	margin: 0 12px;
	pointer-events: auto;
	background: #16181c;
	color: #e7e9ea;
	border-radius: 24px;
	box-shadow: none;
}
body.x-era #listen.x-player:before {
	display: none;
}
body.x-era #listen.x-player .player {
	position: relative;
	padding: 4px 12px;
	width: auto;
	min-width: 0;
	box-shadow: none;
	background: transparent;
}
/* 主行：封面 + 曲名/进度条（进度条全宽可点击） */
body.x-era #listen.x-player .x-player-main {
	display: flex;
	align-items: center;
	gap: 10px;
}
body.x-era #listen.x-player .cover {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	margin: 0;
	flex: none;
	box-shadow: none;
}
body.x-era #listen.x-player .x-player-meta {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}
body.x-era #listen.x-player .title {
	font-size: 14px;
	font-weight: 700;
	color: #e7e9ea;
	margin: 0 0 3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	letter-spacing: 0;
}
body.x-era #listen.x-player .progress-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 11px;
}
body.x-era #listen.x-player .progress-time {
	font-size: 10px;
	min-width: 24px;
	text-align: center;
	flex: none;
	color: #8b98a5;
}
body.x-era #listen.x-player .progress-track {
	flex: 1;
	height: 4px;
	margin: 0;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 2px;
	position: relative;
	cursor: pointer;
	transition: none;
}
body.x-era #listen.x-player .progress-track:hover {
	height: 4px;
}
body.x-era #listen.x-player .progress-buffer {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 0;
	background: rgba(255, 255, 255, 0.3);
	border-radius: 2px;
}
body.x-era #listen.x-player .progress-played {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 0;
	background: #1d9bf0;
	border-radius: 2px;
}
body.x-era #listen.x-player .progress-played:after {
	display: none;
}
/* 下行：控制按钮 + 音量 + 歌词 + 歌单 */
body.x-era #listen.x-player .x-player-tools {
	display: flex;
	align-items: center;
	gap: 2px;
	margin-top: 6px;
}
body.x-era #listen.x-player .x-player-tools {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	margin-top: 0;
	transition: max-height .25s ease, opacity .25s ease, margin-top .25s ease;
}
body.x-era #listen.x-player:hover .x-player-tools {
	max-height: 56px;
	opacity: 1;
	margin-top: 6px;
}
body.x-era #listen.x-player .x-ctrl {
	font-family: "icon", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #e7e9ea;
	border-radius: 50%;
	font-size: 16px;
	line-height: 1;
	transition: background .15s;
}
body.x-era #listen.x-player .x-ctrl:hover {
	background: rgba(255, 255, 255, 0.1);
}
body.x-era #listen.x-player .x-ctrl.play {
	font-size: 20px;
	width: 30px;
	height: 30px;
}
body.x-era #listen.x-player .x-ctrl.play.active {
	color: #1d9bf0;
}
body.x-era #listen.x-player .x-tool {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: #8b98a5;
	cursor: pointer;
	padding: 5px 10px;
	border-radius: 999px;
	transition: all .15s;
}
body.x-era #listen.x-player .x-tool:hover,
body.x-era #listen.x-player .x-tool.active {
	color: #e7e9ea;
	background: rgba(255, 255, 255, 0.1);
}
body.x-era #listen.x-player .x-tool.onlrc {
	margin-left: auto;
}
/* 音量 */
body.x-era #listen.x-player .volume-wrap {
	position: relative;
	display: flex;
	align-items: center;
}
body.x-era #listen.x-player .volume {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	color: #e7e9ea;
	cursor: pointer;
	border-radius: 50%;
	transition: all .15s;
}
body.x-era #listen.x-player .volume:hover {
	background: rgba(255, 255, 255, 0.1);
}
body.x-era #listen.x-player .volume svg {
	display: block;
	width: 15px;
	height: 15px;
}
body.x-era #listen.x-player .volume-slider {
	position: absolute;
	bottom: calc(100% + 6px);
	left: 50%;
	transform: translateX(-50%);
	width: 26px;
	height: 0;
	overflow: hidden;
	background: #16181c;
	border: 0;
	border-radius: 12px;
	transition: height .15s;
}
body.x-era #listen.x-player .volume-wrap:hover .volume-slider {
	height: 72px;
	padding: 10px 6px;
	border: 1px solid rgba(255, 255, 255, 0.15);
}
body.x-era #listen.x-player .volume-track {
	position: relative;
	width: 4px;
	height: 100%;
	margin: 0 auto;
	background: rgba(255, 255, 255, 0.25);
	border-radius: 2px;
	cursor: pointer;
}
body.x-era #listen.x-player .volume-fill {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 70%;
	background: #1d9bf0;
	border-radius: 2px;
}
body.x-era #listen.x-player .volume-thumb {
	position: absolute;
	bottom: 70%;
	left: 50%;
	transform: translate(-50%, 50%);
	width: 9px;
	height: 9px;
	background: #fff;
	border: 0;
	border-radius: 50%;
}
/* 歌单面板（从胶囊右侧弹出） */
body.x-era #listen.x-player .list {
	position: absolute;
	left: calc(100% + 10px);
	right: auto;
	top: 0;
	width: 300px;
	height: 0;
	overflow: hidden;
	background: #16181c;
	border: 0;
	border-radius: 16px;
	box-shadow: none;
	z-index: 5;
	transition: height .2s ease;
}
body.x-era #listen.x-player .list.show {
	height: auto;
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: none;
}
body.x-era #listen.x-player .list #playlist {
	margin: 0;
	padding: 8px;
	list-style: none;
	max-height: 300px;
	overflow-y: auto;
}
body.x-era #listen.x-player .list #playlist li {
	padding: 8px 12px;
	font-size: 13px;
	color: #e7e9ea;
	cursor: pointer;
	border-radius: 10px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: background .15s;
}
body.x-era #listen.x-player .list #playlist li:hover {
	background: rgba(255, 255, 255, 0.08);
}
body.x-era #listen.x-player .list #playlist li.current {
	color: #1d9bf0;
}
body.x-era #listen.x-player .music-search {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 10px 6px;
	box-sizing: border-box;
	width: auto;
	top: auto;
}
body.x-era #listen.x-player .music-search .search-icon {
	position: static !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	width: auto !important;
	height: auto;
	flex: none;
	font-family: "icon", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important;
	color: #8b98a5;
	font-size: 13px;
	line-height: 1;
	pointer-events: none;
	margin: 0;
}
body.x-era #listen.x-player .music-search .textinput {
	flex: 1;
	min-width: 0;
	background: rgba(255, 255, 255, 0.08);
	border: 0 !important;
	box-shadow: none !important;
	border-radius: 999px;
	color: #e7e9ea;
	padding: 6px 12px;
	font-size: 13px;
	outline: none;
}
body.x-era #listen.x-player .music-search .textinput:focus {
	background: rgba(255, 255, 255, 0.14);
	border: 0 !important;
	box-shadow: none !important;
}
body.x-era #listen.x-player .search-source {
	position: static !important;
	flex: none;
	display: flex;
	align-items: center;
}
body.x-era #listen.x-player #onsource {
	position: static !important;
	top: auto !important;
	right: auto !important;
	font-family: "icon", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important;
	color: #8b98a5;
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
	padding: 6px 2px;
}
body.x-era #listen.x-player .source-items {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 6;
	height: 0;
	overflow: hidden;
	background: #16181c;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	box-sizing: border-box;
	transition: height .2s ease;
	margin-top: 0;
	width: 100%;
	padding: 0 10px;
	line-height: 34px;
}
body.x-era #listen.x-player .source-items.show {
	height: 36px;
}
body.x-era #listen.x-player .source-items label {
	color: #8b98a5;
	font-size: 12px;
}
body.x-era #listen.x-player .source-items label:hover {
	color: #e7e9ea;
}
body.x-era #listen.x-player .source-items label input {
	margin-right: 4px;
	accent-color: #1d9bf0;
}
body.x-era #listen.x-player .list-page-btn {
	display: none;
	padding: 6px 10px;
	text-align: center;
}
body.x-era #listen.x-player .list-page-btn a {
	color: #1d9bf0;
	font-size: 13px;
	margin: 0 8px;
	text-decoration: none;
}
body.x-era #listen.x-player .list-page-btn a:hover {
	text-decoration: underline;
}
body.x-era #listen.x-player audio.bgm {
	display: none;
}
/* 歌词（与旧时代一致：左下角固定、透明无胶囊背景） */
body.x-era #song-lrc {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 5px;
	z-index: 34;
	pointer-events: none;
	transition: none;
}
body.x-era #song-lrc .lrc-wrap {
	pointer-events: auto;
	max-height: 200px;
	overflow-y: auto;
}/* ============ X时代：左下角登录状态卡片 ============ */
body.x-era .x-rail-profile {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	padding: 12px;
	border-radius: 999px;
	color: var(--x-fg);
	text-decoration: none;
	transition: background .15s;
}
body.x-era .x-rail-profile:hover {
	background: transparent;
}
body.x-era .x-rail-main {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
	min-width: 0;
	color: var(--x-fg);
	text-decoration: none;
	border-radius: 999px;
	transition: background .15s;
}
body.x-era .x-rail-main:hover {
	background: var(--x-hover);
}
body.x-era .x-rail-avatar-icon {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	background: var(--x-hover);
	border-radius: 50%;
	color: var(--x-secondary);
}
body.x-era .x-rail-avatar-icon svg {
	width: 24px;
	height: 24px;
}
body.x-era .x-rail-more {
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	color: var(--x-fg);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	border-radius: 50%;
	transition: background .15s;
}
body.x-era .x-rail-more:hover {
	background: var(--x-hover);
}

/* 宽屏 ≥1000px：显示播放器 dock */
@media (min-width: 1000px) {
	body.x-era .x-player-dock {
		display: grid;
	}
}
/* 宽屏 ≥1265px：完整黑色胶囊播放器 */
@media (min-width: 1265px) {
	body.x-era .x-player-dock {
		grid-template-columns: 275px minmax(0, 600px) 350px;
	}
	body.x-era #listen.x-player {
		width: auto;
		height: auto;
		border-radius: 24px;
	}
}
/* 窄屏 1000-1264px：88px 紧凑圆形播放器（仅播放键） */
@media (min-width: 1000px) and (max-width: 1264px) {
	body.x-era .x-player-dock {
		grid-template-columns: 88px minmax(0, 600px) 350px;
	}
	body.x-era #listen.x-player {
		grid-column: 1;
		width: 56px;
		height: 56px;
		margin: 0 auto;
		padding: 0;
		border-radius: 999px;
		display: flex !important;
		align-items: center;
		justify-content: center;
	}
	body.x-era #listen.x-player .player {
		padding: 0;
		background: transparent;
	}
	body.x-era #listen.x-player .x-player-main,
	body.x-era #listen.x-player .x-ctrl.rewind,
	body.x-era #listen.x-player .x-ctrl.fastforward,
	body.x-era #listen.x-player .volume-wrap,
	body.x-era #listen.x-player .x-tool,
	body.x-era #listen.x-player .list {
		display: none;
	}
	body.x-era #listen.x-player .x-player-tools {
		display: flex;
		align-items: center;
		justify-content: center;
		margin: 0;
		padding: 0;
		border: 0;
	}
	body.x-era #listen.x-player .x-player-tools {
		max-height: 56px;
		opacity: 1;
		margin-top: 0;
	}
	body.x-era #listen.x-player .x-ctrl.play {
		width: 56px;
		height: 56px;
		font-size: 26px;
	}

/* 窄栏个人卡片收起文字 */
	body.x-era .x-rail-info,
	body.x-era .x-rail-avatar-icon {
		display: none;
	}
	body.x-era .x-rail-profile {
		gap: 4px;
		padding: 8px 4px;
		justify-content: center;
	}
	body.x-era .x-rail-more {
		width: 28px;
		height: 28px;
	}
}

/* =========================================================
   X时代 · 首页文章列表（旧时代卡片 X 风格适配）
   首页使用旧时代渲染以完整展示：图片 / 音乐卡片 / 视频 / 文字
   ========================================================= */
/* 首页 X.com 推文（x-tweet）：与 X.com 时间线一致——直角、分割线分隔 */
body.x-era .x-timeline article {
	background: var(--x-bg);
	border: 0;
	border-bottom: 1px solid var(--x-border);
	border-radius: 0;
	padding: 12px 16px;
	margin-bottom: 0;
	transition: background .15s ease;
}
body.x-era .x-timeline article:hover { background: var(--x-hover); }

/* 旧时代 w-50 半宽布局复位为全宽卡片 */
body.x-era .x-timeline .entry-header.pull-left,
body.x-era .x-timeline .entry-content.w-50 { width: auto; float: none; }
/* 头部分类横幅（topic-thumb）：X时代不显示，保持 X.com 推文纯净（无头部大图） */
body.x-era .x-timeline .entry-header { display: none; }

/* 作者 / 时间 */
body.x-era .x-timeline .entry-content .meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	margin-bottom: 4px;
}
body.x-era .x-timeline .entry-content .meta .nickname {
	font-weight: 700;
	color: var(--x-fg);
}
body.x-era .x-timeline .entry-content .meta time { color: var(--x-secondary); }

/* 标题 */
body.x-era .x-timeline .entry-content h2.title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
	margin: 2px 0 6px;
}
body.x-era .x-timeline .entry-content h2.title a { color: var(--x-fg); }
body.x-era .x-timeline .entry-content h2.title a:hover { text-decoration: underline; }

/* 摘要 */
body.x-era .x-timeline .summary {
	font-size: 15px;
	line-height: 1.6;
	color: var(--x-fg);
	word-break: break-word;
}
body.x-era .x-timeline .summary p { margin: 0; }
body.x-era .x-timeline .summary a { color: var(--x-blue); text-decoration: none; }
body.x-era .x-timeline .summary a:hover { text-decoration: underline; }

/* 图片网格：容器圆角；内部布局规则与旧时代一致（正方形格子 + img absolute cover） */
body.x-era .x-timeline .post-images-grid {
	border-radius: 14px;
	overflow: hidden;
	background: var(--x-bg);
}
body.x-era .x-timeline .post-images-grid a { display: block; }
body.x-era .x-timeline .post-images-grid img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

/* 特色图（无图片网格时由摘要输出） */
body.x-era .x-timeline .entry-image {
	width: 100%;
	border-radius: 14px;
	margin: 8px 0;
	display: block;
}

/* 音乐卡片适配（去阴影圆角融入卡片；宽度参考旧时代默认：歌单 560px / 单曲 260px） */
body.x-era .x-timeline .music-card {
	box-shadow: none;
	border: 1px solid var(--x-border);
	border-radius: 14px;
	margin: 10px 0;
}
body.x-era .x-timeline .music-card:hover { box-shadow: none; transform: none; }

/* 视频 */
body.x-era .x-timeline .x-tweet-video { margin-bottom: 8px; }
body.x-era .x-timeline #media,
body.x-era .x-timeline .x-tweet-video #media { margin: 0; }
body.x-era .x-timeline #media video,
body.x-era .x-timeline video.bg {
	width: 100%;
	border-radius: 14px;
	background-size: cover;
	background-position: center;
}

/* 操作栏 */
body.x-era .x-timeline .entry-footer {
	margin-top: 10px;
	border-top: 1px solid var(--x-border);
	padding-top: 10px;
}
body.x-era .x-timeline .entry-footer .items.state {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}
body.x-era .x-timeline .entry-footer .items.state .item {
	flex: 1;
	text-align: center;
	color: var(--x-secondary);
	font-size: 13px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
}
body.x-era .x-timeline .entry-footer .items.state .item .icon {
	font-size: 16px;
	color: var(--x-secondary);
	line-height: 1;
}
body.x-era .x-timeline .entry-footer .items.state .item a,
body.x-era .x-timeline .entry-footer .items.state .item a:hover { color: var(--x-secondary); }
body.x-era .x-timeline .entry-footer .items.state .item:hover .icon,
body.x-era .x-timeline .entry-footer .items.state .item a:hover,
body.x-era .x-timeline .entry-footer .items.state .item:hover { color: var(--x-blue); }
body.x-era .x-timeline .entry-footer .items.state .item.ilike.is-active .icon,
body.x-era .x-timeline .entry-footer .items.state .item.count-like.is-active .icon { color: #f91880; }

/* 最新评论预览 */
body.x-era .x-timeline .post-comments-preview {
	margin-top: 10px;
	border-top: 1px solid var(--x-border);
	padding-top: 8px;
}
body.x-era .x-timeline .post-comments-preview .comments-preview-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	margin-bottom: 6px;
}
body.x-era .x-timeline .post-comments-preview .comments-preview-title { font-weight: 700; color: var(--x-fg); }
body.x-era .x-timeline .post-comments-preview .comments-preview-more { color: var(--x-blue); text-decoration: none; }
body.x-era .x-timeline .post-comments-preview .comments-preview-list { list-style: none; margin: 0; padding: 0; }
body.x-era .x-timeline .post-comments-preview .comment-preview-item {
	display: flex;
	gap: 8px;
	padding: 6px 0;
	align-items: flex-start;
}
body.x-era .x-timeline .post-comments-preview .comment-preview-avatar img { border-radius: 50%; }
body.x-era .x-timeline .post-comments-preview .comment-preview-content { flex: 1; min-width: 0; }
body.x-era .x-timeline .post-comments-preview .comment-preview-meta {
	display: flex;
	gap: 6px;
	align-items: center;
	font-size: 13px;
}
body.x-era .x-timeline .post-comments-preview .comment-preview-author { font-weight: 700; color: var(--x-fg); }
body.x-era .x-timeline .post-comments-preview .comment-preview-time { color: var(--x-secondary); }
body.x-era .x-timeline .post-comments-preview .comment-preview-text {
	font-size: 14px;
	color: var(--x-fg);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* =========================================================
   X时代 · 非文章/类别/标签页 → 内容占满右栏宽度，右栏隐藏
   布局 class 在 #contents（PJAX 容器内）输出，切换页面自动同步
   ========================================================= */
@media (min-width: 1265px) {
body.x-era #contents.width.x-no-side {
	grid-template-columns: 275px minmax(0, 950px);
}
}
@media (min-width: 1000px) and (max-width: 1264px) {
body.x-era #contents.width.x-no-side {
	grid-template-columns: 88px minmax(0, 950px);
}
}
body.x-era #contents.width.x-no-side #aside.right.x-panel {
	display: none;
}
