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

/* Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; line-height: 1.6; color: #F3F8FF; background-color: #08162B; }

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

/* Header Top */
.header-top { min-height: 68px; height: 68px; display: flex; align-items: center; overflow: hidden; background-color: #08162B; /* Deep Navy */ width: 100%; color: #F3F8FF; }
.header-container { width: 100%; height: 100%; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }

/* Logo */
.logo { font-size: 28px; font-weight: bold; color: #F2C14E; /* Gold */ text-decoration: none; display: block; line-height: 1; }

/* Desktop Nav Buttons */
.desktop-nav-buttons { display: flex; gap: 12px; align-items: center; }

/* Mobile Nav Buttons (Hidden by default on desktop) */
.mobile-nav-buttons { display: none; min-height: 48px; background-color: #113B7A; /* Main color */ color: #F3F8FF; width: 100%; padding: 0 20px; }

/* Main Navigation (Desktop) */
.main-nav { min-height: 52px; height: 52px; display: flex; align-items: center; overflow: hidden; background-color: #113B7A; /* Main color */ width: 100%; color: #F3F8FF; }
.main-nav .nav-container { height: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0 20px; gap: 25px; }
.main-nav .nav-link { color: #F3F8FF; text-decoration: none; font-weight: 500; font-size: 16px; padding: 10px 0; transition: color 0.3s ease; white-space: nowrap; }
.main-nav .nav-link:hover { color: #4FA8FF; /* Glow */ }

/* Hamburger Menu (Hidden on desktop) */
.hamburger-menu { display: none; background: none; border: none; cursor: pointer; padding: 10px 0; width: 40px; height: 100%; flex-direction: column; justify-content: center; align-items: center; position: relative; z-index: 1001; }
.hamburger-menu span { display: block; width: 25px; height: 3px; background-color: #F3F8FF; margin-bottom: 5px; transition: transform 0.3s ease, opacity 0.3s ease; }
.hamburger-menu span:last-child { margin-bottom: 0; }
.hamburger-menu.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 8px; text-decoration: none; font-weight: bold; font-size: 15px; color: #F3F8FF; background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); border: none; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; white-space: nowrap; min-width: 90px; text-align: center; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); }

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

/* Footer */
.site-footer { background-color: #10233F; /* Card BG */ color: #AFC4E8; /* Text Secondary */ padding: 40px 20px 20px; font-size: 14px; }
.site-footer h3 { color: #F3F8FF; /* Text Main */ font-size: 18px; margin-bottom: 15px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto 30px; }
.footer-col { padding-bottom: 0; }
.footer-logo { font-size: 24px; font-weight: bold; color: #F2C14E; /* Gold */ 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-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: #4FA8FF; /* Glow */ }
.footer-bottom { border-top: 1px solid #1B3357; /* Divider */ padding-top: 20px; text-align: center; color: #AFC4E8; max-width: 1200px; margin: 0 auto; }
.footer-bottom p { margin: 0; }

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

  body.no-scroll { overflow: hidden; }

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

  .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; position: relative; }

  .hamburger-menu { display: flex; order: -1; z-index: 1001; padding: 0; width: 40px; height: 100%; }

  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px;
    line-height: 1;
    max-width: calc(100% - 70px); /* Account for hamburger width and padding */
  }

  .desktop-nav-buttons { display: none !important; }

  .mobile-nav-buttons {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    width: 100%; max-width: 100%;
    padding: 0 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .mobile-nav-buttons .btn {
    flex: 1; min-width: 0;
    max-width: calc(50% - 5px);
    padding: 8px 12px;
    font-size: 13px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-offset);
    left: 0;
    width: 280px;
    height: calc(100vh - var(--header-offset));
    background-color: #08162B; /* Deep Navy */
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
  }
  .main-nav.active {
    display: flex;
    transform: translateX(0);
  }
  .main-nav .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 15px;
    gap: 15px;
    width: 100%;
    max-width: none;
    height: auto;
  }
  .main-nav .nav-link {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid #1B3357; /* Divider */
  }
  .main-nav .nav-link:last-child { border-bottom: none; }

  .site-footer { padding: 30px 15px 15px; }
  .footer-grid { grid-template-columns: 1fr; gap: 0; margin-bottom: 20px; }
  .footer-col:not(:last-child) { margin-bottom: 20px; }
  .footer-bottom { padding-top: 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;
  }
}
/* 内容保护（系统追加，请勿删除） */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}
