/*
Theme Name: 神人佛主题
Author: 豆包
Description: 神人佛主题：一个自用的内容社区建站主题。内置功德钱包（余额 / 积分 / 红包）、用户投稿发布、站内私信聊天（文字 / 图片 / 表情 / 功德红包）、系统消息中心、用户中心与新用户审核，手机端微信式体验。全站资源本地化、零外联、自适应手机 / 平板 / 电脑，搬到任何网站都能直接使用。
Version: 2.2.83
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.0
License: GNU General Public License v2 or later
Text Domain: zibll-sim
Tags: responsive, light-mode, dark-mode, blog, two-column, three-column, featured-images, theme-options
*/

/* ========== 配色变量（默认：皓月白） ========== */
:root {
	--bg: #f2f4f7;            /* 页面背景 */
	--bg-soft: #ffffff;       /* 抽屉面板 */
	--card: #ffffff;          /* 卡片背景 */
	--card-alt: #eef0f3;      /* 封面占位 */
	--border: #e3e7ec;        /* 边框 */
	--border-light: #e8ebef;  /* 浅边框 */
	--text: #3a4149;          /* 正文 */
	--text-strong: #111827;   /* 标题 */
	--text-muted: #8b929a;    /* 次要文字 */
	--text-2: #6b7280;        /* 次级 */
	--primary: #2563eb;       /* 主色调（后台可改） */
	--primary-2: #1d4ed8;     /* 主色加深（渐变用） */
	--primary-text: #ffffff;  /* 主色上的文字 */
	--ok: #16a34a;            /* 成功/加 */
	--err: #dc2626;           /* 危险/减 */
	--gold: #b45309;          /* 功德数字 */
	--tag-bg: #eff4ff;        /* 分类标签底 */
	--topbar-bg: rgba(255, 255, 255, 0.94);
	--nav-bg: rgba(255, 255, 255, 0.97);
	--shadow: 0 1px 3px rgba(17, 24, 39, 0.05), 0 4px 14px rgba(17, 24, 39, 0.04);
	--shadow-hover: 0 6px 18px rgba(17, 24, 39, 0.10), 0 14px 30px rgba(17, 24, 39, 0.07);
	--radius: 14px;
}

/* 配色方案二：青瓷蓝 */
body.zibll-scheme-blue {
	--bg: #eef4fb;
	--bg-soft: #f8fbff;
	--card: #ffffff;
	--card-alt: #e2edf8;
	--border: #d8e4f0;
	--border-light: #e2ebf5;
	--text: #2f3b4d;
	--text-strong: #16324f;
	--text-muted: #7a8fa3;
	--text-2: #5f7389;
	--primary: #0284c7;
	--primary-2: #0369a1;
	--primary-text: #ffffff;
	--ok: #059669;
	--err: #dc2626;
	--gold: #b45309;
	--tag-bg: #e3f2fd;
	--topbar-bg: rgba(248, 251, 255, 0.94);
	--nav-bg: rgba(248, 251, 255, 0.97);
}

/* 配色方案三：暖米色 */
body.zibll-scheme-warm {
	--bg: #faf6f0;
	--bg-soft: #fffdf9;
	--card: #ffffff;
	--card-alt: #f3ece2;
	--border: #eadfd0;
	--border-light: #f0e8dc;
	--text: #4a4137;
	--text-strong: #2b241c;
	--text-muted: #9c8f7d;
	--text-2: #7a6f5f;
	--primary: #d97706;
	--primary-2: #b45309;
	--primary-text: #ffffff;
	--ok: #16a34a;
	--err: #dc2626;
	--gold: #b45309;
	--tag-bg: #fdf1e3;
	--topbar-bg: rgba(255, 253, 249, 0.94);
	--nav-bg: rgba(255, 253, 249, 0.97);
}

/* 配色方案四：暗夜黑（保留深色） */
body.zibll-scheme-dark {
	--bg: #111315;
	--bg-soft: #171a1d;
	--card: #191d20;
	--card-alt: #22262a;
	--border: #23282d;
	--border-light: #262c31;
	--text: #d8dde2;
	--text-strong: #ffffff;
	--text-muted: #6f7780;
	--text-2: #8b949c;
	--primary: #1d4ed8;
	--primary-2: #1639a8;
	--primary-text: #dbeafe;
	--ok: #7ee2a8;
	--err: #f87171;
	--gold: #ffd66b;
	--tag-bg: rgba(29, 78, 216, 0.16);
	--topbar-bg: rgba(17, 19, 21, 0.94);
	--nav-bg: rgba(17, 19, 21, 0.97);
}

/* ========== 基础 ========== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
	background: var(--bg);
	color: var(--text);
	font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
	line-height: 1.5;
	margin: 0;
	transition: background 0.3s, color 0.3s;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { vertical-align: middle; }
input, select, textarea, button { font: inherit; color: inherit; }

/* 主内容限宽：手机 560，平板 720，PC 1040 */
.zibll-main {
	.max-width: 560px;
	margin: 0 auto;
	padding: 58px 10px 8px;
	min-height: 100vh;
}

/* ========== 顶部栏 ========== */
.zibll-topbar {
	position: fixed;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	max-width: 560px;
	height: 50px;
	background: var(--topbar-bg);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
	box-shadow: 0 1px 8px rgba(17, 24, 39, 0.04);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 10px;
	z-index: 90;
}
.zibll-topbar-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	color: var(--text-2);
	border-radius: 10px;
	transition: background 0.2s;
	cursor: pointer;
	/* button 元素清除浏览器默认边框 / 背景，只留图标 */
	border: 0;
	background: transparent;
	padding: 0;
	-webkit-appearance: none;
	appearance: none;
}
.zibll-topbar-btn:active { background: var(--card-alt); }
.zibll-brand { display: flex; align-items: center; gap: 9px; min-width: 0; }

.zibll-brand-name {
	font-size: 17px;
	font-weight: 800;
	color: var(--text-strong);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	letter-spacing: 0.2px;
}
.zibll-topbar .custom-logo { height: 32px; width: auto; }
.zibll-brand-img { height: 32px; width: auto; max-width: 170px; object-fit: contain; border-radius: 6px; display: block; }
.zibll-topbar .custom-logo img { height: 32px; width: auto; }

/* ========== 抽屉菜单 ========== */
.zibll-drawer-check { display: none; }
.zibll-scrim {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s;
	z-index: 98;
}
.zibll-drawer {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: 286px;
	background: var(--bg-soft);
	border-right: 1px solid var(--border);
	transform: translateX(-100%);
	transition: transform 0.28s;
	z-index: 99;
	overflow-y: auto;
	padding: 22px 18px;
	box-shadow: 4px 0 24px rgba(17, 24, 39, 0.08);
}
.zibll-drawer-check:checked ~ .zibll-scrim { opacity: 1; visibility: visible; }
.zibll-drawer-check:checked ~ .zibll-drawer { transform: translateX(0); }
.zibll-drawer-head { text-align: center; }
.zibll-drawer-brand-img { display: block; width: 68px; height: 68px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; border: 2px solid var(--border); box-shadow: var(--shadow); }
.zibll-drawer-logo { font-size: 20px; font-weight: 800; color: var(--text-strong); }
.zibll-drawer-desc { font-size: 12px; color: var(--text-muted); margin: 6px 0 18px; }
.zibll-drawer-nav { list-style: none; }
.zibll-drawer-list { list-style: none; }
.zibll-drawer-item a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 13px 6px;
	border-bottom: 1px solid var(--border);
	color: var(--text);
	font-size: 14px;
	border-radius: 8px;
	transition: background 0.2s;
}
.zibll-drawer-item a:hover { background: var(--card-alt); }
.zibll-drawer-count { color: var(--text-muted); font-size: 12px; }
.zibll-drawer-list .menu-item a { display: block; padding: 13px 6px; border-bottom: 1px solid var(--border); color: var(--text); font-size: 14px; border-radius: 8px; }
/* 侧边栏两列排版（后台「侧边栏设置」开关控制）：一排两个，自动排下来 */
.zibll-drawer-grid .zibll-drawer-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	padding: 4px 0;
}
.zibll-drawer-grid .zibll-drawer-item a,
.zibll-drawer-grid .zibll-drawer-list .menu-item a {
	justify-content: center;
	padding: 13px 8px;
	border: 1px solid var(--border);
	background: var(--card);
	box-shadow: var(--shadow);
	border-radius: 10px;
	font-weight: 600;
	text-align: center;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	display: flex;
}
	.zibll-drawer-grid .zibll-drawer-count { font-size: 11px; margin-left: 4px; }
	/* 两列模式下带子菜单的父项占满整行，其子分类在整行内排两列，右侧不留空白 */
	.zibll-drawer-grid .menu-item-has-children { grid-column: 1 / -1; }
	.zibll-drawer-grid .menu-item-has-children > a {
		border: 1px solid var(--border);
		background: var(--card);
		box-shadow: var(--shadow);
		border-radius: 10px;
		padding: 12px 8px;
		font-weight: 600;
	}
	.zibll-drawer-grid .sub-menu {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
		list-style: none;
		padding: 0;
		margin: 6px 0 0;
	}
	.zibll-drawer-grid .sub-menu .menu-item a { border: 1px solid var(--border); background: var(--card-alt); box-shadow: var(--shadow); font-size: 13px; font-weight: 500; padding: 12px 8px; }
