:root {
  --header-offset: 120px;
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --text-dark: #333333;
  --text-light: #FFFFFF;
}

body {
  padding-top: var(--header-offset);
  margin: 0;
  font-family: Arial, sans-serif;
}

/* ===== Header Styles ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background-color: var(--secondary-color);
}

.header-top {
  background-color: #1B3A5C;
  width: 100%;
}

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

.logo {
  font-size: 32px;
  font-weight: 900;
  color: #FFFFFF;
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
}

.logo:hover {
  color: var(--primary-color);
}

.desktop-nav-buttons {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-login {
  background-color: var(--login-color);
  color: #FFFFFF;
}

.btn-login:hover {
  background-color: #d46906;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(234, 124, 7, 0.4);
}

.btn-register {
  background: linear-gradient(135deg, #26A9E0, #1E8FC0);
  color: #FFFFFF;
}

.btn-register:hover {
  background: linear-gradient(135deg, #1E8FC0, #26A9E0);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(38, 169, 224, 0.4);
}

.main-nav {
  background-color: #1B3A5C;
  width: 100%;
  display: flex;
  flex-direction: row;
  position: static;
}

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

.nav-container a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.nav-container a:hover {
  background-color: var(--primary-color);
  color: #FFFFFF;
}

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

/* Hamburger menu */
.hamburger-menu {
  display: none;
}

.mobile-menu-overlay {
  display: none;
}

/* ===== Footer Styles ===== */
.site-footer {
  background-color: #1B3A5C;
  color: #FFFFFF;
  padding: 40px 0 0;
  margin-top: 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 0 24px 30px;
}

.footer-column h3 {
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 8px;
  display: inline-block;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column a {
  color: #B0D4EB;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--primary-color);
}

.footer-logo {
  font-size: 28px;
  font-weight: 900;
  color: #FFFFFF;
  text-decoration: none;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 15px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  color: #B0D4EB;
  margin-bottom: 15px;
}

.footer-copyright {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.footer-copyright p {
  margin: 5px 0;
  font-size: 13px;
  color: #B0D4EB;
}

.footer-18+ {
  background-color: var(--primary-color);
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
  display: inline-block;
}

/* Copyright bottom bar */
.site-footer::after {
  content: "";
  display: block;
  background-color: #152B45;
  padding: 12px 0;
  text-align: center;
  font-size: 12px;
  color: #8FC5E8;
  border-top: 1px solid #2A4A6C;
}

/* ===== Mobile Styles ===== */
@media (max-width: 768px) {
  :root {
    --header-offset: 108px;
  }

  .header-container {
    width: 100%;
    max-width: none;
    padding: 8px 15px;
    min-height: 44px;
  }

  .nav-container {
    width: 100%;
    max-width: none;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .nav-container a {
    width: 100%;
    padding: 10px 8px;
    border-bottom: 1px solid #2A4A6C;
    font-size: 15px;
  }

  .nav-container a:last-child {
    border-bottom: none;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    z-index: 1001;
    background-color: #1B3A5C;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 70px 0 30px;
  }

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

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .mobile-nav-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 6px 15px;
    background-color: #1B3A5C;
    border-top: 1px solid #2A4A6C;
    z-index: 999;
    position: relative;
  }

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

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    cursor: pointer;
    position: absolute;
    top: 14px;
    left: 15px;
    z-index: 1002;
  }

  .hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #FFFFFF;
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  .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-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
  }

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

  .logo {
    font-size: 24px;
    position: relative;
    z-index: 1002;
    margin: 0 auto;
    text-align: center;
    width: fit-content;
  }

  .header-top {
    background-color: #1B3A5C;
  }

  .header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }

  .footer-container {
    grid-template-columns: 1fr;
    padding: 0 20px 20px;
    gap: 20px;
  }

  .footer-column {
    width: 100%;
  }

  .footer-copyright {
    align-items: center;
    text-align: center;
  }

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