html { scroll-behavior: smooth; }
body { margin: 0; padding-top: var(--header-offset); font-family: 'Arial', sans-serif; color: #FFF6D6; background-color: #0A0A0A; overflow-x: hidden; }
:root { --header-offset: 122px; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  background-color: #0A0A0A; /* Background color for the entire header */
}

.header-top {
  box-sizing: border-box;
  height: 68px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #111111; /* Card BG for header-top, different from site-header */
  width: 100%;
  padding: 0 20px; /* Add padding to the header-top itself, as container handles max-width */
}

.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;
}

.logo {
  color: #F2C14E;
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
  display: block;
}

.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;
}

.mobile-nav-buttons {
  box-sizing: border-box;
  display: none; /* Hidden by default for desktop */
  min-height: 48px;
  width: 100%;
  background-color: #111111; /* Same as header-top */
  padding: 0 20px;
}

.main-nav {
  box-sizing: border-box;
  height: 52px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #F2C14E; /* Main color for main-nav, different from header-top */
  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;
}

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

.main-nav li a {
  color: #0A0A0A; /* Dark text on F2C14E background */
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 0;
  display: block;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.main-nav li a:hover,
.main-nav li a.active {
  color: #FFF6D6;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  color: #0A0A0A; /* Dark text for contrast on bright button */
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.hamburger-menu {
  display: none; /* Hidden by default for desktop */
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  z-index: 1001;
}

.hamburger-menu .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #F2C14E;
  transition: all 0.3s ease;
}

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

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

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

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  backdrop-filter: blur(5px);
}

.overlay.visible {
  display: block;
}

/* Footer Styles */
.site-footer {
  background-color: #0A0A0A;
  color: #FFF6D6;
  padding: 40px 20px 20px;
  font-size: 14px;
}

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

.footer-col h3 {
  color: #F2C14E;
  font-size: 18px;
  margin-bottom: 15px;
}

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

.footer-description {
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

.footer-nav li a {
  color: #FFF6D6;
  text-decoration: none;
  display: block;
  padding: 5px 0;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #3A2A12; /* Border color */
  max-width: 1200px;
  margin: 0 auto;
  color: #FFF6D6;
}

.footer-bottom p {
  margin: 0;
}

/* Anchor slots */
.footer-slot-anchor-inner { min-height: 1px; }

/* Mobile Styles */
@media (max-width: 768px) {
  :root { --header-offset: 108px; }
  body { padding-top: var(--header-offset); }
  .header-top {
    height: 60px !important;
    padding: 0 15px;
  }
  .header-container {
    width: 100%;
    max-width: none;
    padding: 0;
    justify-content: space-between;
  }
  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px;
  }
  .logo img {
    max-height: 56px !important;
  }
  .desktop-nav-buttons {
    display: none !important;
  }
  .mobile-nav-buttons {
    display: flex !important;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    width: 100%; max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    background-color: #111111;
  }
  .mobile-nav-buttons .btn {
    flex: 1; min-width: 0;
    max-width: calc(50% - 5px); /* 50% - half of gap */
    box-sizing: border-box;
    padding: 8px 12px;
    font-size: 13px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
  }
  .main-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 280px; /* Sidebar width */
    height: 100vh;
    background-color: #111111; /* Card BG for mobile menu */
    flex-direction: column;
    padding-top: 80px; /* Space for logo/hamburger if needed, but menu is full screen */
    transform: translateX(-100%); /* Off-screen */
    transition: transform 0.3s ease-out;
    box-shadow: 2px 0 5px rgba(0,0,0,0.3);
    z-index: 1002;
    overflow-y: auto;
  }
  .main-nav.active {
    display: flex; /* Must set display to show */
    transform: translateX(0); /* On-screen */
  }
  .nav-container {
    width: 100%;
    max-width: none;
    padding: 0;
    height: auto;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .main-nav li {
    border-bottom: 1px solid #3A2A12; /* Border color */
  }
  .main-nav li:last-child {
    border-bottom: none;
  }
  .main-nav li a {
    padding: 15px 20px;
    font-size: 17px;
    color: #FFF6D6;
  }
  .main-nav li a:hover {
    background-color: #3A2A12;
  }
  .hamburger-menu {
    display: flex;
    margin-left: 0;
    z-index: 1001;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  .footer-col {
    margin-bottom: 20px;
  }
  .footer-col:last-child {
    margin-bottom: 0;
  }
  .footer-bottom {
    padding-left: 15px;
    padding-right: 15px;
  }
  .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.no-scroll {
  overflow: 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;
}