/* 抽屉直通后台按钮 */
.zibll-drawer-admin { margin-top: 20px; }
.zibll-drawer-admin a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	background: linear-gradient(135deg, var(--primary), var(--primary-2));
	color: var(--primary-text);
	font-size: 14px;
	font-weight: 700;
	padding: 13px 10px;
	border-radius: 11px;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
	transition: transform 0.2s, box-shadow 0.2s;
}
.zibll-drawer-admin a:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(37, 99, 235, 0.34); }

/* ========== 页面标题 ========== */
.zibll-page-title {
	font-size: 19px;
	font-weight: 800;
	color: var(--text-strong);
	padding: 16px 6px 12px;
	letter-spacing: 0.3px;
}
.zibll-section-title {
	font-size: 15px;
	font-weight: 800;
	color: var(--text-strong);
	padding: 18px 6px 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.zibll-section-title::before {
	content: "";
	width: 4px;
	height: 16px;
	border-radius: 3px;
	background: linear-gradient(180deg, var(--primary), var(--primary-2));
}

/* ========== 双列卡片流 ========== */
.zibll-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.zibll-card {
	background: var(--card);
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
	display: block;
	transition: transform 0.25s, box-shadow 0.25s;
}
.zibll-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-hover);
}
.zibll-card-cover { position: relative; aspect-ratio: 16 / 10; background: var(--card-alt); overflow: hidden; }
.zibll-card-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s;
}
.zibll-card:hover .zibll-card-cover img { transform: scale(1.05); }
.zibll-card-top {
	position: absolute;
	top: 8px;
	left: 8px;
	background: linear-gradient(135deg, #ef4444, #f97316);
	color: #fff;
	font-size: 11px;
	line-height: 1;
	padding: 4px 8px;
	border-radius: 6px;
	font-weight: 700;
	box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}
.zibll-nav-badge[hidden] { display: none; }
.zibll-card-nophoto {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: var(--text-muted);
	background: linear-gradient(135deg, var(--card-alt), var(--card));
}
.zibll-card-body { padding: 12px; }
/* 卡片标题：清晰深色大字，完整显示不截断 */
.zibll-card-title {
	color: var(--text-strong);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	padding: 10px 6px 0;
	word-break: break-all;
}
.zibll-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.zibll-tag {
	font-size: 11px;
	padding: 3px 9px;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 600;
}
.zibll-tag-cat { background: var(--tag-bg); color: var(--primary); }
.zibll-tag-hash { background: var(--card-alt); color: var(--text-2); }
.zibll-card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 11px;
}
.zibll-card-author { display: flex; align-items: center; gap: 6px; min-width: 0; }
.zibll-card-avatar { flex: none; }
.zibll-card-time { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.zibll-card-like { display: flex; align-items: center; gap: 3px; font-size: 11px; color: var(--text-muted); }

/* 头像（本地图 / 首字占位） */
.zibll-avatar-img {
	border-radius: 50%;
	object-fit: cover;
	background: var(--card-alt);
	box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--border);
}
.zibll-avatar-text {
	display: inline-block;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--primary), #7c3aed);
	color: #fff;
	text-align: center;
	overflow: hidden;
	box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--border);
}

/* ========== 占位 / 提示 ========== */
.zibll-placeholder { text-align: center; color: var(--text-muted); padding: 40px 16px; font-size: 14px; }
.zibll-placeholder p { margin: 6px 0; }
.zibll-alert { padding: 11px 15px; border-radius: 10px; font-size: 13px; margin: 10px 6px; box-shadow: var(--shadow); }
.zibll-alert-ok { background: rgba(22, 163, 74, 0.10); color: var(--ok); border: 1px solid rgba(22, 163, 74, 0.28); }
.zibll-alert-err { background: rgba(220, 38, 38, 0.10); color: var(--err); border: 1px solid rgba(220, 38, 38, 0.28); }

/* ========== 分页 ========== */
.zibll-pagination { display: flex; justify-content: center; gap: 8px; padding: 12px 0 6px; flex-wrap: wrap; }
.zibll-pagination a, .zibll-pagination span {
	background: var(--card);
	border: 1px solid var(--border-light);
	color: var(--text);
	font-size: 13px;
	padding: 7px 15px;
	border-radius: 9px;
	box-shadow: var(--shadow);
	transition: all 0.2s;
}
.zibll-pagination .current { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: var(--primary-text); border-color: transparent; }
.zibll-pagination a:hover { border-color: var(--primary); color: var(--primary); }

