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

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

/* Shared Container Styles */
.header-container, .nav-container, .footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

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

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

.header-top .header-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--color-gold);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    padding: 0;
    /* No specific max-height for text logo, relies on parent height */
}

.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; /* Hidden by default on desktop */
    min-height: 48px;
    background-color: var(--color-card-bg); /* Match main-nav or a distinct color */
    padding: 0 20px;
}

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

.main-nav .nav-container {
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.nav-list li a {
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: width 0.3s ease;
}

.nav-list li a:hover,
.nav-list li a.active {
    color: var(--color-gold);
}

.nav-list li a:hover::after,
.nav-list li a.active::after {
    width: 100%;
}

.btn {
    text-decoration: none;
    background: var(--color-button-gradient);
    color: var(--color-text-main);
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: none;
    cursor: pointer;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: var(--color-border);
    transform: translateY(-1px);
}

/* Hamburger Menu (Mobile Only) */
.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1002;
    padding: 0;
}

.hamburger-menu::before, .hamburger-menu::after,
.hamburger-menu span {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--color-text-main);
    left: 0;
    transition: all 0.3s ease;
}

.hamburger-menu::before { top: 0; }
.hamburger-menu span { top: 50%; transform: translateY(-50%); }
.hamburger-menu::after { bottom: 0; }

.hamburger-menu.active::before {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger-menu.active::after {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

.hamburger-menu.active span {
    opacity: 0;
}

/* Overlay for mobile menu */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.active {
    display: block;
    opacity: 1;
}

/* Site Footer */
.site-footer {
    background-color: var(--color-card-bg);
    padding: 40px 0 20px;
    color: var(--color-text-secondary);
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col {
    padding: 0 10px;
}

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

.footer-description {
    margin-top: 10px;
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-title {
    font-size: 18px;
    color: var(--color-text-main);
    margin-bottom: 20px;
    font-weight: bold;
}

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

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

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

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--color-divider);
    margin-top: 20px;
    color: var(--color-text-secondary);
}

.footer-bottom p {
    margin: 0;
}

/* Footer dynamic slot anchor styling (must be visible) */
.footer-slot-anchor-inner {
    min-height: 1px; /* Ensure visibility */
    display: block; /* Ensure it's rendered */
}

/* Responsive Styles */
@media (max-width: 768px) {
    :root {
        --header-offset: 110px;
    }

    .header-top {
        min-height: 60px;
        height: 60px;
        padding-left: 15px; /* Add padding for hamburger */
    }

    .header-top .header-container {
        width: 100%;
        max-width: none;
        padding-left: 0; /* Handled by header-top padding */
        padding-right: 15px;
        position: relative; /* For logo centering */
    }

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

    .logo {
        flex: 1 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        font-size: 24px;
        margin-left: 40px; /* Offset for hamburger */
    }

    .logo img {
        max-height: 56px !important;
    }

    .desktop-nav-buttons {
        display: none !important;
    }

    .mobile-nav-buttons {
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        height: auto; /* Allow content to dictate height if it wraps */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 8px 15px; /* Adjust padding for buttons */
        overflow: hidden;
        gap: 10px;
        flex-wrap: nowrap;
        background-color: var(--color-card-bg);
    }

    .mobile-nav-buttons .btn {
        flex: 1; /* Distribute space evenly */
        min-width: 0; /* Allow shrinking */
        max-width: calc(50% - 5px); /* Max width for two buttons with gap */
        padding: 8px 12px; /* Smaller padding */
        font-size: 13px; /* Smaller font size */
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
    }

    .main-nav {
        min-height: auto;
        height: calc(100% - var(--header-offset)); /* Take remaining height */
        position: fixed;
        top: var(--header-offset);
        left: 0;
        width: 80%; /* Menu width */
        max-width: 300px; /* Optional: max width for side menu */
        background-color: var(--color-card-bg);
        transform: translateX(-100%); /* Off-screen by default */
        transition: transform 0.3s ease;
        z-index: 1001;
        display: none; /* Hidden by default */
        flex-direction: column;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }

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

    .main-nav .nav-container {
        width: 100%;
        max-width: none;
        padding: 20px 15px;
        flex-direction: column;
        align-items: flex-start;
        height: auto; /* Allow content to dictate height */
    }

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

    .nav-list li {
        width: 100%;
    }

    .nav-list li a {
        font-size: 16px;
        padding: 10px 0;
        display: block;
    }

    .overlay.active {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }

    .footer-col {
        padding: 0;
    }

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