/**
 * 社区壳 · square-layout（主栏+侧栏）
 */

/* =============================================================================
 * Phase3 · 页面级布局：主栏收窄 + 右侧活跃版块栏（只在社区页覆盖，不动全站宽度变量）
 *
 * 核心栏(630) + 缝(24) + 活跃板块(280) 视为一整块。用 fit-content 收成真实宽度，
 * 交给 content-frame 的 main{align-items:center} 居中，保证：
 * 侧栏右缘→整块左缘  ==  整块右缘→视口右缘（拉伸窗口也始终对称）。
 * ============================================================================= */
.mytheme-page-main .container-main.mytheme-community-wrap {
  /* 覆盖全站 .container-main{width:1350px}，按子项真实宽度居中 */
  width: fit-content;
  max-width: 100%;
}
.mytheme-community-wrap {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.mytheme-community-main {
  flex: 0 1 630px;
  width: 630px;
  max-width: 630px;
  min-width: 0;
}
.mytheme-community-aside {
  flex: 0 0 280px;
  width: 280px;
  position: sticky;
  top: 88px;
}
@media (max-width: 1024px) {
  .mytheme-community-aside {
    display: none;
  }
  .mytheme-page-main .container-main.mytheme-community-wrap {
    width: 100%;
  }
  .mytheme-community-main {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
  }
}

.mytheme-community-sidebar-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--myt-wpf-color-ink);
  margin: 0 0 12px;
}
.mytheme-community-sidebar-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mytheme-community-sidebar-card__item {
  margin: 0;
}
.mytheme-community-sidebar-card__link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 6px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background-color 0.15s ease;
}
.mytheme-community-sidebar-card__link:hover {
  background: var(--myt-wpf-color-hover);
}
.mytheme-community-sidebar-card__rank {
  flex: 0 0 auto;
  width: 18px;
  color: var(--myt-wpf-color-ink-disabled);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
}
.mytheme-community-sidebar-card__name {
  display: block;
  color: var(--myt-wpf-color-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.mytheme-community-sidebar-card__meta {
  display: block;
  color: var(--myt-wpf-color-ink-tertiary);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 2px;
}
