:root {
  --primary: #FF8C1A;
  --secondary: #FFA53A;
  --btn-gradient-start: #FFA53A;
  --btn-gradient-end: #D96800;
  --bg-card: #17191F;
  --bg-main: #0D0E12;
  --text-main: #FFF3E6;
  --border-color: #A84F0C;
  --glow: #FFB04D;
  --deep-orange: #D96800;
  --header-offset: 122px;
  --header-top-height: 68px;
  --main-nav-height: 52px;
}

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

.header-top {
  background: linear-gradient(180deg, #1a1a1f 0%, #0D0E12 100%);
  border-bottom: 1px solid var(--border-color);
  min-height: var(--header-top-height);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  min-height: var(--header-top-height);
  box-sizing: border-box;
}

.logo {
  color: var(--text-main);
  font-size: 2.2rem;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  flex-shrink: 0;
  line-height: 1.2;
  text-shadow: 0 0 12px var(--glow), 0 0 30px rgba(255, 140, 26, 0.4);
  transition: color 0.3s ease;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: none;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-register {
  background: linear-gradient(180deg, var(--btn-gradient-start) 0%, var(--btn-gradient-end) 100%);
  box-shadow: 0 2px 8px rgba(255, 140, 26, 0.4);
}

.btn-login {
  background: linear-gradient(180deg, #333333 0%, #1a1a1a 100%);
  border: 1px solid var(--border-color);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px var(--glow);
}

.main-nav {
  background: linear-gradient(180deg, #0D0E12 0%, #1a1a1a 100%);
  width: 100%;
  display: flex;
  flex-direction: row;
  min-height: var(--main-nav-height);
  align-items: center;
  justify-content: center;
}

.nav-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 4px 20px;
  box-sizing: border-box;
}

.nav-link {
  color: var(--text-main);
  text-decoration: none;
  padding: 10px 14px;
  font-size: 0.98rem;
  font-weight: 600;
  white-space: nowrap;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--secondary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 30%;
}

.hamburger-menu {
  display: none;
}

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

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

body {
  padding-top: var(--header-offset);
  background: var(--bg-main);
  color: var(--text-main);
}

.site-footer {
  background: #0D0E12;
  border-top: 2px solid var(--border-color);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 24px 32px;
  box-sizing: border-box;
}

.footer-brand {
  flex: 2;
}

.footer-logo {
  color: var(--text-main);
  font-size: 2rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 12px var(--glow);
  display: inline-block;
  margin-bottom: 16px;
}

.footer-description {
  color: #B8B8B8;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 360px;
}

.footer-column {
  flex: 1;
}

.footer-heading {
  color: var(--secondary);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

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

.footer-column ul li a {
  color: #B8B8B8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid #2a2a30;
  text-align: center;
  padding: 20px 16px;
}

.copyright-text {
  color: #B8B8B8;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  :root {
    --header-offset: 110px;
  }
  
  .header-container {
    width: 100%;
    max-width: none;
    padding: 8px 16px 8px 56px;
  }
  
  .header-top {
    min-height: var(--header-top-height);
  }
  
  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: fixed;
    top: 10px;
    left: 12px;
    z-index: 1001;
    padding: 8px;
  }
  
  .hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  
  .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.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
  }
  
  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  .main-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    z-index: 1000;
    background: #0D0E12;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: none;
    overflow-y: auto;
    padding: 0;
    justify-content: flex-start;
    border-right: 1px solid var(--border-color);
    min-height: 100vh;
  }
  
  .main-nav.active {
    display: flex;
    transform: translateX(0);
  }
  
  .nav-container {
    width: 100%;
    max-width: none;
    flex-direction: column;
    align-items: stretch;
    padding: 70px 0 16px;
    flex: 1;
  }
  
  .nav-link {
    padding: 14px 24px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(168, 79, 12, 0.2);
  }
  
  .nav-link::after {
    display: none;
  }
  
  .desktop-nav-buttons {
    display: none;
  }
  
  .mobile-nav-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
    background: #0D0E12;
    z-index: 1000;
  }
  
  .mobile-nav-buttons .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
    width: auto;
  }
  
  .site-header {
    display: flex;
    flex-direction: column;
  }
  
  .header-top {
    order: 1;
    min-height: 60px;
    border-bottom: none;
    background: #0D0E12;
  }
  
  .header-container {
    min-height: 60px;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }
  
  .logo {
    margin: 0;
    text-align: center;
    font-size: 1.8rem;
    position: static;
  }
  
  .mobile-nav-buttons {
    order: 2;
    min-height: 48px;
  }
  
  .main-nav {
    order: 3;
  }
  
  .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 {
    flex-direction: column;
    gap: 32px;
    padding: 32px 20px 24px;
  }
  
  .footer-column {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding-left: 52px;
    padding-right: 12px;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .mobile-nav-buttons {
    gap: 6px;
    padding: 10px 8px;
  }
  
  .mobile-nav-buttons .btn {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
