/* ===== Header & Footer Styles ===== */
:root {
  --header-offset: 164px;
  --primary: #FF8C1A;
  --primary-light: #FFA53A;
  --primary-dark: #D96800;
  --bg-card: #17191F;
  --bg-main: #0D0E12;
  --text-main: #FFF3E6;
  --border-color: #A84F0C;
  --glow: #FFB04D;
}

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

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

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4), 0 0 1px rgba(255, 140, 26, 0.3);
  background-color: var(--bg-card);
}

/* Header top area */
.header-top {
  background-color: var(--bg-card);
  width: 100%;
  border-bottom: 1px solid var(--border-color);
}

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

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--primary);
}

/* Desktop nav buttons */
.desktop-nav-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.btn {
  display: inline-block;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border-radius: 6px;
  line-height: 1.4;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-register {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.btn-register:hover {
  background: linear-gradient(180deg, #ffb258 0%, #e87400 100%);
  box-shadow: 0 0 15px rgba(255, 176, 77, 0.3);
  transform: translateY(-2px);
}

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

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

.btn-download {
  background: var(--bg-main);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-download:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 10px rgba(255, 140, 26, 0.2);
}

/* Main nav */
.main-nav {
  background-color: var(--bg-main);
  width: 100%;
  display: flex;
  border-top: 1px solid rgba(255, 140, 26, 0.2);
  border-bottom: 1px solid var(--border-color);
  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;
  flex-wrap: wrap;
  gap: 4px;
}

.nav-container a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.nav-container a:hover {
  color: var(--primary);
  background: rgba(255, 140, 26, 0.1);
  text-shadow: 0 0 10px rgba(255, 140, 26, 0.3);
}

/* Hamburger menu */
.hamburger-menu {
  display: none;
  width: 34px;
  height: 32px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  padding: 4px 0;
  position: absolute;
  left: 16px;
  top: 18px;
  z-index: 1001;
}

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

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

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

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

.hamburger-menu:hover span {
  background: var(--primary);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  display: none;
}

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

/* ===== Footer ===== */
.site-footer {
  background-color: var(--bg-card);
  border-top: 2px solid var(--border-color);
  padding: 40px 0 0;
  margin-top: 60px;
}

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

.footer-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 16px;
}

.footer-logo:hover {
  color: var(--primary);
}

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

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

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

.footer-nav a {
  color: rgba(255, 243, 230, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.footer-nav a:hover {
  color: var(--primary);
  padding-left: 6px;
  text-shadow: 0 0 8px rgba(255, 140, 26, 0.4);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 140, 26, 0.2);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 14px;
  color: rgba(255, 243, 230, 0.6);
}

.footer-bottom p {
  margin: 0;
}

.footer-18 {
  background: var(--primary-dark);
  color: var(--text-main);
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  border: 2px solid var(--primary);
}

.footer-18:hover {
  box-shadow: 0 0 10px rgba(255, 140, 26, 0.4);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  :root {
    --header-offset: 148px;
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
  }

  .header-top {
    width: 100%;
    min-height: 60px;
  }

  .header-container {
    width: 100%;
    max-width: 100%;
    padding: 8px 50px;
    justify-content: center;
    min-height: 60px;
  }

  .logo {
    font-size: 20px;
    text-align: center;
    width: 100%;
    display: block;
  }

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

  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    z-index: 1002;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    justify-content: flex-start;
    align-items: stretch;
    padding-top: 72px;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
  }

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

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

  .nav-container a {
    display: block;
    padding: 14px 28px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 140, 26, 0.1);
    transition: all 0.3s ease;
  }

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

  .nav-container a:first-child {
    color: var(--primary);
    font-weight: 700;
    border-top: 1px solid rgba(255, 140, 26, 0.1);
  }

  .hamburger-menu {
    display: flex;
  }

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

  .mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    min-height: 48px;
    width: 100%;
    position: relative;
  }

  .mobile-nav-buttons .btn {
    flex: 1;
    padding: 10px 12px;
    font-size: 13px;
    max-width: 150px;
  }

  .mobile-nav-buttons .btn-login {
    border-width: 2px;
  }

  body.no-scroll {
    overflow: hidden;
  }

  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }

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

  body {
    overflow-x: hidden;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 16px 24px;
  }

  .footer-bottom {
    padding: 12px 16px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 18px;
  }

  .mobile-nav-buttons .btn {
    padding: 8px 8px;
    font-size: 12px;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
