:root { --header-offset: 122px; }
body { padding-top: var(--header-offset); margin: 0; font-family: Arial, sans-serif; }
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-sizing: border-box; box-shadow: 0 2px 10px rgba(0,0,0,0.15); background: #ffffff; }
.header-top { box-sizing: border-box; min-height: 68px; height: 68px; display: flex; align-items: center; overflow: hidden; background-color: #017439; 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-left: 25px; padding-right: 25px; }
.logo { display: flex; align-items: center; font-size: 32px; font-weight: 900; color: #ffffff; text-decoration: none; letter-spacing: 1px; text-transform: uppercase; 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; flex-shrink: 0; margin-left: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 22px; border-radius: 6px; font-size: 14px; font-weight: 700; text-decoration: none; transition: all 0.3s ease; cursor: pointer; border: none; white-space: nowrap; }
.btn-login { background-color: #C30808; color: #FFFF00; }
.btn-login:hover { background-color: #a00606; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(195,8,8,0.4); }
.btn-register { background-color: #C30808; color: #FFFF00; }
.btn-register:hover { background-color: #a00606; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(195,8,8,0.4); }
.mobile-nav-buttons { box-sizing: border-box; display: none; min-height: 48px; }
.main-nav { box-sizing: border-box; min-height: 52px; height: 52px; display: flex; align-items: center; overflow: hidden; background-color: #025e2e; 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; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav-container::-webkit-scrollbar { display: none; }
.nav-link { display: inline-block; padding: 0 16px; color: #ffffff; font-size: 15px; font-weight: 600; text-decoration: none; line-height: 52px; white-space: nowrap; transition: all 0.3s ease; }
.nav-link:hover { color: #FFFF00; background: rgba(255,255,255,0.1); }
.nav-overlay { display: none; }
.hamburger-menu { display: none; }
.site-footer { background-color: #014d27; color: #f0f0f0; margin-top: 0; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.footer-slot-anchor-inner { min-height: 1px; }
.footer-top-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 25px; padding: 40px 0 20px 0; }
.footer-about .footer-logo { font-size: 30px; font-weight: 900; color: #ffffff; text-decoration: none; text-transform: uppercase; letter-spacing: 1px; }
.footer-description { margin: 12px 0 0 0; font-size: 14px; line-height: 1.6; color: #d0d0d0; text-align: justify; overflow-wrap: break-word; word-wrap: break-word; }
.footer-col h4 { color: #ffffff; font-size: 17px; font-weight: 700; margin: 0 0 15px 0; padding-bottom: 8px; border-bottom: 2px solid #019a36; display: inline-block; }
.footer-col p { font-size: 14px; line-height: 1.6; color: #d0d0d0; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-nav li { margin: 0; }
.footer-nav a { color: #d0d0d0; text-decoration: none; font-size: 14px; line-height: 1.4; transition: color 0.3s ease; padding: 2px 0; }
.footer-nav a:hover { color: #FFFF00; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding: 18px 0; text-align: center; }
.footer-bottom p { margin: 0; font-size: 14px; color: #a0a0a0; }
.footer-mid-area { padding: 10px 0; }
.footer-mid-row { display: flex; flex-wrap: wrap; gap: 15px; margin: 10px 0; }
.footer-slot-anchor-inner { min-height: 1px; }

@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  .header-top { min-height: 60px !important; height: 60px !important; }
  .header-container { width: 100%; max-width: none; padding-left: 12px; padding-right: 12px; gap: 10px; }
  .logo { flex: 0 0 auto; font-size: 26px; }
  .logo img { max-height: 56px !important; max-width: 100%; height: auto; }
  .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: 12px; padding-right: 12px; overflow: hidden; gap: 10px; flex-wrap: nowrap; background: #017439; border-top: 1px solid rgba(255,255,255,0.1); }
  .mobile-nav-buttons .btn { flex: 1; min-width: 0; max-width: calc(50% - 5px); box-sizing: border-box; padding: 9px 12px; font-size: 13px; white-space: normal; word-wrap: break-word; overflow-wrap: break-word; }
  .main-nav { min-height: 48px !important; height: auto; display: none; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; width: 280px; max-width: 85%; background: #025e2e; z-index: 2000; transform: translateX(-100%); transition: transform 0.3s ease; overflow-y: auto; align-items: stretch; }
  .main-nav.active { display: flex; transform: translateX(0); }
  .nav-container { flex-direction: column; align-items: stretch; height: auto; max-width: none; padding: 20px 0 30px 0; overflow-y: visible; }
  .nav-link { display: block; color: #ffffff; font-size: 16px; line-height: 1.4; padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-link:hover { background: rgba(255,255,255,0.1); color: #FFFF00; }
  .nav-overlay { display: block; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 1500; opacity: 0; visibility: hidden; transition: opacity 0.3s ease; }
  .nav-overlay.active { opacity: 1; visibility: visible; }
  .hamburger-menu { display: flex; flex-direction: column; justify-content: center; cursor: pointer; z-index: 1001; background: transparent; border: none; padding: 10px 8px; }
  .hamburger-menu span { display: block; width: 24px; height: 3px; background: #ffffff; margin: 3px 0; transition: all 0.3s ease; border-radius: 2px; }
  .hamburger-menu.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .hamburger-menu.active span:nth-child(2) { opacity: 0; }
  .hamburger-menu.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; }
  .logo img { display: block !important; max-width: 100%; height: auto; max-height: 56px !important; }
  .header-top .header-container { position: relative; }
  .logo { position: static !important; transform: none !important; }
  .header-container .hamburger-menu-wrap { order: -1; }
  .footer-top-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (max-width: 400px) {
  .footer-top-grid { grid-template-columns: 1fr; gap: 15px; }
  .footer-container { padding: 0 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;
  }
}
/* 内容保护（系统追加，请勿删除） */
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;
}
