/**
 * 论坛云社区布局 — 参考腾讯云开发者社区信息架构
 */
body.page-forum-cloud {
  background: #f2f3f5 !important;
}
body.page-forum-cloud .cc-page {
  padding: 16px 0 48px;
}
body.page-forum-cloud .cc-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Hero — 通栏横幅；用户卡改到右侧栏 */
.cc-hero {
  display: block;
  margin-bottom: 16px;
}
.cc-banner {
  position: relative;
  overflow: hidden;
  min-height: 200px;
  border-radius: 10px;
  background:
    radial-gradient(ellipse 50% 80% at 88% 40%, rgba(0, 82, 217, 0.18), transparent 60%),
    linear-gradient(105deg, #e8f1ff 0%, #eef3fb 45%, #f7f9fc 100%);
  padding: 28px 28px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(140px, 0.7fr);
  gap: 12px;
  align-items: center;
}
.cc-banner-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 650;
  color: #0052d9;
  letter-spacing: 0.04em;
}
.cc-banner h1 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  color: #1f2329;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.cc-banner-sub {
  margin: 10px 0 0;
  max-width: 42ch;
  font-size: 14px;
  line-height: 1.7;
  color: #646a73;
}
.cc-banner-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cc-btn-primary {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 18px;
  border-radius: 4px;
  background: #0052d9;
  color: #fff !important;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none !important;
}
.cc-btn-primary:hover { background: #0046c0; color: #fff !important; }
.cc-btn-ghost {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 4px;
  border: 1px solid #d0d7de;
  background: #fff;
  color: #1f2329 !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
}
.cc-btn-ghost:hover { border-color: #0052d9; color: #0052d9 !important; }

.cc-banner-art {
  position: relative;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.cc-art-orb {
  position: absolute;
  right: 10px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #c9dbff 55%, #8fb3ff 100%);
  opacity: 0.9;
}
.cc-art-card {
  position: relative;
  z-index: 1;
  width: 150px;
  padding: 16px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px -18px rgba(15, 40, 90, 0.4);
  text-align: left;
}
.cc-art-card span {
  display: block;
  font-size: 12px;
  color: #8a919f;
}
.cc-art-card strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
  color: #0052d9;
  line-height: 1.1;
}
.cc-art-card em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 12px;
  color: #646a73;
}

.cc-user-card {
  background: #fff;
  border-radius: 10px;
  padding: 18px 16px 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  margin-bottom: 0;
}
.cc-side > .cc-user-card {
  margin-bottom: 0;
}
.cc-user-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cc-user-top img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: #eef2f7;
}
.cc-user-top strong {
  display: block;
  font-size: 16px;
  color: #1f2329;
}
.cc-user-top span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #8a919f;
}
.cc-user-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
  padding: 12px 0;
  border-top: 1px solid #f0f2f5;
  border-bottom: 1px solid #f0f2f5;
  text-align: center;
}
.cc-user-stats b {
  display: block;
  font-size: 18px;
  color: #1f2329;
}
.cc-user-stats span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #8a919f;
}
.cc-user-links {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  gap: 6px;
}
.cc-user-links a {
  flex: 1;
  text-align: center;
  font-size: 13px;
  color: #646a73;
  text-decoration: none;
  padding: 6px 0;
}
.cc-user-links a:hover { color: #0052d9; }
.cc-link-tasks { color: #0052d9 !important; font-weight: 700; }
.cc-task-cta {
  display: block;
  margin-top: 12px;
  height: 34px;
  line-height: 34px;
  text-align: center;
  border-radius: 4px;
  background: #e8f1ff;
  color: #0052d9 !important;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none !important;
}
.cc-task-cta:hover { background: #d6e6ff; }
.cc-user-guest {
  text-align: center;
  padding: 8px 4px 4px;
}
.cc-user-guest img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.cc-user-guest h3 {
  margin: 10px 0 6px;
  font-size: 16px;
}
.cc-user-guest p {
  margin: 0 0 14px;
  font-size: 13px;
  color: #8a919f;
  line-height: 1.5;
}
.cc-user-guest .cc-btn-primary,
.cc-user-guest .cc-btn-ghost {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

/* Main grid */
.cc-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}
.cc-feed {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.cc-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 12px 16px 0;
  border-bottom: 1px solid #f0f2f5;
  scrollbar-width: thin;
}
.cc-tab {
  flex: 0 0 auto;
  padding: 10px 12px 12px;
  font-size: 14px;
  color: #646a73;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.cc-tab:hover { color: #0052d9; }
.cc-tab.is-active {
  color: #1f2329;
  font-weight: 700;
  border-bottom-color: #0052d9;
  position: relative;
}
.cc-tab.is-active::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e34d59;
}

.cc-searchbar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f2f5;
  background: #fafbfc;
}
.cc-searchbar input {
  flex: 1;
  height: 34px;
  border: 1px solid #d0d7de;
  border-radius: 4px;
  padding: 0 12px;
  font-size: 13px;
  outline: none;
  background: #fff;
}
.cc-searchbar input:focus { border-color: #0052d9; }
.cc-searchbar button {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 4px;
  background: #0052d9;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.cc-publish {
  height: 34px;
  padding: 0 14px;
  border-radius: 4px;
  background: #0052d9;
  color: #fff !important;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.cc-publish:hover { background: #0046c0; color: #fff !important; }

.cc-list { padding: 0 4px; }
.cc-item {
  display: flex;
  gap: 16px;
  padding: 18px 16px;
  border-bottom: 1px solid #f0f2f5;
}
.cc-item:hover { background: #fafbfc; }
.cc-item-body { flex: 1; min-width: 0; }
.cc-item-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}
.cc-item-title a {
  color: #1f2329;
  text-decoration: none;
}
.cc-item-title a:hover { color: #0052d9; }
.cc-item-excerpt {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: #8a919f;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cc-item-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-size: 12px;
  color: #8a919f;
}
.cc-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #646a73;
  text-decoration: none;
}
.cc-author img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}
.cc-tag {
  display: inline-flex;
  padding: 1px 8px;
  border-radius: 3px;
  background: #f2f3f5;
  color: #646a73;
}
.cc-badge {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 650;
  vertical-align: 1px;
}
.cc-badge-top { background: #fff1f0; color: #cf1322; }
.cc-badge-hot {
  background: linear-gradient(90deg, #ff4d4f, #ff7a45);
  color: #fff;
  letter-spacing: .04em;
}
.cc-badge-ess { background: #fff7e6; color: #d46b08; }
.cc-item-thumb {
  flex: 0 0 148px;
  width: 148px;
  height: 92px;
  border-radius: 6px;
  overflow: hidden;
  background: #eef2f7;
}
.cc-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cc-empty {
  padding: 64px 16px;
  text-align: center;
  color: #8a919f;
  font-size: 14px;
}
.cc-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding: 16px;
}
.cc-pager a,
.cc-pager span {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  text-decoration: none;
  color: #646a73;
  background: #f2f3f5;
}
.cc-pager a:hover { color: #0052d9; background: #e8f1ff; }
.cc-pager .is-current {
  background: #0052d9;
  color: #fff;
  font-weight: 700;
}

/* Sidebar */
.cc-side { display: flex; flex-direction: column; gap: 16px; }
.cc-side-card {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.cc-side-card h3 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: #1f2329;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cc-star { color: #0052d9; font-size: 14px; }
.cc-reco { display: flex; flex-direction: column; gap: 14px; }
.cc-reco-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.cc-reco-item strong {
  display: block;
  font-size: 14px;
  color: #1f2329;
}
.cc-reco-item p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #8a919f;
  line-height: 1.4;
}
.cc-outline {
  flex: 0 0 auto;
  height: 28px;
  padding: 0 10px;
  border: 1px solid #0052d9;
  border-radius: 4px;
  color: #0052d9 !important;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.cc-outline:hover { background: #e8f1ff; }

.cc-boards { display: flex; flex-direction: column; gap: 4px; }
.cc-boards a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: #646a73;
  font-size: 13px;
}
.cc-boards a:hover,
.cc-boards a.is-on {
  background: #f2f3f5;
  color: #0052d9;
}
.cc-boards em {
  font-style: normal;
  color: #c0c4cc;
  font-size: 12px;
}

.cc-hot {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cc-hot li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.cc-rank {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #f2f3f5;
  color: #8a919f;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.cc-rank.is-hot {
  background: #e34d59;
  color: #fff;
}
.cc-hot a {
  flex: 1;
  font-size: 13px;
  line-height: 1.45;
  color: #1f2329;
  text-decoration: none;
}
.cc-hot a:hover { color: #0052d9; }

@media (max-width: 980px) {
  .cc-hero,
  .cc-main {
    grid-template-columns: 1fr;
  }
  .cc-banner {
    grid-template-columns: 1fr;
  }
  .cc-banner-art { display: none; }
  .cc-item-thumb {
    flex-basis: 112px;
    width: 112px;
    height: 74px;
  }
  .cc-searchbar { flex-wrap: wrap; }
  .cc-searchbar input { min-width: 100%; }
}

@media (max-width: 768px) {
  .cc-item {
    gap: 10px;
  }
  .cc-item-main {
    min-width: 0;
  }
  .cc-side-card {
    padding: 14px;
  }
}
