:root { --header-offset: 122px; --primary-color: #2F6BFF; --secondary-color: #6FA3FF; --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); --card-bg: #FFFFFF; --background-color: #F4F7FB; --text-main: #1F2D3D; --custom-color-1776249996415: #000000; --border-color: #D6E2FF; --glow-color: #A5C4FF; }
body { margin: 0; font-family: Arial, sans-serif; padding-top: var(--header-offset); color: var(--text-main); background-color: var(--background-color); }

/* Shared styles for containers */
.header-container, .nav-container { box-sizing: border-box; width: 100%; height: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

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

.header-top { box-sizing: border-box; height: 68px; display: flex; align-items: center; background-color: var(--primary-color); color: var(--card-bg); overflow: hidden; }
.header-top .header-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: bold; color: var(--card-bg); text-decoration: none; white-space: nowrap; }
.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; }
.mobile-nav-buttons { box-sizing: border-box; display: none; min-height: 48px; background-color: var(--background-color); padding: 0 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 25px; background: var(--button-gradient); color: var(--card-bg); text-decoration: none; font-weight: bold; white-space: nowrap; transition: transform 0.2s ease, box-shadow 0.2s ease; border: none; cursor: pointer; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); }

.main-nav { box-sizing: border-box; height: 52px; display: flex; align-items: center; background-color: var(--secondary-color); overflow: hidden; }
.main-nav .nav-container { display: flex; justify-content: center; align-items: center; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 25px; }
.main-nav li a { color: var(--text-main); text-decoration: none; font-weight: bold; padding: 5px 0; white-space: nowrap; transition: color 0.2s ease; }
.main-nav li a:hover { color: var(--primary-color); }

.hamburger-menu { display: none; width: 30px; height: 24px; position: relative; cursor: pointer; background: none; border: none; padding: 0; margin-right: 15px; z-index: 1001; }
.hamburger-menu span { display: block; height: 3px; width: 100%; background-color: var(--card-bg); border-radius: 3px; position: absolute; left: 0; transition: transform 0.3s ease, opacity 0.3s ease; }
.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 10px; }
.hamburger-menu span:nth-child(3) { top: 20px; }
.hamburger-menu.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

.overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); z-index: 999; }
.overlay.active { display: block; }

/* Footer styles */
.site-footer { background-color: var(--text-main); color: var(--card-bg); padding: 40px 20px 20px; line-height: 1.6; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto 30px; }
.footer-col h3 { font-size: 18px; margin-bottom: 15px; color: var(--secondary-color); }
.footer-col p { font-size: 14px; color: rgba(255, 255, 255, 0.8); }
.footer-logo { font-size: 24px; font-weight: bold; color: var(--card-bg); text-decoration: none; display: block; margin-bottom: 15px; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav li a { color: rgba(255, 255, 255, 0.8); text-decoration: none; font-size: 14px; transition: color 0.2s ease; }
.footer-nav li a:hover { color: var(--secondary-color); }
.footer-description { font-size: 14px; color: rgba(255, 255, 255, 0.8); word-wrap: break-word; overflow-wrap: break-word; }

.footer-bottom { text-align: center; margin-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 20px; font-size: 13px; color: rgba(255, 255, 255, 0.6); }

/* Dynamic slot anchors */
.footer-slot-anchor-outer, .footer-slot-anchor-inner { min-height: 1px; }
.footer-dynamic-col { display: flex; flex-direction: column; }

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

  .header-top { height: 60px !important; padding: 0 15px; }
  .header-top .header-container { padding: 0; justify-content: space-between; }
  .logo { order: 2; flex-grow: 1; text-align: center; display: flex; justify-content: center; align-items: center; font-size: 20px; }
  .logo img { max-height: 56px !important; }
  .hamburger-menu { display: block; order: 1; margin-left: 0; margin-right: 0; }
  
  .desktop-nav-buttons { display: none !important; }
  .mobile-nav-buttons {
    display: flex !important;
    min-height: 48px;
    align-items: center;
    width: 100%; max-width: 100%;
    box-sizing: border-box;
    padding-left: 15px; padding-right: 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: center;
    background-color: var(--background-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  }
  .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;
  }

  .main-nav {
    display: none; /* Hidden by default */
    position: fixed; top: 0; left: 0;
    width: 80%; max-width: 300px; /* Limit width for side menu */
    height: 100vh; /* Full viewport height */
    background-color: var(--text-main); /* Dark background for mobile menu */
    transform: translateX(-100%); /* Slide out from left */
    transition: transform 0.3s ease; /* Smooth animation */
    flex-direction: column; /* Stack items vertically */
    justify-content: flex-start; /* Align items to top */
    padding-top: 60px; /* Space for fixed header content */
    overflow-y: auto; /* Enable scrolling for long menus */
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    z-index: 1001;
    height: 100%; /* Ensure it covers full height */
    padding-bottom: 20px;
  }
  .main-nav.active {
    display: flex; /* Show menu when active */
    transform: translateX(0); /* Slide in */
  }
  .main-nav .nav-container { padding: 0 15px; width: 100%; max-width: none; }
  .main-nav ul { flex-direction: column; gap: 0; width: 100%; }
  .main-nav li { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .main-nav li:last-child { border-bottom: none; }
  .main-nav li a { color: var(--card-bg); padding: 15px 10px; display: block; font-size: 16px; }

  .footer-top-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-col { text-align: center; }
  .footer-logo { text-align: center; }
  .footer-nav li { text-align: center; }
  .footer-col h3 { margin-top: 20px; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
