:root { --header-offset: 122px; }
body { padding-top: var(--header-offset); margin: 0; font-family: Arial, sans-serif; line-height: 1.6; color: #333333; 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); background-color: #FFFFFF; }

.header-top { box-sizing: border-box; height: 68px; display: flex; align-items: center; overflow: hidden; background-color: #26A9E0; color: #FFFFFF; }
.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; }

.logo { font-size: 24px; font-weight: bold; text-decoration: none; color: #FFFFFF; white-space: nowrap; }

.desktop-nav-buttons { display: flex; gap: 12px; align-items: center; }
.btn { background-color: #EA7C07; color: #FFFFFF; text-decoration: none; padding: 10px 15px; border-radius: 5px; font-weight: bold; transition: background-color 0.3s ease; white-space: nowrap; text-align: center; border: none; cursor: pointer; }
.btn:hover { background-color: #d86c06; }

.mobile-nav-buttons { box-sizing: border-box; display: none; min-height: 48px; background-color: #F0F0F0; border-bottom: 1px solid #e0e0e0; }

.main-nav { box-sizing: border-box; height: 52px; display: flex; align-items: center; overflow: hidden; background-color: #F0F0F0; width: 100%; border-bottom: 1px solid #e0e0e0; }
.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-link { text-decoration: none; color: #333333; padding: 10px 15px; font-weight: bold; white-space: nowrap; transition: color 0.3s ease; }
.nav-link:hover { color: #26A9E0; }

.hamburger-menu { display: none; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; cursor: pointer; padding: 5px; z-index: 1001; }
.hamburger-menu span { display: block; width: 100%; height: 3px; background-color: #FFFFFF; border-radius: 3px; transition: all 0.3s ease; }
.hamburger-menu.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

.mobile-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.5); z-index: 999; }
.mobile-overlay.active { display: block; }

/* Footer Styles */
.site-footer { background-color: #333333; color: #FFFFFF; padding: 40px 0 20px; font-size: 14px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-col h3 { color: #26A9E0; margin-bottom: 15px; font-size: 16px; }
.footer-col p { margin-bottom: 15px; }
.footer-logo { font-size: 22px; font-weight: bold; text-decoration: none; color: #FFFFFF; display: block; margin-bottom: 15px; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li a { color: #FFFFFF; text-decoration: none; line-height: 1.8; transition: color 0.3s ease; }
.footer-nav li a:hover { color: #26A9E0; }
.footer-description { word-wrap: break-word; overflow-wrap: break-word; }
.footer-slot-anchor-inner { min-height: 1px; }
.footer-bottom { text-align: center; margin-top: 30px; border-top: 1px solid #444; padding-top: 20px; 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 { 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 { height: 60px; }
  .header-container { padding: 0 15px; width: 100%; max-width: none; position: relative; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 22px; }
  .desktop-nav-buttons { display: none !important; }
  .hamburger-menu { display: flex; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); }

  .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-left: 15px; padding-right: 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    background-color: #F0F0F0;
  }
  .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; /* Default hidden */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset); /* Adjusted for mobile header height */
    left: 0;
    width: 80%;
    max-width: 300px;
    height: calc(100% - var(--header-offset));
    background-color: #FFFFFF;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
  }
  .main-nav.active {
    display: flex; /* Show when active */
    transform: translateX(0); /* Slide in */
  }
  .nav-container { flex-direction: column; align-items: flex-start; padding: 20px; height: auto; width: 100%; max-width: none; }
  .nav-link { width: 100%; padding: 12px 0; border-bottom: 1px solid #eee; }
  .nav-link:last-child { border-bottom: none; }

  .footer-top-grid { grid-template-columns: 1fr; padding: 0 15px; }
  .footer-col { margin-bottom: 20px; }
  .footer-col:last-child { margin-bottom: 0; }
  .footer-bottom { padding-left: 15px; padding-right: 15px; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
