html, body { margin: 0; padding: 0; }
:root { --header-offset: 122px; }
body { font-family: 'Arial', sans-serif; line-height: 1.6; color: #333333; background-color: #F5F7FA; padding-top: var(--header-offset); overflow-x: hidden; }

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

.header-top { height: 68px; background-color: #E53935; display: flex; align-items: center; box-sizing: border-box; overflow: hidden; width: 100%; }
.header-container { width: 100%; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 30px; height: 100%; box-sizing: border-box; }

.hamburger-menu { display: none; /* Hidden on desktop */ }

.logo { color: #FFFFFF; font-size: 28px; font-weight: bold; text-decoration: none; display: flex; align-items: center; white-space: nowrap; }
.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; }

.main-nav { height: 52px; background-color: #FF5A4F; display: flex; align-items: center; box-sizing: border-box; overflow: hidden; width: 100%; }
.nav-container { width: 100%; max-width: 1200px; margin: 0 auto; display: flex; justify-content: center; align-items: center; height: 100%; box-sizing: border-box; padding: 0 20px; }
.nav-link { color: #FFFFFF; text-decoration: none; padding: 10px 15px; font-weight: bold; font-size: 16px; white-space: nowrap; transition: background-color 0.3s ease; }
.nav-link:hover { background-color: rgba(0,0,0,0.1); border-radius: 4px; }

.btn { display: inline-block; padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: bold; text-align: center; white-space: nowrap; cursor: pointer; border: none; transition: all 0.3s ease; color: #FFFFFF; background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); }
.btn:hover { opacity: 0.9; transform: translateY(-1px); }

.overlay { display: none; /* Hidden on desktop */ }

/* Footer Styles */
.site-footer { background-color: #333333; color: #E0E0E0; padding: 40px 0 20px; font-size: 14px; }
.footer-top-grid { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-cols-wrapper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.footer-col h3 { color: #FFFFFF; font-size: 16px; margin-bottom: 15px; }
.footer-col p { line-height: 1.8; word-wrap: break-word; overflow-wrap: break-word; }
.footer-col .footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-col .footer-nav li { margin-bottom: 8px; }
.footer-col .footer-nav a { color: #E0E0E0; text-decoration: none; transition: color 0.3s ease; }
.footer-col .footer-nav a:hover { color: #FF5A4F; }
.footer-logo { color: #FFFFFF; font-size: 24px; font-weight: bold; text-decoration: none; display: block; margin-bottom: 15px; white-space: nowrap; }
.footer-bottom { border-top: 1px solid #444444; text-align: center; padding-top: 20px; margin-top: 30px; max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.footer-bottom p { margin: 0; }

/* Mobile Styles */
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  body { padding-top: var(--header-offset); overflow-x: hidden; }

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

  .header-top { height: 60px; padding: 0 15px; }
  .header-container { padding: 0; justify-content: space-between; position: relative; width: 100%; max-width: none; }

  .hamburger-menu { display: flex; order: -1; align-items: center; justify-content: center; width: 48px; height: 100%; background: transparent; border: none; cursor: pointer; z-index: 2; padding: 0; position: relative; /* Ensure z-index works */ }
  .hamburger-menu span { display: block; width: 25px; height: 3px; background-color: #FFFFFF; margin: 5px 0; transition: all 0.3s ease; }
  .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); }

  /* Mobile logo centering (Method 2 for text logo flexibility) */
  .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); /* Leave space for hamburger and potential right-side element */
    height: 100%;
    font-size: 24px;
  }
  .logo img { max-height: 56px !important; max-width: 100%; height: auto; }

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

  .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: 8px 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    background-color: #FF5A4F;
  }
  .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; /* Hidden by default */
    position: fixed;
    top: var(--header-offset); /* Position below fixed header and mobile buttons */
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-offset)); /* Take full remaining viewport height */
    background-color: rgba(0,0,0,0.9); /* Dark overlay background */
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-y: auto; /* Enable scrolling for long menus */
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease;
    z-index: 999; /* Below hamburger, above overlay */
    box-sizing: border-box;
    padding-top: 20px;
  }
  .main-nav.active { display: flex; transform: translateX(0); /* Slide into view */ }

  .nav-container { flex-direction: column; width: 100%; max-width: none; padding: 0 15px; height: auto; }
  .nav-link { padding: 12px 15px; width: 100%; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 16px; }
  .nav-link:last-child { border-bottom: none; }

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

  body.no-scroll { overflow: hidden; }

  .footer-cols-wrapper { grid-template-columns: 1fr; /* Single column layout */ }
  .footer-col { margin-bottom: 30px; text-align: center; }
  .footer-logo { margin: 0 auto 15px auto; }
  .footer-col h3 { text-align: center; }
  .footer-col .footer-nav { text-align: center; }
  .footer-bottom { padding-left: 15px; padding-right: 15px; }

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