:root {
  --bg-deep: #05080d;
  --bg-card: rgba(14, 18, 25, 0.82);
  --bg-elevated: rgba(20, 26, 36, 0.88);
  --text: #e8edf5;
  --text-muted: #8b96a8;
  --accent: #00e676;
  --accent-dim: #00a85a;
  --gold: #ffc107;
  --danger: #ff5252;
  --border: rgba(255, 255, 255, 0.1);
  --radius: 14px;
  --font-sans: "Noto Sans SC", system-ui, sans-serif;
  --font-display: "Orbitron", var(--font-sans);
  --wc-stadium: url("https://images.unsplash.com/photo-1459865264687-595bdd4a7b99?auto=format&fit=crop&w=1920&q=75");
  --wc-grass: url("https://images.unsplash.com/photo-1431324155629-1a6deb1dec8d?auto=format&fit=crop&w=1600&q=75");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
}

/* 世界杯氛围：看台远景 + 草皮叠层 + 暗角，保证正文对比度 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-color: #030508;
  background-image:
    radial-gradient(ellipse 100% 55% at 50% -5%, rgba(255, 193, 7, 0.14) 0%, transparent 42%),
    radial-gradient(ellipse 70% 45% at 85% 25%, rgba(0, 230, 118, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 35% at 12% 60%, rgba(0, 180, 120, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, rgba(4, 10, 18, 0.82) 0%, rgba(4, 14, 12, 0.78) 38%, rgba(2, 18, 12, 0.88) 72%, rgba(3, 8, 14, 0.94) 100%),
    linear-gradient(165deg, rgba(5, 12, 8, 0.55) 0%, transparent 55%),
    var(--wc-stadium);
  background-size: auto, auto, auto, auto, auto, cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.85;
  background-image:
    linear-gradient(180deg, transparent 0%, rgba(0, 40, 24, 0.25) 55%, rgba(0, 55, 30, 0.35) 100%),
    var(--wc-grass);
  background-size: auto, cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  mix-blend-mode: soft-light;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 35%, #000 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 35%, #000 100%);
}

@supports not (mix-blend-mode: soft-light) {
  body::after {
    mix-blend-mode: normal;
    opacity: 0.4;
  }
}

@media (min-width: 900px) {
  body::before {
    background-attachment: fixed;
  }

  body::after {
    background-attachment: fixed;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    background-attachment: scroll !important;
  }
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: max(0.65rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) 0.55rem max(1rem, env(safe-area-inset-left));
  background: linear-gradient(180deg, rgba(6, 10, 14, 0.88) 0%, rgba(6, 12, 10, 0.78) 100%);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(0, 230, 118, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.site-header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0.65rem 0.75rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  min-width: 0;
}

.logo-mark {
  font-size: 1.25rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.45));
}

.logo-text {
  font-size: clamp(0.88rem, 3.5vw, 1rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-header-cta {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
  min-height: 44px;
}

.nav {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding: 0.2rem 0 0.35rem;
  margin: 0 -0.25rem;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  scrollbar-width: none;
  touch-action: pan-x;
  mask-image: linear-gradient(to right, transparent, #000 0.5rem, #000 calc(100% - 0.5rem), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 0.5rem, #000 calc(100% - 0.5rem), transparent);
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  flex: 0 0 auto;
  scroll-snap-align: start;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 0.7rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.nav a:active {
  background: rgba(0, 230, 118, 0.12);
  border-color: rgba(0, 230, 118, 0.25);
  color: var(--accent);
}

@media (min-width: 768px) {
  .site-header {
    padding: 0.85rem max(1.5rem, env(safe-area-inset-right)) 0.85rem max(1.5rem, env(safe-area-inset-left));
  }

  .site-header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .logo {
    flex: 0 0 auto;
  }

  .logo-text {
    font-size: 1rem;
    overflow: visible;
  }

  .logo-mark {
    font-size: 1.35rem;
  }

  .nav {
    display: flex;
    flex: 1;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 1.5rem;
    overflow: visible;
    margin: 0;
    padding: 0;
    mask-image: none;
    -webkit-mask-image: none;
    scroll-snap-type: none;
  }

  .nav a {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0;
    min-height: unset;
    display: inline;
    background: none;
    border: none;
    border-radius: 0;
  }

  .nav a:active {
    background: none;
    border-color: transparent;
  }

  .btn-header-cta {
    flex: 0 0 auto;
    margin-left: 0;
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    min-height: unset;
  }
}

.nav a:hover {
  color: var(--accent);
}

@media (max-width: 767px) {
  .nav a:hover {
    color: var(--text-muted);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
  color: #021308;
  box-shadow: 0 0 24px rgba(0, 230, 118, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 0 32px rgba(0, 230, 118, 0.5);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: rgba(0, 230, 118, 0.35);
}

.btn-sm {
  padding: 0.5rem 1rem;
  min-height: 40px;
  font-size: 0.8rem;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

main {
  overflow-x: hidden;
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  padding: 2.25rem max(1rem, env(safe-area-inset-left)) 3rem max(1rem, env(safe-area-inset-right));
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 0 0 24px 24px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cdefs%3E%3Cpattern id='p' width='200' height='200' patternUnits='userSpaceOnUse'%3E%3Cpath d='M100 12v176M12 100h176' stroke='%23ffffff' stroke-opacity='0.06' fill='none' stroke-width='1'/%3E%3Ccircle cx='100' cy='100' r='32' stroke='%23ffffff' stroke-opacity='0.055' fill='none'/%3E%3Crect x='8' y='8' width='184' height='184' rx='6' stroke='%23ffffff' stroke-opacity='0.045' fill='none'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23p)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(0, 90, 50, 0.35) 0%, transparent 55%),
    linear-gradient(180deg, rgba(4, 10, 14, 0.15) 0%, rgba(4, 16, 10, 0.45) 100%);
  background-size: 280px 280px, auto, auto;
}

.hero > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .hero {
    padding: 4rem 4vw 5rem;
  }
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: min(120vw, 800px);
  height: 400px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255, 193, 7, 0.1) 0%, transparent 45%),
    radial-gradient(ellipse at center, rgba(0, 230, 118, 0.16) 0%, transparent 68%);
  pointer-events: none;
}

.eyebrow {
  position: relative;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 1rem;
}

.hero h1 {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 6.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.22;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.token-name {
  background: linear-gradient(90deg, #fff 0%, var(--gold) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mint-word {
  background: linear-gradient(90deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  position: relative;
  color: var(--text-muted);
  font-size: clamp(0.92rem, 3.8vw, 1.05rem);
  line-height: 1.7;
  max-width: 36rem;
  margin: 0 auto 1.35rem;
  text-wrap: pretty;
}

.hero-lead strong {
  color: var(--accent);
}

.hero-badges {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding: 0 0.25rem;
}

.pill {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-size: clamp(0.72rem, 2.8vw, 0.8rem);
  font-weight: 600;
  line-height: 1.45;
  max-width: 100%;
  text-align: center;
  background: rgba(20, 26, 36, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.pill-hot {
  border-color: rgba(255, 82, 82, 0.4);
  color: #ffb4b4;
}

.hero-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  max-width: 20rem;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 480px) {
  .hero-cta {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: none;
    width: auto;
  }
}

.section {
  position: relative;
  padding: 2.25rem max(1rem, env(safe-area-inset-left)) 2.5rem max(1rem, env(safe-area-inset-right));
  border-top: 1px solid rgba(0, 230, 118, 0.08);
  overflow: hidden;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 85% 45% at 50% 0%, rgba(255, 193, 7, 0.07) 0%, transparent 55%),
    linear-gradient(180deg, rgba(0, 50, 35, 0.18) 0%, transparent 42%);
  opacity: 0.95;
}

.section > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .section {
    padding: 3.5rem 4vw;
  }
}

.section-head {
  max-width: 640px;
  margin: 0 auto 1.75rem;
  text-align: center;
  padding: 0 0.25rem;
}

@media (min-width: 768px) {
  .section-head {
    margin-bottom: 2.5rem;
  }
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4.5vw, 1.5rem);
  margin: 0 0 0.65rem;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(0.86rem, 3.2vw, 0.95rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.countdown {
  max-width: 560px;
  margin: 0 auto 1.5rem;
  padding: 1.25rem 1rem 1.35rem;
  text-align: center;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(0, 230, 118, 0.1) 0%, rgba(14, 18, 25, 0.75) 100%);
  border: 1px solid rgba(0, 230, 118, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.countdown-caption {
  margin: 0 0 1rem;
  font-size: clamp(0.82rem, 3vw, 0.95rem);
  color: var(--text-muted);
  line-height: 1.5;
}

.countdown-caption strong {
  color: var(--accent);
}

.countdown-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.45rem;
}

@media (min-width: 420px) {
  .countdown-grid {
    gap: 0.75rem;
  }
}

.cd-unit {
  flex: 1;
  max-width: 5.75rem;
  min-width: 0;
  padding: 0.65rem 0.3rem;
  border-radius: 10px;
  background: rgba(6, 10, 14, 0.65);
  border: 1px solid var(--border);
}

.cd-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 5.2vw, 1.8rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.cd-unit-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.countdown-done {
  margin: 0;
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 700;
}

.mint-card {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 700px) {
  .mint-card {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mint-stat {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 230, 118, 0.14);
  border-radius: var(--radius);
  padding: 1.15rem 1rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

@media (min-width: 700px) {
  .mint-stat {
    padding: 1.5rem;
  }
}

.mint-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.mint-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  font-weight: 800;
  color: var(--accent);
}

.mint-value.small {
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--text);
}

.mint-sub {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.status-pulse {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    text-shadow: 0 0 12px rgba(0, 230, 118, 0.4);
  }
  50% {
    text-shadow: 0 0 24px rgba(0, 230, 118, 0.75);
  }
}

.fee-grid {
  max-width: 1180px;
  margin: 0 auto 2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .fee-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .fee-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.fee-pct--sm {
  font-size: 1.75rem;
}

.fee-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.15rem 1rem;
  transition: border-color 0.2s, transform 0.2s;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.18);
}

@media (min-width: 768px) {
  .fee-card {
    padding: 1.5rem;
  }
}

@media (hover: hover) and (pointer: fine) {
  .fee-card:hover {
    border-color: rgba(0, 230, 118, 0.25);
    transform: translateY(-2px);
  }
}

.fee-pct {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.fee-card h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(0.95rem, 3.2vw, 1.05rem);
  line-height: 1.35;
}

.fee-card p {
  margin: 0;
  font-size: clamp(0.82rem, 3vw, 0.88rem);
  color: var(--text-muted);
  line-height: 1.55;
}

.deflation-banner {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.12) 0%, rgba(255, 193, 7, 0.08) 100%);
  border: 1px solid rgba(0, 230, 118, 0.28);
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

@media (min-width: 768px) {
  .deflation-banner {
    padding: 1.75rem 1.5rem;
  }
}

.deflation-banner h3 {
  margin: 0 0 0.65rem;
  font-size: clamp(1rem, 3.5vw, 1.15rem);
  line-height: 1.35;
}

.deflation-banner p {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(0.86rem, 3vw, 0.92rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.contract-box {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 230, 118, 0.12);
  border-radius: var(--radius);
  padding: 1.15rem 1rem;
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.22);
}

@media (min-width: 520px) {
  .contract-box {
    padding: 1.75rem;
  }
}

.contract-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 520px) {
  .contract-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
}

.contract-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.contract-address {
  display: block;
  word-break: break-all;
  overflow-wrap: anywhere;
  font-size: clamp(0.72rem, 2.8vw, 0.85rem);
  line-height: 1.5;
  padding: 0.65rem 0.75rem;
  background: var(--bg-deep);
  border-radius: 8px;
  border: 1px dashed var(--border);
  color: var(--text-muted);
  font-family: ui-monospace, "Cascadia Code", monospace;
}

.contract-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 400px) {
  .contract-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
  }
}

.contract-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.contract-notes {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.contract-notes a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.contract-notes a:hover {
  color: #69f0ae;
}

.contract-notes li + li {
  margin-top: 0.35rem;
}

.community-grid {
  max-width: 900px;
  margin: 0 auto 2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .community-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.community-item {
  background: var(--bg-elevated);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 1.15rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
}

@media (min-width: 768px) {
  .community-item {
    padding: 1.35rem;
  }
}

.community-item strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-size: 0.95rem;
}

.community-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.closing-line {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  font-size: clamp(0.88rem, 3.2vw, 1rem);
  line-height: 1.6;
  color: var(--text-muted);
  padding: 0 0.25rem;
  text-wrap: pretty;
}

.qq-groups {
  max-width: 720px;
  margin: 0 auto 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.qq-banner {
  padding: 1.15rem 1rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(41, 182, 246, 0.16) 0%, rgba(0, 230, 118, 0.1) 100%);
  border: 1px solid rgba(41, 182, 246, 0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

@media (min-width: 520px) {
  .qq-banner {
    padding: 1.5rem 1.35rem;
  }
}

.qq-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 520px) {
  .qq-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
}

.qq-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.qq-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.qq-number {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 5vw, 1.5rem);
  font-weight: 800;
  color: #29b6f6;
  letter-spacing: 0.06em;
  word-break: break-all;
}

.qq-number--alt {
  color: #7c4dff;
}

.qq-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

.qq-banner .btn-primary {
  flex-shrink: 0;
  width: 100%;
  min-height: 46px;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 520px) {
  .qq-banner .btn-primary {
    width: auto;
    white-space: nowrap;
  }
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 1.75rem max(1rem, env(safe-area-inset-left)) max(2.5rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-right));
  text-align: center;
  border-top: 1px solid rgba(0, 230, 118, 0.1);
  background: linear-gradient(180deg, rgba(4, 10, 14, 0.5) 0%, rgba(3, 8, 12, 0.85) 100%);
  color: var(--text-muted);
  font-size: clamp(0.78rem, 2.8vw, 0.85rem);
  line-height: 1.55;
}

.site-footer p {
  margin: 0.25rem 0;
}

.footer-small {
  font-size: 0.75rem;
  opacity: 0.7;
}
