:root {
  --header-offset: 166px;
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  --card-bg: #17191F;
  --main-bg: #0D0E12;
  --text-main: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange: #D96800;
}

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

/* ===== Header Styles ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--main-bg);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
  border-bottom: 2px solid var(--border-color);
  min-height: 50px;
}

.header-top {
  background-color: #1a1512;
  border-bottom: 2px solid var(--border-color);
}

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

.logo {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-main);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px var(--glow-color), 0 0 20px var(--primary-color);
  transition: all 0.3s ease;
}

.logo:hover {
  color: var(--primary-color);
  text-shadow: 0 0 15px var(--glow-color), 0 0 30px var(--primary-color);
}

.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1002;
}

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

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

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 10px rgba(216, 104, 0, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(216, 104, 0, 0.5);
}

.btn-login {
  background: var(--button-gradient);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-register {
  background: var(--button-gradient);
  color: var(--text-main);
  border: 1px solid var(--primary-color);
}

.btn-download {
  background: var(--button-gradient);
  color: var(--text-main);
  border: 1px solid var(--glow-color);
}

.main-nav {
  background-color: #0a0a0d;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  flex-direction: row;
  position: static;
  transform: none;
  transition: none;
  min-height: 52px;
}

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

.nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--glow-color);
  background-color: rgba(216, 104, 0, 0.15);
  border-color: var(--border-color);
  text-shadow: 0 0 8px rgba(255, 176, 77, 0.5);
}

.nav-link.active {
  color: var(--primary-color);
  background-color: rgba(216, 104, 0, 0.2);
  border-color: var(--primary-color);
  text-shadow: 0 0 8px rgba(255, 176, 77, 0.6);
}

.mobile-nav-buttons {
  display: none;
  background-color: var(--main-bg);
  border-bottom: 2px solid var(--border-color);
  padding: 8px 15px;
  justify-content: center;
  gap: 8px;
  z-index: 1000;
  flex-wrap: wrap;
}

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

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===== Footer Styles ===== */
.site-footer {
  background-color: #1a1512;
  border-top: 3px solid var(--border-color);
  color: var(--text-main);
  margin-top: 40px;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-main);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px var(--glow-color), 0 0 20px var(--primary-color);
}

.footer-description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #ccc;
}

.footer-certifications {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.certification-badge {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-main);
  background-color: rgba(168, 79, 12, 0.15);
}

.footer-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--button-gradient);
}

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

.footer-nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  padding: 4px 0;
}

.footer-nav a:hover {
  color: var(--primary-color);
  padding-left: 8px;
  text-shadow: 0 0 8px rgba(255, 140, 26, 0.4);
}

.footer-download-text {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 15px;
  line-height: 1.5;
}

.footer-download-btn {
  display: inline-block;
  background: var(--button-gradient);
  color: var(--text-main);
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 10px rgba(216, 104, 0, 0.3);
  transition: all 0.3s ease;
}

.footer-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(216, 104, 0, 0.5);
}

.footer-bottom {
  border-top: 1px solid rgba(168, 79, 12, 0.3);
  padding: 15px 0;
  text-align: center;
}

.copyright-text {
  font-size: 0.85rem;
  color: #aaa;
}

/* ===== Responsive Styles ===== */
@media (max-width: 768px) {
  :root {
    --header-offset: 146px;
  }

  .header-container {
    width: 100%;
    max-width: none;
    padding-left: 12px;
    padding-right: 12px;
    min-height: 60px;
    justify-content: space-between;
  }

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

  .hamburger-menu {
    display: block;
    order: 1;
  }

  .logo {
    order: 2;
    flex: 1;
    text-align: center;
    font-size: 1.7rem;
  }

  .btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 280px;
    height: 100vh;
    background-color: #0a0a0d;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease, display 0s linear 0.3s;
    z-index: 1001;
    border-right: 2px solid var(--border-color);
    overflow-y: auto;
    border-bottom: none;
  }

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

  .nav-container {
    width: 100%;
    max-width: none;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    flex-wrap: nowrap;
  }

  .nav-link {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(168, 79, 12, 0.3);
    border-left: 2px solid transparent;
  }

  .nav-link:hover {
    border-left-color: var(--primary-color);
    padding-left: 16px;
  }

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

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

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

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

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

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .nav-container {
    padding: 15px;
  }

  .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: 480px) {
  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: 1;
  }

  .mobile-nav-buttons {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .mobile-nav-buttons .btn {
    flex: 1;
    font-size: 0.75rem;
    padding: 8px 4px;
    text-align: center;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
