/* ===================================================
   expert-resolve Layout — Pure CSS Recreation
   三栏：左侧导航(240px) + 中间内容(620px) + 右侧信息(280px)
   顶部固定导航，高度 56px
   =================================================== */

/* --- Layout Shell --- */
.er-layout {
  min-height: 100vh;
  background: #f5f7f9;
}

.er-layout-body {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 0 16px 32px;
  max-width: 1426px;
  margin: 0 auto;
  padding-top: 56px; /* header fixed height */
  box-sizing: border-box;
  width: 100%;
}

/* --- Fixed Top Header --- */
.er-topbar-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #fff;
  border-bottom: none;
  z-index: 999;
  box-shadow: none;
}

.er-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 1426px;
  margin: 0 auto;
  height: 100%;
  padding: 0 16px;
}

/* Logo area */
.er-topbar-logo {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.er-topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.er-topbar-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.er-topbar-name {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.3px;
}

/* Search bar */
.er-topbar-search {
  flex: 1;
  max-width: 620px;
}

.er-topbar-search form {
  display: flex;
  align-items: center;
  background: #f0f2f5;
  border: 1px solid transparent;
  border-radius: 100px;
  padding: 4px 4px;
  gap: 4px;
  transition: all 0.2s;
}

.er-topbar-search form:focus-within {
  background: #fff;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.er-topbar-search-cat {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.er-topbar-search-icon {
  width: 16px;
  height: 16px;
  color: #9ca3af;
  flex-shrink: 0;
}

.er-topbar-search input[type="text"] {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: #374151;
}

.er-topbar-search input[type="text"]::placeholder {
  color: #9ca3af;
}

/* Actions */
.er-topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.er-topbar-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--er-theme-soft, #eff6ff);
  border: 1px solid var(--er-theme-border, #bfdbfe);
  color: var(--er-theme, #2563eb);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.er-topbar-avatar-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.er-topbar-post-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--er-theme, #3b82f6);
  color: #fff;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(37,99,235,0.25);
  transition: all 0.15s;
}

.er-topbar-post-btn:hover {
  background: var(--er-theme-button, #2563eb);
  transform: translateY(-1px);
}

.er-topbar-post-btn svg {
  width: 16px;
  height: 16px;
}

.er-topbar-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.15s;
  position: relative;
}

.er-topbar-icon-btn:hover {
  background: #f3f4f6;
  color: #3b82f6;
}

.er-topbar-icon-btn svg {
  width: 20px;
  height: 20px;
}

.er-topbar-notif {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid #fff;
}

.er-topbar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid #e5e7eb;
  display: block;
  transition: border-color 0.15s;
}

.er-topbar-avatar:hover {
  border-color: var(--er-theme, #3b82f6);
}

.er-topbar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.er-avatar-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 156px;
  background: #fff;
  border: 1px solid #eceff3;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  padding: 8px 0;
  display: none;
  z-index: 1200;
}

.er-topbar-avatar-wrap:hover .er-avatar-menu,
.er-topbar-avatar-wrap:focus-within .er-avatar-menu {
  display: block;
}

.er-avatar-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 12px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid #eceff3;
  border-top: 1px solid #eceff3;
  transform: rotate(45deg);
}

.er-avatar-menu-item {
  display: block;
  padding: 11px 16px;
  color: #4b5563;
  font-size: 14px;
  text-decoration: none;
  line-height: 1;
}

