/* =========================================================================
   guguzibi — GuguDoc 菇菇文档皮肤覆盖层
   本文件在 ZIBI 框架 main.min.css 之后加载，只覆盖外观令牌与组件观感，
   不改动框架的布局结构、功能钩子、模板与脚本。
   ========================================================================= */

/* ---------- 1. 日间令牌（映射 GuguDoc 暖白卡片风） ---------- */

body {
	--gugu-accent: #8b7cf6;
	--gugu-accent-2: #5ec8d8;

	--theme-color: var(--gugu-accent);
	--focus-color: var(--gugu-accent);
	--focus-shadow-color: rgba(139, 124, 246, 0.35);

	--key-color: #3a2d27;
	--main-color: #57463d;
	--muted-color: #9a8578;
	--muted-2-color: #b39c8e;
	--muted-3-color: #c9b6a8;

	--body-bg-color: #fff8f1;
	--main-bg-color: #ffffff;
	--muted-bg-color: #fdf3ea;
	--main-border-color: #f6e4d6;
	--muted-border-color: rgba(214, 150, 120, 0.10);
	--main-radius: 18px;

	--blur-bg: rgba(255, 248, 241, 0.82);
	--header-bg: rgba(255, 248, 241, 0.82);
	--footer-bg: #ffffff;
	--main-shadow: rgba(214, 150, 120, 0.16);
}

/* ---------- 2. 夜间令牌（映射 GuguDoc 深紫夜空风） ---------- */

body.dark-theme {
	--theme-color: var(--gugu-accent);
	--focus-color: var(--gugu-accent);
	--focus-shadow-color: rgba(139, 124, 246, 0.40);

	--key-color: #ffffff;
	--main-color: #eceaf3;
	--muted-color: #9b97ad;
	--muted-2-color: #7d7891;
	--muted-3-color: #5f5b70;

	--body-bg-color: #0c0a13;
	--main-bg-color: rgba(255, 255, 255, 0.05);
	--muted-bg-color: rgba(255, 255, 255, 0.06);
	--main-border-color: rgba(255, 255, 255, 0.10);
	--muted-border-color: rgba(255, 255, 255, 0.06);
	--main-radius: 18px;

	--blur-bg: rgba(12, 10, 19, 0.78);
	--header-bg: rgba(12, 10, 19, 0.78);
	--footer-bg: rgba(255, 255, 255, 0.04);
	--main-shadow: rgba(0, 0, 0, 0.45);
}

/* ---------- 3. 全局背景极光与字体 ---------- */

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
		"Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
	background-image:
		radial-gradient(1200px 700px at 8% -14%, rgba(139, 124, 246, 0.16), transparent 60%),
		radial-gradient(1000px 600px at 110% 10%, rgba(94, 200, 216, 0.14), transparent 55%);
	background-attachment: fixed;
	transition: background 0.35s ease, color 0.35s ease;
}

body.dark-theme {
	background-image:
		radial-gradient(1200px 760px at 8% -14%, rgba(124, 108, 246, 0.30), transparent 62%),
		radial-gradient(1080px 640px at 110% 16%, rgba(46, 150, 150, 0.22), transparent 56%),
		radial-gradient(900px 620px at 50% 114%, rgba(190, 90, 130, 0.18), transparent 62%);
}

::selection {
	background: var(--gugu-accent);
	color: #fff;
}

/* ---------- 4. 卡片 / 组件外壳：圆角玻璃拟态 ---------- */

.box-bg,
.zib-widget,
.muted-box,
.posts-item.card,
.posts-item.list {
	border: 1px solid var(--main-border-color);
	border-radius: var(--main-radius);
	box-shadow: 0 18px 40px var(--main-shadow);
}

.posts-item.card:hover,
.posts-item.list:hover,
.zib-widget:hover {
	border-color: var(--muted-4-color, var(--main-border-color));
}

/* ---------- 5. 头部导航：玻璃拟态底栏 ---------- */

.header {
	border-bottom: 1px solid var(--main-border-color);
}

.nav-fixed .header {
	-webkit-backdrop-filter: saturate(1.4) blur(20px);
	backdrop-filter: saturate(1.4) blur(20px);
}

/* ---------- 6. 主按钮：紫青渐变 ---------- */

.but.b-theme,
.but.active,
.tab-nav-but li.active .but,
.active.badg,
.active > .badg:not(.vip-tag) {
	--this-bg: transparent;
	background-image: linear-gradient(135deg, #8b7cf6 0%, #5ec8d8 100%);
	border-color: transparent;
	border-radius: 12px;
	color: #fff;
}

.but.b-theme:hover,
.but.active:hover {
	box-shadow: 0 10px 24px var(--focus-shadow-color);
}

/* ---------- 7. 表单控件：圆角柔和底 ---------- */

.form-control,
select.form-control {
	border-radius: 12px;
	background: var(--muted-bg-color);
	border-color: var(--main-border-color);
}

/* ---------- 8. 正文标题与内容链接 ---------- */

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
	color: var(--key-color);
}

.article-content a:not(.glink-btn) {
	color: var(--focus-color);
}

/* =========================================================================
   9. QA 折叠问答卡片
   ========================================================================= */

.gqa {
	margin: 1.4em 0;
}

.gqa-header {
	margin-bottom: 10px;
}

.gqa-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 1.25em;
	font-weight: 700;
	color: var(--key-color);
}

.gqa-title::before {
	content: "";
	width: 4px;
	height: 18px;
	border-radius: 4px;
	background: linear-gradient(180deg, var(--gugu-accent), var(--gugu-accent-2));
}

.gqa-desc {
	margin: 6px 0 0;
	font-size: 0.9em;
	color: var(--muted-color);
}

.gqa-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.gqa-item {
	background: var(--muted-bg-color);
	border: 1px solid var(--main-border-color);
	border-radius: var(--main-radius);
	overflow: hidden;
	transition: border-color 0.25s ease, background 0.25s ease;
}

.gqa-item[open] {
	border-color: var(--gugu-accent);
}

.gqa-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 10px 16px;
	cursor: pointer;
	list-style: none;
	font-weight: 600;
	font-size: inherit;
	line-height: 1.5;
	color: var(--key-color);
}

