

:root {
  --primary: #B91C1C;
  --secondary: #F59E0B;
  --accent: #10B981;
  --bg: #0f0a0a;
  --bg-light: #1a1010;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: var(--bg);
  color: #fff;
  overflow-x: hidden;
}

.font-display {
  font-family: "Ma Shan Zheng", "ZCOOL XiaoWei", "Noto Serif SC", "PingFang SC", serif;
}

.header-scrolled {
  background: rgba(15, 10, 10, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--secondary); transition: color 0.3s; }
.breadcrumb a:hover { color: #fff; }

.page-hero-codes {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: radial-gradient(circle at 30% 30%, rgba(245, 158, 11, 0.18) 0%, transparent 55%),
              linear-gradient(180deg, #1a0a0a 0%, var(--bg) 100%);
  overflow: hidden;
}

.page-hero-codes::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('https://yqcdn.fuhua95.com/game/20240218/c2dce0edcd796851586d0597686f139d.png') center/cover no-repeat;
  opacity: 0.25;
}
.page-hero-codes::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 10, 10, 0.5) 0%, var(--bg) 100%);
}

.hero-codes-content { position: relative; z-index: 10; }

.hero-codes-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: white;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 40px rgba(245,158,11,0.35);
  margin-bottom: 0.75rem;
}

.hero-codes-desc {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: rgba(255,255,255,0.75);
  max-width: 700px;
  line-height: 1.7;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 900;
  color: white;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  border-radius: 2px;
}
.section-title.center { display: block; text-align: center; }
.section-title.center::after { left: 50%; transform: translateX(-50%); }
.section-subtitle {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.1rem;
  margin-top: 1.25rem;
}

.code-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.code-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
  border-color: rgba(245, 158, 11, 0.35);
}

.code-card-inner {
  padding: 1.75rem;
  text-align: center;
}

.code-label {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  background: rgba(185, 28, 28, 0.2);
  border: 1px solid rgba(185, 28, 28, 0.4);
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.code-box {
  font-family: "Courier New", monospace;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: #fff;
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(0,0,0,0.25);
  border: 2px dashed rgba(245, 158, 11, 0.4);
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.code-reward {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.code-reward strong { color: var(--accent); }

.copy-code {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--primary) 0%, #991b1b 100%);
  color: #fff;
  font-weight: 800;
  border: 1px solid rgba(185, 28, 28, 0.5);
  box-shadow: 0 4px 15px rgba(185, 28, 28, 0.25);
  cursor: pointer;
  transition: all 0.3s;
}

.copy-code:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(185, 28, 28, 0.4);
}

.copy-code.copied {
  background: linear-gradient(135deg, var(--accent) 0%, #059669 100%);
  border-color: rgba(16, 185, 129, 0.5);
}

.contact-service-card {
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.12), rgba(245, 158, 11, 0.08));
  border: 1px solid rgba(185, 28, 28, 0.25);
}

.contact-service-card .service-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(185, 28, 28, 0.2);
  border: 2px solid rgba(185, 28, 28, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--secondary) 0%, #d97706 100%);
  color: #1a0f00;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 900;
  border: 2px solid rgba(245, 158, 11, 0.6);
  box-shadow: 0 8px 0 #92400e, 0 15px 35px rgba(245, 158, 11, 0.35);
  transition: all 0.3s ease;
}
.download-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 0 #92400e, 0 25px 50px rgba(245, 158, 11, 0.45);
}

.download-section {
  background: radial-gradient(circle at 50% 50%, rgba(185, 28, 28, 0.18) 0%, transparent 60%),
              linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
  position: relative;
  overflow: hidden;
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.5rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}
.contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}
.contact-card img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  border-radius: 0.75rem;
  margin: 0 auto 1rem;
  background: white;
  padding: 0.5rem;
}
.contact-card h3 { font-size: 1.1rem; font-weight: 800; color: white; margin-bottom: 0.5rem; }
.contact-card p { color: rgba(255,255,255,0.6); font-size: 0.875rem; }

.footer-link { color: rgba(255,255,255,0.6); transition: color 0.3s ease; }
.footer-link:hover { color: var(--secondary); }

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
  .hero-codes-content { padding-left: 1rem; padding-right: 1rem; }
  .code-box { font-size: 1.35rem; }
}

/* Position-specific image sizing */

header img { height: clamp(2rem, 10vw, 3rem); width: auto; }
.hero-logo { width: min(320px, 80vw); height: auto; margin: 0 auto; }
.feature-card img { width: 100%; height: 220px; object-fit: cover; }
.contact-card img { width: 100%; max-width: 160px; height: auto; margin: 0 auto; }
footer img { height: 2rem; width: auto; }

/* Friendly links block */

.friendly-links.rxxw { padding: 2.5rem 1rem; background: #0f0a0a; border-top: 1px solid rgba(245,158,11,.25); }
.friendly-links.rxxw .friendly-links-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.friendly-links.rxxw h2 { font-family: 'Ma Shan Zheng', cursive; font-size: clamp(1.6rem, 4vw, 2.4rem); color: #fff; margin-bottom: .25rem; }
.friendly-links.rxxw h2 i { color: #F59E0B; margin-right: .5rem; }
.friendly-links.rxxw p { color: rgba(255,255,255,.55); margin-bottom: 1.25rem; }
.friendly-links.rxxw ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .7rem; list-style: none; padding: 0; margin: 0; }
.friendly-links.rxxw li a { display: block; padding: .55rem .75rem; border-radius: .5rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #F59E0B; font-size: .9rem; transition: .2s; }
.friendly-links.rxxw li a:hover { background: rgba(245,158,11,.15); border-color: #F59E0B; color: #fff; transform: translateY(-2px); }
@media (max-width: 375px) { .friendly-links.rxxw ul { grid-template-columns: repeat(2, 1fr); } }

