/* 交流论坛 */
.forum-status:empty{display:none}
.forum-status{background:#fff7e6;border:1px solid #f0d49a;border-radius:10px;padding:10px 14px;margin:0 0 16px}
.forum-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.forum-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin:8px 0 14px}
.forum-tabs{display:flex;flex-wrap:wrap;gap:6px}
.forum-tab{border:1px solid var(--line);background:#fff;border-radius:999px;padding:6px 14px;font-size:.9rem;cursor:pointer;color:var(--ink)}
.forum-tab.active{background:var(--ink);color:#fff;border-color:var(--ink)}
.forum-search input{min-width:220px;padding:8px 12px;border:1px solid var(--line);border-radius:10px}
.forum-list{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff}
.forum-row{display:flex;gap:16px;align-items:center;padding:14px 18px;border-bottom:1px solid var(--line)}
.forum-row:last-child{border-bottom:0}
.forum-row.pinned{background:#fbfaf3}
.forum-row.is-hidden,.forum-reply-item.is-hidden{opacity:.55}
.forum-row-link{flex:1;min-width:0;display:grid;gap:4px;text-decoration:none;color:inherit}
.forum-row-link:hover .forum-row-title{text-decoration:underline}
.forum-row-title{font-weight:600;font-size:1.02rem;line-height:1.45;overflow-wrap:anywhere}
.forum-row-excerpt{color:var(--muted,#5b6573);font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.forum-row-meta,.forum-meta{color:var(--muted,#5b6573);font-size:.85rem}
.forum-row-stats{flex:none;text-align:right;color:var(--muted,#5b6573);font-size:.85rem;min-width:110px}
.forum-row-stats b{display:block;font-size:1.15rem;color:var(--ink)}
.forum-cat{display:inline-block;font-size:.75rem;font-weight:600;padding:1px 8px;border-radius:6px;margin-right:6px;background:#e9eef5;color:#2c4a6b;vertical-align:2px}
.cat-announce{background:#fde8e8;color:#9b2c2c}.cat-help{background:#fff3d6;color:#8a5a00}.cat-share{background:#e3f4ea;color:#21613f}
.cat-tutorial{background:#e8e6fb;color:#4b3fa0}.cat-deals{background:#e1f1f7;color:#1d5c75}.cat-chat{background:#f1eee8;color:#6a5a40}
.forum .badge{display:inline-block;font-size:.72rem;padding:1px 7px;border-radius:6px;margin-right:6px;background:#eef0f2;color:#444;vertical-align:2px}
.forum .forum-pin{background:#9b2c2c;color:#fff}
.forum .forum-op{background:#2c4a6b;color:#fff;margin-left:6px}
.forum-empty{padding:32px;text-align:center;color:var(--muted,#5b6573);list-style:none}
.forum-more{text-align:center;margin:16px 0}
.forum-post h1{font-size:clamp(1.5rem,3vw,2rem);margin:6px 0 8px;line-height:1.3}
.forum-body{line-height:1.75;margin:14px 0;overflow-wrap:anywhere}
.forum-body pre{background:#1d2430;color:#e8edf5;border-radius:10px;padding:12px 14px;overflow:auto;font-size:.88rem;line-height:1.55}
.forum-body code{background:#eef1f4;border-radius:5px;padding:1px 5px;font-size:.9em}
.forum-body pre code{background:none;padding:0;color:inherit}
.forum-body a{text-decoration:underline;word-break:break-all}
.forum-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.forum-admin-actions{margin-top:8px;padding-top:8px;border-top:1px dashed var(--line)}
.forum-admin-actions select{padding:5px 8px;border-radius:8px;border:1px solid var(--line)}
.forum-replies-title{margin:26px 0 10px;font-size:1.15rem}
.forum-replies{list-style:none;margin:0 0 16px;padding:0;display:grid;gap:10px}
.forum-reply-item{border:1px solid var(--line);border-radius:12px;background:#fff;padding:12px 16px}
.forum-reply-item .forum-body{margin:8px 0}
.forum-floor{float:right;color:var(--muted,#8a93a0)}
.forum .button.link{background:none;border:0;padding:2px 4px;color:var(--muted,#5b6573);text-decoration:underline;min-height:0}
.forum-reply textarea,.forum-compose textarea,.forum-compose input,.forum-compose select{width:100%;margin-top:6px}
.forum-reply{display:grid;gap:8px}
.forum-form-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;flex-wrap:wrap;margin-top:8px}
.forum-form-actions .market-muted{margin-right:auto}
.forum-compose{display:grid;gap:14px;max-width:820px}
.forum-compose h1{font-size:1.6rem;margin:0}
.forum-admin{margin-top:28px}
.forum-report{border:1px solid var(--line);border-radius:10px;padding:10px 14px;margin-bottom:8px;background:#fff}
@media (max-width:640px){
  .forum-heading{flex-direction:column}
  .forum-row{flex-direction:column;align-items:stretch;gap:6px;padding:12px 14px}
  .forum-row-stats{text-align:left;min-width:0}
  .forum-row-stats b{display:inline;font-size:1rem}
  .forum-search,.forum-search input{width:100%}
}
