@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700;900&family=Noto+Serif+SC:wght@500;700;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --dragon-red: #c01525;
  --dragon-crimson: #7c0a15;
  --dragon-deep: #160406;
  --dragon-gold: #ffcf40;
  --dragon-amber: #ff9900;
  --dragon-jade: #00a86b;
  --gold-gradient: linear-gradient(135deg, #ffe259 0%, #ffa751 100%);
  --red-gradient: linear-gradient(135deg, #e52d27 0%, #b31217 100%);
  --text-primary: #fffdf7;
  --text-muted: #d9b8b8;
  --card-bg: rgba(36, 10, 14, 0.85);
  --border-gold: 1px solid rgba(255, 207, 64, 0.35);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--dragon-deep);
  color: var(--text-primary);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(192, 21, 37, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 90% 70%, rgba(255, 153, 0, 0.2) 0%, transparent 45%),
    linear-gradient(180deg, #160406 0%, #200508 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
}

h1, h2, h3, h4, .brand-logo {
  font-family: 'Cinzel Decorative', cursive, serif;
  letter-spacing: 1px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(22, 4, 6, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(255, 207, 64, 0.3);
  padding: 1rem 1.5rem;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.brand-logo {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--dragon-gold);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-shadow: 0 0 15px rgba(255, 207, 64, 0.4);
}

.brand-logo span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.8rem;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  font-size: 1rem;
  color: #ffcccc;
  position: relative;
  padding: 0.3rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--dragon-gold);
  text-shadow: 0 0 10px rgba(255, 207, 64, 0.6);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--dragon-gold);
  box-shadow: 0 0 8px var(--dragon-gold);
}

/* Buttons */
.btn {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.7rem 1.6rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all 0.3s ease;
  border: none;
}

.btn-dragon-gold {
  background: var(--gold-gradient);
  color: #3b0a0e;
  box-shadow: 0 4px 15px rgba(255, 167, 81, 0.4);
}

.btn-dragon-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 207, 64, 0.7);
}

.btn-dragon-red {
  background: var(--red-gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(229, 45, 39, 0.4);
  border: 1px solid rgba(255, 207, 64, 0.4);
}

.btn-dragon-red:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(229, 45, 39, 0.7);
}

.btn-outline-dragon {
  border: 1px solid var(--dragon-gold);
  color: var(--dragon-gold);
  background: transparent;
}

