:root {
    --header-offset: 122px;
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --card-bg: #111111;
    --site-bg: #0A0A0A;
    --text-main: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
}

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

.site-header {
    background-color: var(--card-bg);
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    min-height: 60px; /* Ensure content adaptation */
    display: flex;
    align-items: center;
}

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

.logo {
    font-size: 2em;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    flex-shrink: 0;
    display: block; /* Ensure logo is visible */
    line-height: 1;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 2em;
    color: var(--text-main);
    cursor: pointer;
    padding: 5px;
    flex-shrink: 0;
    z-index: 1001;
}

.main-nav {
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding: 0 20px;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: bold;
    padding: 8px 0;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

.desktop-nav-buttons {
    flex-shrink: 0;
    margin-left: auto;
    display: flex;
    gap: 10px;
}

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

.btn {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #3A2A12;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.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: 997;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
}

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

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

.footer-col {
    display: flex;
    flex-direction: column;
}

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

.footer-description {
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-heading {
    font-size: 1.2em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    white-space: nowrap;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85em;
    color: var(--text-main);
}

.footer-bottom p {
    margin: 0;
}

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

    .header-container {
        width: 100%;
        max-width: none;
        padding: 10px 15px;
        justify-content: space-between;
        position: relative; /* For absolute positioning of logo if needed */
        min-height: 60px;
    }

    .hamburger-menu {
        display: block;
        order: 1;
        z-index: 1001;
    }

    .logo {
        order: 2;
        flex: 1;
        text-align: center;
        position: absolute; /* Force center for text logo */
        left: 50%;
        transform: translateX(-50%);
        max-width: calc(100% - 120px); /* Adjust based on button/hamburger width */
        z-index: 1000;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        position: fixed;
        top: var(--header-offset);
        left: 0;
        width: 75%;
        max-width: 300px; /* Limit width of mobile menu */
        height: calc(100vh - var(--header-offset));
        background-color: var(--card-bg);
        z-index: 998;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        padding: 20px;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
        align-items: flex-start;
        gap: 15px;
    }

    .main-nav.active {
        display: flex;
        transform: translateX(0);
    }

    .nav-link {
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
    }

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

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

    .mobile-nav-buttons {
        order: 3;
        display: flex !important;
        gap: 8px;
        flex-shrink: 0;
        z-index: 1000;
    }

    .btn {
        padding: 8px 15px;
        font-size: 0.9em;
    }

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

    .footer-col {
        align-items: flex-start;
    }

    .footer-about .footer-logo,
    .footer-about .footer-description {
        text-align: left;
    }

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