html { scroll-behavior: smooth; }
:root { --header-offset: 122px; --primary-color: #26A9E0; --secondary-color: #FFFFFF; --login-button-color: #EA7C07; --text-color: #000000; }
body { margin: 0; font-family: 'Arial', sans-serif; line-height: 1.6; color: var(--text-color); padding-top: var(--header-offset); overflow-x: hidden; }
a { text-decoration: none; color: var(--primary-color); }

/* Header styles */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); background-color: var(--secondary-color); }

.header-top { box-sizing: border-box; min-height: 68px; height: 68px; display: flex; align-items: center; overflow: hidden; background-color: var(--primary-color); color: var(--secondary-color); width: 100%; }
.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: 28px; font-weight: bold; color: var(--secondary-color); text-transform: uppercase; }
.logo:hover { color: var(--secondary-color); }
.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: #f5f5f5; padding: 10px 20px; border-bottom: 1px solid #eee; }

.btn { padding: 10px 20px; border-radius: 5px; font-weight: bold; text-align: center; white-space: nowrap; transition: all 0.3s ease; text-decoration: none; }
.btn-primary { background-color: var(--login-button-color); color: var(--secondary-color); border: 1px solid var(--login-button-color); }
.btn-primary:hover { background-color: #cf6b00; border-color: #cf6b00; }
.btn-secondary { background-color: var(--primary-color); color: var(--secondary-color); border: 1px solid var(--primary-color); }
.btn-secondary:hover { background-color: #1e87b8; border-color: #1e87b8; }

.main-nav { box-sizing: border-box; min-height: 52px; height: 52px; display: flex; align-items: center; overflow: hidden; background-color: var(--secondary-color); width: 100%; border-top: 1px solid #eee; }
.main-nav .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 { padding: 0 15px; color: var(--text-color); font-weight: bold; transition: color 0.3s ease; height: 100%; display: flex; align-items: center; }
.nav-link:hover, .nav-link.active { color: var(--primary-color); }

/* Hamburger Menu */
.hamburger-menu { display: none; background: none; border: none; cursor: pointer; padding: 0; width: 30px; height: 30px; position: relative; z-index: 1001; }
.hamburger-icon { display: block; width: 24px; height: 2px; background-color: var(--secondary-color); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); transition: all 0.3s ease; }
.hamburger-icon::before, .hamburger-icon::after { content: ''; display: block; width: 24px; height: 2px; background-color: var(--secondary-color); position: absolute; left: 0; transition: all 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 { top: 0; transform: rotate(45deg); background-color: var(--primary-color); }
.hamburger-menu.active .hamburger-icon::after { top: 0; transform: rotate(-45deg); background-color: var(--primary-color); }

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

/* Footer styles */
.site-footer { background-color: #333; color: #fff; padding: 40px 20px 20px; font-size: 14px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto 30px; }
.footer-col h3 { color: var(--primary-color); font-size: 16px; margin-bottom: 15px; }
.footer-col .footer-logo { font-size: 24px; font-weight: bold; color: var(--primary-color); text-transform: uppercase; display: block; margin-bottom: 15px; }
.footer-col .footer-description { line-height: 1.8; word-wrap: break-word; overflow-wrap: break-word; color: #ccc; margin-bottom: 15px; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { color: #ccc; transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--primary-color); }
.footer-bottom { border-top: 1px solid #555; padding-top: 20px; text-align: center; color: #ccc; max-width: 1200px; margin: 0 auto; }
.footer-bottom p { margin: 0; }

/* Mobile styles */
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  .site-header { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); }

  .header-top { min-height: 60px !important; height: 60px !important; background-color: var(--primary-color); }
  .header-container { padding: 0 15px; position: relative; height: 100%; max-width: none; width: 100%; }
  .hamburger-menu { display: block; margin-right: auto; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; 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: var(--secondary-color); border-bottom: 1px solid #eee; }
  .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; flex-direction: column; position: fixed; top: var(--header-offset); left: 0; width: 80%; max-width: 300px; height: calc(100% - var(--header-offset)); background-color: var(--secondary-color); transform: translateX(-100%); transition: transform 0.3s ease; box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2); overflow-y: auto; z-index: 999; border-top: none; }
  .main-nav.active { display: flex; transform: translateX(0); }
  .main-nav .nav-container { flex-direction: column; padding: 20px 0; height: auto; max-width: none; width: 100%; justify-content: flex-start; align-items: flex-start; }
  .nav-link { width: 100%; padding: 12px 20px; border-bottom: 1px solid #eee; justify-content: flex-start; }
  .nav-link:last-child { border-bottom: none; }

  .footer-top-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-col { text-align: center; }
  .footer-nav { 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;
  }
}
