/* 世界杯专题页 — Figma: 小蓝世界杯活动 (QmBeBtbgob8siBQcXiWhWh) node 1:38 */
.wc-topic-page {
  --wc-navy: #04122d;
  --wc-blue: #1676ff;
  --wc-cyan: #24daff;
  --wc-gold: #ffca59;
  --wc-text: #0c1424;
  --wc-muted: #596e87;
  --wc-bg: #ebf7ff;
  --wc-bg-alt: #f6fbff;
}

.wc-topic-page #app-header {
  display: none;
}

.wc-topic-page .wc-topic-main {
  background: var(--wc-bg);
}

/* Hero */
.wc-hero {
  position: relative;
  min-height: 520px;
  background: var(--wc-navy);
  overflow: hidden;
  color: #fff;
}

.wc-hero__bg {
  position: absolute;
  inset: 0;
}

.wc-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wc-hero__shade--left {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 18, 45, 0.92) 0%, rgba(4, 18, 45, 0.64) 42%, rgba(4, 18, 45, 0.16) 72%, rgba(4, 18, 45, 0) 100%);
}

.wc-hero__shade--bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(2, 8, 24, 0) 0%, rgba(2, 8, 24, 0.84) 100%);
}

.wc-hero__topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 0;
}

.wc-hero__back {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  max-width: 40%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wc-hero__brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.wc-hero__watch {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  height: 44px;
  padding: 0 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--wc-navy);
  font-size: 13px;
  font-weight: 700;
}

.wc-hero__body {
  position: relative;
  z-index: 2;
  padding: 32px 16px 72px;
}

.wc-hero__tag {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--wc-cyan);
}

.wc-hero__headline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wc-hero__headline-line {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.wc-hero__headline-line--accent {
  color: var(--wc-cyan);
}

.wc-hero__desc {
  margin: 20px 0 0;
  max-width: 560px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.wc-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.wc-hero__stat {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.wc-hero__stat--wide {
  grid-column: span 2;
}

.wc-hero__stat-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.68);
}

.wc-hero__stat-value {
  display: block;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
}

.wc-hero__stat-value--gold {
  color: var(--wc-gold);
  white-space: nowrap;
}

.wc-hero__stat--wide .wc-hero__stat-value {
  white-space: nowrap;
}

.wc-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
}

.wc-hero__scroll i {
  display: block;
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.55);
}

@media (min-width: 768px) {
  .wc-hero {
    min-height: 680px;
  }

  .wc-hero__topbar {
    padding: 22px 48px 0;
  }

  .wc-hero__body {
    padding: 48px 48px 88px;
  }

  .wc-hero__headline-line {
    font-size: 96px;
  }

  .wc-hero__desc {
    font-size: 24px;
    margin-top: 28px;
  }

  /* 768–991px：容器放不下 900px 四列，保持 2×2 避免文字被挤换行 */
  .wc-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 520px;
    margin-top: 40px;
  }

  .wc-hero__stat {
    min-height: 92px;
    padding: 16px 18px;
    box-sizing: border-box;
  }

  .wc-hero__stat--wide {
    grid-column: span 2;
  }

  .wc-hero__stat-value {
    font-size: 28px;
  }

  .wc-hero__stat--wide .wc-hero__stat-value {
    font-size: 24px;
  }
}

/* ≥992px：按 Figma 固定 150/150/150/270 + 60px 间距 */
@media (min-width: 992px) {
  .wc-hero__stats {
    grid-template-columns: 150px 150px 150px 270px;
    gap: 60px;
    max-width: 900px;
    width: 900px;
  }

  .wc-hero__stat--wide {
    grid-column: auto;
  }

  .wc-hero__stat-value {
    white-space: nowrap;
  }
}

/* Ticker */
.wc-ticker {
  background: var(--wc-navy);
  border-top: 2px solid rgba(36, 218, 255, 0.7);
  overflow: hidden;
  height: 56px;
}

.wc-ticker__track {
  display: flex;
  width: max-content;
  animation: wc-ticker-scroll 28s linear infinite;
}

.wc-ticker__track span {
  flex-shrink: 0;
  padding: 0 38px;
  line-height: 56px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  white-space: pre;
}

@keyframes wc-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (min-width: 768px) {
  .wc-ticker {
    height: 72px;
  }

  .wc-ticker__track span {
    line-height: 72px;
  }
}

/* Section shared */
.wc-section {
  padding: 40px 16px;
}

.wc-section--topics {
  background: var(--wc-bg);
}

.wc-section--news,
.wc-section--videos {
  background: var(--wc-bg-alt);
}

.wc-section-head {
  margin-bottom: 24px;
}

