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

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

body.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: var(--text-main);
}

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

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header-top {
    box-sizing: border-box;
    min-height: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--card-bg);
    width: 100%;
    padding: 0 20px;
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.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; /* Hidden by default on desktop */
    min-height: 48px;
    background-color: var(--body-bg);
    width: 100%;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 25px;
    background: var(--button-gradient);
    color: #000;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}

.btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 10px var(--glow-color);
}

.main-nav {
    box-sizing: border-box;
    min-height: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--body-bg);
    width: 100%;
}

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

.main-nav ul {
    display: flex;
    gap: 25px;
}

.main-nav ul li a {
    font-size: 15px;
    font-weight: bold;
    color: var(--text-main);
    padding: 5px 0;
    transition: color 0.3s ease;
    position: relative;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
}

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

.main-nav ul li a:hover::after {
    width: 100%;
}

.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

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

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

.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: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

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

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

.footer-col h3 {
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-col .footer-logo {
    display: block;
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-col .footer-description {
    line-height: 1.8;
    color: rgba(255, 246, 214, 0.8);
}

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

.footer-nav a {
    color: var(--text-main);
    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);
    color: rgba(255, 246, 214, 0.7);
}

.footer-bottom p {
    margin: 0;
}

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

/* --- Responsive Styles (Mobile First Reverse) --- */
@media (max-width: 768px) {
    :root {
        --header-offset: 110px; /* 60px (header-top) + 48px (mobile-nav-buttons) */
    }

    /* Header Top */
    .header-top {
        min-height: 60px !important;
        height: 60px !important;
        padding: 0 15px;
    }

    .header-container {
        max-width: none; /* No max-width for mobile container */
        padding: 0;
        justify-content: space-between;
        position: relative;
    }

    /* Hamburger Menu */
    .hamburger-menu {
        display: flex;
        margin-right: auto;
    }

    /* Logo Centering (Method 2: Absolute positioning for robustness) */
    .logo {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        max-width: calc(100% - 70px); /* Account for hamburger width + padding */
        text-align: center;
        font-size: 20px;
    }
    .logo img {
        max-height: 56px !important;
    }

    /* Desktop Buttons (Hide) */
    .desktop-nav-buttons {
        display: none !important;
    }

    /* Mobile Buttons (Show) */
    .mobile-nav-buttons {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 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;
    }

    /* Main Nav (Mobile Slide-out Menu) */
    .main-nav {
        display: none; /* Hidden by default */
        position: fixed;
        top: var(--header-offset);
        left: 0;
        width: 280px;
        height: calc(100% - var(--header-offset));
        background-color: var(--card-bg);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        padding: 20px 0;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
        z-index: 1001;
        overflow-y: auto;
        min-height: auto !important;
        height: auto !important;
    }

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

    .main-nav .nav-container {
        width: 100%;
        max-width: none;
        padding: 0;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        height: auto;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    .main-nav ul li {
        margin-bottom: 10px;
        width: 100%;
    }

    .main-nav ul li a {
        display: block;
        padding: 10px 0;
        font-size: 16px;
        border-bottom: 1px solid rgba(255, 246, 214, 0.1);
    }
    .main-nav ul li:last-child a {
        border-bottom: none;
    }
    .main-nav ul li a::after {
        display: none;
    }

    /* Footer */
    .footer-top-grid {
        grid-template-columns: 1fr;
    }

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

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

    /* Mobile 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;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
