:root {
  --header-offset: 122px;
  --primary: #FF8C1A;
  --secondary: #FFA53A;
  --bg: #0D0E12;
  --card-bg: #17191F;
  --text-main: #FFF3E6;
  --border: #A84F0C;
  --glow: #FFB04D;
  --deep-orange: #D96800;
}

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

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

/* Top bar */
.header-top {
  background: linear-gradient(180deg, #17191F 0%, #0D0E12 100%);
  border-bottom: 2px solid var(--border);
  width: 100%;
}

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

.logo {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: 2px;
  text-shadow: 0 0 12px var(--glow), 0 0 30px var(--glow);
  transition: text-shadow 0.3s ease, transform 0.3s ease;
}

.logo:hover {
  text-shadow: 0 0 18px var(--glow), 0 0 50px var(--glow);
  transform: scale(1.02);
}

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

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  letter-spacing: 0.5px;
  color: var(--text-main);
}

.btn-register {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  border: none;
  box-shadow: 0 0 15px rgba(255, 140, 26, 0.5);
}

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

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

.btn-login:hover {
  background: rgba(255, 140, 26, 0.15);
  box-shadow: 0 0 15px rgba(255, 140, 26, 0.4);
  transform: translateY(-2px);
}

/* Mobile buttons - hidden on desktop */
.mobile-nav-buttons {
  display: none;
}

/* Main navigation */
.main-nav {
  background: #17191F;
  border-bottom: 2px solid var(--border);
  display: flex;
  width: 100%;
  min-height: 52px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 8px 20px;
  gap: 4px;
  flex: 1;
}

.nav-container a {
  color: var(--text-main);
  text-decoration: none;
  padding: 8px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}

.nav-container a:hover {
  background: rgba(255, 140, 26, 0.25);
  color: var(--secondary);
  box-shadow: 0 0 10px rgba(255, 140, 26, 0.2);
}

/* Hamburger and overlay - hidden on desktop */
.hamburger-menu,
.mobile-menu-overlay {
  display: none;
}

/* ===== Footer Styles ===== */
.site-footer {
  background: #0D0E12;
  border-top: 3px solid var(--border);
  padding: 40px 0 0;
  margin-top: 50px;
  box-shadow: 0 -4px 20px rgba(255, 140, 26, 0.1);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 0 25px;
  flex-wrap: wrap;
}

.footer-col {
  flex: 1;
  min-width: 250px;
  margin-bottom: 20px;
}

.footer-about .footer-logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-main);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 12px;
  text-shadow: 0 0 10px var(--glow);
}

.footer-about p {
  color: #bbb;
  line-height: 1.7;
  font-size: 0.92rem;
}

.footer-col h4 {
  color: var(--secondary);
  font-size: 1.2rem;
  margin-bottom: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.footer-nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.3s ease, padding-left 0.3s ease;
  padding: 2px 0;
}

.footer-nav a:hover {
  color: var(--secondary);
  padding-left: 6px;
  text-shadow: 0 0 8px var(--glow);
}

.footer-contact p {
  color: #ccc;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 20px;
  text-align: center;
  margin-top: 20px;
  background: var(--card-bg);
}

.footer-bottom p {
  color: #aaa;
  font-size: 0.85rem;
  margin: 0;
}

/* ===== Mobile Styles ===== */
@media (max-width: 768px) {
  :root {
    --header-offset: 110px;
  }

  .header-container {
    width: 100%;
    max-width: none;
    padding: 8px 15px;
    min-height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    font-size: 1.8rem;
    order: 2;
    flex: 1;
    text-align: center;
  }

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

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 12px 15px;
    background: #17191F;
    border-bottom: 1px solid var(--border);
    min-height: 48px;
    align-items: center;
  }

  .mobile-nav-buttons .btn {
    padding: 8px 20px;
    font-size: 0.85rem;
    flex: 1;
    max-width: 180px;
  }

  .mobile-nav-buttons .btn-login {
    background: rgba(255, 140, 26, 0.1);
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1001;
    order: 1;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.3s ease;
  }

  .hamburger-menu:hover {
    background: rgba(255, 140, 26, 0.1);
  }

  .hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--glow);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 0 6px rgba(255, 176, 77, 0.5);
  }

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

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

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

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

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

  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #17191F;
    flex-direction: column;
    padding: 50px 20px 30px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    border-right: 2px solid var(--border);
    overflow-y: auto;
  }

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

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

  .nav-container a {
    display: block;
    width: 100%;
    padding: 12px 15px;
    font-size: 0.95rem;
    border-radius: 4px;
  }

  .nav-container a:hover {
    background: rgba(255, 140, 26, 0.15);
  }

  .footer-container {
    flex-direction: column;
    padding: 0 20px;
  }

  .footer-col {
    min-width: 100%;
  }

  .footer-bottom {
    padding: 15px 10px;
  }

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