.gqa-summary::-webkit-details-marker { display: none; }

.gqa-summary:hover {
	color: var(--focus-color);
}

.gqa-q {
	flex: 1;
	font-size: inherit;
	line-height: inherit;
}

.gqa-arrow {
	flex: none;
	width: 10px;
	height: 10px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.28s ease;
	opacity: 0.7;
}

.gqa-item[open] .gqa-arrow {
	transform: rotate(225deg);
}

.gqa-a {
	padding: 0 16px 12px;
	color: var(--main-color);
	font-size: inherit;
	line-height: inherit;
}

.gqa-a p { margin: 0 0 0.6em; }
.gqa-a > *:last-child { margin-bottom: 0; }

/* =========================================================================
   10. 一键复制块
   ========================================================================= */

.article-content .gcopy,
.wp-posts-content .gcopy,
.gcopy {
	margin: 1.4em 0;
	border: 1px dashed rgba(139, 124, 246, 0.35);
	border-radius: var(--main-radius);
	padding: 1em 1.15em;
	background: var(--muted-bg-color);
}

body.dark-theme .article-content .gcopy,
body.dark-theme .wp-posts-content .gcopy,
body.dark-theme .gcopy {
	border-color: rgba(139, 124, 246, 0.32);
	background: var(--main-bg-color);
}

.gcopy-head {
	margin-bottom: 0.6em;
}

.gcopy-label {
	font-size: 0.85em;
	color: var(--muted-color);
	letter-spacing: 0.02em;
}

.gcopy-note {
	display: block;
	margin-top: 3px;
	font-size: 0.78em;
	color: var(--muted-color);
}

.gcopy-body {
	display: flex;
	align-items: center;
	gap: 1em;
}

.article-content .gcopy-text,
.wp-posts-content .gcopy-text,
.gcopy-text {
	flex: 1;
	min-width: 0;
	font-family: "SFMono-Regular", Consolas, Menlo, monospace;
	font-size: 0.95em;
	color: var(--key-color);
	word-break: break-all;
	background: transparent;
	padding: 0;
	margin: 0;
}

