html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    color: #FFF6D6;
    background-color: #0A0A0A;
}

:root { --header-offset: 122px; }
body { padding-top: var(--header-offset); }

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

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

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #F2C14E;
    text-decoration: none;
    flex-shrink: 0;
    order: 1;
    white-space: nowrap;
}

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

.nav-link {
    color: #FFF6D6;
    text-decoration: none;
    font-size: 16px;
    padding: 5px 0;
    position: relative;
    white-space: nowrap;
}

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

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

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

.desktop-nav-buttons {
    display: flex;
    gap: 10px;
    order: 3;
    flex-shrink: 0;
}

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

.btn {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #3A2A12; /* Border color for text on buttons */
}

.btn-login {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    box-shadow: 0 0 10px rgba(255, 211, 107, 0.5); /* Glow color */
}

.btn-register {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    box-shadow: 0 0 10px rgba(255, 211, 107, 0.5); /* Glow color */
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.7);
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 30px;
    color: #FFF6D6;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    order: 1;
    position: relative;
    width: 30px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #FFF6D6;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

.hamburger-menu.active .hamburger-icon:nth-child(3) {
    transform: translateY(-10.5px) 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: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Footer Styles */
.site-footer {
    background-color: #111111; /* Card BG */
    padding: 40px 0 20px;
    color: #FFF6D6;
    border-top: 1px solid #3A2A12;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

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

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

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: #FFF6D6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

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

.footer-nav li,
.footer-legal-nav li {
    margin-bottom: 8px;
}

.footer-nav a,
.footer-legal-nav a {
    color: #FFF6D6;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-nav a:hover,
.footer-legal-nav a:hover {
    color: #FFD36B;
}

.footer-dynamic-col .footer-slot-anchor-inner {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: flex-start;
    gap: 5px;
}

.footer-dynamic-row {
    margin-bottom: 20px;
}

.footer-dynamic-row .footer-slot-anchor-inner {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #3A2A12;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #FFF6D6;
    margin: 0 0 10px;
}

.footer-legal-nav {
    display: flex;
    gap: 15px;
    justify-content: center;
}

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

    .header-container {
        width: 100%;
        max-width: none;
        padding: 10px 15px;
        justify-content: space-between;
    }

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

    .logo {
        order: 2;
        flex: 1 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        font-size: 24px;
        padding: 0 10px;
    }

    .mobile-nav-buttons {
        display: flex;
        gap: 8px;
        order: 3;
        flex-shrink: 0;
    }

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

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

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

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

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

    .nav-link::after {
        display: none;
    }

    .site-footer {
        padding: 30px 0 15px;
    }

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

    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 30px;
    }

    .footer-legal-nav {
        flex-direction: column;
        gap: 8px;
        margin-top: 10px;
    }

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