:root {
  --header-offset: 122px;
}
body {
  padding-top: var(--header-offset);
  background-color: #0D0E12;
  margin: 0;
  font-family: Arial, sans-serif;
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  background-color: #17191F;
}
.header-top {
  background-color: #17191F;
  width: 100%;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  min-height: 68px;
  box-sizing: border-box;
}
.logo {
  display: inline-block;
  color: #FFA53A;
  font-size: 32px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -1px;
  text-transform: lowercase;
  text-shadow: 0 0 12px #FFB04D, 0 0 20px #D96800;
  line-height: 1.2;
}
.desktop-nav-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}
.btn {
  display: inline-block;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #17191F;
  border: 1px solid #FFB04D;
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(168, 79, 12, 0.4);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 176, 77, 0.6);
  filter: brightness(1.05);
}
.btn-register {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #0D0E12;
}
.btn-login {
  background: #17191F;
  color: #FFA53A;
  border: 2px solid #FFA53A;
  box-shadow: none;
}
.btn-login:hover {
  background: #0D0E12;
  border-color: #FFB04D;
  color: #FFB04D;
}
.main-nav {
  background-color: #0D0E12;
  border-top: 2px solid #A84F0C;
  width: 100%;
  display: flex;
  flex-direction: row;
  position: static;
  min-height: 52px;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  flex-wrap: wrap;
  gap: 0;
  width: 100%;
  box-sizing: border-box;
}
.nav-link {
  color: #FFF3E6;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 16px;
  display: inline-block;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.nav-link:hover {
  color: #FFA53A;
  background: rgba(255, 165, 58, 0.06);
  border-bottom-color: #FFA53A;
}
.nav-link.active {
  color: #FFA53A;
  border-bottom-color: #D96800;
}
.mobile-nav-buttons {
  display: none;
}
.hamburger-menu {
  display: none;
}
.mobile-menu-overlay {
  display: none;
}
.site-footer {
  background-color: #17191F;
  border-top: 4px solid #A84F0C;
  padding: 50px 20px 20px;
  margin-top: 40px;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-logo {
  display: inline-block;
  color: #FFA53A;
  font-size: 30px;
  font-weight: 900;
  text-decoration: none;
  text-shadow: 0 0 12px #FFB04D;
  margin-bottom: 15px;
}
.footer-desc {
  color: #FFF3E6;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}
.footer-title {
  color: #FFA53A;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #A84F0C;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #FFF3E6;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s, padding-left 0.3s;
  opacity: 0.9;
}
.footer-nav a:hover {
  color: #FFA53A;
  padding-left: 5px;
  opacity: 1;
}
.footer-bottom {
  border-top: 1px solid rgba(168, 79, 12, 0.3);
  padding-top: 20px;
  text-align: center;
}
.footer-bottom p {
  color: #FFF3E6;
  font-size: 14px;
  margin: 0;
  opacity: 0.8;
}
@media (max-width: 768px) {
  :root {
    --header-offset: 110px;
  }
  .header-container {
    width: 100%;
    max-width: none;
    padding: 8px 15px;
    min-height: 60px;
  }
  .nav-container {
    width: 100%;
    max-width: none;
    padding: 0 15px;
  }
  .site-header {
    display: block;
  }
  .header-top {
    position: relative;
  }
  .header-container {
    justify-content: space-between;
  }
  .logo {
    font-size: 26px;
    margin: 0 auto;
    display: block;
  }
  .desktop-nav-buttons {
    display: none;
  }
  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 8px 15px;
    background-color: #17191F;
    border-top: 1px solid rgba(168, 79, 12, 0.3);
    min-height: 48px;
    align-items: center;
  }
  .mobile-nav-buttons .btn {
    flex: 1;
    max-width: 160px;
    padding: 8px 12px;
    font-size: 13px;
  }
  .main-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 82%;
    max-width: 320px;
    height: 100vh;
    background-color: #17191F;
    z-index: 1002;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    border-top: none;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    padding-top: 60px;
  }
  .main-nav.active {
    display: block;
    transform: translateX(0);
  }
  .main-nav .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0;
  }
  .main-nav .nav-link {
    display: block;
    width: 100%;
    padding: 15px 25px;
    border-bottom: 1px solid rgba(168, 79, 12, 0.15);
    font-size: 15px;
    box-sizing: border-box;
  }
  .main-nav .nav-link:hover {
    background: rgba(255, 165, 58, 0.08);
  }
  .hamburger-menu {
    display: block;
    width: 38px;
    height: 38px;
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    margin: auto 0;
    cursor: pointer;
    background: #17191F;
    border: 1px solid #A84F0C;
    border-radius: 6px;
    padding: 8px;
    box-sizing: border-box;
    z-index: 1003;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
  .hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: #FFA53A;
    margin: 4px 0;
    border-radius: 3px;
    transition: all 0.35s ease;
  }
  .hamburger-menu.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-menu.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 14, 18, 0.85);
    z-index: 1001;
  }
  .mobile-menu-overlay.active {
    display: block;
  }
  .site-footer {
    padding: 40px 15px 20px;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
  }
  .footer-nav {
    align-items: flex-start;
  }
  .footer-nav a {
    font-size: 14px;
  }
  .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;
}
