:root { --header-offset: 122px; --primary-color: #E53935; --auxiliary-color: #FF5A4F; --text-main: #333333; --card-bg: #FFFFFF; --bg-color: #F5F7FA; --border-color: #E0E0E0; }

html { scroll-behavior: smooth; }
body { font-family: 'Arial', sans-serif; margin: 0; padding-top: var(--header-offset); color: var(--text-main); background-color: var(--bg-color); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }

/* General container styles */
.header-container, .nav-container, .footer-top-grid, .footer-bottom { max-width: 1200px; margin: 0 auto; padding-left: 20px; padding-right: 20px; box-sizing: border-box; }

/* 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); }

.header-top { display: flex; align-items: center; min-height: 68px; height: 68px; background-color: #C62828; /* Darker Red */ color: #FFFFFF; overflow: hidden; }
.header-top .header-container { display: flex; justify-content: space-between; align-items: center; height: 100%; }

.logo { font-size: 28px; font-weight: bold; text-decoration: none; color: #FFFFFF; transition: color 0.3s ease; display: inline-block; }
.logo:hover { color: var(--auxiliary-color); }
.logo img { display: block; max-height: 60px; height: auto; width: auto; max-width: 280px; object-fit: contain; }

.hamburger-menu { display: none; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1002; }
.hamburger-icon { display: block; width: 25px; height: 3px; background-color: #FFFFFF; position: relative; transition: background-color 0.3s ease; }
.hamburger-icon::before, .hamburger-icon::after { content: ''; display: block; width: 100%; height: 3px; background-color: #FFFFFF; position: absolute; left: 0; transition: transform 0.3s ease; }
.hamburger-icon::before { top: -8px; }
.hamburger-icon::after { top: 8px; }
.hamburger-menu.active .hamburger-icon { background-color: transparent; }
.hamburger-menu.active .hamburger-icon::before { transform: translateY(8px) rotate(45deg); }
.hamburger-menu.active .hamburger-icon::after { transform: translateY(-8px) rotate(-45deg); }

.desktop-nav-buttons { display: flex; gap: 12px; align-items: center; }
.mobile-nav-buttons { box-sizing: border-box; display: none; min-height: 48px; background-color: var(--bg-color); padding: 0 20px; }

.btn { display: inline-flex; justify-content: center; align-items: center; padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: bold; font-size: 15px; transition: all 0.3s ease; white-space: nowrap; cursor: pointer; border: none; }
.btn-primary { background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); color: #FFFFFF; }
.btn-primary:hover { opacity: 0.9; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); }
.btn-secondary { background-color: #FFFFFF; color: var(--primary-color); border: 1px solid var(--primary-color); }
.btn-secondary:hover { background-color: var(--primary-color); color: #FFFFFF; }

.main-nav { display: flex; align-items: center; min-height: 52px; height: 52px; background-color: var(--auxiliary-color); /* Auxiliary Color */ overflow: hidden; }
.main-nav .nav-container { display: flex; justify-content: center; align-items: center; height: 100%; gap: 25px; }
.nav-link { text-decoration: none; color: #FFFFFF; font-weight: bold; font-size: 16px; padding: 5px 0; position: relative; transition: color 0.3s ease; }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px; background-color: #FFFFFF; transition: width 0.3s ease; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover { color: #F0F0F0; }

.overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 999; }
.overlay.active { display: block; }

/* Site Footer */
.site-footer { background-color: #333333; /* Dark background for footer */ color: #E0E0E0; padding: 50px 0 20px; font-size: 14px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 40px; }
.footer-col { padding: 10px 0; }
.footer-logo { font-size: 26px; font-weight: bold; text-decoration: none; color: #FFFFFF; display: block; margin-bottom: 15px; }
.footer-description { line-height: 1.6; margin-bottom: 20px; word-wrap: break-word; overflow-wrap: break-word; }
.footer-heading { font-size: 18px; color: #FFFFFF; margin-bottom: 20px; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { text-decoration: none; color: #E0E0E0; transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--auxiliary-color); }

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

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

/* Responsive Styles */
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  body { 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: 60px !important; height: 60px !important; }
  .header-top .header-container { padding-left: 15px; padding-right: 15px; width: 100%; max-width: none; position: relative; justify-content: space-between; }

  .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); /* Account for hamburger width */ }
  .logo img { max-height: 56px !important; display: block !important; width: auto; height: auto; }

  .hamburger-menu { display: block; order: -1; position: relative; z-index: 1002; }
  .desktop-nav-buttons { display: none !important; }

  .mobile-nav-buttons { display: flex !important; align-items: center; justify-content: center; min-height: 48px; width: 100%; max-width: 100%; box-sizing: border-box; padding-left: 15px; padding-right: 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; }

  .main-nav { display: none; position: fixed; top: var(--header-offset); left: 0; width: 100%; height: calc(100% - var(--header-offset)); overflow-y: auto; flex-direction: column; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1001; background-color: #C62828; /* Same as header-top for mobile menu */ }
  .main-nav.active { display: flex; transform: translateX(0); }
  .main-nav .nav-container { flex-direction: column; padding: 20px 15px; width: 100%; max-width: none; gap: 15px; align-items: flex-start; }
  .nav-link { font-size: 18px; padding: 10px 0; width: 100%; }
  .nav-link::after { bottom: 0; }

  .footer-top-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-container, .footer-bottom { padding-left: 15px; padding-right: 15px; }
  .footer-heading { 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;
}
