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

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

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 30px;
    width: 100%;
    min-height: 52px; /* Desktop main-nav height */
}

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

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

.nav-link {
    color: #FFF6D6;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #FFD36B;
}

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

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

.btn {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #0A0A0A;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    background: linear-gradient(180deg, #FFE082 0%, #E6AE29 100%);
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    flex-shrink: 0;
}

.hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #FFF6D6;
    margin: 5px 0;
    transition: all 0.3s ease;
}

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

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

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

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

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

/* Footer Styles */
.site-footer {
    background-color: #0A0A0A;
    color: #FFF6D6;
    padding-top: 40px;
}

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

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

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

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word; /* Ensure long text breaks */
    overflow-wrap: break-word;
}

.footer-heading {
    font-size: 18px;
    color: #FFD36B;
    margin-bottom: 15px;
}

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

.footer-nav .nav-link {
    color: #FFF6D6;
    text-decoration: none;
    font-size: 14px;
}

.footer-nav .nav-link:hover {
    color: #FFD36B;
}

.footer-bottom {
    background-color: #111111;
    padding: 20px 30px;
    text-align: center;
    font-size: 13px;
    color: #FFF6D6;
}

.footer-slot-anchor-inner { min-height: 1px; }

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

    .site-header {
        min-height: 60px; /* Mobile header-top height */
    }

    .header-container {
        width: 100%;
        max-width: none;
        padding: 0 15px;
        min-height: 48px; /* Mobile main-nav height */
        justify-content: space-between;
    }

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

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

    .main-nav {
        display: none; /* Hidden by default */
        flex-direction: column;
        position: fixed;
        top: var(--header-offset);
        left: 0;
        width: 250px;
        height: calc(100% - var(--header-offset));
        background-color: #111111;
        padding: 20px;
        transform: translateX(-100%); /* Start off-screen */
        transition: transform 0.3s ease;
        z-index: 999;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
        align-items: flex-start;
    }

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

    .main-nav .nav-link {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid #3A2A12;
    }

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

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

    .mobile-nav-buttons {
        display: flex !important;
        order: 3;
        gap: 8px;
        margin-left: 0;
    }

    .site-footer {
        padding-top: 30px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        padding: 0 15px 30px;
    }

    .footer-col {
        margin-bottom: 20px;
    }

    .footer-col:last-child {
        margin-bottom: 0;
    }

    .footer-bottom {
        padding: 15px;
    }

    /* Mobile content overflow prevention */
    .page-content img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-content {
        overflow-x: hidden;
        max-width: 100%;
    }
    body {
        overflow-x: 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;
  }
}
