:root { --header-offset: 122px; }
body { padding-top: var(--header-offset); margin: 0; font-family: Arial, sans-serif; line-height: 1.6; color: #F3F8FF; background-color: #08162B; overflow-x: hidden; }

/* Header Styles */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }

.header-top { box-sizing: border-box; height: 68px; background-color: #08162B; display: flex; align-items: center; width: 100%; padding: 0 20px; }
.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; }

.logo { font-size: 24px; font-weight: bold; color: #F2C14E; text-decoration: none; display: flex; align-items: center; 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: 10px; }

.btn { background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); color: #F3F8FF; padding: 10px 18px; border-radius: 5px; text-decoration: none; font-weight: bold; font-size: 14px; white-space: nowrap; transition: background 0.3s ease, transform 0.2s ease; border: none; cursor: pointer; display: inline-block; text-align: center; }
.btn:hover { transform: translateY(-2px); }

.main-nav { box-sizing: border-box; height: 52px; background-color: #1D5FD1; display: flex; align-items: center; 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: #F3F8FF; text-decoration: none; padding: 0 15px; font-size: 15px; white-space: nowrap; transition: color 0.3s ease; }
.nav-link:hover { color: #F2C14E; }

.hamburger-menu { display: none; }
.mobile-nav-buttons { display: none; } /* Hidden by default on desktop */
.mobile-overlay { display: none; } /* Hidden by default */

/* Footer Styles */
.site-footer { background-color: #08162B; color: #AFC4E8; padding: 40px 20px 20px; font-size: 14px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto 30px; }
.footer-logo { color: #F2C14E; font-size: 22px; font-weight: bold; text-decoration: none; display: block; margin-bottom: 15px; }
.footer-description { line-height: 1.6; word-wrap: break-word; overflow-wrap: break-word; color: #AFC4E8; }
.footer-col h3 { color: #F3F8FF; font-size: 18px; margin-bottom: 15px; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { color: #AFC4E8; text-decoration: none; transition: color 0.3s ease; }
.footer-nav a:hover { color: #F2C14E; }

.footer-dynamic-col .footer-slot-anchor-inner { display: flex; flex-wrap: wrap; flex-direction: row; align-items: flex-start; gap: 5px; }
.footer-dynamic-row { max-width: 1200px; margin: 0 auto 20px; }
.footer-dynamic-row .footer-slot-anchor-inner { display: flex; flex-wrap: wrap; flex-direction: row; align-items: flex-start; gap: 8px; width: 100%; }

.footer-bottom { text-align: center; margin-top: 30px; max-width: 1200px; margin-left: auto; margin-right: auto; }
.footer-bottom p { margin: 0; color: #AFC4E8; }

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

  /* General mobile adjustments */
  body { overflow-x: hidden; }
  .page-content img { max-width: 100% !important; height: auto !important; display: block; }
  .page-content { overflow-x: hidden; max-width: 100%; }

  /* Header mobile adjustments */
  .header-top { height: 60px !important; padding: 0 15px; position: relative; }
  .header-container { max-width: none; width: 100%; padding: 0; justify-content: space-between; }
  .desktop-nav-buttons { display: none; }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
  }
  .hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: #F3F8FF;
    margin: 4px 0;
    transition: 0.4s;
  }
  .hamburger-menu.active .bar:nth-child(1) { transform: translateY(7px) rotate(-45deg); }
  .hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
  .hamburger-menu.active .bar:nth-child(3) { transform: translateY(-7px) rotate(45deg); }

  /* Mobile Logo Centering (Method 1: Flexbox) */
  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-left: 40px; /* Offset for hamburger */
  }
  .logo img { max-height: 56px !important; }

  /* Mobile Buttons */
  .mobile-nav-buttons {
    display: flex !important;
    min-height: 48px;
    align-items: center;
    width: 100%; max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    background-color: #10233F; /* Card BG for distinct look */
  }
  .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;
  }

  /* Mobile Navigation Menu */
  .main-nav {
    display: none; /* Hidden by default */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset);
    left: 0;
    width: 80%;
    max-width: 300px;
    height: calc(100% - var(--header-offset));
    background-color: #08162B; /* Deep Navy */
    z-index: 1001;
    transform: translateX(-100%); /* Slide out to the left */
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0,0,0,0.3);
  }
  .main-nav.active {
    display: flex; /* Show when active */
    transform: translateX(0); /* Slide into view */
  }
  .nav-container {
    flex-direction: column;
    padding: 20px 0;
    max-width: none;
    width: 100%;
    justify-content: flex-start;
    align-items: flex-start;
    height: auto;
  }
  .nav-link {
    padding: 10px 20px;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #1B3357; /* Divider color */
  }
  .nav-link:last-child { border-bottom: none; }

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

  /* Footer mobile adjustments */
  .footer-top-grid { grid-template-columns: 1fr; }
  .footer-col { margin-bottom: 20px; }
  .footer-col:last-child { margin-bottom: 0; }
  .footer-dynamic-row { margin-left: 0; margin-right: 0; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
