:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --card-bg: #111111;
    --bg-color: #0A0A0A;
    --text-main: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --header-offset: 122px; /* Desktop no marquee */
}

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

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

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

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 20px; /* Spacing between logo and nav */
}

.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001; /* Above mobile buttons */
}

.hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    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);
}

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

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

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

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

.btn {
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    color: #333333; /* Darker text for contrast with bright gradient */
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
}

.btn-login {
    background: var(--button-gradient);
    border: 1px solid var(--primary-color);
}

.btn-register {
    background: var(--button-gradient);
    border: 1px solid var(--primary-color);
}

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

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

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

.footer-col h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

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

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

.footer-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

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

.footer-bottom p {
    margin: 0;
}

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

    .site-header {
        min-height: 55px;
    }

    .header-container {
        width: 100%;
        max-width: none; /* Important for mobile full width */
        padding: 10px 15px;
        justify-content: space-between; /* Space out hamburger, logo, buttons */
    }

    .hamburger-menu {
        display: block; /* Show hamburger on mobile */
        flex-shrink: 0;
        order: 1;
    }

    .logo {
        flex: 1 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        font-size: 24px;
        margin-right: 0; /* Remove extra margin */
        order: 2;
    }

    .main-nav {
        display: none; /* Hide main nav by default */
        flex-direction: column;
        position: fixed;
        top: var(--header-offset);
        left: 0;
        width: 75%;
        height: calc(100% - var(--header-offset));
        background-color: var(--card-bg);
        padding: 20px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
        transform: translateX(-100%); /* Off-screen by default */
        transition: transform 0.3s ease;
        z-index: 998; /* Below hamburger, above overlay */
        overflow-y: auto;
        align-items: flex-start;
        gap: 15px;
    }

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

    .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; /* Hide desktop buttons on mobile */
    }

    .mobile-nav-buttons {
        display: flex !important; /* Show mobile buttons */
        gap: 8px;
        flex-shrink: 0;
        order: 3;
        margin-left: 10px; /* Space from logo */
    }

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

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

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

    /* Footer mobile styles */
    .footer-content-cols {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-col {
        text-align: center;
    }

    .footer-nav ul {
        text-align: center;
    }

    .footer-nav li {
        display: inline-block;
        margin: 0 10px 10px 0;
    }
    .footer-nav li:last-child {
        margin-right: 0;
    }

    .footer-logo {
        text-align: center;
    }
    
    .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;
  }
}
