:root {
    --primary-color: #C61F1F;
    --secondary-color: #E53030;
    --button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
    --card-bg: #2A1212;
    --site-bg: #140C0C;
    --text-main: #FFF1E8;
    --border-color: #6A1E1E;
    --gold-color: #F3C54D;
    --deep-red-color: #7E0D0D;
    --header-offset: 122px;
}

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

/* Header Styles */
.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.4);
}

.header-top {
    box-sizing: border-box;
    min-height: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--deep-red-color);
    width: 100%;
    color: var(--text-main);
}

.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: 0 20px;
}

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

.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(--card-bg); /* Use a darker background for contrast */
    width: 100%;
    padding: 0 20px;
    justify-content: center;
    align-items: center;
}

.btn {
    background: var(--button-gradient);
    color: var(--text-main);
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: inline-block;
    text-align: center;
    line-height: 1.2;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.main-nav {
    box-sizing: border-box;
    min-height: 52px;
    height: 52px;
    display: flex; /* Desktop default: flex */
    flex-direction: row; /* Desktop default: row */
    align-items: center;
    overflow: hidden;
    background-color: var(--card-bg);
    width: 100%;
    position: static; /* Desktop default: static */
}

.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 {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.main-nav li a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    padding: 8px 0;
    display: block;
    white-space: nowrap;
    transition: color 0.3s ease;
}

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

.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1002; /* Above logo on mobile */
}

.hamburger-icon {
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--gold-color);
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    transition: background-color 0.3s ease;
}

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

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

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

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

/* Footer Styles */
.site-footer {
    background-color: var(--card-bg);
    color: var(--text-main);
    padding: 40px 0 20px;
    font-size: 14px;
    line-height: 1.8;
}

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

.footer-col h3 {
    color: var(--gold-color);
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: bold;
}

.footer-col p {
    margin-bottom: 10px;
    color: var(--text-main);
}

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

.footer-col a:hover {
    color: var(--gold-color);
}

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

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

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

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    color: var(--text-main);
    font-size: 13px;
}

.footer-bottom a {
    text-decoration: none; /* Ensure no links in footer-bottom */
    color: inherit; /* Inherit color, but no links should be here */
}

/* Ensure slot anchors are not hidden */
.footer-slot-anchor-inner {
    min-height: 1px; /* Ensure it occupies space for visibility */
}

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

    body {
        overflow-x: hidden;
    }

    .page-content img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-content {
        overflow-x: hidden;
        max-width: 100%;
    }

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

    .header-container {
        width: 100%;
        max-width: none;
        padding: 0;
        position: relative; /* For absolute positioning of logo */
    }

    .hamburger-menu {
        display: block;
        order: -1; /* Place hamburger on the left */
        margin-right: auto; /* Push logo to center */
        position: relative;
        z-index: 2;
    }

    .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% - 80px); /* Adjust for hamburger width */
    }

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

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

    .mobile-nav-buttons {
        display: flex !important;
        min-height: 48px;
        padding: 0 15px;
        gap: 10px;
        flex-wrap: nowrap;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    }

    .mobile-nav-buttons .btn {
        flex: 1; /* Distribute space evenly */
        min-width: 0;
        max-width: calc(50% - 5px); /* Account for gap */
        padding: 8px 12px;
        font-size: 13px;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .main-nav {
        min-height: 48px !important;
        height: auto; /* Allow content to dictate height */
        flex-direction: column;
        position: fixed;
        top: var(--header-offset);
        left: 0;
        width: 70%; /* Adjust as needed */
        max-width: 300px;
        height: calc(100vh - var(--header-offset));
        transform: translateX(-100%); /* Hidden by default */
        transition: transform 0.3s ease;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        display: none; /* Initially hidden, JS will toggle to flex/block */
    }

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

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

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

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav li a {
        padding: 12px 0;
        font-size: 15px;
        white-space: normal;
    }

    .overlay.active {
        display: block;
    }

    .footer-top-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .footer-col {
        margin-bottom: 20px;
    }
    .footer-col:last-of-type {
        margin-bottom: 0;
    }

    .footer-bottom {
        padding: 0 15px;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
