:root { --header-offset: 122px; }
body { padding-top: var(--header-offset); margin: 0; font-family: Arial, sans-serif; line-height: 1.6; color: #FFF5E1; background-color: #B71C1C; overflow-x: hidden; }

/* 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.3);
  background-color: #7A0E0E; /* Deep Red */
  box-sizing: border-box;
}

/* Header Top Area */
.header-top {
  height: 68px;
  display: flex;
  align-items: center;
  background-color: #7A0E0E; /* Deep Red */
  box-sizing: border-box;
  overflow: hidden;
}

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

.logo {
  color: #FFF5E1; /* Text Main */
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
  display: flex; /* For text logo alignment */
  align-items: center;
}

.logo img {
  display: block;
  max-height: 60px;
  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;
  min-height: 48px;
}

/* Main Navigation Area */
.main-nav {
  height: 52px;
  display: flex;
  align-items: center;
  background-color: #C91F17; /* Primary Red */
  box-sizing: border-box;
  overflow: hidden;
}

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

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

.main-nav a {
  color: #FFF5E1; /* Text Main */
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.main-nav a:hover {
  color: #FFD86A; /* Gold for hover */
}

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

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

.hamburger-icon {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

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

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

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

.hamburger-menu.active .hamburger-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.hamburger-menu.active .hamburger-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

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

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

/* Buttons */
.btn {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button Gradient */
  color: #7A0E0E; /* Deep Red for text on gold button */
  padding: 10px 18px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  transition: all 0.3s ease;
  border: 2px solid #F2B544; /* Border */
  white-space: nowrap;
  display: inline-block;
  text-align: center;
}

.btn:hover {
  box-shadow: 0 0 10px #FFCC66; /* Glow */
  transform: translateY(-2px);
}

/* Footer styles */
.site-footer {
  background-color: #B71C1C; /* Background */
  padding: 40px 20px;
  text-align: center;
  box-sizing: border-box;
}

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

.footer-col h3 {
  color: #FFD86A; /* Gold */
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-logo {
  color: #FFF5E1; /* Text Main */
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  display: block;
  margin-bottom: 15px;
}

.footer-description {
  font-size: 14px;
  color: #FFF5E1;
  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 a {
  color: #FFF5E1; /* Text Main */
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

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

.footer-slot-anchor-inner {
  min-height: 10px; /* Ensure visibility for potential injected content */
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  margin-top: 20px;
  font-size: 13px;
  color: #FFF5E1;
}

.footer-bottom a { /* Ensure no links in footer-bottom */
  text-decoration: none;
  color: inherit;
  pointer-events: none;
}

/* Mobile specific styles */
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  
  .site-header {
    background-color: #7A0E0E; /* Deep Red */
  }

  .header-top {
    height: 60px;
  }

  .header-container {
    width: 100%;
    max-width: none;
    padding: 0 15px;
    position: relative;
  }

  .hamburger-menu {
    display: block;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
  }

  .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: #E53935; /* Accent Red */
  }

  .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 {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background-color: #C91F17; /* Primary Red */
    padding-top: 60px; /* Space for fixed header-top */
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    box-sizing: border-box;
  }

  .main-nav.active {
    display: flex;
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 20px 15px;
  }

  .main-nav li {
    margin-bottom: 5px;
  }

  .main-nav a {
    padding: 10px 0;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .main-nav a:hover {
    color: #FFD86A;
  }

  .nav-container {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .overlay.active {
    display: block;
  }

  body.no-scroll {
    overflow: hidden;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: 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;
}
