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

body {
  padding-top: var(--header-offset);
  margin: 0;
  background-color: var(--deep-navy);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(242, 193, 78, 0.3) inset;
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: var(--deep-navy);
}

.header-top {
  background-color: var(--deep-navy);
  width: 100%;
  border-bottom: 2px solid var(--gold);
  min-height: 68px;
}

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

.logo {
  display: inline-block;
  color: var(--gold);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 2px;
  text-decoration: none;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
  line-height: 1;
  font-family: 'Arial Black', 'Segoe UI', Arial, sans-serif;
}

.desktop-nav-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  border: 2px solid var(--gold);
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(242, 193, 78, 0.2);
  line-height: 1.2;
}

.btn-register {
  background: var(--button-bg);
  color: #ffffff;
}

.btn-register:hover {
  box-shadow: 0 0 20px rgba(43, 115, 246, 0.6);
  transform: translateY(-2px);
}

.btn-download {
  background: linear-gradient(180deg, #F2C14E 0%, #BFA13A 100%);
  color: var(--deep-navy);
}

.btn-download:hover {
  box-shadow: 0 0 20px rgba(242, 193, 78, 0.6);
  transform: translateY(-2px);
}

.main-nav {
  display: flex;
  background-color: var(--primary);
  width: 100%;
  border-bottom: 1px solid var(--divider);
}

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

.nav-link {
  display: block;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.nav-link:hover,
.nav-link.active {
  color: #08162B;
  background: linear-gradient(140deg, #F2C14E, #FFE082);
  font-weight: 600;
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
  text-decoration: none;
}

.hamburger-menu {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 12px;
  flex-direction: column;
  gap: 5px;
  z-index: 1002;
  position: fixed;
  top: 10px;
  left: 12px;
}

.hamburger-menu span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--gold);
  border-radius: 3px;
  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-color: rgba(8, 22, 43, 0.88);
  z-index: 998;
}

.mobile-menu-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--divider);
}

.mobile-menu-title {
  color: var(--gold);
  font-size: 18px;
  font-weight: 700;
}

.mobile-menu-close {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 30px;
  cursor: pointer;
  line-height: 1;
}

.mobile-nav-buttons {
  display: none;
  background-color: var(--deep-navy);
  padding: 8px 15px;
  gap: 8px;
  justify-content: center;
  align-items: center;
  border-bottom: 2px solid var(--gold);
}

.site-footer {
  background-color: var(--deep-navy);
  border-top: 3px solid var(--gold);
  padding: 50px 20px 20px;
  font-family: 'Segoe UI', Arial, sans-serif;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 30px;
}

.footer-brand .footer-logo {
  color: var(--gold);
  font-size: 38px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(242, 193, 78, 0.4);
  display: inline-block;
  margin-bottom: 10px;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  padding-right: 20px;
}

.footer-certifications {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cert-badge {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.footer-column .footer-heading {
  color: var(--gold);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  padding: 2px 0;
}

.footer-links a:hover {
  color: var(--gold);
  padding-left: 5px;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--divider);
  padding-top: 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-bottom .copyright {
  margin: 0;
}

.footer-18 {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.7;
}

body.no-scroll {
  overflow: hidden;
}

@media (max-width: 768px) {
  :root {
    --header-offset: 110px;
  }

  .header-top {
    min-height: 60px;
    background-color: var(--deep-navy);
  }

  .header-container {
    width: 100%;
    max-width: none;
    justify-content: center;
    align-items: center;
    padding: 12px 15px;
    min-height: 60px;
  }

  .logo {
    font-size: 26px;
    text-align: center;
    flex: 1;
    order: 2;
    display: inline-block;
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    left: 15px;
    top: 12px;
    padding: 8px 10px;
    order: 1;
    background: transparent;
    border: none;
    position: fixed;
    z-index: 1002;
    margin: 0;
  }

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

  .mobile-nav-buttons {
    display: flex;
    padding: 8px 20px;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-nav-buttons .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
    text-align: center;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 340px;
    background-color: var(--deep-navy);
    height: 100vh;
    overflow-y: auto;
    padding: 0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-right: 2px solid var(--gold);
  }

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

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

  .mobile-menu-header {
    display: flex;
    width: 100%;
    box-sizing: border-box;
  }

  .nav-link {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 20px;
    font-size: 15px;
    border-bottom: 1px solid var(--divider);
    border-radius: 0;
    color: var(--text-main);
  }

  .nav-link:hover,
  .nav-link.active {
    background: linear-gradient(140deg, #F2C14E, #FFE082);
    color: var(--deep-navy);
    padding-left: 25px;
  }

  .mobile-menu-overlay.active {
    display: block;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer-brand .footer-tagline {
    padding: 0 10px;
  }

  .footer-links {
    gap: 8px;
  }

  .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;
}
