/* 探花论坛 - 简书风格全站样式（浅色主题，无 emoji 图标，使用文字标识） */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #f5f5f5;
  color: #2f2f2f;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: #ea6f5a; text-decoration: none; transition: color .2s; }
a:hover { color: #d9604e; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
input, textarea, select, button { font-family: inherit; font-size: inherit; outline: none; }
button { cursor: pointer; }

/* ========== 顶部导航 ========== */
.navbar {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,.03);
}
.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
}
.navbar-brand {
  font-size: 20px;
  font-weight: 700;
  color: #ea6f5a;
  margin-right: 32px;
  letter-spacing: 1px;
}
.navbar-brand:hover { color: #d9604e; }
.navbar-nav {
  display: flex;
  gap: 4px;
  flex: 1;
}
.navbar-nav a {
  padding: 8px 14px;
  color: #555;
  border-radius: 4px;
  font-size: 14px;
}
.navbar-nav a:hover { background: #fafafa; color: #ea6f5a; }
.navbar-nav a.active { color: #ea6f5a; font-weight: 600; }
.navbar-search {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 16px;
  padding: 6px 14px;
  margin-right: 16px;
  width: 220px;
}
.navbar-search input {
  background: transparent;
  border: none;
  flex: 1;
  font-size: 13px;
}
.navbar-search input::placeholder { color: #aaa; }
.navbar-search-btn {
  background: none;
  border: none;
  color: #999;
  padding: 0 4px;
  font-size: 13px;
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.navbar-user .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ea6f5a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
}
.navbar-user .avatar img { width: 100%; height: 100%; object-fit: cover; }
.btn {
  display: inline-block;
  padding: 7px 18px;
  background: #fff;
  color: #ea6f5a;
  border: 1px solid #ea6f5a;
  border-radius: 16px;
  font-size: 13px;
  text-decoration: none;
  transition: all .2s;
  line-height: 1.4;
}
.btn:hover { background: #ea6f5a; color: #fff; }
.btn-primary {
  background: #ea6f5a;
  color: #fff;
  border-color: #ea6f5a;
}
.btn-primary:hover { background: #d9604e; border-color: #d9604e; color: #fff; }
.btn-sm { padding: 4px 12px; font-size: 12px; }
.btn-lg { padding: 10px 28px; font-size: 15px; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-danger { background: #fff; color: #f5222d; border-color: #f5222d; }
.btn-danger:hover { background: #f5222d; color: #fff; }
.btn-ghost { background: transparent; border-color: #ddd; color: #666; }
.btn-ghost:hover { border-color: #ea6f5a; color: #ea6f5a; background: transparent; }

/* ========== 布局容器 ========== */
.container {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 20px;
  display: flex;
  gap: 24px;
}
.content-main { flex: 1; min-width: 0; }
.content-side { width: 280px; flex-shrink: 0; }
.layout-single { max-width: 760px; margin: 24px auto; padding: 0 20px; }

/* ========== 卡片 ========== */
.card {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  margin-bottom: 16px;
}
.card-body { padding: 20px; }
.card-header {
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-header a { font-size: 13px; font-weight: normal; }

/* ========== 帖子列表 ========== */
.post-list { background: #fff; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.post-item {
  display: flex;
  padding: 18px 20px;
  border-bottom: 1px solid #f5f5f5;
  transition: background .2s;
}
.post-item:last-child { border-bottom: none; }
.post-item:hover { background: #fafafa; }
.post-item.pinned { background: #fffbf5; }
.post-item .post-rank {
  width: 40px;
  text-align: center;
  color: #ccc;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}
.post-item .post-main { flex: 1; min-width: 0; }
.post-item .post-title {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
  line-height: 1.4;
}
.post-item .post-title a { color: #1a1a1a; }
.post-item .post-title:hover, .post-item .post-title a:hover { color: #444; }
.post-item .post-excerpt {
  color: #888;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 10px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.post-item .post-meta {
  font-size: 12px;
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.post-item .post-meta .author { color: #777; }
.post-item .post-meta .author:hover { color: #ea6f5a; }
.post-item .post-meta .cat-tag {
  background: #f5f5f5;
  color: #888;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
}
.post-badges { display: inline-flex; gap: 6px; margin-right: 8px; }
.badge {
  display: inline-block;
  padding: 1px 6px;
  font-size: 11px;
  border-radius: 3px;
  font-weight: 600;
}
.badge-pin { background: #fff7e6; color: #fa8c16; border: 1px solid #ffd591; }
.badge-essence { background: #fff0f6; color: #eb2f96; border: 1px solid #ffadd2; }
.badge-cert { background: #fffbe6; color: #d4b106; border: 1px solid #ffe58f; }
.badge-cert-sm { font-size: 11px; color: #d4b106; margin-left: 4px; }
.badge-role { background: #ea6f5a; color: #fff; padding: 1px 6px; border-radius: 3px; font-size: 11px; }
.post-thumb {
  width: 120px;
  height: 90px;
  border-radius: 4px;
  margin-left: 16px;
  background: #f0f0f0;
  object-fit: cover;
  flex-shrink: 0;
}

/* ========== 标签页 ========== */
.tabs {
  display: flex;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  border-radius: 6px 6px 0 0;
  padding: 0 12px;
}
.tabs a {
  padding: 14px 18px;
  color: #666;
  font-size: 14px;
  position: relative;
  border-bottom: 2px solid transparent;
}
.tabs a.active { color: #ea6f5a; font-weight: 600; border-bottom-color: #ea6f5a; }
.tabs a:hover { color: #ea6f5a; }

/* ========== 分页 ========== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 24px 0;
  flex-wrap: wrap;
}
.pagination .page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  color: #555;
  font-size: 13px;
  text-decoration: none;
  transition: all .2s;
}
.pagination .page-btn:hover { border-color: #ea6f5a; color: #ea6f5a; }
.pagination .page-btn.active { background: #ea6f5a; border-color: #ea6f5a; color: #fff; }
.pagination .page-ellipsis { padding: 0 6px; color: #ccc; }

/* ========== 表单 ========== */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  margin-bottom: 6px;
  color: #555;
  font-size: 14px;
  font-weight: 500;
}
.form-label .required { color: #f5222d; margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
  transition: border-color .2s;
  color: #333;
}
.form-control:focus { border-color: #ea6f5a; }
textarea.form-control { resize: vertical; min-height: 120px; line-height: 1.7; }
.form-hint { font-size: 12px; color: #999; margin-top: 4px; }
.form-error { font-size: 12px; color: #f5222d; margin-top: 4px; }
.form-row-inline { display: flex; gap: 12px; }
.form-row-inline > * { flex: 1; }

/* ========== 认证页 ========== */
.auth-wrap {
  max-width: 420px;
  margin: 60px auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  padding: 36px;
}
.auth-wrap h2 { text-align: center; font-size: 22px; margin-bottom: 28px; color: #2f2f2f; }
.auth-tabs { display: flex; border-bottom: 1px solid #f0f0f0; margin-bottom: 24px; }
.auth-tabs a { flex: 1; text-align: center; padding: 12px; color: #888; border-bottom: 2px solid transparent; }
.auth-tabs a.active { color: #ea6f5a; border-bottom-color: #ea6f5a; font-weight: 600; }

/* ========== 帖子详情 ========== */
.post-detail { background: #fff; border-radius: 6px; padding: 28px 32px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.post-detail h1 { font-size: 24px; line-height: 1.4; margin-bottom: 16px; color: #2f2f2f; }
.post-detail .post-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 24px;
  font-size: 13px;
  color: #999;
  flex-wrap: wrap;
}
.post-detail .post-content { font-size: 15px; line-height: 1.85; color: #2f2f2f; }
.post-detail .post-content p { margin-bottom: 16px; }
.post-detail .post-content img { border-radius: 4px; margin: 12px 0; }
.post-detail .post-content h2 { font-size: 20px; margin: 24px 0 12px; }
.post-detail .post-content h3 { font-size: 17px; margin: 20px 0 10px; }
.post-detail .post-content blockquote {
  border-left: 3px solid #ea6f5a;
  padding: 8px 16px;
  background: #fafafa;
  color: #666;
  margin: 16px 0;
  border-radius: 0 4px 4px 0;
}
.post-detail .post-content pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 16px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 12px 0;
  font-size: 13px;
}
.post-detail .post-content code { background: #f5f5f5; padding: 2px 6px; border-radius: 3px; font-size: 13px; }
.post-detail .post-content pre code { background: transparent; padding: 0; }

.post-actions {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid #f0f0f0;
  margin-top: 28px;
  align-items: center;
}
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: #f5f5f5;
  border-radius: 16px;
  color: #666;
  font-size: 13px;
  cursor: pointer;
  border: none;
  transition: all .2s;
}
.action-btn:hover { background: #ea6f5a; color: #fff; }
.action-btn.active { background: #ea6f5a; color: #fff; }

/* ========== 评论 ========== */
.comment-list { margin-top: 16px; }
.comment-item {
  padding: 16px 0;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  gap: 12px;
}
.comment-item:last-child { border-bottom: none; }
.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ea6f5a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  overflow: hidden;
}
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-body { flex: 1; min-width: 0; }
.comment-meta { font-size: 12px; color: #999; margin-bottom: 4px; }
.comment-meta .name { color: #555; font-weight: 600; margin-right: 8px; }
.comment-content { color: #333; font-size: 14px; line-height: 1.7; }
.comment-actions { margin-top: 6px; font-size: 12px; }
.comment-actions a { color: #aaa; margin-right: 14px; }
.comment-actions a:hover { color: #ea6f5a; }
.comment-reply-form { margin-top: 12px; display: none; }
.comment-reply-form.active { display: block; }

/* ========== 侧栏 ========== */
.side-card {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  padding: 18px;
  margin-bottom: 16px;
}
.side-card h3 {
  font-size: 14px;
  color: #2f2f2f;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
  font-weight: 600;
}
.side-cat-list a {
  display: flex;
  justify-content: space-between;
  padding: 8px 4px;
  color: #555;
  font-size: 13px;
  border-radius: 4px;
}
.side-cat-list a:hover, .side-cat-list a.active { color: #ea6f5a; background: #fafafa; padding-left: 8px; }
.side-cat-list .count { color: #bbb; font-size: 12px; }
.side-user-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.side-user-item .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: #ea6f5a; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; flex-shrink: 0; overflow: hidden;
}
.side-user-item .avatar img { width: 100%; height: 100%; object-fit: cover; }
.side-user-item .info { flex: 1; min-width: 0; }
.side-user-item .info .name { font-size: 13px; color: #333; font-weight: 500; }
.side-user-item .info .desc { font-size: 12px; color: #aaa; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ========== 用户中心 ========== */
.profile-header {
  background: #fff;
  border-radius: 6px;
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  margin-bottom: 16px;
}
.profile-header .avatar-lg {
  width: 80px; height: 80px; border-radius: 50%;
  background: #ea6f5a; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; flex-shrink: 0; overflow: hidden;
}
.profile-header .avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.profile-header .info h2 { font-size: 20px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.profile-header .info .bio { color: #888; font-size: 13px; margin-bottom: 8px; }
.profile-header .stats { display: flex; gap: 24px; font-size: 13px; }
.profile-header .stats .num { font-size: 18px; font-weight: 600; color: #2f2f2f; }
.profile-header .stats .label { color: #999; }

/* ========== 认证中心 ========== */
.cert-status-card {
  background: #fff;
  border-radius: 6px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  margin-bottom: 16px;
}
.cert-status-card .icon-text {
  width: 72px; height: 72px; border-radius: 50%;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700;
}
.cert-status-card.pending .icon-text { background: #fff7e6; color: #fa8c16; }
.cert-status-card.approved .icon-text { background: #f6ffed; color: #52c41a; }
.cert-status-card.rejected .icon-text { background: #fff2f0; color: #f5222d; }
.cert-status-card.none .icon-text { background: #f5f5f5; color: #999; }
.cert-status-card h3 { font-size: 18px; margin-bottom: 8px; }
.cert-status-card p { color: #888; font-size: 13px; margin-bottom: 16px; }

.upload-box {
  width: 100%;
  height: 140px;
  border: 2px dashed #ddd;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  background: #fafafa;
  position: relative;
  overflow: hidden;
}
.upload-box:hover { border-color: #ea6f5a; color: #ea6f5a; }
.upload-box img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.upload-box .upload-text { position: relative; z-index: 1; background: rgba(255,255,255,.9); padding: 4px 12px; border-radius: 4px; }

/* ========== 后台管理 ========== */
.admin-wrap { max-width: 1200px; margin: 24px auto; padding: 0 20px; display: flex; gap: 20px; }
.admin-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 6px;
  padding: 16px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  height: fit-content;
  position: sticky;
  top: 80px;
}
.admin-sidebar h4 {
  font-size: 12px;
  color: #bbb;
  padding: 12px 20px 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.admin-sidebar a {
  display: block;
  padding: 10px 20px;
  color: #555;
  font-size: 14px;
  border-left: 3px solid transparent;
}
.admin-sidebar a:hover { background: #fafafa; color: #ea6f5a; }
.admin-sidebar a.active { color: #ea6f5a; background: #fff5f3; border-left-color: #ea6f5a; font-weight: 600; }
.admin-content { flex: 1; min-width: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card {
  background: #fff;
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.stat-card .stat-label { font-size: 13px; color: #999; margin-bottom: 8px; }
.stat-card .stat-value { font-size: 28px; font-weight: 700; color: #2f2f2f; }
.stat-card .stat-trend { font-size: 12px; color: #52c41a; margin-top: 4px; }

/* ========== 表格 ========== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
}
.data-table th, .data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #f5f5f5;
}
.data-table th { background: #fafafa; color: #666; font-weight: 600; }
.data-table tr:hover { background: #fafafa; }
.table-actions a { margin-right: 8px; font-size: 12px; }

.status-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
}
.status-tag.success { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }
.status-tag.warning { background: #fff7e6; color: #fa8c16; border: 1px solid #ffd591; }
.status-tag.danger { background: #fff2f0; color: #f5222d; border: 1px solid #ffccc7; }
.status-tag.default { background: #f5f5f5; color: #999; border: 1px solid #e8e8e8; }
.status-tag.info { background: #e6f7ff; color: #1890ff; border: 1px solid #91d5ff; }

/* ========== 消息提示 ========== */
.alert {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 14px;
}
.alert-success { background: #f6ffed; border: 1px solid #b7eb8f; color: #389e0d; }
.alert-error { background: #fff2f0; border: 1px solid #ffccc7; color: #cf1322; }
.alert-info { background: #e6f7ff; border: 1px solid #91d5ff; color: #096dd9; }

/* ========== 空状态 ========== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #ccc;
}
.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  color: #e0e0e0;
  font-weight: 300;
}
.empty-state p { font-size: 14px; color: #999; }

/* ========== 页脚 ========== */
.footer {
  text-align: center;
  padding: 32px 20px;
  color: #bbb;
  font-size: 13px;
  margin-top: 40px;
}
.footer a { color: #999; margin: 0 8px; }

/* ========== 编辑器 ========== */
.editor-toolbar {
  border: 1px solid #ddd;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  padding: 8px 12px;
  background: #fafafa;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.editor-toolbar button {
  background: none;
  border: 1px solid transparent;
  padding: 4px 10px;
  border-radius: 3px;
  color: #666;
  font-size: 13px;
}
.editor-toolbar button:hover { background: #fff; border-color: #ddd; color: #ea6f5a; }
.editor-toolbar .sep { color: #ddd; padding: 4px 0; }

/* ========== 消息页 ========== */
.message-list { background: #fff; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.message-item {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #f5f5f5;
  position: relative;
}
.message-item.unread::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ea6f5a;
}
.message-item:last-child { border-bottom: none; }
.message-item:hover { background: #fafafa; }
.message-content { flex: 1; min-width: 0; }
.message-meta { font-size: 12px; color: #999; margin-bottom: 4px; }
.message-text { font-size: 14px; color: #333; }

/* ========== 工具类 ========== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: #999; }
.text-danger { color: #f5222d; }
.text-success { color: #52c41a; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none; }

/* ========== 模态框 ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-overlay.active { display: flex; }
.modal {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  max-width: 480px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}
.modal-header { font-size: 16px; font-weight: 600; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.modal-close { cursor: pointer; color: #999; font-size: 20px; background: none; border: none; }
.modal-footer { margin-top: 20px; text-align: right; }

/* ========== 认证头像图标（微博样式） ========== */
.avatar-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: visible;
  flex-shrink: 0;
  vertical-align: middle;
}
.avatar-wrap .avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ea6f5a;
  color: #fff;
  font-weight: 600;
}
.avatar-wrap .avatar-inner img { max-width: 100%; max-height: 100%; object-fit: cover; }
.avatar-wrap .avatar-initial { line-height: 1; }
.avatar-wrap .cert-badge {
  position: absolute;
  right: -8%;
  bottom: -8%;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #fff;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.05);
  z-index: 2;
}
.avatar-wrap .cert-badge svg { width: 100%; height: 100%; display: block; }
/* 导航栏头像缩小图标边界 */
.navbar-user .avatar-wrap .cert-badge { border-width: 1.5px; }

/* ========== 头像下拉菜单 ========== */
.avatar-menu-wrap { position: relative; }
.avatar-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  border: 1px solid #f0f0f0;
  padding: 6px 0;
  display: none;
  z-index: 200;
}
.avatar-dropdown.active { display: block; }
.avatar-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  color: #555;
  font-size: 13px;
  text-decoration: none;
}
.avatar-dropdown a:hover { background: #fafafa; color: #ea6f5a; }
.avatar-dropdown .divider { height: 1px; background: #f0f0f0; margin: 4px 0; }

/* ========== 侧栏用户统计 ========== */
.side-user-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
}
.side-user-stats .stat-item { text-align: center; }
.side-user-stats .stat-num { font-size: 17px; font-weight: 700; color: #2f2f2f; }
.side-user-stats .stat-label { font-size: 11px; color: #999; margin-top: 2px; }

/* 帖子卡片可点击 */
.post-item { cursor: pointer; }
.post-item .post-title a, .post-item a { cursor: pointer; }

/* ========== 左侧导航卡片（紧贴内容区，类似右侧 side-card，滚动固定） ========== */
.sidenav {
  width: 150px;
  flex-shrink: 0;
  align-self: flex-start;
  position: sticky;
  top: 66px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  padding: 14px 12px;
  margin-right: 16px;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
}
.sidenav-title {
  font-size: 13px;
  color: #2f2f2f;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}
.sidenav ul { list-style: none; margin: 0; padding: 0; }
.sidenav li { margin-bottom: 2px; }
.sidenav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: #555;
  font-size: 13px;
  text-decoration: none;
  border-radius: 4px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.sidenav a:hover, .sidenav a.active { background: #fafafa; color: #ea6f5a; }
.sidenav a i { font-size: 14px; width: 18px; text-align: center; flex-shrink: 0; }
.sidenav-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ddd;
  flex-shrink: 0;
  margin: 0 5px;
}
.sidenav a:hover .sidenav-dot { background: #ea6f5a; }
.sidenav-label { overflow: hidden; text-overflow: ellipsis; }

/* ========== 板块信息卡片 ========== */
.cat-info-card { padding: 18px 20px; }
.cat-info-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cat-info-head h3 { font-weight: 600; }
.cat-info-desc { color: #555; font-size: 13px; line-height: 1.7; margin-bottom: 10px; }
.cat-info-mods { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.cat-mod-chip {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  color: #555;
  background: #f5f5f5;
  border-radius: 12px;
  text-decoration: none;
}
.cat-mod-chip:hover { background: #fafafa; color: #ea6f5a; }
.cat-info-rule {
  border-top: 1px dashed #eee;
  padding-top: 10px;
  margin-top: 4px;
}
.cat-info-rule-title {
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: .5px;
}
.cat-info-rule-body {
  color: #555;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}
/* Markdown 渲染样式 */
.markdown-body h2 { font-size: 15px; margin: 12px 0 6px; color: #2f2f2f; }
.markdown-body h3 { font-size: 14px; margin: 10px 0 4px; color: #2f2f2f; }
.markdown-body strong { color: #2f2f2f; font-weight: 600; }
.markdown-body em { color: #555; }
.markdown-body blockquote {
  margin: 6px 0;
  padding: 6px 12px;
  border-left: 3px solid #ea6f5a;
  background: #fafafa;
  color: #555;
}
.markdown-body code {
  background: #f0f0f0;
  padding: 1px 6px;
  border-radius: 3px;
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  color: #c7254e;
}
.markdown-body pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 10px 12px;
  border-radius: 4px;
  overflow-x: auto;
}
.markdown-body pre code { background: transparent; color: inherit; padding: 0; }
.markdown-body ul { margin: 6px 0 6px 20px; padding: 0; }
.markdown-body li { margin: 2px 0; }
.markdown-body a { color: #ea6f5a; text-decoration: none; }
.markdown-body a:hover { text-decoration: underline; }
.markdown-body p { margin: 4px 0; }

/* ========== 站点统计 ========== */
.site-stats-row { padding: 6px 0; display: flex; align-items: baseline; gap: 10px; }
.site-stats-num { font-size: 18px; font-weight: 700; color: #2f2f2f; }
.site-stats-label { font-size: 12px; color: #999; }

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .container { flex-direction: column; padding: 0 12px; }
  .content-side { width: 100%; }
  .navbar-search { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-wrap { flex-direction: column; }
  .admin-sidebar { width: 100%; position: static; }
  .post-thumb { display: none; }
  .navbar-nav { overflow-x: auto; }
  .sidenav { display: none; }
}
