:root {
    --header-offset: 122px; /* Desktop: 68px (top bar) + 52px (main nav) + 2px buffer */
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: var(--header-offset);
    background-color: #0A0A0A;
    color: #FFF6D6;
    overflow-x: hidden;
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #0A0A0A; /* Matches general background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    min-height: 68px; /* Based on typical top bar height */
    display: flex;
    align-items: center;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 10px 30px; /* Adjust padding for desktop */
}

.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    font-size: 28px;
    color: #FFF6D6;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    z-index: 1001; /* Ensure it's above other elements */
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #F2C14E;
    text-decoration: none;
    flex-shrink: 0;
    padding-right: 20px;
}

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

.main-nav .nav-link {
    color: #FFF6D6;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #F2C14E;
    transition: width 0.3s ease;
}

.main-nav .nav-link:hover::after {
    width: 100%;
}

.main-nav .nav-link:hover {
    color: #F2C14E;
}

.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 {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    color: #000000; /* Dark text for contrast on bright button */
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

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

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

.footer-col h3 {
    color: #F2C14E;
    font-size: 18px;
    margin-bottom: 20px;
}

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

.footer-description {
    line-height: 1.6;
    margin-bottom: 15px;
    word-wrap: break-word; /* Ensure full text display */
    overflow-wrap: break-word;
}

.footer-nav a {
    display: block;
    color: #FFF6D6;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #F2C14E;
}

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

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

    body {
        overflow-x: hidden;
    }

    .page-content img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-content {
        overflow-x: hidden;
        max-width: 100%;
    }

    .header-container {
        width: 100%;
        max-width: none; /* Remove max-width for mobile */
        padding: 10px 15px; /* Adjust padding for mobile */
        justify-content: space-between;
    }

    .hamburger-menu {
        display: block;
        flex-shrink: 0;
        margin-right: 15px;
    }

    .logo {
        flex: 1 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding-right: 0;
        margin: 0 10px;
    }

    .main-nav {
        display: none; /* Hidden by default for mobile */
        position: fixed;
        top: var(--header-offset);
        left: 0;
        width: 75%;
        height: calc(100% - var(--header-offset));
        background-color: #111111; /* Card BG color for mobile menu */
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }

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

    .main-nav .nav-link {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid #3A2A12;
    }
    .main-nav .nav-link:last-child {
        border-bottom: none;
    }
    .main-nav .nav-link::after {
        display: none;
    }

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

    .mobile-nav-buttons {
        display: flex !important; /* Show mobile buttons on mobile */
        flex-shrink: 0;
        gap: 8px;
        margin-left: 15px;
    }

    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        z-index: 998;
        transition: opacity 0.3s ease;
        opacity: 0;
    }

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

    body.no-scroll {
        overflow: hidden;
    }

    .footer-container {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    .footer-col {
        margin-bottom: 20px;
    }
    .footer-col:last-child {
        margin-bottom: 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;
  }
}
