:root { --header-offset: 122px; --primary-color: #2F6BFF; --secondary-color: #6FA3FF; --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); --card-bg: #FFFFFF; --page-bg: #F4F7FB; --text-main: #1F2D3D; --border-color: #D6E2FF; --glow-color: #A5C4FF; }

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

/* Site Header */
.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: var(--card-bg); }

.header-top { box-sizing: border-box; height: 68px; display: flex; align-items: center; background-color: #1A4B9F; /* Darker variant of primary for contrast */ color: #fff; overflow: hidden; }

.header-container { box-sizing: border-box; width: 100%; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; height: 100%; }

.hamburger-menu { display: none; background: none; border: none; cursor: pointer; padding: 0; width: 30px; height: 24px; position: relative; z-index: 1001; }
.hamburger-menu .bar { display: block; width: 100%; height: 3px; background-color: #fff; margin: 5px 0; transition: all 0.3s ease; }
.hamburger-menu.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
.hamburger-menu.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.logo { font-size: 28px; font-weight: bold; text-decoration: none; color: #fff; display: inline-block; padding: 0; }

.desktop-nav-buttons { display: flex; gap: 12px; align-items: center; }

.btn { text-decoration: none; padding: 10px 20px; border-radius: 25px; font-weight: bold; font-size: 15px; text-align: center; white-space: nowrap; cursor: pointer; transition: all 0.3s ease; background: var(--button-gradient); color: #fff; border: none; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); }
.btn:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25); }

.mobile-nav-buttons { box-sizing: border-box; display: none; min-height: 48px; background-color: var(--primary-color); padding: 10px 20px; justify-content: center; align-items: center; width: 100%; overflow: hidden; }

.main-nav { box-sizing: border-box; height: 52px; display: flex; align-items: center; background-color: var(--primary-color); /* Primary blue */ overflow: hidden; }

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

.nav-link { text-decoration: none; color: #fff; padding: 0 15px; font-size: 16px; font-weight: 500; white-space: nowrap; transition: color 0.3s ease; }
.nav-link:hover { color: var(--secondary-color); }

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

/* Footer */
.site-footer { background-color: #1F2D3D; /* Dark background for footer */ color: #f0f0f0; padding: 40px 20px 20px; font-size: 14px; line-height: 1.6; }

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

.footer-col h3 { color: #fff; font-size: 18px; margin-bottom: 15px; }

.footer-logo { font-size: 24px; font-weight: bold; text-decoration: none; color: #fff; margin-bottom: 15px; display: inline-block; }
.footer-description { margin-top: 10px; color: #ccc; overflow-wrap: break-word; }

.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { text-decoration: none; color: #ccc; transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--secondary-color); }

.footer-bottom { max-width: 1200px; margin: 30px auto 0; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 20px; color: #aaa; }
.footer-bottom p { margin: 0; }

.footer-slot-anchor { display: block; min-height: 1px; }
.footer-slot-anchor-inner { display: block; min-height: 1px; }

/* Responsive Styles */
@media (max-width: 768px) {
  :root { --header-offset: 110px; }

  body { padding-top: var(--header-offset); overflow-x: hidden; }

  /* Header */
  .header-top { height: 60px; }
  .header-container { padding: 0 15px; }

  .hamburger-menu { display: block; order: 1; margin-right: 15px; }
  .logo { order: 2; flex-grow: 1; text-align: center; font-size: 24px; }
  .desktop-nav-buttons { display: none !important; }

  .mobile-nav-buttons { display: flex !important; min-height: 48px; padding: 8px 15px; gap: 10px; flex-wrap: nowrap; background-color: var(--primary-color); }
  .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, shown by JS */ flex-direction: column; position: fixed; top: var(--header-offset); left: 0; width: 75%; max-width: 300px; height: calc(100% - var(--header-offset)); background-color: #1F2D3D; /* Darker for mobile menu */ box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3); transform: translateX(-100%); transition: transform 0.3s ease; overflow-y: auto; z-index: 1000; height: calc(100vh - var(--header-offset)); }
  .main-nav.active { display: flex; transform: translateX(0); }

  .nav-container { flex-direction: column; align-items: flex-start; padding: 20px 15px; height: auto; }
  .nav-link { width: 100%; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .nav-link:last-child { border-bottom: none; }

  .overlay.active { display: block; }

  /* Footer */
  .footer-top-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-col { margin-bottom: 20px; }
  .footer-col:last-child { margin-bottom: 0; }
  .footer-nav { text-align: center; }

  /* Mobile content overflow protection */
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
