:root {
  --primary-color: #C91F17;
  --secondary-color: #E53935;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  --card-bg: #D32F2F;
  --background-color: #B71C1C;
  --text-main-color: #FFF5E1;
  --border-color: #F2B544;
  --glow-color: #FFCC66;
  --gold-color: #F4D34D;
  --deep-red-color: #7A0E0E;
  --header-offset: 122px; /* Desktop: 68px (header-top) + 52px (main-nav) */
}

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

/* Site Header - Fixed Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  background-color: transparent; /* Actual background applied to header-top and main-nav */
  box-sizing: border-box;
  overflow-x: hidden; /* Prevent header content from overflowing */
}

/* Header Top Section */
.header-top {
  box-sizing: border-box;
  height: 68px; /* Desktop fixed height */
  display: flex;
  align-items: center;
  background-color: var(--primary-color); /* Distinct from main-nav */
  width: 100%;
  padding: 0 20px; /* Padding for the header-top itself */
}

.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 {
  font-size: 28px;
  font-weight: bold;
  color: var(--text-main-color);
  text-decoration: none;
  display: flex; /* For vertical centering of text/img */
  align-items: center;
  height: 100%; /* Occupy full height of header-top */
  padding-right: 20px; /* Space between logo and hamburger/buttons */
}

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

/* Desktop Navigation Buttons */
.desktop-nav-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Mobile Navigation Buttons - Hidden by default on desktop */
.mobile-nav-buttons {
  box-sizing: border-box;
  display: none; /* Hidden globally, shown on mobile */
  min-height: 48px; /* Mobile fixed height for this row */
  background-color: var(--secondary-color); /* Same as main-nav */
  width: 100%;
  padding: 0 15px; /* Adjust padding for mobile */
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap; /* Ensure buttons stay in one line */
}

/* Main Navigation */
.main-nav {
  box-sizing: border-box;
  height: 52px; /* Desktop fixed height */
  display: flex; /* Desktop default: visible, horizontal */
  align-items: center;
  background-color: var(--secondary-color); /* Distinct from header-top */
  width: 100%;
  padding: 0 20px; /* Padding for the main-nav itself */
  transition: transform 0.3s ease; /* For mobile slide-in */
}

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

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 25px; /* Spacing between desktop nav items */
}

.main-nav ul li a {
  color: var(--text-main-color);
  text-decoration: none;
  font-size: 16px;
  padding: 10px 0;
  display: block;
  white-space: nowrap; /* Prevent menu items from wrapping */
  transition: color 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
  color: var(--gold-color);
}

/* Hamburger Menu - Hidden by default on desktop */
.hamburger-menu {
  display: none; /* Hidden globally, shown on mobile */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001; /* Above header-top */
  position: relative;
  width: 30px;
  height: 30px;
  margin-right: 15px; /* Space between hamburger and logo on desktop (effectively hidden) */
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-main-color);
  margin-bottom: 5px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-menu span:last-child {
  margin-bottom: 0;
}

/* Hamburger menu active state */
.hamburger-menu.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

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

/* Overlay for mobile menu */
.overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 998; /* Below hamburger, above content */
  transition: opacity 0.3s ease;
  opacity: 0;
}

.overlay.visible {
  display: block;
  opacity: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  color: #333; /* Dark text for light button background */
  font-weight: bold;
  background: var(--button-gradient);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3), 0 0 10px var(--glow-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap; /* Prevent button text from wrapping on desktop */
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), 0 0 15px var(--glow-color);
}

/* Footer Styles */
.site-footer {
  background-color: var(--background-color);
  padding: 40px 20px 20px;
  color: var(--text-main-color);
  font-size: 15px;
  box-sizing: border-box;
  width: 100%;
}

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

.footer-col {
  display: flex;
  flex-direction: column;
}

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

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

.footer-description {
  margin-bottom: 15px;
  line-height: 1.8;
  word-wrap: break-word;
  overflow-wrap: break-wrap;
}

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

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

