:root {
    /* Color Palette */
    --primary-color: #FF8C1A; /* Main Orange */
    --secondary-color: #FFA53A; /* Lighter Orange */
    --card-bg: #17191F; /* Dark Grey */
    --background-color: #0D0E12; /* Very Dark Grey */
    --text-main-color: #FFF3E6; /* Off-white */
    --border-color: #A84F0C; /* Darker Orange */
    --glow-color: #FFB04D; /* Yellowish Orange */
    --deep-orange: #D96800; /* Deep Orange for gradients */

    /* Header Offsets */
    --header-top-height-desktop: 68px;
    --main-nav-height-desktop: 52px;
    --header-top-height-mobile: 60px;
    --mobile-nav-buttons-height-mobile: 48px;

    --header-offset: calc(var(--header-top-height-desktop) + var(--main-nav-height-desktop) + 2px); /* 120px + 2px = 122px */
}

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

body.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: var(--text-main-color);
}

a:hover {
    color: var(--primary-color);
}

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

.header-top {
    background-color: var(--background-color); /* Very Dark Grey */
    min-height: var(--header-top-height-desktop);
    height: var(--header-top-height-desktop);
    display: flex;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
}

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

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block; /* Ensure logo is visible */
    padding: 0; /* Remove default padding */
    white-space: nowrap;
}

.logo:hover {
    color: var(--secondary-color);
}

/* 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: var(--mobile-nav-buttons-height-mobile); /* Placeholder height for consistency */
    background-color: var(--card-bg); /* Dark Grey */
    padding: 0 20px; /* Consistent padding */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}


.btn {
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-main-color);
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
    border: none;
    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), 0 0 15px var(--glow-color);
    color: var(--text-main-color); /* Keep text color consistent on hover */
}

.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Above header */
}

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

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

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

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

.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);
}

.main-nav {
    background-color: var(--card-bg); /* Dark Grey */
    min-height: var(--main-nav-height-desktop);
    height: var(--main-nav-height-desktop);
    display: flex;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.main-nav .nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    height: 100%;
}

.nav-link {
    padding: 0 15px;
    font-size: 16px;
    font-weight: bold;
    color: var(--text-main-color);
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
}


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

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

.footer-col {
    padding-bottom: 20px; /* Add some spacing for columns */
}

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

.footer-logo:hover {
    color: var(--secondary-color);
}

.footer-description {
    color: var(--text-main-color);
    line-height: 1.8;
    margin-top: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-title {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 5px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

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

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

.footer-nav a {
    color: var(--text-main-color);
    transition: color 0.3s ease;
}

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

.footer-slot-anchor {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    box-sizing: border-box;
}

.footer-slot-anchor-inner {
    min-height: 10px; /* Ensure it takes up some space if empty */
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 30px;
    color: var(--text-main-color);
}

/* --- Responsive Styles --- */
@media (max-width: 768px) {
    :root {
        --header-offset: calc(var(--header-top-height-mobile) + var(--mobile-nav-buttons-height-mobile) + 2px); /* 60px + 48px + 2px = 110px */
    }

    body {
        padding-top: var(--header-offset);
        overflow-x: hidden; /* Prevent horizontal scroll on mobile */
    }

    .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 8px rgba(0, 0, 0, 0.4);
    }

    .header-top {
        min-height: var(--header-top-height-mobile);
        height: var(--header-top-height-mobile);
        padding: 0 15px; /* Smaller padding for mobile */
    }

    .header-container {
        max-width: none; /* Full width on mobile */
        padding: 0; /* Handled by header-top */
        position: relative; /* For logo centering */
    }

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

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

    .hamburger-menu {
        display: block; /* Show hamburger menu */
        position: relative;
        z-index: 1001;
        margin-right: auto; /* Push logo to center */
    }

    .main-nav {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        position: fixed;
        top: var(--header-offset); /* Position below fixed header and mobile buttons */
        left: 0;
        width: 80%;
        max-width: 300px;
        height: calc(100% - var(--header-offset)); /* Fill remaining height */
        background-color: var(--card-bg);
        transform: translateX(-100%); /* Slide out of view */
        transition: transform 0.3s ease-in-out;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
        overflow-y: auto; /* Enable scrolling for long menus */
        border-top: none; /* Remove border from desktop */
        padding: 20px 0;
        min-height: auto; /* Reset min-height */
        height: auto; /* Reset height */
    }

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

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

    .nav-link {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        text-align: left;
    }
    .nav-link:last-child {
        border-bottom: none;
    }

    .overlay.active {
        display: block; /* Show overlay when active */
    }

    /* Mobile Navigation Buttons (visible on mobile) */
    .mobile-nav-buttons {
        display: flex !important; /* Force display on mobile */
        align-items: center;
        justify-content: center;
        gap: 10px;
        flex-wrap: nowrap; /* Prevent buttons from wrapping */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 8px 15px;
        overflow: hidden; /* Hide overflow to prevent horizontal scroll */
        min-height: var(--mobile-nav-buttons-height-mobile);
        height: var(--mobile-nav-buttons-height-mobile);
        background-color: var(--card-bg); /* Match main-nav background */
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .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;
        border-radius: 20px;
    }

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

    .footer-col {
        padding-bottom: 30px;
    }

    .footer-bottom {
        padding: 20px 15px 0;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
