:root {
  --header-offset: 122px;
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --card-bg: #111111;
  --bg-dark: #0A0A0A;
  --text-main: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
}

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

/* ===== Header Styles ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #0A0A0A;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 2px 10px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid var(--border-color);
}

.header-top {
  background: linear-gradient(180deg, #1A1A1A 0%, #0A0A0A 100%);
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #3A2A12;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  width: 100%;
}

.logo {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(242, 193, 78, 0.5);
  display: block;
}

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

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-register {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  border: 1px solid #FFD86A;
  box-shadow: 0 0 15px rgba(255, 216, 106, 0.3);
}

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

.btn-login:hover {
  background: rgba(242, 193, 78, 0.15);
  box-shadow: 0 0 10px rgba(242, 193, 78, 0.2);
}

.main-nav {
  background: #111111;
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #3A2A12;
}

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

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

.nav-container a:hover {
  color: var(--primary-color);
  background: rgba(242, 193, 78, 0.1);
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.nav-container a:first-child {
  color: var(--primary-color);
  font-weight: 700;
}

.hamburger-menu {
  display: none;
}

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

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

/* ===== Footer Styles ===== */
.site-footer {
  background: #0A0A0A;
  border-top: 1px solid #3A2A12;
  padding: 50px 30px 20px;
  color: var(--text-main);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #3A2A12;
}

.footer-about .footer-logo {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-color);
  text-decoration: none;
  text-shadow: 0 0 20px rgba(242, 193, 78, 0.5);
  display: inline-block;
  margin-bottom: 15px;
}

.footer-about p {
  line-height: 1.6;
  font-size: 0.9rem;
  opacity: 0.9;
  max-width: 350px;
}

.footer-column h4 {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color);
}

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

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

.footer-column ul li a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 2px 0;
}

.footer-column ul li a:hover {
  opacity: 1;
  color: var(--primary-color);
  transform: translateX(4px);
}

.footer-bottom {
  text-align: center;
  padding-top: 25px;
}

.footer-bottom p {
  font-size: 0.85rem;
  opacity: 0.6;
}

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

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

  .header-container {
    width: 100%;
    max-width: none;
    padding: 10px 15px;
    min-height: 60px;
  }

  .nav-container {
    width: 100%;
    max-width: none;
    padding: 10px 15px;
  }

  .logo {
    font-size: 1.5rem;
  }

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

  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    min-height: 100%;
    flex-direction: column;
    background: #0A0A0A;
    z-index: 1002;
    padding-top: 80px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    align-items: flex-start;
  }

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

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

  .main-nav .nav-container a {
    font-size: 0.95rem;
    padding: 12px 10px;
    width: 100%;
    border-bottom: 1px solid rgba(58, 42, 18, 0.5);
  }

  .hamburger-menu {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1003;
    position: fixed;
    top: 10px;
    left: 15px;
    background: transparent;
    border: none;
    padding: 0;
  }

  .hamburger-menu span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary-color);
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
  }

  .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 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: none;
  }

  .mobile-menu-overlay.active {
    display: block;
  }

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 10px 15px;
    width: 100%;
    min-height: 48px;
    background: #0A0A0A;
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 60px;
    left: 0;
    z-index: 1000;
  }

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

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

  .header-container {
    justify-content: center;
    position: relative;
  }

  .header-container .logo {
    margin: 0 auto;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: left;
  }

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

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

  body {
    overflow-x: hidden;
  }
}

@media (min-width: 769px) {
  .hamburger-menu {
    display: none !important;
  }

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

  .mobile-nav-buttons {
    display: none !important;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
