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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  padding-top: var(--header-offset);
}

/* Header styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-color);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  min-height: auto;
}

.header-top {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  padding: 10px 0;
}

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

.logo {
  display: inline-block;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-main);
  text-decoration: none;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.logo:hover {
  transform: scale(1.05);
  color: #fff;
}

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

.main-nav {
  background: var(--card-bg);
  border-top: 2px solid var(--border-color);
  border-bottom: 2px solid var(--border-color);
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #fff;
}

.nav-link.active {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #fff;
}

/* Button styles */
.btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  cursor: pointer;
}

.btn-register {
  background: var(--btn-gradient);
  color: #fff;
  border-color: #fff;
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 138, 26, 0.5);
}

.btn-login {
  background: var(--btn-gradient);
  color: #fff;
  border-color: #fff;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 138, 26, 0.5);
}

.btn-download {
  background: var(--btn-gradient);
  color: #fff;
  border-color: #fff;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 138, 26, 0.5);
}

.mobile-nav-buttons {
  display: none;
  background: var(--bg-color);
  border-bottom: 2px solid var(--border-color);
}

/* Hidden hamburger by default */
.hamburger-menu, .mobile-menu-overlay {
  display: none;
}

/* Footer styles */
.site-footer {
  background: var(--card-bg);
  border-top: 3px solid var(--border-color);
  margin-top: 50px;
  padding: 40px 0 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 0 20px;
  flex-wrap: wrap;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-brand {
  flex: 2;
}

.footer-logo {
  display: inline-block;
  font-size: 36px;
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.footer-description {
  color: var(--text-main);
  line-height: 1.6;
  opacity: 0.8;
  font-size: 14px;
}

.footer-title {
  color: var(--primary-color);
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  border-radius: 2px;
}

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

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

.footer-nav a {
  color: var(--text-main);
  text-decoration: none;
  opacity: 0.7;
  font-size: 14px;
  transition: opacity 0.3s ease, color 0.3s ease, padding-left 0.3s ease;
  display: inline-block;
}

.footer-nav a:hover {
  opacity: 1;
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  margin-top: 30px;
  padding: 20px 0;
  text-align: center;
  background: var(--bg-color);
}

.footer-copyright {
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 5px;
}

.footer-license {
  font-size: 12px;
  color: var(--text-main);
  opacity: 0.6;
}

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

  .header-top {
    padding: 5px 0;
  }

  .header-container {
    max-width: none;
    padding: 0 10px;
  }

  .logo {
    font-size: 28px;
    letter-spacing: 1px;
    margin: 0 auto;
    order: 2;
  }

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

  /* Hamburger styles */
  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    order: 1;
    margin: 0 10px 0 15px;
  }

  .hamburger-menu span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--text-main);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

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

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

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

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

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

  .main-nav {
    display: none;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: var(--card-bg);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 60px;
    z-index: 1000;
    border-right: 3px solid var(--primary-color);
    overflow-y: auto;
  }

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

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 10px 20px;
    max-width: none;
  }

  .nav-link {
    width: 100%;
    text-align: left;
    font-size: 16px;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-link:hover {
    background: rgba(255,140,26,0.2);
    color: var(--primary-color);
    padding-left: 20px;
  }

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 8px 10px;
    flex-wrap: wrap;
    background: var(--card-bg);
    border-bottom: 2px solid var(--border-color);
  }

  .btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 20px;
  }

  .site-header {
    position: fixed;
    top: 0;
  }

  .site-footer {
    padding: 30px 0 0;
  }

  .footer-container {
    flex-direction: column;
    gap: 30px;
    padding: 0 15px;
  }

  .footer-column {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 400px) {
  .btn {
    padding: 4px 8px;
    font-size: 11px;
  }
  .desktop-nav-buttons {
    gap: 4px;
  }
}

/* Ensure mobile content area protection */
.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;
}
