:root {
  --primary-color: #C61F1F;
  --secondary-color: #E53030;
  --btn-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  --card-bg: #2A1212;
  --bg-color: #140C0C;
  --text-main-color: #FFF1E8;
  --border-color: #6A1E1E;
  --gold-color: #F3C54D;
  --deep-red-color: #7E0D0D;

  --header-top-height-desktop: 68px;
  --main-nav-height-desktop: 52px;
  --header-top-height-mobile: 60px;
  --main-nav-height-mobile: 48px;
  --mobile-nav-buttons-height-mobile: 48px;

  --header-offset: calc(var(--header-top-height-desktop) + var(--main-nav-height-desktop) + 2px); /* Desktop: 68 + 52 + 2 = 122px */
}

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

a {
  text-decoration: none;
  color: var(--gold-color);
}

a:hover {
  color: var(--gold-color);
  text-decoration: underline;
}

/* --- Site Header --- */
.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); /* Suspended effect */
  background-color: var(--bg-color); /* Solid background */
}

.header-top {
  box-sizing: border-box;
  height: var(--header-top-height-desktop);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--deep-red-color); /* Distinct background for top area */
  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 logo and buttons */
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--gold-color);
  text-transform: uppercase;
  display: block; /* Ensure logo is visible */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px; /* Limit logo width */
}

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

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

.mobile-nav-buttons {
  box-sizing: border-box;
  display: none; /* Mobile buttons hidden by default on desktop */
  min-height: var(--mobile-nav-buttons-height-mobile);
  background-color: var(--card-bg); /* Background for mobile button row */
  width: 100%;
  padding: 0 15px;
}

.btn {
  padding: 10px 18px;
  border-radius: 25px;
  font-weight: bold;
  color: #FFFFFF;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--btn-gradient); /* Button gradient */
}

.btn:hover {
  opacity: 0.9;
  text-decoration: none;
  transform: translateY(-2px);
}

.main-nav {
  box-sizing: border-box;
  height: var(--main-nav-height-desktop);
  display: flex; /* Desktop main nav visible */
  align-items: center;
  overflow: hidden;
  background-color: var(--primary-color); /* Distinct background for main nav */
  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;
}

.nav-item {
  padding: 0 15px;
  color: var(--text-main-color);
  font-weight: bold;
  white-space: nowrap;
  transition: color 0.3s ease;
  height: 100%; /* Make clickable area full height */
  display: flex;
  align-items: center;
}

.nav-item:hover {
  color: var(--gold-color);
  text-decoration: none;
}

/* Hamburger menu for mobile */
.hamburger-menu {
  display: none; /* Hidden by default on desktop */
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger-menu div {
  width: 25px;
  height: 3px;
  background-color: var(--text-main-color);
  margin: 5px 0;
  transition: 0.4s;
}

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

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

/* --- Site Footer --- */
.site-footer {
  background-color: var(--bg-color);
  padding: 40px 0 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-main-color);
  text-align: center;
}

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

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

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

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

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

.footer-col .footer-nav a:hover {
  color: var(--gold-color);
  text-decoration: underline;
}

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold-color);
  text-transform: uppercase;
  display: block;
  margin-bottom: 15px;
}

.footer-description {
  font-size: 14px;
  line-height: 1.8;
  color: #ccc;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  color: #aaa;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

.footer-slot-anchor-inner {
  min-height: 1px;
}

/* --- Mobile Styles --- */
@media (max-width: 768px) {
  :root {
    --header-offset: calc(var(--header-top-height-mobile) + var(--mobile-nav-buttons-height-mobile) + var(--main-nav-height-mobile) + 2px); /* Mobile: 60 + 48 + 48 + 2 = 158px */
  }

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

  .site-header {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Header Top Mobile */
  .header-top {
    height: var(--header-top-height-mobile) !important;
    min-height: var(--header-top-height-mobile) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
  }

  .header-container {
    width: 100%;
    max-width: none;
    padding: 0;
    justify-content: space-between;
  }

  .hamburger-menu {
    display: block;
    order: -1;
  }

  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px;
    max-width: calc(100% - 100px); /* Adjust max-width to leave space for hamburger */
  }

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

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

  /* Mobile Nav Buttons */
  .mobile-nav-buttons {
    display: flex !important;
    min-height: var(--mobile-nav-buttons-height-mobile);
    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: var(--card-bg);
  }

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

  /* Main Nav Mobile */
  .main-nav {
    display: none;
    position: fixed;
    top: calc(var(--header-top-height-mobile) + var(--mobile-nav-buttons-height-mobile));
    left: 0;
    width: 80%;
    max-width: 300px;
    height: calc(100% - var(--header-top-height-mobile) - var(--mobile-nav-buttons-height-mobile));
    background-color: var(--primary-color);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 1001;
  }

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

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: none;
    padding: 0 15px;
  }

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

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

  /* Hamburger animation */
  .hamburger-menu.active .bar1 {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger-menu.active .bar2 {
    opacity: 0;
  }

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

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

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

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

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

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

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

  /* Mobile Content Overflow Protection */
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
