:root {
  --primary-color: #E53935;
  --secondary-color: #FF5A4F;
  --text-main-color: #333333;
  --card-bg-color: #FFFFFF;
  --background-color: #F5F7FA;
  --border-color: #E0E0E0;
  --button-gradient: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  --header-top-height-desktop: 68px;
  --main-nav-height-desktop: 52px;
  --header-top-height-mobile: 60px;
  --main-nav-height-mobile: 48px;
  --mobile-buttons-height: 48px; /* min-height for mobile buttons */
  --header-offset: calc(var(--header-top-height-desktop) + var(--main-nav-height-desktop) + 2px); /* Desktop: 68 + 52 + 2 = 122px */
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text-main-color);
  background-color: var(--background-color);
  padding-top: var(--header-offset);
}

body.no-scroll {
  overflow: hidden;
}

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

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-top {
  background-color: #2a0a0a; /* Darker red from primary/secondary for contrast */
  color: #fff;
  min-height: var(--header-top-height-desktop);
  height: var(--header-top-height-desktop);
  display: flex;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
}

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

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

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

.btn {
  padding: 10px 20px;
  border-radius: 25px;
  color: #fff;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  background: var(--button-gradient);
  transition: all 0.3s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  min-width: 80px;
}

.btn:hover {
  opacity: 0.9;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Mobile-specific button container - hidden by default on desktop */
.mobile-nav-buttons {
  box-sizing: border-box;
  display: none; /* Hidden on desktop */
  min-height: var(--mobile-buttons-height);
  background-color: #3d0f0f;
  width: 100%;
  padding: 0 15px;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.main-nav {
  background-color: var(--primary-color);
  min-height: var(--main-nav-height-desktop);
  height: var(--main-nav-height-desktop);
  display: flex;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
}

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

.nav-link {
  color: #fff;
  padding: 0 15px;
  font-weight: bold;
  transition: color 0.3s ease;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--secondary-color);
}

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

.hamburger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 5px 0;
  transition: all 0.3s ease;
}

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

/* Footer Styles */
.site-footer {
  background-color: #2a0a0a;
  color: #fff;
  padding: 40px 0 20px;
  font-size: 14px;
}

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

.footer-col h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #fff;
}

.footer-col p {
  line-height: 1.6;
  margin-bottom: 15px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-logo {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 15px;
  display: block;
}

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

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

.footer-nav a {
  color: #fff;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 30px auto 0;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  box-sizing: border-box;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

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

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

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

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

  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }

  .header-top {
    min-height: var(--header-top-height-mobile);
    height: var(--header-top-height-mobile);
  }

  .header-container {
    padding: 0 15px;
    max-width: none;
    justify-content: space-between;
    position: relative;
  }

  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: calc(100% - 100px);
  }

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

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

  .mobile-nav-buttons {
    display: flex !important;
    min-height: var(--mobile-buttons-height);
    height: var(--mobile-buttons-height);
    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;
  }

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

  .hamburger-menu {
    display: block;
    order: -1;
    margin-right: 0;
    z-index: 1002;
    position: relative;
  }

  .main-nav {
    position: fixed;
    top: calc(var(--header-top-height-mobile) + var(--mobile-buttons-height));
    left: 0;
    width: 280px;
    height: calc(100% - var(--header-top-height-mobile) - var(--mobile-buttons-height));
    background-color: var(--primary-color);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 20px 0;
    box-sizing: border-box;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: none;
    z-index: 1001;
    overflow-y: auto;
  }

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

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

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

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

  .overlay {
    z-index: 998;
  }

  .site-footer {
    padding: 30px 0 15px;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

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

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

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

  .footer-nav li {
    display: inline-block;
    margin: 0 10px 8px;
  }

  .footer-bottom {
    padding: 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;
  }
}