.btn-outline-dragon:hover {
  background: rgba(255, 207, 64, 0.15);
  box-shadow: 0 0 15px rgba(255, 207, 64, 0.3);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.mobile-toggle {
  display: none;
  background: rgba(255, 207, 64, 0.1);
  border: 1px solid rgba(255, 207, 64, 0.4);
  border-radius: 8px;
  color: var(--dragon-gold);
  font-size: 1.35rem;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  transition: all 0.25s ease;
  line-height: 1;
}

.mobile-toggle:hover {
  background: rgba(255, 207, 64, 0.25);
  box-shadow: 0 0 12px rgba(255, 207, 64, 0.4);
}

.nav-mobile-cta {
  display: none;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 3.5rem;
  border: 2px solid rgba(255, 207, 64, 0.3);
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3.5rem;
  max-width: 650px;
}

.hero-badge {
  display: inline-block;
  background: rgba(192, 21, 37, 0.6);
  border: 1px solid var(--dragon-gold);
  color: var(--dragon-gold);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-desc {
  font-size: 1.15rem;
  color: #ffe6e6;
  margin-bottom: 2rem;
}

/* Fortune Lantern Bar */
.fortune-bar {
  background: linear-gradient(90deg, #3d070d, #630c16, #3d070d);
  border: var(--border-gold);
  border-radius: 12px;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3.5rem;
  box-shadow: 0 0 25px rgba(255, 207, 64, 0.15);
}

.jackpot-888 {
  font-family: 'Cinzel Decorative', cursive;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--dragon-gold);
  text-shadow: 0 0 15px rgba(255, 207, 64, 0.8);
  animation: glowRed 2s infinite alternate;
}

@keyframes glowRed {
  0% { transform: scale(1); filter: drop-shadow(0 0 5px #ffcf40); }
  100% { transform: scale(1.03); filter: drop-shadow(0 0 15px #ff9900); }
}

/* Game Card */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.8rem;
  margin-bottom: 3.5rem;
}

.slot-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 207, 64, 0.25);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.slot-card:hover {
  transform: translateY(-6px);
  border-color: var(--dragon-gold);
  box-shadow: 0 10px 30px rgba(255, 207, 64, 0.3);
}

.slot-thumb {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.slot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.slot-card:hover .slot-thumb img {
  transform: scale(1.08);
}

.slot-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--red-gradient);
  border: 1px solid var(--dragon-gold);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.slot-info {
  padding: 1.2rem;
}

.slot-title {
  font-family: 'Cinzel Decorative', cursive;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: #fff;
}

.slot-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
}

/* Lucky Draw Wheel / Cards */
.lucky-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.lucky-card {
  background: linear-gradient(145deg, #2b080c, #4a0c13);
  border: var(--border-gold);
  border-radius: 12px;
  padding: 2.2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Layout Helper Classes */
.page-title {
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  color: #fff;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  gap: 1.5rem;
}

.lucky-draw-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.lucky-draw-card {
  background: rgba(36, 10, 14, 0.85);
  border: var(--border-gold);
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  position: relative;
}

.hongbao-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.about-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.about-pillar-card {
  background: rgba(36, 10, 14, 0.85);
  border: var(--border-gold);
  padding: 2.5rem;
  border-radius: 12px;
}

.action-buttons-wrap {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: #0f0204;
  border-top: 2px solid rgba(255, 207, 64, 0.25);
  padding: 3.5rem 1.5rem 2rem;
  color: var(--text-muted);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: var(--dragon-gold);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a:hover {
  color: var(--dragon-gold);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 207, 64, 0.1);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Responsive Media Queries */
@media (max-width: 950px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 820px) {
  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-desktop-cta {
    display: none !important;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 1rem);
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(18, 3, 5, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 1.2rem 1.5rem 1.6rem;
    border-radius: 0 0 14px 14px;
    border: 1px solid rgba(255, 207, 64, 0.35);
    border-top: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.85);
    gap: 0;
    z-index: 1001;
  }

  .nav-menu.open {
    display: flex;
    animation: fadeInDown 0.25s ease-out forwards;
  }

  @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 0.85rem 0.5rem;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 207, 64, 0.12);
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-link.active {
    color: var(--dragon-gold);
    font-weight: 700;
  }

  .nav-mobile-cta {
    display: block !important;
    margin-top: 1.2rem;
    width: 100%;
  }

  .nav-mobile-cta .btn {
    width: 100%;
    text-align: center;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 0.9rem 1.2rem;
  }

  .hero {
    min-height: auto;
    margin-bottom: 2.5rem;
  }

  .hero-content {
    padding: 2.5rem 1.5rem;
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(1.9rem, 6vw, 2.5rem);
  }

  .hero-desc {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .fortune-bar {
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
    padding: 1.5rem 1.2rem;
  }

  .fortune-bar > div:first-child {
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
  }

  .jackpot-888 {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .section-header .btn {
    width: 100%;
    text-align: center;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 580px) {
  .header {
    padding: 0.75rem 1rem;
  }

  .brand-logo {
    font-size: 1.35rem;
  }

  .container {
    padding: 2rem 1rem;
  }

  .hero-content {
    padding: 2rem 1rem;
  }

  .hero-content .action-buttons-wrap {
    flex-direction: column;
    width: 100%;
  }

  .hero-content .btn {
    width: 100%;
    text-align: center;
  }

  .game-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .lucky-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .lucky-card {
    padding: 1.8rem 1.2rem;
  }

  .lucky-draw-layout {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .lucky-draw-card {
    padding: 1.8rem 1.2rem !important;
  }

  .wheel-container {
    width: min(240px, 68vw);
    height: min(240px, 68vw);
    margin-bottom: 1.5rem;
  }

  .wheel-hub {
    width: 48px;
    height: 48px;
    font-size: 0.9rem;
  }

  .hongbao-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .envelope-box {
    padding: 1.2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: left;
  }

  .envelope-box i {
    font-size: 1.8rem;
  }

  .envelope-box > div {
    margin-top: 0 !important;
    font-size: 1.05rem;
  }

  .about-pillars-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-pillar-card {
    padding: 1.8rem 1.2rem !important;
  }

  .action-buttons-wrap {
    flex-direction: column;
    width: 100%;
  }

  .action-buttons-wrap .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .header {
    padding: 0.65rem 0.8rem;
  }

  .brand-logo {
    font-size: 1.2rem;
  }

  .mobile-toggle {
    padding: 0.35rem 0.55rem;
    font-size: 1.15rem;
  }

  .container {
    padding: 1.5rem 0.75rem;
  }

  .hero-title {
    font-size: 1.65rem;
  }

  .wheel-container {
    width: 190px;
    height: 190px;
  }
}
