:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --btn-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg: #10233F;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --border-color: #244D84;
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --divider-color: #1B3357;
  --deep-navy: #08162B;
  --header-offset: 122px;
  --top-bar-height: 68px;
  --nav-bar-height: 52px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, Arial, sans-serif;
  background-color: #0f1c33;
  padding-top: var(--header-offset);
  margin: 0;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ========== SITE HEADER ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  min-height: auto;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Header Top Bar */
.header-top {
  background: var(--deep-navy);
  border-bottom: 2px solid var(--primary-color);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  min-height: 48px;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 28px;
  color: var(--text-main);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(242, 193, 78, 0.3);
  line-height: 1.2;
}

.logo .logo-highlight {
  color: var(--gold-color);
  font-size: 0.62em;
  margin-left: 2px;
  outline: none;
  background: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.btn-register {
  background: linear-gradient(135deg, #F2C14E 0%, #D4A239 100%);
  color: #0d1f3c;
  box-shadow: 0 4px 18px rgba(242, 193, 78, 0.4);
}

.btn-register:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(242, 193, 78, 0.55);
  color: #08162b;
}

.btn-download {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(43, 115, 246, 0.45);
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(43, 115, 246, 0.6);
  color: #FFFFFF;
}

/* Main Navigation */
.main-nav {
  background: #0F1C38;
  background: linear-gradient(90deg, #0a1a36 0%, #113A7A 50%, #0a1a36 100%);
  border-bottom: 2px solid var(--primary-color);
  display: block;
  position: static;
  transform: none;
  transition: none;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  padding: 0 16px;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 14px 20px;
  color: #D5E2F7;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease, background 0.3s ease;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
  border-radius: 3px;
}

.nav-link:hover {
  color: #FFFFFF;
  background: rgba(26, 82, 168, 0.3);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* Mobile Menu Wrapper (hidden on desktop by default) */
.mobile-nav-wrapper {
  display: none;
}

/* Mobile Buttons */
.mobile-nav-buttons {
  display: none;
}

/* Hamburger Button */
.hamburger-menu {
  display: none;
  background: transparent;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  width: 46px;
  height: 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  z-index: 1001;
  order: -1;
  transition: all 0.3s ease;
}

.hamburger-line {
  width: 26px;
  height: 3px;
  background-color: #D5E2F7;
  border-radius: 4px;
  display: block;
  transition: all 0.3s ease;
}

/* Mobile Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Shared Utility */
.fw-bold {
  font-weight: 700;
}

.text-secondary {
  color: var(--text-secondary);
}

/* ========== SITE FOOTER ========== */
.site-footer {
  background: #050d1a;
  color: var(--text-main);
  border-top: 4px solid var(--primary-color);
  padding: 60px 0 0 0;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.footer-top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 50px;
  padding-bottom: 40px;
}

.footer-brand {
  flex: 1.2;
  min-width: 250px;
}

.footer-logo {
  font-size: 30px;
  font-weight: 800;
  color: #e6eefd;
  display: inline-flex;
  align-items: baseline;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.2);
}

.footer-logo span {
  color: var(--secondary-color);
  font-size: 18px;
  margin-left: 3px;
}

.footer-desc {
  color: #8fb3d8;
  line-height: 1.7;
  font-size: 14px;
  max-width: 420px;
}

.footer-columns {
  flex: 1.5;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  border-left: 1px solid rgba(13, 110, 253, 0.2);
  padding-left: 40px;
}

.footer-col {
  min-width: 130px;
  flex: 1;
}

.footer-title {
  color: var(--text-main);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 8px;
  display: inline-block;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #93b6e5;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.3s, padding-left 0.3s;
  display: inline-block;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold-color);
  padding-left: 6px;
}

.footer-col-info {
  font-size: 14px;
}

.footer-col-info p {
  color: #93b6e5;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.footer-divider {
  border: none;
  background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
  height: 1px;
  margin: 20px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 0;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright p {
  font-size: 14px;
  color: #8aA0c0;
}

.footer-copyright .footer-disclaimer {
  margin-top: 8px;
  font-size: 13px;
  color: #6690b0;
}

.footer-copyright strong {
  color: var(--gold-color);
  font-weight: 700;
}

.footer-badges .footer-link-login {
  color: var(--gold-color);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 10px 28px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
  background: rgba(242, 193, 78, 0.05);
}

.footer-link-login:hover {
  background: var(--gold-color);
  color: #091C33;
  border-color: var(--gold-color);
  box-shadow: 0 0 20px rgba(242, 193, 78, 0.3);
}

/* ========== RESPONSIVE BREAKPOINT (≤768px) ========== */
@media (max-width: 768px) {
  :root {
    --header-offset: 110px;
    --top-bar-height: 60px;
    --nav-bar-height: 48px;
  }

  .site-header {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  }

  .header-top {
    border-bottom-width: 1px;
  }

  .header-container {
    width: 100%;
    max-width: none;
    padding: 8px 15px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    justify-items: center;
    min-height: 60px;
  }

  .logo {
    font-size: 24px;
  }

  .logo .logo-highlight {
    font-size: 0.6em;
  }

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

  .hamburger-menu {
    display: flex;
    justify-self: start;
    width: 42px;
    height: 42px;
    font-size: 22px;
  }

  /* Main Nav */
  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 78%;
    max-width: 320px;
    background: #0a1a36;
    background: linear-gradient(135deg, #061021 0%, #0f2b55 100%);
    border-right: 1px solid var(--border-color);
    box-shadow: none;
    transform: translateX(-100%);
    transition: transform 0.35s ease-in-out;
    flex-direction: column;
    padding-top: 20px;
    z-index: 1000;
    overflow-y: auto;
  }

  .main-nav.open {
    display: flex;
    transform: translateX(0);
    box-shadow: 3px 0 20px rgba(0,0,0,0.4);
  }

  .main-nav.active {
    display: flex;
    transform: translateX(0);
  }

  .nav-container {
    width: 100%;
    max-width: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 8px 20px;
    gap: 8px;
  }

  .nav-link {
    padding: 15px 25px;
    font-size: 16px;
    border-radius: 10px;
    color: #d3e2fa;
    width: 100%;
  }

  .nav-link::after {
    content: none;
  }

  .nav-link:hover,
  .nav-link.active {
    background: #1a3d74;
    color: #FFFFFF;
  }

  .mobile-menu-overlay {
    display: block;
    position: fixed;
    z-index: 999;
    background: rgba(3, 8, 18, 0.6);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }

  .mobile-menu-overlay.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    background: #08162b;
    border-bottom: 1px solid rgba(30, 80, 160, 0.4);
    padding: 10px 15px;
    z-index: 1000;
    width: 100%;
  }

  .mobile-nav-buttons .btn {
    flex: 1;
    padding: 12px 10px;
    font-size: 13px;
  }

  /* Footer Mobile Adjustments */
  .footer-container {
    width: 100%;
    max-width: none;
    padding: 0 18px;
  }

  .site-footer {
    padding-top: 30px;
  }

  .footer-top {
    flex-direction: column;
    gap: 20px;
  }

  .footer-brand {
    min-width: auto;
    text-align: left;
  }

  .footer-desc {
    margin: 0;
  }

  .footer-columns {
    border-left: none;
    padding-left: 0;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
  }

  .footer-col {
    flex: 1 1 30%;
  }

  .footer-col-info {
    margin-top: 5px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

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

  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
}

/* Removed inner scoped page padding to avoid duplicate space */
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
