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

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding-top: var(--header-offset);
  background-color: var(--bg-color);
  color: var(--text-main);
}

body.no-scroll {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: var(--text-main);
}

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

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 15px 30px; /* Desktop padding (20px-40px range) */
  width: 100%; /* Ensure it takes full width within max-width */
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-main);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
  display: block; /* Ensure visibility */
  padding: 0;
  margin: 0;
}

.main-nav {
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 30px; /* Spacing between nav links */
  list-style: none;
  padding: 0;
  margin: 0;
}

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

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

/* Buttons */
.btn {
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none; /* Remove underline */
  color: #000; /* Contrast with button gradient */
  background: var(--button-gradient);
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn:hover {
  box-shadow: 0 6px 15px var(--glow-color);
  transform: translateY(-2px);
}

.desktop-nav-buttons {
  flex-shrink: 0;
  margin-left: auto;
  display: flex; /* Visible on desktop */
  gap: 10px; /* Spacing between buttons */
}

.mobile-nav-buttons {
  display: none !important; /* Hidden on desktop, important to override other rules */
}

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

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

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

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

.footer-col {
  padding: 10px 0;
}

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 15px;
}

.footer-description {
  line-height: 1.6;
  margin-bottom: 15px;
  word-wrap: break-word; /* Ensure full display */
  overflow-wrap: break-word;
}

.footer-title {
  font-size: 18px;
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-transform: uppercase;
  position: relative;
}

.footer-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
  margin-top: 8px;
}

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

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

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

.footer-bottom {
  text-align: center;
  padding: 20px 30px 0;
  margin-top: 40px;
  border-top: 1px solid var(--border-color); /* Border color */
  color: var(--text-main);
}

/* Dynamic slot anchors - ensure they are visible */
.footer-slot-anchor, .footer-slot-anchor-inner {
  min-height: 1px; /* Smallest possible height */
  width: 100%;
}


/* Mobile Styles */
@media (max-width: 768px) {
  :root {
    --header-offset: 110px; /* Mobile without marquee */
  }

  body {
    padding-top: var(--header-offset);
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }

  .site-header {
    min-height: 50px; /* Adjust for mobile */
  }

  .header-container {
    width: 100%;
    max-width: none; /* Remove max-width on mobile */
    padding: 10px 15px; /* Mobile padding (10px-20px range) */
    position: relative; /* For absolute logo centering if needed */
  }

  .hamburger-menu {
    display: block; /* Visible on mobile */
    z-index: 1001; /* Above logo and buttons */
  }

  /* Logo centering for mobile (Method 1 as preferred) */
  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px; /* Adjust logo size for mobile */
    padding: 0;
    margin: 0;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset); /* Below fixed header */
    left: 0;
    width: 80%; /* Menu width */
    max-width: 300px;
    height: calc(100vh - var(--header-offset)); /* Full height below header */
    background-color: var(--card-bg); /* Menu background */
    z-index: 999; /* Below overlay, above content */
    transform: translateX(-100%); /* Slide out of view */
    transition: transform 0.3s ease-out;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    overflow-y: auto; /* Enable scrolling for long menus */
    align-items: flex-start; /* Align menu items to the left */
    gap: 15px;
  }

  .main-nav.active {
    display: flex; /* Show menu */
    transform: translateX(0); /* Slide into view */
  }

  .main-nav .nav-link {
    font-size: 18px;
    padding: 10px 0;
    width: 100%; /* Full width for clickable area */
  }

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

  .mobile-nav-buttons {
    display: flex !important; /* Visible on mobile */
    flex-shrink: 0;
    gap: 8px; /* Spacing between mobile buttons */
    z-index: 1001; /* Ensure buttons are clickable */
  }

  /* Footer Mobile Styles */
  .footer-content-wrapper {
    grid-template-columns: 1fr; /* Single column on mobile */
    padding: 0 15px;
  }

  .footer-col {
    text-align: center;
  }

  .footer-logo {
    margin-bottom: 10px;
  }

  .footer-title {
    font-size: 16px;
    margin-bottom: 15px;
  }
  
  .footer-title::after {
    margin: 8px auto 0; /* Center underline */
  }

  .footer-nav {
    align-items: center; /* Center footer links */
  }

  .footer-bottom {
    padding: 15px 15px 0;
    margin-top: 30px;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
/* 内容保护（系统追加，请勿删除） */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}
