:root {
  --header-offset: 122px;
}

body {
  padding-top: var(--header-offset);
  background: #0D0E12;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #17191F;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid #A84F0C;
}

.header-top {
  background-color: #0D0E12;
  width: 100%;
  border-bottom: 1px solid #A84F0C;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  min-height: 48px;
}

.logo {
  font-size: 32px;
  font-weight: 900;
  color: #FFF3E6;
  text-decoration: none;
  letter-spacing: -0.5px;
  display: inline-block;
  text-shadow: 0 0 12px rgba(255, 176, 77, 0.4);
}

.logo:hover {
  color: #FFB04D;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: #FFF;
  text-decoration: none;
  border: none;
  line-height: 1.4;
  min-height: 32px;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 140, 26, 0.4);
}

.btn-register {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF;
  border: 1px solid #FFB04D;
  box-shadow: 0 0 10px rgba(255, 176, 77, 0.3);
}

.btn-login {
  background: transparent;
  border: 2px solid #FFA53A;
  color: #FFA53A;
}

.btn-login:hover {
  background: rgba(255, 165, 58, 0.15);
  color: #FFB04D;
  box-shadow: 0 0 8px rgba(255, 165, 58, 0.3);
}

.btn-download {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF;
}

.main-nav {
  background-color: #17191F;
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 44px;
}

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

.nav-link {
  color: #FFF3E6;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 4px;
  transition: color 0.2s, background-color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: #FFB04D;
  background-color: rgba(255, 176, 77, 0.1);
  text-shadow: 0 0 8px rgba(255, 176, 77, 0.4);
}

.hamburger-menu {
  display: none;
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1003;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #FFF3E6;
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

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

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

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

@media (max-width: 768px) {
  :root {
    --header-offset: 146px;
  }
  .header-container {
    width: 100%;
    max-width: none;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap;
    min-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .header-top {
    padding-top: 0;
    padding-bottom: 0;
  }
  .logo {
    margin: 0 auto;
    font-size: 28px;
    order: 2;
    text-align: center;
    flex: 1;
  }
  .header-actions {
    display: none;
  }
  .hamburger-menu {
    display: block;
    order: 1;
    position: relative;
    top: auto;
    left: auto;
  }
  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background-color: #17191F;
    z-index: 999;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 70px;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .main-nav.active {
    display: block;
    transform: translateX(0);
  }
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: none;
    padding: 0;
  }
  .nav-link {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    border-bottom: 1px solid rgba(168, 79, 12, 0.3);
    box-sizing: border-box;
  }
  .mobile-menu-overlay.active {
    display: block;
  }
  .mobile-nav-buttons {
    display: block;
    background-color: #0D0E12;
    border-top: 1px solid #A84F0C;
    padding: 10px 0;
  }
  .mobile-nav-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
  }
  .mobile-nav-buttons .btn-register,
  .mobile-nav-buttons .btn-download {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    font-size: 13px;
    padding: 6px 14px;
  }
  .mobile-nav-buttons .btn-login {
    background: transparent;
    border-color: #FFA53A;
    color: #FFA53A;
    font-size: 13px;
    padding: 6px 14px;
  }
  .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 (min-width: 769px) {
  .site-header {
    min-height: 88px;
  }
}
.site-footer {
  background-color: #17191F;
  border-top: 2px solid #A84F0C;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding: 48px 24px 32px;
}

.footer-logo {
  font-size: 28px;
  font-weight: 900;
  color: #FFF3E6;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 16px;
  text-shadow: 0 0 10px rgba(255, 176, 77, 0.4);
}

.footer-desc {
  color: rgba(255, 243, 230, 0.7);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.footer-title {
  color: #FFB04D;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #A84F0C;
}

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

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

.footer-nav a {
  color: rgba(255, 243, 230, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-nav a:hover {
  color: #FFB04D;
  padding-left: 4px;
}

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

.copyright {
  margin: 0;
  color: rgba(255, 243, 230, 0.5);
  font-size: 13px;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 20px;
  }
  .footer-col {
    text-align: center;
  }
  .footer-nav li {
    margin-bottom: 6px;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
