:root {
  --header-offset: 122px; /* Desktop: header-top (68px) + main-nav (52px) + buffer */
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --card-bg: #FFFFFF;
  --bg-color: #F4F7FB;
  --text-main: #1F2D3D;
  --text-dark: #000000; /* Custom Color_1776249996415 */
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
  --header-top-bg: #1C4BCC; /* Darker primary for header-top */
  --main-nav-bg: #6FA3FF; /* Auxiliary for main-nav */
}

body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding-top: var(--header-offset);
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background-color: transparent; /* Base, specific sections will have colors */
  box-sizing: border-box;
}

.header-top {
  box-sizing: border-box;
  min-height: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--header-top-bg);
  width: 100%;
  padding: 0 20px; /* Padding for hamburger/logo/buttons if no container */
  justify-content: space-between; /* Distribute items for mobile, but desktop will use .desktop-nav-buttons */
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--card-bg);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  white-space: nowrap;
  flex-grow: 0; /* Prevent logo from expanding on desktop */
}
.logo img {
  display: block;
  max-height: 60px;
  height: auto;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

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

.mobile-nav-buttons {
  box-sizing: border-box;
  display: none; /* Hidden by default, shown on mobile */
  min-height: 48px;
  background-color: var(--bg-color);
  width: 100%;
  padding: 0 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.hamburger-menu {
  display: none; /* Hidden by default, shown on mobile */
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
  flex-shrink: 0;
}
.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--card-bg);
  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); }

.main-nav {
  box-sizing: border-box;
  min-height: 52px;
  height: 52px;
  display: flex; /* Desktop default */
  align-items: center;
  overflow: hidden;
  background-color: var(--main-nav-bg);
  width: 100%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.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;
  padding: 0 20px;
  width: 100%;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex; /* Desktop default */
  gap: 25px;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-menu li a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: bold;
  padding: 5px 0;
  transition: color 0.3s ease;
  white-space: nowrap;
}
.nav-menu li a:hover {
  color: var(--primary-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  color: var(--card-bg);
  font-weight: bold;
  background: var(--button-gradient);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

/* Footer */
.site-footer {
  background-color: var(--bg-color);
  padding: 40px 20px 20px;
  color: var(--text-main);
  line-height: 1.8;
}

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

.footer-col h3 {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 15px;
  position: relative;
}
.footer-col h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
  margin-top: 5px;
}

.footer-logo {
  font-size: 22px;
  font-weight: bold;
  color: var(--text-dark);
  text-decoration: none;
  display: block;
  margin-bottom: 15px;
}

.footer-description {
  font-size: 14px;
  color: var(--text-main);
  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 li a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}
.footer-nav li a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  margin-top: 30px;
  font-size: 13px;
  color: var(--text-main);
}
.footer-bottom p {
  margin: 0;
}

/* Dynamic Slot Anchors - ensure visibility */
.footer-slot-anchor-inner {
  min-height: 1px;
  width: 100%;
}

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

  .site-header {
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
  }

  .header-top {
    min-height: 60px !important;
    height: 60px !important;
    padding: 0 15px;
    justify-content: space-between;
    position: relative; /* For absolute positioning of logo */
  }

  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
    position: relative;
    z-index: 1001;
    margin-right: 0;
  }

  .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 */
    height: 100%;
    z-index: 1000;
    font-size: 20px;
  }
  .logo img {
    max-height: 56px !important;
  }

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

  .mobile-nav-buttons {
    display: flex !important;
    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;
  }
  .mobile-nav-buttons .btn {
    flex: 1; min-width: 0;
    max-width: calc(50% - 5px);
    box-sizing: border-box;
    padding: 8px 12px;
    font-size: 13px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  }

  .main-nav {
    min-height: 48px !important;
    height: calc(100% - var(--header-offset)); /* Full height below header */
    position: fixed;
    top: var(--header-offset);
    left: 0;
    width: 80%;
    max-width: 300px;
    overflow-y: auto;
    flex-direction: column;
    align-items: flex-start;
    background-color: var(--card-bg);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    display: none; /* Hidden by default, shown with JS */
  }
  .main-nav.active {
    transform: translateX(0);
    display: flex; /* Show menu */
  }

  .nav-container {
    width: 100%;
    max-width: none;
    padding: 20px 15px;
    flex-direction: column;
    align-items: flex-start;
    height: auto;
  }
  .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }
  .nav-menu li:last-child {
    border-bottom: none;
  }
  .nav-menu li a {
    padding: 12px 0;
    display: block;
    color: var(--text-dark);
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-col {
    text-align: center;
  }
  .footer-col h3::after {
    margin: 5px auto 0;
  }
  .footer-logo {
    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;
}