/* ========== 搜索条 ========== */
.zibll-searchbar { display: flex; gap: 8px; padding: 12px 6px; }
.zibll-searchbar input {
	flex: 1;
	background: var(--card);
	border: 1px solid var(--border-light);
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 14px;
	color: var(--text);
	box-shadow: var(--shadow);
	transition: border-color 0.2s;
}
.zibll-searchbar input:focus { outline: none; border-color: var(--primary); }
.zibll-searchbar button {
	background: linear-gradient(135deg, var(--primary), var(--primary-2));
	color: var(--primary-text);
	border: none;
	border-radius: 10px;
	padding: 0 18px;
	cursor: pointer;
	font-weight: 600;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* ========== 文章详情 ========== */
.zibll-single { padding: 8px 6px; }
/* 头部大方格：标题 + 发布信息 + 标签 全包在渐变格里 */
.zibll-single-head {
	background: linear-gradient(135deg, var(--primary), var(--primary-2) 60%, #7c3aed);
	border-radius: 16px;
	padding: 20px 18px 18px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 24px rgba(37, 99, 235, 0.24);
	position: relative;
	overflow: hidden;
}
.zibll-single-head::after {
	content: "";
	position: absolute;
	top: -60%;
	right: -20%;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.07);
}
.zibll-single-title {
	font-size: 21px;
	font-weight: 800;
	color: var(--primary-text);
	line-height: 1.45;
	letter-spacing: 0.2px;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.28);
	margin: 0;
}
.zibll-single-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0 0;
}
.zibll-single-author { display: flex; align-items: center; gap: 9px; }
.zibll-single-author-name { font-size: 13px; color: #ffffff; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.zibll-single-date { font-size: 11px; color: rgba(255, 255, 255, 0.75); }
.zibll-single-like { display: flex; align-items: center; gap: 4px; color: rgba(255, 255, 255, 0.85); font-size: 12px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
/* 标签 + 编辑/删除 同一排，紧凑无空隙 */
.zibll-single-tags-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.zibll-single-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.zibll-single-head .zibll-tag-cat {
	background: rgba(255, 255, 255, 0.18);
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.22);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.zibll-single-head .zibll-card-avatar img,
.zibll-single-head .zibll-card-avatar .zibll-avatar-img,
.zibll-single-head .zibll-card-avatar .zibll-avatar-text {
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 0 0 3px rgba(255, 255, 255, 0.25);
}
.zibll-single-ops { display: flex; align-items: center; gap: 6px; }
.zibll-op {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	font-weight: 600;
	padding: 5px 10px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	background: rgba(255, 255, 255, 0.16);
	color: #ffffff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
	transition: background 0.2s, transform 0.2s;
	white-space: nowrap;
}
.zibll-op:hover { background: rgba(255, 255, 255, 0.3); transform: translateY(-1px); }
.zibll-op-del { background: rgba(239, 68, 68, 0.32); border-color: rgba(239, 68, 68, 0.5); }
.zibll-op-del:hover { background: rgba(239, 68, 68, 0.52); }
/* 内容大方格：白底卡片 + 边框 + 圆角 + 阴影 */
.zibll-single-content {
	font-size: 15px;
	color: var(--text);
	line-height: 1.9;
	word-break: break-word;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 18px 16px;
	box-shadow: var(--shadow);
	margin-top: 14px;
}
.zibll-single-content p { margin: 0 0 16px; }
.zibll-single-content img { border-radius: 10px; margin: 10px 0; box-shadow: var(--shadow); }
.zibll-single-content h2, .zibll-single-content h3 { color: var(--text-strong); margin: 20px 0 12px; }
.zibll-single-content blockquote {
	border-left: 3px solid var(--primary);
	background: var(--card);
	padding: 12px 16px;
	border-radius: 0 10px 10px 0;
	margin: 14px 0;
	color: var(--text-2);
	box-shadow: var(--shadow);
}
/* ========== 自适应加固：宽内容一律不撑破页面 ========== */
.zibll-single-content table { display: block; max-width: 100%; overflow-x: auto; }
.zibll-single-content pre { max-width: 100%; overflow-x: auto; }
.zibll-single-content iframe,
.zibll-single-content video,
.zibll-single-content figure { max-width: 100%; }
.zibll-single-content figure img,
.zibll-single-content iframe { width: 100%; height: auto; }
html, body { overflow-x: hidden; }
.zibll-single-nav { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.zibll-single-nav-item {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 12px 16px;
	box-shadow: var(--shadow);
	transition: transform 0.2s;
}
.zibll-single-nav-item:hover { transform: translateY(-1px); }
.zibll-single-nav-label { font-size: 11px; color: var(--text-muted); }
.zibll-single-nav-title { font-size: 13px; color: var(--text); font-weight: 600; }

/* ========== 评论 ========== */
	.zibll-comments {
		margin-top: 24px;
		background: var(--card);
		border: 1px solid var(--border);
		border-radius: var(--radius);
		box-shadow: var(--shadow);
		padding: 16px 16px 18px;
	}
.zibll-comments-title { font-size: 15px; font-weight: 800; color: var(--text-strong); padding: 4px 4px 12px; }
.zibll-comment-list { list-style: none; }
.zibll-comment-list .children { list-style: none; padding-left: 16px; }
.zibll-comment-inner { display: flex; gap: 10px; padding: 14px 6px; border-bottom: 1px solid var(--border); }
.zibll-comment-avatar { flex: none; }
.zibll-comment-body { flex: 1; min-width: 0; }
.zibll-comment-head { display: flex; align-items: center; gap: 8px; }
.zibll-comment-author { font-size: 13px; color: var(--text-strong); font-weight: 700; }
.zibll-comment-date { font-size: 11px; color: var(--text-muted); }
.zibll-comment-text { font-size: 14px; color: var(--text); margin-top: 5px; word-break: break-word; }
.zibll-comment-moderate { font-size: 12px; color: #d97706; margin-top: 5px; }
.zibll-comment-reply { margin-top: 7px; }
.zibll-comment-reply a { font-size: 12px; color: var(--primary); font-weight: 600; }
.zibll-comment-closed { font-size: 13px; color: var(--text-muted); padding: 12px 6px; }
.zibll-comment-form { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.zibll-comment-form .zibll-field { margin: 0; }
.zibll-comment-form textarea, .zibll-comment-form input[type="text"], .zibll-comment-form input[type="email"] {
	width: 100%;
	background: var(--card);
	border: 1px solid var(--border-light);
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 14px;
	color: var(--text);
	box-shadow: var(--shadow);
}
.zibll-comment-form textarea:focus, .zibll-comment-form input:focus { outline: none; border-color: var(--primary); }
.zibll-comment-submit {
	background: linear-gradient(135deg, var(--primary), var(--primary-2));
	color: var(--primary-text);
	border: none;
	border-radius: 10px;
	padding: 11px 18px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	align-self: flex-start;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* ========== 表单（发布 / 用户中心 / 登录） ========== */
.zibll-form { display: flex; flex-direction: column; gap: 13px; padding: 8px 6px 12px; }
.zibll-field-group { display: flex; flex-direction: column; gap: 6px; }
.zibll-field-row { display: flex; gap: 10px; }
.zibll-field-row .zibll-field-group { flex: 1; }
.zibll-field-label { font-size: 13px; color: var(--text-2); font-weight: 600; }
.zibll-field-group input, .zibll-field-group select, .zibll-field-group textarea {
	width: 100%;
	background: var(--card);
	border: 1px solid var(--border-light);
	border-radius: 10px;
	padding: 11px 14px;
	font-size: 14px;
	color: var(--text);
	box-shadow: var(--shadow);
	transition: border-color 0.2s;
}
.zibll-field-group input:focus, .zibll-field-group select:focus, .zibll-field-group textarea:focus { outline: none; border-color: var(--primary); }
.zibll-btn {
	display: inline-block;
	background: linear-gradient(135deg, var(--primary), var(--primary-2));
	color: var(--primary-text);
	border: none;
	border-radius: 10px;
	padding: 11px 22px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
	transition: opacity 0.2s;
}
.zibll-btn:hover { opacity: 0.92; }
.zibll-btn-full { width: 100%; }
.zibll-btn-ghost { background: var(--card-alt); color: var(--text); box-shadow: none; }
.zibll-form-tip { font-size: 12px; color: var(--text-muted); }

/* ========== 游客功能介绍页（钱包/发布/信息） ========== */
.zibll-guest { padding: 12px 4px 24px; }
.zibll-guest-hero {
	background: linear-gradient(135deg, var(--primary), var(--primary-2) 60%, #7c3aed);
	border-radius: 18px;
	padding: 30px 20px 26px;
	text-align: center;
	color: var(--primary-text);
	margin-bottom: 14px;
	box-shadow: 0 6px 18px rgba(37, 99, 235, 0.22);
}
.zibll-guest-emoji { display: block; font-size: 46px; line-height: 1; margin-bottom: 12px; }
.zibll-guest-title { font-size: 22px; font-weight: 700; letter-spacing: 2px; margin: 0 0 8px; }
.zibll-guest-slogan { font-size: 13px; opacity: 0.92; margin: 0; }
.zibll-guest-card {
	background: var(--card);
	border: 1px solid var(--border-light);
	border-radius: 16px;
	padding: 16px 14px;
}
.zibll-guest-lead {
	font-size: 14px;
	line-height: 1.8;
	color: var(--text-2);
	margin: 0 0 14px;
	padding: 0 2px 12px;
	border-bottom: 1px dashed var(--border);
}
.zibll-guest-item {
	display: flex;
	gap: 10px;
	padding: 12px 2px;
	border-bottom: 1px dashed var(--border-light);
}
.zibll-guest-item:last-of-type { border-bottom: none; }
.zibll-guest-item-emoji { font-size: 22px; line-height: 1.4; flex-shrink: 0; }
.zibll-guest-item-body { min-width: 0; }
.zibll-guest-item-title { font-size: 14px; font-weight: 700; color: var(--text-strong); margin: 0 0 4px; }
.zibll-guest-item-text { font-size: 12.5px; line-height: 1.7; color: var(--text-2); margin: 0; }
.zibll-guest-note {
	margin-top: 12px;
	background: var(--card-alt);
	border-radius: 10px;
	padding: 11px 12px;
	font-size: 12.5px;
	color: var(--text);
	line-height: 1.7;
}

/* ========== 私信聊天收费提示（与工具按钮同一排，紧挨红包，字体最小） ========== */
.zibll-chat-tools { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.zibll-chat-fee-bar {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	margin-left: 2px;
	font-size: 10px;
	font-style: normal;
	line-height: 1;
	color: var(--text-muted);
	white-space: nowrap;
}
.zibll-chat-fee-bar em {
	font-style: normal;
	background: var(--card);
	border: 1px solid var(--border-light);
	border-radius: 4px;
	padding: 2px 4px;
	margin: 0 1px;
	white-space: nowrap;
}
.zibll-chat-fee-note {
	text-align: center;
	font-size: 11px;
	color: var(--text-muted);
	padding: 6px 0 2px;
	pointer-events: none;
}

/* ========== 网站底部统计一排（紧贴内容、单排不换行、导航栏上方） ========== */
.zibll-site-stats {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0 6px;
	padding: 2px 4px 78px;
	font-size: 11px;
	color: var(--text-2);
}
.zibll-stat {
	white-space: nowrap;
	background: var(--card);
	border: 1px solid var(--border-light);
	border-radius: 6px;
	padding: 2px 7px;
	line-height: 1.6;
	flex-shrink: 0;
}

/* ========== 登录 / 注册：介绍块（手机紧凑 / 电脑分屏） ========== */
.zibll-auth-wrap { max-width: 420px; margin: 6px auto 26px; }
.zibll-auth-intro {
	background: linear-gradient(135deg, var(--primary), var(--primary-2) 60%, #7c3aed);
	color: var(--primary-text);
	border-radius: 16px;
	padding: 20px 16px;
	margin: 0 0 12px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 24px rgba(37, 99, 235, 0.24);
}
.zibll-auth-intro-title { font-size: 19px; font-weight: 800; letter-spacing: 2px; margin: 0 0 8px; }
.zibll-auth-intro-text { font-size: 13px; line-height: 1.7; opacity: 0.95; margin: 0 0 10px; }
.zibll-auth-intro-list { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.zibll-auth-intro-list li { padding: 3px 0; opacity: 0.95; }

/* ========== 钱包（功德） ========== */
.zibll-wallet-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin: 10px 6px;
}
.zibll-wallet-card {
	background: linear-gradient(135deg, var(--primary), var(--primary-2) 55%, #7c3aed);
	border-radius: 16px;
	padding: 24px 16px;
	margin: 0;
	text-align: center;
	color: #fff;
	box-shadow: 0 8px 26px rgba(37, 99, 235, 0.28);
	position: relative;
	overflow: hidden;
}
.zibll-wallet-card.zibll-wallet-points {
	background: linear-gradient(135deg, #7c3aed, #a855f7 55%, #2563eb);
	box-shadow: 0 8px 26px rgba(124, 58, 237, 0.28);
}
.zibll-wallet-card::after {
	content: "";
	position: absolute;
	top: -50%;
	right: -30%;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
}
.zibll-wallet-label { font-size: 13px; color: rgba(255, 255, 255, 0.85); }
.zibll-wallet-num { font-size: 40px; font-weight: 800; color: #ffd66b; line-height: 1.3; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); word-break: break-all; }
.zibll-wallet-points .zibll-wallet-num { color: #e9d5ff; }
@media (max-width: 420px) {
	.zibll-wallet-grid { gap: 8px; margin: 10px 4px; }
	.zibll-wallet-card { padding: 18px 10px; }
	.zibll-wallet-num { font-size: 30px; }
	.zibll-wallet-tip { font-size: 11px; }
}
.zibll-wallet-tip { font-size: 12px; color: rgba(255, 255, 255, 0.8); margin-top: 8px; }
.zibll-rule-card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 16px;
	margin: 12px 6px;
	box-shadow: var(--shadow);
}
.zibll-rule-title { font-size: 14px; font-weight: 800; color: var(--text-strong); margin-bottom: 8px; }
.zibll-rule-list { list-style: none; }
.zibll-rule-list li { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13px; color: var(--text); border-bottom: 1px solid var(--border); }
.zibll-rule-list li:last-child { border-bottom: none; }
.zibll-rule-list b { font-weight: 700; }
.zibll-rule-list b.up { color: var(--ok); }
.zibll-log-list { list-style: none; }
.zibll-log-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 13px 16px;
	margin: 9px 6px;
	box-shadow: var(--shadow);
}
.zibll-log-note { font-size: 13px; color: var(--text); font-weight: 600; }
.zibll-log-time { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.zibll-log-amount { font-size: 16px; font-weight: 800; }
.zibll-log-amount.up { color: var(--ok); }
.zibll-log-amount.down { color: var(--err); }

/* ========== 我的列表（用户中心文章：三列整齐排列，仅标题不显示正文） ========== */
.zibll-mylist {
	border: 1px solid var(--border);
	border-radius: 14px;
	overflow: hidden;
	background: var(--card);
	box-shadow: var(--shadow);
	margin: 4px 6px 14px;
}
.zibll-mylist-head,
.zibll-mylist-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
}
.zibll-mylist-head {
	background: var(--card-alt);
	border-bottom: 1px solid var(--border);
	font-size: 12px;
	font-weight: 700;
	color: var(--text-2);
}
.zibll-mylist-item + .zibll-mylist-item {
	border-top: 1px solid var(--border);
}
.zibll-mylist-col-title { flex: 1 1 auto; min-width: 0; }
.zibll-mylist-col-state { width: 64px; text-align: center; flex: 0 0 auto; }
.zibll-mylist-col-date { width: 92px; text-align: right; flex: 0 0 auto; }
.zibll-mylist-title {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 14px;
	color: var(--text-strong);
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
}
.zibll-mylist-title:hover { color: var(--primary); }
.zibll-mylist-date {
	width: 92px;
	text-align: right;
	flex: 0 0 auto;
	font-size: 12px;
	color: var(--text-muted);
}
.zibll-status { font-size: 11px; padding: 3px 9px; border-radius: 6px; font-weight: 600; flex: 0 0 auto; }
.zibll-status-wait { background: rgba(217, 119, 6, 0.14); color: #d97706; }
.zibll-status-ok { background: rgba(22, 163, 74, 0.12); color: var(--ok); }
.zibll-status-gray { background: var(--card-alt); color: var(--text-2); }
@media (max-width: 420px) {
	.zibll-mylist-head { display: none; }
	.zibll-mylist-date { width: 72px; }
}

/* ========== 前端登录卡片 ========== */
.zibll-login-card {
	max-width: 420px;
	margin: 6px auto 26px;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 16px;
	box-shadow: var(--shadow);
	padding: 28px 22px 20px;
	text-align: center;
}
.zibll-login-logo {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: 2px;
	background: linear-gradient(135deg, var(--primary), var(--primary-2));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	margin-bottom: 6px;
}
.zibll-login-sub {
	font-size: 13px;
	color: var(--text-2);
	margin: 0 0 18px;
}
.zibll-login-card .zibll-form { text-align: left; }
.zibll-login-card .zibll-field-group { text-align: left; }
.zibll-login-logo-sub { font-size: 17px; font-weight: 800; }

/* ========== 登录 / 注册选项卡卡片（纯 CSS 切换，零 JS） ========== */
.zibll-auth {
	max-width: 420px;
	margin: 6px auto 26px;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 18px;
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
	overflow: hidden;
}
.zibll-auth-head {
	background: linear-gradient(135deg, var(--primary), var(--primary-2));
	padding: 28px 20px 20px;
	text-align: center;
	position: relative;
}
.zibll-auth-logo {
	font-size: 23px;
	font-weight: 800;
	letter-spacing: 3px;
	color: #ffffff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}
.zibll-auth-sub {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.88);
	margin: 7px 0 0;
	letter-spacing: 2px;
}
.zibll-tabs {
	display: flex;
	gap: 8px;
	background: var(--card-alt);
	padding: 8px;
	border-bottom: 1px solid var(--border);
}
.zibll-tab-btn {
	flex: 1;
	text-align: center;
	padding: 9px 0;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 700;
	color: var(--text-2);
	cursor: pointer;
	transition: all 0.2s;
	user-select: none;
	-webkit-user-select: none;
}
.zibll-tab-btn:hover { color: var(--text-strong); }
.zibll-tab-switch { position: absolute; opacity: 0; pointer-events: none; }
#zibllsim_tab_login:checked ~ .zibll-tabs .zibll-tab-btn-login,
#zibllsim_tab_reg:checked ~ .zibll-tabs .zibll-tab-btn-reg {
	background: var(--primary);
	color: #ffffff;
	box-shadow: 0 3px 8px rgba(37, 99, 235, 0.3);
}
.zibll-tab-panel { display: none; }
#zibllsim_tab_login:checked ~ .zibll-tab-panel-login,
#zibllsim_tab_reg:checked ~ .zibll-tab-panel-reg { display: block; }
.zibll-tab-panel .zibll-form { padding: 18px 18px 20px; }

/* 加减乘除验证码：题目 + 输入框 同一行，跟随表单 */
.zibll-captcha-row {
	display: flex;
	align-items: center;
	gap: 8px;
}
.zibll-captcha-q {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 92px;
	height: 38px;
	padding: 0 12px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1px;
	color: var(--primary);
	background: rgba(37, 99, 235, 0.08);
	border: 1px dashed rgba(37, 99, 235, 0.4);
	border-radius: 9px;
}
.zibll-captcha-row input {
	flex: 1 1 auto;
	min-width: 0;
}
@media (max-width: 420px) {
	.zibll-captcha-q { min-width: 80px; }
}

/* 输入即时校验（纯 CSS，零 JS）：非空但格式不符 → 红框红字 */
.zibll-form input:invalid:not(:placeholder-shown) {
	border-color: #ef4444 !important;
	background: rgba(239, 68, 68, 0.05);
	box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.12);
	color: #dc2626;
}
.zibll-form input:invalid:not(:placeholder-shown)::placeholder { color: #f87171; }
.zibll-form input:valid { border-color: var(--border); }

/* ========== 用户中心折叠功能组（原生 details，零 JS） ========== */
.zibll-acc {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 12px 6px 20px;
}
.zibll-acc-item {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 14px;
	box-shadow: var(--shadow);
	overflow: hidden;
}
.zibll-acc-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	font-size: 14px;
	font-weight: 700;
	color: var(--text-strong);
	cursor: pointer;
	list-style: none;
	user-select: none;
	-webkit-user-select: none;
}
.zibll-acc-head::-webkit-details-marker { display: none; }
.zibll-acc-head::after {
	content: '+';
	font-size: 18px;
	font-weight: 600;
	line-height: 1;
	color: var(--primary);
	transition: transform 0.2s;
}
.zibll-acc-item[open] .zibll-acc-head::after { transform: rotate(45deg); }
.zibll-acc-body { padding: 14px 16px 16px; border-top: 1px solid var(--border); }
.zibll-acc-body .zibll-form { padding: 0; }
.zibll-acc-body .zibll-btn + .zibll-form { margin-top: 10px; }

/* ========== 发布页上传区（两个小按钮，点击直接选文件，随文章一次提交，零 JS） ========== */
.zibll-upload-btns {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 4px 0 14px;
}
.zibll-upload-pick {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.zibll-upload-pick input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	z-index: -1;
}
.zibll-upload-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 700;
	color: var(--primary);
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 999px;
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;
	box-shadow: var(--shadow);
	transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.zibll-upload-btn svg {
	width: 15px;
	height: 15px;
}
.zibll-upload-btn:hover,
.zibll-upload-btn:focus-within {
	color: #fff;
	border-color: var(--primary);
	background: linear-gradient(135deg, var(--primary), var(--primary-2));
}
.zibll-upload-has {
	font-size: 11px;
	color: var(--primary);
	white-space: nowrap;
}
.zibll-upload-tip {
	width: 100%;
	font-size: 11px;
	line-height: 1.6;
	color: var(--text-soft);
}

/* ========== 媒体选择页（发布页「选择图片/文件」进入） ========== */
.zibll-pick-upload {
	margin: 4px 6px 16px;
	padding: 14px;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 14px;
	box-shadow: var(--shadow);
}
.zibll-pick-upload .zibll-form { padding: 0; }
.zibll-pick-upload input[type="file"] {
	width: 100%;
	font-size: 13px;
	padding: 10px;
	border: 1px dashed var(--border);
	border-radius: 10px;
	background: var(--card-soft, var(--card));
	box-sizing: border-box;
}
.zibll-pick-hint {
	margin: 0 6px 10px;
	font-size: 12px;
	color: var(--text-soft);
}
/* 版本水印（用于确认已更新到最新代码） */
.zibll-ver {
	margin: 0;
	padding: 8px 14px 10px;
	text-align: center;
	font-size: 10px;
	letter-spacing: 0.5px;
	color: var(--text-soft);
	opacity: 0.7;
}

/* 加载更多 */
.zibll-pick-more {
	margin: 4px 6px 16px;
	text-align: center;
}
.zibll-pick-more .zibll-btn-ghost {
	width: 100%;
}
/* 发布页内嵌媒体库（点开即用，不用跳页面） */
.zibll-pick-inline {
	margin: 14px 0 4px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--card);
	box-shadow: var(--shadow);
	overflow: hidden;
}
.zibll-pick-inline > summary {
	padding: 12px 14px;
	font-weight: 700;
	font-size: 13px;
	color: var(--text-strong);
	cursor: pointer;
	list-style: none;
	user-select: none;
}
.zibll-pick-inline > summary::-webkit-details-marker { display: none; }
.zibll-pick-inline > summary::before { content: '📁 '; }
.zibll-pick-inline[open] > summary::before { content: '📂 '; }
.zibll-pick-inline-body { padding: 2px 14px 14px; }
.zibll-inline-msg {
	margin-bottom: 10px;
	padding: 8px 12px;
	border-radius: 8px;
	background: var(--card-soft, var(--card));
	color: var(--primary);
	font-size: 13px;
	font-weight: 600;
}
.zibll-inline-msg-ok {
	background: #d1fae5;
	color: #065f46;
}
.zibll-inline-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px dashed var(--border);
	font-size: 13px;
}
.zibll-inline-pager-now { font-weight: 700; color: var(--text); }
.zibll-inline-pager-dis { color: var(--text-soft); opacity: 0.5; }
.zibll-inline-pager .zibll-btn { padding: 6px 16px; font-size: 13px; }

/* 无刷新插入的顶部浮动提示 */
.zibll-js-toast {
	position: fixed;
	top: 14px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 99999;
	max-width: 90%;
	padding: 10px 16px;
	border-radius: 10px;
	background: #0f172a;
	color: #fff;
	font-size: 14px;
	line-height: 1.5;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
	opacity: 1;
	transition: opacity 0.4s ease;
	word-break: break-all;
	text-align: center;
}
.zibll-js-toast-err { background: #991b1b; }
.zibll-js-toast-hide { opacity: 0; }

.zibll-inline-upload {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-bottom: 14px;
}
.zibll-inline-upload input[type="file"] {
	flex: 1;
	min-width: 0;
	font-size: 12px;
	color: var(--text-soft);
}
.zibll-upload-progress {
	margin: 0 0 14px;
}
.zibll-upload-track {
	height: 8px;
	border-radius: 999px;
	background: var(--card-soft, #e5e7eb);
	overflow: hidden;
}
.zibll-upload-fill {
	display: block;
	height: 100%;
	width: 0;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--primary), #34d399);
	transition: width 0.15s ease;
}
.zibll-upload-stat {
	display: block;
	margin-top: 5px;
	font-size: 12px;
	font-weight: 700;
	color: var(--primary);
	text-align: right;
}
.zibll-media-preview {
	margin: 12px 0;
	padding: 12px;
	border: 1px dashed var(--border);
	border-radius: 12px;
	background: var(--card-soft, #f8fafc);
}
.zibll-media-preview-head {
	margin-bottom: 10px;
	font-size: 13px;
	font-weight: 700;
	color: var(--text-soft);
}
.zibll-media-preview-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.zibll-media-preview-empty {
	width: 100%;
	font-size: 12px;
	color: var(--text-soft);
	padding: 4px 0;
}
.zibll-mp-item {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 150px;
	padding: 4px 8px 4px 4px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--card);
	font-size: 12px;
}
.zibll-mp-item img {
	width: 44px;
	height: 44px;
	border-radius: 8px;
	object-fit: cover;
	display: block;
	flex: none;
}
.zibll-mp-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--text);
}
.zibll-mp-ic {
	font-size: 22px;
	line-height: 1;
	flex: none;
}
.zibll-mp-del {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 20px;
	height: 20px;
	border: none;
	border-radius: 50%;
	background: #ef4444;
	color: #fff;
	font-size: 13px;
	line-height: 20px;
	text-align: center;
	cursor: pointer;
	padding: 0;
}
.zibll-inline-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
	gap: 6px;
	margin-bottom: 14px;
}
.zibll-inline-cell {
	flex-direction: column;
	align-items: stretch;
	text-align: center;
	padding: 4px;
	margin: 0;
	gap: 4px;
	border-radius: 10px;
}
.zibll-inline-cell .zibll-pick-thumb {
	width: 100%;
	aspect-ratio: 1 / 1;
}
.zibll-inline-files { margin-bottom: 14px; }
.zibll-inline-files .zibll-pick-item { margin-bottom: 8px; }
/* 图片页：小方格网格，列数随屏宽自适应（手机约4列，平板/电脑更多列），缩略图锁正方形不拉伸 */
.zibll-pick-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
	gap: 6px;
	margin: 0 6px 16px;
}
.zibll-pick-grid .zibll-pick-item {
	flex-direction: column;
	align-items: stretch;
	text-align: center;
	padding: 6px 4px;
	margin-bottom: 0;
	gap: 4px;
}
.zibll-pick-grid .zibll-pick-thumb {
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 8px;
	overflow: hidden;
	background: var(--card-soft, var(--card));
}
.zibll-pick-grid .zibll-pick-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.zibll-pick-grid .zibll-pick-info { align-items: center; gap: 2px; }
.zibll-pick-grid .zibll-pick-name {
	max-width: 100%;
	font-size: 10px;
}
.zibll-pick-grid .zibll-pick-date { font-size: 10px; }
.zibll-pick-grid .zibll-pick-use {
	width: 100%;
	text-align: center;
	padding: 5px 0;
	font-size: 11px;
}
/* 文件页：紧凑行列表 */
.zibll-pick-list { margin: 0 6px 16px; }
.zibll-pick-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	margin-bottom: 10px;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 12px;
	box-shadow: var(--shadow);
	text-decoration: none;
}
/* 选用单元格（选择页：点一下直接选用并回发布页） */
.zibll-pick-cell {
	position: relative;
	text-decoration: none;
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.zibll-pick-cell:active {
	transform: scale(0.96);
}
.zibll-pick-cell .zibll-pick-add {
	position: absolute;
	top: 6px;
	right: 6px;
	z-index: 3;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(37, 99, 235, 0.92);
	color: #fff;
	font-size: 10px;
	font-style: normal;
	font-weight: 700;
	line-height: 1.6;
	pointer-events: none;
}
.zibll-pick-grid .zibll-pick-cell .zibll-pick-add { top: 4px; right: 4px; }

/* 内嵌媒体库的点选插入按钮（按钮化卡片，点击即插入正文） */
button.zibll-pick-item {
	width: 100%;
	font: inherit;
	color: inherit;
	text-align: left;
	cursor: pointer;
}
.zibll-inline-grid button.zibll-inline-cell { text-align: center; }
button.zibll-pick-ins { -webkit-appearance: none; appearance: none; }
button.zibll-pick-ins:active { transform: scale(0.96); }

/* 勾选：点整格可勾选，复选框/单选框右上角，主色 */
.zibll-pick-check { cursor: pointer; position: relative; }
.zibll-pick-check input[type="checkbox"],
.zibll-pick-check input[type="radio"] {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 20px;
	height: 20px;
	margin: 0;
	z-index: 2;
	cursor: pointer;
	accent-color: var(--primary);
}
.zibll-pick-thumb {
	width: 56px;
	height: 56px;
	flex: none;
	border-radius: 10px;
	overflow: hidden;
	background: var(--card-soft, var(--card));
}
.zibll-pick-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.zibll-pick-ic {
	width: 56px;
	height: 56px;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: var(--card-soft, var(--card));
	color: var(--primary);
}
.zibll-pick-ic svg { width: 26px; height: 26px; }
.zibll-pick-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.zibll-pick-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--text-strong);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.zibll-pick-date {
	font-size: 11px;
	color: var(--text-soft);
}
.zibll-pick-use {
	flex: none;
	padding: 7px 16px;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, var(--primary), var(--primary-2));
	border-radius: 999px;
	text-decoration: none;
	box-shadow: 0 4px 10px rgba(37, 99, 235, 0.22);
}
.zibll-pick-use:active { transform: scale(0.96); }
.zibll-pick-back {
	display: inline-block;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 700;
	color: var(--primary);
	text-decoration: none;
}

/* 大编辑框：编辑更方便 */
.zibll-editor-lg {
	min-height: 340px;
	font-size: 16px;
	line-height: 1.8;
	resize: vertical;
}

/* ========== 文章页封面图 / 附件下载 ========== */
.zibll-single-cover {
	margin-bottom: 16px;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--border);
	background: var(--card);
}
.zibll-single-cover img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 420px;
	object-fit: cover;
}
.zibll-single-attach {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 18px;
	padding: 11px 20px;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, var(--primary), var(--primary-2));
	border-radius: 999px;
	box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
	text-decoration: none;
}
.zibll-single-attach:active {
	transform: scale(0.97);
}

