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

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding-top: var(--header-offset); /* Crucial for fixed header */
  background-color: var(--background-color);
  color: var(--text-main-color);
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main-color);
  margin-top: 0;
  margin-bottom: 0.5em;
}

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

a:hover {
  text-decoration: underline;
}

/* --- Header Styles --- */
.site-header {
  background-color: var(--background-color); /* Using background color for header */
  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 is not cut */
  display: flex;
  align-items: center;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 30px; /* Desktop padding */
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

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

.hamburger-menu.active {
  color: var(--primary-color);
}

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

.main-nav {
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 25px; /* Spacing between nav links */
}

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

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: var(--primary-color);
  text-decoration: none;
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(1);
}

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

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

.mobile-nav-buttons {
  display: none !important; /* Hidden on desktop, controlled by media query */
}

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

.btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  text-decoration: none;
}

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

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

.site-footer a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

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

.footer-col h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.footer-logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  display: block;
  margin-bottom: 15px;
}

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

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 10px;
}

.footer-nav li:last-child {
  margin-bottom: 0;
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 20px 30px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 14px;
  box-sizing: border-box;
}

/* Dynamic Slot Anchors - ensure visibility */
.footer-slot-anchor, .footer-slot-anchor-inner {
  min-height: 1px;
}

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

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

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

  .site-header {
    min-height: 55px;
  }

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

  .hamburger-menu {
    display: block;
    order: 1;
  }

  .logo {
    order: 2;
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px;
    padding: 0;
  }
  /* If logo is an img, use this: */
  .logo img {
    display: block !important;
    max-width: 100%;
    height: auto;
    max-height: 40px; /* Adjust as needed */
  }

  .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(--background-color);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
    align-items: flex-start;
    gap: 15px;
    z-index: 999;
    overflow-y: auto;
  }

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

  .main-nav .nav-link {
    font-size: 18px;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
  }
  .main-nav .nav-link:last-child {
    border-bottom: none;
  }
  .main-nav .nav-link::after {
    display: none;
  }

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

  .mobile-nav-buttons {
    display: flex !important;
    order: 3;
    gap: 8px;
  }
  .mobile-nav-buttons .btn {
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 20px;
  }

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

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

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

  .footer-col h3 {
    margin-bottom: 10px;
  }

  .footer-bottom {
    padding: 15px;
    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;
  }
}
