/* 社区 v2 页签壳 + 共享基础样式（头像/空态/轻提示/角标）。各模块样式在各自的 .cm-* 文件里。 */
.community-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.community-head .section-title { margin-bottom: 0; }
.community-tabbar { display: flex; align-items: center; gap: 8px; }
.community-tabs { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 4px; background: #e9eee9; border-radius: 12px; }
.community-tabs > button { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 18px; border: 0; border-radius: 9px; background: transparent; color: #626b66; font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1.4; white-space: nowrap; cursor: pointer; transition: background-color .15s, color .15s; }
.community-tabs > button:hover { background: #e0e8e1; color: #28554a; }
.community-tabs > button.active { background: #fff; color: #28554a; font-weight: 600; box-shadow: 0 1px 4px rgba(37, 65, 48, .1); }
.community-tabs > button:focus-visible { outline: 2px solid #638472; outline-offset: 2px; }
.community-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; margin-left: 4px; padding: 0 4px; border-radius: 8px; background: #c0392b; color: #fff; font-size: 10px; font-weight: 600; line-height: 16px; }
.community-badge[hidden] { display: none; }

.cm-avatar { display: inline-flex; flex: none; align-items: center; justify-content: center; overflow: hidden; border-radius: 50%; background: #28554a; color: #fff; font-weight: 600; }
.cm-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-avatar-text { font-size: .44em; line-height: 1; }

.cm-empty, .cm-loading { padding: 32px 16px; border: 1px dashed #dee4df; border-radius: 14px; background: #faf9f5; color: #6b746f; font-size: 13px; text-align: center; }
.cm-loading { border-style: solid; background: #fff; }

.cm-toast { position: fixed; left: 50%; bottom: 96px; z-index: 9999; transform: translate(-50%, 12px); max-width: 76vw; padding: 10px 18px; border-radius: 10px; background: rgba(37, 42, 40, .92); color: #fff; font-size: 13px; line-height: 1.5; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.cm-toast.is-show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 768px) {
  .community-head { align-items: flex-start; flex-direction: column; }
  .community-tabs { width: 100%; }
  .community-tabs > button { flex: 1; padding: 0 10px; }
}
