:root { --header-offset: 122px; --primary-color: #FF8C1A; --secondary-color: #FFA53A; --button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); --card-bg: #17191F; --background-color: #0D0E12; --text-main: #FFF3E6; --border-color: #A84F0C; --glow-color: #FFB04D; --deep-orange: #D96800; }

body { font-family: 'Arial', sans-serif; margin: 0; padding-top: var(--header-offset); background-color: var(--background-color); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }

/* Header styles */
.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; 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 { color: var(--text-main); font-size: 28px; font-weight: bold; text-decoration: none; display: block; white-space: nowrap; }
.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); /* Distinct background */ padding: 0 15px; /* Ensure padding for buttons */ }

.btn { display: inline-flex; justify-content: center; align-items: center; padding: 10px 20px; border-radius: 25px; text-decoration: none; font-weight: bold; font-size: 15px; cursor: pointer; white-space: nowrap; transition: all 0.3s ease; color: var(--text-main); background: var(--button-gradient); border: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color); }

.main-nav { box-sizing: border-box; height: 52px; display: flex; align-items: center; overflow: hidden; background-color: var(--primary-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; }
.nav-link { color: var(--text-main); text-decoration: none; padding: 10px 15px; font-size: 15px; font-weight: bold; transition: color 0.3s ease, background-color 0.3s ease; white-space: nowrap; }
.nav-link:hover, .nav-link.active { background-color: var(--deep-orange); border-radius: 5px; }

/* Hamburger menu for mobile */
.hamburger-menu { display: none; /* Hidden by default on desktop */ width: 30px; height: 24px; position: relative; cursor: pointer; z-index: 1001; background: none; border: none; padding: 0; margin-right: 15px; /* Space from logo */ }
.hamburger-menu .bar { display: block; width: 100%; height: 3px; background-color: var(--text-main); border-radius: 2px; position: absolute; left: 0; transition: all 0.3s ease; }
.hamburger-menu .bar:nth-child(1) { top: 0; }
.hamburger-menu .bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-menu .bar:nth-child(3) { bottom: 0; }

.hamburger-menu.active .bar:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
.hamburger-menu.active .bar:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* Overlay for 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: 999; opacity: 0; transition: opacity 0.3s ease; }
.overlay.active { display: block; opacity: 1; }

/* Footer styles */
.site-footer { background-color: var(--background-color); padding: 40px 20px 20px; color: var(--text-main); font-size: 14px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto 30px; }
.footer-col { padding: 10px 0; }
.footer-logo { color: var(--text-main); font-size: 24px; font-weight: bold; text-decoration: none; margin-bottom: 15px; display: block; }
.footer-description { color: var(--text-main); line-height: 1.8; margin-top: 15px; overflow-wrap: break-word; word-wrap: break-word; }
.footer-heading { font-size: 18px; color: var(--text-main); margin-bottom: 20px; position: relative; }
.footer-heading::after { content: ''; display: block; width: 40px; height: 3px; background-color: var(--primary-color); margin-top: 8px; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { color: var(--secondary-color); text-decoration: none; transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--primary-color); }
.footer-bottom { max-width: 1200px; margin: 20px auto 0; text-align: center; padding-top: 20px; border-top: 1px solid var(--border-color); color: var(--text-main); }
.footer-bottom p { margin: 0; }

.footer-slot-anchor-inner { min-height: 1px; }

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

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

    .header-top { height: 60px !important; padding: 0 15px; }
    .header-container { width: 100%; max-width: none; padding: 0; justify-content: space-between; }
    
    .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; margin-left: auto; margin-right: auto; }
    .logo img { max-height: 56px !important; max-width: 100%; height: auto; }

    .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;
    }
    .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; margin-left: 0; position: relative; z-index: 1002; }
    .header-container .hamburger-menu { order: -1; /* Place hamburger menu to the left */ }

    .main-nav {
        height: auto; /* Auto height for content */
        min-height: 100vh; /* Full viewport height */
        width: 280px; /* Fixed width for slide-out menu */
        position: fixed; top: 0; left: 0;
        transform: translateX(-100%); /* Hidden by default */
        transition: transform 0.3s ease;
        background-color: var(--card-bg); /* Use card background for menu */
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.4);
        flex-direction: column;
        align-items: flex-start;
        padding-top: calc(var(--header-offset) + 20px); /* Offset for fixed header */
        overflow-y: auto;
        z-index: 1001;
        display: none; /* Hidden by default */
    }
    .main-nav.active {
        transform: translateX(0); /* Slide in */
        display: flex; /* Show the menu */
    }
    .nav-container { flex-direction: column; align-items: flex-start; padding: 0 20px; width: 100%; max-width: none; }
    .nav-link { width: 100%; padding: 12px 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-size: 16px; }
    .nav-link:last-child { border-bottom: none; }
    .nav-link:hover, .nav-link.active { background-color: var(--deep-orange); }

    .footer-top-grid { grid-template-columns: 1fr; }
    .footer-col { text-align: center; }
    .footer-heading { text-align: center; }
    .footer-heading::after { margin-left: auto; margin-right: auto; }
    .footer-nav { text-align: center; }
    .footer-nav li { display: inline-block; margin: 0 8px 10px; }
    .footer-nav a { white-space: nowrap; }

    .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.no-scroll { overflow: 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;
}
