:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --header-offset: 166px;
  --header-top-h: 68px;
  --main-nav-h: 52px;
  --marquee-h: 44px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  padding-top: var(--header-offset);
  overflow-x: hidden;
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: var(--header-offset);
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
}
.header-top {
  background: var(--primary-color);
  width: 100%;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--header-top-h);
  padding-left: 20px;
  padding-right: 20px;
}
.logo {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 1px;
  line-height: 1.2;
  text-transform: uppercase;
  display: inline-block;
  background: linear-gradient(135deg, #ffffff, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.desktop-nav-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  color: #FFFF00;
  border: none;
  cursor: pointer;
}
.btn-login {
  background: #C30808;
  border: 2px solid #FFFF00;
}
.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(195, 8, 8, 0.4);
}
.btn-register {
  background: #C30808;
  border: 2px solid #FFFF00;
}
.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(195, 8, 8, 0.4);
}
.main-nav {
  width: 100%;
  background: #ffffff;
  display: block;
  border-bottom: 2px solid var(--primary-color);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  min-height: var(--main-nav-h);
  padding-left: 20px;
  padding-right: 20px;
  gap: 0;
  flex-wrap: nowrap;
}
.nav-container a {
  color: #1a1a1a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 4px;
  transition: all 0.3s ease;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.nav-container a:hover {
  color: var(--primary-color);
  background: #f5f5f5;
  border-bottom-color: var(--primary-color);
}
.hamburger-menu {
  display: none;
}
.mobile-menu-overlay {
  display: none;
}
.mobile-nav-buttons {
  display: none;
}
.marquee-section {
  background: #017439;
  color: #ffffff;
  padding: 10px 0;
  overflow: hidden;
  width: 100%;
}
.marquee-section marquee {
  font-size: 14px;
  font-weight: 500;
}
.site-footer {
  background: #1a1a1a;
  color: #ffffff;
  padding: 40px 0 0;
  margin-top: 40px;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 30px;
  padding: 0 20px;
}
.footer-brand .footer-logo {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  margin-bottom: 15px;
  display: inline-block;
}
.footer-brand p {
  color: #b0b0b0;
  font-size: 14px;
  line-height: 1.8;
  margin-top: 10px;
}
.footer-column h4 {
  color: var(--primary-color);
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: 600;
}
.footer-nav {
  list-style: none;
  padding: 0;
}
.footer-nav li {
  margin-bottom: 8px;
}
.footer-nav a {
  color: #b0b0b0;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}
.footer-nav a:hover {
  color: #ffffff;
  padding-left: 5px;
}
.footer-bottom {
  background: #111111;
  padding: 20px;
  text-align: center;
  margin-top: 40px;
}
.footer-bottom p {
  color: #888888;
  font-size: 13px;
}
.page-content img {
  max-width: 100%;
  height: auto;
  display: block;
}
.page-content {
  overflow-x: hidden;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  :root {
    --header-offset: 146px;
    --header-top-h: 60px;
    --main-nav-h: auto;
    --marquee-h: 36px;
  }
  .site-header {
    min-height: var(--header-offset);
  }
  .header-top {
    order: 0;
  }
  .header-container {
    width: 100%;
    max-width: none;
    padding-left: 15px;
    padding-right: 15px;
    min-height: 60px;
  }
  .desktop-nav-buttons {
    display: none;
  }
  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 8px 15px;
    background: var(--primary-color);
    min-height: 50px;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 998;
    align-items: center;
  }
  .mobile-nav-buttons .btn {
    padding: 8px 16px;
    flex: 1;
    text-align: center;
    font-size: 13px;
  }
  .btn {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 300px;
    max-width: 80%;
    background: white;
    display: block;
    flex-direction: column;
    justify-content: flex-start;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2);
    z-index: 1002;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: 0;
    border-bottom: none;
  }
  .main-nav.active {
    display: block;
    transform: translateX(0);
  }
  .nav-container {
    width: 100%;
    max-width: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    min-height: 100vh;
    padding: 60px 0 20px;
    flex-wrap: nowrap;
  }
  .nav-container a {
    color: #1a1a1a;
    font-size: 16px;
    padding: 15px 25px;
    border-bottom: 1px solid #eeeeee;
    border-radius: 0;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    border-left: 4px solid transparent;
  }
  .nav-container a:hover {
    background: #f0f0f0;
    border-left-color: var(--primary-color);
  }
  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1003;
    position: absolute;
    top: 10px;
    left: 10px;
    gap: 5px;
    padding: 8px;
  }
  .hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
  }
  .hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background: #ffffff;
  }
  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background: #ffffff;
  }
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
    cursor: pointer;
  }
  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  @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;
    }
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
    width: 100%;
    max-width: none;
  }
  .header-top {
    background: var(--primary-color);
  }
  .site-header {
    background: #ffffff;
  }
  body {
    overflow-x: hidden;
    padding-top: var(--header-offset);
  }
  .nav-container a {
    font-size: 14px;
    padding: 12px 20px;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
