:root {
  --primary: #FF8C1A;
  --primary-light: #FFA53A;
  --dark-bg: #0D0E12;
  --card-bg: #17191F;
  --text-main: #FFF3E6;
  --btn-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  --header-offset: 166px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  padding-top: var(--header-offset);
  background-color: var(--dark-bg);
  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.5);
  background-color: #1a1c23;
}

.header-top {
  background: linear-gradient(135deg, #1a1c23 0%, #2a220f 100%);
  width: 100%;
  border-bottom: 2px solid var(--primary);
}

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

.logo {
  display: inline-block;
  font-size: 36px;
  font-weight: 900;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -1px;
  background: var(--btn-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 8px rgba(255, 140, 26, 0.5));
}

.logo:hover {
  filter: drop-shadow(0 0 15px rgba(255, 140, 26, 0.9));
}

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

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-transform: uppercase;
  min-width: 120px;
  text-align: center;
}

.btn-register {
  background: var(--btn-gradient);
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 138, 0, 0.4);
}

.btn-register:hover {
  box-shadow: 0 0 25px rgba(255, 138, 0, 0.7);
  transform: translateY(-2px);
}

.btn-login {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--primary);
}

.btn-login:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 140, 26, 0.4);
}

.main-nav {
  background-color: #0d0e12;
  width: 100%;
  display: flex;
  border-top: 1px solid var(--primary);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 12px 20px;
  min-height: 52px;
  gap: 15px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(255, 140, 26, 0.1);
}

.nav-link.active {
  color: var(--primary);
  background: rgba(255, 140, 26, 0.15);
}

.hamburger-menu {
  display: none;
}

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

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

.site-footer {
  background-color: #0d0e12;
  border-top: 3px solid var(--primary);
  padding: 60px 0 20px;
  color: var(--text-main);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding: 0 30px;
}

.footer-logo {
  display: inline-block;
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.9;
}

.footer-heading {
  color: var(--primary);
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

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

.footer-nav li a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
  opacity: 0.9;
}

.footer-nav li a:hover {
  color: var(--primary);
  padding-left: 5px;
  opacity: 1;
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 20px 30px 0;
  border-top: 1px solid rgba(255, 140, 26, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: var(--text-main);
  font-size: 14px;
  opacity: 0.9;
}

.footer-18 {
  font-size: 18px !important;
  font-weight: 700;
  color: var(--primary) !important;
  padding: 4px 12px;
  border: 2px solid var(--primary);
  border-radius: 6px;
  opacity: 1 !important;
}

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

  .header-container {
    width: 100%;
    max-width: none;
    padding: 10px 15px;
    min-height: 60px;
    position: relative;
  }

  .logo {
    font-size: 28px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

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

  .main-nav {
    display: none;
    position: fixed;
    top: 98px;
    left: 0;
    width: 280px;
    height: calc(100vh - 98px);
    background: #17191f;
    flex-direction: column;
    align-items: stretch;
    transform: none;
    transition: none;
    border-top: none;
    z-index: 1000;
    overflow-y: auto;
  }

  .main-nav.active {
    display: flex;
  }

  .nav-container {
    width: 100%;
    max-width: none;
    flex-direction: column;
    padding: 20px 15px;
    align-items: stretch;
    gap: 5px;
  }

  .nav-link {
    font-size: 15px;
    padding: 10px 15px;
    border-radius: 8px;
    border-bottom: 1px solid rgba(255, 140, 26, 0.1);
  }

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

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

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

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

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

  .mobile-menu-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .mobile-nav-buttons {
    display: flex;
    background-color: #1a1c23;
    padding: 8px 15px;
    gap: 10px;
    min-height: 48px;
    border-top: 1px solid rgba(255, 140, 26, 0.2);
  }

  .mobile-nav-buttons .btn {
    flex: 1;
    padding: 8px 16px;
    font-size: 14px;
  }

  .mobile-nav-buttons .btn-register {
    order: 1;
  }

  .mobile-nav-buttons .btn-login {
    order: 2;
  }

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

  body {
    overflow-x: hidden;
  }

  .footer-container {
    width: 100%;
    max-width: none;
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 30px;
  }

  .footer-bottom {
    padding: 15px 20px 0;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .footer-18 {
    font-size: 16px !important;
  }
}

.page-content img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
