:root {
  --primary: #FF6B35;
  --secondary: #4ECDC4;
  --accent: #FFD93D;
  --dark: #0a0f1a;
  --darker: #05070c;
  --card-bg: rgba(20, 28, 45, 0.85);
}

* { 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: #fff;
  overflow-x: hidden;
}

.header-scrolled {
  background: rgba(10, 15, 26, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.page-hero-codes {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
  background: linear-gradient(135deg, #2a1a0a 0%, #0d1f1c 50%, #1a0f2e 100%);
  overflow: hidden;
}

.page-hero-codes::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://filetx.3633yx.com/250419-48823f33c4be4de285a3b6f15e9993c7.jpeg') center/cover no-repeat;
  opacity: 0.25;
}

.page-hero-codes::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255, 217, 61, 0.25) 0%, transparent 50%),
              radial-gradient(circle at 30% 70%, rgba(255, 107, 53, 0.25) 0%, transparent 45%);
}

.hero-codes-content {
  position: relative;
  z-index: 10;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.hero-codes-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-codes-desc {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 700px;
  line-height: 1.7;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
}

.section-title.center {
  display: block;
  text-align: center;
}

.section-title.center::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.gift-card {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(255, 217, 61, 0.1) 100%);
  border: 2px solid rgba(255, 217, 61, 0.25);
  border-radius: 2rem;
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.gift-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 217, 61, 0.1) 0%, transparent 60%);
  animation: rotate 15s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.gift-icon {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  margin: 0 auto 1.5rem;
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.gift-card h3 {
  position: relative;
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: #fff;
}

.gift-content {
  position: relative;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}

.gift-content strong {
  color: var(--accent);
  font-size: 1.35rem;
}

.copy-code {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--primary) 0%, #ff8c42 100%);
  color: #fff;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
}

.copy-code:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}

.copy-code.copied {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.gift-note {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  padding: 1.5rem;
  margin-top: 2rem;
}

.gift-note h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.gift-note p {
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  font-size: 0.95rem;
}

.guide-steps {
  background: linear-gradient(180deg, var(--dark) 0%, rgba(78, 205, 196, 0.05) 100%);
}

.step-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  transition: all 0.3s ease;
}

.step-item:hover {
  border-color: rgba(78, 205, 196, 0.25);
  transform: translateX(8px);
}

.step-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
}

.step-content h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
}

.step-content p {
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.65;
}

.qq-entry {
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.15) 0%, rgba(255, 107, 53, 0.1) 100%);
  border: 1px solid rgba(78, 205, 196, 0.2);
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
}

.qq-entry h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}

.qq-entry p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.25rem;
}

.qq-number {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.1rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--primary) 0%, #ff8c42 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
}

.download-btn:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 12px 35px rgba(255, 107, 53, 0.55), inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

.footer-link {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .page-hero-codes {
    min-height: 45vh;
    padding: 5rem 0 3rem;
  }

  .gift-card {
    padding: 2rem 1.25rem;
  }

  .step-item {
    flex-direction: column;
    gap: 1rem;
  }
}
