/* 社区 community · 首页三栏流 */

.cm-flow {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr) 296px;
  gap: 18px;
  align-items: start;
}

.cm-flow-left,
.cm-flow-right { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 86px; }

/* ---------- 左：板块导航 ---------- */
.cm-boards { padding: 2px 8px 10px; }

.cm-boards li + li { border-top: 1px dashed var(--cm-line); }

.cm-boards li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 8px;
  transition: background .16s;
}
.cm-boards li a:hover { background: var(--cm-accent-soft); }

.cm-sort-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--cm-accent-soft);
  color: var(--cm-accent);
  font-size: 13px;
  font-weight: 600;
}

.cm-board-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cm-board-body strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cm-board-body i {
  font-style: normal;
  font-size: 11.5px;
  color: var(--cm-text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cm-boards li em {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 11px;
  color: var(--cm-text-3);
}

/* 发帖提示卡 */
.cm-rule-card { padding: 14px 16px 16px; }
.cm-rule-card h3 { font-size: 14px; }
.cm-rule-card ul { margin: 10px 0 12px; }
.cm-rule-card li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 6px;
  font-size: 12.5px;
  color: var(--cm-text-2);
  line-height: 1.6;
}
.cm-rule-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cm-accent);
}
.cm-rule-card a { font-size: 13px; color: var(--cm-accent); font-weight: 500; }

/* ---------- 中：流 ---------- */
.cm-feed { min-width: 0; }

.cm-feed-head { margin-bottom: 4px; }
.cm-feed-head h1 { font-size: 22px; line-height: 1.35; }
.cm-feed-head span {
  display: inline-block;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--cm-text-3);
}
.cm-feed-desc {
  margin-top: 6px;
  font-size: 13px;
  color: var(--cm-text-2);
  line-height: 1.7;
}

.cm-cards { display: flex; flex-direction: column; gap: 12px; }

.cm-post {
  padding: 15px 17px 12px;
  transition: box-shadow .18s, border-color .18s, transform .18s;
}
.cm-post:hover {
  border-color: var(--cm-accent-line);
  box-shadow: var(--cm-shadow-hover);
  transform: translateY(-1px);
}

.cm-post-head { display: flex; align-items: center; gap: 10px; }
.cm-post-meta { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.cm-post-author { font-size: 13px; font-weight: 600; }
.cm-post-author a { color: var(--cm-text); }
.cm-post-author a:hover { color: var(--cm-accent); }
.cm-post-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--cm-text-3);
}
.cm-post-sub a { color: var(--cm-accent); }
.cm-post-sub time { color: var(--cm-text-3); }

.cm-post-body {
  display: flex;
  gap: 16px;
  margin: 10px 0 10px;
}
.cm-post-text { flex: 1; min-width: 0; }
.cm-post-text h2 {
  font-size: 16.5px;
  line-height: 1.45;
  color: var(--cm-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cm-post-body:hover .cm-post-text h2 { color: var(--cm-accent); }
.cm-post-text p {
  margin-top: 6px;
  font-size: 13px;
  color: var(--cm-text-2);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cm-post-cover {
  flex: 0 0 116px;
  height: 78px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--cm-accent-soft);
}
.cm-post-cover img { width: 100%; height: 100%; object-fit: cover; }

.cm-post-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--cm-line);
flex-wrap: wrap;
  font-size: 12px;
  color: var(--cm-text-3);
}
.cm-stat { display: inline-flex; align-items: center; gap: 4px; color: var(--cm-text-3); }
.cm-stat:hover { color: var(--cm-accent); }
.cm-post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.cm-post-tags a {
  padding: 2px 9px;
  border-radius: 11px;
  background: var(--cm-accent-soft);
  color: var(--cm-accent);
  font-size: 11.5px;
}
.cm-post-tags a:hover { background: var(--cm-accent); color: #fff; }

/* ---------- 右：我的 / 热榜 / 标签 ---------- */
.cm-me-card { padding: 15px 16px 16px; }

.cm-me-top { display: flex; gap: 10px; align-items: center; }
.cm-me-top img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--cm-accent-soft);
}
.cm-me-top div { min-width: 0; }
.cm-me-top b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-me-top span {
  display: block;
  font-size: 12px;
  color: var(--cm-text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cm-me-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 13px 0 13px;
  padding: 10px 0;
  border-top: 1px solid var(--cm-line);
  border-bottom: 1px solid var(--cm-line);
}
.cm-me-stats a { text-align: center; }
.cm-me-stats b { display: block; font-size: 16px; font-weight: 600; color: var(--cm-accent-dark); }
.cm-me-stats span { font-size: 11.5px; color: var(--cm-text-3); }

.cm-me-guest h3 { font-size: 15px; margin-bottom: 6px; }
.cm-me-guest p { font-size: 12.5px; color: var(--cm-text-2); line-height: 1.7; margin-bottom: 12px; }

/* 热榜 */
.cm-rank { padding: 2px 10px 12px; }
.cm-rank li a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 6px;
  border-radius: 6px;
  font-size: 12.5px;
  line-height: 1.5;
}
.cm-rank li a:hover { background: var(--cm-accent-soft); }
.cm-rank em {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--cm-text-3);
  font-variant-numeric: tabular-nums;
}
.cm-rank li:nth-child(-n+3) em { color: var(--cm-accent); }
.cm-rank span {
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--cm-text);
}
.cm-rank i {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 11px;
  color: var(--cm-text-3);
}

