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

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--color-text-main);
  background-color: var(--color-background);
  padding-top: var(--header-offset); /* Fixed header offset */
  overflow-x: hidden; /* Prevent horizontal scroll on body */
}

/* --- Site Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  background-color: var(--color-background); /* Base for fixed header */
}

.header-top {
  box-sizing: border-box;
  min-height: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-deep-orange); /* Darker for top bar */
  width: 100%;
  color: var(--color-text-main);
}

.header-container {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px; /* Padding for logo and buttons */
}

.logo {
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  color: var(--color-text-main);
  display: block; /* Ensure logo is visible */
  padding: 0; /* Reset padding */
  line-height: 1; /* Adjust line-height for text logo */
}

.logo img {
  display: block;
  max-height: 60px;
  height: auto;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  color: var(--color-text-main);
  font-weight: bold;
  font-size: 15px;
  background: var(--color-button-gradient);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Hamburger Menu (Desktop - Hidden) */
.hamburger-menu {
  display: none; /* Hidden on desktop */
}

/* Main Navigation */
.main-nav {
  box-sizing: border-box;
  min-height: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-primary); /* Lighter for main nav */
  width: 100%;
}

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

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 25px;
}

.nav-list li a {
  text-decoration: none;
  color: var(--color-text-main);
  font-weight: bold;
  font-size: 16px;
  white-space: nowrap;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-list li a:hover {
  color: var(--color-accent);
}

.nav-list li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}

.nav-list li a:hover::after {
  width: 100%;
}

/* Mobile Navigation Buttons (Desktop - Hidden) */
.mobile-nav-buttons {
  box-sizing: border-box;
  display: none; /* Hidden on desktop by default */
  min-height: 48px;
}

/* Navigation Overlay (Desktop - Hidden) */
.nav-overlay {
  display: none; /* Hidden on desktop */
}

/* --- Site Footer --- */
.site-footer {
  background-color: var(--color-card-bg); /* Use card background for footer */
  color: var(--color-text-main);
  padding: 40px 20px 20px;
  font-size: 14px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 30px;
}

.footer-col h3 {
  color: var(--color-accent);
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-logo {
  font-size: 26px;
  font-weight: bold;
  text-decoration: none;
  color: var(--color-text-main);
  display: block;
  margin-bottom: 15px;
}

.footer-description {
  line-height: 1.6;
  margin-bottom: 15px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: rgba(255, 243, 230, 0.8); /* Slightly less prominent */
}

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

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

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

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

.footer-legal-links {
  max-width: 1200px;
  margin: 20px auto;
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
}

.footer-legal-links .footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 243, 230, 0.6);
}

/* Dynamic Slot Anchors */
.footer-slot-anchor-inner {
  min-height: 10px; /* Ensure visibility for injection */
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  :root {
    --header-offset: 110px; /* 60px (header-top) + 48px (mobile-nav-buttons) + 0 (main-nav is hidden by default) */
  }

  /* Header adjustments */
  .header-top {
    min-height: 60px !important;
    height: 60px !important;
    padding: 0 15px; /* Adjust padding for mobile top bar */
  }

  .header-container {
    width: 100%;
    max-width: none !important; /* Remove max-width on mobile */
    padding: 0; /* Reset padding, as header-top has it */
    position: relative; /* For logo centering */
    justify-content: space-between; /* To push hamburger and buttons apart */
  }

  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 100px); /* Account for hamburger width */
    height: 100%; /* Occupy full height for vertical centering */
  }

  .logo img {
    max-height: 56px !important;
  }

  .desktop-nav-buttons {
    display: none !important; /* Hide desktop buttons on mobile */
  }

  /* Hamburger Menu */
  .hamburger-menu {
    display: flex; /* Show hamburger on mobile */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Above header */
    position: relative; /* To keep it left */
  }

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

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

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

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

  /* Mobile Navigation Buttons */
  .mobile-nav-buttons {
    display: flex !important; /* Show mobile buttons */
    min-height: 48px;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px; /* Adjust padding */
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    background-color: var(--color-card-bg); /* Different background for this row */
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.1); /* Separator */
  }

  .mobile-nav-buttons .btn {
    flex: 1;
    min-width: 0;
    max-width: calc(50% - 5px); /* Two buttons with 10px gap */
    box-sizing: border-box;
    padding: 8px 12px;
    font-size: 13px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Main Navigation (Mobile - Hidden by default) */
  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 70%; /* Side menu width */
    height: 100vh;
    background-color: var(--color-card-bg); /* Menu background */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Off-screen to the left */
    transition: transform 0.3s ease;
    padding-top: var(--header-offset); /* Push content below fixed header */
    overflow-y: auto; /* Allow scrolling for long menus */
    min-height: 48px !important;
    height: 100vh; /* Ensure it covers full height */
  }

  .main-nav.active {
    display: flex; /* Show menu when active */
    transform: translateX(0); /* Slide into view */
  }

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 15px;
    width: 100%;
    max-width: none !important; /* Remove max-width on mobile */
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list li a {
    font-size: 16px;
    padding: 10px 0;
    display: block;
  }

  .nav-list li a::after {
    height: 1px; /* Thinner underline on mobile */
  }

  /* Navigation Overlay */
  .nav-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999; /* Below menu, above page content */
    transition: opacity 0.3s ease;
    opacity: 0;
  }

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

  /* Body scroll lock */
  body.no-scroll {
    overflow: hidden;
  }

  /* Footer adjustments */
  .site-footer {
    padding: 30px 15px 15px;
  }

  .footer-top-grid {
    grid-template-columns: 1fr; /* Single column layout on mobile */
    gap: 25px;
    margin-bottom: 25px;
  }

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

  .footer-col h3 {
    margin-bottom: 10px;
  }

  .footer-logo {
    margin-bottom: 10px;
  }

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

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

  .footer-bottom {
    padding-top: 15px;
    margin-top: 15px;
  }

  /* Content area image overflow protection */
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
