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

body {
  padding-top: var(--header-offset);
  margin: 0;
  background-color: var(--deep-navy);
  color: var(--text-main);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--deep-navy);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid var(--divider-color);
}

.header-top {
  background: var(--primary-color);
  width: 100%;
  border-bottom: 1px solid var(--divider-color);
}

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

.logo {
  display: inline-block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-color);
  text-decoration: none;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(242, 193, 78, 0.3);
}

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

.btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-register {
  background: var(--btn-gradient);
  color: #fff;
}

.btn-login {
  background: #ffffff;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(47, 115, 246, 0.4);
}

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

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

.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 0;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-menu li {
  margin: 0;
}

.nav-link {
  display: block;
  padding: 12px 16px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--gold-color);
}

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

.hamburger-menu {
  display: none;
}

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

.site-footer {
  background: var(--deep-navy);
  border-top: 2px solid var(--primary-color);
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 0 20px;
}

.footer-column {
  flex: 1 1 250px;
}

.footer-heading {
  color: var(--gold-color);
  font-size: 1.1rem;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gold-color);
}

.footer-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

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

.footer-nav li {
  margin-bottom: 8px;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--gold-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--divider-color);
  color: var(--text-secondary);
  font-size: 0.85rem;
}

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

  body {
    padding-top: var(--header-offset);
    overflow-x: hidden;
    max-width: 100%;
  }

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

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

  .header-top {
    background: var(--primary-color);
  }

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

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

  .logo {
    display: block;
    font-size: 1.4rem;
    text-align: center;
    flex: 1;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--deep-navy);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1002;
    overflow-y: auto;
    border-right: 1px solid var(--primary-color);
    border-bottom: none;
  }

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

  .nav-container {
    width: 100%;
    max-width: none;
    padding: 20px 0;
    justify-content: flex-start;
  }

  .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid var(--divider-color);
  }

  .nav-link {
    display: block;
    padding: 15px 20px;
    color: var(--text-main);
    font-size: 1rem;
  }

  .nav-link:hover {
    background: var(--primary-color);
  }

  .mobile-nav-buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 10px 15px;
    background: var(--primary-color);
    border-bottom: 1px solid var(--divider-color);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
    position: relative;
  }

  .mobile-nav-buttons .btn {
    flex: 1;
    max-width: 150px;
    padding: 10px 15px;
    font-size: 0.85rem;
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: 1002;
    position: absolute;
    top: 10px;
    left: 15px;
    padding: 8px;
    gap: 4px;
  }

  .hamburger-menu .hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: all 0.3s ease;
  }

  .hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }

  .hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1001;
  }

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

  .no-scroll {
    overflow: hidden !important;
  }

  .site-footer {
    padding: 30px 0 15px;
  }

  .footer-container {
    padding: 0 15px;
    gap: 20px;
  }

  .footer-column {
    flex: 1 1 100%;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
