/**
 * 中兴八极社区前台样式。
 * 统一注册、账号、投稿、论坛摘要与 bbPress 页面的国风视觉。
 */

:root {
	--bjp-community-ink: #17352e;
	--bjp-community-muted: #687771;
	--bjp-community-paper: #fbf8f0;
	--bjp-community-line: #d9dfda;
	--bjp-community-gold: #b68235;
	--bjp-community-red: #a84c3f;
	--bjp-community-white: #fff;
}

.bjp-community {
	box-sizing: border-box;
	max-width: 1180px;
	margin: 32px auto;
	padding: clamp(24px, 4vw, 48px);
	border: 1px solid var(--bjp-community-line);
	border-radius: 18px;
	background: var(--bjp-community-white);
	color: var(--bjp-community-ink);
	box-shadow: 0 16px 48px rgba(23, 53, 46, .06);
}

.bjp-community *,
.bjp-community *::before,
.bjp-community *::after { box-sizing: border-box; }

.bjp-community h2,
.bjp-community h3 { color: var(--bjp-community-ink); }

.bjp-community-lead { color: var(--bjp-community-muted); font-size: 1.05rem; }
.bjp-community-eyebrow { color: var(--bjp-community-gold); font-size: .82rem; font-weight: 700; letter-spacing: .08em; }

.bjp-community-form { display: grid; gap: 18px; margin-top: 28px; }
.bjp-community-form p { margin: 0; }
.bjp-community-form label { display: grid; gap: 8px; font-weight: 700; }
.bjp-community-form input[type="text"],
.bjp-community-form input[type="email"],
.bjp-community-form input[type="url"],
.bjp-community-form input[type="password"],
.bjp-community-form textarea {
	width: 100%;
	padding: 13px 15px;
	border: 1px solid var(--bjp-community-line);
	border-radius: 10px;
	background: #fff;
	font: inherit;
}
.bjp-community-form textarea { resize: vertical; }
.bjp-community-form small { color: var(--bjp-community-muted); font-weight: 400; }
.bjp-community-form button,
.bjp-community-primary {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	min-height: 44px;
	padding: 11px 22px;
	border: 1px solid var(--bjp-community-ink);
	border-radius: 999px;
	background: var(--bjp-community-ink);
	color: #fff !important;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
}
.bjp-community-consent label { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.bjp-community-consent input { margin-top: .35em; }
.bjp-community-hp { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.bjp-community-links,
.bjp-community-actions { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }
.bjp-community-links { margin-top: 22px; }
.bjp-community-actions a:not(.bjp-community-primary) {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 20px;
	border: 1px solid var(--bjp-community-line);
	border-radius: 999px;
	color: var(--bjp-community-ink);
	font-weight: 700;
	text-decoration: none;
}

.bjp-community-notice { margin: 0 0 20px; padding: 14px 16px; border-radius: 10px; }
.bjp-community-notice.is-success { background: #eaf5ef; color: #1f6845; }
.bjp-community-notice.is-error { background: #fff0ee; color: #8c3328; }
.bjp-community-empty { padding: 24px; border-radius: 12px; background: var(--bjp-community-paper); }

.bjp-community-account-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.bjp-community-account-head h2 { margin: 6px 0 0; }
.bjp-community-submissions { margin-top: 36px; }
.bjp-community-submissions ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--bjp-community-line); }
.bjp-community-submissions li { display: flex; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--bjp-community-line); }
.bjp-community-submissions li span { min-width: 64px; color: var(--bjp-community-gold); }

.bjp-forum-summary { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: clamp(32px, 6vw, 72px); background: linear-gradient(135deg, #fbf8f0 0%, #fff 64%); }
.bjp-forum-summary-copy h2 { margin: 8px 0 16px; font-size: clamp(2rem, 4vw, 3.2rem); }
.bjp-forum-summary-copy p { color: var(--bjp-community-muted); line-height: 1.9; }
.bjp-forum-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 24px; }
.bjp-forum-stats span { padding: 15px 10px; border: 1px solid var(--bjp-community-line); border-radius: 12px; text-align: center; color: var(--bjp-community-muted); }
.bjp-forum-stats strong { display: block; color: var(--bjp-community-ink); font-size: 1.45rem; }
.bjp-forum-latest h3 { margin-top: 0; }
.bjp-forum-latest ul { list-style: none; margin: 0; padding: 0; }
.bjp-forum-latest li { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--bjp-community-line); }
.bjp-forum-latest a { color: var(--bjp-community-ink); font-weight: 700; text-decoration: none; }
.bjp-forum-latest time { color: var(--bjp-community-muted); }

#bbpress-forums { color: var(--bjp-community-ink); }
#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-replies { border: 1px solid var(--bjp-community-line); border-radius: 14px; overflow: hidden; }
#bbpress-forums li.bbp-header { background: var(--bjp-community-ink); color: #fff; }
#bbpress-forums li.bbp-body ul.forum,
#bbpress-forums li.bbp-body ul.topic { padding-block: 18px; background: #fff; }
#bbpress-forums .bbp-forum-title,
#bbpress-forums .bbp-topic-permalink { color: var(--bjp-community-ink); font-weight: 700; }
#bbpress-forums fieldset.bbp-form { border: 1px solid var(--bjp-community-line); border-radius: 14px; background: var(--bjp-community-paper); }

@media (max-width: 760px) {
	.bjp-community { margin: 20px 14px; padding: 22px 18px; border-radius: 14px; }
	.bjp-forum-summary { grid-template-columns: 1fr; }
	.bjp-community-account-head { flex-direction: column; }
	.bjp-community-actions a { width: 100%; justify-content: center; }
	.bjp-forum-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

