/* cyxhome 创业论坛 —— 帖子列表页 & 详情页统一卡片风格 v1
   作用范围：forumdisplay / viewthread，仅视觉覆盖，不改功能 DOM */

/* ========== 公共 ========== */
#pt.bm { background: transparent !important; border: none !important; padding: 2px 0 10px; }
#pt.bm .z { font-size: 13px; color: #98a2b3; }
#pt.bm a { color: #7a8499; text-decoration: none; }
#pt.bm a:hover { color: #2f7bff; }
#pt.bm em { margin: 0 8px; color: #c3cad6; font-style: normal; }
#pt.bm .nvhm { display: inline-block; }

/* 分页胶囊 */
.pgs .pg, .pgs .pgs_dh { display: inline-block; }
.pgs .pg a, .pgs .pg strong, .pgs .pg label {
	background: #fff; border: 1px solid #e4e9f0 !important; border-radius: 8px;
	padding: 4px 11px !important; margin: 0 4px 0 0; color: #475467; font-size: 13px;
	text-decoration: none; display: inline-block; line-height: 20px;
}
.pgs .pg a:hover { border-color: #2f7bff !important; color: #2f7bff; }
.pgs .pg strong { background: #2f7bff !important; border-color: #2f7bff !important; color: #fff !important; }
.pgsbtn {
	background: #2f7bff !important; color: #fff !important; border: none !important;
	border-radius: 9px !important; padding: 6px 18px !important; font-size: 14px;
	text-decoration: none; box-shadow: 0 2px 6px rgba(47,123,255,.25);
}
.pgsbtn:hover { background: #2668dd !important; }
.pgb a { background: #fff; border: 1px solid #e4e9f0; border-radius: 9px; padding: 5px 14px; color: #667085; text-decoration: none; }
.pgb a:hover { color: #2f7bff; border-color: #2f7bff; }

/* ========== 帖子列表页 forumdisplay ========== */
/* 隐藏右侧栏，主栏满宽 */
#ct.ct2 > .sd { display: none; }
#ct.ct2 { margin-left: 0 !important; width: auto !important; }
#ct.ct2 .mn { width: 100% !important; margin: 0 !important; float: none !important; }
.boardnav .mn { width: 100%; }

/* 版块头部卡片 */
.boardnav .bm.bml {
	background: #fff; border: 1px solid #e8ecf2; border-radius: 12px;
	box-shadow: 0 1px 2px rgba(16,24,40,.04); padding: 4px 22px 12px; margin-bottom: 16px;
}
.boardnav .bm.bml .bm_h { background: none; border-bottom: 1px solid #f0f3f8; padding: 14px 0 10px; margin: 0 -22px; padding-left: 22px; padding-right: 22px; }
.boardnav .bm.bml .bm_h h1.xs2 { font-size: 19px; font-weight: 700; color: #1f2d3d; }
.boardnav .bm.bml .bm_h h1.xs2 a { color: #1f2d3d; }
.boardnav .bm.bml .bm_h h1.xs2 a:hover { color: #2f7bff; text-decoration: none; }
.boardnav .bm.bml .bm_h .xs1 { font-size: 13px; color: #98a2b3; font-weight: 400; }
.boardnav .bm.bml .fa_rss { display: none; }
.boardnav .bm.bml .fa_fav { color: #98a2b3; font-size: 13px; }
.boardnav .bm.bml .fa_fav:hover { color: #2f7bff; }
.boardnav .bm.bml .bm_c { font-size: 13px; color: #98a2b3; }
.boardnav .bm.bml .bm_c .xi2 { color: #98a2b3; }
.boardnav .bm.bml .bm_c .ptn { color: #8b95a7; line-height: 1.7; }

/* 列表容器卡片 */
#threadlist.tl {
	background: #fff !important; border: 1px solid #e8ecf2 !important; border-radius: 12px;
	box-shadow: 0 1px 2px rgba(16,24,40,.04); padding: 0 22px 8px; margin-bottom: 16px;
}
#threadlist .bm_c { padding: 0 !important; }

/* 筛选条 */
.dz_list_top { border-bottom: 1px solid #f0f3f8; padding: 14px 0 10px; margin: 0 -22px; padding-left: 22px; padding-right: 22px; }
.dz_list_top .kmy {
	background: #f4f7fc; border: 1px solid #e8ecf2; border-radius: 999px;
	padding: 3px 13px; margin: 0 6px 6px 0; font-size: 13px; color: #667085;
	display: inline-block; text-decoration: none;
}
.dz_list_top .kmy:hover { color: #2f7bff; border-color: #cfe0ff; background: #f0f6ff; }
.dz_list_top .kmon { background: #2f7bff; border-color: #2f7bff; color: #fff; }
.dz_list_top .kmon:hover { color: #fff; }
.dz_list_top .pipe, .dz_list_top .kmall, .dz_list_top .kmico { display: none; }
.dz_list_top .kmnew { margin-left: 4px; }

/* 帖子行卡片 */
#threadlisttableid li.kmlist {
	display: block; background: none; border-bottom: 1px solid #f0f3f8;
	padding: 18px 6px 16px; margin: 0; list-style: none;
	transition: background .15s ease; border-radius: 10px;
}
#threadlisttableid li.kmlist:hover { background: #f7faff; }
#threadlisttableid li.kmlist:last-child { border-bottom: none; }

/* 标题 */
li.kmlist .kmtit { text-decoration: none; }
li.kmlist .km_subject { font-size: 16.5px; font-weight: 600; color: #24292f; line-height: 24px; }
li.kmlist:hover .km_subject { color: #2f7bff; }
li.kmlist .kmnew {
	font-style: normal; font-size: 11px; font-weight: 600; color: #f04438;
	background: #fef0ef; border-radius: 999px; padding: 1px 8px; margin-left: 8px; vertical-align: 2px;
}

/* 摘要 */
li.kmlist .kmtxt {
	font-size: 13px; color: #8b95a7; line-height: 21px; margin: 7px 0 0;
	max-width: 860px;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 行内配图 */
.kmimg_onebox { margin: 10px 0 2px; }
.kmimg_onebox .kmimg img { max-width: 320px; max-height: 210px; border-radius: 10px; object-fit: cover; display: block; }
.kmimg_box { margin: 10px 0 2px; display: flex; gap: 8px; flex-wrap: wrap; }
.kmimg_box .kmshowimg img { width: 132px; height: 96px; border-radius: 8px; object-fit: cover; display: block; }
.kmmun { background: rgba(0,0,0,.45); color: #fff; border-radius: 8px; }

/* 底部信息 */
li.kmlist .kmfoot { margin-top: 12px; font-size: 13px; color: #98a2b3; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
li.kmlist .kmfoot .kmimg img { width: 24px; height: 24px; border-radius: 50%; display: block; object-fit: cover; }
li.kmlist .kmfoot a { color: #667085; text-decoration: none; }
li.kmlist .kmfoot a:hover { color: #2f7bff; }
li.kmlist .kmpl, li.kmlist .kmck {
	font-style: normal; font-size: 12px; color: #475467; background: #f4f7fc;
	border-radius: 999px; padding: 1px 10px;
}
li.kmlist .kmtime { color: #b3bcc9; font-size: 12px; }
li.kmlist .kmtime.xi1 { color: #f04438; }
li.kmlist .kmbg { display: none; } /* 行内版块名与当前版块重复 */
li.kmlist .kmico { font-size: 12px; border-radius: 4px; padding: 0 6px; }
li.kmlist .kmding { background: #eaf2ff; color: #2f7bff; }
li.kmlist .kmjing { background: #fff4e6; color: #d97706; }
li.kmlist .showcontent { display: none; }
li.kmlist .closeprev { font-size: 12px; color: #b3bcc9; }
li.kmlist .fnmr { color: #98a2b3; }

/* 空状态 */
.tl .emp { padding: 48px 0 40px; color: #98a2b3; text-align: center; }

/* ========== 帖子详情页 viewthread ========== */
/* 页面容器 */
#ct .wp, #ct.wp { max-width: 1120px; margin: 0 auto; }

/* 顶部标题卡（posthead 行） */
#postlist.pl { background: none !important; border: none !important; }
#postlist table.posthead {
	width: 100%; border-collapse: separate; background: #fff;
	border: 1px solid #e8ecf2; border-radius: 12px; box-shadow: 0 1px 2px rgba(16,24,40,.04);
	margin-bottom: 12px;
}
#postlist table.posthead td { background: #fff; border: none; }
#postlist table.posthead td.pls { width: 200px; padding: 18px 10px 14px 22px; vertical-align: middle; }
#postlist table.posthead td.pls .hm { text-align: left; font-size: 13px; color: #98a2b3; padding-top: 0 !important; }
#postlist table.posthead td.plc { padding: 18px 26px 14px 0; vertical-align: middle; }
#postlist table.posthead h1.ts { font-size: 21px; font-weight: 700; color: #1f2d3d; line-height: 30px; margin: 2px 0 6px; }
#postlist table.posthead .xg1 { font-size: 12px; color: #b3bcc9; }
#postlist .vwthd .y a { color: #c3cad6; }
#postlist .vwthd .y a:hover { color: #2f7bff; }

/* 帖子/回复卡片 */
#postlist div[id^="post_"] { margin-bottom: 12px; }
#postlist table.plhin {
	width: 100%; border-collapse: separate; background: #fff;
	border: 1px solid #e8ecf2; border-radius: 12px; box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
#postlist table.plhin td { border: none; background: #fff; }
#postlist table.plhin td.pls {
	width: 200px; background: #fff; padding: 22px 10px 18px 18px;
	border-right: 1px solid #f0f3f8; vertical-align: top;
}
#postlist table.plhin td.plc { padding: 20px 28px 14px 24px; vertical-align: top; }
#postlist table.plhin tr:last-child td.plc { padding-top: 0; }

/* 作者栏 */
#postlist .favatar .pi { background: none; border-bottom: none; padding: 0 0 10px; text-align: center; }
#postlist .favatar .authi a.xw1 { font-size: 15px; color: #24292f; }
#postlist .favatar .avatar img, #postlist .favatar .avtm img {
	width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
	border: 2px solid #eef2f8; display: block; margin: 0 auto 8px;
}
#postlist .favatar .avatar { text-align: center; }
#postlist .favatar .tns { margin-top: 10px; }
#postlist .favatar .tns table { width: 100%; border-collapse: separate; }
#postlist .favatar .tns th, #postlist .favatar .tns td { border: none; text-align: center; font-size: 12px; color: #98a2b3; }
#postlist .favatar .tns p a { color: #475467; font-size: 15px; font-weight: 600; }
#postlist .favatar .pbtn, #postlist .favatar .imicn { display: none; }

/* 正文排版 */
#postlist .pct { padding: 0 !important; }
#postlist .pcb { margin: 0; }
#postlist div[id^="postmessage_"] {
	font-size: 15.5px; line-height: 1.85; color: #24292f; overflow-wrap: break-word;
}
#postlist div[id^="postmessage_"] img { max-width: 100%; border-radius: 10px; height: auto; }
#postlist .pct .xg1, #postlist .pct font[size="2"] { color: #8b95a7; }
#postlist .plc .authi { font-size: 12px; color: #b3bcc9; }
#postlist .plc .authi a { color: #98a2b3; }
#postlist .plc .authi em { font-style: normal; margin-right: 12px; }
#postlist .pattl { margin-top: 14px; }
#postlist .pattl .patt img, #postlist .pattl img.t_f {
	border-radius: 10px; max-width: 100%; height: auto;
}
#postlist .pattl .pattl_c, #postlist .pattl .xg1 { font-size: 12px; color: #b3bcc9; }
#postlist .sign { border-top: 1px dashed #eef1f5; margin-top: 16px; padding-top: 10px; color: #98a2b3; font-size: 13px; }
#postlist .ratl { background: #f7f9fc; border-radius: 10px; border: none; margin: 12px 0; }
#postlist .ratl td { border: none; font-size: 12px; color: #667085; }
#postlist .cm { background: #f7f9fc; border-radius: 10px; border: none; }

/* 楼层徽标 */
#postlist .plc .pi strong, #postlist .plc em[id^="authorposton"] { font-size: 12px; color: #b3bcc9; }

/* 快速回复 */
#fastpostform { background: #fff; border: 1px solid #e8ecf2; border-radius: 12px; box-shadow: 0 1px 2px rgba(16,24,40,.04); padding: 16px 20px; margin-top: 14px; }
#fastpostform .fpost .tedt { border: 1px solid #e4e9f0; border-radius: 10px; overflow: hidden; }
#fastpostform .tedt .bar { background: #f7f9fc; border-bottom: 1px solid #eef1f5; }
#fastpostform .are textarea, #fastpostform textarea.pt {
	border: none; font-size: 14px; color: #24292f; padding: 12px 14px;
}
#fastpostform .pn {
	background: #2f7bff; color: #fff; border: none; border-radius: 9px;
	padding: 6px 22px; font-size: 14px; box-shadow: 0 2px 6px rgba(47,123,255,.25);
}
#fastpostform .pn:hover { background: #2668dd; }
#fastpostform .fpost .foot, #fastpostform .postinfo { border: none; background: none; }

/* 隐藏杂项 */
.ad, .plhin .ad { display: none !important; }
#pgbtn, .pgbtn { text-align: center; margin: 14px 0; }
.pgbtn a { background: #fff; border: 1px solid #e4e9f0; border-radius: 9px; padding: 7px 26px; color: #475467; text-decoration: none; }
.pgbtn a:hover { color: #2f7bff; border-color: #2f7bff; }

/* ========== 移动端 ========== */
@media (max-width: 768px) {
	#postlist table.posthead td.pls, #postlist table.plhin td.pls {
		display: none;
	}
	#postlist table.posthead td.plc { padding: 16px 16px 12px; }
	#postlist table.plhin td.plc { padding: 16px 16px 12px; }
	.boardnav .bm.bml, #threadlist.tl { padding-left: 14px; padding-right: 14px; margin-left: -14px; margin-right: -14px; }
	.dz_list_top { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
	li.kmlist .km_subject { font-size: 15.5px; }
	.kmimg_box .kmshowimg img { width: 104px; height: 78px; }
}