/* ---------- 首页 · 按板块分组（每板块最多 5 帖） ---------- */
.cm-bf { display: flex; flex-direction: column; gap: 12px; }
.cm-bf-sec { padding: 2px 4px 6px; }
.cm-bf-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--cm-line);
}
.cm-bf-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 15px;
  color: var(--cm-text);
}
.cm-bf-name:hover { color: var(--cm-accent); }
.cm-bf-num { font-style: normal; font-size: 12px; color: var(--cm-text-3); }
.cm-bf-more { margin-left: auto; font-size: 12px; color: var(--cm-text-3); }
.cm-bf-more:hover { color: var(--cm-accent); }
.cm-bf-list { padding: 4px 14px 6px; }
.cm-bf-list li {
  padding: 9px 0;
  border-bottom: 1px dashed var(--cm-line);
}
.cm-bf-list li:last-child { border-bottom: 0; }
.cm-bf-title {
  display: block;
  min-width: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--cm-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cm-bf-title:hover { color: var(--cm-accent); }
.cm-bf-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 3px;
  font-size: 12px;
  color: var(--cm-text-3);
}
.cm-bf-meta > * { white-space: nowrap; }
.cm-bf-meta a { color: var(--cm-text-2); }
.cm-bf-meta i { font-style: normal; }
.cm-bf-empty { font-size: 13px; color: var(--cm-text-3); border-bottom: 0 !important; }
.cm-bf-empty a { color: var(--cm-accent); }
.cm-bf-all {
  display: block;
  padding: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--cm-text-3);
  background: var(--cm-card);
  border: 1px solid var(--cm-line);
  border-radius: var(--cm-radius);
}
.cm-bf-all:hover { color: var(--cm-accent); border-color: var(--cm-accent-line); }

@media (max-width: 768px) {
  .cm-bf-title { white-space: normal; }
  .cm-bf-meta { gap: 4px 9px; font-size: 11.5px; }
}

/* ---------- 子分类（父 → 子） ---------- */
.cm-boards li.is-sub a { padding-left: 26px; }
.cm-boards li.is-sub .cm-sort-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 10px;
  background: #f3f6fb;
  color: var(--cm-text-3);
}
.cm-boards li.is-sub strong { font-size: 13px; color: var(--cm-text-2); font-weight: 500; }

.cm-bf-sec.is-sub .cm-bf-head { padding-left: 0; }
.cm-bf-parent {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--cm-text-3);
  margin-right: 5px;
}
.cm-bf-parent::after { content: ' /'; }

.cm-board-card.is-sub .cm-board-ico { background: #f3f6fb; color: var(--cm-text-3); }
.cm-board-parent { font-size: 11.5px; font-weight: 400; color: var(--cm-text-3); margin-right: 5px; }
.cm-board-parent::after { content: ' /'; }

/* ---------- 首页自定义排版区 ---------- */
.cm-hblocks { margin: 2px 0 16px; }
.cm-hblocks-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 9px;
}
.cm-hblocks-head h2 { font-size: 16px; }
.cm-hblocks-head em {
  font-style: normal;
  font-size: 10.5px;
  color: var(--cm-text-3);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.cm-hblocks-grid { display: flex; flex-direction: column; gap: 18px; }
.cm-hb-row { display: flex; gap: 10px; min-width: 0; }
.cm-hb-row.is-stats .cm-hb { flex: 1 1 0; min-width: 0; }
.cm-hb-row.is-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; }
.cm-hb-row.is-cards .cm-hb { min-width: 0; }
.cm-hb-row.is-wide .cm-hb { flex: 1 1 100%; }

