:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --body-bg: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
    --header-offset: 122px; /* Desktop: 68px (header-top) + 52px (main-nav) = 120px + 2px buffer */
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding-top: var(--header-offset); /* Account for fixed header height */
    background-color: var(--body-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll from body */
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.header-top {
    background-color: var(--deep-green); /* Distinct from main-nav */
    min-height: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0 20px; /* Padding for the header-top itself */
}

.header-container {
    width: 100%;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--gold-color);
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    display: block; /* Ensure it's visible */
    padding: 5px 0; /* Vertical padding to match line height */
}

.logo img {
    display: block;
    max-height: 60px; /* Desktop logo height */
    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; /* Hidden by default on desktop */
    min-height: 48px; /* Fixed height for mobile button bar */
    background-color: var(--deep-green); /* Same as header-top for consistency */
    padding: 0 15px; /* Adjust padding for mobile */
}

.main-nav {
    background-color: var(--primary-color); /* Distinct from header-top */
    min-height: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
}

.nav-container {
    width: 100%;
    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: 16px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-link:hover {
    color: var(--gold-color);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

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

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    order: -1; /* Pushes to the left in flex container */
}

.hamburger-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    position: absolute;
    transition: transform 0.3s ease;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    top: 8px;
}

/* Hamburger menu active state */
.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 for mobile menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Footer styles */
.site-footer {
    background-color: var(--card-bg); /* Use card background for footer */
    color: var(--text-secondary);
    padding: 40px 20px 20px;
    box-sizing: border-box;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 30px;
}

.footer-col h3 {
    color: var(--text-main);
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--divider-color);
    padding-bottom: 10px;
}

.footer-logo {
    color: var(--gold-color);
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    display: block;
    margin-bottom: 15px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 8px;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--gold-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid var(--divider-color);
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-bottom p {
    margin: 0;
}

/* Dynamic slot anchors - ensure they are visible and don't hide content */
.footer-slot-anchor, .footer-slot-anchor-inner {
    min-height: 10px; /* Ensure visibility for injection */
    display: block;
}

/* Mobile styles */
@media (max-width: 768px) {
    :root {
        --header-offset: 110px; /* Mobile: 60px (header-top) + 48px (mobile-nav-buttons) = 108px + 2px buffer */
    }

    body {
        padding-top: var(--header-offset);
        overflow-x: hidden; /* Ensure body itself prevents horizontal scroll */
    }

    .page-content img {
      max-width: 100% !important;
      height: auto !important;
      display: block;
    }
    .page-content {
      overflow-x: hidden;
      max-width: 100%;
    }

    .site-header {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    }

    .header-top {
        min-height: 60px;
        height: 60px;
        padding: 0 15px;
        justify-content: space-between; /* To push hamburger left and logo to center */
    }

    .header-container {
        width: 100%;
        max-width: none; /* Remove max-width for mobile container */
        padding: 0; /* Remove internal padding, handled by header-top */
        position: relative; /* For absolute positioning of logo */
    }

    .logo {
        flex: 1 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        max-width: calc(100% - 100px); /* Leave space for hamburger */
        font-size: 24px;
    }

    .logo img {
        max-height: 56px !important; /* Mobile logo height */
        max-width: 100%; /* Ensure image scales within logo container */
        object-fit: contain;
    }

    .desktop-nav-buttons {
        display: none !important; /* Hide desktop buttons on mobile */
    }

    .mobile-nav-buttons {
        display: flex !important; /* Show mobile buttons */
        min-height: 48px;
        align-items: center;
        justify-content: center; /* Center buttons if only one */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        background-color: var(--deep-green);
        padding: 0 15px; /* Mobile padding */
        overflow: hidden; /* Prevent button overflow */
        gap: 10px;
        flex-wrap: nowrap;
    }

    .mobile-nav-buttons .btn {
        flex: 1;
        min-width: 0;
        max-width: calc(50% - 5px); /* Max width for two buttons with gap */
        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; /* Show hamburger on mobile */
        position: relative;
        z-index: 1001;
        margin-right: auto; /* Push to the left */
    }

    .main-nav {
        display: none; /* Hidden by default for mobile menu */
        flex-direction: column;
        position: fixed;
        top: var(--header-offset); /* Position below fixed header and mobile buttons */
        left: 0;
        width: 80%; /* Menu width */
        max-width: 300px;
        height: calc(100% - var(--header-offset)); /* Fill remaining height */
        background-color: var(--primary-color);
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
        transform: translateX(-100%); /* Slide out of view */
        transition: transform 0.3s ease;
        overflow-y: auto; /* Enable scrolling for long menus */
        z-index: 999;
        min-height: auto; /* Override fixed height */
        height: auto; /* Override fixed height */
    }

    .main-nav.active {
        display: flex; /* Show menu when active */
        transform: translateX(0); /* Slide into view */
    }

    .nav-container {
        flex-direction: column;
        padding: 20px 0; /* Adjust padding for vertical menu */
        height: auto;
    }

    .nav-link {
        width: 100%;
        padding: 12px 20px;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .footer-top-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 20px;
    }

    .footer-col {
        text-align: center; /* Center footer content on mobile */
    }

    .footer-col h3 {
        text-align: center;
    }

    .footer-nav {
        text-align: center;
    }

    .footer-logo {
        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;
}
