html { scroll-behavior: smooth; }
body { margin: 0; padding: 0; height: 100%; font-family: 'Arial', sans-serif; color: #FFF6D6; background-color: #0A0A0A; padding-top: var(--header-offset); overflow-x: hidden; }
:root { --header-offset: 122px; }

/* Header Styles */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background-color: #0A0A0A; 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: 15px 30px; width: 100%; box-sizing: border-box; }
.logo { font-size: 28px; font-weight: bold; text-decoration: none; color: #F2C14E; flex-shrink: 0; transition: color 0.3s ease; display: block; }
.logo:hover { color: #FFD36B; }
.main-nav { display: flex; flex-direction: row; flex: 1; justify-content: center; align-items: center; gap: 30px; }
.main-nav .nav-link { text-decoration: none; color: #FFF6D6; font-size: 16px; padding: 10px 0; transition: color 0.3s ease; white-space: nowrap; }
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: #FFD36B; }

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

/* Button Styles */
.btn { padding: 10px 20px; border-radius: 5px; border: none; font-size: 16px; font-weight: bold; cursor: pointer; text-decoration: none; color: #0A0A0A; background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); transition: all 0.3s ease; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; min-width: 80px; }
.btn:hover { opacity: 0.9; box-shadow: 0 0 10px #FFD36B; transform: translateY(-2px); }

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

/* Mobile Styles */
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  body { overflow-x: hidden; }
  .page-content img { max-width: 100% !important; height: auto !important; display: block; }
  .page-content { overflow-x: hidden; max-width: 100%; }

  .header-container { width: 100%; max-width: none; padding: 10px 15px; justify-content: space-between; }
  .hamburger-menu { display: block; background: none; border: none; color: #F2C14E; font-size: 28px; cursor: pointer; padding: 5px; flex-shrink: 0; position: relative; z-index: 1001; }
  .hamburger-menu.active { color: #FFD36B; /* Optional: change color when active */ }
  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 24px;
    max-width: calc(100% - 100px); /* Adjust based on button/hamburger width */
  }
  .desktop-nav-buttons { display: none !important; }
  .mobile-nav-buttons { display: flex !important; gap: 8px; flex-shrink: 0; position: relative; z-index: 1000; }

  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-offset);
    left: 0;
    width: 70%; /* Adjust as needed */
    height: calc(100% - var(--header-offset));
    background-color: #111111;
    flex-direction: column;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
  }
  .main-nav.active {
    display: flex;
    transform: translateX(0);
  }

  .main-nav .nav-link { font-size: 18px; padding: 15px 10px; border-bottom: 1px solid #3A2A12; width: 100%; box-sizing: border-box; }
  .main-nav .nav-link:last-child { border-bottom: none; }

  .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: 998;
  }
  .mobile-menu-overlay.active { display: block; }

  .footer-main-content { grid-template-columns: 1fr; padding: 0 15px; }
  .footer-col { margin-bottom: 25px; text-align: center; }
  .footer-col:last-child { margin-bottom: 0; }
  .footer-nav a { text-align: center; }
  .footer-description { 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;
}
