:root {
  --header-offset: 122px;
}
body {
  padding-top: var(--header-offset);
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  background-color: #0D0E12;
}
.header-top {
  background: linear-gradient(180deg, #1F1C17 0%, #17191F 100%);
  width: 100%;
  border-bottom: 2px solid #A84F0C;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  min-height: 68px;
}
.logo {
  font-size: 28px;
  font-weight: 800;
  color: #FFB04D;
  text-decoration: none;
  letter-spacing: 1px;
  text-shadow: 0 0 15px rgba(255, 138, 26, 0.6);
  display: inline-block;
}
.desktop-nav-buttons {
  display: flex;
  gap: 12px;
}
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}
.btn-register {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  box-shadow: 0 0 15px rgba(255, 138, 26, 0.4);
}
.btn-login {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  box-shadow: 0 0 15px rgba(255, 138, 26, 0.4);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255, 138, 26, 0.6);
}
.main-nav {
  background-color: #1F1B17;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  gap: 20px;
}
.nav-link {
  color: #FFF3E6;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.3s ease;
  padding: 8px 4px;
}
.nav-link:hover {
  color: #FFA53A;
  text-shadow: 0 0 8px rgba(255, 165, 58, 0.4);
}
.mobile-nav-buttons {
  display: none;
}
.hamburger-menu {
  display: none;
}
.mobile-menu-overlay {
  display: none;
}
.mobile-menu {
  display: none;
}
.site-footer {
  background-color: #0D0E12;
  color: #FFF3E6;
  padding: 40px 0 0;
  border-top: 2px solid #A84F0C;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}
.footer-logo {
  font-size: 28px;
  font-weight: 800;
  color: #FFB04D;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 12px;
}
.footer-description {
  font-size: 14px;
  line-height: 1.6;
  color: #FFF3E6;
  opacity: 0.8;
}
.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a,
.footer-contact a {
  color: #FFF3E6;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}
.footer-nav a:hover,
.footer-contact a:hover {
  color: #FFA53A;
}
.footer-bottom {
  text-align: center;
  padding: 20px;
  border-top: 1px solid #A84F0C;
  margin-top: 40px;
  font-size: 13px;
  color: #FFF3E6;
  opacity: 0.7;
}
@media (max-width: 768px) {
  :root {
    --header-offset: 110px;
  }
  .header-container {
    width: 100%;
    max-width: none;
    padding: 8px 15px;
    min-height: 60px;
  }
  .logo {
    font-size: 24px;
    text-align: center;
    flex: 1;
  }
  .header-top {
    padding: 0;
    border-bottom: 1px solid #A84F0C;
  }
  .desktop-nav-buttons {
    display: none;
  }
  .main-nav {
    display: none;
  }
  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(180deg, #1F1C17 0%, #17191F 100%);
    padding: 10px 15px;
    border-bottom: 1px solid #A84F0C;
  }
  .mobile-nav-buttons .btn {
    flex: 1;
    max-width: 160px;
    padding: 8px 16px;
    font-size: 13px;
  }
  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1002;
    background: transparent;
    border: none;
    padding: 0;
    order: -1;
  }
  .hamburger-menu .bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #FFA53A;
    border-radius: 2px;
    transition: all 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);
  }
  .mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background-color: #17191F;
    padding: 20px;
    z-index: 1001;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.6);
    border-right: 2px solid #A84F0C;
  }
  .mobile-menu.active {
    display: flex;
    transform: translateX(0);
  }
  .mobile-menu .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid #2A2D3A;
    color: #FFF3E6;
    font-size: 16px;
  }
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
  }
  .mobile-menu-overlay.active {
    display: block;
  }
  .site-footer {
    padding-top: 30px;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 20px;
  }
  .footer-column {
    text-align: center;
  }
  .footer-nav,
  .footer-contact {
    align-items: 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;
}
