:root {
  --header-offset: 120px;
}
body {
  padding-top: var(--header-offset);
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.header-top {
  background: linear-gradient(180deg, #0D2A5E 0%, #113B7A 100%);
  width: 100%;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
}
.logo {
  display: inline-block;
  font-size: 32px;
  font-weight: 900;
  color: #F2C14E;
  text-decoration: none;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(242, 193, 78, 0.3);
}
.logo:hover {
  color: #FFD700;
}
.desktop-nav-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}
.btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.btn-register {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #F3F8FF;
}
.btn-login {
  background: linear-gradient(180deg, #F2C14E 0%, #D4A017 100%);
  color: #08162B;
}
.main-nav {
  background: linear-gradient(180deg, #1D5FD1 0%, #1A4FA8 100%);
  width: 100%;
  display: flex;
  flex-direction: row;
  position: static;
  border-top: 2px solid #244D84;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  flex-wrap: wrap;
  gap: 4px;
}
.main-nav a {
  color: #F3F8FF;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 18px;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
  border-bottom: 3px solid transparent;
}
.main-nav a:hover {
  color: #F2C14E;
  background: rgba(255, 255, 255, 0.1);
  border-bottom-color: #F2C14E;
}
.mobile-nav-buttons {
  display: none;
}
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  cursor: pointer;
  position: fixed;
  top: 6px;
  left: 10px;
  z-index: 1001;
  background: rgba(17, 59, 122, 0.85);
  border-radius: 8px;
  padding: 10px;
}
.hamburger-menu span {
  display: block;
  width: 26px;
  height: 3px;
  background: #F3F8FF;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 3px;
}
.hamburger-menu.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 22, 43, 0.7);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-menu-overlay.active {
  opacity: 1;
}
.site-footer {
  background: linear-gradient(180deg, #08162B 0%, #0D2A5E 100%);
  color: #AFC4E8;
  padding: 50px 20px 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  border-top: 3px solid #F2C14E;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .footer-logo {
  font-size: 28px;
  font-weight: 900;
  color: #F2C14E;
  text-decoration: none;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 15px;
  color: #AFC4E8;
}
.footer-links h3 {
  color: #F2C14E;
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 700;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: #AFC4E8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
  padding: 2px 0;
}
.footer-nav a:hover {
  color: #F2C14E;
}
.footer-bottom {
  border-top: 1px solid #1B3357;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
  color: #AFC4E8;
}
.footer-bottom p {
  margin: 0;
}
@media (max-width: 768px) {
  :root {
    --header-offset: 108px;
  }
  .header-top {
    padding: 0;
  }
  .header-container {
    width: 100%;
    max-width: none;
    padding: 10px 55px;
    justify-content: center;
    position: relative;
  }
  .logo {
    font-size: 26px;
    display: block;
    text-align: center;
    width: 100%;
  }
  .desktop-nav-buttons {
    display: none;
  }
  .hamburger-menu {
    display: flex;
    position: fixed;
    top: 6px;
    left: 10px;
  }
  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 10px 15px;
    background: linear-gradient(180deg, #0D2A5E 0%, #113B7A 100%);
    border-top: 1px solid #244D84;
    z-index: 1000;
    width: 100%;
  }
  .mobile-nav-buttons .btn {
    flex: 1;
    max-width: 200px;
    font-size: 14px;
    padding: 10px 16px;
  }
  .main-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, #0D2A5E 0%, #113B7A 100%);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1002;
    border-top: none;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
  }
  .main-nav.active {
    display: flex;
    transform: translateX(0);
  }
  .nav-container {
    width: 100%;
    max-width: none;
    padding: 20px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding-top: 70px;
  }
  .main-nav a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
    border-left: 3px solid transparent;
  }
  .main-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #F2C14E;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .mobile-menu-overlay.active {
    display: block;
  }
  body.no-scroll {
    overflow: hidden;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    padding: 15px 0;
  }
  .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;
}
