:root {
  --header-offset: 166px;
}
body {
  padding-top: var(--header-offset);
}
body.no-scroll {
  overflow: hidden;
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 60px;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-bottom: 2px solid #244D84;
}
.header-top {
  background-color: #08162B;
  width: 100%;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  min-height: 68px;
}
.logo {
  display: inline-block;
  font-size: 24px;
  font-weight: 800;
  color: #F2C14E;
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.logo:hover {
  color: #4FA8FF;
}
.desktop-nav-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-register {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #F3F8FF;
  border: 1px solid #4FA8FF;
}
.btn-login {
  background: transparent;
  border: 2px solid #F2C14E;
  color: #F2C14E;
}
.btn-download {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #F3F8FF;
  border: 1px solid #F2C14E;
}
.btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 168, 255, 0.4);
}
.main-nav {
  background-color: #10233F;
  width: 100%;
  display: flex;
  flex-direction: row;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 0 20px;
  width: 100%;
}
.nav-container a {
  color: #F3F8FF;
  text-decoration: none;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.nav-container a:hover {
  color: #F2C14E;
}
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: fixed;
  top: 12px;
  left: 15px;
  z-index: 1002;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 8px;
}
.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background: #F2C14E;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.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);
}
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}
.mobile-nav-buttons {
  display: none;
}
.site-footer {
  background-color: #08162B;
  color: #AFC4E8;
  padding: 40px 0 0;
  margin-top: 40px;
  border-top: 2px solid #244D84;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 0 20px 30px;
}
.footer-brand .footer-logo {
  font-size: 26px;
  font-weight: 800;
  color: #F2C14E;
  text-decoration: none;
  letter-spacing: 1px;
}
.footer-brand p {
  margin-top: 12px;
  line-height: 1.6;
  font-size: 14px;
}
.footer-col h3 {
  color: #F3F8FF;
  font-size: 16px;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #F2C14E;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: #AFC4E8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}
.footer-nav a:hover {
  color: #F2C14E;
}
.footer-bottom {
  background-color: #10233F;
  text-align: center;
  padding: 15px 20px;
  font-size: 14px;
  color: #AFC4E8;
  border-top: 1px solid #1B3357;
}
.footer-bottom p {
  margin: 0;
}
@media (max-width: 768px) {
  :root {
    --header-offset: 146px;
  }
  .header-container {
    width: 100%;
    max-width: none;
    padding: 0 15px;
    min-height: 60px;
    justify-content: space-between;
  }
  .logo {
    font-size: 20px;
    margin: 0 auto;
  }
  .desktop-nav-buttons {
    display: none;
  }
  .main-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    width: 80%;
    max-width: 320px;
    height: calc(100% - 108px);
    background-color: #10233F;
    z-index: 1001;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
  }
  .main-nav.active {
    display: block;
    transform: translateX(0);
  }
  .nav-container {
    width: 100%;
    max-width: none;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
    gap: 0;
  }
  .nav-container a {
    display: block;
    padding: 15px 20px;
    width: 100%;
    border-bottom: 1px solid #1B3357;
  }
  .hamburger-menu {
    display: flex;
    top: 14px;
    left: 14px;
    z-index: 1002;
    background: rgba(0, 0, 0, 0.5);
  }
  .mobile-menu-overlay.active {
    top: 108px;
  }
  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 8px 15px;
    background-color: #08162B;
    z-index: 1000;
    position: relative;
    min-height: 48px;
    border-top: 1px solid #1B3357;
  }
  .mobile-nav-buttons .btn {
    padding: 8px 12px;
    font-size: 13px;
    flex: 1;
    text-align: center;
  }
  .site-footer {
    padding-top: 30px;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px 25px;
  }
  .footer-brand {
    text-align: center;
  }
  .footer-col h3 {
    text-align: center;
  }
  .footer-nav {
    align-items: center;
  }
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