/* ========== 发布页已选媒体预览（图 + 文件，选完直接可见） ========== */
.zibll-pick-preview {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 14px;
}
.zibll-pick-prev-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px 6px 6px;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 999px;
	box-shadow: var(--shadow);
}
.zibll-pick-prev-thumb,
.zibll-pick-prev-ic {
	width: 34px;
	height: 34px;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	overflow: hidden;
	background: var(--card-soft, var(--card));
}
.zibll-pick-prev-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.zibll-pick-prev-ic { color: var(--primary); }
.zibll-pick-prev-ic svg { width: 18px; height: 18px; }
.zibll-pick-prev-name {
	font-size: 12px;
	font-weight: 600;
	color: var(--text-strong);
	max-width: 200px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ========== 正文中渲染的媒体（短标记转图片 / 下载链接） ========== */
.zibll-content-img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	margin: 10px 0;
	box-shadow: var(--shadow);
}
.zibll-content-file {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 8px 0;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, var(--primary), var(--primary-2));
	border-radius: 999px;
	box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
	text-decoration: none;
}
.zibll-content-file:active { transform: scale(0.97); }

/* ========== 信息（消息） ========== */
.zibll-msg-card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 15px 16px;
	margin: 9px 6px;
	box-shadow: var(--shadow);
}
.zibll-msg-card.zibll-msg-unread { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08), var(--shadow); }
.zibll-msg-sys { border-color: var(--border-light); }
.zibll-msg-head { display: flex; align-items: center; gap: 8px; }
.zibll-msg-tag { font-size: 11px; padding: 3px 9px; border-radius: 6px; font-weight: 600; }
.zibll-tag-sys { background: var(--card-alt); color: var(--text-2); }
.zibll-tag-cmt { background: rgba(22, 163, 74, 0.12); color: var(--ok); }
.zibll-tag-ok { background: var(--tag-bg); color: var(--primary); }
.zibll-tag-no { background: rgba(220, 38, 38, 0.12); color: var(--err); }
.zibll-msg-time { font-size: 11px; color: var(--text-muted); }
.zibll-msg-dot { width: 8px; height: 8px; background: #ef4444; border-radius: 50%; margin-left: auto; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15); }
.zibll-msg-title { font-size: 14px; font-weight: 700; color: var(--text-strong); margin-top: 9px; }
.zibll-msg-content { font-size: 13px; color: var(--text-2); margin-top: 4px; line-height: 1.7; }

/* ========== 用户中心 ========== */
.zibll-user-card {
	display: flex;
	align-items: center;
	gap: 15px;
	background: linear-gradient(135deg, var(--card), var(--card-alt));
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 20px;
	margin: 10px 6px;
	box-shadow: var(--shadow);
}
.zibll-user-avatar { flex: none; }
.zibll-user-info { flex: 1; min-width: 0; }
.zibll-user-name { font-size: 18px; font-weight: 800; color: var(--text-strong); }
.zibll-user-bio { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.zibll-user-stats { display: flex; gap: 20px; margin-top: 11px; }
.zibll-user-stats span { font-size: 12px; color: var(--text-2); }
.zibll-user-stats b { font-size: 17px; color: var(--gold); margin-right: 3px; font-weight: 800; }
.zibll-quick-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin: 12px 6px;
}
.zibll-quick-item {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 16px 6px;
	text-align: center;
	font-size: 12px;
	color: var(--text);
	font-weight: 600;
	box-shadow: var(--shadow);
	transition: transform 0.2s, box-shadow 0.2s;
}
.zibll-quick-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.zibll-quick-item svg { width: 23px; height: 23px; margin-bottom: 7px; color: var(--primary); }
.zibll-quick-item span { display: block; }

/* ========== 底部五导航 ========== */
.zibll-nav {
	position: fixed;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	max-width: 560px;
	height: 66px;
	background: var(--nav-bg);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-top: 1px solid var(--border);
	box-shadow: 0 -4px 18px rgba(17, 24, 39, 0.05);
	display: flex;
	align-items: stretch;
	z-index: 90;
}
.zibll-nav-item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	color: var(--text-muted);
	font-size: 11px;
	position: relative;
	transition: color 0.2s;
}
.zibll-nav-item.active { color: var(--primary); font-weight: 700; }
.zibll-nav-ico { position: relative; }
.zibll-nav-ico svg { width: 24px; height: 24px; }
.zibll-nav-badge {
	position: absolute;
	top: -5px;
	right: -11px;
	background: #ef4444;
	color: #fff;
	font-size: 10px;
	line-height: 1;
	padding: 3px 5px;
	border-radius: 8px;
	font-style: normal;
	font-weight: 700;
	box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}
