:root {
  --primary-color: #E53935;
  --secondary-color: #FF5A4F;
  --background-color: #F5F7FA;
  --card-bg: #FFFFFF;
  --text-main: #333333;
  --border-color: #E0E0E0;
  --header-offset: 122px;
  --header-top-bg: #C62828;
  --header-top-text: #FFFFFF;
  --nav-bg: #FFFFFF;
  --nav-text: #333333;
  --nav-text-hover: #E53935;
  --footer-bg: #2D2D2D;
  --footer-text: #CCCCCC;
  --footer-heading: #FFFFFF;
  --btn-gradient: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background-color);
  color: var(--text-main);
  padding-top: var(--header-offset);
  overflow-x: hidden;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  background-color: #FFFFFF;
}

.header-top {
  background-color: var(--header-top-bg);
  width: 100%;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 20px;
  padding-right: 20px;
  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: #FFD54F;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  min-height: 40px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--btn-gradient);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: #FFFFFF;
}

.main-nav {
  background-color: var(--nav-bg);
  width: 100%;
  display: flex;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  min-height: 52px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-container::-webkit-scrollbar {
  display: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 14px 18px;
  color: var(--nav-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  position: relative;
}

.nav-link:hover {
  color: var(--nav-text-hover);
  background-color: rgba(229, 57, 53, 0.05);
}

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

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

.hamburger-menu {
  display: none;
}

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

@media (max-width: 1024px) {
  .nav-link {
    padding: 12px 12px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-offset: 110px;
  }

  .site-header {
    background-color: var(--header-top-bg);
    padding: 0;
  }

  .header-top {
    background-color: var(--header-top-bg);
    position: relative;
  }

  .header-container {
    width: 100%;
    max-width: none;
    padding-left: 15px;
    padding-right: 15px;
    min-height: 60px;
    position: relative;
    justify-content: center;
  }

  .logo {
    display: block;
    text-align: center;
    font-size: 24px;
    line-height: 60px;
    flex: 1;
    order: 2;
  }

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

  .mobile-nav-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    padding: 8px 15px;
    background-color: var(--header-top-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    position: relative;
    width: 100%;
  }

  .mobile-nav-buttons .btn {
    padding: 8px 18px;
    font-size: 13px;
    min-height: 36px;
    flex: 1;
    text-align: center;
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    order: 1;
    position: absolute;
    left: 10px;
    top: 8px;
  }

  .hamburger-menu span {
    display: block;
    width: 24px;
    height: 3px;
    background: #FFFFFF;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
    transform-origin: center;
  }

  .hamburger-menu:hover span {
    background: #FFD54F;
  }

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

  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    background-color: #FFFFFF;
    z-index: 1002;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding-top: 70px;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

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

  .main-nav.open {
    transform: translateX(0);
  }

  .nav-container {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    width: 100%;
    max-width: none;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
  }

  .nav-link {
    display: block;
    padding: 15px 20px;
    font-size: 15px;
    border-bottom: 1px solid rgba(224, 224, 224, 0.6);
    color: var(--text-main);
    text-align: left;
    white-space: normal;
    border-left: 3px solid transparent;
  }

  .nav-link:hover {
    background-color: rgba(229, 57, 53, 0.08);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
  }

  .nav-link.active {
    border-left-color: var(--primary-color);
    background-color: rgba(229, 57, 53, 0.05);
    color: var(--primary-color);
  }

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 998;
    transition: opacity 0.3s ease;
  }

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

  body.no-scroll {
    overflow: hidden;
  }
}

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

.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 50px 0 0;
  width: 100%;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.footer-column {
  flex: 1 1 200px;
  min-width: 180px;
}

.footer-brand {
  flex: 1 1 300px;
}

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

.footer-desc {
  margin-top: 15px;
  font-size: 13px;
  line-height: 1.6;
  color: #CCCCCC;
  text-align: left;
}

.footer-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--footer-heading);
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #CCCCCC;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s ease;
  line-height: 1.5;
}

.footer-links a:hover {
  color: #FFFFFF;
  padding-left: 5px;
}

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

.footer-bottom p {
  font-size: 14px;
  color: #999999;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    padding: 0 20px 30px;
    gap: 20px;
  }

  .footer-column {
    width: 100%;
    margin-bottom: 10px;
  }

  .footer-bottom {
    margin-top: 20px;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
