/* Base styles */
html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  color: #1F2D3D; /* Text Main */
  line-height: 1.6;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

/* Site Header - Fixed position, solid background, shadow */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  background-color: #2F6BFF; /* Primary color as base for header */
}

/* Header Top Section - Desktop */
.header-top {
  box-sizing: border-box;
  min-height: 68px;
  height: 68px; /* Fixed height */
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #2F6BFF; /* Primary color */
  width: 100%;
}

.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; /* Padding for logo and buttons */
}

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

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

.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);
}

/* Logo Styling */
.logo, .footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
  display: block; /* Ensure it's visible */
}

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

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

/* Mobile Navigation Buttons - Hidden on Desktop */
.mobile-nav-buttons {
  box-sizing: border-box;
  display: none; /* Hidden on desktop by default */
  min-height: 48px; /* Fixed height for mobile button bar */
  width: 100%;
  background-color: #F4F7FB; /* Background color */
  border-bottom: 1px solid #D6E2FF; /* Border color */
}

/* Main Navigation Section - Desktop */
.main-nav {
  box-sizing: border-box;
  min-height: 52px;
  height: 52px; /* Fixed height */
  display: flex; /* Visible on desktop */
  align-items: center;
  overflow: hidden;
  background-color: #6FA3FF; /* Accent color, different from header-top */
  width: 100%;
}

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

.nav-link {
  color: #FFFFFF;
  padding: 15px 20px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

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

.btn:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
  transform: translateY(-2px);
}

/* Overlay for mobile menu */
.overlay {
  display: none; /* Hidden on desktop */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

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

.site-footer a {
  color: #2F6BFF; /* Primary color for links */
}

.site-footer a:hover {
  text-decoration: underline;
}

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

.footer-col h3 {
  color: #000000; /* Custom Color_1776249996415 */
  font-size: 18px;
  margin-bottom: 20px;
}

.footer-about .footer-logo {
  font-size: 22px;
  margin-bottom: 15px;
  display: inline-block;
  color: #2F6BFF; /* Primary color */
}

.footer-description {
  margin-bottom: 15px;
  color: #1F2D3D; /* Text Main */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

.footer-nav a {
  color: #1F2D3D; /* Text Main */
  transition: color 0.3s ease;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-top: 20px;
  color: #1F2D3D; /* Text Main */
}

.footer-bottom p {
  margin: 0;
}

/* Footer Slot Anchor Inner - Keep visible */
.footer-slot-anchor-inner {
  min-height: 1px; /* Ensure visibility for injection */
  display: block;
}

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

  /* Header Top Section - Mobile */
  .header-top {
    min-height: 60px;
    height: 60px; /* Fixed height */
  }

  .header-container {
    padding: 0 15px; /* Smaller padding for mobile */
    justify-content: space-between; /* Hamburger left, logo center, space right */
    position: relative; /* For logo absolute positioning */
    max-width: none; /* Occupy full width */
  }

  /* Hamburger Menu - Visible on Mobile */
  .hamburger-menu {
    display: flex; /* Visible on mobile */
    order: 1; /* Left side */
    margin-right: auto; /* Push logo to center */
  }

  /* Logo Centering - Mobile (Method 2: Absolute Positioning) */
  .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); /* Account for hamburger and potential right-side elements */
    order: 2; /* Center */
    color: #FFFFFF; /* Ensure text logo is white */
  }

  .logo img {
    max-height: 56px !important; /* Max height for mobile logo */
    max-width: 100%;
  }

  /* Desktop Navigation Buttons - Hidden on Mobile */
  .desktop-nav-buttons {
    display: none !important; /* Hidden on mobile */
  }

  /* Mobile Navigation Buttons - Visible on Mobile */
  .mobile-nav-buttons {
    display: flex !important; /* Visible on mobile */
    min-height: 48px;
    align-items: center;
    justify-content: center; /* Center buttons horizontally */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Padding for buttons */
    overflow: hidden; /* Prevent overflow */
    gap: 10px;
    flex-wrap: nowrap; /* Prevent buttons from wrapping */
  }

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

  /* Main Navigation Section - Mobile (Hidden by default, shown with JS) */
  .main-nav {
    min-height: 48px;
    height: auto; /* Auto height for content */
    display: none; /* Hidden by default */
    position: fixed; /* Fixed position for off-canvas menu */
    top: var(--header-offset); /* Position below header */
    left: 0;
    width: 80%; /* Menu width */
    max-width: 300px; /* Max width for menu */
    height: calc(100% - var(--header-offset)); /* Full height below header */
    background-color: #FFFFFF; /* Card BG */
    transform: translateX(-100%); /* Off-canvas to the left */
    transition: transform 0.3s ease-in-out;
    flex-direction: column; /* Vertical on mobile */
    align-items: flex-start;
    padding: 20px 0;
    overflow-y: auto; /* Scrollable if content is long */
    z-index: 1001;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  }

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

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0; /* Remove horizontal padding */
    width: 100%; /* Occupy full width of menu */
    max-width: none;
  }

  .nav-link {
    width: 100%;
    padding: 12px 20px;
    color: #1F2D3D; /* Text Main for menu links */
    text-align: left;
    background-color: transparent;
  }

  .nav-link:hover, .nav-link.active {
    background-color: #F4F7FB; /* Background color for hover */
  }

  /* Overlay for mobile menu */
  .overlay.active {
    display: block; /* Show when active */
  }

  /* Footer Styling - Mobile */
  .site-footer {
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .footer-col h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .footer-about .footer-logo {
    font-size: 20px;
    margin-bottom: 10px;
  }

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

  .footer-bottom {
    padding-top: 15px;
    font-size: 12px;
  }

  /* Mobile content overflow prevention */
  .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;
}
