:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --btn-register-bg: #C30808;
  --btn-login-bg: #C30808;
  --btn-text-color: #FFFF00;
  --header-offset: 164px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--secondary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-top {
  background-color: var(--secondary-color);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  min-height: 68px;
  display: flex;
  align-items: center;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 68px;
}

.logo {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary-color);
  text-decoration: none;
  text-transform: lowercase;
  line-height: 1;
  display: block;
  letter-spacing: -0.5px;
}

.logo:hover {
  color: var(--primary-color);
  text-decoration: none;
}

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

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  width: 100%;
  min-height: 52px;
}

.nav-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 14px 16px;
  display: block;
  transition: background-color 0.2s;
  border-radius: 0;
  white-space: nowrap;
  text-transform: none;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--secondary-color);
  text-decoration: none;
}

.desktop-nav-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.btn {
  display: inline-block;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  color: #FFFFFF;
  text-align: center;
  border: none;
  cursor: pointer;
  min-width: 100px;
}

.btn-login {
  background-color: var(--btn-login-bg);
  color: var(--btn-text-color);
  border: 2px solid var(--btn-login-bg);
}

.btn-register {
  background-color: var(--btn-register-bg);
  color: var(--btn-text-color);
  border: 2px solid var(--btn-register-bg);
  box-shadow: 0 2px 8px rgba(195, 8, 8, 0.3);
}

.btn-download {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

.btn-login:hover {
  background-color: #A00707;
  border-color: #A00707;
  color: var(--btn-text-color);
  text-decoration: none;
}

.btn-register:hover {
  background-color: #A00707;
  border-color: #A00707;
  color: var(--btn-text-color);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(195, 8, 8, 0.4);
}

.btn-download:hover {
  background-color: #015c2d;
  border-color: #015c2d;
  color: var(--secondary-color);
  text-decoration: none;
}

.mobile-actions {
  display: none;
  background-color: var(--secondary-color);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 8px 0;
}

.mobile-actions-container {
  justify-content: center;
  gap: 8px;
  min-height: auto;
}

.hamburger-menu {
  display: none;
}

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

body {
  padding-top: 164px;
}

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

  body {
    padding-top: 146px;
  }

  .site-header {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .header-top {
    min-height: 60px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  }

  .header-container {
    width: 100%;
    max-width: none;
    min-height: 60px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .logo {
    font-size: 26px;
    display: block;
    flex: 0 0 auto;
  }

  .desktop-nav-buttons {
    margin-left: auto;
    gap: 6px;
  }

  .desktop-nav-buttons .btn {
    padding: 6px 12px;
    font-size: 12px;
    min-width: 70px;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    display: block;
    flex-direction: column;
    align-items: flex-start;
    background-color: var(--secondary-color);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    overflow-y: auto;
    padding-top: 70px;
    min-height: 100vh;
  }

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

  .nav-container {
    flex-direction: column;
    width: 100%;
    max-width: none;
    padding: 0;
    display: block;
    min-height: auto;
  }

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

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

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1003;
    position: fixed;
    top: 10px;
    left: 10px;
    background: var(--primary-color);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: none;
  }

  .hamburger-menu span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--secondary-color);
    margin: 2px 0;
    border-radius: 1px;
    transition: all 0.3s ease;
  }

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

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

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

  .mobile-actions {
    display: flex;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 6px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  }

  .mobile-actions .mobile-actions-container {
    width: 100%;
    max-width: none;
    display: flex;
    justify-content: center;
    gap: 6px;
  }

  .mobile-actions .btn {
    padding: 7px 16px;
    font-size: 12px;
    min-width: 80px;
    display: inline-block;
    text-align: center;
  }

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    transition: opacity 0.3s ease;
  }

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

  .nav-link {
    font-size: 14px;
    padding: 12px 20px;
  }

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

  .footer-container {
    width: 100%;
    max-width: none;
    padding: 0 15px;
  }
}

@media (min-width: 769px) {
  body {
    padding-top: 120px;
  }
}

@media (min-width: 769px) and (max-width: 900px) {
  body {
    padding-top: 168px;
  }
}

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

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

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

.page-content {
  padding-top: 0;
}