.footer-nav li a {
  color: var(--text-main-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  font-size: 14px;
  margin-top: 20px;
  padding-top: 20px; /* Add padding to separate from potential injected content */
  border-top: 1px solid rgba(255, 255, 255, 0.05); /* Lighter border for bottom */
}

.footer-bottom p {
  margin: 0;
}

/* Slot anchor inner styles - ensure they are visible for content injection */
.footer-slot-anchor-inner {
  min-height: 1px; /* Ensure visibility for layout purposes */
  margin-top: 10px; /* Provide some spacing */
}

/* Responsive Styles */
@media (max-width: 768px) {
  :root {
    --header-offset: 110px; /* Mobile: 60px (header-top) + 48px (mobile-nav-buttons) */
  }

  body {
    padding-top: var(--header-offset);
    overflow-x: hidden;
  }

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

  .site-header {
    overflow-x: hidden;
  }

  /* Header Top Section - Mobile */
  .header-top {
    height: 60px; /* Mobile fixed height */
    padding: 0 15px; /* Smaller padding for mobile */
    justify-content: space-between; /* Hamburger left, Logo center, empty right */
    position: relative; /* For absolute positioning of logo */
  }

  .header-container {
    max-width: none; /* No max-width on mobile */
    padding: 0; /* Header-top itself has padding */
    justify-content: space-between; /* Space between hamburger, logo, and empty space */
  }

  /* Hamburger Menu - Visible on mobile */
  .hamburger-menu {
    display: block;
    order: -1; /* Place it at the beginning of flex items */
    margin-right: 0; /* Adjust margin for mobile layout */
  }

  /* Logo - Centered on mobile */
  .logo {
    flex: 1 !important; /* Take available space to help centering */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: absolute; /* For absolute centering */
    left: 50%;
    transform: translateX(-50%);
    width: auto; /* Allow content to dictate width */
    max-width: calc(100% - 100px); /* Leave space for hamburger and potential right-side element */
    padding-right: 0; /* No right padding on mobile logo */
  }

  .logo img {
    max-height: 56px !important; /* Mobile max height for image logo */
    max-width: 100%; /* Ensure image scales down */
  }

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

  /* Mobile Navigation Buttons - Visible on mobile */
  .mobile-nav-buttons {
    display: flex !important; /* Show on mobile */
    height: 48px; /* Mobile fixed height */
    padding: 0 15px; /* Adjust padding for mobile */
    background-color: var(--secondary-color); /* Maintain distinct background */
  }

  .mobile-nav-buttons .btn {
    flex: 1;
    min-width: 0;
    max-width: calc(50% - 5px); /* Two buttons with 10px gap */
    padding: 8px 12px; /* Smaller padding */
    font-size: 13px; /* Smaller font size */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-overflow: clip; /* Ensure no ellipsis if wrapping */
  }

  /* Main Navigation - Mobile (hidden by default, slides in) */
  .main-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: var(--header-offset); /* Below header-top and mobile-nav-buttons */
    left: 0;
    width: 80%; /* Takes 80% of screen width */
    max-width: 300px; /* Max width for larger mobile devices */
    height: calc(100% - var(--header-offset)); /* Full height below header */
    background-color: var(--deep-red-color); /* Darker background for mobile menu */
    flex-direction: column; /* Vertical menu items */
    justify-content: flex-start; /* Align items to top */
    padding: 20px 0;
    transform: translateX(-100%); /* Off-screen to the left */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
    overflow-y: auto; /* Scroll for long menus */
  }

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

  .nav-container {
    max-width: none; /* No max-width on mobile */
    padding: 0; /* Main-nav itself has padding */
    height: auto; /* Allow content to define height */
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0; /* Remove gap for vertical list */
  }

  .main-nav ul li {
    width: 100%;
  }

  .main-nav ul li a {
    padding: 12px 20px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: normal; /* Allow menu text to wrap */
  }

  .main-nav ul li:last-child a {
    border-bottom: none;
  }

  /* Footer - Mobile */
  .footer-top-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

  .footer-col {
    align-items: center; /* Center content in single column */
    text-align: center;
  }

  .footer-col h3 {
    margin-top: 20px;
  }

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

  .footer-nav {
    width: 100%;
  }

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