/* ==========================================================================
   论坛前端样式  forum.css
   仅在 forum 脚本页面加载（由 common/header.php 条件引入）。
   所有规则以 #nv_forum（<body id>）作用域，不影响门户/案例页。
   ========================================================================== */

/* ── 页面底色与容器 ──────────────────────────────────────────────── */
body#nv_forum {
	background: #f5f6fa;
}

#nv_forum .wp {
	padding-left: var(--site-gutter);
	padding-right: var(--site-gutter);
}

/* ── 面包屑 ──────────────────────────────────────────────────────── */
#nv_forum #pt {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 18px 0 12px;
	font-size: 13px;
	color: #8a91a6;
}

#nv_forum #pt .z {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	line-height: 1.6;
}

#nv_forum #pt .z a {
	color: #6b7280;
	text-decoration: none;
	padding: 2px 6px;
	border-radius: 6px;
	transition: color .2s ease, background-color .2s ease;
}

#nv_forum #pt .z a:hover { color: var(--site-brand); background: #fff; }
#nv_forum #pt .z a.nvhm { color: #111; font-weight: 600; }
#nv_forum #pt em { color: #c3c8d6; font-style: normal; }

/* ── 通用卡片 ────────────────────────────────────────────────────── */
#nv_forum .bm {
	background: #fff;
	border: 1px solid #e8eaf2;
	border-radius: 14px;
	box-shadow: 0 2px 10px rgba(17, 24, 39, .05);
	overflow: hidden;
}

#nv_forum .bm_h {
	background: #fff;
	border-bottom: 1px solid #eef0f6;
	padding: 14px 20px;
}

#nv_forum .bm_h h1,
#nv_forum .bm_h h2 {
	font-size: 16px;
	font-weight: 700;
	color: #111;
	margin: 0;
	line-height: 1.5;
}

#nv_forum .bm_h h2 a { color: #111; text-decoration: none; }
#nv_forum .bm_h h2 a:hover { color: var(--site-brand); }
#nv_forum .bm_h h1 .xs1 { font-size: 12px; font-weight: 400; color: #8a91a6; margin-left: 10px; }

/* ── 论坛首页引导条 ──────────────────────────────────────────────── */
#nv_forum #chart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: #fff;
	border: 1px solid #e8eaf2;
	border-radius: 14px;
	box-shadow: 0 2px 10px rgba(17, 24, 39, .05);
	padding: 22px 26px;
	margin-bottom: 14px;
	overflow: visible;
}

#nv_forum .site-forum-intro__text h2 {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 700;
	color: #111;
}

#nv_forum .site-forum-intro__text p {
	margin: 0;
	font-size: 14px;
	line-height: 1.7;
	color: #6b7280;
}

#nv_forum .site-forum-intro__meta {
	margin-top: 10px !important;
	font-size: 13px !important;
	color: #8a91a6 !important;
}

#nv_forum .site-forum-intro__meta em {
	font-style: normal;
	font-weight: 700;
	color: var(--site-brand);
}

#nv_forum #chart .y {
	display: flex;
	align-items: center;
	gap: 8px;
	float: none;
}

#nv_forum #chart .y a {
	padding: 5px 12px;
	background: #fff;
	border: 1px solid #e8eaf2;
	border-radius: 999px;
	font-size: 13px;
	color: #6b7280;
	text-decoration: none;
}

#nv_forum #chart .y a:hover { color: var(--site-brand); border-color: rgba(76, 87, 214, .35); }

/* ── 版块列表 ────────────────────────────────────────────────────── */
#nv_forum .fl_tb { width: 100%; border-collapse: collapse; }

#nv_forum .fl_tb > tbody > tr > td {
	padding: 16px 18px;
	border-bottom: 1px solid #f2f4fa;
	vertical-align: middle;
}

#nv_forum .fl_tb > tbody > tr:last-child > td { border-bottom: 0; }
#nv_forum .fl_tb > tbody > tr:hover > td { background: #f8f9ff; }

#nv_forum .fl_icn { width: 68px; text-align: center; }
#nv_forum .fl_icn svg { width: 42px; height: 40px; }
/* 只染色「无新帖」的灰色图标，保留有新帖时的黄色提示 */
#nv_forum .fl_icn svg path[fill="#c9c9c9"] { fill: var(--site-brand); }

