:root { --header-offset: 122px; }
body {
  padding-top: var(--header-offset);
  overflow-x: hidden;
  margin: 0;
  font-family: 'Arial', sans-serif;
}

/* Base styles for header */
.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: #C91F17; /* Primary color */
  box-sizing: border-box;
}

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

.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-family: 'Arial', sans-serif;
  font-size: 28px;
  font-weight: bold;
  color: #FFF5E1; /* Text Main */
  text-decoration: none;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

/* If logo is an image */
.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 on desktop */
  min-height: 48px;
}

.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;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #7A0E0E; /* Deep Red for button text */
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
  border: 1px solid #F2B544; /* Border color */
  box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 0 15px #FFCC66; /* Glow */
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3), 0 0 20px #FFCC66;
}

.main-nav {
  height: 52px;
  background-color: #D32F2F; /* Card BG */
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

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

.nav-link {
  color: #FFF5E1; /* Text Main */
  text-decoration: none;
  padding: 0 15px;
  font-size: 16px;
  font-weight: 500;
  height: 100%;
  display: flex;
  align-items: center;
  transition: color 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFD86A; /* Gold-like hover */
}

.hamburger-menu {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1002;
}

.hamburger-icon {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #FFF5E1; /* Text Main */
  position: relative;
  transition: all 0.3s ease;
}

.hamburger-icon::before, .hamburger-icon::after {
  content: '';
  display: block;
  width: 25px;
  height: 3px;
  background-color: #FFF5E1; /* Text Main */
  position: absolute;
  transition: all 0.3s ease;
}

.hamburger-icon::before {
  top: -8px;
}

.hamburger-icon::after {
  top: 8px;
}

.hamburger-menu.active .hamburger-icon {
  background-color: transparent;
}

.hamburger-menu.active .hamburger-icon::before {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .hamburger-icon::after {
  transform: translateY(-8px) 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;
}

/* Footer styles */
.site-footer {
  background-color: #B71C1C; /* Background color */
  color: #FFF5E1; /* Text Main */
  padding: 40px 20px 20px;
  font-size: 14px;
  line-height: 1.6;
  box-sizing: border-box;
}

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

.footer-col {
  margin-bottom: 20px;
}

.footer-logo {
  font-family: 'Arial', sans-serif;
  font-size: 24px;
  font-weight: bold;
  color: #FFF5E1; /* Text Main */
  text-decoration: none;
  display: block;
  margin-bottom: 15px;
}

.footer-description {
  color: #FFF5E1;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-col h3 {
  color: #FFD86A; /* Gold-like */
  font-size: 18px;
  margin-bottom: 15px;
  border-bottom: 1px solid #D32F2F; /* Card BG */
  padding-bottom: 5px;
}

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

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

.footer-nav a {
  color: #FFF5E1;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-slot-anchor-inner {
  /* For dynamic content injection, keep visible */
  min-height: 1px; /* Ensure it takes up space if empty */
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #7A0E0E; /* Deep Red */
  color: #FFF5E1;
}

.footer-bottom p {
  margin: 0;
}

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

  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* Header adjustments */
  .site-header {
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  }

  .header-top {
    height: 60px;
    padding: 0 15px; /* Smaller padding for mobile */
    justify-content: space-between;
  }

  .header-container {
    padding: 0;
    max-width: none;
    position: relative; /* Needed for absolute positioning of hamburger if desired, or for flex balancing */
  }

  .logo {
    flex: 1 !important; /* Allow logo to take space */
    display: flex !important;
    justify-content: center !important; /* Center the text logo */
    align-items: center !important;
    font-size: 24px;
  }

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

  .hamburger-menu {
    display: block;
    order: -1; /* Push to the left */
  }

  .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: #E53935; /* Secondary color for mobile button bar */
    border-top: 1px solid rgba(0,0,0,0.1);
  }

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

  .main-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: var(--header-offset); /* Position below fixed header elements */
    left: 0;
    width: 80%; /* Menu width */
    max-width: 300px; /* Optional max width for larger phones */
    height: calc(100% - var(--header-offset));
    background-color: #D32F2F; /* Card BG for menu */
    flex-direction: column;
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
  }

  .main-nav.active {
    display: flex; /* Make it visible */
    transform: translateX(0); /* Slide into view */
  }

  .nav-container {
    flex-direction: column;
    padding: 20px 15px;
    align-items: flex-start;
    height: auto;
    max-width: none;
  }

  .nav-link {
    width: 100%;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: flex-start;
  }

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

  .overlay.active {
    display: block;
  }

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

  .footer-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 15px;
  }

  .footer-col {
    margin-bottom: 15px;
  }

  .footer-col:last-of-type {
    margin-bottom: 0;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
