.competitions-body {
  background:
    radial-gradient(circle at 14% 10%, rgba(56, 189, 248, 0.16), transparent 26%),
    radial-gradient(circle at 86% 12%, rgba(99, 102, 241, 0.14), transparent 24%),
    radial-gradient(circle at 50% 92%, rgba(34, 197, 94, 0.08), transparent 26%),
    linear-gradient(160deg, #08101d 0%, #0b1220 42%, #111a2e 100%);
}

.hero--competitions {
  align-items: center;
}

.hero__tools--competitions {
  max-width: 460px;
  align-items: stretch;
}

.hero__tools--competitions .result-count,
.hero__tools--competitions .software-link,
.hero__tools--competitions .session-link {
  justify-content: center;
}

.page-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.82);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.competition-main {
  margin-top: 24px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.filter-btn {
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.82);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.filter-btn:hover,
.filter-btn.is-active {
  border-color: rgba(212, 106, 46, 0.18);
  background: linear-gradient(135deg, rgba(240, 141, 86, 0.14), rgba(240, 180, 106, 0.12));
  color: var(--accent);
}

.competition-sections {
  display: grid;
  gap: 26px;
  margin-top: 24px;
}

.competition-section {
  display: grid;
  gap: 16px;
}

.competition-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.competition-section__head h2 {
  margin: 0;
  font-family: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(24px, 3vw, 36px);
}

.competition-section__count {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.82);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.competition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.competition-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.28);
}

.competition-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #38bdf8, #2563eb);
}

.competition-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -34px;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 141, 86, 0.14), transparent 68%);
  pointer-events: none;
}

.competition-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
}

.chip--section {
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.82);
  color: var(--muted);
}

.chip--kechuang {
  background: rgba(56, 189, 248, 0.14);
  color: var(--accent);
}

.chip--white {
  background: rgba(99, 102, 241, 0.16);
  color: #c7d2fe;
}

.competition-card h3 {
  margin: 0;
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.28;
}

.competition-card__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fact {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.72);
}

.fact--wide {
  grid-column: 1 / -1;
}

.fact__label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.fact__value {
  margin: 0;
  line-height: 1.65;
}

.competition-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.competition-link,
.competition-link--muted {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
}

.competition-link {
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.competition-link--muted {
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.82);
  color: var(--muted);
}

@media (max-width: 1080px) {
  .competition-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .competition-card__facts {
    grid-template-columns: 1fr;
  }
}