.zibll-nav-publish { color: var(--text-muted); }
.zibll-nav-publish-btn {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--primary), var(--primary-2) 50%, #7c3aed);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: -20px;
	box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
	transition: transform 0.2s;
}
.zibll-nav-publish-btn:active { transform: scale(0.94); }
.zibll-nav-publish-btn svg { width: 23px; height: 23px; }

/* ========== 404 ========== */
.zibll-404 { text-align: center; padding-top: 80px; color: var(--text-muted); }
.zibll-404 .zibll-btn { margin-top: 16px; }

/* ========== 平板（≥560px）：整体加宽 ========== */
@media (min-width: 560px) {
	.zibll-main, .zibll-topbar, .zibll-nav { max-width: 720px; }
	.zibll-card-title { font-size: 15px; }
	.zibll-single-head { padding: 24px 22px 20px; }
}

/* ========== 电脑全屏（≥900px）：屏幕多大铺多大，所有功能自适应 ========== */
@media (min-width: 900px) {
	/* 版心不锁宽度：全屏铺满（!important 强制，杜绝任何旧规则/缓存覆盖） */
	.zibll-main, .zibll-topbar, .zibll-nav { max-width: none !important; width: 100% !important; }
	.zibll-main { padding: 64px 28px 24px; }
	.zibll-topbar { padding: 0 28px; }

	/* 卡片流：按屏宽自动加列（1366 三列 / 1440 四列 / 1920 五列…），始终铺满 */
	.zibll-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
	.zibll-card-title { font-size: 16px; }
	.zibll-page-title { font-size: 22px; padding: 20px 4px 14px; }

	/* 钱包：按屏宽自动铺列 */
	.zibll-wallet-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }

	/* 发布 / 用户中心媒体库：格子随屏加宽 */
	.zibll-pick-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }

	/* 文章页：全屏铺满（不锁阅读宽度），评论区同宽 */
	.zibll-single { max-width: none !important; margin: 0; }
	.zibll-single-head { padding: 28px 26px 24px; }
	.zibll-single-title { font-size: 26px; }
	.zibll-single-content { font-size: 16px; padding: 32px 36px; }
	.zibll-comments { max-width: none !important; margin: 0; }

	/* 信息页聊天：全屏铺满，通讯录固定宽、聊天区撑满 */
	.zibll-chat-wrap { height: max(600px, calc(100vh - 220px)); }
	.zibll-chat-side { width: 300px; max-width: 300px; }
	.zibll-chat-main { min-width: 0; }

	/* 用户中心：全屏铺开 —— 快捷入口更大气、折叠面板两列并排、表单字段两列 */
	.zibll-quick-grid { gap: 14px; margin: 14px 8px; }
	.zibll-quick-item { padding: 22px 10px; font-size: 13px; }
	.zibll-acc {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 14px;
		margin: 14px 8px 24px;
		align-items: start;
	}
	.zibll-acc-item { break-inside: avoid; }
	.zibll-acc-body .zibll-form {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 12px 16px;
	}
	.zibll-acc-body .zibll-field-group { min-width: 0; }
	.zibll-acc-body textarea,
	.zibll-acc-body .zibll-btn-full { grid-column: 1 / -1; }

	/* 登录 / 注册：全屏分屏 —— 左侧介绍，右侧登录卡 */
	.zibll-auth-wrap {
		max-width: none;
		display: flex;
		align-items: stretch;
		justify-content: center;
		gap: 28px;
		margin: 10px auto 34px;
		padding: 26px 28px 0;
	}
	.zibll-auth-intro { flex: 0 1 500px; margin: 0; padding: 34px 26px; align-self: center; }
	.zibll-auth { max-width: 460px; margin: 0; flex: 0 1 460px; }
	.zibll-login-card { max-width: 460px; }

	.zibll-nav-item { font-size: 12px; }
}