.wc-section-head--row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.wc-section-head__title {
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
  align-items: baseline;
}

.wc-section-head__dark,
.wc-section-head__accent {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.1;
}

.wc-section-head__dark {
  color: var(--wc-navy);
}

.wc-section-head__accent {
  color: var(--wc-blue);
}

.wc-section-head__sub {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--wc-muted);
}

.wc-section-head__title::after {
  content: '';
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--wc-cyan);
}

.wc-more-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  height: 36px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1.5px solid rgba(22, 118, 255, 0.9);
  background: #fff;
  color: var(--wc-blue);
  font-size: 13px;
  font-weight: 700;
}

@media (min-width: 768px) {
  .wc-section {
    padding: 56px 48px;
  }

  .wc-section-head__dark,
  .wc-section-head__accent {
    font-size: 40px;
  }
}

/* Topic cards */
.wc-topics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.wc-topic-card {
  position: relative;
  display: block;
  min-height: 196px;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(22, 118, 255, 0.12);
  box-shadow: 0 10px 24px rgba(0, 28, 70, 0.1);
}

.wc-topic-card--large {
  min-height: 280px;
}

.wc-topic-card__cover {
  position: absolute;
  right: 0;
  top: 0;
  width: 46%;
  height: 100%;
}

.wc-topic-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wc-topic-card__fade {
  position: absolute;
  right: 0;
  top: 0;
  width: 62%;
  height: 100%;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.82) 55%, rgba(255, 255, 255, 0) 100%);
}

.wc-topic-card__body {
  position: relative;
  z-index: 1;
  padding: 24px 28px;
  max-width: 68%;
}

.wc-topic-card__tag {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--wc-blue);
}

.wc-topic-card__title {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.25;
  color: var(--wc-navy);
}

.wc-topic-card__meta {
  margin: 16px 0 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--wc-muted);
}

@media (min-width: 768px) {
  .wc-topics-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
  }

  .wc-topic-card--large {
    grid-row: span 2;
    min-height: 424px;
  }

  .wc-topic-card__title {
    font-size: 32px;
  }
}

/* Article cards */
.wc-news-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.wc-article-card {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(22, 118, 255, 0.1);
  box-shadow: 0 10px 24px rgba(0, 28, 70, 0.1);
}

.wc-article-card__cover {
  position: relative;
  aspect-ratio: 660 / 190;
  overflow: hidden;
}

.wc-article-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wc-article-card__shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background: rgba(0, 20, 55, 0.32);
}

.wc-article-card__body {
  padding: 16px 20px 18px;
}

.wc-article-card__tag {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--wc-blue);
}

.wc-article-card__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--wc-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(2 * 1.35 * 1em);
}

.wc-article-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wc-article-card__meta {
  font-size: 12px;
  color: var(--wc-muted);
}

.wc-article-card__link {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--wc-blue);
}

@media (min-width: 768px) {
  .wc-news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .wc-article-card__title {
    font-size: 21px;
  }
}

/* Video cards */
.wc-video-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wc-video-card {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(22, 118, 255, 0.1);
  box-shadow: 0 10px 22px rgba(0, 28, 70, 0.1);
}

.wc-video-card__cover {
  position: relative;
  aspect-ratio: 318 / 178;
  overflow: hidden;
}

.wc-video-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wc-video-card__scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 18, 45, 0.2);
}

.wc-video-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--wc-blue);
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.wc-video-card__body {
  padding: 12px 14px 14px;
}

.wc-video-card__title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--wc-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(2 * 1.4 * 1em);
}

.wc-video-card__meta {
  margin: 0;
  font-size: 12px;
  color: var(--wc-muted);
}

@media (min-width: 768px) {
  .wc-video-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .wc-video-card__title {
    font-size: 17px;
  }
}

/* 漂浮按钮：沿用 common.css 的 TG / 返回顶部 / 下载 APP，本页额外增加竞猜链接 */
.wc-topic-page .floating-quiz-link {
  position: fixed;
  right: 20px;
  bottom: 168px;
  z-index: 9999999;
  width: var(--size-backtop, 40px);
  height: var(--size-backtop, 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #1676ff 0%, #24daff 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(22, 118, 255, 0.35);
}

.wc-topic-page .floating-quiz-link:hover {
  opacity: 0.92;
}

.wc-topic-page--has-quiz .dx-backtop {
  bottom: 224px;
}

@media (min-width: 768px) {
  .wc-topic-page .floating-quiz-link {
    bottom: 168px;
  }

  .wc-topic-page--has-quiz .dx-backtop {
    bottom: 224px;
  }
}

body.h5-sidebar-open.wc-topic-page .floating-quiz-link {
  visibility: hidden !important;
  pointer-events: none;
}
