/* =========================================================================
 * DZ-WP Forum — Discuz! 风格样式
 * ========================================================================= */
:root {
	--dz-primary: #2b7cbd;
	--dz-primary-dark: #1f5e93;
	--dz-border: #dce3e8;
	--dz-muted: #8a96a3;
}
* { box-sizing: border-box; }
a { color: var(--dz-primary); text-decoration: none; }
a:hover { color: var(--dz-primary-dark); text-decoration: underline; }
img { max-width: 100%; }

.dz-container { max-width: 1100px; margin: 0 auto; padding: 0 15px; }

/* ----------------------------- 顶部栏 ----------------------------- */
.dz-topbar { background: #1f2d3d; color: #cfd8e3; font-size: 12px; }
.dz-topbar .dz-container { display: flex; justify-content: space-between; height: 34px; align-items: center; }
.dz-topbar a { color: #cfd8e3; margin-left: 12px; }
.dz-topbar a:hover { color: #fff; }
.dz-topbar .dz-credits { color: #ffd54f; margin-left: 10px; }

/* ----------------------------- 头部 ----------------------------- */
.dz-header { background: var(--dz-primary); }
.dz-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 15px; gap: 20px; }
.dz-logo-text { color: #fff; font-size: 24px; font-weight: 700; }
.dz-logo-text span { color: #ffd54f; }
.dz-search { flex: 1; max-width: 420px; display: flex; }
.dz-search input { flex: 1; border: none; padding: 8px 12px; border-radius: 3px 0 0 3px; outline: none; }
.dz-search button { border: none; background: #ffd54f; color: #333; padding: 0 18px; border-radius: 0 3px 3px 0; cursor: pointer; font-weight: 600; }

/* ----------------------------- 导航 ----------------------------- */
.dz-nav { background: var(--dz-primary-dark); }
.dz-menu { list-style: none; display: flex; margin: 0; padding: 0; }
.dz-menu li { }
.dz-menu a { display: block; color: #fff; padding: 10px 18px; font-size: 14px; }
.dz-menu a:hover { background: rgba(255,255,255,.12); text-decoration: none; }

/* ----------------------------- 主体 ----------------------------- */
.dz-main { padding: 20px 15px 40px; min-height: 60vh; }

.dz-page-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.dz-page-title h1 { font-size: 20px; margin: 0; flex: 1; }

/* 按钮 */
.dz-btn { display: inline-block; padding: 7px 16px; border: 1px solid var(--dz-border); background: #fff; border-radius: 3px; cursor: pointer; font-size: 13px; color: #333; }
.dz-btn:hover { text-decoration: none; background: #f5f7fa; }
.dz-btn-primary { background: var(--dz-primary); color: #fff; border-color: var(--dz-primary); }
.dz-btn-primary:hover { background: var(--dz-primary-dark); color: #fff; }
.dz-danger { color: #c62828; border-color: #c62828; }

/* 面包屑 */
.dz-breadcrumb { font-size: 12px; color: var(--dz-muted); margin-bottom: 8px; width: 100%; }
.dz-breadcrumb a { color: var(--dz-muted); }
.dz-breadcrumb .sep { margin: 0 4px; }

/* ----------------------------- 板块列表 ----------------------------- */
.dz-forum-group { background: #fff; border: 1px solid var(--dz-border); border-radius: 4px; margin-bottom: 18px; overflow: hidden; }
.dz-forum-group-title { font-size: 15px; margin: 0; padding: 10px 16px; background: #eef3f8; border-bottom: 1px solid var(--dz-border); }
.dz-forum-group-title a { color: #2b3a4a; }
.dz-forum-list { display: flex; flex-direction: column; }
.dz-forum-item { display: flex; gap: 14px; padding: 14px 16px; border-bottom: 1px solid #f0f3f6; align-items: center; }
.dz-forum-item:last-child { border-bottom: none; }
.dz-forum-icon { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; background: #eef3f8; border-radius: 6px; font-size: 22px; }
.dz-forum-main { flex: 1; min-width: 0; }
.dz-forum-name { font-size: 15px; font-weight: 600; }
.dz-forum-desc { font-size: 12px; color: var(--dz-muted); margin: 4px 0; }
.dz-forum-meta { font-size: 12px; color: var(--dz-muted); display: flex; gap: 14px; }
.dz-forum-last { width: 220px; flex: none; font-size: 12px; text-align: right; }
.dz-forum-last a { display: block; color: #2b3a4a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-forum-last span { color: var(--dz-muted); }

/* ----------------------------- 主题列表 ----------------------------- */
.dz-thread-list { background: #fff; border: 1px solid var(--dz-border); border-radius: 4px; overflow: hidden; }
.dz-thread-head, .dz-thread-row { display: grid; grid-template-columns: 50px 1fr 120px 90px 180px; gap: 10px; align-items: center; padding: 10px 16px; }
.dz-thread-head { background: #eef3f8; font-size: 12px; color: var(--dz-muted); border-bottom: 1px solid var(--dz-border); }
.dz-thread-row { border-bottom: 1px solid #f0f3f6; font-size: 13px; }
.dz-thread-row:hover { background: #fafcfe; }
.dz-thread-row:last-child { border-bottom: none; }
.dz-thread-row .c-title a { font-weight: 600; }
.dz-tags { font-size: 11px; color: var(--dz-primary); margin-left: 6px; }
.dz-badge { display: inline-block; padding: 1px 5px; border-radius: 3px; font-size: 11px; background: #fff3e0; }
.dz-pagination { padding: 14px 16px; text-align: center; }
.dz-pagination a, .dz-pagination span { display: inline-block; padding: 4px 10px; margin: 0 2px; border: 1px solid var(--dz-border); border-radius: 3px; }
.dz-pagination .current { background: var(--dz-primary); color: #fff; border-color: var(--dz-primary); }
.dz-empty { padding: 30px; text-align: center; color: var(--dz-muted); }

/* ----------------------------- 主题详情 ----------------------------- */
.dz-thread-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.dz-thread-title { font-size: 20px; margin: 0; flex: 1; }
.dz-thread-actions { display: flex; gap: 8px; }
.dz-like-btn.active { background: #fff3e0; border-color: #ffb300; }

.dz-posts { background: #fff; border: 1px solid var(--dz-border); border-radius: 4px; overflow: hidden; }
.dz-post { display: flex; border-bottom: 1px solid #f0f3f6; }
.dz-post:last-child { border-bottom: none; }
.dz-post-author { width: 150px; flex: none; padding: 16px; background: #fafcfe; text-align: center; border-right: 1px solid #f0f3f6; }
.dz-avatar { border-radius: 6px; }
.dz-author-name { font-weight: 600; margin-top: 8px; }
.dz-author-name a { color: #2b3a4a; }
.dz-author-level { font-size: 12px; color: var(--dz-primary); margin-top: 4px; }
.dz-author-credits { font-size: 11px; color: var(--dz-muted); margin-top: 4px; }
.dz-post-body { flex: 1; padding: 16px; min-width: 0; }
.dz-post-content { font-size: 14px; line-height: 1.8; word-break: break-word; }
.dz-signature { margin-top: 16px; padding-top: 10px; border-top: 1px dashed var(--dz-border); font-size: 12px; color: var(--dz-muted); }
.dz-post-foot { margin-top: 12px; font-size: 12px; color: var(--dz-muted); display: flex; gap: 14px; align-items: center; }
.dz-floor { font-weight: 600; color: #2b3a4a; }
.dz-quote { margin-left: auto; }

/* 回复框 */
.dz-reply-box { background: #fff; border: 1px solid var(--dz-border); border-radius: 4px; padding: 16px; margin-top: 16px; }
.dz-reply-box h3 { margin-top: 0; font-size: 16px; }
.dz-reply-box textarea { width: 100%; border: 1px solid var(--dz-border); border-radius: 4px; padding: 10px; font-family: inherit; resize: vertical; }
.dz-locked { color: #c62828; }

/* ----------------------------- 认证/表单 ----------------------------- */
.dz-auth { max-width: 420px; margin: 30px auto; background: #fff; border: 1px solid var(--dz-border); border-radius: 6px; padding: 28px; }
.dz-auth h1 { margin-top: 0; font-size: 22px; text-align: center; }
.dz-form p { margin: 14px 0; }
.dz-form label { display: block; font-size: 13px; margin-bottom: 5px; color: #455a70; }
.dz-form input[type=text], .dz-form input[type=email], .dz-form input[type=password], .dz-form input[type=url], .dz-form select, .dz-form textarea {
	width: 100%; padding: 9px 12px; border: 1px solid var(--dz-border); border-radius: 4px; font-size: 14px; font-family: inherit;
}
.dz-form .dz-btn { width: 100%; padding: 11px; font-size: 15px; }
.dz-auth-link { text-align: center; font-size: 13px; margin-top: 16px; }
.dz-alert { padding: 10px 14px; border-radius: 4px; font-size: 13px; margin-bottom: 14px; }
.dz-alert-error { background: #fdecea; color: #c62828; }
.dz-alert-ok { background: #e8f5e9; color: #2e7d32; }

/* ----------------------------- 个人中心 ----------------------------- */
.dz-profile { display: flex; gap: 20px; background: #fff; border: 1px solid var(--dz-border); border-radius: 6px; padding: 24px; }
.dz-profile-side { width: 220px; flex: none; text-align: center; border-right: 1px solid #f0f3f6; padding-right: 20px; }
.dz-profile-side h2 { font-size: 18px; margin: 10px 0 4px; }
.dz-profile-level { display: inline-block; background: var(--dz-primary); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 10px; }
.dz-profile-stats { list-style: none; padding: 0; margin: 16px 0; display: flex; justify-content: space-around; }
.dz-profile-stats li { font-size: 12px; color: var(--dz-muted); display: flex; flex-direction: column; }
.dz-profile-stats span { font-size: 18px; font-weight: 700; color: #2b3a4a; }
.dz-profile-sig { font-size: 12px; color: var(--dz-muted); border-top: 1px dashed var(--dz-border); padding-top: 10px; }
.dz-profile-main { flex: 1; min-width: 0; }
.dz-profile-main h3 { font-size: 16px; border-bottom: 2px solid var(--dz-primary); padding-bottom: 6px; display: inline-block; }
.dz-profile-threads { list-style: none; padding: 0; }
.dz-profile-threads li { padding: 8px 0; border-bottom: 1px solid #f0f3f6; display: flex; justify-content: space-between; font-size: 14px; }
.dz-profile-threads .dz-muted { color: var(--dz-muted); }

/* ----------------------------- 底部 ----------------------------- */
.dz-footer { background: #1f2d3d; color: #cfd8e3; margin-top: 30px; padding: 26px 0; font-size: 13px; }
.dz-stats { display: flex; gap: 24px; justify-content: center; margin-bottom: 14px; flex-wrap: wrap; }
.dz-footer-menu { list-style: none; display: flex; gap: 18px; justify-content: center; padding: 0; margin: 0 0 14px; }
.dz-footer-menu a { color: #cfd8e3; }
.dz-copyright { text-align: center; color: #8a96a3; font-size: 12px; }

.dz-muted { color: var(--dz-muted); }

/* ----------------------------- 响应式 ----------------------------- */
@media (max-width: 768px) {
	.dz-thread-head, .dz-thread-row { grid-template-columns: 1fr 80px; }
	.dz-thread-head .c-author, .dz-thread-head .c-reply, .dz-thread-head .c-last,
	.dz-thread-row .c-author, .dz-thread-row .c-reply, .dz-thread-row .c-last { display: none; }
	.dz-post { flex-direction: column; }
	.dz-post-author { width: 100%; border-right: none; border-bottom: 1px solid #f0f3f6; display: flex; align-items: center; gap: 12px; text-align: left; }
	.dz-profile { flex-direction: column; }
	.dz-profile-side { width: 100%; border-right: none; border-bottom: 1px solid #f0f3f6; padding-right: 0; padding-bottom: 16px; }
	.dz-forum-last { display: none; }
}
