:root {
  --primary-color: #E53935;
  --secondary-color: #FF5A4F;
  --card-bg: #FFFFFF;
  --bg-color: #F5F7FA;
  --text-main: #333333;
  --border-color: #E0E0E0;
  --header-offset: 166px;
  --button-gradient: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-color);
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.header-top {
  background: #212121;
  width: 100%;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 30px;
  padding-right: 30px;
  min-height: 68px;
}

.logo {
  display: inline-block;
  font-size: 28px;
  font-weight: 800;
  color: #FFFFFF;
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
}

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

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

.desktop-nav-buttons .btn {
  display: inline-block;
  text-decoration: none !important;
  background: var(--button-gradient);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(229, 57, 53, 0.4);
}

.desktop-nav-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.6);
}

.main-nav {
  background: #FFFFFF;
  width: 100%;
  display: flex;
  flex-direction: row;
  position: static;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 12px 20px;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-block;
  text-decoration: none !important;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 600;
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.hamburger-menu {
  display: none;
}

.mobile-menu-overlay {
  display: none;
}

.site-footer {
  background: #212121;
  color: #E0E0E0;
  padding: 50px 20px 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 15px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #B0BEC5;
  max-width: 360px;
}

.footer-links-column {
  padding-left: 40px;
}

.footer-title {
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  color: #B0BEC5;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  text-align: center;
  color: #9E9E9E;
  font-size: 13px;
}

@media (max-width: 768px) {
  .header-container {
    width: 100%;
    max-width: none;
    padding-left: 15px;
    padding-right: 15px;
    min-height: 60px;
  }

  .logo {
    font-size: 20px;
  }

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

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: #212121;
    padding: 8px 15px;
    min-height: 48px;
    position: relative;
    z-index: 1000;
  }

  .mobile-nav-buttons .btn {
    display: inline-block;
    text-decoration: none !important;
    background: var(--button-gradient);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    flex: 1;
    max-width: 200px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.4);
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 108px;
    left: 0;
    width: 80%;
    max-width: 320px;
    height: calc(100vh - 108px);
    background: #FFFFFF;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding-top: 20px;
    flex-direction: column;
    z-index: 1002;
  }

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

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

  .nav-link {
    display: block;
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid #F0F0F0;
    font-size: 15px;
    white-space: normal;
  }

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

  .hamburger-menu {
    display: block;
    position: fixed;
    top: 8px;
    left: 15px;
    z-index: 1003;
    width: 35px;
    height: 35px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 5px;
  }

  .hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: #FFFFFF;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
  }

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

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

  .hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

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

  .mobile-menu-overlay.active {
    display: block;
  }

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

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

  body {
    overflow-x: hidden;
  }

  .site-footer .footer-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-bottom: 20px;
  }

  .footer-links-column {
    padding-left: 0;
  }

  .footer-bottom {
    margin-top: 10px;
  }
}

@media (min-width: 769px) {
  .main-nav {
    display: flex;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
