:root {
  --primary: #F2C14E;
  --secondary: #FFD36B;
  --btn-bg: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --card-bg: #111111;
  --bg-main: #0A0A0A;
  --text-main: #FFF6D6;
  --border-color: #3A2A12;
  --glow: #FFD36B;
  --header-offset: 122px;
  --header-top-bg: #0A0A0A;
  --nav-bg: #111111;
  --header-height: 120px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  padding-top: var(--header-offset);
  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 4px 20px rgba(0, 0, 0, 0.6), 0 2px 10px rgba(242, 193, 78, 0.15);
  border-bottom: 2px solid var(--border-color);
  background-color: var(--bg-main);
}

/* === Header Top === */
.header-top {
  background-color: var(--header-top-bg);
  border-bottom: 1px solid var(--border-color);
}

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

.logo {
  display: inline-block;
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(242, 193, 78, 0.4);
  padding: 4px 0;
  transition: all 0.3s ease;
}

.logo:hover {
  color: var(--secondary);
  text-shadow: 0 0 20px rgba(255, 211, 107, 0.6);
}

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

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-register {
  background: var(--btn-bg);
  color: #0A0A0A;
  box-shadow: 0 4px 12px rgba(242, 193, 78, 0.3);
  border: 1px solid rgba(242, 193, 78, 0.5);
}

.btn-register:hover {
  box-shadow: 0 4px 20px rgba(242, 193, 78, 0.5);
  transform: translateY(-2px);
}

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

.btn-login:hover {
  background: rgba(242, 193, 78, 0.15);
}

/* === Main Nav === */
.main-nav {
  background-color: var(--nav-bg);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: row;
  min-height: 52px;
}

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

.nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 14px 20px;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.nav-link:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 700;
}

/* === Mobile Elements === */
.hamburger-menu {
  display: none;
}

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

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

/* ===== Footer ===== */
.site-footer {
  background-color: var(--bg-main);
  border-top: 3px solid var(--primary);
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
}

.footer-brand .footer-logo {
  display: inline-block;
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
  text-decoration: none;
  text-shadow: 0 2px 10px rgba(242, 193, 78, 0.4);
  margin-bottom: 16px;
}

.footer-desc {
  color: #ccc;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-about {
  color: #ccc;
  font-size: 14px;
  line-height: 1.6;
}

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

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

.footer-menu a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

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

.footer-section {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.footer-contact {
  color: #ccc;
  font-size: 14px;
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  text-align: center;
}

.footer-disclaimer p {
  color: #aaa;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 15px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.footer-copyright p {
  color: #aaa;
  font-size: 13px;
}

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

  .header-container {
    width: 100%;
    max-width: 100%;
    padding: 0 12px;
    min-height: 60px;
  }

  .logo {
    font-size: 24px;
  }

  .header-top {
    min-height: auto;
  }

  .site-header {
    min-height: calc(60px + 48px + 48px);
  }

  .nav-container {
    width: 100%;
    max-width: 100%;
    padding: 0 12px;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    background-color: var(--bg-main);
    z-index: 1002;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    padding-top: 10px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    min-height: 100vh;
  }

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

  .main-nav .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    gap: 0;
  }

  .nav-link {
    font-size: 16px;
    padding: 14px 15px;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    border-left: 3px solid transparent;
    display: block;
  }

  .nav-link:hover,
  .nav-link.active {
    border-left-color: var(--primary);
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 12px;
    position: fixed;
    top: 12px;
    left: 10px;
    z-index: 1005;
  }

  .hamburger-menu span {
    width: 26px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 4px;
    transition: all 0.3s ease;
  }

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

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

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

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

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

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

  .desktop-nav-buttons .btn {
    padding: 6px 14px;
    font-size: 13px;
  }

  .mobile-nav-buttons {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background-color: #1a1a1a;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-top: 0;
    min-height: 48px;
    align-items: center;
    justify-content: center;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-section {
    padding: 20px 15px;
  }

  .footer-bottom {
    padding-bottom: 75px;
  }

  .footer-disclaimer p {
    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;
  }

  body.no-scroll {
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .mobile-nav-buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .mobile-nav-buttons .btn {
    flex: 1 1 auto;
    min-width: 120px;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
