/* ============================================
   competitions.css — 赛事服务页面 · 深色科技风
   ============================================ */

/* --- Page Banner (reuse from cases.css pattern) --- */
.page-banner {
  padding: calc(var(--space-5xl) + 64px) 0 var(--space-4xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
}

.page-banner::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 94, 0.1) 0%, transparent 70%);
  top: -250px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  animation: glow-breathe 8s ease-in-out infinite;
}

.page-banner::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.06) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  pointer-events: none;
}

.page-banner-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-md);
}

.page-banner-label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 12px var(--color-primary);
}

.page-banner-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.2vw, var(--text-6xl));
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  color: var(--text-bright);
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: var(--space-lg);
}

.page-banner-subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* --- Banner 统计条 --- */
.comp-banner-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  max-width: 900px;
  margin: var(--space-2xl) auto 0;
}

.comp-banner-stat {
  text-align: center;
  position: relative;
  padding: 0 var(--space-sm);
}

.comp-banner-stat + .comp-banner-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14%;
  bottom: 14%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.1), transparent);
}

.comp-banner-stat-num {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.comp-banner-stat-num span {
  font-size: 0.6em;
  margin-left: 2px;
  -webkit-text-fill-color: currentColor;
  color: var(--color-primary);
}

.comp-banner-stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 4px;
}

@media (max-width: 720px) {
  .comp-banner-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

/* ============================================
   学生风采 & 荣誉墙 · Spotlight
   ============================================ */
.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.spotlight-card {
  position: relative;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-card);
  background: #05080d;
  transition: all var(--transition-base);
  grid-row: span 1;
  grid-column: span 1;
}

.spotlight-card-wide {
  grid-column: span 2;
  grid-row: span 2;
}

.spotlight-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,107,94,0.35);
  box-shadow: 0 20px 44px rgba(0,0,0,0.28);
}

.spotlight-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}

.spotlight-card:hover img {
  transform: scale(1.06);
}

.spotlight-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px 18px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.82) 55%, rgba(0,0,0,0.92) 100%);
  color: #fff;
}

.spotlight-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 999px;
  background: rgba(255,107,94,0.9);
  color: #fff;
  margin-bottom: 8px;
}

.spotlight-badge-secondary { background: rgba(245,166,35,0.9); }
.spotlight-badge-accent { background: rgba(52,199,89,0.9); }
.spotlight-badge-primary { background: rgba(255,107,94,0.9); }

.spotlight-card figcaption h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 4px;
}

.spotlight-card-wide figcaption h3 {
  font-size: 22px;
  margin-bottom: 6px;
}

.spotlight-card figcaption p {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,0.78);
}

.spotlight-card-wide figcaption p {
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 960px) {
  .spotlight-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }
  .spotlight-card-wide {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 520px) {
  .spotlight-grid {
    grid-template-columns: 1fr;
  }
  .spotlight-card-wide {
    grid-column: span 1;
  }
}

/* ============================================
   赛项速览 · Competition Brief Cards
   ============================================ */
.comp-brief-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: 1100px;
  margin: 0 auto;
}

.comp-brief-card {
  margin: 0;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.comp-brief-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow-sm), var(--shadow-card);
}

.comp-brief-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--border-card);
  display: block;
}

.comp-brief-card figcaption {
  padding: 18px 22px 20px;
}

.comp-brief-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
  background: rgba(255,107,94,0.1);
  color: var(--color-primary);
  border: 1px solid rgba(255,107,94,0.2);
  margin-bottom: 10px;
}

.comp-brief-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 6px;
  line-height: 1.4;
}

.comp-brief-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .comp-brief-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Service Grid --- */
.comp-service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  max-width: 1100px;
  margin: 0 auto;
}

.comp-service-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  border: 1px solid var(--border-card);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.comp-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.comp-service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow-sm), var(--shadow-card);
  background: rgba(255, 107, 94, 0.03);
}

.comp-service-card:hover::before {
  background: linear-gradient(90deg, transparent, rgba(255, 107, 94, 0.3), transparent);
}

.comp-service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(255, 107, 94, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  color: var(--color-primary);
}

.comp-service-icon svg {
  width: 28px;
  height: 28px;
}

.comp-service-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: var(--space-sm);
}

.comp-service-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Competition Grid --- */
.competition-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 1100px;
  margin: 0 auto;
}

.competition-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-2xl);
  border: 1px solid var(--border-card);
  border-left: 4px solid;
  border-image: var(--gradient-primary) 1;
  transition: all var(--transition-base);
  position: relative;
}

.competition-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-glow);
  border-left: 4px solid;
  border-image: var(--gradient-primary) 1;
  box-shadow: var(--shadow-glow-sm), var(--shadow-card);
}

.competition-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

/* --- Status Badge --- */
.comp-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.comp-status-active {
  background: rgba(52, 199, 89, 0.12);
  color: #34c759;
  border: 1px solid rgba(52, 199, 89, 0.25);
}

.comp-status-pending {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.comp-status-ended {
  background: rgba(142, 142, 147, 0.12);
  color: #8e8e93;
  border: 1px solid rgba(142, 142, 147, 0.25);
}

/* --- Level Badge --- */
.comp-level {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #f5a623;
  border: 1px solid rgba(245, 166, 35, 0.3);
  background: rgba(245, 166, 35, 0.08);
}

.competition-card-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: var(--space-sm);
}

.competition-card-time {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.competition-card-time svg {
  flex-shrink: 0;
  color: var(--color-primary);
}

.competition-card-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

/* --- Track Tags --- */
.comp-tracks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-lg);
}

.comp-track-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  background: rgba(255, 107, 94, 0.06);
  border: 1px solid rgba(255, 107, 94, 0.15);
  transition: all var(--transition-base);
}

.comp-track-tag:hover {
  background: rgba(255, 107, 94, 0.12);
  border-color: rgba(255, 107, 94, 0.3);
}

/* --- Competition Meta --- */
.competition-card-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

.comp-role {
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.comp-role strong {
  color: var(--color-primary);
  font-weight: 600;
}

.comp-products {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.6;
}

.comp-products strong {
  color: var(--text-secondary);
  font-weight: 500;
}

/* --- Product Grid --- */
.comp-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  max-width: 1100px;
  margin: 0 auto;
}

.comp-product-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  border: 1px solid var(--border-card);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.comp-product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
}

.comp-product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow-sm), var(--shadow-card);
}

.comp-product-card:hover::before {
  background: linear-gradient(90deg, transparent, rgba(255, 107, 94, 0.3), transparent);
}

.comp-product-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(255, 107, 94, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--color-primary);
}

.comp-product-icon svg {
  width: 26px;
  height: 26px;
}

.comp-product-partner {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-secondary);
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(245, 166, 35, 0.08);
  border: 1px solid rgba(245, 166, 35, 0.2);
  margin-bottom: var(--space-md);
}

.comp-product-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: var(--space-sm);
}

.comp-product-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.comp-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.comp-product-tags span {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-subtle);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .comp-service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-banner {
    padding: calc(var(--space-4xl) + 64px) 0 var(--space-3xl);
  }

  .page-banner-title {
    font-size: var(--text-4xl);
  }

  .comp-service-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .comp-product-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .competition-card {
    padding: var(--space-lg);
  }

  .competition-card-title {
    font-size: var(--text-lg);
  }
}

@media (max-width: 480px) {
  .page-banner-title {
    font-size: var(--text-3xl);
  }

  .competition-card-header {
    flex-wrap: wrap;
  }

  .comp-tracks {
    gap: 6px;
  }
}
