:root {
    --header-offset: 122px; /* Desktop: 68px (header-top) + 52px (main-nav) + 2px buffer */
}
body {
    padding-top: var(--header-offset);
    margin: 0;
    font-family: Arial, sans-serif;
    color: #FFF6D6; /* Text Main */
    background-color: #0A0A0A; /* Background */
    overflow-x: hidden; /* Global overflow protection */
}

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

.header-top {
    box-sizing: border-box;
    height: 68px; /* Desktop */
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #111111; /* Card BG */
    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-weight: bold;
    font-size: 24px;
    color: #F2C14E; /* Main color */
    text-decoration: none;
    white-space: nowrap;
}
.logo img {
    display: block;
    max-height: 60px; /* Desktop */
    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;
    min-height: 48px;
    display: none; /* Hidden by default on desktop */
    background-color: #111111; /* Same as header-top */
    width: 100%;
    padding: 0 20px;
}

.main-nav {
    box-sizing: border-box;
    height: 52px; /* Desktop */
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #0A0A0A; /* Background */
    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;
}

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

.main-nav a {
    text-decoration: none;
    color: #FFF6D6; /* Text Main */
    font-size: 16px;
    font-weight: bold;
    padding: 5px 0;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #F2C14E; /* Main color */
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    color: #FFF6D6; /* Text Main */
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
    font-weight: bold;
    font-size: 15px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn:hover {
    opacity: 0.9;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    padding: 5px;
    z-index: 1002;
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: #F2C14E; /* Main color */
    transition: all 0.3s ease;
}

.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Footer Styles */
.site-footer {
    background-color: #111111; /* Card BG */
    padding: 40px 20px 20px;
    color: #FFF6D6; /* Text Main */
    font-size: 14px;
    line-height: 1.6;
}

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

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

.footer-logo {
    font-weight: bold;
    font-size: 28px;
    color: #F2C14E; /* Main color */
    text-decoration: none;
    display: block;
    margin-bottom: 15px;
}

.footer-description {
    color: #FFF6D6;
    margin-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

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

.footer-nav a {
    color: #FFF6D6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #FFD36B; /* Accent color */
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #3A2A12; /* Border */
    margin-top: 20px;
    color: #FFF6D6;
}

/* Slot Anchor Styling (ensure visibility) */
.footer-slot-anchor-outer, .footer-slot-anchor-inner {
    min-height: 1px; /* Ensure they take up space */
    width: 100%;
    /* Do not set display:none, visibility:hidden, opacity:0, height:0, max-height:0, overflow:hidden */
}

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

    .header-top {
        height: 60px;
    }

    .header-container {
        padding: 0 15px;
    }

    .main-nav {
        height: 48px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .logo {
        flex: 1 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        font-size: 22px;
    }
    .logo img {
        max-height: 56px !important;
    }

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

    .mobile-nav-buttons {
        display: flex !important;
        justify-content: center;
        align-items: center;
        min-height: 48px;
        background-color: #111111;
        padding: 0 15px;
        gap: 10px;
        flex-wrap: nowrap;
        overflow: hidden;
    }
    .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: flex;
        order: -1; /* Move to left */
        margin-right: auto; /* Push logo to center */
    }

    .main-nav {
        display: none; /* Hidden by default */
        position: fixed;
        top: 0; /* Will be adjusted by JS based on header-offset, but initially set to 0 */
        left: 0;
        width: 70%; /* Adjust as needed */
        height: 100vh;
        background-color: #0A0A0A;
        flex-direction: column;
        padding-top: var(--header-offset); /* Ensure content isn't under header */
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1001;
        box-shadow: 2px 0 5px rgba(0,0,0,0.3);
        overflow-y: auto;
    }
    .main-nav.active {
        display: flex; /* Show when active */
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 0;
        width: 100%;
    }
    .main-nav li {
        width: 100%;
        border-bottom: 1px solid #3A2A12; /* Border */
    }
    .main-nav a {
        padding: 15px 20px;
        width: 100%;
        display: block;
    }

    /* Footer Mobile */
    .site-footer {
        padding-left: 15px;
        padding-right: 15px;
    }

    .footer-top-grid {
        grid-template-columns: 1fr;
    }

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