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

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-top {
    box-sizing: border-box;
    min-height: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #1a1a1a; /* Darker variant for contrast */
    width: 100%;
}

.header-container {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    text-shadow: 0 0 8px var(--glow-color);
}

.logo img {
    display: block;
    max-height: 60px;
    height: auto;
    width: auto;
    max-width: 280px;
    object-fit: contain;
}

.desktop-nav-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.mobile-nav-buttons {
    box-sizing: border-box;
    display: none;
    min-height: 48px;
    width: 100%;
    background-color: #222222; /* Slightly different from header-top */
    padding: 0 20px;
    justify-content: center;
    align-items: center;
}

.main-nav {
    box-sizing: border-box;
    min-height: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #0A0A0A; /* Dark background */
    width: 100%;
    border-top: 1px solid var(--border-color);
}

.nav-container {
    box-sizing: border-box;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

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

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--glow-color);
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1002;
    margin-right: 15px;
    outline: none;
}

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

.hamburger-menu::before { top: 0; }
.hamburger-menu span { top: 50%; transform: translateY(-50%); }
.hamburger-menu::after { bottom: 0; }

.hamburger-menu.active::before {
    transform: translateY(10.5px) rotate(45deg);
}
.hamburger-menu.active span {
    opacity: 0;
}
.hamburger-menu.active::after {
    transform: translateY(-10.5px) rotate(-45deg);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    color: #000;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    transition: background-color 0.3s ease, transform 0.1s ease, box-shadow 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

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

.overlay.active {
    display: block;
    opacity: 1;
}

.no-scroll {
    overflow: hidden;
}

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

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

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

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    text-shadow: 0 0 5px var(--glow-color);
}

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

.footer-title {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-shadow: 0 0 3px rgba(242, 193, 78, 0.3);
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 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;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
    font-size: 13px;
    color: #aaa;
}

.footer-bottom p {
    margin: 0;
}

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

    .header-top {
        min-height: 60px !important;
        height: 60px !important;
        position: relative;
    }

    .header-container {
        width: 100%;
        max-width: none;
        padding-left: 15px;
        padding-right: 15px;
        justify-content: flex-start; /* Adjust for hamburger menu */
        position: relative;
    }

    .logo {
        flex: 1 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        max-width: calc(100% - 100px);
        font-size: 24px;
    }

    .logo img {
        max-height: 56px !important;
        max-width: 100%;
    }

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

    .mobile-nav-buttons {
        display: flex !important;
        min-height: 48px;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .mobile-nav-buttons .btn {
        flex: 1;
        min-width: 0;
        max-width: calc(50% - 5px);
        box-sizing: border-box;
        padding: 8px 12px;
        font-size: 13px;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hamburger-menu {
        display: block;
        order: -1; /* Place to the left */
        margin-left: 0; /* Remove default margin */
    }

    .main-nav {
        min-height: 48px !important;
        height: auto !important;
        display: none;
        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%);
        transition: transform 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        z-index: 1001;
        border-top: none;
    }

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

    .nav-container {
        width: 100%;
        max-width: none;
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .nav-list a {
        font-size: 18px;
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-list li:last-child a {
        border-bottom: none;
    }

    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-col {
        align-items: flex-start;
    }

    .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;
  }
}
/* 内容保护（系统追加，请勿删除） */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}
