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

:root { --header-offset: 122px; --primary-color: #F2C14E; --accent-color: #FFD36B; --card-bg: #111111; --border-color: #3A2A12; --glow-color: #FFD36B; }

/* Header Styles (Desktop First) */
.site-header { background-color: #0A0A0A; width: 100%; position: fixed; top: 0; z-index: 1000; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); min-height: 60px; display: flex; align-items: center; justify-content: center; }
.header-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 10px 30px; width: 100%; box-sizing: border-box; }
.logo { flex-shrink: 0; font-size: 28px; font-weight: bold; color: var(--primary-color); text-decoration: none; padding-right: 20px; }
.hamburger-menu { display: none; background: none; border: none; font-size: 30px; color: var(--primary-color); cursor: pointer; padding: 0; line-height: 1; }

.main-nav { flex: 1; display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 25px; }
.nav-link { color: #FFF6D6; text-decoration: none; font-size: 16px; padding: 8px 0; transition: color 0.3s ease, transform 0.3s ease; white-space: nowrap; }
.nav-link:hover { color: var(--accent-color); transform: translateY(-2px); }

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

.btn { background-image: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); color: #3A2A12; padding: 10px 20px; border-radius: 25px; text-decoration: none; font-weight: bold; font-size: 15px; text-align: center; display: inline-block; transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); border: none; cursor: pointer; }
.btn:hover { filter: brightness(1.1); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 15px var(--glow-color); }

/* Footer Styles */
.site-footer { background-color: #111111; color: #FFF6D6; padding: 40px 20px; font-size: 14px; line-height: 1.6; }
.footer-slot-anchor { width: 100%; min-height: 1px; }
.footer-slot-anchor-inner { width: 100%; min-height: 1px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--border-color); }
.footer-col h3 { font-size: 18px; color: var(--primary-color); margin-bottom: 15px; }
.footer-col p { margin-bottom: 10px; word-wrap: break-word; overflow-wrap: break-word; }
.footer-logo { font-size: 24px; font-weight: bold; color: var(--primary-color); text-decoration: none; display: block; margin-bottom: 15px; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { color: #FFF6D6; text-decoration: none; transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--accent-color); }
.footer-bottom { text-align: center; padding-top: 20px; font-size: 13px; color: #BBB; }

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

  .header-container { width: 100%; max-width: none; padding: 10px 15px; justify-content: space-between; position: relative; }
  .hamburger-menu { display: block; flex-shrink: 0; order: 1; z-index: 1001; }
  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 10px;
    order: 2;
  }
  .logo img { display: block !important; max-width: 100%; height: auto; max-height: 40px; }

  .main-nav { display: none; flex-direction: column; position: fixed; top: var(--header-offset); left: 0; width: 75%; height: calc(100% - var(--header-offset)); background-color: #111111; box-shadow: 4px 0 15px rgba(0, 0, 0, 0.4); transition: transform 0.3s ease; transform: translateX(-100%); padding: 20px; box-sizing: border-box; z-index: 999; overflow-y: auto; align-items: flex-start; gap: 15px; }
  .main-nav.active { display: flex; transform: translateX(0); }
  .nav-link { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border-color); font-size: 18px; }
  .nav-link:last-child { border-bottom: none; }

  .desktop-nav-buttons { display: none !important; }
  .mobile-nav-buttons { flex-shrink: 0; display: flex !important; gap: 8px; order: 3; }
  .btn { padding: 8px 15px; font-size: 14px; border-radius: 20px; }

  .mobile-menu-overlay { display: none; position: fixed; top: var(--header-offset); left: 0; width: 100%; height: calc(100% - var(--header-offset)); background-color: rgba(0, 0, 0, 0.6); z-index: 998; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
  .mobile-menu-overlay.active { display: block; opacity: 1; visibility: visible; }

  .footer-container { grid-template-columns: 1fr; text-align: center; }
  .footer-col h3 { margin-top: 20px; }
  .footer-logo { text-align: center; }
  .footer-nav { align-items: center; }

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