/* ========== 小屏手机（≤420px）紧凑 ========== */
@media (max-width: 420px) {
	.zibll-grid { gap: 8px; }
	.zibll-main { padding-left: 6px; padding-right: 6px; }
	.zibll-card-body { padding: 10px; }
	.zibll-single-content { padding: 14px 12px; }
	.zibll-card-title { padding: 9px 4px 0; }
	.zibll-pick-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 5px; }
	.zibll-editor-lg { min-height: 280px; }
}

/* ===== 用户中心：从媒体库选择头像 ===== */
.zibll-avatar-pick { margin-top: 12px; border-top: 1px dashed var(--border); padding-top: 12px; }
.zibll-media-grid { margin-top: 10px; }
.zibll-media-thumbs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin: 8px 0 12px;
}
.zibll-media-cell {
	position: relative;
	display: block;
	margin: 0;
	cursor: pointer;
	border-radius: 10px;
	overflow: hidden;
	border: 2px solid transparent;
	background: var(--card-alt);
}
.zibll-media-cell img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.zibll-media-cell input { position: absolute; opacity: 0; width: 0; height: 0; }
.zibll-media-cell input:checked + img { border-radius: 8px; outline: 2px solid var(--primary); }

/* ===== 信息页：标签页 ===== */
.zibll-msg-tabs { display: flex; gap: 8px; margin: 10px 6px 4px; }
.zibll-msg-tab {
	position: relative;
	flex: 1;
	text-align: center;
	padding: 10px 4px;
	border-radius: 10px;
	background: var(--card);
	border: 1px solid var(--border);
	color: var(--text-muted);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}
.zibll-msg-tab.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.zibll-msg-tab-n {
	display: inline-block;
	min-width: 18px;
	height: 18px;
	line-height: 18px;
	border-radius: 9px;
	background: #ef4444;
	color: #fff;
	font-size: 11px;
	font-style: normal;
	padding: 0 5px;
	margin-left: 3px;
}

