html, body { margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: #FFF3E6; background-color: #0D0E12; scroll-behavior: smooth; overflow-x: hidden; }

:root { --header-offset: 122px; --primary-color: #FF8C1A; --accent-color: #FFA53A; --card-bg: #17191F; --text-main: #FFF3E6; --border-color: #A84F0C; --glow-color: #FFB04D; --deep-orange: #D96800; }

body { padding-top: var(--header-offset); }

.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }

.header-top { box-sizing: border-box; height: 68px; display: flex; align-items: center; 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-decoration: none; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.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: 0 20px; }

.main-nav { box-sizing: border-box; height: 52px; display: flex; align-items: center; background-color: var(--accent-color); 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; gap: 25px; }
.nav-link { color: var(--text-main); text-decoration: none; padding: 8px 15px; font-size: 16px; font-weight: 500; transition: color 0.3s ease, background-color 0.3s ease; border-radius: 5px; white-space: nowrap; }
.nav-link:hover, .nav-link.active { background-color: rgba(255, 255, 255, 0.1); color: #FFF; }

.hamburger-menu { display: none; background: none; border: none; font-size: 30px; color: var(--text-main); cursor: pointer; padding: 0; line-height: 1; transition: transform 0.3s ease; z-index: 1002; }
.hamburger-menu.active { transform: rotate(90deg); }

.overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.5); z-index: 999; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 8px; text-decoration: none; font-weight: bold; font-size: 15px; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; border: none; color: #FFF3E6; background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.btn:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,0,0,0.3); }

.site-footer { background-color: #0D0E12; color: var(--text-main); padding: 40px 0 0; font-size: 14px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; padding: 0 20px 40px; border-bottom: 1px solid var(--border-color); }
.footer-col { padding: 10px 0; }
.footer-logo { font-size: 24px; font-weight: bold; color: var(--text-main); text-decoration: none; margin-bottom: 15px; display: block; }
.footer-description { margin-top: 15px; line-height: 1.8; color: #FFF3E6; word-wrap: break-word; overflow-wrap: break-word; }
.footer-col h3 { color: var(--text-main); font-size: 18px; margin-bottom: 20px; position: relative; }
.footer-col h3::after { content: ''; position: absolute; left: 0; bottom: -5px; width: 40px; height: 2px; background-color: var(--primary-color); }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { color: var(--text-main); text-decoration: none; transition: color 0.3s ease; display: block; }
.footer-nav a:hover { color: var(--primary-color); }
.footer-bottom { text-align: center; padding: 20px; background-color: #17191F; border-top: 1px solid rgba(255, 255, 255, 0.05); color: #FFF3E6; }

.footer-slot-anchor-inner, .footer-slot-anchor-outer, .footer-slot-anchor-grid { min-height: 1px; }
.footer-slot-anchor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Mobile Specific Styles */
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  body.no-scroll { overflow: hidden; }

  .header-top { height: 60px !important; }
  .header-container { padding: 0 15px; position: relative; height: 100%; max-width: none; }

  .hamburger-menu { display: block; position: relative; z-index: 2; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 24px; max-width: calc(100% - 100px); /* Adjust to make space for hamburger */ }
  .logo img { max-height: 56px !important; }

  .desktop-nav-buttons { display: none !important; }
  .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: var(--card-bg);
  }
  .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;
  }

  .main-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: var(--header-offset);
    left: 0;
    width: 280px;
    max-width: calc(100% - 60px); /* Ensure it doesn't cover whole screen */
    height: calc(100vh - var(--header-offset));
    background-color: var(--card-bg);
    flex-direction: column;
    padding: 20px 15px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 1001;
    align-items: flex-start;
  }
  .main-nav.active {
    display: flex; /* Show when active */
    transform: translateX(0);
  }
  .nav-container { flex-direction: column; align-items: flex-start; gap: 15px; width: 100%; max-width: none; padding: 0; }
  .nav-link { width: 100%; padding: 10px 15px; border-radius: 5px; }

  .overlay.active { display: block; }

  .site-footer { padding: 20px 0 0; }
  .footer-top-grid { grid-template-columns: 1fr; padding: 0 15px 20px; }
  .footer-col { padding: 15px 0; }
  .footer-col h3 { margin-bottom: 15px; }
  .footer-bottom { padding: 15px; }

  .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;
  }
}
/* 内容保护（系统追加，请勿删除） */
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;
}
