:root {
  --primary-color: #E53935;
  --secondary-color: #FF5A4F;
  --text-main-color: #333333;
  --card-bg-color: #FFFFFF;
  --page-bg-color: #F5F7FA;
  --border-color: #E0E0E0;
  --header-offset: 122px; /* Desktop: 68px (header-top) + 52px (main-nav) = 120px + 2px safety */
}

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

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

/* Header Top Area */
.header-top {
  box-sizing: border-box;
  height: 68px; /* Desktop fixed height */
  min-height: 68px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--primary-color); /* Distinct from main-nav */
  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;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--card-bg-color);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

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

.desktop-nav-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

/* Mobile Nav Buttons (Hidden on Desktop) */
.mobile-nav-buttons {
  box-sizing: border-box;
  display: none; /* Hidden globally, shown only on mobile */
  min-height: 48px; /* Minimum height for consistency */
  background-color: var(--page-bg-color);
}

/* Main Navigation Area */
.main-nav {
  box-sizing: border-box;
  height: 52px; /* Desktop fixed height */
  min-height: 52px;
  display: flex; /* Displayed by default on desktop */
  align-items: center;
  overflow: hidden;
  background-color: var(--secondary-color); /* Distinct from header-top */
  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-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 25px;
}

.nav-list a {
  color: var(--card-bg-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  white-space: nowrap;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.nav-list a:hover {
  color: #F0F0F0;
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger-menu {
  display: none; /* Hidden globally, shown only on mobile */
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1001;
  padding: 5px;
  box-sizing: content-box;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--card-bg-color);
  transition: all 0.3s ease;
}

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

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

.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-11px) 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; /* Hidden globally, shown only on mobile */
  transition: opacity 0.3s ease;
}

.overlay.active {
  display: block;
}

/* Buttons */
.btn {
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  color: var(--card-bg-color); /* Text color for buttons */
}

.btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  border: none;
}

.btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background-color: var(--card-bg-color);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--card-bg-color);
}

/* Site Footer */
.site-footer {
  background-color: var(--text-main-color);
  color: var(--card-bg-color);
  padding: 40px 20px 20px;
  font-size: 14px;
  line-height: 1.6;
}

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

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

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

.footer-col .footer-description {
  color: #CCCCCC;
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin-bottom: 15px;
}

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

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

.footer-nav a {
  color: #CCCCCC;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.footer-bottom p {
  margin: 0;
}

/* Footer dynamic slot anchor visibility */
.footer-slot-anchor-inner {
  /* These containers must remain visible for content injection */
  display: block;
  min-height: 1px; /* Ensure they take up minimal space if empty */
}

/* Mobile Styles */
@media (max-width: 768px) {
  :root {
    --header-offset: 110px; /* Mobile: 60px (header-top) + 48px (mobile-nav-buttons) + 48px (main-nav) = 156px. No, it's 60px (header-top) + 48px (main-nav) = 108px + 2px safety, mobile-nav-buttons is NOT part of offset. Mobile offset is 60+48=108px +2px safety. */
    /* Corrected offset based on mobile-nav-buttons being visible but not part of the fixed header offset */
    --header-offset: 110px; /* Mobile: 60px (header-top) + 48px (main-nav) = 108px + 2px safety */
  }

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

  .site-header {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  }

  /* Header Top Area (Mobile) */
  .header-top {
    height: 60px; /* Mobile fixed height */
    min-height: 60px;
  }

  .header-container {
    width: 100%;
    max-width: none;
    padding: 0 15px;
    position: relative; /* For logo absolute centering */
  }

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

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

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

  .hamburger-menu {
    display: flex;
    position: relative;
    z-index: 1001;
    margin-right: auto; /* Push logo to center if other elements are present */
  }

  /* Mobile Nav Buttons Area (Mobile) */
  .mobile-nav-buttons {
    display: flex !important; /* Always visible on mobile */
    min-height: 48px;
    height: auto; /* Allow content to dictate height, but min-height ensures space */
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap; /* Ensure buttons stay on one line */
    background-color: var(--card-bg-color);
    border-bottom: 1px solid var(--border-color);
  }

  .mobile-nav-buttons .btn {
    flex: 1;
    min-width: 0;
    max-width: calc(50% - 5px); /* Half width minus half of gap */
    box-sizing: border-box;
    padding: 8px 12px;
    font-size: 13px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.3;
    border-radius: 20px;
  }

  /* Main Navigation Area (Mobile - hidden by default) */
  .main-nav {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: var(--header-offset); /* Start below the fixed header */
    left: 0;
    width: 80%; /* Sidebar width */
    max-width: 300px;
    height: calc(100% - var(--header-offset));
    flex-direction: column;
    overflow-y: auto;
    background-color: var(--card-bg-color);
    transform: translateX(-100%); /* Off-screen to the left */
    transition: transform 0.3s ease;
    z-index: 1001;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    padding: 20px 0;
  }

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

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list li {
    border-bottom: 1px solid var(--border-color);
  }

  .nav-list a {
    color: var(--text-main-color);
    padding: 12px 20px;
    display: block;
    width: 100%;
  }

  .nav-list a:hover {
    background-color: var(--page-bg-color);
    color: var(--primary-color);
  }

  .overlay {
    display: none; /* Hidden by default on mobile */
  }

  .overlay.active {
    display: block;
  }

  /* Footer (Mobile) */
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .footer-col h3 {
    margin-bottom: 10px;
  }

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

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

  .footer-nav li:last-child {
    margin-right: 0;
  }

  /* Prevent content overflow for images */
  .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;
}
