:root { --header-offset: 122px; }
body { padding-top: var(--header-offset); overflow-x: hidden; }

/* Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Arial', sans-serif; line-height: 1.6; color: #FFF6D6; background-color: #0A0A0A; }

/* Site Header */
.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.2); background-color: transparent; /* Child elements define background */ }

/* Header Top Bar */
.header-top { box-sizing: border-box; height: 68px; display: flex; align-items: center; overflow: hidden; background-color: #0A0A0A; 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: #F2C14E; text-decoration: none; display: flex; align-items: center; /* For text logo */ }
.logo img { display: block; max-height: 60px; height: auto; width: auto; max-width: 280px; object-fit: contain; }

/* Desktop Navigation Buttons */
.desktop-nav-buttons { display: flex; gap: 12px; align-items: center; }

/* Main Navigation Bar */
.main-nav { box-sizing: border-box; height: 52px; display: flex; align-items: center; overflow: hidden; background-color: #111111; 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; }
.nav-link { color: #FFF6D6; text-decoration: none; padding: 0 15px; font-size: 16px; transition: color 0.3s ease; white-space: nowrap; }
.nav-link:hover { color: #FFD36B; }

/* Hamburger Menu (Hidden on Desktop) */
.hamburger-menu { display: none; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1002; }
.hamburger-menu span { display: block; width: 25px; height: 3px; background-color: #FFF6D6; margin-bottom: 5px; transition: transform 0.3s ease, opacity 0.3s ease; }
.hamburger-menu span:last-child { margin-bottom: 0; }

/* Mobile Navigation Buttons (Hidden on Desktop) */
.mobile-nav-buttons { box-sizing: border-box; display: none; min-height: 48px; background-color: #0A0A0A; width: 100%; padding: 0 15px; /* Default for desktop, but hidden by display: none */}

/* Overlay for Mobile Menu */
.overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 999; }
.overlay.active { display: block; }

/* Buttons */
.btn { display: inline-block; padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: bold; color: #FFFFFF; background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); transition: background 0.3s ease, transform 0.2s ease; border: none; cursor: pointer; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }

/* Footer */
.site-footer { background-color: #0A0A0A; color: #FFF6D6; padding: 40px 20px 0; font-size: 14px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto 30px; }
.footer-col { margin-bottom: 20px; }
.footer-logo { font-size: 24px; font-weight: bold; color: #F2C14E; text-decoration: none; display: block; margin-bottom: 15px; }
.footer-description { margin-bottom: 15px; line-height: 1.8; word-wrap: break-word; overflow-wrap: break-word; }
.footer-title { font-size: 18px; color: #F2C14E; margin-bottom: 15px; }
.footer-nav { list-style: none; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav li a { color: #FFF6D6; text-decoration: none; transition: color 0.3s ease; }
.footer-nav li a:hover { color: #FFD36B; }
.footer-bottom { text-align: center; color: #FFF6D6; padding: 20px 0; border-top: 1px solid #3A2A12; max-width: 1200px; margin: 0 auto; }
.footer-slot-anchor-inner { min-height: 1px; }

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

  /* Header Top Bar */
  .header-top { height: 60px; padding-left: 15px; padding-right: 15px; }
  .header-container { max-width: none; padding: 0; /* Hamburger and Logo will manage their own spacing */ justify-content: flex-start; position: relative; }
  .hamburger-menu { display: block; margin-right: auto; position: relative; z-index: 1002; margin-left: -5px; /* Adjust for padding */ }
  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: absolute; /* Use absolute positioning for precise centering */
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 100px); /* Account for hamburger menu and potential right-side elements */
  }
  .logo img { max-height: 56px !important; }
  .desktop-nav-buttons { display: none !important; }

  /* Mobile Navigation Buttons */
  .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: #0A0A0A;
  }
  .mobile-nav-buttons .btn {
    flex: 1; min-width: 0;
    max-width: calc(50% - 5px); /* Ensure two buttons fit with gap */
    box-sizing: border-box;
    padding: 8px 12px;
    font-size: 13px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Main Navigation Bar (Mobile Menu) */
  .main-nav {
    height: 100vh; /* Full viewport height */
    width: 250px; /* Fixed width for the sidebar menu */
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%); /* Hidden by default */
    transition: transform 0.3s ease;
    background-color: #111111; /* Same as desktop main nav */
    z-index: 1001;
    display: none; /* Hidden by default, JS toggles flex/block */
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 20px; /* Space from top */
    box-shadow: 2px 0 5px rgba(0,0,0,0.3);
  }
  .main-nav.active { display: flex; transform: translateX(0); }
  .nav-container { flex-direction: column; width: 100%; max-width: none; padding: 0; align-items: flex-start; }
  .nav-link { width: 100%; padding: 10px 20px; border-bottom: 1px solid #3A2A12; }
  .nav-link:last-child { border-bottom: none; }

  /* Hamburger Menu Active State */
  .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); }

  /* Mobile Content Overflow Protection */
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* Footer */
  .site-footer { padding: 30px 15px 0; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 15px; max-width: none; }
  .footer-col { margin-bottom: 15px; text-align: center; }
  .footer-logo { margin-bottom: 10px; }
  .footer-description { margin-bottom: 10px; }
  .footer-title { margin-bottom: 10px; }
  .footer-nav li { margin-bottom: 8px; }
  .footer-bottom { padding: 15px 0; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