.site-header {
  box-sizing: border-box;
}

.header-top, .main-nav, .mobile-actions {
  box-sizing: border-box;
}

.header-container, .nav-container {
  box-sizing: border-box;
}

.btn {
  text-decoration: none;
  box-sizing: border-box;
  line-height: 1.5;
}

@keyframes modalIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

body {
  min-height: 100vh;
}

.mobile-actions {
  min-height: 48px;
}

.mobile-actions-container {
  display: flex;
  align-items: center;
}

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

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

body {
  overflow-x: hidden;
}

@media (min-width: 769px) {
  body {
    padding-top: 120px;
  }
  .header-top {
    min-height: 68px;
  }
  .main-nav {
    min-height: 52px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 146px;
  }
  .header-top {
    min-height: 60px;
  }
  .mobile-actions {
    display: flex;
    position: fixed;
    top: 60px;
    left: 0;
  }
  .hamburger-menu {
    display: flex;
    position: fixed;
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
  }
}

.site-footer {
  background-color: #2b2b2b;
  color: #ffffff;
  padding: 40px 0 0 0;
  width: 100%;
  clear: both;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.site-footer .footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 40px;
}

.footer-brand {
  flex: 1.5;
  min-width: 200px;
}

.footer-logo {
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  text-decoration: none;
  display: block;
  margin-bottom: 12px;
  text-transform: lowercase;
  letter-spacing: -0.5px;
}

.footer-description {
  font-size: 14px;
  line-height: 1.6;
  color: #cccccc;
  margin-bottom: 16px;
}

.footer-links {
  flex: 1;
  min-width: 180px;
}

.footer-legal {
  flex: 1;
  min-width: 180px;
}

.footer-heading {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color);
  display: block;
  width: fit-content;
}

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

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

.footer-nav a {
  color: #cccccc;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
  padding-left: 0;
  line-height: 1.6;
}

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

.footer-bottom {
  background-color: #1e1e1e;
  padding: 20px 0;
  border-top: 1px solid #3a3a3a;
  width: 100%;
}

.footer-bottom .footer-container {
  display: block;
  text-align: center;
  gap: none;
  padding: 0;
}

.footer-copyright {
  font-size: 13px;
  margin-bottom: 5px;
  color: #ffffff;
}

.footer-disclaimer {
  font-size: 12px;
  color: #888888;
  margin-bottom: 0;
  line-height: 1.4;
}

.certification-badge {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 12px;
  color: #ffffff;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  @media (max-width: 768px) {
    body {
      padding-top: 148px;
    }
    .header-top {
      position: relative;
    }
    .site-header {
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }
  }
  .footer-container {
    width: 100%;
    max-width: none;
    padding: 0 15px;
    flex-direction: column;
    gap: 25px;
  }
  .footer-brand, .footer-links, .footer-legal {
    min-width: 100%;
  }
  .footer-bottom .footer-container {
    padding: 0;
  }
  .body {
    padding-top: 148px;
  }
  .main-nav {
    padding-top: 0;
  }
  .main-nav.active {
    display: block;
  }
}

@media (max-width: 400px) {
  .desktop-nav-buttons .btn {
    padding: 5px 10px;
    font-size: 11px;
    min-width: 60px;
  }
  .mobile-actions-container {
    gap: 4px;
  }
  .mobile-actions .btn {
    padding: 6px 12px;
    font-size: 11px;
    min-width: 64px;
  }
  .logo {
    font-size: 24px;
  }
  .certification-badge {
    font-size: 11px;
    padding: 4px 10px;
  }
}

@media (max-width: 768px) {
  .main-nav.active {
    padding-top: 60px !important;
  }
  .main-nav .nav-container {
    padding-top: 0;
  }
  .nav-link:first-of-type {
    border-top: none;
  }
}

.site-footer .footer-brand .footer-links {
  width: 100%;
}

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

img, picture, video, canvas, svg {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .mobile-menu-overlay.active {
    display: block;
  }
  .hamburger-menu.active {
    position: fixed;
  }
  body.no-scroll {
    overflow: hidden;
  }
}

.site-header {
  border-bottom: none;
}

@media (min-width: 769px) {
  body {
    padding-top: 120px;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
