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

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

.header-top { box-sizing: border-box; min-height: 68px; height: 68px; display: flex; align-items: center; overflow: hidden; background-color: #08162B; width: 100%; color: #F3F8FF; }
.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; text-decoration: none; color: #F2C14E; display: block; white-space: nowrap; }
.logo:hover { color: #F2C14E; text-decoration: none; }

.desktop-nav-buttons { display: flex; gap: 12px; align-items: center; }
.mobile-nav-buttons { box-sizing: border-box; display: none; min-height: 48px; background-color: #10233F; width: 100%; padding: 0 20px; }

.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: #AFC4E8; text-decoration: none; padding: 10px 15px; font-size: 16px; transition: color 0.3s ease; white-space: nowrap; }
.nav-link:hover { color: #F3F8FF; }

.btn { display: inline-block; padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: bold; transition: all 0.3s ease; white-space: nowrap; cursor: pointer; border: none; }
.btn-primary { background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); color: #F3F8FF; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(43, 115, 246, 0.4); }
.btn-secondary { background-color: #1D5FD1; color: #F3F8FF; border: 1px solid #2B73F6; }
.btn-secondary:hover { background-color: #2B73F6; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(29, 95, 209, 0.4); }

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

.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; }

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

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

  .header-top { min-height: 60px; height: 60px; }
  .header-container { width: 100%; max-width: none; padding: 0 15px; justify-content: space-between; position: relative; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 24px; }
  .desktop-nav-buttons { display: none !important; }
  .hamburger-menu { display: flex; margin-left: auto; }

  .mobile-nav-buttons {
    display: flex !important;
    min-height: 48px;
    align-items: center;
    justify-content: 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 */
  }
  .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 */
    position: fixed;
    top: var(--header-offset); /* Below the header */
    left: 0;
    width: 80%; /* Example width */
    max-width: 300px;
    height: calc(100vh - var(--header-offset));
    background-color: #113B7A; /* Primary color */
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1001; /* Above header */
    overflow-y: auto;
    align-items: flex-start; /* Align links to start */
  }
  .main-nav.active {
    display: flex; /* Crucial: change from none to flex */
    transform: translateX(0);
  }
  .main-nav .nav-link {
    width: 100%;
    padding: 12px 15px;
    border-bottom: 1px solid #1B3357;
    font-size: 16px;
  }
  .main-nav .nav-link:last-child { border-bottom: none; }

  .mobile-overlay.visible { display: block; }

  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-col { text-align: center; }
  .footer-col h3 { margin-top: 20px; }
  .footer-col .footer-nav { padding-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;
  }
}
