/**
 * 论坛首页 — 腾讯云风格生态精选（左轮播 + 右热门帖）
 */
.cc-eco-spotlight {
  margin-bottom: 20px;
}

.cc-eco-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  min-height: 40px;
}

.cc-eco-head h2 {
  margin: 0;
  font-size: clamp(20px, 4.5vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  color: #1d2129;
  letter-spacing: -0.02em;
  text-align: center;
}

.cc-eco-more {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: #4e5969;
  text-decoration: none;
  white-space: nowrap;
}

.cc-eco-more:hover {
  color: #0052d9;
}

.cc-eco-more svg {
  width: 16px;
  height: 16px;
}

.cc-eco-board {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  min-height: 300px;
  border: 1px solid #e6e8eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

/* ── 左侧轮播 ── */
.cc-eco-banner {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: #0b1f4a;
}

.cc-eco-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

.cc-eco-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.cc-eco-slide-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 80% at 20% 20%, rgba(56, 132, 255, 0.55), transparent 55%),
    radial-gradient(ellipse 70% 60% at 90% 80%, rgba(0, 82, 217, 0.35), transparent 50%),
    linear-gradient(135deg, #0a1a3d 0%, #0d2d6b 42%, #0052d9 100%);
}

.cc-eco-slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M0 60c20-20 40-20 60 0s40 20 60 0' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3C/svg%3E") repeat;
  opacity: 0.5;
}

.cc-eco-slide-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 28px 24px 56px;
  box-sizing: border-box;
}

.cc-eco-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.cc-eco-slide-inner h3 {
  margin: 0 0 10px;
  font-size: clamp(18px, 3.2vw, 24px);
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  max-width: 16em;
}

.cc-eco-slide-inner p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  max-width: 22em;
}

.cc-eco-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

.cc-eco-cta:hover {
  color: #b3d4ff;
}

.cc-eco-cta svg {
  width: 16px;
  height: 16px;
}

.cc-eco-banner-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 14px;
}

.cc-eco-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cc-eco-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.2s, background 0.2s;
}

.cc-eco-dots button.is-on {
  width: 22px;
  background: #fff;
}

.cc-eco-arrows {
  display: flex;
  gap: 8px;
}

.cc-eco-arrows button {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.cc-eco-arrows button:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ── 右侧热门帖 2×2 ── */
.cc-eco-hot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  min-width: 0;
  background: #fff;
}

.cc-eco-hot-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 18px 16px;
  text-decoration: none;
  border-left: 1px solid #f0f2f5;
  border-bottom: 1px solid #f0f2f5;
  transition: background 0.15s;
}

.cc-eco-hot-item:nth-child(odd) {
  border-left: 0;
}

.cc-eco-hot-item:nth-child(n + 3) {
  border-bottom: 0;
}

.cc-eco-hot-item:hover {
  background: #f7f9fc;
}

.cc-eco-hot-ico {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
}

.cc-eco-hot-ico svg {
  width: 18px;
  height: 18px;
}

.cc-eco-hot-ico--1 { background: linear-gradient(135deg, #3370ff, #5b9cff); }
.cc-eco-hot-ico--2 { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.cc-eco-hot-ico--3 { background: linear-gradient(135deg, #06b6d4, #22d3ee); }
.cc-eco-hot-ico--4 { background: linear-gradient(135deg, #f59e0b, #fbbf24); }

.cc-eco-hot-copy {
  min-width: 0;
  flex: 1;
}

.cc-eco-hot-copy strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: #1d2129;
}

.cc-eco-hot-copy p {
  margin: 6px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.55;
  color: #86909c;
}

.cc-eco-hot-empty {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  display: grid;
  place-items: center;
  padding: 24px;
  font-size: 14px;
  color: #86909c;
}

/* 首页 fs-home 内嵌 */
.fs-home .fs-eco-spotlight-root {
  margin-top: 28px;
}

.fs-home .cc-eco-spotlight {
  margin-bottom: 0;
}

.fs-home .cc-eco-head h2 {
  font-size: clamp(20px, 4.2vw, 26px);
}

@media (max-width: 768px) {
  .fs-home .fs-eco-spotlight-root {
    margin-top: 20px;
  }
}

/* ── 移动端 ── */
@media (max-width: 900px) {
  .cc-eco-spotlight {
    margin-bottom: 8px;
  }

  .cc-eco-board {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .cc-eco-banner {
    min-height: 220px;
    max-height: none;
    aspect-ratio: 16 / 10;
  }

  .cc-eco-slide-inner {
    padding: 18px 16px 52px;
  }

  .cc-eco-slide-inner h3 {
    font-size: 17px;
    max-width: none;
  }

  .cc-eco-slide-inner p {
    font-size: 13px;
    margin-bottom: 12px;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .cc-eco-hot {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .cc-eco-hot-item,
  .cc-eco-hot-item:nth-child(odd),
  .cc-eco-hot-item:nth-child(2n),
  .cc-eco-hot-item:nth-child(n + 3) {
    border-left: 0 !important;
    border-bottom: 1px solid #f0f2f5 !important;
  }

  .cc-eco-hot-item:last-child {
    border-bottom: 0 !important;
  }

  .cc-eco-hot-item {
    padding: 14px 14px;
    gap: 10px;
  }

  .cc-eco-hot-copy strong {
    font-size: 14px;
  }

  .cc-eco-hot-copy p {
    font-size: 12px;
    -webkit-line-clamp: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (max-width: 520px) {
  .cc-eco-head {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    min-height: 0;
    padding: 0 4px;
  }

  .cc-eco-head h2 {
    font-size: 18px;
    line-height: 1.35;
  }

  .cc-eco-more {
    position: static;
    transform: none;
    font-size: 13px;
  }

  .cc-eco-banner {
    aspect-ratio: 5 / 3;
    min-height: 180px;
  }

  .fs-home .fs-eco-spotlight-root {
    margin-top: 16px;
    margin-bottom: 8px;
  }
}
