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

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

/* Base styles for anchors */
a {
  text-decoration: none;
  color: inherit;
}

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

/* Header Top Section */
.header-top {
  box-sizing: border-box;
  min-height: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-deep-red); /* Deep Red for top bar */
  color: var(--color-text-main);
  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; /* Padding for content inside container */
}

.site-header .logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--color-gold); /* Gold for logo text */
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  height: 100%;
}

.site-header .logo img {
  display: block;
  max-height: 60px; /* Max height for desktop 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 on desktop */
  min-height: 48px;
  background-color: var(--color-primary); /* Primary color for mobile buttons bar */
  width: 100%;
  padding: 0 15px; /* Adjust padding for mobile */
  gap: 10px; /* Gap between buttons */
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

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

.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;
  width: 100%;
}

.main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 25px;
  height: 100%;
  align-items: center;
}

.main-menu li a {
  padding: 10px 0;
  display: block;
  font-weight: bold;
  color: var(--color-text-main);
  transition: color 0.3s ease;
  white-space: nowrap;
}

.main-menu li a:hover,
.main-menu li a.active {
  color: var(--color-gold); /* Gold on hover/active */
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  color: var(--color-deep-red); /* Text on button */
  background: var(--color-button-gradient); /* Gold gradient */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 0 15px var(--color-glow); /* Gold glow on hover */
}

/* Hamburger Menu (hidden on desktop) */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.hamburger-icon {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-gold); /* Gold color for hamburger lines */
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.hamburger-icon:nth-child(1) { top: 0; }
.hamburger-icon:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-icon:nth-child(3) { bottom: 0; }

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

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

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

/* Footer */
.site-footer {
  background-color: var(--color-deep-red); /* Deep Red for footer background */
  color: var(--color-text-main);
  padding: 40px 0 20px;
  font-size: 14px;
}

.footer-top-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-cols-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.footer-col h3 {
  font-size: 18px;
  color: var(--color-gold); /* Gold for footer headings */
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 5px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-gold); /* Gold underline for headings */
}

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--color-gold); /* Gold for footer logo */
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 15px;
}

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

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

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

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

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

.footer-slot-anchor-inner {
  min-height: 1px; /* Ensure slot is rendered */
}

.footer-mid-slots,
.footer-slot-anchor-inner[data-slot-anchor^="footer_slot_mid_r"],
.footer-slot-anchor-inner[data-slot-anchor="footer_slot_bottom_1"] {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
  min-height: 1px;
}

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

.footer-bottom p {
  margin: 0;
}

/* Mobile 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;
  }

  /* Prevent content images from overflowing */
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }

  .site-header {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); /* Keep shadow for mobile fixed header */
  }

  .header-top {
    min-height: 60px;
    height: 60px;
  }

  .header-container {
    padding: 0 15px;
    justify-content: space-between;
    width: 100%;
    max-width: none; /* Important: remove max-width for mobile container */
    position: relative; /* For absolute positioning of logo */
  }

  .site-header .logo {
    position: absolute !important; /* Force absolute positioning */
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important; /* Ensure flex for img centering */
    align-items: center !important;
    justify-content: center !important;
    height: 100%;
    max-width: calc(100% - 100px); /* Leave space for hamburger */
    font-size: 24px; /* Adjust logo size for mobile */
  }

  .site-header .logo img {
    max-height: 56px !important; /* Max height for mobile logo */
    max-width: 100%;
  }

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

  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
    margin-right: auto; /* Push to left */
    z-index: 1001; /* Higher than logo */
  }

  /* Mobile Navigation Buttons */
  .mobile-nav-buttons {
    display: flex !important; /* Show mobile buttons */
    min-height: 48px;
    width: 100%;
    max-width: 100%; /* Ensure it doesn't overflow */
    box-sizing: border-box;
    padding: 0 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    background-color: var(--color-primary); /* Primary color for mobile buttons bar */
  }

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

  .main-nav {
    min-height: 48px;
    height: 100vh; /* Full viewport height when active */
    width: 280px; /* Sidebar width */
    position: fixed;
    top: 0; /* Align to top of viewport */
    left: 0;
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease;
    background-color: var(--color-deep-red); /* Deep Red for mobile menu background */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000; /* Below hamburger, above overlay */
    padding-top: var(--header-offset); /* Push menu content below header */
    display: block; /* Change from flex to block for vertical menu */
    overflow-y: auto; /* Allow scrolling for long menus */
  }

  .main-nav.active {
    transform: translateX(0); /* Slide in */
    display: block; /* Ensure it's displayed when active */
  }

  .nav-container {
    flex-direction: column; /* Vertical menu */
    align-items: flex-start; /* Align menu items to left */
    width: 100%;
    max-width: none; /* Important: remove max-width for mobile container */
    padding: 20px 15px;
    height: auto; /* Adjust height for content */
  }

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

  .main-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Separator */
  }

  .main-menu li:last-child {
    border-bottom: none;
  }

  .main-menu li a {
    padding: 15px 0;
    font-size: 16px;
    color: var(--color-text-main);
  }

  .overlay {
    z-index: 998; /* Below mobile menu */
  }

  /* Footer mobile adjustments */
  .footer-cols-wrapper {
    grid-template-columns: 1fr; /* Single column layout */
    padding: 0 15px;
  }

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

  .footer-col:last-child {
    margin-bottom: 0;
  }

  .footer-top-grid,
  .footer-mid-slots,
  .footer-slot-anchor-inner[data-slot-anchor^="footer_slot_mid_r"],
  .footer-slot-anchor-inner[data-slot-anchor="footer_slot_bottom_1"],
  .footer-bottom {
    padding-left: 15px;
    padding-right: 15px;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
