: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 */
  line-height: 1.5;
}

body.no-scroll {
  overflow: hidden;
}

/* Base styles for header */
.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.2);
  background-color: #F4F7FB; /* A neutral background for the fixed header container */
}

/* Header Top Area */
.header-top {
  box-sizing: border-box;
  min-height: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  background-color: #1F4E8D; /* Darker blue */
  width: 100%;
  overflow: hidden;
  padding: 0 20px; /* Padding for the entire header-top area */
}

.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: 28px;
  font-weight: bold;
  color: #FFFFFF; /* White for contrast on dark blue */
  text-decoration: none;
  display: flex;
  align-items: center;
  height: 100%;
}

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

.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;
  text-decoration: none;
  color: #FFFFFF;
  font-weight: bold;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Main Navigation Area */
.main-nav {
  box-sizing: border-box;
  min-height: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  background-color: #4A8BFF; /* Lighter blue */
  width: 100%;
  overflow: hidden;
  padding: 0 20px; /* Padding for the entire main-nav area */
}

.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;
  gap: 25px;
}

.nav-link {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
  white-space: nowrap;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link:hover,
.nav-link.active {
  color: #D6E2FF; /* A lighter shade of blue from border color for hover */
}

/* Mobile specific elements - hidden by default on desktop */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  cursor: pointer;
  z-index: 1002;
  position: relative;
  margin-right: 15px; /* Space between hamburger and logo/container */
}

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

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

.mobile-nav-buttons {
  box-sizing: border-box;
  display: none; /* Hidden on desktop, shown on mobile */
  min-height: 48px;
  background-color: #F4F7FB; /* Background color for mobile buttons */
  width: 100%;
  overflow: hidden;
}

.mobile-overlay {
  display: none; /* Hidden on desktop, shown on mobile when menu is active */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  transition: opacity 0.3s ease;
}

/* Footer Styles */
.site-footer {
  background-color: #F4F7FB; /* Background */
  color: #1F2D3D; /* Text Main */
  padding: 40px 20px 20px;
  font-size: 14px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 30px;
  border-bottom: 1px solid #D6E2FF; /* Border */
}

.footer-col h3 {
  font-size: 18px;
  color: #2F6BFF; /* Primary */
  margin-bottom: 15px;
}

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF; /* Primary */
  text-decoration: none;
  display: block;
  margin-bottom: 15px;
}

.footer-description {
  line-height: 1.6;
  color: #000000; /* Custom Color_1776249996415 */
  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: #000000; /* Custom Color_1776249996415 */
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #2F6BFF; /* Primary */
}

.footer-dynamic-col {
  /* This column is specifically for dynamic injection, no static content */
}

.footer-bottom {
  max-width: 1200px;
  margin: 20px auto 0;
  text-align: center;
  padding-top: 15px;
  color: #000000; /* Custom Color_1776249996415 */
}

.footer-bottom p {
  margin: 0;
}

/* Slot anchor inner containers - ensure they don't hide content */
.footer-slot-anchor-inner {
  min-height: 1px; /* Ensure it takes up space if empty */
}

/* Mobile Styles */
@media (max-width: 768px) {
  :root { --header-offset: 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%;
  }

  /* Mobile Header Top */
  .site-header {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  .header-top {
    min-height: 60px !important;
    height: 60px !important;
    padding: 0 15px; /* Apply padding directly to header-top for mobile */
    justify-content: flex-start; /* Start elements from left */
    position: relative; /* For absolute positioning of logo */
  }

  .header-container {
    width: auto; /* Allow content to dictate width */
    max-width: none;
    padding: 0;
    margin: 0;
    height: 100%;
    display: block; /* Override flex for header-container on mobile */
    flex-grow: 1; /* Allow container to take remaining space */
  }

  .hamburger-menu {
    display: flex; /* Show hamburger on mobile */
    margin-right: 0; /* No right margin for hamburger */
  }

  .logo {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: calc(100% - 100px); /* Leave space for hamburger and potential right element */
    font-size: 24px; /* Smaller logo text for mobile */
  }
  
  .logo img {
    max-height: 56px !important; /* Smaller logo image for mobile */
  }

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

  /* Mobile Nav Buttons */
  .mobile-nav-buttons {
    display: flex !important; /* Show mobile buttons */
    min-height: 48px;
    align-items: center;
    justify-content: center;
    width: 100%; max-width: 100%;
    box-sizing: border-box;
    padding-left: 15px; padding-right: 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    background-color: #FFFFFF; /* White background for mobile buttons */
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }

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

  /* Mobile Main Navigation (Hamburger Menu Content) */
  .main-nav {
    min-height: 48px !important;
    height: auto !important; /* Allow content to dictate height */
    max-height: calc(100vh - var(--header-offset) - 48px); /* Adjust max-height for mobile buttons */
    display: none; /* Hidden by default */
    transform: translateX(-100%); /* Slide out from left */
    position: fixed;
    top: var(--header-offset);
    left: 0;
    bottom: 0;
    width: 80%; /* Adjust width as needed */
    max-width: 300px; /* Max width for side menu */
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background-color: #FFFFFF; /* White background for mobile menu */
    z-index: 1001;
    overflow-y: auto;
    transition: transform 0.3s ease;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    padding: 20px 0; /* Padding inside the mobile menu */
  }

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

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px; /* Padding for mobile menu items */
    gap: 15px;
    width: 100%;
    height: auto;
    max-width: none; /* No max-width */
  }

  .nav-link {
    width: 100%;
    font-size: 16px;
    color: #1F2D3D; /* Text Main for mobile menu links */
    padding: 8px 0;
  }

  .nav-link::after {
    background-color: #2F6BFF; /* Primary color for mobile link underline */
  }

  /* Mobile Overlay */
  .mobile-overlay.active {
    display: block;
  }

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

  .footer-top-grid {
    grid-template-columns: 1fr; /* Single column layout for mobile */
    gap: 25px;
    padding-bottom: 25px;
  }

  .footer-col h3 {
    margin-bottom: 10px;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
