html { scroll-behavior: smooth; }
body { margin: 0; font-family: sans-serif; color: #FFF1E8; background-color: #140C0C; padding-top: var(--header-offset); }
:root { --header-offset: 122px; }

/* General link styles */
a { text-decoration: none; color: #FFF1E8; }
a:hover { color: #F3C54D; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 25px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #140C0C;
  font-weight: bold;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.btn:hover {
  background: linear-gradient(180deg, #F3C54D 0%, #D86A14 100%);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  color: #140C0C;
}

/* Header styles */
.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: transparent;
}

.header-top {
  box-sizing: border-box;
  height: 68px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #7E0D0D; /* Deep Red */
  width: 100%;
}

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

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #FFF1E8;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
}

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

.mobile-nav-buttons {
  box-sizing: border-box;
  display: none; /* Hidden by default on desktop */
  min-height: 48px;
  background-color: #2A1212; /* Card BG */
  padding: 0 15px;
  width: 100%;
}

.main-nav {
  box-sizing: border-box;
  height: 52px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #2A1212; /* Card BG */
  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-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 25px;
}

.main-menu a {
  color: #FFF1E8;
  font-size: 15px;
  font-weight: 500;
  padding: 5px 0;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.main-menu a:hover {
  color: #F3C54D;
}

.hamburger-menu {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  position: absolute;
  left: 15px; /* Adjust for mobile padding */
}

.hamburger-menu .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #FFF1E8;
  margin: 5px 0;
  transition: all 0.3s ease;
}

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

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

/* Footer styles */
.site-footer {
  background-color: #140C0C; /* Background color */
  padding: 40px 20px 20px;
  color: #FFF1E8;
  font-size: 14px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #6A1E1E; /* Border color */
}

.footer-col h3 {
  color: #F3C54D; /* Gold */
  font-size: 18px;
  margin-bottom: 15px;
  border-bottom: 2px solid #C61F1F;
  padding-bottom: 5px;
  display: inline-block;
}

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

.footer-logo {
  font-size: 26px;
  font-weight: bold;
  color: #FFF1E8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  display: block;
}

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

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

.footer-nav a {
  color: #FFF1E8;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  color: #FFF1E8;
}

.footer-bottom p {
  margin: 0;
}

/* Slot Anchors - ensure they are visible for injection */
.footer-slot-anchor-inner {
  min-height: 1px; /* Ensure it takes up space */
  display: block;
  width: 100%;
}

/* Responsive styles */
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  body { padding-top: var(--header-offset); }

  .header-top {
    height: 60px !important;
    min-height: 60px !important;
    position: relative; /* For logo absolute positioning */
  }
  .header-container {
    width: 100%;
    max-width: none;
    padding: 0 15px;
    position: relative;
    justify-content: center; /* Center logo by default */
  }

  .logo {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: calc(100% - 100px); /* Account for hamburger width */
    font-size: 24px;
  }

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

  .mobile-nav-buttons {
    display: flex !important;
    min-height: 48px;
    align-items: center;
    justify-content: center; /* Center buttons horizontally */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .mobile-nav-buttons .btn {
    flex: 1;
    min-width: 0;
    max-width: calc(50% - 5px);
    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 {
    height: 100vh; /* Full viewport height for mobile menu */
    min-height: auto;
    position: fixed;
    top: var(--header-offset); /* Start below header */
    left: 0;
    width: 280px; /* Width of the mobile menu */
    background-color: #2A1212; /* Card BG */
    transform: translateX(-100%); /* Hidden by default */
    transition: transform 0.3s ease-in-out;
    z-index: 1001;
    display: none; /* Crucial for hiding by default */
    overflow-y: auto;
  }

  .main-nav.active {
    transform: translateX(0); /* Show menu */
    display: flex; /* Make it visible */
    flex-direction: column;
  }

  .nav-container {
    width: 100%;
    max-width: none;
    padding: 20px 15px;
    flex-direction: column;
    align-items: flex-start;
    height: auto; /* Allow content to dictate height */
  }

  .main-menu {
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }

  .main-menu a {
    font-size: 16px;
    padding: 8px 0;
    display: block;
  }

  .hamburger-menu {
    display: block;
  }
  
  .hamburger-menu.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
  .hamburger-menu.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .footer-col h3 {
    margin-left: auto;
    margin-right: auto;
  }

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

/* Ensure body overflow-x is hidden for mobile */
@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.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;
}