/* 独立深色描边圆角按钮：不跟随正文链接色，避免糊底、白字看不清 */
.article-content .gcopy-btn,
.wp-posts-content .gcopy-btn,
.gcopy-btn {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.55em 1.25em;
	border: 1px solid #4a4560;
	border-radius: 12px;
	background: #2f2a3a;
	background-image: none;
	color: #fff;
	font-size: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

body.dark-theme .article-content .gcopy-btn,
body.dark-theme .wp-posts-content .gcopy-btn,
body.dark-theme .gcopy-btn {
	background: #2b2740;
	border-color: #4a4560;
}

.gcopy-btn:hover { background: #3d364d; transform: translateY(-1px); }
.gcopy-btn:active { transform: translateY(0); }

.gcopy-btn.is-copied {
	background: #2bb673;
	border-color: transparent;
	color: #fff;
}

/* =========================================================================
   11. 提示 / 信息 / 警告卡片
   ========================================================================= */

.gcallout {
	margin: 1.4em 0;
	padding: 16px 18px 14px;
	border-radius: var(--main-radius);
	border: 1px solid var(--main-border-color);
	border-left-width: 3px;
	background: var(--muted-bg-color);
}

.gcallout--tip  { border-left-color: #40be82; }
.gcallout--info { border-left-color: #5ea0d8; }
.gcallout--warn { border-left-color: #e6a850; }

.gcallout-title {
	font-weight: 700;
	margin-bottom: 6px;
	color: var(--key-color);
}

.gcallout--tip  .gcallout-title::before { content: "✓ "; color: #40be82; }
.gcallout--info .gcallout-title::before { content: "ℹ "; color: #5ea0d8; }
.gcallout--warn .gcallout-title::before { content: "! ";  color: #e6a850; }

.gcallout-body { color: var(--muted-color); }
.gcallout-body > *:last-child { margin-bottom: 0; }

/* =========================================================================
   12. 一键跳转卡片（与一键复制块同款虚线描边）
   ========================================================================= */

.article-content .glink,
.wp-posts-content .glink,
.glink {
	margin: 1.4em 0;
	border: 1px dashed rgba(139, 124, 246, 0.35);
	border-radius: var(--main-radius);
	padding: 1em 1.15em;
	background: var(--muted-bg-color);
}

body.dark-theme .article-content .glink,
body.dark-theme .wp-posts-content .glink,
body.dark-theme .glink {
	border-color: rgba(139, 124, 246, 0.32);
	background: var(--main-bg-color);
}

.glink-body {
	display: flex;
	align-items: center;
	gap: 1em;
}

.glink-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.article-content .glink-name,
.wp-posts-content .glink-name,
.glink-name {
	font-size: 0.95em;
	font-weight: 600;
	color: var(--key-color);
	word-break: break-all;
}

.glink-note {
	font-size: 0.78em;
	color: var(--muted-color);
	word-break: break-all;
}

/* 右侧独立深色描边圆角跳转按钮，与复制按钮一致 */
.article-content .glink-btn,
.wp-posts-content .glink-btn,
.glink-btn {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.55em 1.25em;
	border: 1px solid #4a4560;
	border-radius: 12px;
	background: #2f2a3a;
	background-image: none;
	color: #fff;
	font-size: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

body.dark-theme .article-content .glink-btn,
body.dark-theme .wp-posts-content .glink-btn,
body.dark-theme .glink-btn {
	background: #2b2740;
	border-color: #4a4560;
}

.glink-btn:hover { background: #3d364d; transform: translateY(-1px); }
.glink-btn:active { transform: translateY(0); }

.glink-arrow { transition: transform 0.2s ease; }
.glink-btn:hover .glink-arrow { transform: translateX(3px); }

/* =========================================================================
   13. 美化标题（25 套；后台全局 / 分级可选，短代码可直选）
   选择器：ts-* 后台预览与短代码直选；gdoc-l{1..6}-* 分级路由；
   gdoc-title-style-* 全局兜底；gdoc-heading--* 兼容旧短代码。
   ========================================================================= */

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6,
.gdoc-heading {
	color: var(--key-color);
	line-height: 1.35;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.article-content h1 { font-size: 1.7em; }
.article-content h2 { font-size: 1.5em; }
.article-content h3 { font-size: 1.25em; }
.article-content h4 { font-size: 1.1em; }
.article-content h5 { font-size: 1.02em; }
.article-content h6 { font-size: 0.95em; }

.gdoc-heading { margin: 1.4em 0 0.8em; }

/* 1. classic 经典粗体 + 强调色竖条 */
.ts-classic,
.gdoc-heading--classic,
.gdoc-title-style-classic :is(h1, h2, h3, h4, h5, h6),
.gdoc-l1-classic h1, .gdoc-l2-classic h2, .gdoc-l3-classic h3,
.gdoc-l4-classic h4, .gdoc-l5-classic h5, .gdoc-l6-classic h6 {
	padding-left: 14px;
	border-left: 4px solid var(--gugu-accent);
	border-radius: 6px;
}

/* 2. brush 渐变画笔下划线 */
.ts-brush,
.gdoc-heading--brush,
.gdoc-title-style-brush :is(h1, h2, h3, h4, h5, h6),
.gdoc-l1-brush h1, .gdoc-l2-brush h2, .gdoc-l3-brush h3,
.gdoc-l4-brush h4, .gdoc-l5-brush h5, .gdoc-l6-brush h6 {
	position: relative;
	width: fit-content;
	padding: 2px 10px;
	margin-left: -10px;
}

.ts-brush::after,
.gdoc-heading--brush::after,
.gdoc-title-style-brush :is(h1, h2, h3, h4, h5, h6)::after,
.gdoc-l1-brush h1::after, .gdoc-l2-brush h2::after, .gdoc-l3-brush h3::after,
.gdoc-l4-brush h4::after, .gdoc-l5-brush h5::after, .gdoc-l6-brush h6::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 2px;
	height: 58%;
	background: linear-gradient(90deg,
		rgba(139, 124, 246, 0.38),
		var(--gugu-accent-2) 72%,
		transparent);
	border-radius: 6px;
	z-index: -1;
}

/* 3. chip 胶囊标签 + 标题 */
.ts-chip,
.gdoc-heading--chip,
.gdoc-title-style-chip :is(h1, h2, h3, h4, h5, h6),
.gdoc-l1-chip h1, .gdoc-l2-chip h2, .gdoc-l3-chip h3,
.gdoc-l4-chip h4, .gdoc-l5-chip h5, .gdoc-l6-chip h6 {
	display: flex;
	align-items: center;
	gap: 11px;
}

.ts-chip::before,
.gdoc-heading--chip::before,
.gdoc-title-style-chip :is(h1, h2, h3, h4, h5, h6)::before,
.gdoc-l1-chip h1::before, .gdoc-l2-chip h2::before, .gdoc-l3-chip h3::before,
.gdoc-l4-chip h4::before, .gdoc-l5-chip h5::before, .gdoc-l6-chip h6::before {
	content: "";
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 9px;
	background:
		radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.95) 3px, transparent 4px),
		linear-gradient(135deg, var(--gugu-accent), var(--gugu-accent-2));
	box-shadow: 0 5px 12px var(--focus-shadow-color);
}

/* 4. line 双侧细线 + 居中标题 */
.ts-line,
.gdoc-heading--line,
.gdoc-title-style-line :is(h1, h2, h3, h4, h5, h6),
.gdoc-l1-line h1, .gdoc-l2-line h2, .gdoc-l3-line h3,
.gdoc-l4-line h4, .gdoc-l5-line h5, .gdoc-l6-line h6 {
	display: flex;
	align-items: center;
	gap: 14px;
}

.ts-line::before, .ts-line::after,
.gdoc-heading--line::before, .gdoc-heading--line::after,
.gdoc-title-style-line :is(h1, h2, h3, h4, h5, h6)::before,
.gdoc-title-style-line :is(h1, h2, h3, h4, h5, h6)::after,
.gdoc-l1-line h1::before, .gdoc-l1-line h1::after,
.gdoc-l2-line h2::before, .gdoc-l2-line h2::after,
.gdoc-l3-line h3::before, .gdoc-l3-line h3::after,
.gdoc-l4-line h4::before, .gdoc-l4-line h4::after,
.gdoc-l5-line h5::before, .gdoc-l5-line h5::after,
.gdoc-l6-line h6::before, .gdoc-l6-line h6::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--main-border-color), transparent);
}

/* 5. icon 圆角图标底 + 标题 */
.ts-icon,
.gdoc-heading--icon,
.gdoc-title-style-icon :is(h1, h2, h3, h4, h5, h6),
.gdoc-l1-icon h1, .gdoc-l2-icon h2, .gdoc-l3-icon h3,
.gdoc-l4-icon h4, .gdoc-l5-icon h5, .gdoc-l6-icon h6 {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ts-icon::before,
.gdoc-heading--icon::before,
.gdoc-title-style-icon :is(h1, h2, h3, h4, h5, h6)::before,
.gdoc-l1-icon h1::before, .gdoc-l2-icon h2::before, .gdoc-l3-icon h3::before,
.gdoc-l4-icon h4::before, .gdoc-l5-icon h5::before, .gdoc-l6-icon h6::before {
	content: "";
	flex: none;
	width: 38px;
	height: 38px;
	border-radius: 14px;
	border: 1px solid var(--main-border-color);
	background:
		radial-gradient(circle at 50% 50%, var(--gugu-accent) 5px, transparent 6px),
		var(--muted-bg-color);
}

/* 6. underline 单线下划线 */
.ts-underline,
.gdoc-title-style-underline :is(h1, h2, h3, h4, h5, h6),
.gdoc-l1-underline h1, .gdoc-l2-underline h2, .gdoc-l3-underline h3,
.gdoc-l4-underline h4, .gdoc-l5-underline h5, .gdoc-l6-underline h6 {
	border-bottom: 2px solid var(--gugu-accent);
	padding-bottom: 6px;
}

/* 7. double 双下划线 */
.ts-double,
.gdoc-title-style-double :is(h1, h2, h3, h4, h5, h6),
.gdoc-l1-double h1, .gdoc-l2-double h2, .gdoc-l3-double h3,
.gdoc-l4-double h4, .gdoc-l5-double h5, .gdoc-l6-double h6 {
	border-bottom: 3px double var(--gugu-accent);
	padding-bottom: 6px;
}

/* 8. block 实心左色块（渐变块） */
.ts-block,
.gdoc-title-style-block :is(h1, h2, h3, h4, h5, h6),
.gdoc-l1-block h1, .gdoc-l2-block h2, .gdoc-l3-block h3,
.gdoc-l4-block h4, .gdoc-l5-block h5, .gdoc-l6-block h6 {
	width: fit-content;
	padding: 4px 12px;
	border-radius: 8px;
	background: linear-gradient(135deg, var(--gugu-accent), var(--gugu-accent-2));
	color: #fff;
}

/* 9. gradient 渐变文字 */
.ts-gradient,
.gdoc-title-style-gradient :is(h1, h2, h3, h4, h5, h6),
.gdoc-l1-gradient h1, .gdoc-l2-gradient h2, .gdoc-l3-gradient h3,
.gdoc-l4-gradient h4, .gdoc-l5-gradient h5, .gdoc-l6-gradient h6 {
	background: linear-gradient(120deg, var(--gugu-accent), var(--gugu-accent-2));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* 10. number 序号圆底 */
.ts-number,
.gdoc-title-style-number :is(h1, h2, h3, h4, h5, h6),
.gdoc-l1-number h1, .gdoc-l2-number h2, .gdoc-l3-number h3,
.gdoc-l4-number h4, .gdoc-l5-number h5, .gdoc-l6-number h6 {
	display: flex;
	align-items: center;
	gap: 11px;
}

.ts-number::before,
.gdoc-title-style-number :is(h1, h2, h3, h4, h5, h6)::before,
.gdoc-l1-number h1::before, .gdoc-l2-number h2::before, .gdoc-l3-number h3::before,
.gdoc-l4-number h4::before, .gdoc-l5-number h5::before, .gdoc-l6-number h6::before {
	content: "";
	flex: none;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--gugu-accent), var(--gugu-accent-2));
	box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.18);
}

/* 11. bracket 两侧方括号 */
.ts-bracket,
.gdoc-title-style-bracket :is(h1, h2, h3, h4, h5, h6),
.gdoc-l1-bracket h1, .gdoc-l2-bracket h2, .gdoc-l3-bracket h3,
.gdoc-l4-bracket h4, .gdoc-l5-bracket h5, .gdoc-l6-bracket h6 {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ts-bracket::before, .ts-bracket::after,
.gdoc-title-style-bracket :is(h1, h2, h3, h4, h5, h6)::before,
.gdoc-title-style-bracket :is(h1, h2, h3, h4, h5, h6)::after,
.gdoc-l1-bracket h1::before, .gdoc-l1-bracket h1::after,
.gdoc-l2-bracket h2::before, .gdoc-l2-bracket h2::after,
.gdoc-l3-bracket h3::before, .gdoc-l3-bracket h3::after,
.gdoc-l4-bracket h4::before, .gdoc-l4-bracket h4::after,
.gdoc-l5-bracket h5::before, .gdoc-l5-bracket h5::after,
.gdoc-l6-bracket h6::before, .gdoc-l6-bracket h6::after {
	content: "[";
	color: var(--gugu-accent);
	font-weight: 800;
}

.ts-bracket::after,
.gdoc-title-style-bracket :is(h1, h2, h3, h4, h5, h6)::after,
.gdoc-l1-bracket h1::after, .gdoc-l2-bracket h2::after, .gdoc-l3-bracket h3::after,
.gdoc-l4-bracket h4::after, .gdoc-l5-bracket h5::after, .gdoc-l6-bracket h6::after {
	content: "]";
}

/* 12. shadow 投影浮起 */
.ts-shadow,
.gdoc-title-style-shadow :is(h1, h2, h3, h4, h5, h6),
.gdoc-l1-shadow h1, .gdoc-l2-shadow h2, .gdoc-l3-shadow h3,
.gdoc-l4-shadow h4, .gdoc-l5-shadow h5, .gdoc-l6-shadow h6 {
	text-shadow: 0 8px 22px var(--focus-shadow-color);
}

/* 13. outline 描边空心 */
.ts-outline,
.gdoc-title-style-outline :is(h1, h2, h3, h4, h5, h6),
.gdoc-l1-outline h1, .gdoc-l2-outline h2, .gdoc-l3-outline h3,
.gdoc-l4-outline h4, .gdoc-l5-outline h5, .gdoc-l6-outline h6 {
	width: fit-content;
	border: 1.5px solid var(--gugu-accent);
	color: var(--gugu-accent);
	padding: 4px 12px;
	border-radius: 10px;
}

/* 14. highlight 荧光高亮 */
.ts-highlight,
.gdoc-title-style-highlight :is(h1, h2, h3, h4, h5, h6),
.gdoc-l1-highlight h1, .gdoc-l2-highlight h2, .gdoc-l3-highlight h3,
.gdoc-l4-highlight h4, .gdoc-l5-highlight h5, .gdoc-l6-highlight h6 {
	width: fit-content;
	background: linear-gradient(transparent 58%,
		rgba(139, 124, 246, 0.28) 58%);
	padding: 0 4px;
}

/* 15. corner 四角括号 */
.ts-corner,
.gdoc-title-style-corner :is(h1, h2, h3, h4, h5, h6),
.gdoc-l1-corner h1, .gdoc-l2-corner h2, .gdoc-l3-corner h3,
.gdoc-l4-corner h4, .gdoc-l5-corner h5, .gdoc-l6-corner h6 {
	position: relative;
	width: fit-content;
	padding: 4px 8px;
}

.ts-corner::before, .ts-corner::after,
.gdoc-title-style-corner :is(h1, h2, h3, h4, h5, h6)::before,
.gdoc-title-style-corner :is(h1, h2, h3, h4, h5, h6)::after,
.gdoc-l1-corner h1::before, .gdoc-l1-corner h1::after,
.gdoc-l2-corner h2::before, .gdoc-l2-corner h2::after,
.gdoc-l3-corner h3::before, .gdoc-l3-corner h3::after,
.gdoc-l4-corner h4::before, .gdoc-l4-corner h4::after,
.gdoc-l5-corner h5::before, .gdoc-l5-corner h5::after,
.gdoc-l6-corner h6::before, .gdoc-l6-corner h6::after {
	content: "";
	position: absolute;
	width: 10px;
	height: 10px;
	border-color: var(--gugu-accent);
	border-style: solid;
}

.ts-corner::before,
.gdoc-title-style-corner :is(h1, h2, h3, h4, h5, h6)::before,
.gdoc-l1-corner h1::before, .gdoc-l2-corner h2::before, .gdoc-l3-corner h3::before,
.gdoc-l4-corner h4::before, .gdoc-l5-corner h5::before, .gdoc-l6-corner h6::before {
	top: 0;
	left: 0;
	border-width: 2px 0 0 2px;
}

.ts-corner::after,
.gdoc-title-style-corner :is(h1, h2, h3, h4, h5, h6)::after,
.gdoc-l1-corner h1::after, .gdoc-l2-corner h2::after, .gdoc-l3-corner h3::after,
.gdoc-l4-corner h4::after, .gdoc-l5-corner h5::after, .gdoc-l6-corner h6::after {
	bottom: 0;
	right: 0;
	border-width: 0 2px 2px 0;
}

/* 16. wave 波浪下划线 */
.ts-wave,
.gdoc-title-style-wave :is(h1, h2, h3, h4, h5, h6),
.gdoc-l1-wave h1, .gdoc-l2-wave h2, .gdoc-l3-wave h3,
.gdoc-l4-wave h4, .gdoc-l5-wave h5, .gdoc-l6-wave h6 {
	text-decoration: underline wavy var(--gugu-accent);
	text-underline-offset: 6px;
}

/* 17. dash 虚线分隔 */
.ts-dash,
.gdoc-title-style-dash :is(h1, h2, h3, h4, h5, h6),
.gdoc-l1-dash h1, .gdoc-l2-dash h2, .gdoc-l3-dash h3,
.gdoc-l4-dash h4, .gdoc-l5-dash h5, .gdoc-l6-dash h6 {
	border-bottom: 2px dashed var(--gugu-accent);
	padding-bottom: 6px;
}

/* 18. pill 整行胶囊底 */
.ts-pill,
.gdoc-title-style-pill :is(h1, h2, h3, h4, h5, h6),
.gdoc-l1-pill h1, .gdoc-l2-pill h2, .gdoc-l3-pill h3,
.gdoc-l4-pill h4, .gdoc-l5-pill h5, .gdoc-l6-pill h6 {
	display: flex;
	width: fit-content;
	padding: 6px 16px;
	border-radius: 999px;
	background: var(--muted-bg-color);
	color: var(--key-color);
}

/* 19. diamond 菱形前缀 */
.ts-diamond,
.gdoc-title-style-diamond :is(h1, h2, h3, h4, h5, h6),
.gdoc-l1-diamond h1, .gdoc-l2-diamond h2, .gdoc-l3-diamond h3,
.gdoc-l4-diamond h4, .gdoc-l5-diamond h5, .gdoc-l6-diamond h6 {
	display: flex;
	align-items: center;
	gap: 11px;
}

.ts-diamond::before,
.gdoc-title-style-diamond :is(h1, h2, h3, h4, h5, h6)::before,
.gdoc-l1-diamond h1::before, .gdoc-l2-diamond h2::before, .gdoc-l3-diamond h3::before,
.gdoc-l4-diamond h4::before, .gdoc-l5-diamond h5::before, .gdoc-l6-diamond h6::before {
	content: "";
	flex: none;
	width: 12px;
	height: 12px;
	transform: rotate(45deg);
	background: linear-gradient(135deg, var(--gugu-accent), var(--gugu-accent-2));
}

/* 20. slash 斜杠分隔 */
.ts-slash,
.gdoc-title-style-slash :is(h1, h2, h3, h4, h5, h6),
.gdoc-l1-slash h1, .gdoc-l2-slash h2, .gdoc-l3-slash h3,
.gdoc-l4-slash h4, .gdoc-l5-slash h5, .gdoc-l6-slash h6 {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ts-slash::before, .ts-slash::after,
.gdoc-title-style-slash :is(h1, h2, h3, h4, h5, h6)::before,
.gdoc-title-style-slash :is(h1, h2, h3, h4, h5, h6)::after,
.gdoc-l1-slash h1::before, .gdoc-l1-slash h1::after,
.gdoc-l2-slash h2::before, .gdoc-l2-slash h2::after,
.gdoc-l3-slash h3::before, .gdoc-l3-slash h3::after,
.gdoc-l4-slash h4::before, .gdoc-l4-slash h4::after,
.gdoc-l5-slash h5::before, .gdoc-l5-slash h5::after,
.gdoc-l6-slash h6::before, .gdoc-l6-slash h6::after {
	content: "/";
	color: var(--gugu-accent);
	font-weight: 800;
}

/* 21. boxed 边框卡片标题 */
.ts-boxed,
.gdoc-title-style-boxed :is(h1, h2, h3, h4, h5, h6),
.gdoc-l1-boxed h1, .gdoc-l2-boxed h2, .gdoc-l3-boxed h3,
.gdoc-l4-boxed h4, .gdoc-l5-boxed h5, .gdoc-l6-boxed h6 {
	border: 1px solid var(--main-border-color);
	padding: 12px 16px;
	border-radius: var(--main-radius);
	background: var(--main-bg-color);
}

/* 22. stick 顶部横条 */
.ts-stick,
.gdoc-title-style-stick :is(h1, h2, h3, h4, h5, h6),
.gdoc-l1-stick h1, .gdoc-l2-stick h2, .gdoc-l3-stick h3,
.gdoc-l4-stick h4, .gdoc-l5-stick h5, .gdoc-l6-stick h6 {
	border-top: 3px solid var(--gugu-accent);
	padding-top: 10px;
}

/* 23. softbg 浅色底块 */
.ts-softbg,
.gdoc-title-style-softbg :is(h1, h2, h3, h4, h5, h6),
.gdoc-l1-softbg h1, .gdoc-l2-softbg h2, .gdoc-l3-softbg h3,
.gdoc-l4-softbg h4, .gdoc-l5-softbg h5, .gdoc-l6-softbg h6 {
	padding: 8px 14px;
	background: var(--muted-bg-color);
	border-left: 3px solid var(--gugu-accent);
	border-radius: var(--main-radius);
}

/* 24. mono 等宽下划线风 */
.ts-mono,
.gdoc-title-style-mono :is(h1, h2, h3, h4, h5, h6),
.gdoc-l1-mono h1, .gdoc-l2-mono h2, .gdoc-l3-mono h3,
.gdoc-l4-mono h4, .gdoc-l5-mono h5, .gdoc-l6-mono h6 {
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
	letter-spacing: 0.04em;
	border-bottom: 1px dashed var(--muted-color);
}

/* 25. pop 贴纸气泡 */
.ts-pop,
.gdoc-title-style-pop :is(h1, h2, h3, h4, h5, h6),
.gdoc-l1-pop h1, .gdoc-l2-pop h2, .gdoc-l3-pop h3,
.gdoc-l4-pop h4, .gdoc-l5-pop h5, .gdoc-l6-pop h6 {
	display: block;
	width: fit-content;
	padding: 4px 14px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--gugu-accent), var(--gugu-accent-2));
	color: #fff;
	transform: rotate(-1.5deg);
	box-shadow: 0 10px 24px var(--focus-shadow-color);
}

/* =========================================================================
   14. 可调尺寸图片
   ========================================================================= */

.gimg {
	margin: 1.6em auto;
	text-align: center;
}

.gimg img {
	display: inline-block;
	box-shadow: 0 18px 40px var(--main-shadow);
}

.gimg--left  { text-align: left; }
.gimg--right { text-align: right; }

.gimg-caption {
	margin-top: 10px;
	font-size: 13px;
	color: var(--muted-color);
}

/* =========================================================================
   15. 顶部导航栏：保留子比原生导航，仅隐藏前台 WP 后台工具栏
   ========================================================================= */

#wpadminbar {
	display: none !important;
}

html {
	margin-top: 0 !important;
}

body.admin-bar {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* =========================================================================
   16. 首页文档搜索 Hero
   ========================================================================= */

.gugu-home-hero {
	padding: 24px 0 26px;
	text-align: center;
}

.gugu-home-title {
	margin: 0 0 10px;
	font-size: clamp(24px, 4vw, 32px);
	font-weight: 800;
	letter-spacing: -0.02em;
	background: linear-gradient(120deg, var(--key-color) 30%, var(--gugu-accent));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.gugu-search {
	display: flex;
	gap: 10px;
	max-width: 560px;
	margin: 0 auto;
}

.gugu-search-input {
	flex: 1;
	min-width: 0;
	padding: 13px 16px;
	border-radius: 999px;
	border: 1px solid var(--main-border-color);
	background: var(--muted-bg-color);
	color: var(--key-color);
	font-size: 15px;
	font-family: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gugu-search-input::placeholder {
	color: var(--muted-color);
	opacity: 0.75;
}

.gugu-search-input:focus {
	outline: none;
	border-color: var(--gugu-accent);
	box-shadow: 0 0 0 3px rgba(139, 124, 246, 0.18);
}

.gugu-search-btn {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 22px;
	border-radius: 999px;
	border: none;
	cursor: pointer;
	background: #7c6ce8;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	font-family: inherit;
	box-shadow: 0 10px 24px rgba(124, 108, 232, 0.30);
	transition: transform 0.15s ease, background 0.2s ease;
}

.gugu-search-btn:hover {
	background: #6d5cdd;
	transform: translateY(-2px);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 640px) {
	.gugu-search {
		flex-direction: column;
	}
	.gugu-search-btn {
		justify-content: center;
		width: 100%;
	}
	.gcopy-body,
	.glink-body {
		flex-direction: column;
		align-items: stretch;
	}
	.gcopy-btn,
	.glink-btn {
		justify-content: center;
	}
}

/* =========================================================================
   17. 去除首页 Tab 导航与分类 / 专题 / 标签 / 排序筛选条
   ========================================================================= */

.home .home-tab-nav-box,
.blog .home-tab-nav-box,
.home .ajax-option,
.blog .ajax-option {
	display: none !important;
}

/* =========================================================================
   18. 文章页：去除作者关注 / 私信操作区
   ========================================================================= */

.single .article-avatar .user-action,
.single .author .user-action,
.single .author .follow {
	display: none !important;
}

/* 文章底部点赞 / 收藏 / 打赏 / 分享操作条（intro 文案由皮肤脚本一并移除） */
.single .post-actions {
	display: none !important;
}

/* =========================================================================
   19. 朋友圈式首页信息流（后台「首页信息流样式」切换为朋友圈流时生效）
   ========================================================================= */

body.gugu-feed-moments .sidebar,
body.gugu-feed-moments .gugu-home-hero {
	display: none !important;
}

body.gugu-feed-moments .content-layout {
	margin-right: 0 !important;
}

body.gugu-feed-moments .gz-moments-content {
	float: none;
	max-width: 100%;
	margin: 0 auto;
}

.gz-moments-wrap {
	display: flex;
	flex-direction: column;
	gap: 18px;
	width: 100%;
}

/* ---------- 封面 ---------- */

.gz-moments-cover {
	position: relative;
	margin: 0 auto 6px;
	width: 100%;
	max-width: var(--gz-card-w, 760px);
	aspect-ratio: 16 / 6.2;
	height: var(--gz-cover-h, auto);
	border-radius: 18px;
	overflow: hidden;
	background: linear-gradient(135deg, #8b7cf6 0%, #5ec8d8 100%);
	box-shadow: 0 14px 34px rgba(58, 45, 39, 0.12);
}

.gz-moments-cover--plain {
	background:
		radial-gradient(420px 220px at 12% 18%, rgba(255, 255, 255, 0.35), transparent 65%),
		linear-gradient(135deg, #8b7cf6 0%, #5ec8d8 100%);
}

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

.gz-moments-cover-mask {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.42) 100%);
	pointer-events: none;
}

.gz-moments-brand {
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: 14px;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	pointer-events: none;
}

.gz-moments-brand--badge-only {
	justify-content: flex-end;
}

.gz-moments-brand-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	color: #fff;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.gz-moments-brand-name {
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.gz-moments-brand-sub {
	font-size: 12px;
	opacity: 0.86;
}

.gz-moments-brand-badge {
	flex: none;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
	font-size: 20px;
	font-weight: 700;
	color: #7c6ce8;
}

.gz-moments-brand-badge img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gz-moments-brand-badge-text {
	display: none;
}

.gz-moments-brand-badge.is-fallback .gz-moments-brand-badge-text {
	display: block;
}

/* ---------- 胶囊分类标签 ---------- */

.gz-moments-bar {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	max-width: var(--gz-card-w, 760px);
	margin: 0 auto;
}

.gz-moments-tabs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 0;
	padding: 2px 2px 0;
}

.gz-moments-search {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	width: 200px;
	max-width: 100%;
	padding: 2px 4px 2px 12px;
	border-radius: 999px;
	border: 1px solid var(--main-border-color);
	background: var(--main-bg-color);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gz-moments-search:focus-within {
	border-color: var(--gugu-accent);
	box-shadow: 0 0 0 3px rgba(124, 108, 232, 0.12);
}

.gz-moments-search-input {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	height: 28px;
	border: 0;
	background: transparent;
	color: var(--key-color);
	font-size: 13px;
	outline: none;
}

.gz-moments-search-input::placeholder {
	color: var(--muted-color);
}

.gz-moments-search-btn {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--muted-color);
	cursor: pointer;
	transition: color 0.2s ease;
}

.gz-moments-search-btn:hover {
	color: var(--gugu-accent);
}

.gz-moments-tab {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--muted-bg-color);
	border: 1px solid var(--main-border-color);
	color: var(--muted-color);
	font-size: 13px;
	line-height: 1.4;
	text-decoration: none;
	transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.gz-moments-tab:hover {
	color: var(--key-color);
	border-color: var(--gugu-accent);
}

.gz-moments-tab.is-active {
	background: #4caf82;
	border-color: transparent;
	color: #fff;
	font-weight: 600;
}

.gz-moments-tab.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.gz-moments-list.is-loading {
	opacity: 0.45;
	transition: opacity 0.2s ease;
}

body.dark-theme .gz-moments-tab.is-active {
	background: #40be82;
}

/* ---------- 动态卡片 ---------- */

.gz-moments-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
	max-width: var(--gz-card-w, 760px);
	margin: 0 auto;
}

.gz-moment {
	display: flex;
	flex-direction: column;
	min-height: var(--gz-card-h, auto);
	padding: 16px 18px 14px;
	border-radius: 16px;
	background: var(--main-bg-color);
	border: 1px solid var(--main-border-color);
	box-shadow: 0 2px 10px rgba(58, 45, 39, 0.04);
}

body.dark-theme .gz-moment {
	box-shadow: none;
}

.gz-moment-head {
	display: flex;
	align-items: center;
	gap: 10px;
}

.gz-moment-avatar {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	object-fit: cover;
	display: block;
	flex: none;
	background: var(--muted-bg-color);
}

.gz-moment-avatar-box {
	position: relative;
	width: 44px;
	height: 44px;
	flex: none;
}

.gz-moment-avatar-box > .gz-moment-avatar {
	width: 100%;
	height: 100%;
}

.gz-moment-avatar-box > .gz-moment-avatar--text {
	position: absolute;
	inset: 0;
	border-radius: 12px;
}

.gz-moment-avatar--text {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #8b7cf6, #5ec8d8);
	color: #fff;
	font-weight: 700;
}

.gz-moment-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.gz-moment-name {
	font-size: 14px;
	font-weight: 600;
	color: var(--key-color);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.gz-moment-time {
	font-size: 12px;
	color: var(--muted-color);
}

.gz-moment-body {
	margin-top: 10px;
}

.gz-moment-title {
	display: block;
	font-size: 15px;
	font-weight: 600;
	color: var(--key-color);
	text-decoration: none;
	line-height: 1.55;
}

.gz-moment-title:hover {
	color: var(--gugu-accent);
}

.gz-moment-text {
	margin: 6px 0 0;
	font-size: 14px;
	line-height: 1.75;
	color: var(--muted-color);
}

/* ---------- 图片网格（最多 3 张，一至三列自适应） ---------- */

.gz-moment-gallery {
	margin-top: 12px;
	display: grid;
	gap: 6px;
	grid-template-columns: repeat(3, 1fr);
}

.gz-moment-gallery--1 {
	grid-template-columns: minmax(0, 62%);
}

.gz-moment-gallery--2 {
	grid-template-columns: repeat(2, 1fr);
}

.gz-moment-thumb {
	display: block;
	border-radius: 10px;
	overflow: hidden;
	background: var(--muted-bg-color);
	aspect-ratio: 1 / 1;
}

.gz-moment-gallery--1 .gz-moment-thumb {
	aspect-ratio: 4 / 3;
}

.gz-moment-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.25s ease;
}

.gz-moment-thumb:hover img {
	transform: scale(1.04);
}

/* ---------- 底部 ---------- */

.gz-moment-foot {
	margin-top: auto;
	padding-top: 12px;
	display: flex;
	justify-content: flex-end;
}

.gz-moment-more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	color: var(--gugu-accent);
	text-decoration: none;
}

.gz-moment-more:hover {
	color: var(--focus-color);
}

.gz-moments-empty {
	padding: 40px 0;
	text-align: center;
	color: var(--muted-color);
}

/* ---------- 分页 ---------- */

.gz-moments-paging {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	width: 100%;
	max-width: var(--gz-card-w, 760px);
	margin: 10px auto 4px;
}

.gz-moments-paging a,
.gz-moments-paging span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 10px;
	border-radius: 10px;
	border: 1px solid var(--main-border-color);
	background: var(--main-bg-color);
	color: var(--key-color);
	font-size: 13px;
	text-decoration: none;
}

.gz-moments-paging a:hover {
	border-color: var(--gugu-accent);
	color: var(--gugu-accent);
}

.gz-moments-paging .current {
	background: #7c6ce8;
	border-color: transparent;
	color: #fff;
}

@media (max-width: 640px) {
	.gz-moments-cover {
		border-radius: 14px;
		aspect-ratio: 16 / 8;
	}
	.gz-moments-bar {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}
	.gz-moments-search {
		width: 100%;
	}
	.gz-moments-brand-name {
		font-size: 15px;
	}
	.gz-moments-brand-badge {
		width: 44px;
		height: 44px;
		border-radius: 12px;
	}
	.gz-moment {
		padding: 14px 14px 12px;
		border-radius: 14px;
	}
	.gz-moment-gallery {
		gap: 4px;
	}
	.gz-moment-gallery--1 {
		grid-template-columns: 1fr;
	}
}

/* =========================================================================
   20. 前台投稿 / 编辑页：常驻底部保存发布条
   ========================================================================= */

.newposts-wrap {
	padding-bottom: 96px;
}

.gz-newposts-actions.but-average {
	position: fixed;
	left: 50%;
	bottom: max(16px, env(safe-area-inset-bottom));
	transform: translateX(-50%);
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: auto;
	max-width: calc(100vw - 32px);
	padding: 10px 12px;
	border-radius: 16px;
	overflow: visible;
	border: 1px solid var(--main-border-color);
	background: rgba(255, 255, 255, 0.88);
	-webkit-backdrop-filter: blur(14px) saturate(1.3);
	backdrop-filter: blur(14px) saturate(1.3);
	box-shadow: 0 12px 32px rgba(58, 45, 39, 0.16);
}

body.dark-theme .gz-newposts-actions.but-average {
	background: rgba(22, 19, 34, 0.86);
	border-color: rgba(255, 255, 255, 0.14);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.gz-newposts-actions.but-average > botton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: auto;
	min-width: 132px;
	margin: 0 !important;
	padding: 10px 20px;
	border: 0;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: #fff;
	cursor: pointer;
	transition: transform 0.15s ease, filter 0.2s ease;
}

.gz-newposts-actions.but-average > botton:hover {
	transform: translateY(-1px);
	filter: brightness(1.05);
}

.gz-newposts-actions.but-average > botton[action="posts_draft"] {
	background: #f3effe;
	color: #6d5cdd;
}

body.dark-theme .gz-newposts-actions.but-average > botton[action="posts_draft"] {
	background: rgba(255, 255, 255, 0.10);
	color: #cfc8ff;
}

.gz-newposts-actions.but-average > botton[action="posts_save"] {
	background: linear-gradient(135deg, #7c6ce8 0%, #5ec8d8 100%);
	box-shadow: 0 8px 20px rgba(124, 108, 232, 0.32);
}

.gz-newposts-actions.but-average > botton.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

@media (max-width: 640px) {
	.newposts-wrap {
		padding-bottom: 104px;
	}
	.gz-newposts-actions.but-average {
		left: 12px;
		right: 12px;
		transform: none;
		max-width: none;
		padding: 8px 10px;
	}
	.gz-newposts-actions.but-average > botton {
		flex: 1;
		min-width: 0;
		padding: 10px 12px;
		font-size: 13px;
	}
}

/* =========================================================================
   21. 前台投稿 / 编辑页：右栏参数面板常显（分类等必填项不再被隐藏或挤到最底部）
   ========================================================================= */

@media (min-width: 1000px) {
	.newposts-wrap .content-layout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 320px;
		align-items: start;
		gap: 20px;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	.newposts-wrap .sidebar {
		display: block !important;
		float: none;
		width: auto !important;
		margin: 0 !important;
		position: sticky;
		top: 84px;
	}

	.newposts-wrap .sidebar .zib-widget {
		margin-bottom: 14px;
	}
}

.gz-newpost-cats {
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid var(--main-border-color);
	background: var(--muted-bg-color);
}

.gz-newpost-cats-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--key-color);
}

.gz-newpost-cats-tip {
	font-size: 11px;
	font-weight: 400;
	color: var(--muted-color);
}

.gz-newpost-cats-list {
	max-height: 220px;
	overflow-y: auto;
}

.gz-newpost-cats-list > div {
	padding: 3px 0;
}

.gz-newpost-cats-list label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--key-color);
	cursor: pointer;
}

