/* Header & Footer Shared CSS */
:root {
  --primary: #113B7A;
  --secondary: #1D5FD1;
  --btn-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;
  --header-offset: 120px;
}
body {
  padding-top: var(--header-offset);
  background-color: var(--deep-navy);
  margin: 0;
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.4);
  min-height: 50px;
}
.site-header .header-top {
  background-color: var(--primary);
  width: 100%;
  border-bottom: 1px solid var(--border);
}
.site-header .header-top .header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 30px;
  min-height: 44px;
}
.site-header .logo {
  font-size: 28px;
  font-weight: 800;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 1px;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.3);
  display: block;
  line-height: 1;
  text-transform: uppercase;
  background: linear-gradient(135deg, #F5D78E 0%, var(--gold) 35%, #F5D78E 70%, #FFFFFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(242, 193, 78, 0.2));
}
.site-header .desktop-nav-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}
.site-header .main-nav {
  background: var(--deep-navy);
  border-bottom: 1px solid var(--border);
  width: 100%;
  display: flex;
  flex-direction: row;
  position: static;
  transform: none;
  transition: none;
}
.site-header .main-nav .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 15px;
  width: 100%;
  flex-wrap: wrap;
}
.site-header .nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 14px;
  display: block;
  transition: all 0.3s ease;
  position: relative;
  line-height: 1;
  text-align: center;
}
.site-header .nav-link::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.site-header .nav-link:hover::after,
.site-header .nav-link.active::after {
  width: 60%;
}
.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: var(--gold);
}
.site-header .btn {
  display: inline-block;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 0 12px rgba(47, 128, 237, 0.3);
  line-height: 1.4;
  color: #FFFFFF !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  font-family: inherit;
}
.site-header .btn-register {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.site-header .btn-register:hover {
  box-shadow: 0 0 20px rgba(43, 115, 246, 0.6);
  transform: translateY(-1px);
}
.site-header .btn-login {
  background: var(--deep-navy);
  border: 2px solid var(--gold);
  color: var(--gold) !important;
  box-shadow: none;
  text-shadow: none;
}
.site-header .btn-login:hover {
  background: var(--gold);
  color: var(--deep-navy) !important;
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.4);
}
.site-header .hamburger-menu {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  gap: 5px;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1002;
}
.site-header .hamburger-menu .hamburger-line {
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  display: block;
  transition: all 0.3s ease;
}
.site-header .hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header .hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.site-header .hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.site-header .mobile-menu-overlay {
  display: none;
}
.site-header .mobile-nav-buttons {
  display: none;
}
.site-footer {
  background-color: var(--deep-navy);
  color: var(--text-main);
  border-top: 3px solid var(--gold);
  padding: 30px 0;
}
.site-footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  padding: 0 20px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.site-footer .footer-column {
  flex: 1;
  min-width: 200px;
}
.site-footer .footer-about {
  flex: 2;
  min-width: 250px;
}
.site-footer .footer-logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--gold);
  text-decoration: none;
  background: linear-gradient(135deg, #F5D78E 0%, var(--gold) 35%, #F5D78E 70%, #FFFFFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(242, 193, 78, 0.2));
  display: inline-block;
  margin-bottom: 15px;
  text-transform: uppercase;
}
.site-footer .footer-description {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 14px;
  margin-bottom: 20px;
}
.site-footer .footer-copyright {
  color: var(--text-secondary);
  font-size: 13px;
  border-top: 1px solid var(--divider);
  padding-top: 15px;
}
.site-footer .footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer .footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
  display: inline-block;
  padding: 3px 0;
}
.site-footer .footer-nav a:hover {
  color: var(--gold);
}
.site-footer .footer-title {
  color: var(--text-main);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.site-footer .footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--gold);
}
@media (max-width: 768px) {
  :root {
    --header-offset: 108px;
  }
  .site-header {
    min-height: 60px;
  }
  .site-header .header-top {
    position: relative;
  }
  .site-header .header-top .header-container {
    width: 100%;
    max-width: none;
    padding: 14px 15px;
    justify-content: center;
    min-height: 60px;
  }
  .site-header .header-top .logo {
    font-size: 24px;
    text-align: center;
  }
  .site-header .desktop-nav-buttons {
    display: none;
  }
  .site-header .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    background: var(--deep-navy);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    flex-direction: column;
    overflow-y: auto;
    flex-wrap: nowrap;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
  }
  .site-header .main-nav.active,
  .site-header .main-nav.open {
    display: block;
    transform: translateX(0);
  }
  .site-header .main-nav .nav-container {
    width: 100%;
    max-width: none;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px 15px;
    gap: 5px;
    align-items: stretch;
  }
  .site-header .nav-link {
    color: var(--text-main);
    font-size: 16px;
    padding: 14px 10px;
    border-bottom: 1px solid var(--divider);
    text-align: left;
  }
  .site-header .nav-link::after {
    content: '';
    position: absolute;
    bottom: auto;
    left: 0;
    top: 0;
    transform: none;
    width: 3px !important;
    height: 100%;
    background: var(--gold);
  }
  .site-header .nav-link:hover::after,
  .site-header .nav-link.active::after {
    width: 3px !important;
  }
  .site-header .hamburger-menu {
    display: flex;
  }
  .site-header .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 22, 43, 0.9);
    z-index: 1000;
    transition: opacity 0.3s ease;
  }
  .site-header .mobile-menu-overlay.active,
  .site-header .mobile-menu-overlay.visible {
    display: block;
  }
  .site-header .mobile-nav-buttons {
    display: flex;
    width: 100%;
    background: var(--primary);
    border-top: 1px solid var(--border);
    padding: 8px 15px;
    gap: 10px;
    justify-content: center;
    min-height: 48px;
    align-items: center;
    z-index: 999;
    position: relative;
  }
  .site-header .mobile-nav-buttons .btn {
    flex: 1;
    max-width: 180px;
    text-align: center;
    padding: 10px 15px;
    font-size: 13px;
  }
  .site-footer .footer-container {
    flex-direction: column;
    gap: 30px;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
  }
  .site-footer .footer-column {
    width: 100%;
    min-width: auto;
  }
  .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;
}
