/* General Reset & Base Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
    padding-top: var(--header-offset); /* Fixed header offset */
    overflow-x: hidden; /* Mobile overflow protection */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Header Variables & Fixed Positioning */
:root {
    --header-offset: 122px; /* Desktop: 68px (header-top) + 52px (main-nav) */
}

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

/* Header Top Section */
.header-top {
    box-sizing: border-box;
    min-height: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #0A4B2C; /* Deep Green */
    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: #F2C14E; /* Gold for logo */
    text-transform: uppercase;
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    display: block;
    max-height: 60px;
    height: auto;
    width: auto;
    max-width: 280px;
    object-fit: contain;
}

/* Desktop Navigation Buttons */
.desktop-nav-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Mobile Navigation Buttons - Hidden by default on desktop */
.mobile-nav-buttons {
    box-sizing: border-box;
    display: none; /* Hidden on desktop */
    min-height: 48px; /* Placeholder height, will be set to flex on mobile */
    background-color: #11271B; /* Card BG - distinct from header-top */
    padding: 0 20px; /* Desktop-like padding for mobile */
}

/* Main Navigation Section */
.main-nav {
    box-sizing: border-box;
    min-height: 52px;
    height: 52px;
    display: flex; /* Displayed on desktop */
    align-items: center;
    overflow: hidden;
    background-color: #11271B; /* 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-list {
    display: flex;
    gap: 25px;
}

.nav-list a {
    color: #F2FFF6; /* Text Main */
    font-size: 16px;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-list a:hover {
    color: #57E38D; /* Glow */
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #F2FFF6; /* Text Main */
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile Spacer (Hidden on Desktop) */
.mobile-spacer {
    display: none; /* Hidden on desktop */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6; /* Text Main */
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

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

/* 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;
}

.overlay.active {
    display: block;
}

/* Footer Styles */
.site-footer {
    background-color: #08160F; /* Background */
    color: #A7D9B8; /* Text Secondary */
    padding: 40px 0 20px;
    font-size: 14px;
    line-height: 1.6;
    box-sizing: border-box;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #1E3A2A; /* Divider */
    padding-bottom: 30px;
}

.footer-col h3 {
    color: #F2FFF6; /* Text Main */
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    color: #F2C14E; /* Gold for logo */
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.footer-description {
    color: #A7D9B8; /* Text Secondary */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

.footer-nav a {
    color: #A7D9B8; /* Text Secondary */
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #57E38D; /* Glow */
}

.footer-bottom {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 0;
    color: #A7D9B8; /* Text Secondary */
}

.footer-bottom p {
    margin: 0;
}

/* Dynamic slot anchors - ensure they are not hidden */
.footer-slot-anchor-inner {
    min-height: 1px; /* Ensure it takes up space if empty */
}


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

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

    /* Header Top */
    .header-top {
        min-height: 60px;
        height: 60px;
        padding: 0 15px; /* Smaller padding for mobile */
    }

    .header-container {
        padding: 0; /* Handled by header-top padding */
        max-width: none; /* Full width */
        justify-content: space-between; /* To push hamburger left, spacer right */
    }
    
    .hamburger-menu {
        display: block; /* Show hamburger on mobile */
        order: -1; /* Place it first */
    }

    .hamburger-menu.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger-menu.active span:nth-child(2) { opacity: 0; }
    .hamburger-menu.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .logo {
        flex: 1; /* Allow logo to take available space */
        text-align: center; /* Center text logo */
        font-size: 24px;
    }
    
    /* Spacer for mobile logo centering */
    .mobile-spacer {
        display: block;
        width: 45px; /* Approximate width of hamburger menu to balance logo */
        height: 1px;
    }

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

    /* Mobile Navigation Buttons */
    .mobile-nav-buttons {
        display: flex !important; /* Show mobile buttons */
        min-height: 48px;
        align-items: center;
        width: 100%; max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Smaller padding for mobile */
        overflow: hidden;
        gap: 10px;
        flex-wrap: nowrap;
        justify-content: center; /* Center buttons if less than 2, or if 2 distribute evenly */
        background-color: #11271B; /* Card BG */
    }

    .mobile-nav-buttons .btn {
        flex: 1; min-width: 0;
        max-width: calc(50% - 5px); /* For two buttons with 10px gap */
        box-sizing: border-box;
        padding: 8px 12px;
        font-size: 13px;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Main Navigation (Mobile Menu) */
    .main-nav {
        display: none; /* Hidden by default */
        position: fixed;
        top: var(--header-offset); /* Position below fixed header */
        left: 0;
        width: 80%; /* Menu width */
        max-width: 300px;
        height: calc(100% - var(--header-offset)); /* Full height below header */
        background-color: #11271B; /* Card BG */
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 20px 0;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
        transform: translateX(-100%); /* Start off-screen */
        transition: transform 0.3s ease;
        overflow-y: auto; /* Allow scrolling for long menus */
        box-sizing: border-box;
        z-index: 1000; /* Same as header, overlay is 999 */
    }

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

    .nav-container {
        padding: 0 15px; /* Smaller padding for mobile */
        max-width: none; /* Full width */
        width: 100%;
        height: auto;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid #1E3A2A; /* Divider */
    }

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

    .nav-list a {
        display: block;
        padding: 12px 10px;
        font-size: 16px;
        color: #F2FFF6; /* Text Main */
    }

    /* Footer Mobile */
    .site-footer {
        padding: 30px 0 15px;
    }

    .footer-top-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
        padding: 0 15px;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .footer-col h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .footer-logo {
        font-size: 20px;
        margin-bottom: 10px;
    }

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

    .footer-bottom {
        padding: 15px 15px 0;
        font-size: 13px;
    }

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