#nv_forum .fl_tb td h2 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.5; }
#nv_forum .fl_tb td h2 a { color: #111; text-decoration: none; }
#nv_forum .fl_tb td h2 a:hover { color: var(--site-brand); }
#nv_forum .fl_tb td h2 em { font-style: normal; font-size: 13px; color: var(--site-brand); }

#nv_forum .fl_tb td p.xg2 {
	margin: 5px 0 0;
	font-size: 13px;
	line-height: 1.6;
	color: #8a91a6;
}

#nv_forum .fl_i {
	width: 130px;
	text-align: center;
	font-size: 12px;
	color: #9aa1b2;
}

#nv_forum .fl_i .xi2 { font-size: 15px; font-weight: 700; color: #111; }
#nv_forum .fl_by { width: 240px; font-size: 12px; line-height: 1.7; color: #8a91a6; }
#nv_forum .fl_by a { color: #4b5563; text-decoration: none; }
#nv_forum .fl_by a:hover { color: var(--site-brand); }
#nv_forum .fl_by cite { display: block; font-style: normal; color: #a1a7b8; }

/* ── 版块工具条 / 分页 / 发新帖 ─────────────────────────────────── */
#nv_forum #pgt {
	display: flex;
	align-items: center;
	gap: 10px;
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 4px 0 14px;
	overflow: visible;
}

#nv_forum #pgt .pgb { float: none; margin-right: auto; }
#nv_forum .pgb a {
	display: inline-flex;
	align-items: center;
	height: 38px;
	padding: 0 18px;
	background: #fff;
	border: 1px solid #e2e6f2;
	border-radius: 999px;
	font-size: 13px;
	color: #555;
	text-decoration: none;
	transition: color .2s ease, border-color .2s ease;
}

#nv_forum .pgb a:hover { color: var(--site-brand); border-color: rgba(76, 87, 214, .4); }

#nv_forum .pgsbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 38px;
	padding: 0 20px;
	background: var(--site-brand);
	border-radius: 999px;
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 6px 16px rgba(76, 87, 214, .28);
	transition: background-color .2s ease, transform .2s ease;
}

#nv_forum .pgsbtn:hover { background: #3b46c4; transform: translateY(-1px); }

/* ── 帖子列表表头 ────────────────────────────────────────────────── */
#nv_forum .tl { background: #fff; }
#nv_forum .tl .th { background: #fafbff; border-bottom: 1px solid #eef0f6; }
#nv_forum .tl .th table { width: 100%; }

#nv_forum .tl .th th,
#nv_forum .tl .th td {
	padding: 11px 16px;
	font-size: 13px;
	font-weight: 400;
	color: #8a91a6;
}

#nv_forum .tl .tf a {
	padding: 3px 8px;
	border-radius: 6px;
	font-size: 13px;
	color: #6b7280;
	text-decoration: none;
}

#nv_forum .tl .tf a:hover { color: var(--site-brand); background: #fff; }
#nv_forum .tl .tf .y { color: #9aa1b2; }

/* ── 帖子列表行 ──────────────────────────────────────────────────── */
#nv_forum #threadlisttableid > tbody > tr > td,
#nv_forum #threadlisttableid > tbody > tr > th {
	padding: 12px 16px;
	border-bottom: 1px solid #f2f4fa;
}

#nv_forum #threadlisttableid > tbody > tr:hover > td,
#nv_forum #threadlisttableid > tbody > tr:hover > th { background: #f8f9ff; }

#nv_forum #threadlisttableid .icn { width: 52px; }
#nv_forum #threadlisttableid a.xst { font-size: 15px; font-weight: 600; color: #111; text-decoration: none; }
#nv_forum #threadlisttableid a.xst:hover { color: var(--site-brand); }
#nv_forum #threadlisttableid .num { width: 110px; text-align: center; }
#nv_forum #threadlisttableid .by { width: 130px; font-size: 12px; color: #8a91a6; }

/* ── 空状态 ──────────────────────────────────────────────────────── */
#nv_forum .emp {
	display: block;
	padding: 48px 16px;
	text-align: center;
	font-size: 14px;
	color: #9aa1b2;
}

#nv_forum .site-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 52px 16px 44px;
	text-align: center;
}

#nv_forum .site-empty__icon { display: block; margin-bottom: 16px; }
#nv_forum .site-empty__title { margin: 0; font-size: 17px; font-weight: 700; color: #111; }
#nv_forum .site-empty__desc { margin: 8px 0 0; font-size: 14px; color: #8a91a6; line-height: 1.7; }

