:root {
  --primary: #11A84E;
  --secondary: #22C768;
  --btn-bg: 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: 122px;
  --header-offset-mobile: 156px;
}

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

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

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

/* ===== SITE HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.5);
}

.header-top {
  background-color: var(--deep-green);
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 68px;
  border-bottom: 1px solid var(--border-color);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  flex-shrink: 0;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--btn-bg);
  color: var(--text-main);
  font-size: 20px;
  font-weight: 800;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(42, 209, 111, 0.4);
  text-transform: uppercase;
}

.logo-text {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(57, 227, 141, 0.25);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
  min-height: 42px;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-register {
  background: linear-gradient(180deg, #F2C14E 0%, #D4942B 100%);
  color: #08160F;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.35);
}

.btn-register:hover {
  box-shadow: 0 4px 22px rgba(242, 193, 78, 0.5);
}

.btn-login {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.3);
}

.btn-login:hover {
  box-shadow: 0 4px 20px rgba(42, 209, 111, 0.5);
}

.btn-download {
  background: linear-gradient(180deg, #2ad1a8 0%, #22C768 100%);
  color: #08160F;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.3);
}

.btn-download:hover {
  box-shadow: 0 4px 20px rgba(42, 209, 168, 0.5);
}

.hamburger-menu {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 10px;
  z-index: 1003;
  border-radius: 8px;
}

.hamburger-menu .bar {
  display: block;
  width: 24px;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

.mobile-action-buttons {
  display: none;
  background-color: var(--deep-green);
  padding: 8px 15px;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  border-bottom: 1px solid var(--border-color);
}

.mobile-action-buttons .btn {
  flex: 1;
  min-width: 100px;
  max-width: 200px;
  font-size: 14px;
  padding: 9px 12px;
  min-height: 40px;
}

/* ===== MAIN NAV (DESKTOP) ===== */
.main-nav {
  background: linear-gradient(135deg, #0A4B2C 0%, #08160F 100%);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1400px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px 30px;
}

.nav-link {
  color: var(--text-main);
  font-size: 15px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 30px;
  position: relative;
  background: transparent;
  border: 1px solid transparent;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.nav-link:hover {
  color: var(--glow);
  background: rgba(87, 227, 141, 0.12);
  border-color: rgba(87, 227, 141, 0.3);
}

.nav-link.active {
  color: var(--glow);
  background: rgba(87, 227, 141, 0.14);
  border-color: rgba(87, 227, 141, 0.35);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 40%;
  width: 20%;
  height: 3px;
  background: linear-gradient(90deg, var(--glow), var(--secondary));
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(87, 227, 141, 0.5);
  transition: width 0.3s ease;
}

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* ===== SITE FOOTER ===== */
.site-footer {
  background: linear-gradient(180deg, #0A4B2C 0%, #08160F 100%);
  color: var(--text-main);
  padding: 60px 0 0;
  margin-top: 60px;
  border-top: 2px solid var(--border-color);
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo .logo-icon {
  width: 44px;
  height: 44px;
  font-size: 18px;
}

.footer-logo .logo-text {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  text-shadow: 0 2px 8px rgba(87, 227, 141, 0.2);
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  max-width: 360px;
}

.footer-title {
  color: var(--glow);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
  letter-spacing: 0.5px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--btn-bg);
  border-radius: 3px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-nav ul a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.3s ease, padding-left 0.3s ease;
  position: relative;
  padding-left: 14px;
}

.footer-nav ul a::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--glow);
  font-size: 18px;
  line-height: 1.2;
}

.footer-nav ul a:hover {
  color: var(--glow);
  padding-left: 20px;
}

.footer-bottom {
  background: rgba(8, 22, 15, 0.8);
  border-top: 1px solid rgba(46, 122, 78, 0.3);
  padding: 24px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

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

.footer-note {
  color: rgba(167, 217, 184, 0.7);
  font-size: 12px;
  background: rgba(242, 193, 78, 0.12);
  padding: 4px 18px;
  border-radius: 20px;
  border: 1px solid rgba(242, 193, 78, 0.2);
}

/* ===== RESPONSIVE: MOBILE ===== */
@media (max-width: 768px) {
  :root {
    --header-offset: 156px;
  }

  .header-container {
    display: flex;
    width: 100%;
    padding: 0 15px;
    position: relative;
    justify-content: space-between;
  }

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

  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    min-height: auto;
  }

  .logo-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
    border-radius: 6px;
  }

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

  .hamburger-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-width: 44px;
    min-height: 44px;
  }

  .mobile-action-buttons {
    display: flex;
    width: 100%;
    max-width: none;
  }

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

  .main-nav {
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: #0A4B2C;
    padding-top: 80px;
    z-index: 1002;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

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

  .nav-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    padding: 0 20px 40px;
  }

  .nav-link {
    font-size: 16px;
    padding: 14px 18px;
    border-radius: 10px;
    text-align: left;
    color: var(--text-main);
    border-bottom: 1px solid rgba(46, 122, 78, 0.3);
  }

  .nav-link:hover {
    background: rgba(87, 227, 141, 0.1);
    padding-left: 24px;
    color: var(--glow);
    border-left: 3px solid var(--glow);
  }

  .nav-link.active {
    background: rgba(87, 227, 141, 0.2);
    color: var(--glow);
    border-left: 3px solid var(--primary);
  }

  .nav-link.active::after {
    display: none;
  }

  .site-header {
    background: transparent;
    box-shadow: none;
  }

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

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

  .footer-brand {
    align-items: center;
    text-align: center;
  }

  .footer-desc {
    margin: 0 auto;
  }

  .footer-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

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

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
  }

  .footer-nav ul a {
    padding-left: 0;
  }

  .footer-nav ul a::before {
    display: none;
  }

  .footer-nav ul a:hover {
    padding-left: 0;
  }

  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 20px 16px;
  }

  .footer-bottom p {
    font-size: 12px;
  }

  .page-content img,
  .site-content img,
  .footer-container img,
  .footer-bottom img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }

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

  body {
    overflow-x: hidden;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
