:root { --header-offset: 122px; --primary-color: #FF8C1A; --secondary-color: #FFA53A; --card-bg: #17191F; --background-color: #0D0E12; --text-main: #FFF3E6; --border-color: #A84F0C; --glow-color: #FFB04D; --deep-orange: #D96800; }
body { padding-top: var(--header-offset); margin: 0; font-family: sans-serif; background-color: var(--background-color); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: var(--secondary-color); }
a:hover { color: var(--primary-color); }

/* Header */
.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.3); background-color: var(--background-color); box-sizing: border-box; }
.header-top { box-sizing: border-box; min-height: 68px; height: 68px; display: flex; align-items: center; overflow: hidden; background-color: var(--deep-orange); 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(--text-main); text-transform: uppercase; letter-spacing: 1px; display: block; white-space: nowrap; }
.logo:hover { color: var(--secondary-color); }
.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; min-height: 48px; background-color: var(--card-bg); width: 100%; padding: 8px 20px; justify-content: center; gap: 10px; }

.btn { padding: 10px 18px; border-radius: 5px; font-weight: bold; text-align: center; white-space: nowrap; cursor: pointer; transition: all 0.3s ease; text-decoration: none; color: var(--text-main); background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%); border: 1px solid var(--border-color); }
.btn:hover { opacity: 0.9; box-shadow: 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(--card-bg); 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: var(--text-main); padding: 8px 15px; font-weight: 500; transition: color 0.3s ease, background-color 0.3s ease; white-space: nowrap; text-decoration: none; }
.nav-link:hover, .nav-link.active { background-color: var(--primary-color); color: #fff; border-radius: 3px; }

.hamburger-menu { display: none; background: none; border: none; cursor: pointer; padding: 0; width: 30px; height: 24px; position: relative; z-index: 1001; margin-right: 15px; }
.hamburger-icon { display: block; width: 100%; height: 3px; background-color: var(--text-main); position: absolute; top: 50%; left: 0; transform: translateY(-50%); transition: background-color 0.3s ease; }
.hamburger-icon::before, .hamburger-icon::after { content: ''; width: 100%; height: 3px; background-color: var(--text-main); position: absolute; left: 0; transition: transform 0.3s ease; }
.hamburger-icon::before { top: -8px; }
.hamburger-icon::after { top: 8px; }
.hamburger-menu.active .hamburger-icon { background-color: transparent; }
.hamburger-menu.active .hamburger-icon::before { transform: translateY(8px) rotate(45deg); }
.hamburger-menu.active .hamburger-icon::after { transform: translateY(-8px) rotate(-45deg); }

.overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); z-index: 998; }
.overlay.active { display: block; }

/* Footer */
.site-footer { background-color: var(--card-bg); padding: 40px 20px 20px; color: var(--text-main); font-size: 14px; line-height: 1.8; }
.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(--text-main); font-size: 16px; margin-bottom: 15px; border-bottom: 1px solid var(--border-color); padding-bottom: 5px; }
.footer-col p { margin-bottom: 10px; word-wrap: break-word; overflow-wrap: break-word; }
.footer-col .footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-col .footer-nav li { margin-bottom: 8px; }
.footer-col .footer-nav a { color: var(--text-main); transition: color 0.3s ease; }
.footer-col .footer-nav a:hover { color: var(--primary-color); }
.footer-logo { font-size: 24px; font-weight: bold; color: var(--primary-color); text-transform: uppercase; display: block; margin-bottom: 15px; }
.footer-logo:hover { color: var(--secondary-color); }
.footer-description { color: #ccc; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid var(--border-color); max-width: 1200px; margin: 0 auto; color: #aaa; }
.footer-bottom p { margin: 0; }

/* Slot Anchors (must be visible/renderable) */
.footer-slot-anchor-container, .footer-slot-anchor-inner { min-height: 1px; }

/* Responsive */
@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-top { min-height: 60px; height: 60px; padding: 0 15px; }
  .header-container { padding: 0; justify-content: center; position: relative; }
  .logo { font-size: 24px; flex: 1; display: flex; justify-content: center; align-items: center; max-width: calc(100% - 70px); /* Account for hamburger width */ }
  .logo img { max-height: 56px !important; }

  .desktop-nav-buttons { display: none !important; }
  .mobile-nav-buttons {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%; max-width: 100%;
    box-sizing: border-box;
    padding: 8px 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .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;
  }

  .hamburger-menu { display: block; position: absolute; left: 0; top: 50%; transform: translateY(-50%); }

  .main-nav {
    display: none; /* Hidden by default */
    position: fixed; top: var(--header-offset); left: 0; width: 280px; height: calc(100% - var(--header-offset));
    background-color: var(--card-bg); /* Use card background for mobile menu */
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 999;
  }
  .main-nav.active {
    display: flex; /* Show when active */
    transform: translateX(0);
  }
  .nav-container { flex-direction: column; align-items: flex-start; padding: 0; height: auto; width: 100%; }
  .nav-link { width: 100%; padding: 12px 15px; border-bottom: 1px solid var(--deep-orange); }
  .nav-link:last-child { border-bottom: none; }

  .footer-top-grid { grid-template-columns: 1fr; }
  .footer-col { margin-bottom: 20px; }
  .footer-col:last-child { margin-bottom: 0; }
  .footer-col h3 { text-align: center; }
  .footer-col .footer-nav { text-align: center; }
  .footer-logo { 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;
  }
}