.cm-hb {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--cm-line);
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(22, 119, 255, .05);
}
.cm-hb-title { font-size: 14.5px; line-height: 1.5; }
.cm-hb-text { font-size: 13px; color: var(--cm-text-2); line-height: 1.72; }
.cm-hb-link {
  margin-top: auto;
  padding-top: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--cm-accent);
}
.cm-hb-link:hover { color: var(--cm-accent-dark); }

.cm-hb-stat {
  background: var(--cm-accent-soft);
  border-color: var(--cm-accent-line);
  justify-content: center;
  padding: 12px 14px;
}
.cm-hb-num {
  font-size: 24px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  color: var(--cm-accent-dark);
}
.cm-hb-label { font-size: 12px; color: var(--cm-text-2); }

.cm-hb-banner {
  background: linear-gradient(118deg, #1677ff 0%, #4d9bff 100%);
  border-color: transparent;
  color: #fff;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}
.cm-hb-banner .cm-hb-title { color: #fff; font-size: 15.5px; }
.cm-hb-banner .cm-hb-text { color: rgba(255, 255, 255, .92); flex: 1 1 auto; }
.cm-hb-banner .cm-hb-link { color: #fff; margin: 0; padding: 0; }

.cm-hb-html { display: block; padding: 0; border: 0; background: transparent; box-shadow: none; }
.cm-hb-html img { border-radius: 10px; width: 100%; }

/* ---------------- 社区中心 /bbs ---------------- */
.cm-hub { display: flex; flex-direction: column; gap: 14px; }

.cm-hub-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px 26px;
  background: linear-gradient(120deg, #ffffff 0%, #f4f8ff 62%, #eaf2ff 100%);
  border: 1px solid var(--cm-accent-line);
}
.cm-hub-hero-txt { flex: 1 1 auto; min-width: 0; }
.cm-hub-hero-txt h1 { margin: 0 0 7px; font-size: 23px; letter-spacing: .5px; color: var(--cm-text); }
.cm-hub-hero-txt p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.7; color: var(--cm-text-2); }
.cm-hub-stats { display: flex; gap: 20px; font-size: 12.5px; color: var(--cm-text-3); }
.cm-hub-stats b { font-size: 16px; font-weight: 700; color: var(--cm-accent); margin-right: 4px; }
.cm-hub-write { flex: 0 0 auto; padding: 10px 22px; }

.cm-hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cm-hub-cat {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px 17px 15px;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.cm-hub-cat:hover { transform: translateY(-2px); box-shadow: var(--cm-shadow-hover); border-color: var(--cm-accent-line); }
.cm-hub-cat-top { display: flex; align-items: center; gap: 9px; }
.cm-hub-cat-top b { font-size: 15px; font-weight: 600; color: var(--cm-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-hub-cat-top em {
  margin-left: auto;
  font-style: normal;
  font-size: 12px;
  color: var(--cm-accent);
  background: var(--cm-accent-soft);
  border-radius: 999px;
  padding: 2px 8px;
}
.cm-hub-cat .cm-sort-icon {
  width: 26px; height: 26px; flex: 0 0 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--cm-accent-soft); color: var(--cm-accent);
  font-size: 13px; font-weight: 700;
}
.cm-hub-cat-desc {
  font-style: normal;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--cm-text-3);
  min-height: 21px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cm-hub-cat-last {
  margin-top: auto;
  font-size: 12.5px;
  color: var(--cm-text-2);
  padding-top: 9px;
  border-top: 1px dashed var(--cm-line);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.cm-hub-latest { padding: 2px 4px 6px; }
.cm-hub-list { padding: 4px 14px 4px; }
.cm-hub-list li { display: flex; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--cm-line); }
.cm-hub-list li:last-child { border-bottom: 0; }
.cm-hub-title { font-size: 14.5px; color: var(--cm-text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; min-width: 0; }
.cm-hub-title:hover { color: var(--cm-accent); }
.cm-hub-meta { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--cm-text-3); }
.cm-hub-meta a { color: var(--cm-text-2); }
.cm-hub-meta i { font-style: normal; }
.cm-hub-empty { font-size: 13px; color: var(--cm-text-3); display: block; border-bottom: 0 !important; }
.cm-hub-empty a { color: var(--cm-accent); }
.cm-hub-more { display: block; margin: 4px 14px 10px; font-size: 12.5px; color: var(--cm-accent); }

/* 首页·页面快链（中栏 2 列） */
.cm-home-pages { padding: 2px 4px 8px; }
.cm-home-pages-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 10px; padding: 6px 12px 4px; }
.cm-home-pages-grid a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 10px; border-radius: 8px;
  font-size: 13.5px; color: var(--cm-text-2); text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.cm-home-pages-grid a:hover { background: var(--cm-accent-soft); color: var(--cm-accent); }
.cm-home-pages-grid a i { width: 5px; height: 5px; border-radius: 50%; background: var(--cm-accent-line); flex: 0 0 5px; }
.cm-home-pages-grid a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-home-pages-grid a em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--cm-text-3); }

/* 首页分类 chips：最后一个「全部分类」 */
.cm-chip-more { color: var(--cm-accent); border-style: dashed; }

/* ---------- 首页·最新帖子（只要标题的紧凑列表） ---------- */
.cm-flow.is-home { grid-template-columns: minmax(0, 1fr) 300px; }
.cm-toplist { padding-bottom: 6px; }
.cm-toplist .cm-card-head { padding-bottom: 10px; border-bottom: 1px solid var(--cm-line); }
.cm-toplist-more { margin-left: auto; font-size: 13px; color: var(--cm-accent); text-decoration: none; }
.cm-toplist-more:hover { text-decoration: underline; }
.cm-toplist-items { list-style: none; margin: 0; padding: 0; }
.cm-toplist-items li + li { border-top: 1px dashed var(--cm-line); }
.cm-toplist-items a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 6px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .16s ease;
}
.cm-toplist-items a:hover { background: var(--cm-accent-soft); }
.cm-toplist-no {
  flex: 0 0 30px;
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  color: var(--cm-text-3);
  font-variant-numeric: tabular-nums;
}
.cm-toplist-items li:nth-child(-n+3) .cm-toplist-no { color: var(--cm-accent); }
.cm-toplist-t {
  flex: 1;
  min-width: 0;
  font-size: 16.5px;
  font-weight: 500;
  color: var(--cm-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cm-toplist-items a:hover .cm-toplist-t { color: var(--cm-accent); }
.cm-toplist-time {
  flex: 0 0 auto;
  font-size: 12.5px;
  color: var(--cm-text-3);
  font-variant-numeric: tabular-nums;
}
.cm-toplist-empty { padding: 26px 6px; text-align: center; }
.cm-boards-mini .cm-boards li a { padding: 9px 6px; }
.cm-boards-mini .cm-boards li em { font-size: 12px; }

/* 首页右栏·页面卡（单列紧凑） */
.cm-home-pages-side .cm-home-pages-grid { display: block; padding: 0; }
.cm-home-pages-side .cm-home-pages-grid a { padding: 9px 4px; font-size: 13.5px; border-bottom: 1px dashed var(--cm-line); border-radius: 0; }
.cm-home-pages-side .cm-home-pages-grid a:last-child { border-bottom: 0; }

/* =================== 首页（门户式单列，无侧栏） =================== */
.cm-home { width: 100%; }

/* ---------- Hero ---------- */
.cm-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  padding: 52px 54px 54px;
  margin-bottom: 32px;
  border: 1px solid #dbe9ff;
  border-radius: 20px;
  background:
    radial-gradient(680px 320px at 88% 18%, #e3efff 0%, rgba(227, 239, 255, 0) 70%),
    linear-gradient(118deg, #f2f8ff 0%, #fbfdff 48%, #ffffff 100%);
}
.cm-hero-body { position: relative; z-index: 2; max-width: 660px; }
.cm-hero-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--cm-accent);
}
.cm-hero h1 {
  margin: 0 0 16px;
  font-size: 40px;
  line-height: 1.24;
  letter-spacing: -.02em;
  color: var(--cm-text);
}
.cm-hero-sub {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
  color: var(--cm-text-2);
}
.cm-hero-acts { display: flex; gap: 14px; margin-top: 32px; }
.cm-hero-btn { height: 48px; padding: 0 28px; font-size: 15px; border-radius: 11px; }

.cm-hero-art { position: relative; flex: 0 0 300px; width: 300px; height: 200px; }
.cm-hero-ring {
  position: absolute; right: 44px; top: 10px;
  width: 180px; height: 180px; border-radius: 50%;
  background: conic-gradient(from 200deg, #1677ff33, #1677ff0d 45%, #1677ff00 70%);
  border: 1px solid #d7e6ff;
}
.cm-hero-chip {
  position: absolute;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cm-accent);
  background: #fff;
  border: 1px solid #dbe9ff;
  box-shadow: 0 8px 20px rgba(22, 119, 255, .10);
}
.cm-hero-chip-a { left: 24px; top: 10px; }
.cm-hero-chip-b { right: 6px; top: 64px; }
.cm-hero-chip-c { left: 10px; bottom: 44px; }
.cm-hero-chip-d { right: 60px; bottom: 4px; }

/* ---------- 区块头 ---------- */
.cm-home-sec { margin: 0 0 26px; }
.cm-home-sec-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 20px;
}
.cm-home-sec-head h2 { margin: 0; font-size: 20px; line-height: 1.3; color: var(--cm-text); }
.cm-home-sec-head em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cm-text-3);
}
.cm-home-sec-head a { margin-left: auto; font-size: 13px; color: var(--cm-accent); text-decoration: none; }
.cm-home-sec-head a:hover { text-decoration: underline; }

