:root {
  --primary: #2F6BFF;
  --secondary: #6FA3FF;
  --bg: #F4F7FB;
  --card-bg: #FFFFFF;
  --text-main: #1F2D3D;
  --text-dark: #000000;
  --border-color: #D6E2FF;
  --glow: #A5C4FF;
  --btn-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --header-offset: 122px;
  --header-top-bg: #1A3E8C;
  --main-nav-bg: #2F6BFF;
  --header-top-height: 68px;
  --main-nav-height: 52px;
  --mobile-buttons-height: 48px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  padding-top: var(--header-offset);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-main);
  background-color: var(--bg);
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(31, 45, 61, 0.15);
  background-color: #FFFFFF;
}
.header-top {
  box-sizing: border-box;
  min-height: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--header-top-bg);
  width: 100%;
}
.header-container {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 30px;
  padding-right: 30px;
}
.logo {
  text-decoration: none;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #FFFFFF, #A5C4FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}
.logo img {
  display: block;
  max-height: 60px;
  height: auto;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}
.desktop-nav-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}
.mobile-nav-buttons {
  box-sizing: border-box;
  display: none;
  min-height: 48px;
}
.main-nav {
  box-sizing: border-box;
  min-height: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--main-nav-bg);
  width: 100%;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}
.nav-container {
  box-sizing: border-box;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  gap: 4px;
}
.nav-link {
  color: #FFFFFF;
  text-decoration: none;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}
.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
}
.nav-link.active {
  background-color: rgba(255, 255, 255, 0.25);
}
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.overlay.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
}
.hamburger-menu .bar {
  display: block;
  width: 24px;
  height: 3px;
  background-color: #FFFFFF;
  margin: 4px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger-menu.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-menu.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  box-sizing: border-box;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn-register {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(47, 107, 255, 0.4);
  border-color: #FFFFFF;
}
.btn-register:hover {
  box-shadow: 0 6px 16px rgba(47, 107, 255, 0.5);
}
.btn-login {
  background: #FFFFFF;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
  box-shadow: 0 4px 12px rgba(47, 107, 255, 0.2);
}
.btn-login:hover {
  box-shadow: 0 6px 16px rgba(47, 107, 255, 0.3);
}
.site-footer {
  background-color: #1A2B4A;
  color: #D6E2FF;
  width: 100%;
}
.footer-top-row {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 0;
}
.footer-top-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.footer-logo {
  color: #FFFFFF;
  font-size: 28px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 2px;
}
.footer-description {
  font-size: 14px;
  line-height: 1.6;
  color: #D6E2FF;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.footer-title {
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav li a {
  color: #A5C4FF;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-nav li a:hover {
  color: #FFFFFF;
  padding-left: 5px;
}
.footer-mid-area {
  background-color: #16223B;
  padding: 30px 20px;
}
.footer-mid-row-1,
.footer-mid-row-2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 20px;
}
.footer-bottom {
  text-align: center;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #101A2E;
}
.copyright {
  font-size: 14px;
  color: #A5C4FF;
}
.footer-slot-anchor-inner {
  display: block;
}
@media (max-width: 768px) {
  :root {
    --header-offset: 122px;
    --header-top-height: 60px;
    --main-nav-height: 48px;
    --mobile-buttons-height: 48px;
  }
  .header-top {
    min-height: 60px !important;
    height: 60px !important;
  }
  .header-container {
    width: 100%;
    max-width: none;
    padding-left: 15px;
    padding-right: 15px;
  }
  .logo {
    font-size: 26px;
  }
  .logo img {
    max-height: 56px !important;
    display: block !important;
    max-width: 100%;
    height: auto;
  }
  .desktop-nav-buttons {
    display: none !important;
  }
  .mobile-nav-buttons {
    display: flex !important;
    align-items: center;
    min-height: 48px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    background-color: #1A3E8C;
  }
  .mobile-nav-buttons .btn {
    flex: 1;
    min-width: 0;
    max-width: calc(50% - 5px);
    box-sizing: border-box;
    padding: 8px 12px;
    font-size: 13px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .main-nav {
    min-height: 48px !important;
    height: 48px !important;
    position: fixed;
    top: 60px;
    left: 0;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    background-color: #FFFFFF;
    transform: translateX(-110%);
    transition: transform 0.3s ease;
    z-index: 1001;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    padding-top: 10px;
  }
  .main-nav.active {
    display: flex;
    transform: translateX(0);
  }
  .nav-container {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 4px;
    width: 100%;
    max-width: none;
  }
  .nav-link {
    color: var(--text-main);
    padding: 14px 20px;
    font-size: 15px;
    border-radius: 0;
    border-bottom: 1px solid #D6E2FF;
    white-space: normal;
  }
  .nav-link:hover {
    background-color: var(--bg);
    color: var(--primary);
  }
  .nav-link.active {
    background-color: var(--primary);
    color: #FFFFFF;
  }
  .overlay.active {
    display: block;
  }
  .hamburger-menu {
    display: block;
    z-index: 1002;
  }
  .header-container {
    position: relative;
  }
  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 20px 15px;
  }
  .footer-mid-row-1,
  .footer-mid-row-2 {
    grid-template-columns: 1fr 1fr;
  }
  .footer-bottom {
    padding: 15px;
  }
  .footer-top-row {
    padding: 15px 15px 0;
  }
}
@media (max-width: 768px) {
  .site-header {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .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;
}
