:root {
  --header-offset: 122px;
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --button-gradient-start: #FFA53A;
  --button-gradient-end: #D96800;
  --card-bg-color: #17191F;
  --bg-color: #0D0E12;
  --text-main: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange: #D96800;
}

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

body {
  padding-top: var(--header-offset);
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
}

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

/* Header Top */
.header-top {
  background-color: var(--bg-color);
  width: 100%;
}

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

.logo {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: 1px;
  display: inline-block;
  line-height: 1.2;
}

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

/* Buttons */
.desktop-nav-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  line-height: 1.4;
}

.btn-primary {
  background: linear-gradient(180deg, var(--button-gradient-start) 0%, var(--button-gradient-end) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 140, 26, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 140, 26, 0.4);
  color: #fff;
}

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

.btn-secondary:hover {
  background: var(--primary-color);
  color: #fff;
}

/* Main Nav */
.main-nav {
  background-color: var(--card-bg-color);
  width: 100%;
  display: flex;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

.nav-item {
  color: var(--text-main);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-item:hover {
  color: var(--primary-color);
  background-color: rgba(255, 140, 26, 0.1);
}

/* Mobile Elements (Hidden on Desktop) */
.mobile-nav-buttons {
  display: none;
}

.hamburger-menu {
  display: none;
}

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

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

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

.footer-column {
  min-width: 0;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  max-width: 320px;
}

.footer-logo {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: 1px;
}

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

.footer-heading {
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 8px;
  display: inline-block;
}

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

.footer-nav li {
  line-height: 1.4;
}

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

.footer-nav a:hover {
  color: var(--primary-color);
}

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

.copyright {
  color: rgba(255, 243, 230, 0.6);
  font-size: 14px;
}

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

  .header-container {
    width: 100%;
    max-width: none;
    padding: 10px 15px;
    min-height: 60px;
  }

  .logo {
    font-size: 24px;
  }

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

  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background-color: var(--card-bg-color);
    flex-direction: column;
    border-top: none;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    z-index: 1002;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 20px 15px;
  }

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

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

  .nav-item {
    display: block;
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  .nav-item:hover {
    background-color: rgba(255, 140, 26, 0.15);
  }

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    min-height: 48px;
    z-index: 1001;
  }

  .mobile-nav-buttons .btn {
    flex: 1;
    max-width: 160px;
    padding: 8px 16px;
    font-size: 13px;
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1003;
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 8px;
  }

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

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

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

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

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1001;
  }

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

  .site-header {
    padding-top: 0;
  }

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

  .footer-brand {
    max-width: 100%;
  }

  /* Mobile content 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;
}
