@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;
  }
  .header-container {
    width: 100% !important;
    max-width: none !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .nav-container {
    width: 100% !important;
    max-width: none !important;
  }
}
:root {
  --header-offset: 122px;
}
body {
  padding-top: var(--header-offset);
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background-color: #08162B;
}
.header-top {
  background-color: #113B7A;
  width: 100%;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 68px;
  padding-left: 30px;
  padding-right: 30px;
}
.logo {
  display: block;
  color: #F3F8FF;
  font-size: 28px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(79, 168, 255, 0.5);
}
.logo:hover {
  color: #F2C14E;
}
.desktop-nav-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #F3F8FF;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-register {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  box-shadow: 0 2px 8px rgba(43, 115, 246, 0.4);
}
.btn-login {
  background: linear-gradient(180deg, #F2C14E 0%, #D4A032 100%);
  color: #08162B;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(79, 168, 255, 0.4);
}
.main-nav {
  background-color: #1D5FD1;
  width: 100%;
  display: flex;
  border-top: 2px solid #244D84;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 10px;
  flex-wrap: wrap;
  gap: 4px;
}
.nav-link {
  color: #F3F8FF;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 4px;
  transition: background-color 0.3s;
}
.nav-link:hover {
  background-color: rgba(243, 248, 255, 0.2);
  color: #F2C14E;
}
.mobile-nav-buttons {
  display: none;
}
.hamburger-menu {
  display: none;
}
.mobile-menu-overlay {
  display: none;
}
.site-footer {
  background-color: #08162B;
  color: #AFC4E8;
  padding: 50px 20px 20px;
  margin-top: 40px;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
}
.footer-logo {
  font-size: 26px;
  font-weight: 800;
  color: #F3F8FF;
  text-decoration: none;
  display: inline-block;
}
.footer-logo:hover {
  color: #F2C14E;
}
.footer-description {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #AFC4E8;
}
.footer-title {
  color: #F3F8FF;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  position: relative;
}
.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: #F2C14E;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: #AFC4E8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: #F2C14E;
}
.footer-bottom {
  border-top: 1px solid #1B3357;
  margin-top: 40px;
  padding-top: 16px;
  text-align: center;
}
.copyright {
  color: #AFC4E8;
  font-size: 14px;
}
#copyright-year {
  color: #F2C14E;
}
@media (max-width: 768px) {
  :root {
    --header-offset: 110px;
  }
  .header-container {
    width: 100%;
    max-width: none;
    padding-left: 15px;
    padding-right: 15px;
    min-height: 60px;
  }
  .logo {
    font-size: 22px;
    margin-right: auto;
  }
  .desktop-nav-buttons {
    display: none;
  }
  .main-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 280px;
    background-color: #113B7A;
    align-items: flex-start;
    justify-content: flex-start;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    padding-top: 70px;
    overflow-y: auto;
  }
  .main-nav.active {
    display: flex;
    transform: translateX(0);
  }
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 10px 20px;
  }
  .nav-link {
    width: 100%;
    padding: 12px 10px;
    border-bottom: 1px solid #244D84;
    font-size: 16px;
  }
  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 8px 15px;
    background-color: #08162B;
    border-top: 1px solid #1B3357;
    min-height: 48px;
    align-items: center;
  }
  .mobile-nav-buttons .btn {
    flex: 1;
    max-width: 180px;
    text-align: center;
    font-size: 13px;
    padding: 8px 12px;
  }
  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
    order: -1;
    margin-right: 10px;
  }
  .hamburger-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #F3F8FF;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 22, 43, 0.7);
    z-index: 1000;
    transition: opacity 0.3s ease;
  }
  .mobile-menu-overlay.active {
    display: block;
    opacity: 1;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-links a {
    padding: 4px 0;
  }
  .site-footer {
    padding: 40px 15px 15px;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