.gz-newpost-cats-list input[type='checkbox'] {
	width: 15px;
	height: 15px;
	margin: 0;
	flex: none;
	accent-color: #7c6ce8;
}

/* 主编辑列（标题下方）的分类面板：胶囊式多选，永远可见 */
.gz-newpost-cats-main {
	margin: 12px 0 16px;
	padding: 10px 12px 12px;
}

.gz-newpost-cats-main .gz-newpost-cats-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	max-height: none;
	overflow: visible;
}

.gz-newpost-cats-main .gz-newpost-cats-list > div {
	padding: 0;
}

.gz-newpost-cats-main .gz-newpost-cats-list .ml20 {
	margin-left: 0;
}

.gz-newpost-cats-main .gz-newpost-cats-list label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px 6px 10px;
	border: 1px solid var(--main-border-color);
	border-radius: 999px;
	background: var(--main-bg-color);
	font-size: 13px;
	line-height: 1.5;
	transition: border-color 0.18s ease, color 0.18s ease;
}

.gz-newpost-cats-main .gz-newpost-cats-list label:hover {
	border-color: var(--gugu-accent);
}

.gz-newpost-cats-main .gz-newpost-cats-list input:checked ~ span {
	color: var(--gugu-accent);
	font-weight: 600;
}

body.dark-theme .gz-newpost-cats-main .gz-newpost-cats-list label {
	background: rgba(255, 255, 255, 0.05);
}

body.dark-theme .gz-newpost-cats-main .gz-newpost-cats-list label:hover {
	border-color: var(--gugu-accent-2);
}

/* 同类问题：论坛发帖/编辑页的「板块」等必填项也在侧栏，单栏布局下会被 .site-layout-1 .sidebar 隐藏 */
@media (min-width: 1000px) {
	#bbs-posts-edit > .container {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 320px;
		align-items: start;
		gap: 20px;
	}

	#bbs-posts-edit .content-wrap {
		float: none;
		width: auto;
	}

	#bbs-posts-edit .sidebar {
		display: block !important;
		float: none;
		width: auto !important;
		margin: 0 !important;
		position: sticky;
		top: 84px;
	}
}
