/* ============================================================
   Challenge Banner Component  活动横幅组件（标题 + 描述 + Rules）
   独立组件，可复用于其他活动
   ============================================================ */

.chbn_banner {
  position: relative;
  padding: 10px 12px;
  border-radius: 4px;
  background-color: #ECF2FD;
  text-align: center;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.chbn_rule {
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 1;
  display: inline-block;
  cursor: pointer;
  color: #FFF;
  font-size: 14px;
  font-weight: 500;
  line-height: 25px;
  padding: 0 24px;
  border-radius: 4px;
  background-color: rgba(43, 43, 43, 0.7);
}
.chbn_banner_text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.chbn_banner_title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.3;
}
.chbn_banner_title::first-letter {
  color: #DC2F2F;
}
.chbn_banner_desc {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  max-width: 1100px;
}

/* ============================================================
   Responsive - Tablet (<=1200px)
   ============================================================ */
@media only screen and (max-width: 1200px) {
  .chbn_banner_title {
    font-size: 32px;
  }
  .chbn_banner_desc {
    font-size: 18px;
  }
}

/* ============================================================
   Responsive - Mobile (<=767px)
   ============================================================ */
@media only screen and (max-width: 767px) {
  .chbn_banner {
    padding: 16px 0;
    min-height: auto;
    gap: 12px;
  }
  .chbn_banner_title {
    font-size: 18px;
  }
  .chbn_banner_desc {
    font-size: 14px;
    font-weight: 500;
  }
  .chbn_rule {
    position: relative;
    right: auto;
    top: auto;
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
    height: 20px;
    padding: 0 15px;
    min-width: 70px;
    background-color: rgba(54, 54, 54, 0.7);
    order: 3;
  }
}