/* ===== 信息页：私信（通讯录 + 聊天） ===== */
.zibll-chat-wrap {
	display: flex;
	gap: 10px;
	margin: 10px 6px;
	height: max(480px, calc(100vh - 260px));
}
.zibll-chat-side {
	width: 38%;
	max-width: 300px;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 14px;
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.zibll-chat-side-title {
	padding: 12px 14px 8px;
	font-size: 14px;
	font-weight: 800;
	color: var(--text-strong);
}
.zibll-chat-search {
	margin: 0 12px 8px;
	padding: 8px 12px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--bg);
	color: var(--text);
	font-size: 13px;
	width: calc(100% - 24px);
	box-sizing: border-box;
}
.zibll-chat-contacts { flex: 1; overflow-y: auto; padding: 0 8px 10px; }
.zibll-chat-contact {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 8px;
	border-radius: 10px;
	text-decoration: none;
	position: relative;
}
.zibll-chat-contact.on { background: var(--primary); }
.zibll-chat-contact.on b, .zibll-chat-contact.on i { color: #fff; }
.zibll-chat-cavatar { flex: none; }
.zibll-chat-cmeta { flex: 1; min-width: 0; }
.zibll-chat-cmeta b { display: block; font-size: 13px; color: var(--text-strong); }
.zibll-chat-cmeta i {
	display: block;
	font-size: 11px;
	font-style: normal;
	color: var(--text-muted);
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.zibll-chat-cn {
	position: absolute;
	top: 6px;
	right: 6px;
	min-width: 16px;
	height: 16px;
	line-height: 16px;
	text-align: center;
	border-radius: 8px;
	background: #ef4444;
	color: #fff;
	font-size: 10px;
	font-style: normal;
	padding: 0 4px;
}

.zibll-chat-main {
	flex: 1;
	min-width: 0;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 14px;
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.zibll-chat-head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border-bottom: 1px solid var(--border);
	font-size: 14px;
	color: var(--text-strong);
	flex-shrink: 0;
}
.zibll-chat-body {
	flex: 1;
	overflow-y: auto;
	padding: 14px 12px;
	background: var(--bg-soft);
}
.zibll-bubble { display: flex; margin-bottom: 12px; }
.zibll-bubble.out { justify-content: flex-end; }
.zibll-bubble.in { justify-content: flex-start; }
.zibll-bubble-inner {
	max-width: 76%;
	padding: 9px 12px;
	border-radius: 14px;
	background: var(--card-alt);
	border: 1px solid var(--border);
	font-size: 14px;
	color: var(--text);
	line-height: 1.5;
	word-break: break-word;
}
.zibll-bubble.out .zibll-bubble-inner { background: var(--primary); border-color: var(--primary); color: #fff; }
.zibll-bubble-time {
	display: block;
	font-size: 10px;
	font-style: normal;
	color: var(--text-muted);
	margin-top: 4px;
	text-align: right;
	opacity: 0.85;
}
.zibll-bubble.out .zibll-bubble-time { color: rgba(255,255,255,0.8); }
.zibll-chat-img {
	display: block;
	max-width: 200px;
	max-height: 260px;
	border-radius: 10px;
	margin-bottom: 4px;
}

/* 已读/未读标记 */
.zibll-bubble-read {
	display: block;
	font-size: 10px;
	font-style: normal;
	text-align: right;
	margin-top: 3px;
	color: #94a3b8;
}
.zibll-bubble.out .zibll-bubble-read { color: rgba(255,255,255,0.75); }

/* 红包卡片 */
.zibll-rp-card {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 220px;
	background: linear-gradient(135deg, #dc2626, #f59e0b);
	border-radius: 12px;
	padding: 10px 12px;
	color: #fff;
}
.zibll-rp-card.claimed { background: #64748b; }
.zibll-rp-icon {
	width: 42px;
	height: 42px;
	flex: none;
	border-radius: 50%;
	background: rgba(255,255,255,0.22);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 800;
}
.zibll-rp-info { flex: 1; min-width: 0; }
.zibll-rp-info b { display: block; font-size: 14px; }
.zibll-rp-info i { display: block; font-size: 11px; font-style: normal; opacity: 0.9; margin-top: 2px; }
.zibll-rp-btn {
	border: none;
	background: #fff;
	color: #dc2626;
	font-size: 13px;
	font-weight: 800;
	border-radius: 999px;
	padding: 7px 16px;
	cursor: pointer;
}

/* 聊天输入区 */
.zibll-chat-input { border-top: 1px solid var(--border); padding: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); background: var(--card); flex-shrink: 0; }
.zibll-chat-tools { display: flex; gap: 6px; margin-bottom: 6px; }
.zibll-chat-tool {
	border: 1px solid var(--border);
	background: var(--card-alt);
	color: var(--text);
	font-size: 12px;
	border-radius: 999px;
	padding: 5px 12px;
	cursor: pointer;
}
.zibll-chat-panel {
	border: 1px dashed var(--border);
	border-radius: 10px;
	padding: 8px;
	margin-bottom: 8px;
	background: var(--bg-soft);
}
.zibll-emoji {
	border: none;
	background: none;
	font-size: 22px;
	padding: 4px;
	cursor: pointer;
	border-radius: 6px;
}
.zibll-emoji:active { background: var(--card-alt); }
.zibll-chat-imgcell {
	border: 2px solid transparent;
	background: none;
	padding: 0;
	margin: 3px;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	width: 58px;
	height: 58px;
}
.zibll-chat-imgcell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zibll-chat-imgcell.picked { border-color: var(--primary); }
.zibll-rp-form { display: flex; align-items: center; gap: 8px; padding: 4px; }
.zibll-rp-form label { font-size: 13px; color: var(--text); }
.zibll-rp-form input {
	flex: 1;
	min-width: 80px;
	padding: 8px 10px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--bg);
	color: var(--text);
}
.zibll-chat-sendrow { display: flex; gap: 8px; align-items: flex-end; }
.zibll-chat-sendrow textarea {
	flex: 1;
	resize: none;
	padding: 10px 12px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--bg);
	color: var(--text);
	font-size: 14px;
	font-family: inherit;
	box-sizing: border-box;
}
.zibll-btn-send { flex: none; }

/* 聊天返回按钮（桌面隐藏，移动端进入聊天时显示） */
.zibll-chat-back {
	display: none;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	flex: none;
	border-radius: 50%;
	background: var(--card-alt);
	border: 1px solid var(--border);
	color: var(--text-strong);
	font-size: 15px;
	text-decoration: none;
}

@media (max-width: 620px) {
	.zibll-chat-wrap { flex-direction: column; min-height: 0; height: auto; }
	.zibll-chat-side { width: 100%; max-width: none; max-height: calc(100vh - 200px); max-height: calc(100dvh - 200px); }
	.zibll-chat-contacts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 4px 8px 10px; }
	.zibll-chat-contact {
		flex-direction: column;
		text-align: center;
		padding: 12px 6px;
		gap: 5px;
		border: 1px solid var(--border);
		background: var(--card-alt);
		border-radius: 12px;
		min-height: 96px;
		box-sizing: border-box;
	}
	.zibll-chat-cavatar { flex: none; }
	.zibll-chat-cavatar img { width: 46px; height: 46px; border-radius: 50%; }
	.zibll-chat-main { display: none; }
	/* 微信式：进入聊天后通讯录隐藏，聊天区全屏，可点返回 */
	.zibll-chat-wrap.zibll-chat-active { flex-direction: column; }
	.zibll-chat-wrap.zibll-chat-active .zibll-chat-side { display: none; }
	.zibll-chat-wrap.zibll-chat-active .zibll-chat-main {
		display: flex;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		height: calc(100vh - 66px);
		height: calc(100dvh - 66px);
		min-height: 0;
		z-index: 200;
		border: 0;
		border-radius: 0;
	}
	.zibll-chat-back { display: inline-flex; }
}
/* 验证码即时校验提示 */
.zibll-captcha-tip { display: block; font-size: 12px; margin-top: 4px; line-height: 1.4; }

/* ================================================================
 * 全站响应式增强：手机 / 折叠屏 / 平板 / 大屏 / 超宽屏
 * （追加在文件尾部，后定义优先覆盖上方同值断点）
 * ================================================================ */

/* ---- 折叠屏窄态 / 极窄手机（≤380px）：极限紧凑 ---- */
@media (max-width: 380px) {
	.zibll-main { padding: 56px 4px 8px; }
	.zibll-grid { gap: 6px; }
	.zibll-card-body { padding: 8px; }
	.zibll-card-title { font-size: 13.5px; padding: 8px 3px 0; }
	.zibll-card-tags { margin-top: 6px; }
	.zibll-card-time, .zibll-card-like { font-size: 10.5px; }
	.zibll-pagination { gap: 6px; padding: 10px 0 6px; }
	.zibll-pagination a, .zibll-pagination span { padding: 6px 12px; font-size: 12px; }
	.zibll-page-title { font-size: 17px; padding: 16px 4px 10px; }
	.zibll-single-content { padding: 13px 11px; font-size: 14.5px; }
	.zibll-chat-input { padding: 6px; }
	.zibll-chat-tools { gap: 4px; }
	.zibll-chat-tool { padding: 4px 9px; font-size: 11.5px; }
	.zibll-form-field, .zibll-field, .zibll-form input[type="text"], .zibll-form input[type="password"], .zibll-form input[type="email"], .zibll-form textarea { font-size: 14px; }
	.zibll-login-card { padding: 22px 16px 16px; }
	.zibll-wallet-grid { gap: 8px; margin: 10px 4px; }
}

/* ---- 平板（≥720px）：更宽的版心 + 多列表格铺开 ---- */
@media (min-width: 720px) {
	.zibll-main, .zibll-topbar, .zibll-nav { max-width: 760px; }
	.zibll-grid { gap: 14px; }
	.zibll-wallet-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 10px 6px; }
	.zibll-pick-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
	.zibll-media-thumbs { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
	.zibll-single-content { font-size: 15.5px; padding: 20px 22px; }
	.zibll-chat-wrap { height: max(520px, calc(100vh - 240px)); }
	.zibll-chat-side { width: 260px; }
	.zibll-comment-avatar img { width: 40px; height: 40px; }
}

/* ---- 超宽屏（≥2000px）：边距更宽、更疏朗 ---- */
@media (min-width: 2000px) {
	.zibll-main { padding: 72px 36px 28px; }
	.zibll-topbar { padding: 0 36px; }
	.zibll-grid { gap: 24px; }
	.zibll-single-content { padding: 36px 40px; }
}

/* ---- 横屏手机（高度有限，聊天区自动压缩） ---- */
@media (max-height: 520px) and (min-width: 621px) {
	.zibll-chat-wrap { height: calc(100vh - 150px); }
}

/* ================================================================
 * 绝对全屏保险（v2.2.83）：任何分辨率下不锁宽，屏幕多大铺多大
 * ================================================================ */
html, body { max-width: none !important; }

/* ========== 神人佛搜索：全屏弹出层（默认隐藏，点放大镜才弹出） ========== */
.zibll-search-layer {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(10, 14, 30, 0.72);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	align-items: flex-start;
	justify-content: center;
	padding: 7vh 20px 20px;
	overflow-y: auto;
	display: none;
}
.zibll-search-layer:not([hidden]) {
	display: flex;
}
.zibll-search-box {
	width: 100%;
	max-width: 660px;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 18px;
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.38);
	overflow: hidden;
}
.zibll-search-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 18px 13px;
	background: linear-gradient(135deg, var(--primary), var(--primary-2) 60%, #7c3aed);
}
.zibll-search-title { color: #ffffff; font-weight: 800; font-size: 17px; letter-spacing: 3px; }
.zibll-search-close {
	background: rgba(255, 255, 255, 0.18);
	border: 0;
	color: #ffffff;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	font-size: 14px;
	cursor: pointer;
	line-height: 1;
	transition: background 0.15s;
}
.zibll-search-close:hover { background: rgba(255, 255, 255, 0.32); }
.zibll-search-form { display: flex; gap: 10px; padding: 14px 18px 0; }
.zibll-search-form input {
	flex: 1;
	min-width: 0;
	height: 46px;
	background: var(--card-alt);
	border: 1px solid var(--border-light);
	border-radius: 12px;
	color: var(--text-strong);
	font-size: 15px;
	padding: 0 16px;
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.zibll-search-form input:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.zibll-search-form button {
	flex: none;
	height: 46px;
	padding: 0 22px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--primary), var(--primary-2));
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}
.zibll-search-hot { display: flex; align-items: flex-start; gap: 8px; padding: 12px 18px 4px; flex-wrap: wrap; }
.zibll-search-hot-tag { font-size: 12px; color: #f59e0b; font-weight: 700; padding-top: 5px; flex: none; }
.zibll-search-chip {
	border: 1px solid var(--border-light);
	background: var(--card-alt);
	color: var(--text-2);
	font-size: 12px;
	padding: 5px 13px;
	border-radius: 999px;
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s;
}
.zibll-search-chip:hover { border-color: var(--primary); color: var(--primary); }
.zibll-search-results { padding: 8px 18px 14px; display: flex; flex-direction: column; gap: 8px; }
.zibll-search-item {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 9px;
	border-radius: 12px;
	background: var(--card-alt);
	border: 1px solid var(--border-light);
	text-decoration: none;
	transition: border-color 0.15s;
}
.zibll-search-item:hover { border-color: var(--primary); }
.zibll-search-item img { width: 52px; height: 52px; object-fit: cover; border-radius: 9px; flex: none; }
.zibll-search-item-ph { width: 52px; height: 52px; border-radius: 9px; flex: none; background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.zibll-search-item-info { min-width: 0; flex: 1; }
.zibll-search-item-info b {
	display: block;
	font-size: 14px;
	color: var(--text-strong);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.zibll-search-item-info i { font-style: normal; font-size: 11px; color: var(--text-muted); }
.zibll-search-loading, .zibll-search-empty { font-size: 13px; color: var(--text-muted); text-align: center; padding: 16px 0; }
.zibll-search-foot { font-size: 11px; color: var(--text-muted); text-align: center; padding: 0 18px 14px; }
body.zibll-search-lock { overflow: hidden; }

/* ========== 文章分享海报 ========== */
.zibll-poster-box {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 16px;
	margin: 20px 6px 8px;
	padding: 18px 16px;
	box-shadow: var(--shadow);
}
	.zibll-poster-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
	.zibll-poster-label {
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 2px;
	color: var(--text-strong);
	background: linear-gradient(135deg, var(--primary), var(--primary-2) 60%, #7c3aed);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	flex: none;
}
	.zibll-poster-btn {
	flex: none;
	height: 40px;
	padding: 0 26px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--primary), var(--primary-2) 60%, #7c3aed);
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1px;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
	transition: transform 0.15s, box-shadow 0.15s;
}
	.zibll-poster-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37, 99, 235, 0.36); }
	.zibll-poster-btn:disabled { opacity: 0.7; cursor: default; transform: none; }
.zibll-poster-preview { text-align: center; margin-top: 16px; }
	/* canvas 只负责离屏绘制，不显示；预览只显示 img（可长按/右键保存） */
.zibll-poster-preview canvas { display: none; }
.zibll-poster-preview img {
	width: 100%;
	max-width: 360px;
	height: auto;
	border-radius: 14px;
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.28);
	display: inline-block;
	-webkit-user-select: none;
	user-select: none;
}
.zibll-poster-tip { font-size: 11px; color: var(--text-muted); margin-top: 10px; }
.zibll-poster-btns { display: flex; justify-content: center; gap: 12px; margin-top: 14px; }
.zibll-poster-save {
	height: 40px;
	line-height: 40px;
	padding: 0 26px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--primary), var(--primary-2));
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}
.zibll-poster-close {
	height: 40px;
	line-height: 1;
	padding: 0 22px;
	border: 1px solid var(--border-light);
	border-radius: 999px;
	background: var(--card-alt);
	color: var(--text-2);
	font-size: 14px;
	cursor: pointer;
}

