:root {
  --header-offset: 122px;
  --color-primary: #F2C14E;
  --color-secondary: #FFD36B;
  --color-bg: #0A0A0A;
  --color-card: #111111;
  --color-text-main: #FFF6D6;
  --color-border: #3A2A12;
  --color-glow: #FFD36B;
  --color-btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --color-gold-dark: #DDA11D;
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  padding-top: var(--header-offset);
  overflow-x: hidden;
}

/* ===== Site Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Header Top */
.header-top {
  background-color: #141414;
  width: 100%;
}

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

/* Logo */
.logo {
  font-size: 2rem;
  font-weight: 800;
  color: #F2C14E;
  text-shadow: 0 0 15px rgba(255, 211, 107, 0.4);
  text-decoration: none;
  letter-spacing: 2px;
  display: inline-block;
  text-transform: uppercase;
}

.logo:hover {
  color: var(--color-secondary);
  text-decoration: none;
}

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

/* Buttons - Global */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  color: #1a1a1a;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(242, 193, 78, 0.3);
}

.btn-register {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111;
  border: 2px solid #FFD86A;
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 25px rgba(255, 211, 107, 0.5);
  color: #111;
  text-decoration: none;
}

.btn-login {
  background: transparent;
  border: 2px solid #F2C14E;
  color: #F2C14E;
}

.btn-login:hover {
  background: rgba(242, 193, 78, 0.15);
  color: #FFF6D6;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(242, 193, 78, 0.3);
}

/* Main Navigation */
.main-nav {
  background-color: #1a1a1a;
  width: 100%;
  display: flex;
  flex-direction: row;
  border-top: 1px solid #3A2A12;
  border-bottom: 2px solid #F2C14E;
}

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

.nav-link {
  display: block;
  color: #e0cba1;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 16px 10px;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #FFD36B;
  text-decoration: none;
  border-bottom-color: #FFD36B;
}

.nav-link.active {
  color: #FFD36B;
  border-bottom-color: #FFD36B;
}

/* Hamburger Menu - Desktop Hidden */
.hamburger-menu {
  display: none;
}

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

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

/* ===== SITE FOOTER ===== */
.site-footer {
  background-color: #111111;
  border-top: 2px solid #F2C14E;
  margin-top: 60px;
  color: #FFF6D6;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 800;
  color: #F2C14E;
  text-decoration: none;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.4);
}

.footer-logo:hover {
  color: #FFD36B;
  text-decoration: none;
}

.footer-desc {
  font-size: 0.9rem;
  color: rgba(255, 246, 214, 0.7);
  max-width: 90%;
}

.footer-hotline {
  font-size: 1rem;
  color: #F2C14E;
  font-weight: 600;
}

.footer-title {
  color: #F2C14E;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #3A2A12;
}

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

.footer-nav li {
  margin-bottom: 8px;
}

.footer-nav a {
  color: rgba(255, 246, 214, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  padding: 4px 0;
  display: inline-block;
}

.footer-nav a:hover {
  color: #FFD36B;
  text-decoration: none;
  transform: translateX(4px);
}

.footer-bottom {
  background-color: #0a0a0a;
  padding: 15px 20px;
  text-align: center;
  border-top: 1px solid #3A2A12;
}

.copyright {
  color: rgba(255, 246, 214, 0.6);
  font-size: 0.85rem;
}

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

  body {
    padding-top: var(--header-offset);
  }

  .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: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
  }

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

  .logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #F2C14E;
    text-decoration: none;
    letter-spacing: 1px;
    display: inline-block;
  }

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

  /* Mobile Action Buttons */
  .mobile-nav-buttons {
    display: flex;
    width: 100%;
    background-color: #0f0f0f;
    padding: 8px 12px;
    gap: 10px;
    justify-content: center;
    z-index: 990;
    border-bottom: 1px solid #3A2A12;
    min-height: 48px;
  }

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

  /* Main Nav - Mobile Drawer */
  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    height: 100dvh;
    background: #111;
    border-right: 2px solid #F2C14E;
    border-top: none;
    flex-direction: column;
    justify-content: flex-start;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1002;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0,0,0,0.7);
  }

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

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

  .nav-link {
    color: #FFF6D6;
    text-decoration: none;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(242,193,78,0.1);
    border-left: 4px solid transparent;
    font-size: 0.95rem;
    display: block;
  }

  .nav-link:hover {
    background: rgba(242, 193, 78, 0.08);
    color: #FFD36B;
    border-left-color: #F2C14E;
  }

  .nav-link.active {
    background: rgba(242, 193, 78, 0.1);
    color: #FFD36B;
    border-left-color: #FFD36B;
  }

  /* Hamburger Menu */
  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1003;
    position: absolute;
    left: 15px;
    top: 12px;
  }

  .hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #F2C14E;
    border-radius: 3px;
    transition: all 0.3s ease;
  }

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

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

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

  /* Overlay */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1000;
  }

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

  /* Footer */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 15px 15px;
  }

  .footer-desc {
    max-width: 100%;
  }

  .footer-logo {
    font-size: 1.8rem;
  }
}

/* Extra Small Screens */
@media (max-width: 480px) {
  .nav-link {
    font-size: 0.85rem;
    padding: 12px 16px;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
