:root {
  --header-offset: 122px;
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --btn-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  --card-bg: #17191F;
  --body-bg: #0D0E12;
  --text-main: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange: #D96800;
}

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

body {
  padding-top: var(--header-offset);
  background-color: var(--body-bg);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-main);
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Header Styles ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--card-bg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid var(--border-color);
}

/* Header Top */
.header-top {
  width: 100%;
  background-color: var(--card-bg);
}

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

.logo {
  display: inline-block;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--glow-color);
  letter-spacing: 1px;
}

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

/* Main Navigation */
.main-nav {
  width: 100%;
  display: flex;
  position: static;
  background-color: #1F2229;
  border-top: 1px solid var(--border-color);
}

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

.nav-link {
  display: block;
  padding: 8px 16px;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  transition: color 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
}

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

/* Buttons */
.btn {
  display: inline-block;
  background: var(--btn-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: 25px;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 140, 26, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 140, 26, 0.5);
}

.btn-register {
  font-weight: 800;
  letter-spacing: 0.5px;
}

.btn-login {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  box-shadow: none;
}

.btn-login:hover {
  background: rgba(255, 140, 26, 0.1);
  box-shadow: none;
}

/* Hamburger Menu - Hidden on Desktop */
.hamburger-menu {
  display: none;
}

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

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

/* ===== Footer Styles ===== */
.site-footer {
  background-color: #111318;
  border-top: 2px solid var(--primary-color);
  padding-top: 40px;
  margin-top: auto;
}

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

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-color);
  text-shadow: 0 0 8px var(--glow-color);
}

.footer-description {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 243, 230, 0.8);
}

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

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 14px;
  color: rgba(255, 243, 230, 0.8);
  transition: color 0.3s ease, padding-left 0.3s ease;
}

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

.footer-bottom {
  background-color: #0D0E12;
  border-top: 1px solid var(--border-color);
  padding: 15px 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 243, 230, 0.6);
}

/* ===== Responsive Styles ===== */
@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;
  }

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

  .main-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 280px;
    height: 100vh;
    background-color: #1F2229;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    border-right: 1px solid var(--border-color);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.5);
  }

  .main-nav.active {
    display: block;
    transform: translateX(0);
  }

  .nav-container {
    width: 100%;
    max-width: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 0;
    justify-content: flex-start;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 140, 26, 0.15);
    border-radius: 0;
    font-size: 15px;
  }

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

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

  .hamburger-line {
    display: block;
    width: 22px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

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

  .hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

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

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

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 8px 15px;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    min-height: 48px;
    align-items: center;
  }

  .mobile-nav-buttons .btn {
    padding: 8px 20px;
    font-size: 13px;
  }

  body.no-scroll {
    overflow: hidden;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 15px 20px;
  }

  .footer-column {
    text-align: left;
    padding: 0 10px;
  }

  .footer-heading {
    font-size: 15px;
  }

  .footer-nav a {
    font-size: 13px;
  }

  .footer-bottom {
    padding: 12px 10px;
    font-size: 12px;
  }

  .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;
}
