html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Arial', sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; padding-top: var(--header-offset); background-color: #08162B; color: #F3F8FF; }
:root { --header-offset: 122px; }

/* Header Styles */
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 5px rgba(0,0,0,0.2); background-color: #08162B; }

.header-top { box-sizing: border-box; min-height: 68px; height: 68px; display: flex; align-items: center; overflow: hidden; background-color: #08162B; 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: 28px; font-weight: bold; color: #F2C14E; text-decoration: none; display: block; 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; }
.mobile-nav-buttons { display: none; }

.btn { background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); color: #F3F8FF; padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: bold; transition: transform 0.2s ease, box-shadow 0.2s ease; white-space: nowrap; border: none; cursor: pointer; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(43, 115, 246, 0.4); }

.main-nav { box-sizing: border-box; min-height: 52px; height: 52px; display: flex; align-items: center; overflow: hidden; background-color: #113B7A; 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: 10px 15px; transition: color 0.3s, background-color 0.3s; white-space: nowrap; font-size: 16px; }
.nav-link:hover { color: #F2C14E; background-color: rgba(255,255,255,0.1); border-radius: 3px; }

.hamburger-menu { display: none; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; cursor: pointer; padding: 5px; background: transparent; border: none; position: relative; z-index: 1002; }
.hamburger-menu .bar { width: 100%; height: 3px; background-color: #F3F8FF; border-radius: 2px; transition: all 0.3s ease; }
.hamburger-menu.active .bar:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
.hamburger-menu.active .bar:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

.overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.7); z-index: 999; transition: opacity 0.3s ease; opacity: 0; }
.overlay.active { display: block; opacity: 1; }

/* Footer Styles */
.site-footer { background-color: #08162B; color: #AFC4E8; padding: 40px 20px; font-size: 14px; }
.footer-container { max-width: 1200px; margin: 0 auto; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.footer-col { padding: 10px 0; }

.footer-about .footer-logo { font-size: 24px; font-weight: bold; color: #F2C14E; text-decoration: none; display: block; margin-bottom: 15px; }
.footer-description { font-size: 14px; line-height: 1.6; word-wrap: break-word; overflow-wrap: break-word; color: #AFC4E8; }

.footer-heading { font-size: 18px; color: #F3F8FF; margin-bottom: 15px; font-weight: bold; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav li a { color: #AFC4E8; text-decoration: none; display: block; transition: color 0.3s; }
.footer-nav li a:hover { color: #F2C14E; }

.footer-dynamic-row { margin-bottom: 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-dynamic-col .footer-slot-anchor-inner { display: flex; flex-wrap: wrap; flex-direction: row; align-items: flex-start; gap: 5px; }

.footer-bottom { border-top: 1px solid #1B3357; padding-top: 20px; text-align: center; font-size: 13px; color: #AFC4E8; margin-top: 20px; }

/* Mobile Specific 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 5px rgba(0,0,0,0.2); }

  .header-top { min-height: 60px !important; height: 60px !important; }
  .header-container { width: 100%; max-width: none; padding: 0 15px; justify-content: space-between; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; margin: 0; }
  .logo img { max-height: 56px !important; }

  .hamburger-menu { display: flex; margin-right: auto; }
  .desktop-nav-buttons { display: none; }

  .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 mobile button bar */
    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;
    text-align: center;
  }

  .main-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: var(--header-offset); /* Adjust for header height */
    left: 0;
    width: 80%; /* Or desired width */
    height: calc(100% - var(--header-offset));
    background-color: #10233F; /* Card BG for mobile nav */
    flex-direction: column;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
  }
  .main-nav.active { 
    display: flex; /* Show when active */
    transform: translateX(0); /* Slide in */
  }
  .nav-container { flex-direction: column; align-items: flex-start; width: 100%; max-width: none; padding: 0; }
  .nav-link { width: 100%; padding: 12px 0; border-bottom: 1px solid #1B3357; font-size: 15px; }
  .nav-link:last-child { border-bottom: none; }

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