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

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

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

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

.header-top {
  background-color: #1a1a1f;
  width: 100%;
}

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

.logo {
  display: inline-block;
  font-size: 1.8rem;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(180deg, #FFA53A 0%, #FF8C1A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  text-transform: lowercase;
  margin-left: 0;
}

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

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
}

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

.btn-download:hover {
  border-color: var(--glow);
  color: var(--glow);
}

.btn-register {
  background: var(--button-gradient);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 0 10px rgba(255, 140, 26, 0.4);
}

.btn-register:hover {
  box-shadow: 0 0 18px rgba(255, 140, 26, 0.7);
}

/* Main Nav */
.main-nav {
  background-color: #17191F;
  display: flex;
  flex-direction: row;
  position: static;
  width: 100%;
  border-top: 1px solid #252830;
}

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

.nav-link {
  display: inline-block;
  padding: 8px 20px;
  color: #FFF3E6;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 4px;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  background: linear-gradient(180deg, rgba(255, 165, 58, 0.2) 0%, rgba(217, 104, 0, 0.2) 100%);
  color: #FFA53A;
}

/* Hamburger */
.hamburger-menu {
  display: none;
}

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

.mobile-header-actions {
  display: none;
}

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

  .site-header {
    background-color: #1a1a1f;
  }

  .header-container {
    width: 100%;
    max-width: none;
    padding: 0 10px;
    min-height: 60px;
    justify-content: center;
    gap: 10px;
  }

  .logo {
    font-size: 1.5rem;
    margin-left: auto;
  }

  .header-actions {
    display: none;
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    cursor: pointer;
    z-index: 1001;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 8px;
    margin-right: auto;
  }

  .hamburger-menu span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #FFA53A;
    border-radius: 3px;
    transition: all 0.3s ease;
  }

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

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

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

  .main-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: #1a1a1f;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-top: none;
    overflow-y: auto;
  }

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

  .nav-container {
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 70px 20px 100px;
    gap: 0;
    width: 100%;
    max-width: none;
  }

  .nav-link {
    display: block;
    padding: 15px 10px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    color: #FFF3E6;
  }

  .nav-link:hover {
    background: rgba(255, 165, 58, 0.1);
    color: #FFA53A;
  }

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

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

  .mobile-header-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 6px 0;
    background: #1a1a1f;
    z-index: 1000;
  }

  .mobile-header-actions .btn {
    flex: 1;
    max-width: 180px;
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  body.no-scroll {
    overflow: hidden;
  }

  .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) {
  .hamburger-menu,
  .mobile-header-actions,
  .mobile-menu-overlay {
    display: none !important;
  }
}

/* ===== Footer ===== */
.site-footer {
  background-color: #17191F;
  color: #FFF3E6;
  padding: 50px 0 20px;
  border-top: 1px solid #A84F0C;
  margin-top: 50px;
}

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

.footer-brand {
  padding-right: 20px;
}

.footer-logo {
  display: inline-block;
  font-size: 2rem;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(180deg, #FFA53A 0%, #FF8C1A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
}

.footer-brand p {
  color: rgba(255, 243, 230, 0.8);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-column h4 {
  color: #FFA53A;
  font-size: 1rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.footer-nav a {
  color: rgba(255, 243, 230, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  padding: 2px 0;
}

.footer-nav a:hover {
  color: #FFA53A;
}

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

.footer-bottom p {
  color: rgba(255, 243, 230, 0.6);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    padding: 0 15px;
    gap: 20px;
  }

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

  .footer-column h4 {
    font-size: 0.9rem;
  }

  .footer-nav a {
    font-size: 0.85rem;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
