:root {
  --header-offset: 164px;
  --primary: #113B7A;
  --secondary: #1D5FD1;
  --btn-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg: #10233F;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --border-color: #244D84;
  --glow: #4FA8FF;
  --gold: #F2C14E;
  --divider: #1B3357;
  --deep-navy: #08162B;
}
body {
  margin: 0;
  padding: 0;
  padding-top: var(--header-offset);
  background-color: var(--deep-navy);
  color: var(--text-main);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
  background-color: var(--deep-navy);
  min-height: auto;
}
.header-top {
  background-color: var(--primary);
  width: 100%;
  border-bottom: 1px solid var(--border-color);
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  min-height: 68px;
  gap: 16px;
}
.logo {
  font-size: 32px;
  font-weight: 800;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 1px;
  text-shadow: 0 0 12px rgba(242, 193, 78, 0.6), 0 0 30px rgba(79, 168, 255, 0.3);
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: linear-gradient(135deg, #F2C14E 0%, #FFF3C4 40%, #F2C14E 60%, #B8860B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  display: inline-block;
}
.desktop-nav-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.mobile-nav-buttons {
  display: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.btn-register {
  background: var(--btn-gradient);
  color: #fff;
  border: 1px solid var(--glow);
}
.btn-login {
  background: linear-gradient(180deg, #1D5FD1 0%, #113B7A 100%);
  border: 1px solid #4FA8FF;
}
.btn-download {
  background: linear-gradient(180deg, #F2C14E 0%, #B8860B 100%);
  color: #08162B;
  border: 1px solid #F2C14E;
}
.btn:hover {
  background: linear-gradient(180deg, #4FA8FF 0%, #2B73F6 100%);
  border-color: #4FA8FF;
  color: #fff;
  box-shadow: 0 0 20px rgba(79, 168, 255, 0.5);
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.main-nav {
  background-color: var(--deep-navy);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--divider);
  box-shadow: inset 0 1px 0 rgba(79, 168, 255, 0.1);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 24px;
  gap: 4px;
  min-height: 52px;
  flex-wrap: nowrap;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  outline: 1px solid transparent;
  outline-offset: -1px;
  transition: color 0.3s ease;
}
.nav-link:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(79, 168, 255, 0.6);
}
.nav-link.active {
  color: var(--gold);
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}
.hamburger-menu {
  display: none;
}
.mobile-menu-overlay {
  display: none;
}
.site-footer {
  background-color: var(--deep-navy);
  color: var(--text-secondary);
  border-top: 1px solid var(--divider);
  padding: 40px 0 20px;
  margin-top: 40px;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-logo {
  font-size: 28px;
  font-weight: 800;
  color: var(--gold);
  text-decoration: none;
  display: inline-block;
  background: linear-gradient(135deg, #F2C14E 0%, #FFF3C4 40%, #F2C14E 60%, #B8860B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 12px;
  color: var(--text-secondary);
}
.footer-title {
  color: var(--gold);
  font-size: 18px;
  margin: 0 0 16px 0;
  font-weight: 700;
  text-transform: uppercase;
}
.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav li {
  margin-bottom: 8px;
}
.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}
.footer-nav a:hover {
  color: var(--gold);
}
.footer-bottom {
  border-top: 1px solid var(--divider);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 14px;
}
.copyright {
  margin: 0;
  color: var(--text-secondary);
}
.footer-disclaimer {
  margin: 0;
  color: var(--text-secondary);
}
@media (max-width: 768px) {
  :root {
    --header-offset: 146px;
  }
  body {
    padding-top: var(--header-offset);
  }
  .header-container {
    width: 100%;
    max-width: none;
    padding: 0 12px;
    min-height: 60px;
    gap: 8px;
  }
  .nav-container {
    width: 100%;
    max-width: none;
    padding: 0 12px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    min-height: auto;
    padding: 10px 0;
    overflow-y: auto;
  }
  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    width: 32px;
    height: 32px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    flex-shrink: 0;
  }
  .hamburger-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--gold);
    margin-bottom: 5px;
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 4px rgba(242, 193, 78, 0.3);
  }
  .hamburger-menu span:last-child {
    margin-bottom: 0;
  }
  .hamburger-menu.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-menu.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
  }
  .logo {
    font-size: 24px;
    order: 1;
    flex: 1;
    text-align: center;
  }
  .hamburger-menu {
    order: 0;
  }
  .desktop-nav-buttons {
    display: none;
  }
  .mobile-nav-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 0 12px;
    margin: 0;
  }
  .mobile-nav-buttons .btn {
    flex: 1;
    justify-content: center;
    padding: 10px 8px;
    font-size: 13px;
    border-radius: 40px;
    max-width: 180px;
  }
  .btn {
    padding: 8px 14px;
    font-size: 13px;
  }
  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 86%;
    max-width: 330px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--deep-navy);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1002;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid var(--border-color);
  }
  .main-nav.active,
  .main-nav.open {
    display: block;
    transform: translateX(0);
  }
  .main-nav .nav-container {
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 10px 0;
    min-height: auto;
    overflow-y: auto;
  }
  .nav-link {
    display: block;
    padding: 12px 20px;
    font-size: 15px;
    color: var(--text-secondary);
    text-transform: none;
    border-bottom: 1px solid rgba(36, 77, 132, 0.3);
  }
  .nav-link:hover {
    color: #fff;
    background-color: rgba(36, 77, 132, 0.3);
  }
  .nav-link.active {
    background-color: var(--primary);
    color: #fff;
  }
  .mobile-menu-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  .nav-container {
    padding-bottom: 20px;
  }
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 14px;
    font-size: 13px;
    white-space: nowrap;
  }
  .btn-register,
  .btn-login,
  .btn-download {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 12px;
    letter-spacing: 0.2px;
  }
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }
  .header-top {
    background-color: var(--primary);
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-bottom {
    flex-direction: column;
    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;
  }
}
/* 内容保护（系统追加，请勿删除） */
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;
}
