/* General Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F3F8FF; /* Text Main */
  background-color: #08162B; /* Deep Navy as general background */
}

a {
  text-decoration: none;
  color: #F3F8FF; /* Text Main */
}

ul {
  list-style: none;
}

/* Header Offset */
:root {
  --header-offset: 122px; /* Desktop: 68px (header-top) + 52px (main-nav) + 2px buffer */
}
body {
  padding-top: var(--header-offset);
}

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

/* Header Top Section */
.header-top {
  background-color: #08162B; /* Deep Navy */
  min-height: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
}

.header-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 100%;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  text-transform: uppercase;
  display: block;
  flex-shrink: 0;
}

.logo img {
  display: block;
  max-height: 60px;
  height: auto;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

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

/* Mobile Navigation Buttons (hidden by default on desktop) */
.mobile-nav-buttons {
  box-sizing: border-box;
  display: none; /* Hidden by default on desktop */
  min-height: 48px;
  background-color: #113B7A; /* Main Color, different from header-top */
  width: 100%;
  overflow: hidden;
  padding: 0 15px;
}

/* Main Navigation */
.main-nav {
  background-color: #113B7A; /* Main Color */
  min-height: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  height: 100%;
}

.nav-link {
  color: #F3F8FF; /* Text Main */
  padding: 0 15px;
  font-size: 16px;
  font-weight: bold;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #F2C14E; /* Gold */
}

/* Hamburger Menu (hidden by default on desktop) */
.hamburger-menu {
  display: none; /* Hidden by default on desktop */
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1001;
  padding: 0;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #F3F8FF; /* Text Main */
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}
.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

/* Overlay for Mobile Menu */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay.active {
  display: block;
  opacity: 1;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button Gradient */
  color: #F3F8FF; /* Text Main */
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Footer */
.site-footer {
  background-color: #10233F; /* Card BG */
  padding: 40px 20px 20px;
  color: #AFC4E8; /* Text Secondary */
  font-size: 14px;
}

.site-footer h3 {
  color: #F3F8FF; /* Text Main */
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 30px;
}

.footer-col .footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  text-transform: uppercase;
  margin-bottom: 15px;
  display: inline-block;
}

.footer-description {
  margin-bottom: 20px;
  color: #AFC4E8; /* Text Secondary */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-nav li {
  margin-bottom: 8px;
}

.footer-nav a {
  color: #AFC4E8; /* Text Secondary */
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #F2C14E; /* Gold */
}

.footer-bottom {
  border-top: 1px solid #1B3357; /* Divider */
  padding-top: 20px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  color: #AFC4E8; /* Text Secondary */
}

.footer-slot-anchor-inner {
  min-height: 1px;
}

/* Mobile Styles */
@media (max-width: 768px) {
  /* Header Offset for Mobile */
  :root {
    --header-offset: 110px; /* Mobile: 60px (header-top) + 48px (mobile-nav-buttons) + 2px buffer */
  }

  /* Header Top */
  .header-top {
    min-height: 60px !important;
    height: 60px !important;
  }

  .header-container {
    padding: 0 15px;
    max-width: none; /* Remove max-width on mobile */
    position: relative;
  }

  /* Mobile Logo Centering (Method 1: Flexbox) */
  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: static !important;
    transform: none !important;
    text-align: center;
  }

  .logo img {
    max-height: 56px !important;
    max-width: 100%;
    height: auto;
  }

  /* Hamburger Menu (visible on mobile) */
  .hamburger-menu {
    display: flex;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
  }

  /* Desktop Buttons (hidden on mobile) */
  .desktop-nav-buttons {
    display: none !important;
  }

  /* Mobile Buttons (visible on mobile) */
  .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;
  }

  .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 Navigation (hidden by default on mobile, fixed position) */
  .main-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: var(--header-offset); /* Start below the header and mobile buttons */
    left: 0;
    width: 80%;
    max-width: 300px;
    height: calc(100% - var(--header-offset));
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background-color: #113B7A; /* Main Color */
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    padding: 20px 0;
    min-height: 48px !important;
    height: auto !important;
  }

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    width: 100%;
    max-width: none;
  }

  .nav-link {
    width: 100%;
    padding: 12px 20px;
    border-bottom: 1px solid #1B3357; /* Divider */
    font-size: 16px;
    text-align: left;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  /* Active state for mobile menu */
  .main-nav.active {
    display: flex; /* Make visible when active */
    transform: translateX(0);
  }

  /* Mobile Content Overflow Prevention */
  .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.no-scroll {
    overflow: hidden;
  }

  /* Footer Mobile */
  .site-footer {
    padding-left: 15px;
    padding-right: 15px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-col {
    text-align: center;
  }
  .footer-col h3, .footer-col .footer-logo {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .footer-nav {
    padding-left: 0;
  }
  .footer-nav li {
    text-align: center;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
