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

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

/* Header Styles */
.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;
    display: flex;
    align-items: center;
}

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

.logo {
    color: var(--text-main);
    text-decoration: none;
    font-size: 28px;
    font-weight: bold;
    flex-shrink: 0;
    padding: 5px 0;
    line-height: 1;
    display: block;
}

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

.hamburger-menu .hamburger-icon {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--text-main);
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger-menu .hamburger-icon::before, .hamburger-menu .hamburger-icon::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    position: absolute;
    transition: transform 0.3s ease;
}

.hamburger-menu .hamburger-icon::before {
    top: -8px;
}

.hamburger-menu .hamburger-icon::after {
    top: 8px;
}

.hamburger-menu.active .hamburger-icon {
    background-color: transparent;
}

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

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

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

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

.main-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease, left 0.3s ease;
}

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

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

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

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

.btn {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #000000; /* Ensuring good contrast */
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    min-height: 40px;
}

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

.mobile-menu-overlay {
    display: none; /* Hidden by default */
    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: var(--bg-color);
    color: var(--text-main);
    padding: 40px 20px;
    font-size: 14px;
    line-height: 1.6;
    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;
    padding-bottom: 30px;
}

.footer-col h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

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

.footer-description {
    color: var(--text-main);
    margin-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

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

.footer-nav a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

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

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

/* Mobile Styles */
@media (max-width: 768px) {
    :root { --header-offset: 110px; }
    body {
        padding-top: var(--header-offset);
        overflow-x: hidden;
    }

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

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

    .logo {
        flex: 1;
        text-align: center;
        order: 1;
        font-size: 24px;
        display: flex !important; /* For potential image logo centering */
        justify-content: center !important;
        align-items: center !important;
        max-width: calc(100% - 160px); /* Adjust based on button/hamburger width */
    }

    .logo img {
        display: block !important;
        max-width: 100%;
        height: auto;
        max-height: 40px;
    }

    .main-nav {
        display: none; /* Hidden by default */
        flex-direction: column;
        position: fixed;
        top: var(--header-offset);
        left: 0;
        width: 80%;
        max-width: 300px;
        height: calc(100% - var(--header-offset));
        background-color: var(--card-bg);
        transform: translateX(-100%); /* Slide out to the left */
        transition: transform 0.3s ease;
        overflow-y: auto;
        z-index: 999;
        padding: 20px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
        align-items: flex-start;
        gap: 15px;
    }

    .main-nav.active {
        display: flex; /* MUST be set to block/flex to show */
        transform: translateX(0); /* Slide in */
    }

    .main-nav .nav-link {
        padding: 10px 0;
        font-size: 18px;
        width: 100%;
    }

    .main-nav .nav-link::after {
        height: 1px;
        bottom: -5px;
    }

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

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

    .btn {
        padding: 8px 15px;
        font-size: 14px;
        min-width: 60px;
        min-height: 36px;
    }

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

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