:root { --header-offset: 122px; --primary-color: #F2C14E; --secondary-color: #FFD36B; --background-color: #0A0A0A; --card-bg-color: #111111; --text-main-color: #FFF6D6; --border-color: #3A2A12; --glow-color: #FFD36B; }

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

/* Header Styles */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background-color: var(--background-color); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); min-height: 60px; display: flex; align-items: center; }

.header-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 10px 30px; width: 100%; }

.logo { font-size: 28px; font-weight: bold; color: var(--primary-color); text-decoration: none; flex-shrink: 0; display: block; text-transform: uppercase; letter-spacing: 1px; }

.hamburger-menu { display: none; background: none; border: none; font-size: 30px; cursor: pointer; color: var(--text-main-color); padding: 5px; flex-shrink: 0; }

.main-nav { flex: 1; display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 25px; list-style: none; padding: 0; margin: 0; }

.nav-link { color: var(--text-main-color); text-decoration: none; font-size: 16px; padding: 8px 15px; transition: color 0.3s ease, transform 0.3s ease; position: relative; }
.nav-link:hover { color: var(--primary-color); transform: translateY(-2px); }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background-color: var(--primary-color); transition: width 0.3s ease, left 0.3s ease; }
.nav-link:hover::after { width: 100%; left: 0; }

.desktop-nav-buttons { flex-shrink: 0; margin-left: auto; display: flex; gap: 10px; }
.mobile-nav-buttons { display: none !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 25px; font-size: 16px; font-weight: bold; text-decoration: none; color: #FFF; cursor: pointer; transition: all 0.3s ease; border: none; text-shadow: 0 1px 2px rgba(0,0,0,0.3); background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6); }

.mobile-menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); z-index: 999; opacity: 0; transition: opacity 0.3s ease; }
.mobile-menu-overlay.active { display: block; opacity: 1; }

/* Footer Styles */
.site-footer { background-color: var(--card-bg-color); padding: 40px 20px; color: var(--text-main-color); font-size: 14px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.footer-col h3 { color: var(--primary-color); font-size: 18px; margin-bottom: 15px; text-transform: uppercase; }
.footer-logo { font-size: 24px; font-weight: bold; color: var(--primary-color); text-decoration: none; display: block; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.footer-description { line-height: 1.8; color: #BBB; word-wrap: break-word; overflow-wrap: break-word; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { color: #BBB; text-decoration: none; transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--primary-color); }
.footer-bottom { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border-color); color: #888; }
.footer-bottom p { margin: 0; }
.footer-slot-anchor { display: block; min-height: 10px; /* Ensures anchor is visible for injection */ }
.footer-slot-anchor-inner { display: block; min-height: 5px; /* Ensures inner anchor is visible for injection */ }

/* Responsive Styles */
@media (max-width: 768px) {
  :root { --header-offset: 110px; }

  .site-header { min-height: 50px; }
  .header-container { width: 100%; max-width: none; padding: 8px 15px; justify-content: space-between; }

  .hamburger-menu { display: block; }
  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px; /* Adjust font size for mobile */
  }
  .logo img {
    display: block !important;
    max-width: 100%;
    height: auto;
    max-height: 40px;
  }

  .main-nav {
    display: none; /* Hidden by default */
    position: fixed; top: var(--header-offset); left: 0; width: 70%; max-width: 300px; height: calc(100% - var(--header-offset));
    background-color: var(--card-bg-color); flex-direction: column; padding: 20px; box-shadow: 2px 0 5px rgba(0,0,0,0.5);
    transform: translateX(-100%); transition: transform 0.3s ease-out;
    overflow-y: auto; z-index: 1000;
    align-items: flex-start; /* Align links to the left */
  }
  .main-nav.active { display: flex; transform: translateX(0); }
  .main-nav .nav-link { width: 100%; padding: 12px 10px; border-bottom: 1px solid var(--border-color); }
  .main-nav .nav-link:last-child { border-bottom: none; }
  .nav-link::after { display: none; /* Remove underline animation on mobile */ }

  .desktop-nav-buttons { display: none !important; }
  .mobile-nav-buttons { display: flex !important; gap: 8px; flex-shrink: 0; }

  .site-footer { padding: 30px 15px; }
  .footer-container { grid-template-columns: 1fr; text-align: center; }
  .footer-col { margin-bottom: 20px; }
  .footer-col:last-child { margin-bottom: 0; }
  .footer-col h3 { margin-top: 20px; }
  .footer-logo { margin: 0 auto 15px auto; }
  .footer-nav { text-align: center; }
  .footer-nav li { margin-bottom: 5px; }

  /* Mobile content overflow prevention */
  .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;
  }
}
