:root {
  --header-offset: 122px;
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-bg: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --bg-color: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
}

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

/* ===== Header Styles ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #0A4B2C;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  min-height: 60px;
}

.header-top {
  background-color: #0A4B2C;
  width: 100%;
}

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

.logo {
  display: inline-block;
  color: var(--gold-color);
  font-size: 28px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.3);
  line-height: 1.2;
}

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

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

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  border: none;
  min-width: 120px;
  box-sizing: border-box;
}

.btn-register {
  background: var(--button-bg);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.3);
}

.btn-register:hover {
  box-shadow: 0 4px 25px rgba(87, 227, 141, 0.5);
  transform: translateY(-2px);
}

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

.btn-login:hover {
  background: rgba(242, 193, 78, 0.1);
  border-color: var(--glow-color);
  color: var(--glow-color);
}

/* ===== Main Navigation ===== */
.main-nav {
  display: flex;
  background-color: #08160F;
  border-top: 1px solid var(--divider-color);
  border-bottom: 1px solid var(--divider-color);
  width: 100%;
  position: static;
}

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

.nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 15px 14px;
  transition: color 0.3s ease, background-color 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-color);
}

.nav-link:hover::after,
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: var(--gold-color);
}

/* Mobile elements hidden on desktop */
.mobile-menu-overlay,
.mobile-nav-buttons,
.hamburger-menu {
  display: none;
}

/* ===== Footer Styles ===== */
.site-footer {
  background-color: #0A1F13;
  border-top: 2px solid var(--divider-color);
  padding: 40px 0 20px;
  margin-top: 60px;
}

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

.footer-brand,
.footer-links,
.footer-legal {
  padding: 0 10px;
}

.footer-logo {
  color: var(--gold-color);
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  max-width: 350px;
}

.footer-links h3,
.footer-legal h3 {
  color: var(--text-main);
  font-size: 16px;
  margin: 0 0 15px;
  font-weight: 600;
}

.footer-links ul,
.footer-legal ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-legal li {
  margin-bottom: 10px;
}

.footer-links a,
.footer-legal a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--glow-color);
}

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

.footer-bottom p {
  color: var(--text-secondary);
  font-size: 13px;
}

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

  .header-top {
    background-color: #0A4B2C;
  }

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

  .logo {
    font-size: 24px;
  }

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

  .main-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background-color: #08160F;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    border-top: none;
  }

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

  .main-nav .nav-container {
    flex-direction: column;
    width: 100%;
    padding: 60px 0 20px;
    gap: 0;
  }

  .main-nav .nav-link {
    padding: 15px 20px;
    width: 100%;
    text-align: left;
    font-size: 16px;
    border-bottom: 1px solid var(--divider-color);
    box-sizing: border-box;
  }

  .main-nav .nav-link:hover::after,
  .main-nav .nav-link.active::after {
    left: 0;
    transform: none;
    width: 4px;
    height: 30px;
    top: 50%;
    transform: translateY(-50%);
  }

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

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

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: #0A4B2C;
    width: 100%;
    box-sizing: border-box;
    min-height: 52px;
    position: relative;
    z-index: 1000;
  }

  .mobile-nav-buttons .btn {
    flex: 1;
    max-width: 180px;
    padding: 10px 12px;
    min-width: 0;
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 1002;
    order: -1;
  }

  .hamburger-menu span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--text-main);
    margin: 3px auto;
    transition: all 0.3s ease;
    border-radius: 3px;
  }

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

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

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

  .header-container {
    text-align: center;
    justify-content: center;
    position: relative;
    gap: 10px;
  }

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

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 20px;
  }

  .footer-brand p {
    max-width: 100%;
  }

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

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

  body {
    overflow-x: hidden;
  }
}

/* ===== Small Mobile Adjustments ===== */
@media (max-width: 480px) {
  .mobile-nav-buttons {
    flex-direction: row;
    padding: 8px 10px;
    gap: 8px;
  }

  .mobile-nav-buttons .btn {
    font-size: 13px;
    padding: 8px 10px;
  }

  .logo {
    font-size: 22px;
  }
}

@media (min-width: 769px) {
  .main-nav .nav-container {
    justify-content: center;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
