:root {
  --primary: #FF8C1A;
  --primary-light: #FFA53A;
  --deep-orange: #D96800;
  --glow: #FFB04D;
  --btn-bg: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  --border-color: #A84F0C;
  --text-main: #FFF3E6;
  --card-bg: #17191F;
  --bg-color: #0D0E12;
  --header-offset: 122px;
}
body {
  margin: 0;
  padding-top: var(--header-offset);
  background-color: var(--bg-color);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  background: #1A1C23;
}
.header-top {
  background: #141519;
  width: 100%;
  min-height: 68px;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  box-sizing: border-box;
  min-height: 68px;
}
.logo {
  display: inline-block;
  color: var(--glow);
  text-decoration: none;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1;
  text-shadow: 0 0 20px rgba(255,176,77,0.4);
  font-family: 'Arial Black', Arial, sans-serif;
}
.logo:hover {
  color: var(--text-main);
}
.desktop-nav-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn {
  display: inline-block;
  text-decoration: none;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255,176,77,0.3);
}
.btn-register {
  background: var(--btn-bg);
  color: #1A1000;
}
.btn-login {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--deep-orange);
}
.btn-login:hover {
  background: rgba(255,140,26,0.1);
}
.main-nav {
  background: #17191F;
  width: 100%;
  display: flex;
  flex-direction: row;
  position: static;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}
.nav-container a {
  color: var(--text-main);
  text-decoration: none;
  padding: 16px 18px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  display: inline-block;
  transition: color 0.3s;
}
.nav-container a:hover {
  color: var(--glow);
}
.hamburger-menu {
  display: none;
}
.mobile-menu-overlay {
  display: none;
}
.mobile-nav-buttons {
  display: none;
}
@media (max-width: 768px) {
  :root {
    --header-offset: 110px;
  }
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }
  .header-container {
    width: 100%;
    max-width: none;
    padding: 8px 15px;
    min-height: 60px;
  }
  .header-top {
    min-height: 60px;
  }
  .site-header {
    background: #141519;
  }
  .logo {
    font-size: 28px;
    margin: 0 auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1002;
  }
  .desktop-nav-buttons {
    display: none;
  }
  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1002;
    position: relative;
    padding: 8px;
    box-sizing: border-box;
  }
  .hamburger-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }
  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }
  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    padding: 0;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    position: relative;
  }
  .mobile-buttons-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 8px 10px;
    max-width: 100%;
  }
  .mobile-buttons-container .btn {
    padding: 10px 20px;
    font-size: 14px;
    flex: 1;
    max-width: 160px;
    text-align: center;
  }
  .main-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: #141519;
    z-index: 1001;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-top: none;
    border-bottom: none;
  }
  .main-nav.active {
    display: block;
    transform: translateX(0);
  }
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    width: 100%;
  }
  .nav-container a {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(168,79,12,0.2);
    box-sizing: border-box;
  }
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 999;
  }
  .mobile-menu-overlay.visible {
    display: block;
  }
}
.site-footer {
  background: #141519;
  padding: 40px 20px 20px;
  color: var(--text-main);
  border-top: 1px solid var(--border-color);
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-logo {
  color: var(--glow);
  font-size: 28px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 1px;
  font-family: 'Arial Black', Arial, sans-serif;
}
.footer-desc {
  color: #b8bcc4;
  font-size: 14px;
  margin-top: 12px;
  line-height: 1.6;
}
.footer-title {
  color: var(--glow);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0;
}
.footer-nav, .footer-info {
  padding: 0;
}
.footer-nav ul, .footer-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav li, .footer-info li {
  margin-bottom: 10px;
}
.footer-nav a, .footer-info a {
  color: #c8ccd4;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
  text-transform: none;
  letter-spacing: 0;
  display: inline-block;
  width: auto;
  text-align: left;
}
.footer-nav a:hover, .footer-info a:hover {
  color: var(--glow);
}
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(168,79,12,0.3);
  margin-top: 20px;
}
.footer-bottom p {
  color: #888;
  font-size: 13px;
  margin: 0;
}
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: left;
  }
  .footer-logo {
    font-size: 24px;
  }
  .footer-bottom p {
    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;
}
