:root {
  --header-offset: 122px; /* Desktop: 68px (top bar) + 52px (main nav) + 2px buffer */
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --card-bg: #111111;
  --bg-color: #0A0A0A;
  --text-main-color: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color);
  background-color: var(--bg-color);
  padding-top: var(--header-offset); /* Fixed header offset */
  overflow-x: hidden;
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--bg-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  min-height: 60px;
  display: flex;
  align-items: center;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 30px;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color);
  text-decoration: none;
  flex-shrink: 0;
  padding-right: 20px;
}

/* Hamburger menu - hidden on desktop */
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  font-size: 30px;
  color: var(--text-main-color);
  cursor: pointer;
  padding: 5px;
  line-height: 1;
  z-index: 1001;
}

/* Main Navigation - Desktop default */
.main-nav {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex: 1;
  gap: 25px;
}

.nav-link {
  color: var(--text-main-color);
  text-decoration: none;
  font-size: 16px;
  padding: 8px 0;
  transition: color 0.3s ease, transform 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--secondary-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-link:hover {
  color: var(--secondary-color);
  transform: translateY(-2px);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* Desktop Buttons */
.desktop-nav-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Mobile Buttons - Hidden on desktop */
.mobile-nav-buttons {
  display: none !important;
}

/* General button styles */
.btn {
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main-color);
}

.btn-login,
.btn-register {
  background: var(--button-gradient);
  box-shadow: 0 0 10px var(--glow-color);
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

/* Footer Styles */
.site-footer {
  background-color: var(--card-bg);
  padding: 40px 0 20px 0;
  color: var(--text-main-color);
  font-size: 14px;
}

.footer-main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  text-decoration: none;
  margin-bottom: 15px;
}

.footer-description {
  line-height: 1.6;
  margin-bottom: 15px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-heading {
  font-size: 18px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: var(--text-main-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-slot-anchor-inner {
  margin-top: 15px;
}

.footer-slot-anchor-row {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 30px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-main-color);
}

.copyright-text {
  margin: 0;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  :root {
    --header-offset: 110px; /* Mobile: 60px (top bar) + 48px (main nav) + 2px buffer */
  }

  body {
    padding-top: var(--header-offset);
  }

  /* Prevent content overflow on mobile */
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }

  .header-container {
    padding: 10px 15px;
    width: 100%;
    max-width: none; /* No max-width on mobile */
    justify-content: space-between;
  }

  .hamburger-menu {
    display: block;
    margin-right: 10px;
  }

  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px;
    padding-right: 0;
  }

  /* Main Navigation - Mobile (hidden by default, shown as drawer) */
  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset);
    left: 0;
    width: 280px;
    height: calc(100% - var(--header-offset));
    background-color: var(--card-bg);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 20px 0;
    overflow-y: auto;
    z-index: 999;
    align-items: flex-start;
  }

  .main-nav.active {
    display: flex; /* Show when active */
    transform: translateX(0);
  }

  .nav-link {
    width: 100%;
    padding: 12px 30px;
    border-bottom: 1px solid var(--border-color);
    font-size: 18px;
  }
  .nav-link::after {
    display: none;
  }
  .nav-link:hover {
    transform: none;
  }

  /* Desktop buttons - hidden on mobile */
  .desktop-nav-buttons {
    display: none !important;
  }

  /* Mobile buttons - shown on mobile, next to logo */
  .mobile-nav-buttons {
    display: flex !important;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 10px;
  }

  .btn {
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 6px;
  }

  /* Footer Mobile */
  .footer-main-content {
    grid-template-columns: 1fr;
    padding: 0 15px;
    gap: 20px;
  }

  .footer-slot-anchor-row {
    grid-template-columns: 1fr;
    padding: 0 15px;
    gap: 20px;
  }

  .footer-bottom {
    padding: 15px 15px;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@media (max-width: 768px) {
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }
}
