/* ==================== 社区页全新一体化沉浸式顶栏 ==================== */
:where(.mp-page[data-route="pages/community/community"]) .comm-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 0.5px solid rgba(235, 237, 241, 0.9);
  box-shadow: 0 2px 10px rgba(18, 21, 27, 0.03);
}

:where(.mp-page[data-route="pages/community/community"]) .comm-nav-bar {
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 8px 0 12px;
  box-sizing: border-box;
}

/* 搜索微按钮：轻量微晶质感 */
:where(.mp-page[data-route="pages/community/community"]) .comm-search-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4B5563;
  cursor: pointer;
  margin-right: 6px;
  transition: all 0.15s ease;
}
:where(.mp-page[data-route="pages/community/community"]) .comm-search-btn:active {
  background: #E5E7EB;
  transform: scale(0.95);
}

/* 横向滑动标签容器 */
:where(.mp-page[data-route="pages/community/community"]) .comm-tabs-scroll {
  flex: 1;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
:where(.mp-page[data-route="pages/community/community"]) .comm-tabs-scroll::-webkit-scrollbar {
  display: none;
}

:where(.mp-page[data-route="pages/community/community"]) .comm-tabs-list {
  display: inline-flex;
  align-items: center;
  height: 48px;
  gap: 2px;
}

:where(.mp-page[data-route="pages/community/community"]) .comm-tab-item {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 9px;
  cursor: pointer;
  user-select: none;
}

:where(.mp-page[data-route="pages/community/community"]) .comm-tab-text {
  font-size: 15px;
  font-weight: 500;
  color: #6B7280;
  transition: all 0.15s ease;
}

:where(.mp-page[data-route="pages/community/community"]) .comm-tab-on .comm-tab-text {
  font-size: 16px;
  font-weight: 800;
  color: #111827;
}

:where(.mp-page[data-route="pages/community/community"]) .comm-tab-line {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: var(--brand-orange, #E45A1B);
  box-shadow: 0 2px 4px rgba(228, 90, 27, 0.35);
}

/* 右侧胶囊安全避让占位（在小程序模式下自动扩展） */
:where(.mp-page[data-route="pages/community/community"]) .comm-capsule-placeholder {
  flex-shrink: 0;
  width: 8px;
  transition: width 0.2s ease;
}

.in-miniprogram :where(.mp-page[data-route="pages/community/community"]) .comm-capsule-placeholder {
  width: 90px;
}/* 信息流面板：浅色阅读背景区块（PRD 8.3 阅读友好） */
:where(.mp-page[data-route="pages/community/community"]) .feed-wrap {
  padding-bottom: 16px;
}
:where(.mp-page[data-route="pages/community/community"]) .feed-panel {
  margin: var(--space-card) var(--space-page) 0;
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-card);
  padding: var(--space-card);
  min-height: calc(60 * var(--mp-vh));
}
:where(.mp-page[data-route="pages/community/community"]) .feed-panel post-card, :where(.mp-page[data-route="pages/community/community"]) .feed-panel .pc {
  margin-bottom: var(--space-card);
}
:where(.mp-page[data-route="pages/community/community"]) .feed-loading, :where(.mp-page[data-route="pages/community/community"]) .feed-end {
  text-align: center;
  font-size: 12px;
  color: var(--text-tertiary);
  padding: 12px 0 4px;
}
