html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: #1F2D3D; background-color: #F4F7FB; padding-top: var(--header-offset); overflow-x: hidden; }
:root { --primary-color: #2F6BFF; --accent-color: #6FA3FF; --text-main-color: #1F2D3D; --card-bg-color: #FFFFFF; --border-color: #D6E2FF; --glow-color: #A5C4FF; --header-offset: 122px; }

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

.header-top { box-sizing: border-box; min-height: 68px; height: 68px; display: flex; align-items: center; overflow: hidden; background-color: var(--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; }

.logo { font-size: 24px; font-weight: bold; color: #FFFFFF; text-decoration: none; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; /* Adjust max-width to prevent logo from pushing buttons too far */ }
.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(--accent-color); padding: 0 20px; }

.btn { display: inline-block; padding: 10px 20px; border-radius: 25px; background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); color: #FFFFFF; text-decoration: none; font-weight: bold; font-size: 14px; text-align: center; border: none; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); }
.btn:hover { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); transform: translateY(-1px); }

.main-nav { box-sizing: border-box; min-height: 52px; height: 52px; display: flex; align-items: center; overflow: hidden; background-color: var(--accent-color); width: 100%; }
.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; padding: 0 20px; }
.nav-link { color: #FFFFFF; text-decoration: none; padding: 10px 15px; font-weight: bold; transition: background-color 0.3s ease; white-space: nowrap; font-size: 15px; }
.nav-link:hover, .nav-link.active { background-color: rgba(255, 255, 255, 0.2); border-radius: 5px; }

.hamburger-menu { display: none; width: 30px; height: 24px; position: relative; cursor: pointer; z-index: 1001; background: none; border: none; padding: 0; margin-right: auto; /* Push logo to center */ }
.hamburger-menu span { display: block; width: 100%; height: 3px; background-color: #FFFFFF; border-radius: 2px; 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); }

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

.site-footer { background-color: #1F2D3D; color: #FFFFFF; padding: 40px 0; font-size: 14px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-col h3 { color: #FFFFFF; font-size: 16px; margin-bottom: 15px; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { color: #D6E2FF; text-decoration: none; transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--accent-color); }
.footer-logo { font-size: 22px; font-weight: bold; color: #FFFFFF; text-decoration: none; display: block; margin-bottom: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.footer-description { color: #D6E2FF; line-height: 1.8; margin-bottom: 15px; word-wrap: break-word; overflow-wrap: break-word; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 20px; margin-top: 30px; text-align: center; color: #D6E2FF; max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.footer-bottom p { margin: 0; }
.footer-slot-anchor-inner { min-height: 10px; }
.footer-slot-anchor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 20px auto; padding: 0 20px; }
.footer-slot-anchor { min-height: 10px; }

/* 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%; }

  .site-header { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); }
  .header-top { min-height: 60px !important; height: 60px !important; background-color: var(--primary-color); padding-left: 15px; padding-right: 15px; justify-content: space-between; }
  .header-container { width: 100%; max-width: none; padding: 0; position: relative; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; margin: 0; max-width: calc(100% - 100px); /* Account for hamburger menu width */ }
  .logo img { max-height: 56px !important; }

  .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;
    background-color: var(--accent-color);
    justify-content: center;
  }
  .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; /* Default hidden */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset); /* Below header and mobile buttons */
    left: 0;
    width: 250px;
    height: calc(100% - var(--header-offset));
    background-color: #FFFFFF; /* White background for mobile menu */
    transform: translateX(-100%);
    transition: transform 0.3s ease; 
    z-index: 1000;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }
  .main-nav.active {
    display: flex; /* Must be flex to show */
    transform: translateX(0);
  }
  .nav-container { flex-direction: column; align-items: flex-start; padding: 20px; width: 100%; max-width: none; }
  .nav-link { width: 100%; padding: 12px 0; color: var(--text-main-color); border-bottom: 1px solid #eee; }
  .nav-link:last-child { border-bottom: none; }
  .nav-link:hover, .nav-link.active { background-color: #F4F7FB; border-radius: 0; }

  .hamburger-menu { display: block; margin-left: 0; margin-right: auto; position: relative; z-index: 1001; }

  .overlay.active { display: block; }

  .body.no-scroll { overflow: hidden; }

  .footer-top-grid { grid-template-columns: 1fr; padding: 0 15px; }
  .footer-bottom { padding: 0 15px; }
  .footer-slot-anchor-grid { grid-template-columns: 1fr; padding: 0 15px; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
