:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --bg-color: #0A0A0A;
  --card-bg-color: #111111;
  --text-main-color: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
  --header-offset: 122px; /* Desktop: 68px (top) + 52px (main) */
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main-color);
  padding-top: var(--header-offset); /* Fixed header offset */
  line-height: 1.6;
}

/* Links reset */
a {
  text-decoration: none;
  color: var(--text-main-color);
}
a:hover {
  color: var(--primary-color);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #333; /* Ensuring contrast on button */
  border: none;
  text-decoration: none; /* No underline for buttons */
}
.btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  color: #333; /* Keep text color consistent on hover */
}

/* Site Header */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--card-bg-color); /* Header background */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Suspended effect */
  z-index: 1000;
  min-height: 60px; /* Minimum height for header */
  display: flex; /* Ensures content is laid out correctly */
  align-items: center;
}

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

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color); /* Jili logo color */
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
  padding: 5px 0;
}
.logo:hover {
  color: var(--secondary-color);
}

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

.main-nav .nav-link {
  font-size: 16px;
  font-weight: 600;
  padding: 10px 0;
  position: relative;
  transition: color 0.3s ease;
}
.main-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}
.main-nav .nav-link:hover::after {
  width: 100%;
}

/* Desktop Navigation Buttons */
.desktop-nav-buttons {
  flex-shrink: 0;
  margin-left: auto; /* Pushes buttons to the right */
  display: flex;
  gap: 10px; /* Spacing between buttons */
}

/* Mobile specific elements (hidden by default on desktop) */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  font-size: 30px;
  color: var(--text-main-color);
  cursor: pointer;
  padding: 5px;
  flex-shrink: 0;
  line-height: 1;
  transition: color 0.3s ease;
}
.hamburger-menu:hover {
  color: var(--primary-color);
}

.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 */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Site Footer */
.site-footer {
  background-color: var(--bg-color); /* Footer background */
  color: var(--text-main-color);
  padding: 40px 20px 20px;
  border-top: 1px solid var(--border-color);
}

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

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

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

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

.footer-description {
  font-size: 14px;
  line-height: 1.8;
  color: #BBB; /* Slightly lighter text for description */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

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

.footer-nav a {
  font-size: 14px;
  color: var(--text-main-color);
  transition: color 0.3s ease;
}
.footer-nav a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  font-size: 13px;
  color: #888;
}

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

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

  .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; /* Smaller min-height for mobile header */
  }

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

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

  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px;
    padding: 0; /* Remove padding for better centering */
  }

  .main-nav {
    display: none; /* Hidden by default */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset); /* Position below fixed header */
    left: 0;
    width: 250px; /* Sidebar width */
    height: calc(100% - var(--header-offset)); /* Full height below header */
    background-color: var(--card-bg-color);
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease;
    align-items: flex-start; /* Align links to the left */
    overflow-y: auto; /* Enable scrolling for long menus */
  }
  .main-nav.active {
    display: flex; /* Show menu when active */
    transform: translateX(0); /* Slide into view */
  }

  .main-nav .nav-link {
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 18px;
  }
  .main-nav .nav-link:last-child {
    border-bottom: none;
  }
  .main-nav .nav-link::after {
    display: none; /* Remove underline animation on mobile */
  }

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

  .mobile-nav-buttons {
    display: flex !important; /* Show mobile buttons */
    gap: 8px;
    flex-shrink: 0;
    z-index: 1001; /* Ensure buttons are above content */
  }
  .mobile-nav-buttons .btn {
    padding: 8px 15px; /* Smaller buttons for mobile */
    font-size: 14px;
  }

  .footer-content-wrapper {
    grid-template-columns: 1fr; /* Single column layout for footer */
    gap: 20px;
    padding-bottom: 20px;
  }
  .footer-col {
    text-align: center;
  }
  .footer-col h3 {
    margin-top: 20px;
  }
  .footer-logo {
    margin: 0 auto 15px; /* Center footer logo */
  }
  .footer-description {
    text-align: center;
  }
  .footer-nav {
    text-align: center;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