/* ---------- 板块宫格 ---------- */
.cm-home-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cm-hcat {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px 18px 15px;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.cm-hcat:hover { transform: translateY(-2px); box-shadow: var(--cm-shadow-hover); border-color: var(--cm-accent-line); }
.cm-hcat-top { display: flex; align-items: center; gap: 10px; }
.cm-hcat-top b { font-size: 16.5px; font-weight: 600; color: var(--cm-text); }
.cm-hcat-top em {
  margin-left: auto;
  font-style: normal;
  font-size: 12px;
  color: var(--cm-accent);
  background: var(--cm-accent-soft);
  border-radius: 999px;
  padding: 2px 9px;
}
.cm-hcat .cm-sort-icon {
  width: 28px; height: 28px; flex: 0 0 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px; background: var(--cm-accent-soft); color: var(--cm-accent);
  font-size: 14px;
}
.cm-hcat-desc { font-size: 13px; line-height: 1.65; color: var(--cm-text-3); }
.cm-hcat-last {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--cm-line);
  font-size: 12.5px;
  color: var(--cm-text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- 最新 + 热榜 ---------- */
.cm-home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 22px; align-items: start; margin-bottom: 26px; }
.cm-home-aside { display: flex; flex-direction: column; }
.cm-home-aside .cm-home-sec-head { margin-top: 0; }
.cm-home-aside .cm-card + .cm-home-sec-head { margin-top: 22px; }
.cm-home-main .cm-toplist { margin-bottom: 0; }

/* ---------- 页面快链（横条铺满） ---------- */
.cm-home-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.cm-home-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 1 1 200px;
  padding: 11px 18px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--cm-line);
  font-size: 14px;
  color: var(--cm-text);
  text-decoration: none;
  transition: border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.cm-home-strip a:hover { border-color: var(--cm-accent-line); color: var(--cm-accent); box-shadow: 0 6px 16px rgba(22, 119, 255, .08); }
.cm-home-strip a em { font-style: normal; color: var(--cm-text-3); font-size: 12.5px; }

/* 自定义区在首页通栏时的间距 */
.cm-home .cm-hblocks { margin-bottom: 26px; }

/* ---------- 首页三段式（通栏单列，窄一点更耐读） ---------- */
.cm-home-flow { max-width: 980px; margin: 0 auto; padding: 56px 0 64px; }
.cm-home-block { margin: 0 0 56px; }
.cm-home-flow .cm-toplist-t { font-size: 17.5px; }
.cm-home-flow .cm-toplist-items a { padding: 24px 16px; }

/* 页面 ID 标题列表 */
.cm-pagelist { padding: 8px 28px; }
.cm-pagelist a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 25px 2px;
  border-bottom: 1px dashed var(--cm-line);
  font-size: 16px;
  color: var(--cm-text);
  text-decoration: none;
  transition: color .16s ease;
}
.cm-pagelist a:last-child { border-bottom: 0; }
.cm-pagelist a:hover { color: var(--cm-accent); }
.cm-pagelist a em { font-style: normal; font-size: 13px; color: var(--cm-text-3); }