/* ===== 附带代码块：深色高亮卡 + 一键复制（纯本地） ===== */
.zibll-code-box {
	margin: 18px 0;
	border-radius: 14px;
	overflow: hidden;
	background: #0f172a;
	border: 1px solid rgba(148, 163, 184, 0.22);
	box-shadow: 0 10px 28px rgba(2, 6, 23, 0.35);
}
.zibll-code-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 16px;
	background: linear-gradient(90deg, rgba(129, 140, 248, 0.16), rgba(99, 102, 241, 0.06));
	border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}
.zibll-code-lang {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #c7d2fe;
	letter-spacing: 0.3px;
}
.zibll-code-lang::before {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: linear-gradient(135deg, #818cf8, #a855f7);
	box-shadow: 0 0 10px rgba(129, 140, 248, 0.7);
}
.zibll-code-copy {
	border: 0;
	border-radius: 999px;
	padding: 6px 16px;
	font-size: 13px;
	font-weight: 600;
	color: #eef2ff;
	cursor: pointer;
	background: linear-gradient(135deg, #6366f1, #8b5cf6);
	box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}
.zibll-code-copy:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(99, 102, 241, 0.5);
}
.zibll-code-copy:active {
	transform: translateY(0);
	opacity: 0.88;
}
.zibll-code-copied {
	background: linear-gradient(135deg, #10b981, #059669);
	box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}
/* 原始代码：移出屏幕但可选中（复制兜底），用户不可见 */
.zibll-code-raw {
	position: absolute;
	left: -9999px;
	top: 0;
	width: 1px;
	height: 1px;
	opacity: 0;
	border: 0;
	padding: 0;
	margin: 0;
	resize: none;
	overflow: hidden;
}
.zibll-code-pre {
	margin: 0;
	padding: 16px;
	overflow: auto;
	background: #0f172a;
	line-height: 1.65;
	font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
	font-size: 13.5px;
	color: #e2e8f0;
	tab-size: 4;
	-webkit-overflow-scrolling: touch;
}
.zibll-code-body {
	display: block;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
	white-space: pre;
}
.zibll-tok {
	white-space: pre;
}
.zibll-tok-comment { color: #64748b; font-style: italic; }
.zibll-tok-string  { color: #86efac; }
.zibll-tok-keyword { color: #c084fc; font-weight: 600; }
.zibll-tok-number  { color: #fbbf24; }
.zibll-tok-variable { color: #67e8f9; }
.zibll-tok-tag     { color: #93c5fd; }
.zibll-tok-property { color: #7dd3fc; }
.zibll-tok-selector { color: #f0abfc; }
/* 发布页代码字段 */
.zibll-code-lang-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}
.zibll-code-lang-select {
	border: 1px solid rgba(148, 163, 184, 0.35);
	border-radius: 9px;
	background: var(--card-alt, #16213a);
	color: var(--text-1, #eef2ff);
	padding: 7px 12px;
	font-size: 14px;
	outline: none;
	cursor: pointer;
}
.zibll-code-field-tip {
	font-size: 12.5px;
	color: var(--text-2, #8ea3c7);
}
.zibll-code-input {
	font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
	font-size: 13.5px;
	line-height: 1.6;
}
/* 移动端微调 */
@media (max-width: 600px) {
	.zibll-code-pre {
		padding: 12px;
		font-size: 12.5px;
	}
	.zibll-code-head {
		padding: 9px 12px;
	}
}

/* ===== 发布页正文工具栏：插入代码标记按钮 ===== */
.zibll-content-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}
.zibll-code-insert-btn {
	border: 0;
	border-radius: 9px;
	padding: 8px 16px;
	font-size: 13.5px;
	font-weight: 600;
	color: #eef2ff;
	cursor: pointer;
	background: linear-gradient(135deg, #6366f1, #8b5cf6);
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}
.zibll-code-insert-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(99, 102, 241, 0.45);
}
