:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --header-offset: 164px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  margin: 0;
  padding: 0;
  padding-top: var(--header-offset);
  font-family: Arial, 'Helvetica Neue', sans-serif;
  background-color: #F4F7FB;
  color: #1F2D3D;
  overflow-x: hidden;
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #FFFFFF;
  box-shadow: 0 2px 15px rgba(31, 45, 61, 0.12);
  min-height: auto;
}
.header-top {
  width: 100%;
  background: linear-gradient(135deg, #1E5AFF 0%, #2F6BFF 60%, #4A8BFF 100%);
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 25px;
  min-height: 58px;
}
.logo {
  display: inline-block;
  font-size: 26px;
  font-weight: 800;
  color: #FFFFFF;
  text-decoration: none;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}
.logo:hover {
  color: #F0F5FF;
}
.desktop-nav-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  padding: 11px 22px;
  border-radius: 25px;
  transition: all 0.25s ease;
  text-align: center;
  border: none;
  cursor: pointer;
  letter-spacing: 0.3px;
}
.btn-register {
  background: linear-gradient(180deg, #FF6B4A 0%, #E63A17 100%);
  color: #FFFFFF;
  box-shadow: 0 3px 8px rgba(230, 58, 23, 0.35);
}
.btn-register:hover {
  background: linear-gradient(180deg, #FF7A5E 0%, #F0431E 100%);
  box-shadow: 0 4px 14px rgba(230, 58, 23, 0.45);
  transform: translateY(-1px);
}
.btn-login {
  background: linear-gradient(180deg, #FFFFFF 0%, #F0F5FF 100%);
  color: #2F6BFF;
  border: 1px solid #2F6BFF;
}
.btn-login:hover {
  background: #FFFFFF;
  color: #1E5AFF;
  border-color: #1E5AFF;
  box-shadow: 0 3px 10px rgba(47, 107, 255, 0.2);
}
.main-nav {
  width: 100%;
  background-color: #FFFFFF;
  display: flex;
  flex-direction: row;
  position: static;
  border-top: 1px solid #D6E2FF;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0 20px;
}
.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: inline-block;
  text-decoration: none;
  color: #1F2D3D;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 15px;
  line-height: 1.2;
  transition: color 0.2s ease;
  border-bottom: 3px solid transparent;
}
.nav-link:hover {
  color: #2F6BFF;
}
.nav-link.active {
  color: #2F6BFF;
  border-bottom-color: #2F6BFF;
}
.mobile-nav-buttons {
  display: none;
}
.mobile-menu-overlay {
  display: none;
}
.site-footer {
  width: 100%;
  background-color: #1F2D3D;
  color: #DCE5F2;
  margin-top: 60px;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 35px;
  padding: 50px 25px 35px;
}
.footer-brand {
  padding-right: 20px;
}
.footer-logo {
  display: inline-block;
  color: #FFFFFF;
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
  line-height: 1.2;
}
.footer-logo:hover {
  color: #6FA3FF;
}
.footer-brand p {
  font-size: 15px;
  line-height: 1.7;
  color: #A8BFD9;
  margin-bottom: 20px;
}
.footer-age-warning {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 15px;
}
.footer-age-warning span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border: 2px solid #FFD35A;
  border-radius: 50%;
  color: #FFD35A;
  font-weight: 800;
  font-size: 14px;
}
.footer-age-warning p {
  font-size: 13px;
  line-height: 1.4;
  color: #A8BFD9;
  margin-bottom: 0;
}
.footer-title {
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid #2F6BFF;
  display: inline-block;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links li {
  margin: 0;
}
.footer-links a {
  color: #A8BFD9;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  transition: color 0.2s ease;
  display: inline-block;
}
.footer-links a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  text-align: center;
}
.footer-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.copyright {
  color: #A8BFD9;
  font-size: 14px;
  margin: 0;
}
.footer-note {
  color: #607A99;
  font-size: 13px;
  margin: 0;
}
@media (max-width: 992px) {
  .nav-link {
    padding: 14px 8px;
    font-size: 14px;
  }
  .footer-container {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}
@media (max-width: 768px) {
  :root {
    --header-offset: 148px;
  }
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
    padding-top: var(--header-offset);
  }
  .header-container {
    width: 100%;
    max-width: none;
    padding: 8px 15px;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
  }
  .logo {
    font-size: 20px;
    order: 2;
    flex: 0 0 auto;
    text-align: center;
    margin: 0 auto;
  }
  .desktop-nav-buttons {
    display: none;
  }
  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    background-color: #F4F7FB;
    padding: 8px 15px;
    border-top: 1px solid #D6E2FF;
    flex-wrap: wrap;
  }
  .mobile-nav-buttons .btn {
    flex: 1 1 auto;
    max-width: 160px;
    padding: 10px 12px;
    font-size: 13px;
  }
  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background-color: #FFFFFF;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    z-index: 1002;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-top: none;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    padding-top: 60px;
  }
  .main-nav.active {
    display: block;
    transform: translateX(0);
  }
  .nav-container {
    width: 100%;
    max-width: none;
    padding: 0;
    display: block;
    margin: 0;
  }
  .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
  }
  .nav-item {
    width: 100%;
    border-bottom: 1px solid #D6E2FF;
  }
  .nav-link {
    display: block;
    width: 100%;
    padding: 13px 20px;
    color: #1F2D3D;
    font-size: 15px;
    border-bottom: none;
  }
  .nav-link.active {
    background-color: #F0F5FF;
    color: #2F6BFF;
    border-left: 3px solid #2F6BFF;
    border-bottom: none;
  }
  .nav-link:hover {
    background-color: #F4F7FB;
  }
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(31, 45, 61, 0.6);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .mobile-menu-overlay.active {
    display: block;
    opacity: 1;
  }
  .hamburger-btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1003;
    order: 1;
    padding: 0;
    margin-right: 5px;
    gap: 6px;
  }
  .hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #FFFFFF;
    border-radius: 3px;
    transition: all 0.3s ease;
  }
  .hamburger-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger-btn.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding: 35px 15px 25px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    padding-right: 0;
    text-align: center;
  }
  .footer-logo {
    font-size: 22px;
  }
  .footer-age-warning {
    justify-content: center;
  }
  .footer-title {
    font-size: 16px;
  }
  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
    gap: 5px;
    padding: 0 15px;
  }
  .copyright, .footer-note {
    font-size: 13px;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
