:root {
  --header-offset: 166px;
  --primary: #F2C14E;
  --secondary: #FFD36B;
  --btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --card-bg: #111111;
  --bg: #0A0A0A;
  --text-main: #FFF6D6;
  --border: #3A2A12;
  --glow: #FFD36B;
}

body {
  padding-top: var(--header-offset);
  background-color: var(--bg);
  color: var(--text-main);
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

/* Desktop Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  border-bottom: 2px solid var(--border);
}

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

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

.logo {
  font-size: 28px;
  font-weight: 900;
  color: #0A0A0A;
  background: var(--btn-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.3);
  letter-spacing: 1px;
  display: inline-block;
}

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

.btn {
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--btn-gradient);
  color: #0A0A0A;
  box-shadow: 0 0 15px rgba(255, 216, 106, 0.3);
}

.btn-secondary {
  background: linear-gradient(135deg, #333 0%, #222 100%);
  color: #FFD86A;
  border: 1px solid var(--border);
}

.btn-download {
  background: var(--btn-gradient);
  color: #0A0A0A;
}

.main-nav {
  background-color: #171717;
  width: 100%;
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--border);
}

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

.nav-link {
  color: #FFF6D6;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 4px;
  line-height: 1.4;
  transition: all 0.3s;
  white-space: nowrap;
}

.nav-link:hover {
  color: #0A0A0A;
  background: var(--btn-gradient);
}

/* Desktop Hide Mobile Elements */
.mobile-nav-buttons {
  display: none;
}

.hamburger-menu {
  display: none;
}

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

/* Footer Styles */
.site-footer {
  background-color: #0D0D0D;
  border-top: 2px solid var(--border);
  color: var(--text-main);
  padding: 0;
  margin-top: 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 40px 30px;
  text-align: left;
}

.footer-brand {
  flex: 2;
  min-width: 200px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 900;
  color: #F2C14E;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 10px;
}

.footer-desc {
  color: #C4B99A;
  font-size: 13px;
  line-height: 1.6;
}

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

.footer-title {
  font-size: 15px;
  color: #F2C14E;
  margin-bottom: 10px;
  font-weight: 700;
}

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

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

.footer-nav li a {
  color: #C4B99A;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s;
}

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

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

.footer-bottom p {
  color: #C4B99A;
  font-size: 13px;
  margin: 0;
}

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

  .header-container {
    width: 100%;
    max-width: none;
    padding: 8px 15px;
    justify-content: space-between;
    min-height: 44px;
  }

  .logo {
    font-size: 24px;
    order: 2;
    margin: 0 auto;
  }

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

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    order: 1;
    margin-right: 5px;
  }

  .hamburger-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #FFD36B;
    transition: transform 0.3s;
  }

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

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

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

  .mobile-nav-buttons {
    display: flex !important;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background-color: var(--bg);
    border-top: 1px solid var(--border);
    padding: 6px 10px;
    position: relative;
    z-index: 999 !important;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
  }

  .mobile-nav-buttons .btn {
    padding: 8px 14px;
    font-size: 13px;
    white-space: nowrap;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100%;
    background-color: #111111;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 70px;
    flex-wrap: nowrap;
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    border-right: 1px solid var(--border);
  }

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

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

  .nav-link {
    display: block;
    width: 100%;
    padding: 8px 15px;
    font-size: 16px;
  }

  .nav-link:hover {
    background: transparent;
    color: #F2C14E;
  }

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

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

  .header-placeholder {
    height: var(--header-offset);
  }

  .footer-container {
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
  }

  .footer-column {
    width: 100%;
    text-align: center;
  }

  .footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-bottom p {
    font-size: 12px;
    text-align: center;
  }

  .site-footer {
    margin-top: 30px;
  }

  .footer-nav {
    display: column;
    flex-direction: column;
    align-items: center;
    display: flex;
  }

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

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

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

  /* Hide potential duplicate placeholders */
  .page-xxx {
    padding-top: 10px; /* decorative only */
  }
}

/* Mobile content protection */
@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;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
