/* ==========================================================================
   会员社区 · 前台样式（board.php / thread.php 共用）
   设计原点：Discovery-first 内容优先 + Reader-first 阅读优先
   依赖 inc/header.php 的设计令牌，浅色 / 深色 / 5 套配色方案自动适配。
   不覆盖站点既有 .wrap / .btn / .alert / .tiny 等基础类。
   ========================================================================== */
:root{
	--cm-sticky:66px;--cm-pad:20px;
	--cm-danger:#C7443E;--cm-danger-bg:#FDECEC;--cm-danger-bd:#F7DAD8;
	--cm-warn:#9A6A00;--cm-warn-bg:#FDF3D8;--cm-warn-bd:#F0E0B4;
	--cm-info:#2563EB;--cm-info-bg:#EFF6FF;
	--cm-shadow:0 1px 2px rgba(16,28,22,.04),0 8px 24px -14px rgba(16,28,22,.14);
}
html.zfx-dark{
	--cm-danger:#FF9A92;--cm-danger-bg:rgba(199,68,62,.16);--cm-danger-bd:rgba(199,68,62,.34);
	--cm-warn:#E8C477;--cm-warn-bg:rgba(201,154,46,.16);--cm-warn-bd:rgba(201,154,46,.32);
	--cm-info:#8FB6FF;--cm-info-bg:rgba(37,99,235,.18);
	--cm-shadow:0 1px 2px rgba(0,0,0,.34),0 10px 26px -16px rgba(0,0,0,.6);
}
@media(max-width:900px){:root{--cm-sticky:52px;--cm-pad:14px}}
@media(max-width:560px){:root{--cm-pad:12px}}

.cm{max-width:1160px;margin:0 auto;padding:0 var(--cm-pad)}

