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

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

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

.header-top { box-sizing: border-box; height: 68px; display: flex; align-items: center; overflow: hidden; background-color: var(--primary-color); width: 100%; color: #fff; }
.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; position: relative; /* For absolute logo centering */ }

.logo { text-decoration: none; color: #fff; font-size: 28px; font-weight: bold; padding-right: 20px; display: block; /* Ensure visibility */ }
.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; }
.mobile-nav-buttons { box-sizing: border-box; display: none; min-height: 48px; background-color: var(--secondary-color); padding: 0 20px; /* Desktop default: hidden */ }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 25px; text-decoration: none; font-weight: bold; white-space: nowrap; cursor: pointer; border: none; transition: all 0.3s ease; color: #fff; background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%); }
.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%); }
.btn-secondary { background: var(--primary-color); border: 1px solid var(--secondary-color); }

.main-nav { box-sizing: border-box; height: 52px; display: flex; align-items: center; overflow: hidden; background-color: var(--secondary-color); 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 li a { text-decoration: none; color: #fff; font-weight: 600; font-size: 16px; padding: 10px 0; transition: color 0.3s ease; }
.nav-list li a:hover { color: rgba(255, 255, 255, 0.8); }

.hamburger-menu { display: none; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; cursor: pointer; padding: 5px; background: transparent; border: none; z-index: 1001; position: relative; margin-right: auto; /* Push hamburger to left */ }
.hamburger-menu .bar { width: 100%; height: 3px; background-color: #fff; border-radius: 3px; transition: all 0.3s ease; }
.hamburger-menu.active .bar:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
.hamburger-menu.active .bar:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

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

.site-footer { background-color: #333; color: #fff; padding: 40px 0 0; 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; padding: 0 20px 30px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }

.footer-col { padding: 10px 0; }
.footer-col h3 { font-size: 16px; margin-bottom: 15px; color: var(--secondary-color); }
.footer-logo { text-decoration: none; color: #fff; font-size: 24px; font-weight: bold; margin-bottom: 15px; display: block; }
.footer-description { margin-bottom: 15px; word-wrap: break-word; overflow-wrap: break-word; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li a { text-decoration: none; color: rgba(255, 255, 255, 0.7); display: block; padding: 5px 0; transition: color 0.3s ease; }
.footer-nav li a:hover { color: #fff; }

.footer-bottom { text-align: center; padding: 20px 20px; font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.footer-bottom p { margin: 0; }
.footer-slot-anchor-inner { min-height: 1px; }

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

  .header-top { height: 60px; }
  .header-container { width: 100%; max-width: none; padding: 0 15px; }
  .logo { position: absolute !important; left: 50% !important; transform: translateX(-50%) !important; display: flex !important; align-items: center !important; justify-content: center !important; max-width: calc(100% - 100px); /* Adjust for hamburger width */ }
  .logo img { max-height: 56px !important; }
  .desktop-nav-buttons { display: none !important; }
  .hamburger-menu { display: flex; }

  .mobile-nav-buttons {
    display: flex !important;
    min-height: 48px;
    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;
    background-color: var(--secondary-color);
  }
  .mobile-nav-buttons .btn {
    flex: 1; min-width: 0;
    max-width: calc(50% - 5px); /* 100% / 2 - gap / 2 */
    box-sizing: border-box;
    padding: 8px 12px;
    font-size: 13px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .main-nav {
    height: calc(100% - var(--header-offset)); min-height: 48px; 
    flex-direction: column; justify-content: flex-start; align-items: flex-start;
    position: fixed; top: var(--header-offset); left: 0; width: 280px;
    background-color: #333; /* Darker background for mobile menu */
    transform: translateX(-100%); transition: transform 0.3s ease;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2); z-index: 999;
    overflow-y: auto;
    display: none; /* Default hidden */
  }
  .main-nav.active { display: flex; transform: translateX(0); }
  .nav-container { width: 100%; max-width: none; padding: 20px 15px; flex-direction: column; align-items: flex-start; }
  .nav-list { flex-direction: column; width: 100%; gap: 0; }
  .nav-list li { width: 100%; }
  .nav-list li a { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); width: 100%; }
  .nav-list li:last-child a { border-bottom: none; }

  .overlay.active { display: block; }

  .site-footer { padding: 30px 0 0; }
  .footer-top-grid { grid-template-columns: 1fr; padding: 0 15px 20px; }
  .footer-col { text-align: center; }
  .footer-logo { margin: 0 auto 15px; }
  .footer-col h3 { text-align: center; }
  .footer-nav li a { text-align: center; }
  .footer-description { text-align: center; }

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