.er-avatar-menu-item:hover {
  background: #f8fafc;
  color: var(--er-theme, #2563eb);
}

.er-avatar-menu-item-exit {
  border-top: 1px solid #f1f5f9;
  margin-top: 6px;
  padding-top: 13px;
}

/* --- Left Sidebar --- */
.er-side {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow-y: auto;
  padding: 16px 8px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.er-side::-webkit-scrollbar {
  display: none;
}

.er-side-nav {
  padding: 0 8px;
  margin-bottom: 24px;
}

.er-side-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
  cursor: pointer;
}

.er-side-nav-item:hover {
  background: #f3f4f6;
}

.er-side-nav-item svg {
  width: 18px;
  height: 18px;
  color: #6b7280;
  flex-shrink: 0;
}

.er-side-section {
  margin-bottom: 24px;
}

.er-side-title {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 600;
  padding: 0 16px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.er-side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
  cursor: pointer;
  position: relative;
}

.er-side-item:hover {
  background: #f3f4f6;
}

.er-side-item.active {
  background: var(--er-theme-soft, #eff6ff);
  color: var(--er-theme, #3b82f6);
}

.er-side-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 16px;
  background: var(--er-theme, #3b82f6);
  border-radius: 0 2px 2px 0;
}

.er-side-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d1d5db;
  flex-shrink: 0;
}

.er-side-item.active .er-side-dot {
  background: var(--er-theme, #3b82f6);
}

.er-side-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.er-side-count {
  font-size: 10px;
  background: #dbeafe;
  color: #3b82f6;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
  max-width: 28px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.er-side-empty {
  padding: 10px 16px;
  color: #9ca3af;
  font-size: 13px;
}

.er-side-more {
  width: 100%;
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1.5px dashed #e5e7eb;
  background: #fff;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.er-side-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.er-side-more:hover {
  border-color: #3b82f6;
  color: #3b82f6;
  background: #eff6ff;
}

/* --- Center Column --- */
.er-center {
  width: 620px;
  flex-shrink: 0;
  min-height: calc(100vh - 56px);
}

.er-center-inner {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  overflow: hidden;
}

/* Mobile category tabs (only visible on mobile) */
.er-mobile-tabs {
  display: none;
  overflow-x: auto;
  padding: 8px 12px;
  gap: 6px;
  background: #fff;
  border-bottom: 1px solid #f3f4f6;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.er-mobile-tabs::-webkit-scrollbar {
  display: none;
}

.er-mobile-tab {
  white-space: nowrap;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  background: #f3f4f6;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.15s;
}

.er-mobile-tab.active {
  background: #3b82f6;
  color: #fff;
}

/* Community Banner */
.er-community-banner {
  margin: 0;
  padding: 20px 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--theme-border, #bfdbfe);
  background: var(--theme-bg, #eff6ff);
  position: relative;
  overflow: hidden;
}

.er-banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
  width: 100%;
}

.er-banner-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.er-banner-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
  padding: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.er-banner-logo-fallback {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.er-banner-info {
  flex: 1;
  min-width: 0;
}

.er-banner-name {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.2;
}

.er-banner-desc {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 10px;
  max-width: 400px;
}

.er-banner-tags {
  display: flex;
  gap: 6px;
}

.er-banner-tag {
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

.er-banner-follow-btn {
  padding: 6px 20px;
  border-radius: 100px;
  background: var(--theme-text, #3b82f6);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.er-banner-follow-btn:hover {
  opacity: 0.85;
}

.er-banner-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 100%;
  opacity: 0.12;
  filter: blur(12px);
  background-size: cover;
  background-position: center;
}

/* Feed Filter Tabs */
.er-filter-tabs {
  display: flex;
  gap: 0;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid #f3f4f6;
  position: sticky;
  top: 56px;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.95);
}

.er-tab {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
}

.er-tab:hover {
  color: #374151;
}

.er-tab.active {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
  font-weight: 700;
}

/* Feed */
.er-feed {
  padding: 0;
}

/* Post Item */
.er-post {
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #f9fafb;
  text-decoration: none;
  color: inherit;
  transition: background 0.1s;
  cursor: pointer;
}

.er-post:hover {
  background: #f9fafb;
}

.er-post-stat {
  width: 54px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  color: #6b7280;
  transition: all 0.15s;
  font-size: 12px;
}

.er-post:hover .er-post-stat {
  background: #eff6ff;
  color: #3b82f6;
  border-color: #dbeafe;
}

.er-post-stat-num {
  font-size: 14px;
  font-weight: 700;
}

.er-post-stat-label {
  font-size: 10px;
  transform: scale(0.9);
}

.er-post-main {
  flex: 1;
  min-width: 0;
}

.er-post-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.1s;
}

.er-post:hover .er-post-title {
  color: #3b82f6;
}

.er-post-desc {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.er-post-cover {
  margin-bottom: 8px;
}

.er-post-cover img {
  width: 160px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #f3f4f6;
}

.er-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #9ca3af;
}

.er-post-author {
  display: flex;
  align-items: center;
  gap: 5px;
}

.er-post-author img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

.er-post-time {
  display: flex;
  align-items: center;
}

.er-post-like {
  margin-left: auto;
}

/* Badges */
.er-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  margin-left: 6px;
  vertical-align: middle;
}

.er-badge-sticky {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}

.er-badge-essence {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.er-badge-resolved {
  background: #dcfce7;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.er-badge-pending {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #fed7aa;
}

/* Empty state */
.er-empty {
  padding: 48px 16px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 24px 16px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
}

.pagination a {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #6b7280;
}

.pagination a:hover {
  background: #f3f4f6;
  color: #374151;
}

.pagination .current {
  background: #3b82f6;
  color: #fff;
  border: 1px solid #3b82f6;
}

/* --- Right Sidebar --- */
.er-side-right {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow-y: auto;
  padding: 16px 8px;
  background: #f5f7f9;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.er-side-right::-webkit-scrollbar {
  display: none;
}

.er-right-box {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  padding: 14px;
  margin-bottom: 12px;
}

.er-right-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.er-right-title .er-hot-tag {
  font-size: 10px;
  background: #fef2f2;
  color: #ef4444;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
}

.er-right-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.er-right-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #374151;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.1s;
}

.er-right-link:hover {
  background: #f9fafb;
}

.er-right-link strong {
  flex: 1;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.er-right-link span {
  font-size: 11px;
  color: #9ca3af;
  flex-shrink: 0;
}

.er-mini-link {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #f9fafb;
  color: #374151;
  text-decoration: none;
  transition: background 0.1s;
  align-items: center;
}

.er-mini-link:last-child {
  border-bottom: none;
}

.er-mini-link:hover strong {
  color: #3b82f6;
}

.er-mini-link strong {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}

.er-mini-link span {
  font-size: 11px;
  color: #9ca3af;
  flex-shrink: 0;
}

.er-hot-topic-img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.er-note {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.7;
}

/* Action buttons in right sidebar */
.er-btn {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.15s;
  margin-bottom: 6px;
  border: 1px solid #e5e7eb;
  color: #374151;
  background: #fff;
}

.er-btn:last-child {
  margin-bottom: 0;
}

.er-btn:hover {
  background: #f9fafb;
}

.er-btn-primary {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}

.er-btn-primary:hover {
  background: #2563eb;
  border-color: #2563eb;
}

.er-btn-block {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* --- Modal --- */
.er-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.er-modal[aria-hidden="false"],
.er-modal.open {
  display: flex;
}

.er-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  cursor: pointer;
}

.er-modal-panel {
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 480px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
  animation: er-modal-in 0.2s ease;
}

@keyframes er-modal-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.er-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
}

.er-modal-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.er-modal-x {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.15s;
}

.er-modal-x:hover {
  background: #fee2e2;
  color: #ef4444;
}

.er-modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  max-height: 60vh;
}

.er-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.er-modal-item {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  display: block;
}

.er-modal-item:hover {
  background: var(--er-theme-soft, #eff6ff);
  border-color: var(--er-theme, #3b82f6);
  color: var(--er-theme, #3b82f6);
  text-decoration: none;
}

.er-modal-item.is-added {
  background: var(--er-theme-soft, #eff6ff);
  border-color: var(--er-theme-border, #bfdbfe);
  color: var(--er-theme, #2563eb);
}

.er-post-modal-panel {
  max-width: 640px;
}

.er-post-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.er-post-form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.er-post-form-row input[type="text"],
.er-post-form-row select,
.er-post-form-row textarea,
.er-post-form-row input[type="file"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: #111827;
  background: #fff;
}

.er-post-form-row textarea {
  min-height: 150px;
  resize: vertical;
}

.er-post-form-row input[type="text"]:focus,
.er-post-form-row select:focus,
.er-post-form-row textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

.er-post-form-hint {
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
}

.er-post-form-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
}

.er-post-form-check input {
  width: auto;
  margin: 0;
}

.er-post-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.er-post-form-actions .er-btn {
  width: auto;
  min-width: 108px;
  margin-bottom: 0;
}

.er-post-login-tip {
  text-align: center;
  padding: 20px 8px 6px;
}

.er-post-login-tip p {
  margin: 0 0 14px;
  color: #6b7280;
  font-size: 14px;
}

/* --- Shell / Body fallback --- */
.er-shell {
  max-width: 1426px;
  margin: 0 auto;
}

.er-body {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 72px 16px 32px;
  box-sizing: border-box;
}

/* ===================================================
   RESPONSIVE
   =================================================== */

@media (max-width: 1200px) {
  .er-side-right {
    display: none;
  }
}

@media (max-width: 1024px) {
  .er-side {
    display: none;
  }

  .er-center {
    width: 100%;
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .er-topbar-inner {
    gap: 8px;
    padding: 0 12px;
  }

  .er-topbar-logo {
    width: auto;
    flex: none;
  }

  .er-topbar-name {
    display: none;
  }

  .er-topbar-search {
    flex: 1;
  }

  .er-topbar-post-btn span {
    display: none;
  }

  .er-topbar-post-btn {
    padding: 8px;
    border-radius: 50%;
  }

  .er-topbar-icon-btn:not(:last-child) {
    display: none;
  }

  .er-layout-body {
    padding: 64px 8px 16px;
    gap: 0;
  }

  .er-mobile-tabs {
    display: flex;
  }

  .er-center {
    width: 100%;
  }

  .er-post {
    padding: 12px 16px;
    gap: 12px;
  }

  .er-post-stat {
    width: 44px;
    height: 54px;
  }

  .er-banner-name {
    font-size: 18px;
  }

  .er-banner-desc {
    display: none;
  }

  .er-modal-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .er-post-form-actions {
    flex-direction: column;
  }

  .er-post-form-actions .er-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .er-topbar-search-cat {
    display: none;
  }

  .er-banner-follow-btn {
    display: none;
  }

  .er-post-cover img {
    width: 80px;
    height: 50px;
  }
}
