:root {
  --primary: #11A84E;
  --secondary: #22C768;
  --bg-main: #08160F;
  --bg-card: #11271B;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --btn-bg: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --header-offset: 164px;
}
body {
  margin: 0;
  padding: 0;
  padding-top: var(--header-offset);
  background-color: var(--bg-main);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
* {
  box-sizing: border-box;
}
a {
  text-decoration: none;
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
img {
  max-width: 100%;
  height: auto;
}
.page-content img {
  max-width: 100%;
  height: auto;
  display: block;
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-main);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(87, 227, 141, 0.1);
}
.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: 0 30px;
  min-height: 68px;
}
.logo {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.5px;
  padding: 5px 0;
  line-height: 1.3;
  text-transform: lowercase;
  position: relative;
}
.logo::after {
  content: '';
  display: block;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--glow), var(--gold));
  border-radius: 2px;
  margin-top: 3px;
}
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: var(--btn-bg);
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
  transition: all 0.3s ease;
  text-align: center;
  border: none;
  cursor: pointer;
  line-height: 1.4;
  font-size: 0.9rem;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(87, 227, 141, 0.5);
}
.btn-register {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}
.btn-login {
  background: linear-gradient(180deg, #F2C14E 0%, #D4A437 100%);
  color: #1A1206;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.3);
}
.btn-login:hover {
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.5);
}
.desktop-nav-buttons {
  display: flex;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.header-bottom {
  background-color: #022C19;
  width: 100%;
  border-bottom: 1px solid var(--border);
}
.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;
  position: relative;
}
.main-nav {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2px;
  width: 100%;
}
.main-nav a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
  line-height: 1.4;
}
.main-nav a:hover {
  color: var(--glow);
  background-color: rgba(87, 227, 141, 0.08);
}
.main-nav a.active {
  color: var(--glow);
  border-bottom: 2px solid var(--glow);
}
.mobile-nav-buttons {
  display: none;
}
.hamburger-menu {
  display: none;
}
.mobile-menu-overlay {
  display: none;
}
.site-footer {
  background-color: #052518;
  border-top: 2px solid var(--border);
  color: var(--text-main);
  padding: 40px 0 0 0;
  margin-top: 40px;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px 20px;
  display: flex;
  flex-direction: row;
  gap: 40px;
}
.footer-brand {
  flex: 1.2;
  min-width: 250px;
}
.footer-logo {
  display: inline-block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.footer-logo::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--glow), var(--gold));
  margin-top: 4px;
  border-radius: 2px;
}
.footer-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.btn-footer-register {
  display: inline-block;
}
.footer-nav {
  flex: 1.8;
  display: flex;
  gap: 30px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.footer-nav-column {
  min-width: 150px;
}
.footer-nav-column h4 {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-nav-column ul li {
  margin-bottom: 8px;
}
.footer-nav-column ul li a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}
.footer-nav-column ul li a:hover {
  color: var(--glow);
}
.footer-bottom {
  border-top: 1px solid var(--divider);
  padding: 16px 20px;
  text-align: center;
  background-color: #052518;
}
.footer-bottom p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}
@media (max-width: 768px) {
  body {
    padding-top: var(--header-offset, 146px);
  }
  body.modal-open {
    overflow: hidden;
  }
  .header-container {
    width: 100%;
    max-width: none;
    min-height: 60px;
    padding: 0 15px;
    justify-content: center;
    position: relative;
  }
  .site-header {
    min-height: auto;
  }
  .header-top {
    background-color: #005B32;
    width: 100%;
  }
  .header-bottom {
    background-color: #021A0D;
  }
  .nav-container {
    width: 100%;
    max-width: none;
    min-height: 48px;
    padding: 6px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .logo {
    font-size: 1.3rem;
    text-align: center;
    margin: 0 auto;
    max-width: calc(100% - 60px);
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .desktop-nav-buttons {
    display: none;
  }
  .hamburger-menu {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    flex-shrink: 0;
  }
  .hamburger-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--glow);
    margin: 3px 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 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
  }
  .mobile-menu-overlay.show {
    display: block;
  }
  .main-nav {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 90%;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    background-color: #052518;
    flex-direction: column;
    align-items: flex-start;
    padding: 70px 15px 30px;
    z-index: 1000;
    transform: translateX(-110%);
    transition: transform 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.4);
  }
  .main-nav.active {
    display: block;
    transform: translateX(0);
  }
  .main-nav a {
    display: block;
    width: 100%;
    color: var(--text-main);
    padding: 12px 10px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(46, 122, 78, 0.3);
    border-radius: 0;
    white-space: normal;
  }
  .main-nav a:hover {
    background-color: rgba(87, 227, 141, 0.1);
    color: var(--glow);
  }
  .main-nav a.active {
    border-bottom: 1px solid var(--glow);
    color: var(--glow);
    background-color: rgba(87, 227, 141, 0.05);
  }
  .mobile-nav-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1000;
    min-height: 42px;
    padding: 4px 0;
    visibility: visible;
    opacity: 1;
  }
  .mobile-nav-buttons.hidden {
    visibility: hidden;
    opacity: 0;
    min-height: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
  }
  .mobile-nav-buttons .btn {
    padding: 6px 14px;
    font-size: 0.75rem;
    border-radius: 20px;
  }
  .btn {
    padding: 8px 18px;
    font-size: 0.85rem;
  }
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }
  .footer-container {
    flex-direction: column;
    gap: 20px;
    padding: 0 20px 20px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 20px;
    justify-content: flex-start;
  }
  .footer-brand,
  .footer-nav-column {
    width: 100%;
  }
  .footer-bottom {
    padding: 14px 15px;
    text-align: center;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .header-container,
  .nav-container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .main-nav a {
    font-size: 0.8rem;
    padding: 8px 10px;
  }
  .logo {
    font-size: 1.4rem;
  }
}
@media (min-width: 1025px) {
  .nav-container {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media (max-width: 768px) {
  :root {
    --header-offset: 146px;
  }
  .site-header {
    display: block;
  }
  .header-top {
    min-height: 60px;
  }
  .header-bottom {
    padding: 0;
  }
  .nav-container {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
  }
  .main-nav.active {
    display: block;
  }
}
@media (max-width: 480px) {
  :root {
    --header-offset: 146px;
  }
  .logo {
    font-size: 1.1rem;
  }
  .mobile-nav-buttons .btn {
    padding: 6px 12px;
    font-size: 0.7rem;
  }
  .nav-container {
    padding: 4px 10px;
  }
  .header-container {
    padding: 0 10px;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