/* ---------- 通用原子 ---------- */
.cm-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:var(--cm-shadow)}
.cm-ico{width:15px;height:15px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cm-av{display:flex;align-items:center;justify-content:center;flex:none;overflow:hidden;color:#fff;text-decoration:none;
	font-weight:700;border-radius:12px;background:linear-gradient(150deg,var(--grad-a),var(--grad-b))}
.cm-av img{width:100%;height:100%;object-fit:cover;display:block}
.cm-av--lg{width:44px;height:44px;font-size:17px;border-radius:14px}
.cm-av--sm{width:34px;height:34px;font-size:13px;border-radius:11px}
.cm-av--xs{width:26px;height:26px;font-size:11px;border-radius:9px}
.cm-badge{display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:6px;font-size:11px;font-weight:700;letter-spacing:.2px;white-space:nowrap}
.cm-badge--top{background:var(--cm-danger-bg);color:var(--cm-danger);border:1px solid var(--cm-danger-bd)}
.cm-badge--digest{background:var(--cm-warn-bg);color:var(--cm-warn);border:1px solid var(--cm-warn-bd)}
.cm-badge--wait{background:var(--cm-info-bg);color:var(--cm-info)}
.cm-badge--me{background:var(--brand-soft);color:var(--brand-t);border:1px solid var(--line-brand)}
.cm-muted{color:var(--ink-3)}
.cm-divider{height:1px;background:var(--line);margin:0}

/* ---------- 社区顶栏（slim header） ---------- */
.cm-head{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:26px 0 18px}
.cm-head__t{flex:1;min-width:210px}
.cm-head__t h1{font-size:25px;font-weight:800;letter-spacing:-.6px;line-height:1.25;margin:0 0 4px}
.cm-head__t p{margin:0;font-size:13.5px;color:var(--ink-2);line-height:1.6}
.cm-head__act{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.cm-search{display:flex;align-items:center;gap:8px;height:40px;padding:0 12px;border-radius:11px;
	background:var(--surface);border:1px solid var(--line);color:var(--ink-3);min-width:210px;transition:border-color .18s,box-shadow .18s}
.cm-search:focus-within{border-color:var(--brand);box-shadow:0 0 0 4px var(--ring)}
.cm-search input{border:0;background:transparent;outline:0;color:var(--ink);font-size:13.5px;width:100%;font-family:inherit;box-shadow:none;height:auto;padding:0}
.cm-search input:focus{box-shadow:none;border:0}
html.zfx-dark .cm-search input{background:transparent;color:var(--ink)}

/* ---------- 板块胶囊 ---------- */
.cm-chips{display:flex;gap:8px;overflow-x:auto;padding:2px 0 16px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.cm-chips::-webkit-scrollbar{display:none}
.cm-chip{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 14px;border-radius:999px;flex:none;
	background:var(--surface);border:1px solid var(--line);color:var(--ink-2);font-size:13px;font-weight:600;
	text-decoration:none;white-space:nowrap;transition:.16s}
.cm-chip:hover{border-color:var(--brand);color:var(--brand-t);text-decoration:none}
.cm-chip.is-on{background:var(--brand-soft);border-color:var(--line-brand);color:var(--brand-t)}
.cm-chip small{font-size:11px;font-weight:600;opacity:.65;font-variant-numeric:tabular-nums}

/* ---------- 两栏骨架 ---------- */
.cm-grid{display:grid;grid-template-columns:minmax(0,1fr) 286px;gap:22px;align-items:start;padding-bottom:36px}
@media(max-width:1000px){.cm-grid{grid-template-columns:minmax(0,1fr)}}

/* ---------- 排序 / 列表头 ---------- */
.cm-feed__hd{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.cm-tabs{display:flex;gap:5px;padding:4px;border-radius:12px;background:var(--surface-2);border:1px solid var(--line)}
.cm-tab{display:inline-flex;align-items:center;height:30px;padding:0 13px;border-radius:9px;font-size:13px;font-weight:600;
	color:var(--ink-2);text-decoration:none;white-space:nowrap;transition:.16s}
.cm-tab:hover{color:var(--brand-t);text-decoration:none}
.cm-tab.is-on{background:var(--surface);color:var(--brand-t);box-shadow:0 1px 4px rgba(16,28,22,.08)}
.cm-feed__n{font-size:12.5px;color:var(--ink-3);font-variant-numeric:tabular-nums}

/* ---------- 主题卡片 ---------- */
.cm-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 14px;flex-wrap:wrap}
.cm-feed-n{font-size:12.5px;color:var(--ink-3);font-variant-numeric:tabular-nums;flex:none}
.cm-feed{gap:12px;display:flex;flex-direction:column}
.cm-post{display:block;padding:18px 20px;text-decoration:none;color:inherit;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--cm-shadow);transition:border-color .18s,transform .18s,box-shadow .18s}
a.cm-post:hover{border-color:var(--line-brand);transform:translateY(-1px);box-shadow:0 4px 18px -10px rgba(var(--brand-rgb),.5);text-decoration:none}
.cm-post.is-top{background:linear-gradient(90deg,var(--brand-soft),var(--surface) 32%)}
.cm-post__hd{display:flex;align-items:center;gap:10px;margin-bottom:12px;min-width:0}
.cm-post__by{min-width:0;flex:1}
.cm-post__by b{display:block;font-size:13.5px;font-weight:700;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-post__by span{display:block;font-size:12px;color:var(--ink-3);line-height:1.4;margin-top:1px}
.cm-post__badges{display:flex;gap:5px;flex-wrap:wrap;flex:none}
.cm-post__title{display:block;font-size:17px;font-weight:700;line-height:1.5;letter-spacing:-.2px;margin:0 0 7px;
	color:var(--ink);word-break:break-word}
.cm-post:hover .cm-post__title{color:var(--brand-t)}
.cm-post__excerpt{font-size:13.5px;line-height:1.7;color:var(--ink-2);margin:0 0 14px;
	display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word}
/* 配图主题：文字列 + 右侧单张缩略图，正文仍是主流社区的单列信息流 */
.cm-post__main{display:flex;align-items:flex-start;gap:14px;margin-bottom:14px}
.cm-post__txt{flex:1;min-width:0}
.cm-post__main .cm-post__excerpt{margin-bottom:0}
.cm-post__thumb{flex:none;width:104px;height:78px;object-fit:cover;border-radius:10px;
	background:var(--surface-2);border:1px solid var(--line-2)}
.cm-post.has-img .cm-post__title{-webkit-line-clamp:2}
.cm-post__ft{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding-top:12px;border-top:1px solid var(--line-2)}
.cm-post__stat{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;color:var(--ink-3);font-variant-numeric:tabular-nums}
.cm-post__sec{display:inline-flex;align-items:center;gap:5px;height:23px;padding:0 9px;border-radius:7px;
	background:var(--brand-soft);color:var(--brand-t);font-size:11.5px;font-weight:600;margin-left:auto}
.cm-post__go{font-size:12.5px;color:var(--brand-t);font-weight:600;margin-left:auto}
.cm-post__sec+.cm-post__go{margin-left:0}
.cm-post.is-wait{background:var(--cm-warn-bg);border-color:var(--cm-warn-bd)}

/* ---------- 侧栏 ---------- */
.cm-side{display:flex;flex-direction:column;gap:14px;position:sticky;top:calc(var(--cm-sticky) + 14px)}
/* 必须写在 .cm-side 基础规则之后：媒体查询不提升特异性，放前面会被 display:flex 覆盖，
   导致手机端滚到底仍出现一整列桌面侧栏（社区此刻 / 参与讨论 / 板块导航 / 社区公约）。 */
@media(max-width:1000px){.cm-side{display:none}}
.cm-side__c{padding:17px 18px}
.cm-side__h{font-size:13px;font-weight:800;letter-spacing:.2px;margin:0 0 13px;display:flex;align-items:center;justify-content:space-between}
.cm-kpi{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.cm-kpi div{background:var(--surface-2);border-radius:11px;padding:10px 12px}
.cm-kpi b{display:block;font-size:21px;font-weight:800;line-height:1.2;font-variant-numeric:tabular-nums;letter-spacing:-.4px}
.cm-kpi span{font-size:11.5px;color:var(--ink-3)}
.cm-side__hint{font-size:12.5px;color:var(--ink-2);line-height:1.7;margin:0 0 12px}
.cm-side__btn{width:100%;justify-content:center}
.cm-seclist{display:flex;flex-direction:column;gap:2px}
.cm-seclist a{display:flex;align-items:center;gap:9px;padding:8px 9px;border-radius:9px;text-decoration:none;
	color:var(--ink-2);font-size:13px;transition:.16s}
.cm-seclist a:hover{background:var(--brand-soft);color:var(--brand-t);text-decoration:none}
.cm-seclist a i{font-style:normal;width:22px;text-align:center;font-size:15px}
.cm-seclist a b{font-weight:600;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-seclist a em{font-style:normal;font-size:11.5px;color:var(--ink-3);font-variant-numeric:tabular-nums}
.cm-rules{margin:0;padding-left:17px;font-size:12.5px;color:var(--ink-2);line-height:1.85}
.cm-rules li+li{margin-top:3px}

/* ---------- 空态 / 提示 / 分页 ---------- */
.cm-empty{text-align:center;padding:56px 22px}
.cm-empty__ic{width:56px;height:56px;border-radius:18px;margin:0 auto 14px;display:flex;align-items:center;justify-content:center;
	background:var(--brand-soft);color:var(--brand-t);font-size:24px}
.cm-empty h3{font-size:16px;margin:0 0 6px}
.cm-empty p{font-size:13px;color:var(--ink-3);margin:0 0 16px}
.cm-note{display:flex;align-items:flex-start;gap:10px;background:var(--cm-warn-bg);border:1px solid var(--cm-warn-bd);
	border-left:3px solid var(--cm-warn);border-radius:12px;padding:12px 15px;margin-bottom:14px;
	font-size:13px;color:var(--ink-2);line-height:1.7}
.cm-note b{color:var(--cm-warn)}
.cm-closed{text-align:center;padding:64px 22px;margin:24px 0 36px}
.cm-closed__ic{width:68px;height:68px;border-radius:22px;margin:0 auto 16px;display:flex;align-items:center;justify-content:center;
	background:var(--brand-soft);color:var(--brand-t);font-size:30px}
.cm-closed h3{font-size:18px;margin:0 0 8px}
.cm-closed p{font-size:13.5px;color:var(--ink-2);line-height:1.8;max-width:440px;margin:0 auto 20px}
/* 兼容「主题不存在 / 已隐藏」早期分支里沿用的旧类名 */
.bd-closed{text-align:center;padding:64px 22px;background:var(--surface);border:1px solid var(--line);
	border-radius:18px;box-shadow:var(--cm-shadow);margin:24px 0}
.bd-closed .ic{width:68px;height:68px;border-radius:22px;margin:0 auto 16px;display:flex;align-items:center;
	justify-content:center;background:var(--brand-soft);color:var(--brand-t);font-size:30px}
.bd-closed h3{font-size:18px;margin:0 0 8px}
.bd-closed p{font-size:13.5px;color:var(--ink-2);line-height:1.8;max-width:440px;margin:0 auto 20px}
.cm-pager{display:flex;align-items:center;justify-content:center;gap:7px;margin:22px 0 6px;flex-wrap:wrap}
.cm-pager a,.cm-pager span{min-width:36px;height:36px;padding:0 12px;border-radius:10px;display:inline-flex;align-items:center;
	justify-content:center;font-size:13.5px;background:var(--surface);border:1px solid var(--line);color:var(--ink-2);text-decoration:none;transition:.16s}
.cm-pager a:hover{border-color:var(--brand);color:var(--brand-t);background:var(--brand-soft);text-decoration:none}
.cm-pager .is-on{background:var(--brand-soft);border-color:var(--line-brand);color:var(--brand-t);font-weight:700}
.cm-pager .cm-pager__ellipsis{min-width:18px;padding:0 2px;border-color:transparent;background:transparent;box-shadow:none;color:var(--ink-3)}

/* ==========================================================================
   移动端 · 沉浸式社区（≤760px）
   对齐主流社区 App 的四条准则：
   1) 单一导航层：全站 footer 已有 .zfxtb 底部胶囊，社区不再叠加悬浮发布按钮；
      发布入口上移到紧凑吸顶头右侧，底部安全区只由 body.zfx-mtab-on 计算一次。
   2) 首屏给内容：隐藏大标题描述 / 弱信息计数行，顶栏压到 54px。
   3) 无缝信息流：卡片去边框去圆角、只留 1px 分隔，首屏可见 2–3 条主题。
   4) 可用性：触摸目标 ≥38px、输入框 16px 防 iOS 缩放、颜色全部走设计令牌。
   ========================================================================== */
@media(max-width:760px){
	/* 紧凑吸顶头：贴在全站 .top(52px) 之下，一行 = 社区 / 搜索 / 发布 */
	.cm-head{position:sticky;top:var(--cm-sticky);z-index:12;flex-wrap:nowrap;gap:9px;
		margin:0 calc(-1 * var(--cm-pad));padding:7px var(--cm-pad);
		background:var(--bg);border-bottom:1px solid var(--line)}
	.cm-head__t{flex:0 0 auto;min-width:0}
	.cm-head__t h1{font-size:16px;font-weight:800;line-height:1.2;letter-spacing:-.2px;margin:0;white-space:nowrap}
	.cm-head__t p{display:none}
	.cm-head__act{flex:1;min-width:0;flex-wrap:nowrap;gap:8px}
	.cm-search{flex:1 1 auto;min-width:0;height:40px;padding:0 12px;border-radius:999px;background:var(--surface-2)}
	.cm-search input{font-size:16px}
	.cm-head__sub{display:none}
	.cm-head .cm-head__main{flex:0 0 40px;width:40px;height:40px;min-width:40px;padding:0;
		border-radius:50%;display:inline-flex;align-items:center;justify-content:center;
		font-size:0;line-height:1;gap:0;overflow:hidden}
	.cm-head__main .cm-ico{width:19px;height:19px;stroke-width:2.2}

	/* 板块胶囊：横滑 + 更高触摸目标，去掉桌面版下方大留白 */
	.cm-chips{gap:7px;padding:9px var(--cm-pad);margin:0 calc(-1 * var(--cm-pad));background:var(--bg)}
	.cm-chip{height:38px;padding:0 13px;font-size:13px}

	/* 排序与弱信息：一条横滑，计数让位给内容 */
	.cm-feed__hd{margin:0 0 8px;gap:8px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
	.cm-feed__hd::-webkit-scrollbar{display:none}
	.cm-tabs{flex:none;padding:3px}
	.cm-tab{height:34px;padding:0 14px}
	.cm-feed__n{display:none}
	.cm-note{padding:9px 12px;margin-bottom:10px;font-size:12.5px;line-height:1.55}
	.cm-note>div{min-width:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

	/* 沉浸式信息流：无边框无圆角，仅 1px 分隔 */
	.cm-grid{padding-bottom:8px}
	.cm-feed{gap:0}
	.cm-feed .cm-post{padding:14px 0 13px;border:0;border-bottom:1px solid var(--line);
		border-radius:0;background:transparent;box-shadow:none}
	.cm-feed .cm-post:first-child{padding-top:4px}
	.cm-feed .cm-post.is-top{background:linear-gradient(90deg,var(--brand-soft),transparent 62%)}
	.cm-feed .cm-post.is-wait{background:var(--cm-warn-bg)}
	.cm-feed a.cm-post:hover{transform:none;box-shadow:none}
	.cm-post__hd{gap:9px;margin-bottom:8px}
	.cm-post__by b{font-size:13px}
	.cm-post__by span{font-size:11.5px}
	.cm-post__badges{max-width:42%;justify-content:flex-end}
	.cm-post__title{font-size:16px;line-height:1.45;margin-bottom:5px;
		display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
	.cm-post__excerpt{font-size:13px;line-height:1.6;-webkit-line-clamp:2;margin-bottom:9px}
	.cm-post__main{gap:10px;margin-bottom:9px}
	.cm-post__thumb{width:76px;height:58px;border-radius:8px}
	.cm-post__ft{gap:13px;padding-top:0;border-top:0}
	.cm-post__stat{font-size:12px;gap:4px}
	.cm-post__stat .cm-ico{width:14px;height:14px}
	.cm-post__sec{height:22px;font-size:11px;margin-left:auto}
	.cm-post__go{display:none}

	/* 分页与空态：触摸目标加大 */
	.cm-pager a,.cm-pager span{min-width:40px;height:40px}
	.cm-empty{padding:36px 18px}
}

/* ---------- 发帖抽屉 ---------- */
.cm-mask{position:fixed;inset:0;background:rgba(11,20,17,.42);opacity:0;visibility:hidden;transition:opacity .22s,visibility .22s;z-index:60}
.cm-mask.is-on{opacity:1;visibility:visible}
.cm-drawer{position:fixed;top:0;right:0;bottom:0;width:min(480px,100%);background:var(--surface);z-index:61;
	display:flex;flex-direction:column;transform:translateX(102%);transition:transform .28s cubic-bezier(.22,.8,.28,1);
	box-shadow:-18px 0 50px -24px rgba(0,0,0,.4)}
.cm-drawer.is-on{transform:none}
.cm-drawer__hd{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 22px;border-bottom:1px solid var(--line)}
.cm-drawer__hd h2{margin:0;font-size:17px;font-weight:800}
.cm-drawer__hd p{margin:3px 0 0;font-size:12.5px;color:var(--ink-3)}
.cm-x{width:34px;height:34px;border-radius:10px;border:1px solid var(--line);background:var(--surface-2);
	color:var(--ink-2);font-size:19px;line-height:1;cursor:pointer;font-family:inherit;flex:none}
.cm-drawer__bd{flex:1;overflow-y:auto;padding:20px 22px 8px}
.cm-drawer__ft{padding:14px 22px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.cm-field{display:flex;flex-direction:column;gap:7px;margin-bottom:16px}
.cm-field label{font-size:13px;font-weight:700}
.cm-field .hint{font-size:12px;color:var(--ink-3);line-height:1.6}
.cm-field input[type=text],.cm-field select,.cm-field textarea{width:100%;border:1px solid var(--field-line);border-radius:12px;
	background:var(--surface-2);color:var(--ink);font-size:16px;font-family:inherit;padding:11px 13px;box-sizing:border-box;
	transition:border-color .18s,box-shadow .18s,background .18s}
.cm-field textarea{min-height:172px;line-height:1.75;resize:vertical}
.cm-field input:focus,.cm-field select:focus,.cm-field textarea:focus{outline:0;background:var(--surface);
	border-color:var(--brand);box-shadow:0 0 0 4px var(--ring)}
.cm-count{font-size:12.5px;color:var(--ink-3);font-variant-numeric:tabular-nums}
.cm-count.is-warn{color:var(--cm-warn)}
.cm-count.is-over{color:var(--cm-danger);font-weight:700}

/* ---------- 发帖配图上传 ---------- */
.cm-up__bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.cm-up__pick{height:36px;padding:0 15px;border:1px dashed var(--line-brand);border-radius:10px;
	background:var(--brand-soft);color:var(--brand-t);font-size:13px;font-weight:700;
	font-family:inherit;cursor:pointer;transition:.16s;white-space:nowrap}
.cm-up__pick:hover:not(:disabled){border-style:solid;filter:brightness(.97)}
.cm-up__pick:disabled{opacity:.55;cursor:not-allowed}
.cm-up__hint{font-size:12px;color:var(--ink-3);flex:1;min-width:0}
.cm-up__num{font-size:12px;color:var(--ink-3);font-variant-numeric:tabular-nums;white-space:nowrap}
.cm-up__num.is-full{color:var(--cm-warn);font-weight:700}
.cm-up__grid{display:none;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:2px}
.cm-up.has-img .cm-up__grid{display:grid}
.cm-up__item{position:relative;aspect-ratio:1/1;border-radius:10px;overflow:hidden;
	background:var(--surface-2);border:1px solid var(--line-2)}
.cm-up__img{display:block;width:100%;height:100%;object-fit:cover}
.cm-up__del{position:absolute;top:3px;right:3px;width:24px;height:24px;border:0;border-radius:50%;
	background:rgba(15,23,42,.72);color:#fff;font-size:16px;line-height:1;cursor:pointer;
	font-family:inherit;display:flex;align-items:center;justify-content:center;padding:0}
.cm-up__del:hover{background:var(--cm-danger)}
.cm-up__err{display:none;font-size:12.5px;color:var(--cm-danger);line-height:1.6}
.cm-up__err.is-on{display:block}
.cm-up.is-drag{outline:2px dashed var(--brand);outline-offset:4px;border-radius:12px}
.cm-up.is-busy .cm-up__pick{opacity:.7}
.cm-toast{position:fixed;left:50%;bottom:34px;transform:translate(-50%,14px);opacity:0;pointer-events:none;
	background:var(--ink);color:var(--surface);padding:11px 20px;border-radius:999px;font-size:13.5px;z-index:90;transition:.22s}
.cm-toast.is-on{opacity:1;transform:translate(-50%,0)}
@media(max-width:560px){
	.cm-drawer{top:auto;left:0;right:0;bottom:0;width:100%;height:92vh;border-radius:22px 22px 0 0;transform:translateY(102%)}
	.cm-drawer.is-on{transform:none}
	.cm-drawer__hd{padding:14px 16px}
	.cm-drawer__bd{padding:14px 16px 8px}
	.cm-drawer__ft{padding:11px 16px}
	.cm-drawer .cm-field{margin-bottom:12px}
	.cm-drawer .cm-field textarea{min-height:104px}
	.cm-up>label,.cm-up .hint,.cm-up__hint{display:none}
	.cm-up__bar{gap:8px}
	.cm-up__grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:8px}
	.cm-up__num{margin-left:auto}
	.cm-up__del{width:28px;height:28px;font-size:17px}
}

/* ==========================================================================
   主题详情 · 阅读优先
   ========================================================================== */
.cm-crumb{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:13px;color:var(--ink-3);padding:18px 0 14px}
.cm-crumb a{color:var(--ink-2);text-decoration:none}
.cm-crumb a:hover{color:var(--brand-t);text-decoration:none}
.cm-crumb .cur{color:var(--ink);font-weight:700;max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-threadbar{position:sticky;top:var(--cm-sticky);z-index:8;display:flex;align-items:center;gap:12px;
	background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:10px 14px;margin-bottom:16px;
	box-shadow:var(--cm-shadow)}
.cm-threadbar__t{flex:1;min-width:0;font-size:14.5px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cm-threadbar__back,.cm-threadbar__act{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:9px;
	background:var(--surface-2);border:1px solid var(--line);color:var(--ink-2);font-size:12.5px;font-weight:600;
	text-decoration:none;cursor:pointer;font-family:inherit;white-space:nowrap}
.cm-threadbar__back:hover,.cm-threadbar__act:hover{border-color:var(--brand);color:var(--brand-t);text-decoration:none}
.cm-threadbar__act.is-primary{background:var(--brand-soft);border-color:var(--line-brand);color:var(--brand-t)}

.cm-article{padding:26px 30px;margin-bottom:16px}
.cm-article__hd{display:flex;align-items:center;gap:11px;margin-bottom:18px;flex-wrap:wrap}
.cm-article__by{flex:1;min-width:0}
.cm-article__by b{display:block;font-size:14.5px;font-weight:700;line-height:1.45}
.cm-article__by span{display:block;font-size:12.5px;color:var(--ink-3);margin-top:1px}
.cm-article__badges{display:flex;gap:5px;flex-wrap:wrap}
.cm-article h1{font-size:24px;font-weight:800;line-height:1.4;letter-spacing:-.5px;margin:0 0 18px;word-break:break-word}
.cm-article__body{font-size:15.5px;line-height:1.95;color:var(--ink);white-space:pre-wrap;word-break:break-word;max-width:78ch}
.cm-article__body p{margin:0 0 12px}
.cm-article__body p:last-child{margin-bottom:0}
/* 回帖 / 楼中楼 / 官方留言同样用 renderContent 的 <p> 段落块，间距比正文略紧 */
.cm-reply__tx p{margin:0 0 10px}
.cm-reply__tx p:last-child{margin-bottom:0}
.cm-sub__tx p{margin:0 0 8px}
.cm-sub__tx p:last-child{margin-bottom:0}
.cm-official__b p{margin:0 0 10px}
.cm-official__b p:last-child{margin-bottom:0}
/* 帖子配图：只由 renderContent 的白名单 [img] 生成，永不输出用户写的 HTML */
.cm-article__body img.cm-img,.cm-reply__tx img.cm-img,.cm-sub__tx img.cm-img{display:block;max-width:100%;height:auto;
	margin:10px 0 14px;border-radius:12px;border:1px solid var(--line-2);background:var(--surface-2)}
.cm-official{margin-top:20px;background:var(--brand-soft);border:1px solid var(--line-brand);border-left:3px solid var(--brand);
	border-radius:12px;padding:14px 17px}
.cm-official__h{display:flex;align-items:center;gap:7px;font-size:12.5px;font-weight:800;color:var(--brand-t);margin-bottom:7px}
.cm-official__b{font-size:14px;line-height:1.8;color:var(--ink);white-space:pre-wrap;word-break:break-word}
.cm-article__ft{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:22px;padding-top:16px;border-top:1px solid var(--line)}
.cm-act{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 13px;border-radius:10px;
	background:var(--surface);border:1px solid var(--line);color:var(--ink-2);font-size:13px;cursor:pointer;
	font-family:inherit;text-decoration:none;transition:.16s;white-space:nowrap}
.cm-act:hover{border-color:var(--brand);color:var(--brand-t);background:var(--brand-soft);text-decoration:none}
.cm-act.is-on{background:var(--brand-soft);border-color:var(--line-brand);color:var(--brand-t);font-weight:700}
.cm-act.is-on .cm-ico{fill:currentColor;stroke:none}
.cm-act--mute{background:var(--surface-2);border-style:dashed;cursor:default}
.cm-act--mute:hover{border-color:var(--line);color:var(--ink-3);background:var(--surface-2)}
.cm-article__views{margin-left:auto;font-size:12.5px;color:var(--ink-3)}
/* 分享入口：桌面端由顶部悬浮条承载，这里默认隐藏；
   手机端（≤900px）悬浮条关闭后改在底部互动行显示（见上方 @media） */
.cm-share-foot{display:none}

.cm-replybox{padding:18px 22px;margin-bottom:18px}
.cm-replybox__h{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:14px;font-weight:800;margin-bottom:12px}
.cm-replybox textarea{width:100%;min-height:88px;border:1px solid var(--field-line);border-radius:12px;background:var(--surface-2);
	color:var(--ink);font-size:16px;line-height:1.75;padding:12px 14px;resize:vertical;font-family:inherit;box-sizing:border-box}
.cm-replybox textarea:focus{outline:0;background:var(--surface);border-color:var(--brand);box-shadow:0 0 0 4px var(--ring)}
.cm-replybox__ft{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:11px;flex-wrap:wrap}
.cm-replybox__ft span{font-size:12.5px;color:var(--ink-3)}
.cm-lock{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:18px 22px;margin-bottom:18px}
.cm-lock b{font-size:14.5px}
.cm-lock p{margin:3px 0 0;font-size:12.5px;color:var(--ink-3)}

.cm-replies{display:flex;flex-direction:column;gap:10px}
.cm-reply{display:flex;gap:12px;padding:16px 20px}
.cm-reply__bd{flex:1;min-width:0}
.cm-reply__hd{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:7px}
.cm-reply__hd b{font-size:13.5px;font-weight:700}
.cm-reply__hd time{font-size:12px;color:var(--ink-3)}
.cm-reply__floor{margin-left:auto;font-size:12px;font-weight:700;color:var(--ink-3)}
.cm-reply__tx{font-size:14.5px;line-height:1.85;color:var(--ink);white-space:pre-wrap;word-break:break-word}
.cm-reply__ft{display:flex;gap:8px;margin-top:10px}
.cm-reply__ft .cm-act{height:29px;padding:0 10px;font-size:12.5px;border-radius:8px}
.cm-subs{margin-top:12px;background:var(--surface-2);border:1px solid var(--line);border-radius:11px;padding:9px 13px}
.cm-subs__t{font-size:11.5px;font-weight:700;color:var(--ink-3);margin-bottom:6px}
.cm-sub{display:flex;gap:9px;padding:8px 0;border-top:1px dashed var(--line)}
.cm-sub:first-of-type{border-top:0}
.cm-sub__bd{flex:1;min-width:0}
.cm-sub__hd{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:3px}
.cm-sub__hd b{font-size:12.5px;font-weight:700;color:var(--brand-t)}
.cm-sub__hd time{font-size:11.5px;color:var(--ink-3)}
.cm-sub__tx{font-size:13.5px;line-height:1.75;white-space:pre-wrap;word-break:break-word}
.cm-repbox{display:none;margin-top:11px}
.cm-repbox.is-on{display:block}
.cm-repbox textarea{width:100%;min-height:64px;border:1px solid var(--field-line);border-radius:10px;background:var(--surface-2);
	color:var(--ink);font-size:13.5px;line-height:1.7;padding:10px 12px;resize:vertical;font-family:inherit;box-sizing:border-box}
.cm-repbox__ft{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}
.cm-replies__empty{text-align:center;padding:34px 20px;font-size:13.5px;color:var(--ink-3)}

/* 手机端取消吸顶悬浮条（红框那条）：返回用左上悬浮键、标题在正文 H1、
   写回复在底部「条回复」入口、分享移到底部互动行（见 .cm-share-foot）。
   桌面端（>900px）保持原样 —— 电脑端保存即可。 */
@media(max-width:760px){
	/* 面包屑在手机上没有价值：顶栏已有返回 */
	.cm-crumb{display:none}
	.cm-threadbar{display:none}
}
@media(max-width:900px){
	.cm-threadbar{display:none}
	.cm-share-foot{display:inline-flex;align-items:center;margin-left:2px}
	.cm-share-foot .zs-btn--cm{height:34px;min-width:auto;padding:0 12px;font-size:12.5px;gap:5px}
}

	/* 正文整幅阅读，去掉卡片外框 */
	.cm-article{padding:14px 0 18px;margin-bottom:0;border:0;border-bottom:1px solid var(--line);
		border-radius:0;background:transparent;box-shadow:none}
	.cm-article__hd{gap:9px;margin-bottom:14px}
	.cm-article h1{font-size:21px;line-height:1.38;margin-bottom:12px;letter-spacing:-.3px}
	.cm-article__body{font-size:16px;line-height:1.78}
	.cm-article__body img.cm-img,.cm-reply__tx img.cm-img,.cm-sub__tx img.cm-img{border-radius:9px;margin:8px 0 12px}
	.cm-article__ft{gap:7px;margin-top:18px;padding-top:14px}
	.cm-act{height:38px;padding:0 12px;font-size:13px}
	.cm-article__views{margin-left:0;width:100%}
	.cm-official{padding:12px 14px;margin-top:16px}

	/* 回复区同样改为分隔流；输入框 16px 防 iOS 自动缩放 */
	.cm-replybox,.cm-lock{margin:0 calc(-1 * var(--cm-pad)) 12px;padding:14px var(--cm-pad);
		border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none}
	.cm-replybox textarea{min-height:76px;font-size:16px}
	.cm-replies{gap:0}
	.cm-reply{padding:14px 0;gap:10px;border:0;border-bottom:1px solid var(--line);
		border-radius:0;background:transparent;box-shadow:none}
	.cm-reply__tx{font-size:14.5px;line-height:1.75}
	.cm-repbox textarea{font-size:16px}
	.cm-reply__ft .cm-act{height:34px;min-width:38px}
	.cm-replies__empty{padding:28px 16px}

	/* sticky 顶栏会盖住锚点，跳转时留出余量 */
	#cmReplyAnchor,.cm-replybox,.cm-pager{scroll-margin-top:calc(var(--cm-sticky) + 60px)}
}

/* ==========================================================================
   分享面板（详情页「分享」按钮 → 系统分享 / 兜底分享表）
   ========================================================================== */
.cm-share{position:fixed;inset:0;z-index:120;display:none;align-items:flex-end;justify-content:center}
.cm-share.is-on{display:flex}
.cm-share__mask{position:absolute;inset:0;background:rgba(15,23,42,.46)}
.cm-share__sheet{position:relative;width:100%;max-width:520px;background:var(--surface);
	border-radius:18px 18px 0 0;padding:18px 16px calc(16px + env(safe-area-inset-bottom));
	box-shadow:0 -8px 30px rgba(15,23,42,.18);animation:cmShareUp .22s ease}
@keyframes cmShareUp{from{transform:translateY(100%)}to{transform:translateY(0)}}
.cm-share__tt{font-size:15px;font-weight:800;text-align:center;margin:2px 0 14px}
.cm-share__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px 6px}
.cm-share__i{display:flex;flex-direction:column;align-items:center;gap:8px;background:none;border:0;
	cursor:pointer;font-family:inherit;color:var(--ink-2);font-size:12.5px;padding:2px 0;transition:opacity .15s}
.cm-share__i:active{opacity:.6}
.cm-share__ic{width:52px;height:52px;border-radius:16px;display:flex;align-items:center;justify-content:center;
	font-size:24px;background:var(--surface-2);border:1px solid var(--line)}
.cm-share__qr{margin:16px auto 0;text-align:center}
.cm-share__qr img{width:200px;height:200px;border-radius:12px;border:1px solid var(--line);display:block;margin:0 auto}
.cm-share__qr p{font-size:12.5px;color:var(--ink-3);margin:10px 0 0;line-height:1.6}
.cm-share__tip{margin:16px 0 0;padding:12px 14px;border-radius:12px;background:var(--surface-2);
	border:1px solid var(--line);text-align:left}
.cm-share__tipt{font-size:13.5px;font-weight:800;color:var(--ink);margin:0 0 6px;display:flex;align-items:center;gap:6px}
.cm-share__tipt::before{content:"";width:6px;height:6px;border-radius:50%;background:#07C160;flex:none}
.cm-share__tipd{font-size:12.5px;color:var(--ink-2);margin:0;line-height:1.65}
.cm-share__tiplink{width:100%;margin-top:10px;height:34px;padding:0 10px;border-radius:8px;
	border:1px solid var(--line);background:var(--surface);color:var(--ink-3);font-size:12px;
	font-family:inherit;box-sizing:border-box;text-overflow:ellipsis}
.cm-share__tipacts{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.cm-share__tipbtn{height:34px;padding:0 14px;border:0;border-radius:9px;background:#07C160;color:#fff;
	font-size:12.5px;font-weight:700;font-family:inherit;cursor:pointer}
.cm-share__tipbtn--ghost{background:transparent;color:var(--ink-2);border:1px solid var(--line)}
.cm-share__tipbtn:active{opacity:.75}
.cm-share__cancel{margin-top:16px;width:100%;height:46px;border:0;border-radius:12px;background:var(--surface-2);
	color:var(--ink);font-size:14px;font-weight:700;font-family:inherit;cursor:pointer}
@media(min-width:560px){
	.cm-share{align-items:center}
	.cm-share__sheet{border-radius:18px;max-width:420px}
}