#nv_forum .site-empty__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 20px;
}

/* ── 快速发帖 ────────────────────────────────────────────────────── */
#nv_forum #f_pst .bm_c { padding: 18px 20px 20px; }

#nv_forum #f_pst .px {
	width: 100% !important;
	max-width: 560px;
	height: 40px;
	padding: 0 12px;
	background: #fff;
	border: 1px solid #e2e6f2;
	border-radius: 10px;
	font-size: 14px;
}

#nv_forum #f_pst .px:focus { border-color: var(--site-brand); outline: 0; }
#nv_forum #f_pst .tedt { border: 1px solid #e2e6f2; border-radius: 12px; overflow: hidden; }
#nv_forum #f_pst .tedt .bar { background: #fafbff; border-bottom: 1px solid #eef0f6; }
#nv_forum #f_pst .tedt .bar a { color: #6b7280; text-decoration: none; }
#nv_forum #f_pst .pt.hm { padding: 28px 0; text-align: center; font-size: 14px; color: #8a91a6; }
#nv_forum #f_pst .pt.hm a { color: var(--site-brand); text-decoration: none; font-weight: 600; }

#nv_forum #f_pst .pn,
#nv_forum #f_pst button.pnc {
	height: 40px;
	padding: 0 26px;
	background: var(--site-brand);
	border: 0;
	border-radius: 999px;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

#nv_forum #f_pst .pn:hover { background: #3b46c4; }

/* 游客：只保留登录引导，隐藏发帖输入框与编辑器工具栏 */
#nv_forum.is-guest #f_pst .pbt,
#nv_forum.is-guest #f_pst .tedt .bar,
#nv_forum.is-guest #f_pst #fastsmiliesdiv { display: none; }
#nv_forum.is-guest #f_pst .tedt { border: 0; background: transparent; }
#nv_forum.is-guest #f_pst .pnpost { display: none; }

/* ── 帖子详情 ────────────────────────────────────────────────────── */
#nv_forum #postlist .post {
	background: #fff;
	border: 1px solid #e8eaf2;
	border-radius: 14px;
	box-shadow: 0 2px 10px rgba(17, 24, 39, .05);
	margin-bottom: 14px;
	overflow: hidden;
}

#nv_forum #postlist .plc { background: #fafbff; }
#nv_forum #postlist .pct { padding: 18px 20px; }
#nv_forum #postlist .pct h1 { font-size: 20px; font-weight: 700; color: #111; }
#nv_forum #postlist .postbody { font-size: 15px; line-height: 1.85; color: #222; }
#nv_forum #postlist .sign {
	margin-top: 16px;
	padding-top: 10px;
	border-top: 1px dashed #eef0f6;
	font-size: 12px;
	color: #9aa1b2;
}

/* ── 小屏适配 ────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
	#nv_forum #pt { padding: 12px 0 10px; }
	#nv_forum .bm { border-radius: 12px; }

	#nv_forum .fl_tb > tbody > tr > td { padding: 12px; }
	#nv_forum .fl_icn { width: 54px; }
	#nv_forum .fl_icn svg { width: 32px; height: 30px; }
	#nv_forum .fl_tb td h2 { font-size: 15px; }
	#nv_forum .fl_tb td p.xg2 { font-size: 12px; }
	#nv_forum .fl_i,
	#nv_forum .fl_by { display: none; }

	#nv_forum #chart { padding: 18px 16px; gap: 12px; }
	#nv_forum .site-forum-intro__text h2 { font-size: 18px; }
	#nv_forum #chart .y a { padding: 6px 12px; }

	#nv_forum #pgt { padding: 2px 0 12px; }
	#nv_forum .pgsbtn { height: 34px; padding: 0 14px; font-size: 13px; }
	#nv_forum .pgb a { height: 34px; padding: 0 14px; }

	#nv_forum .tl .th .by,
	#nv_forum .tl .th .num,
	#nv_forum #threadlisttableid .by,
	#nv_forum #threadlisttableid .num { display: none; }
	#nv_forum #threadlisttableid .icn { width: 34px; }

	#nv_forum #f_pst .bm_c { padding: 14px 12px 16px; }
	#nv_forum .site-empty { padding: 40px 12px 34px; }
	#nv_forum .site-empty__actions { width: 100%; flex-direction: column; }
	#nv_forum .site-empty__actions .site-btn { width: 100%; }
}
