body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
  line-height: 1.6;
  padding-top: var(--header-offset); /* Important for fixed header */
  overflow-x: hidden; /* Mobile overflow protection */
}

a {
  text-decoration: none;
  color: #2F6BFF; /* Primary */
}

/* Header Variables & Base */
:root {
  --header-offset: 122px; /* Desktop: 68px (header-top) + 52px (main-nav) */
  --primary-color: #2F6BFF;
  --accent-color: #6FA3FF;
  --text-main-color: #1F2D3D;
  --bg-color: #F4F7FB;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

/* Header Top */
.header-top {
  background-color: var(--text-main-color); /* Dark background for header top */
  min-height: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
}

.header-top .header-container {
  justify-content: space-between;
}

.logo {
  color: #FFFFFF; /* White text on dark background */
  font-size: 28px;
  font-weight: bold;
  text-transform: uppercase;
  display: block; /* Ensure it's block for centering/sizing */
}

/* Image logo sizing (if applicable, but we have text logo) */
.logo img {
  display: block;
  max-height: 60px;
  height: auto;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

/* Desktop Nav Buttons */
.desktop-nav-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Main Navigation */
.main-nav {
  background-color: var(--primary-color); /* Primary color for main nav */
  min-height: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
}

.main-nav .nav-container {
  justify-content: center;
  gap: 30px; /* Space between nav links */
}

.nav-link {
  color: #FFFFFF;
  font-weight: 600;
  padding: 5px 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  opacity: 0.8;
}

/* Hamburger Menu (hidden on desktop) */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001; /* Above header */
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-menu span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #FFFFFF;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

/* Hamburger active state */
.hamburger-menu.active span:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}
.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

/* Mobile Nav Buttons (hidden on desktop) */
.mobile-nav-buttons {
  box-sizing: border-box;
  display: none; /* Hidden on desktop, will be flex on mobile */
  min-height: 48px;
  background-color: var(--bg-color); /* Light background for mobile buttons */
  width: 100%;
  padding: 0 15px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Buttons general style */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  color: #FFFFFF;
  background: var(--button-gradient);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4); /* Glow effect from primary color */
}

/* Overlay (hidden by default) */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 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 */
.site-footer {
  background-color: var(--text-main-color); /* Dark background for footer */
  color: #FFFFFF;
  padding: 40px 20px 20px;
  font-size: 14px;
  box-sizing: border-box;
}

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

.footer-col h3 {
  color: var(--accent-color); /* Accent color for footer headings */
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.footer-description {
  margin-bottom: 15px;
  color: #D0D0D0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

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

.footer-nav a {
  color: #D0D0D0;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--accent-color);
}

.footer-slot-anchor-inner {
  min-height: 1px; /* Ensure slot is visible for layout */
}

.footer-bottom-nav {
  max-width: 1200px;
  margin: 0 auto 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.footer-bottom-nav .footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px 30px;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #D0D0D0;
}

.footer-bottom p {
  margin: 0;
}

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

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

  /* Mobile Overflow Protection for content */
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }

  .header-top {
    min-height: 60px !important;
    height: 60px !important;
  }

  .header-container {
    padding: 0 15px;
    max-width: none;
    width: 100%;
    position: relative; /* For absolute positioning of hamburger and logo */
    justify-content: flex-start; /* Reset flex alignment */
  }

  .hamburger-menu {
    display: flex;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
  }

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

  /* Mobile Logo Centering (Method 2: Absolute positioning for robust centering) */
  .logo {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    max-width: calc(100% - 100px); /* Ensure space for hamburger and potential right element */
    width: auto;
    color: #FFFFFF; /* Ensure color is white on dark header */
  }
  .logo img {
    max-height: 56px !important;
    max-width: 100%;
  }

  /* Mobile Nav Buttons (visible on mobile) */
  .mobile-nav-buttons {
    display: flex !important;
    min-height: 48px;
    height: 48px; /* Fixed height for consistent offset */
    background-color: var(--bg-color);
    width: 100%; max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: center;
  }
  .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;
  }

  /* Main Nav (mobile menu - hidden by default, slides in) */
  .main-nav {
    position: fixed;
    top: var(--header-offset); /* Below fixed header and mobile buttons */
    left: 0;
    width: 280px; /* Width of the mobile menu */
    height: calc(100% - var(--header-offset)); /* Full height below header */
    background-color: var(--primary-color);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 20px;
    transform: translateX(-100%); /* Hidden by default */
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    display: none; /* Hidden by default */
    overflow-y: auto; /* Enable scrolling for long menus */
  }

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

  .main-nav .nav-container {
    flex-direction: column;
    padding: 0;
    gap: 0;
    justify-content: flex-start;
    height: auto;
    width: 100%;
    max-width: none;
  }

  .main-nav .nav-link {
    width: 100%;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: normal;
    text-align: left;
  }

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

  /* Overlay active state for mobile */
  .overlay.active {
    display: block;
    opacity: 1;
  }

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

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

  .footer-bottom-nav .footer-nav {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .footer-bottom {
    padding-top: 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;
  }
}
/* 内容保护（系统追加，请勿删除） */
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;
}
