/* Forum pages share the site's current white cards and blue section accents. */
.forum-layout { gap: 14px; }
.forum-side { flex-basis: 324px; max-width: 324px; }
.forum-card, .forum-side-card, .forum-page-heading {
    background: #fff; border: 1px solid #e8ebf1; border-radius: 12px;
    box-shadow: 0 2px 10px #37393b0f;
}
.forum-page-heading { display: flex; align-items: center; gap: 12px; padding: 18px 24px; margin-bottom: 14px; }
.forum-page-heading h1 { position: relative; margin: 0; padding-left: 14px; font-size: 18px; line-height: 24px; font-weight: 500; color: #37393b; }
.forum-page-heading h1::before, .forum-side-head::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 20px; border-radius: 2px; background: #3b84eb; }
.forum-page-heading a { margin-left: auto; color: #3b84eb; font-size: 14px; white-space: nowrap; }
.forum-side-head { position: relative; min-height: 58px; padding: 18px 24px; background: #fff; color: #37393b; border-bottom: 1px solid #e8ebf1; font-size: 16px; }
.forum-side-head::before { left: 12px; }
.forum-side-head i { color: #ff9f18; }
.forum-user-card { padding: 22px 20px; margin-bottom: 14px; }
.fu-avatar { background: #eff6ff; color: #3b84eb; }
.forum-cat-bar, .mine-tabs { padding: 0 20px; gap: 0; min-height: 49px; align-items: stretch; }
.forum-pill, .mine-tab { position: relative; padding: 13px 16px; border: 0; border-radius: 0; background: transparent; color: #5f5f5f; font-family: inherit; font-size: 15px; font-weight: 400; line-height: 22px; }
.forum-pill.active, .mine-tab.active { background: transparent; color: #3b84eb; }
.forum-pill.active::after, .mine-tab.active::after { content: ''; position: absolute; bottom: 0; left: 16px; width: 30px; height: 2px; background: #609aeb; }
.fp-item, .mine-item { padding: 20px 24px; }
.fp-title, .mine-title { font-size: 16px; font-weight: 500; }
.fp-summary, .mine-summary, .mine-comment { font-size: 14px; color: #5f5f5f; }
.fp-meta, .fd-meta, .mine-meta { font-size: 13px; gap: 10px 16px; color: #9e9e9e; line-height: 20px; }
.fp-head { gap: 8px; margin-bottom: 10px; }
.fp-summary { line-height: 23px; margin-bottom: 12px; }
.fp-badge { font-weight: 400; border-radius: 3px; }
.fp-cat { border: 0; padding: 1px 8px; background: #eef5ff; }
.forum-hot-item { padding: 14px 20px; border-bottom-style: solid; }
.fh-title { font-size: 14px; }
.forum-hot-item { flex-wrap: wrap; gap: 6px 10px; }
.fh-title { flex-basis: 100%; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 21px; }
.fh-date { margin-left: auto; }
.forum-side-head { min-height: 49px; padding-top: 14px; padding-bottom: 14px; font-size: 15px; line-height: 20px; }
.forum-layout .empty-state, .forum-layout .loading-placeholder { padding: 48px 20px; min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #9e9e9e; font-size: 14px; }
.forum-cat-bar .loading-placeholder, .forum-side-body .loading-placeholder { min-height: 0; padding: 20px; }
.forum-layout .empty-state > i { color: #b5c9e6; font-size: 32px; }
.fd-back { padding: 20px 24px 0; }
.fd-back a { border: 0; padding: 0; color: #3b84eb; font-size: 14px; }
.fd-header { padding: 20px 24px; }
.fd-title { font-size: 22px; font-weight: 500; }
.fd-content { padding: 24px; font-size: 15px; line-height: 2; }
.fd-summary { margin: 20px 24px 0; background: #f5f8fd; }
.fd-actions { padding: 0 24px 24px; }
.fd-comments { padding: 24px; }
.fc-head { position: relative; padding-left: 14px; font-size: 16px; }
.fc-head::before { content: ''; position: absolute; left: 0; top: 2px; width: 4px; height: 18px; background: #3b84eb; border-radius: 2px; }
.fc-guest { border: 1px solid #e8ebf1; background: #f8fafc; gap: 12px; }
.fc-login-btn { height: 36px; min-width: 72px; padding: 0 18px; border: 1px solid transparent; }
.fc-retry { display: block; margin: 0 auto; height: 36px; padding: 0 18px; border: 1px solid #609aeb; border-radius: 6px; background: #fff; color: #3b84eb; font: inherit; cursor: pointer; }
.mine-reject-reason { flex-basis: 100%; color: #ef4444; font-size: 13px; line-height: 21px; overflow-wrap: anywhere; }
.fw-tag-remove { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 3px; background: transparent; color: inherit; cursor: pointer; }
.fw-tag-remove:hover { background: #dbeafe; }
#fwTagList { display: flex; flex-wrap: wrap; gap: 6px; }
.fp-title:focus-visible { outline: 2px solid #3b84eb; outline-offset: 3px; }
.forum-auth-prompt { justify-content: center; margin: 0 24px 24px; padding: 16px; }
.forum-auth-prompt .fc-login-btn { min-width: 90px; height: 36px; }
.fc-box { background: #fff; }
.fc-box:focus-within { border-color: #609aeb; }
.fw-head { text-align: left; padding: 24px 24px 0; }
.fw-title { font-size: 20px; font-weight: 500; }
.fw-sub { margin-top: 8px; }
.fw-head { border-bottom: 1px solid #e8ebf1; padding-bottom: 20px; }
.fw-body { padding: 24px; }
.fw-field { margin-bottom: 24px; }
.fw-field > label { font-size: 14px; font-weight: 400; margin-bottom: 10px; }
.fw-input, .fw-select, .fw-textarea, .fw-tagbox { border-radius: 6px; border-color: #e1e6ee; font-family: inherit; }
.fu-btn, .fc-login-btn, .fc-submit, .fw-cancel, .fw-submit, .mine-btn, .fp-page, .fd-like { border-radius: 6px; font-family: inherit; }
.fu-btn { height: 38px; }
.fc-submit, .fw-cancel, .fw-submit { min-height: 38px; }
.fc-submit:disabled { opacity: .6; cursor: not-allowed; }
.fu-btn.primary, .fc-login-btn:not(.ghost), .fc-submit, .fw-submit, .fp-page.active, .fa-submit { background: #609aeb; border-color: #609aeb; font-weight: 400; }
.fu-btn.primary:hover, .fc-login-btn:not(.ghost):hover, .fc-submit:hover, .fw-submit:hover, .fa-submit:hover { background: #3b84eb; opacity: 1; }
.forum-layout button:focus-visible, .forum-layout a:focus-visible, .forum-pill:focus-visible, .mine-tab:focus-visible { outline: 2px solid #3b84eb; outline-offset: 3px; }
.forum-pager { padding: 22px 24px; }
.forum-category-error { display: flex; align-items: center; gap: 14px; min-height: 49px; color: #9e9e9e; font-size: 14px; }
.forum-category-error .fc-retry { margin: 0; height: 30px; }
.forum-side-empty .fc-retry { margin-top: 12px; }
.fw-body :disabled { cursor: not-allowed; opacity: .65; }
@media (max-width: 1024px) { .forum-side { flex-basis: 250px; max-width: 250px; } }
@media (max-width: 768px) {
    .forum-layout { gap: 14px; }
    .forum-side { flex: none; max-width: 100%; }
    .forum-page-heading { padding: 16px; }
    .forum-page-heading h1 { font-size: 16px; }
    .forum-cat-bar, .mine-tabs { padding: 0 12px; gap: 0; flex-wrap: nowrap; overflow-x: auto; }
    .forum-pill, .mine-tab { flex-shrink: 0; }
    .forum-pill, .mine-tab { font-size: 14px; padding: 13px 12px; }
    .forum-pill.active::after, .mine-tab.active::after { left: 12px; }
    .forum-auth-prompt { margin-left: 16px; margin-right: 16px; }
    .fp-item, .mine-item, .fd-header, .fd-content, .fd-comments, .fw-body { padding: 18px 16px; }
    .fd-back, .fw-head { padding-left: 16px; padding-right: 16px; }
    .fd-actions { padding-left: 16px; padding-right: 16px; }
    .fd-summary { margin-left: 16px; margin-right: 16px; }
    .fd-title { font-size: 18px; }
    .fp-meta, .fd-meta, .mine-meta { font-size: 12px; gap: 8px 12px; }
}
