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

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

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

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

.header-top {
  background: linear-gradient(135deg, #0A4B2C 0%, #0A4B2C 100%);
  border-bottom: 2px solid var(--glow);
}

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

.logo {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
  background: linear-gradient(135deg, var(--text-main) 0%, var(--glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  flex-shrink: 0;
}

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

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  color: var(--text-main);
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.btn-login {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  border: 1px solid rgba(87, 227, 141, 0.4);
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.3);
}

.btn-register {
  background: linear-gradient(135deg, #F2C14E 0%, #ddb300 100%);
  color: #08160F;
  border: 1px solid rgba(242, 193, 78, 0.3);
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.2);
}

.btn-login:hover {
  background: linear-gradient(180deg, #2AD16F 0%, #17b955 100%);
  box-shadow: 0 4px 25px rgba(87, 227, 141, 0.6);
  transform: translateY(-2px);
}

.btn-register:hover {
  background: linear-gradient(135deg, #F2C14E 0%, #f0c060 100%);
  box-shadow: 0 4px 25px rgba(242, 193, 78, 0.6);
  transform: translateY(-2px);
}

.main-nav {
  background: linear-gradient(90deg, #08160F 0%, #08160F 100%);
  border-top: 1px solid rgba(46, 122, 78, 0.3);
  border-bottom: 1px solid rgba(46, 122, 78, 0.3);
  display: flex;
  flex-direction: row;
  position: static;
  justify-content: center;
  width: 100%;
  padding: 0;
}

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

.nav-link {
  display: inline-block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 16px;
  transition: color 0.3s ease, background-color 0.3s ease, border-bottom 0.3s ease;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--glow);
  border-bottom-color: var(--glow);
  background-color: rgba(10, 75, 44, 0.3);
}

.hamburger-menu {
  display: none;
}

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

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

/* ===== Footer Styles ===== */
.site-footer {
  background: linear-gradient(180deg, #08160F 0%, #0A4B2C 100%);
  border-top: 2px solid var(--primary);
  padding: 50px 0 0;
  margin-top: 60px;
  width: 100%;
}

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

.footer-logo {
  font-size: 26px;
  font-weight: 800;
  color: var(--gold);
  text-decoration: none;
  background: linear-gradient(90deg, var(--gold) 0%, var(--glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  margin-bottom: 15px;
}

.footer-description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 10px;
}

.footer-title {
  color: var(--gold);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

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

.footer-links a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
  display: inline-block;
  padding: 3px 0;
}

.footer-links a:hover {
  color: var(--glow);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 20px 0;
  background-color: rgba(0, 0, 0, 0.2);
  text-align: center;
}

.copyright {
  color: var(--text-main);
  font-size: 14px;
  margin-bottom: 5px;
}

.footer-disclaimer {
  color: var(--text-secondary);
  font-size: 12px;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

@media (max-width: 768px) {
  :root {
    --header-offset: 146px;
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  }

  .header-top {
    padding: 0;
    border-bottom: 1px solid rgba(46, 122, 78, 0.5);
  }

  .header-container {
    width: 100%;
    max-width: none;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    background: none;
    -webkit-text-fill-color: var(--text-main);
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
    white-space: nowrap;
    display: block;
    order: 2;
    flex: 1;
    text-align: center;
  }

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

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--deep-green);
    border-bottom: 1px solid rgba(46, 122, 78, 0.3);
    width: 100%;
    flex-wrap: wrap;
    z-index: 999;
  }

  .mobile-nav-buttons .btn {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 20px;
  }

  .mobile-nav-buttons .btn-download {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: var(--text-main);
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    order: 1;
    padding: 0;
    z-index: 1002;
    padding-left: 10px;
  }

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

  .hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--glow);
  }

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

  .hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--glow);
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, #11271B 0%, #08160F 100%);
    z-index: 1001;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    flex-direction: column;
    justify-content: flex-start;
    padding: 80px 16px 20px;
    transition: transform 0.3s ease;
    transform: translateX(-100%);
  }

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

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

  .nav-link {
    display: block;
    padding: 12px 14px;
    font-size: 14px;
    border-bottom: none;
    border-left: 3px solid transparent;
    border-radius: 6px;
    width: 100%;
    color: var(--text-main);
    transition: all 0.3s ease;
    background: transparent;
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(17, 168, 78, 0.15);
    border-left-color: var(--glow);
    border-bottom: none;
    color: var(--glow);
  }

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    overflow: hidden;
  }

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

  body.no-scroll {
    overflow: hidden;
  }

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

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

  body {
    overflow-x: hidden;
  }

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

  .footer-bottom {
    padding: 15px 10px;
  }

  .copyright {
    font-size: 12px;
  }
}

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

  .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;
}
