

:root {
  --primary: #4338CA;
  --secondary: #06B6D4;
  --accent: #FBBF24;
  --dark: #09090b;
  --darker: #030304;
  --light: #f8fafc;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background-color: var(--dark);
  color: var(--light);
  overflow-x: hidden;
}

.header-scrolled {
  background: rgba(9, 9, 11, 0.96) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(67, 56, 202, 0.25);
}

.page-banner {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, rgba(67, 56, 202, 0.25) 0%, transparent 55%),
              linear-gradient(180deg, var(--darker) 0%, var(--dark) 100%);
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('https://yqcdn.fuhua95.com/game/20240320/7b93aaea324425a605abe90acd697beb.jpg') center/cover no-repeat;
  opacity: 0.16;
}

.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(9, 9, 11, 0.75) 0%, var(--dark) 100%);
}

.banner-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding-top: 80px;
}

.banner-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: white;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0 40px rgba(67, 56, 202, 0.35);
  margin-bottom: 1rem;
}

.banner-title span {
  color: var(--accent);
}

.banner-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.codes-section {
  background: linear-gradient(180deg, var(--dark) 0%, #0c0c10 100%);
}

.code-input-wrap {
  max-width: 640px;
  margin: 0 auto 3rem;
  position: relative;
}

.code-input {
  width: 100%;
  padding: 1.25rem 1.5rem;
  padding-right: 130px;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(67, 56, 202, 0.35);
  color: white;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  outline: none;
  transition: all 0.3s ease;
}

.code-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
}

.code-input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.code-copy-main {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--primary), rgba(6, 182, 212, 0.8));
  border: none;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.code-copy-main:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 8px 25px rgba(67, 56, 202, 0.4);
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.code-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.code-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--secondary));
}

.code-card:hover {
  transform: translateY(-5px);
  border-color: rgba(67, 56, 202, 0.3);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.code-name {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}

.code-rewards {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.copy-code {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(67, 56, 202, 0.18);
  border: 1px solid rgba(67, 56, 202, 0.4);
  color: var(--secondary);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.copy-code:hover {
  background: rgba(67, 56, 202, 0.3);
  color: white;
}

.copy-code.copied {
  background: rgba(6, 182, 212, 0.25);
  border-color: var(--secondary);
  color: var(--secondary);
}

.how-to-section {
  background: linear-gradient(180deg, #0c0c10 0%, var(--dark) 100%);
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
}

.step-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.35rem;
}

.step-content p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
  line-height: 1.7;
}

.contact-section {
  background: linear-gradient(180deg, var(--dark) 0%, var(--darker) 100%);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(67, 56, 202, 0.1);
  border-color: rgba(67, 56, 202, 0.2);
}

.contact-item i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

.footer-link {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .banner-content {
    padding-top: 100px;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .code-input {
    padding-right: 1.25rem;
    padding-bottom: 4rem;
  }

  .code-copy-main {
    right: 50%;
    top: auto;
    bottom: 8px;
    transform: translateX(50%);
    width: calc(100% - 16px);
  }

  .code-copy-main:hover {
    transform: translateX(50%) scale(1.02);
  }

  .code-grid {
    grid-template-columns: 1fr;
  }
}

/* Position-specific image sizing */

header img { height: clamp(2rem, 10vw, 3rem); width: auto; }
.hero-logo { width: min(340px, 75vw); height: auto; }
.feature-card img { width: 100%; height: 220px; object-fit: cover; }
.showcase-image img { width: 100%; height: auto; border-radius: .75rem; }
.contact-card img { width: 100%; max-width: 160px; height: auto; margin: 0 auto; }
footer img { height: 2rem; width: auto; }

/* Friendly links block */

.friendly-links.zyzr { padding: 2.5rem 1rem; background: #09090b; border-top: 1px solid rgba(67,56,202,.35); }
.friendly-links.zyzr .friendly-links-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.friendly-links.zyzr h2 { font-family: 'Ma Shan Zheng', cursive; font-size: clamp(1.6rem, 4vw, 2.4rem); color: #fff; margin-bottom: .25rem; }
.friendly-links.zyzr h2 i { color: #FBBF24; margin-right: .5rem; }
.friendly-links.zyzr p { color: rgba(255,255,255,.55); margin-bottom: 1.25rem; }
.friendly-links.zyzr ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .7rem; list-style: none; padding: 0; margin: 0; }
.friendly-links.zyzr li a { display: block; padding: .55rem .75rem; border-radius: .5rem; background: rgba(67,56,202,.12); border: 1px solid rgba(67,56,202,.35); color: #E2E8F0; font-size: .9rem; transition: .2s; }
.friendly-links.zyzr li a:hover { background: rgba(251,191,36,.15); border-color: #FBBF24; color: #FBBF24; transform: translateY(-2px); }
@media (max-width: 375px) { .friendly-links.zyzr ul { grid-template-columns: repeat(2, 1fr); } }

