@import url('base.css');



/* =====================================================
   兑换码页样式
   ===================================================== */

.page-hero {
  position: relative;
  padding: 5rem 0 4rem;
  text-align: center;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 30%, rgba(245, 158, 11, 0.14) 0%, transparent 45%),
    linear-gradient(180deg, #0f172a 0%, #111d36 100%);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 0.8rem;
  background: linear-gradient(135deg, #fff 20%, #fcd34d 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-subtitle {
  color: var(--color-muted);
  max-width: 620px;
  margin: 0 auto;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
}

/* 兑换码主输入区 */
.code-section {
  padding: 2rem 0 4rem;
}

.code-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.code-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
  border-radius: 0 0 4px 4px;
}

.code-input-wrap {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.code-input {
  flex: 1 1 300px;
  min-width: 0;
  max-width: 100%;
  padding: 1rem 1.25rem;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--color-text);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.code-input::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

.code-input:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.18);
}

.code-hint {
  font-size: 0.88rem;
  color: var(--color-muted);
}

.code-hint a {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* 领取步骤 */
.steps-section {
  padding: 3rem 0 5rem;
}

.steps-section .section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.step-card {
  min-width: 0;
}

.step-card {
  position: relative;
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.step-card::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -1.6rem;
  width: 2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--color-secondary), transparent);
  display: none;
}

.step-card:not(:last-child)::after {
  display: block;
}

.step-number {
  width: 44px;
  height: 44px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-secondary), #fbbf24);
  color: #0f172a;
  font-weight: 700;
  font-size: 1.1rem;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* 客服联系区 */
.support-section {
  padding: 3rem 0 5rem;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.support-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
}

.support-info p {
  color: var(--color-muted);
  margin-bottom: 1.25rem;
}

.support-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.support-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.support-list i {
  color: var(--color-secondary);
  width: 20px;
  text-align: center;
}

.qr-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.qr-wall .qr-card {
  min-width: 0;
}

/* 响应式 */
@media (max-width: 768px) {
  .code-card {
    text-align: left;
  }
  .code-input-wrap {
    flex-direction: column;
  }
  .code-input {
    width: 100%;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .step-card::after {
    display: none !important;
  }
  .support-grid {
    grid-template-columns: 1fr;
  }
  .support-info {
    text-align: center;
  }
  .support-list li {
    justify-content: center;
  }
  .qr-wall {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .qr-wall {
    grid-template-columns: 1fr;
  }
}
