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

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

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  background-color: var(--bg-dark);
}

/* --- Header Top Area --- */
.header-top {
  background-color: #151210;
  width: 100%;
  min-height: var(--header-top-height);
}

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

.logo {
  display: inline-block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary);
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(242, 193, 78, 0.4);
  white-space: nowrap;
}

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

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

.btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
  box-sizing: border-box;
  white-space: nowrap;
}

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

.btn-register:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 15px rgba(255, 216, 106, 0.5);
  transform: translateY(-1px);
}

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

.btn-login:hover {
  background: rgba(242, 193, 78, 0.1);
  box-shadow: 0 0 12px rgba(242, 193, 78, 0.3);
  transform: translateY(-1px);
}

/* --- Menu Bar Area --- */
.main-nav {
  background-color: #1a1814;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  width: 100%;
  display: flex;
  flex-direction: row;
  position: static;
  min-height: var(--nav-height);
}

.nav-container {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 0 16px;
  box-sizing: border-box;
}

.nav-container li {
  position: relative;
}

.nav-container li a {
  display: block;
  color: var(--text-main);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 15px 14px;
  white-space: nowrap;
  transition: color 0.3s ease, background 0.3s ease;
}

.nav-container li a:hover {
  color: var(--bg-dark);
  background-color: var(--primary);
  text-decoration: none;
}

.nav-container li::after {
  content: '';
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-container li:hover::after {
  width: 40%;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  display: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
  :root {
    --header-offset: 108px;
    --header-top-height: 60px;
    --nav-height: 48px;
  }

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

  .header-container {
    width: 100%;
    max-width: none;
    min-height: var(--header-top-height);
    padding: 0 12px;
    position: relative;
  }

  .header-top {
    background-color: #151210;
  }

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

  .mobile-nav-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    padding: 8px 16px;
    background-color: #151210;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 999;
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-nav-buttons .btn {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #1a1a1a;
    font-size: 13px;
    padding: 10px 22px;
    border-radius: 4px;
    font-weight: 700;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  /* Menu area */
  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 78%;
    max-width: 320px;
    height: 100vh;
    background-color: #1a1814;
    flex-direction: column;
    align-items: stretch;
    padding-top: 70px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    overscroll-behavior: contain;
    box-sizing: border-box;
    z-index: 1002;
  }

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

  .nav-container {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-container li a {
    display: block;
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: color 0.3s ease, background 0.3s ease;
  }

  .nav-container li a:hover {
    color: var(--bg-dark);
    background-color: var(--primary);
  }

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.65);
    z-index: 1001;
  }

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

  body.no-scroll {
    overflow: hidden;
  }

  .site-header {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  }
}

/* ===== Footer ===== */
.site-footer {
  background-color: #111111;
  color: #DDD;
  border-top: 2px solid var(--border-color);
  padding: 24px 0 0 0;
  font-size: 14px;
}

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

.footer-column {
  flex: 1;
}

.footer-logo {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 10px;
}

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

.footer-title {
  color: var(--secondary);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

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

.footer-nav ul li a {
  color: #CCC;
  text-decoration: none;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
  color: var(--secondary);
  text-decoration: none;
  padding-left: 4px;
}

.footer-bottom {
  background-color: #0A0A0A;
  color: #888;
  text-align: center;
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  font-size: 14px;
}

.footer-bottom p {
  margin: 4px 0;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px;
  }

  .footer-column {
    text-align: center;
  }
}

/* Mobile General Content Protection */
@media (max-width: 768px) {
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
