:root {
  --header-offset: 122px;
  --primary: #017439;
  --primary-dark: #014d26;
  --white: #ffffff;
  --regist-bg: #C30808;
  --login-bg: #C30808;
  --btn-text: #FFFF00;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--shadow);
  background: var(--white);
  min-height: auto;
  border-bottom: 2px solid #e8e8e8;
}

.header-top,
.main-nav {
  width: 100%;
}

.header-container,
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.header-top {
  background: var(--primary-dark);
  min-height: 68px;
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 68px;
  box-sizing: border-box;
}

.logo {
  display: inline-block;
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
  padding: 8px 0;
}

.logo:hover {
  color: #ffd700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  min-width: 100px;
  line-height: 1.2;
  box-sizing: border-box;
}

.btn-login {
  background: var(--login-bg);
  color: var(--btn-text);
}

.btn-register {
  background: var(--regist-bg);
  color: var(--btn-text);
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.main-nav {
  background: var(--primary);
  min-height: 52px;
  display: flex;
  align-items: center;
  position: static;
}

.nav-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  padding: 10px 13px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
  border-radius: 4px;
  display: block;
  line-height: 1.3;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
}

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

.hamburger-menu {
  display: none;
}

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

.site-footer {
  background: #1a1a1a;
  color: #ffffff;
  padding: 50px 0 0;
  font-size: 14px;
  line-height: 1.7;
  margin-top: 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 0 20px 30px;
}

.footer-column h3 {
  color: #ffd700;
  margin-bottom: 15px;
  font-size: 17px;
  font-weight: 700;
}

.footer-column p {
  color: #ccc;
  margin: 0;
}

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

.footer-nav li {
  margin-bottom: 10px;
}

.footer-nav a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
  padding: 2px 0;
}

.footer-nav a:hover {
  color: #ffd700;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding: 18px 20px;
  text-align: center;
  color: #aaaaaa;
}

.footer-bottom p {
  margin: 0;
}

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

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

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

  .nav-container {
    width: 100%;
    max-width: none;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 10px 0;
  }

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

  .logo {
    font-size: 22px;
    text-align: center;
    width: 100%;
    margin: 0;
    padding: 8px 0;
  }

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

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: var(--white);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 1002;
    display: none;
    flex-direction: column;
    padding-top: 60px;
    transform: translateX(-100%);
    overflow-y: auto;
    border-right: 1px solid #eee;
    min-height: 100vh;
  }

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

  .nav-link {
    color: #222;
    padding: 13px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
  }

  .nav-link:hover {
    background: var(--primary);
    color: #fff;
  }

  .nav-link:first-child {
    font-weight: 800;
  }

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    background: var(--primary-dark);
    padding: 10px 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-nav-buttons .btn {
    flex: 1;
    max-width: 180px;
    min-width: 100px;
  }

  .hamburger-menu {
    display: flex;
    position: fixed;
    top: 10px;
    left: 12px;
    z-index: 1005;
    background: var(--primary-dark);
    border: none;
    width: 42px;
    height: 42px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border-radius: 4px;
    padding: 0;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  }

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

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

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

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

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

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

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .footer-column:first-child {
    grid-column: 1 / -1;
  }

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

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

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