:root { --header-offset: 122px; }
body {
  padding-top: var(--header-offset);
  margin: 0;
  font-family: Arial, sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
}
body.no-scroll {
  overflow: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
.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; /* Fallback for transparency */
}

/* Header Top Area */
.header-top {
  box-sizing: border-box;
  min-height: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #2F6BFF; /* Main color */
  width: 100%;
  color: #FFFFFF;
  padding: 0 20px; /* Default desktop padding */
}
.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;
}
.logo {
  font-size: 24px;
  font-weight: bold;
  color: #FFFFFF;
  display: block; /* Ensure it's visible */
}
.logo img {
  display: block;
  max-height: 60px;
  height: auto;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

/* Desktop Navigation Buttons */
.desktop-nav-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 15px;
  font-weight: bold;
  color: #FFFFFF;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Mobile Navigation Buttons (hidden by default on desktop) */
.mobile-nav-buttons {
  box-sizing: border-box;
  display: none; /* Hidden on desktop */
  min-height: 48px; /* Placeholder height */
  background-color: #F4F7FB; /* Background color for this section */
  padding: 0 20px; /* Desktop padding, will be overridden for mobile */
}

/* Main Navigation Area */
.main-nav {
  box-sizing: border-box;
  min-height: 52px;
  height: 52px;
  display: flex; /* Desktop default */
  align-items: center;
  overflow: hidden;
  background-color: #6FA3FF; /* Auxiliary color */
  width: 100%;
  color: #FFFFFF;
  padding: 0 20px; /* Default desktop padding */
}
.nav-container {
  box-sizing: border-box;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row; /* Desktop default */
  justify-content: center;
  align-items: center;
  width: 100%;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 25px;
}
.nav-list a {
  color: #FFFFFF;
  font-weight: bold;
  padding: 10px 0;
  transition: color 0.3s ease;
}
.nav-list a:hover {
  color: #D6E2FF; /* Border color for hover effect */
}

/* Hamburger Menu (hidden on desktop) */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 1001; /* Above header */
}
.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #FFFFFF;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}
.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-menu span:nth-child(3) { bottom: 0; }
.hamburger-menu.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* Overlay for 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.5);
  z-index: 998; /* Below mobile menu, above content */
  transition: opacity 0.3s ease;
  opacity: 0;
}
.overlay.active {
  display: block;
  opacity: 1;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #2F6BFF; /* Main color */
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Footer Styles */
.site-footer {
  background-color: #1F2D3D; /* Text Main (dark color for footer) */
  color: #D6E2FF; /* Border color for text */
  padding: 40px 20px 20px;
  font-size: 14px;
}
.site-footer a {
  color: #D6E2FF;
  transition: color 0.3s ease;
}
.site-footer a:hover {
  color: #FFFFFF;
}
.footer-top-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-col h3 {
  color: #FFFFFF;
  font-size: 16px;
  margin-bottom: 15px;
}
.footer-logo {
  font-size: 22px;
  font-weight: bold;
  color: #FFFFFF;
  margin-bottom: 15px;
  display: block;
}
.footer-description {
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav li {
  margin-bottom: 8px;
}
.footer-nav li:last-child {
  margin-bottom: 0;
}
.footer-bottom {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  color: #A5C4FF; /* Glow color */
}
.footer-bottom p {
  margin: 0;
}
.footer-slot-anchor-inner {
  min-height: 1px; /* Ensure visibility for injection */
}


/* Mobile Styles */
@media (max-width: 768px) {
  :root { --header-offset: 110px; } /* 60px (header-top) + 48px (mobile-nav-buttons) = 108px, use 110px */
  body {
    overflow-x: hidden;
  }
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* Header Top Area */
  .header-top {
    min-height: 60px !important;
    height: 60px !important;
    padding: 0 15px; /* Smaller padding for mobile */
    justify-content: space-between; /* To push hamburger and logo apart */
  }
  .header-container {
    width: 100%;
    max-width: none; /* No max-width for mobile container */
    padding: 0; /* Handled by header-top padding */
    position: relative; /* For absolute logo centering */
    justify-content: center; /* Center items initially, then override for logo */
  }
  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
    position: absolute;
    left: 15px; /* Align with header-top padding */
    top: 50%;
    transform: translateY(-50%);
  }
  .logo {
    flex: 1 !important; /* Take remaining space */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    color: #FFFFFF; /* Ensure logo color is white for mobile */
    font-size: 20px; /* Adjust font size for mobile */
    padding: 0 40px; /* Add padding to prevent overlap with hamburger */
  }
  .logo img {
    max-height: 56px !important; /* Smaller logo for mobile */
    max-width: 100%;
  }
  .desktop-nav-buttons {
    display: none !important; /* Hide desktop buttons on mobile */
  }

  /* Mobile Navigation Buttons */
  .mobile-nav-buttons {
    display: flex !important; /* Show mobile buttons */
    min-height: 48px;
    align-items: center;
    justify-content: center; /* Center buttons horizontally */
    width: 100%; max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Smaller padding for mobile */
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap; /* Ensure buttons stay in one row */
    background-color: #F4F7FB; /* Background color for this section */
  }
  .mobile-nav-buttons .btn {
    flex: 1; min-width: 0; /* Distribute space evenly */
    max-width: calc(50% - 5px); /* Max width for two buttons with gap */
    box-sizing: border-box;
    padding: 8px 12px;
    font-size: 13px;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Main Navigation Area (Mobile Menu) */
  .main-nav {
    display: none; /* Hidden by default, shown by JS */
    flex-direction: column; /* Vertical layout for mobile menu */
    position: fixed;
    top: var(--header-offset); /* Position below fixed header and mobile buttons */
    left: 0;
    width: 280px; /* Width of the mobile menu */
    height: calc(100vh - var(--header-offset)); /* Full height below header */
    background-color: #6FA3FF; /* Auxiliary color */
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    transform: translateX(-100%); /* Slide out from left */
    transition: transform 0.3s ease;
    overflow-y: auto; /* Enable scrolling for long menus */
    z-index: 999; /* Below overlay, above content */
    padding: 20px 0; /* Padding inside the menu */
  }
  .main-nav.active {
    display: flex; /* Show menu when active */
    transform: translateX(0); /* Slide in */
  }
  .nav-container {
    max-width: none; /* No max-width for mobile */
    padding: 0; /* Remove horizontal padding, items will be full width */
    flex-direction: column;
    align-items: flex-start; /* Align menu items to the left */
    height: auto; /* Height adjusts to content */
  }
  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 0; /* Remove gap between items */
  }
  .nav-list li {
    width: 100%;
  }
  .nav-list a {
    padding: 12px 20px; /* Bigger touch area for mobile */
    display: block;
    width: 100%;
    box-sizing: border-box;
    color: #FFFFFF;
  }
  .nav-list a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  /* Footer Styles for Mobile */
  .site-footer {
    padding: 30px 15px 15px; /* Adjust padding */
  }
  .footer-top-grid {
    grid-template-columns: 1fr; /* Single column layout for mobile */
    gap: 20px;
    margin-bottom: 20px;
  }
  .footer-col {
    text-align: center;
  }
  .footer-col h3 {
    text-align: center;
  }
  .footer-nav li {
    text-align: center;
  }
  .footer-logo {
    text-align: center;
  }
  .footer-description {
    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;
  }
}
/* 内容保护（系统追加，请勿删除） */
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;
}
