/* Base styles */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  color: #333333; /* Text Main */
  background-color: #F5F7FA; /* Background */
  padding-top: var(--header-offset); /* Critical for fixed header */
}

a {
  text-decoration: none;
  color: #E53935; /* Primary color for links */
}

a:hover {
  text-decoration: underline;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 5px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button gradient */
  color: #FFFFFF;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  text-decoration: none;
}

/* Header styles - Desktop First */
:root {
  --header-offset: 122px; /* 68px (header-top) + 52px (main-nav) + 2px buffer */
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  background-color: #FFFFFF; /* White background for the entire fixed header area */
}

.header-top {
  box-sizing: border-box;
  min-height: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #E53935; /* Primary Red */
  width: 100%;
  color: #FFFFFF;
}

.header-container {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px; /* Adjusted for desktop */
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1001; /* Above header elements */
}

.hamburger-menu .bar {
  width: 25px;
  height: 3px;
  background-color: #FFFFFF; /* White bars for hamburger */
  margin: 5px 0;
  transition: 0.4s;
  border-radius: 2px;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #FFFFFF; /* White logo text */
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block; 
}

.logo img {
  display: block;
  max-height: 60px;
  height: auto;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

.desktop-nav-buttons {
  display: flex; /* Visible on desktop */
  gap: 12px;
  align-items: center;
}

.mobile-nav-buttons {
  box-sizing: border-box;
  display: none; /* Hidden on desktop */
  min-height: 48px;
  width: 100%;
  background-color: #FF5A4F; /* Accent Red for mobile buttons bar */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Shadow below buttons */
}

.main-nav {
  box-sizing: border-box;
  min-height: 52px;
  height: 52px;
  display: flex; /* Visible on desktop */
  align-items: center;
  overflow: hidden;
  background-color: #FF5A4F; /* Accent Red */
  width: 100%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Shadow below main nav */
}

.nav-container {
  box-sizing: border-box;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  gap: 25px; /* Spacing between nav links */
}

.nav-link {
  color: #FFFFFF; /* White nav links */
  font-weight: 500;
  padding: 5px 0;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #F5F7FA; /* Lighten on hover */
  text-decoration: none;
}

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

.overlay.active {
  display: block;
  opacity: 1;
}

/* Footer styles */
.site-footer {
  background-color: #222222; /* Dark grey footer background */
  color: #FFFFFF;
  padding: 40px 20px 20px;
  font-size: 14px;
}

.site-footer h3 {
  color: #FF5A4F; /* Accent red for footer headings */
  font-size: 16px;
  margin-bottom: 20px;
}

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

.footer-col {
  word-wrap: break-word; /* Ensure text wraps */
  overflow-wrap: break-wrap;
}

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

.footer-description {
  line-height: 1.6;
  color: #CCCCCC; /* Lighter text for description */
}

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

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

.footer-nav a {
  color: #CCCCCC; /* Lighter text for footer links */
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #FF5A4F; /* Accent red on hover */
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #444444; /* Darker border for separation */
  padding-top: 20px;
  margin-top: 20px;
  text-align: center;
  color: #AAAAAA; /* Even lighter for copyright */
}

.footer-slot-anchor-inner {
  /* This is an empty container for dynamic content, keep it visible */
  min-height: 1px; /* Ensure it takes up minimal space if empty */
}

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

  .header-top {
    min-height: 60px !important;
    height: 60px !important;
    padding: 0 15px; /* Adjusted padding for mobile */
  }

  .header-container {
    width: 100%;
    max-width: none; /* No max-width on mobile */
    padding: 0; /* Remove container padding, handled by header-top */
    justify-content: space-between; /* To push hamburger left, logo center */
    position: relative; /* For absolute logo positioning if needed */
  }

  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
    order: 1; /* Place it first */
    padding: 0; /* Remove extra padding */
    margin-right: auto; /* Push logo to center */
    z-index: 1002; /* Above logo, below menu */
  }

  .hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .logo {
    order: 2; /* Place logo second */
    flex: 1 !important; /* Allow logo to take space and center */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px; /* Smaller logo on mobile */
    position: absolute; /* Absolute positioning for precise centering */
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    max-width: calc(100% - 100px); /* Leave space for hamburger and potential right element */
  }

  .logo img {
    max-height: 56px !important; /* Smaller logo image on mobile */
  }

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

  .mobile-nav-buttons {
    display: flex !important; /* Show mobile buttons on mobile */
    min-height: 48px;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Adjusted padding for mobile */
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .mobile-nav-buttons .btn {
    flex: 1;
    min-width: 0;
    max-width: calc(50% - 5px); /* Ensure two buttons fit with gap */
    box-sizing: border-box;
    padding: 8px 12px;
    font-size: 13px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: 0; 
    left: 0;
    width: 75%; /* Slide-in menu width */
    height: 100%;
    background-color: #222222; /* Dark background for mobile menu */
    flex-direction: column;
    padding-top: var(--header-offset); /* Push content below fixed header + buttons */
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease;
    z-index: 999; /* Below overlay if overlay is active */
    overflow-y: auto; /* Enable scrolling for long menus */
    box-sizing: border-box;
  }

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

  .nav-container {
    flex-direction: column; /* Stack links vertically */
    align-items: flex-start; /* Align links to the left */
    padding: 20px 15px;
    gap: 15px;
    width: 100%; /* Take full width of the slide-in menu */
    max-width: none; /* No max-width on mobile */
    height: auto; /* Height adapts to content */
  }

  .nav-link {
    color: #FFFFFF; /* White links in mobile menu */
    width: 100%; /* Full width for clickable area */
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1); /* Separator */
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .overlay.active {
    z-index: 998; /* Ensure overlay is below menu but above main content */
  }

  body.no-scroll {
    overflow: hidden;
  }

  /* Footer mobile styles */
  .site-footer {
    padding: 30px 15px 15px;
  }

  .footer-top-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 30px;
    margin-bottom: 20px;
  }

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

  .footer-bottom {
    padding-top: 15px;
    margin-top: 15px;
  }

  /* Mobile overflow protection */
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
