:root {
  --bg: #090b10;
  --panel: rgba(16, 22, 34, 0.82);
  --panel-strong: rgba(12, 18, 28, 0.96);
  --line: rgba(80, 246, 255, 0.34);
  --cyan: #42e8ff;
  --green: #18f58c;
  --pink: #ff4fd8;
  --text: #f3fbff;
  --muted: #9fb1c7;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 14%, rgba(66, 232, 255, 0.24), transparent 30%),
    radial-gradient(circle at 86% 22%, rgba(255, 79, 216, 0.16), transparent 28%),
    linear-gradient(135deg, #070910 0%, #0b1420 48%, #07100d 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(66, 232, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 232, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 86%);
}

.page-shell {
  width: min(1180px, calc(100% - 36px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 34px 0;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.78fr);
  gap: 28px;
  align-items: stretch;
  padding: clamp(22px, 4vw, 46px);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 32%),
    linear-gradient(145deg, rgba(14, 21, 34, 0.94), rgba(5, 10, 18, 0.92));
  border-radius: 8px;
  box-shadow: var(--shadow), inset 0 0 42px rgba(66, 232, 255, 0.07);
  overflow: hidden;
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero::before {
  width: 220px;
  height: 2px;
  top: 0;
  left: clamp(24px, 5vw, 70px);
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 24px rgba(66, 232, 255, 0.9);
}

.hero::after {
  inset: auto 0 0 auto;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(24, 245, 140, 0.75));
}

.hero-copy,
.qr-panel {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 12px;
  border: 1px solid rgba(66, 232, 255, 0.38);
  color: var(--cyan);
  background: rgba(66, 232, 255, 0.08);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin-top: 0;
}

.hero-title {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin-bottom: 18px;
  line-height: 1;
  letter-spacing: 0;
}

.brand-title {
  width: fit-content;
  padding: 7px 12px 8px;
  border-left: 4px solid var(--green);
  color: var(--green);
  background: linear-gradient(90deg, rgba(24, 245, 140, 0.14), transparent);
  border-radius: 4px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(24, 245, 140, 0.34);
}

.main-title {
  display: block;
  color: var(--text);
  font-size: clamp(40px, 6.2vw, 78px);
  font-weight: 900;
  line-height: 1.08;
  text-wrap: balance;
  text-shadow: 0 0 28px rgba(66, 232, 255, 0.16);
}

.main-title::first-letter {
  color: var(--green);
}

.intro {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.75;
}

.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.78fr);
  gap: 16px;
}

.info-card {
  min-height: 154px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(145deg, rgba(16, 24, 38, 0.92), rgba(9, 14, 23, 0.82));
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(66, 232, 255, 0.04);
}

.primary-card {
  border-color: rgba(24, 245, 140, 0.38);
}

.card-label,
.panel-kicker {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.group-number {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.group-number strong {
  color: var(--green);
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1;
  font-family: "Segoe UI", Arial, sans-serif;
  text-shadow: 0 0 22px rgba(24, 245, 140, 0.3);
}

.copy-button {
  min-width: 76px;
  min-height: 42px;
  border: 1px solid rgba(66, 232, 255, 0.54);
  color: var(--text);
  background: rgba(66, 232, 255, 0.12);
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.copy-button:hover,
.copy-button:focus-visible {
  border-color: var(--cyan);
  background: rgba(66, 232, 255, 0.2);
  transform: translateY(-1px);
  outline: none;
}

.copy-status {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--cyan);
  font-size: 13px;
}

.condition {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 20px 0 0;
  color: var(--text);
  font-size: clamp(19px, 2.6vw, 28px);
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: normal;
}

.qr-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(66, 232, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(66, 232, 255, 0.12), transparent 24%),
    var(--panel-strong);
  border-radius: 8px;
  box-shadow: inset 0 0 34px rgba(66, 232, 255, 0.06);
}

.qr-header {
  display: flex;
  gap: 12px;
  align-items: center;
}

.signal-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(24, 245, 140, 0.12), 0 0 24px rgba(24, 245, 140, 0.82);
}

.qr-header h2 {
  margin: 3px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

.qr-frame {
  display: grid;
  place-items: center;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(24, 245, 140, 0.35);
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), 0 0 28px rgba(24, 245, 140, 0.12);
}

.qr-frame img {
  display: block;
  width: min(100%, 390px);
  aspect-ratio: 1179 / 1599;
  object-fit: contain;
  border-radius: 4px;
}

.payment-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* 免费进群游戏卡片 */
.gaming-card {
  grid-column: 1 / -1;
  border-color: rgba(255, 79, 216, 0.35);
  background: 
    linear-gradient(135deg, rgba(255, 79, 216, 0.08), transparent 35%),
    linear-gradient(145deg, rgba(18, 16, 32, 0.94), rgba(9, 7, 18, 0.88));
  box-shadow: inset 0 0 0 1px rgba(255, 79, 216, 0.05), 0 8px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.gaming-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
}

.gaming-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.gaming-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--pink);
  background: rgba(255, 79, 216, 0.12);
  border: 1px solid rgba(255, 79, 216, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-shadow: 0 0 8px rgba(255, 79, 216, 0.5);
}

.gaming-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.gaming-info {
  flex: 1;
  min-width: 260px;
}

.challenge-title {
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 6px 0;
}

.challenge-title strong {
  color: var(--pink);
  font-size: 1.15em;
  text-shadow: 0 0 15px rgba(255, 79, 216, 0.5);
}

.challenge-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.challenge-desc strong {
  color: var(--cyan);
}

.game-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--pink) 0%, #e044bd 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(255, 79, 216, 0.3);
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.game-button:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(255, 79, 216, 0.45);
  background: linear-gradient(135deg, #ff63dd 0%, #e852c7 100%);
}

.game-button:active {
  transform: translateY(0);
}

.icon-arrow {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.5;
  transition: transform 150ms ease;
}

.game-button:hover .icon-arrow {
  transform: translateX(3px);
}

@media (max-width: 900px) {
  .page-shell {
    width: min(100% - 24px, 680px);
    align-items: start;
    padding: 18px 0;
  }

  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero {
    padding: 18px;
  }

  .hero-title {
    gap: 10px;
  }

  .brand-title {
    font-size: 22px;
  }

  .main-title {
    font-size: clamp(36px, 12vw, 52px);
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-card {
    min-height: auto;
  }

  .group-number {
    align-items: flex-start;
    flex-direction: column;
  }

  .copy-button {
    width: 100%;
  }

  .qr-frame {
    padding: 8px;
  }

  .gaming-content {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .gaming-info {
    min-width: 0;
  }

  .game-button {
    width: 100%;
    justify-content: center;
  }
}
