:root { --header-offset: 122px; --primary-color: #FF8C1A; --auxiliary-color: #FFA53A; --card-bg: #17191F; --background-color: #0D0E12; --text-main: #FFF3E6; --border-color: #A84F0C; --glow-color: #FFB04D; --deep-orange: #D96800; }

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

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

.header-top { box-sizing: border-box; min-height: 68px; height: 68px; display: flex; align-items: center; overflow: hidden; background-color: var(--card-bg); 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(--primary-color); text-decoration: none; display: flex; align-items: center; justify-content: flex-start; /* Default left align for desktop */ }
.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; /* Hidden by default for desktop */ min-height: 48px; width: 100%; background-color: var(--background-color); border-top: 1px solid var(--border-color); /* Added for separation */ }

.btn { display: inline-block; padding: 10px 18px; border-radius: 5px; text-decoration: none; font-weight: bold; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; background: linear-gradient(180deg, var(--auxiliary-color) 0%, var(--deep-orange) 100%); color: var(--text-main); border: none; box-shadow: 0 2px 5px rgba(0,0,0,0.3); }
.btn:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,0,0,0.4), 0 0 10px var(--glow-color); }

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

.hamburger-menu { display: none; width: 30px; height: 20px; cursor: pointer; flex-direction: column; justify-content: space-between; position: relative; z-index: 1002; /* Above logo on mobile */ }
.hamburger-menu span { display: block; height: 3px; width: 100%; background-color: var(--primary-color); border-radius: 2px; 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); }

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

/* Footer Styles */
.site-footer { background-color: var(--background-color); padding: 40px 20px 20px; color: var(--text-main); font-size: 14px; border-top: 1px solid var(--border-color); }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto 30px; }
.footer-col h3 { color: var(--primary-color); font-size: 18px; margin-bottom: 15px; }
.footer-logo { font-size: 24px; font-weight: bold; color: var(--primary-color); text-decoration: none; display: block; margin-bottom: 15px; }
.footer-description { line-height: 1.6; margin-bottom: 15px; word-wrap: break-word; overflow-wrap: break-word; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav li a { color: var(--text-main); text-decoration: none; transition: color 0.3s ease; }
.footer-nav li a:hover { color: var(--primary-color); }
.footer-slot-anchor-inner { min-height: 10px; /* Placeholder for dynamic content */ }
.footer-bottom { text-align: center; max-width: 1200px; margin: 0 auto; padding-top: 20px; border-top: 1px solid var(--border-color); }
.footer-bottom .copyright { color: var(--text-main); font-size: 13px; margin: 0; }

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

  .page-content img { max-width: 100% !important; height: auto !important; display: block; }
  .page-content { overflow-x: hidden; max-width: 100%; }
  body { overflow-x: hidden; }

  .site-header { background-color: var(--background-color); }
  .header-top { min-height: 60px !important; height: 60px !important; background-color: var(--card-bg); /* Ensure distinct background */ }
  .header-container { width: 100%; max-width: none; padding: 0 15px; justify-content: space-between; }
  
  .hamburger-menu { display: flex; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 24px; max-width: calc(100% - 100px); /* Leave space for hamburger */ }
  .logo img { max-height: 56px !important; max-width: 100%; }

  .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: 0 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; background-color: var(--card-bg); /* Distinct background */ border-top: 1px solid var(--border-color); }
  .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; position: fixed; top: var(--header-offset); left: 0; width: 80%; max-width: 300px; height: calc(100% - var(--header-offset)); background-color: var(--card-bg); flex-direction: column; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1001; overflow-y: auto; padding: 20px 0; border-top: none; /* Removed border to blend with header */ }
  .main-nav.active { display: flex; transform: translateX(0); }
  .nav-container { width: 100%; max-width: none; padding: 0; }
  .nav-list { flex-direction: column; gap: 0; width: 100%; }
  .nav-list li { border-bottom: 1px solid var(--border-color); }
  .nav-list li:last-child { border-bottom: none; }
  .nav-list li a { padding: 12px 20px; display: block; font-size: 15px; }

  .footer-top-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-col:not(.footer-about) { text-align: center; }
  .footer-logo { text-align: center; }
  .footer-description { text-align: center; }
  .footer-nav { text-align: center; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
