html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Arial', sans-serif; line-height: 1.6; color: #FFF5E1; background-color: #B71C1C; padding-top: var(--header-offset); }
:root { --header-offset: 122px; --primary-color: #C91F17; --secondary-color: #E53935; --text-main: #FFF5E1; --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); --card-bg: #D32F2F; --background-color: #B71C1C; --border-color: #F2B544; --glow-color: #FFCC66; --gold-color: #F4D34D; --deep-red: #7A0E0E; }

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    background-color: var(--deep-red); /* Overall header background, sections will override */
}

.header-top {
    box-sizing: border-box;
    min-height: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--primary-color);
    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: 0 20px;
}

.logo {
    color: var(--text-main);
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    height: 100%;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 25px;
    background: var(--button-gradient);
    color: #333;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    min-width: 90px;
    text-align: center;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4), 0 0 15px var(--glow-color);
}

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

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

.hamburger-icon::before, .hamburger-icon::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    position: absolute;
    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);
}

.mobile-nav-buttons {
    box-sizing: border-box;
    display: none; /* Hidden on desktop by default */
    min-height: 48px;
    width: 100%;
    background-color: var(--secondary-color);
    padding: 8px 20px;
    gap: 10px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

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

.main-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    padding: 5px 0;
    white-space: nowrap;
    transition: color 0.3s ease;
    font-size: 15px;
}

.main-nav a:hover {
    color: var(--gold-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;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

.site-footer {
    background-color: var(--background-color);
    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(--gold-color);
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--gold-color);
    padding-bottom: 5px;
}

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

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

.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 {
    color: var(--text-main);
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 15px;
}

.footer-description {
    margin-top: 0;
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

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

.footer-slot-anchor-inner {
    min-height: 10px; /* Ensure visibility for injection */
}

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

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

    .header-container {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .logo {
        flex: 1 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        font-size: 24px;
    }

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

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

    .hamburger-menu {
        display: block;
        position: relative; /* Ensure it stays on left */
        order: -1; /* Place it first */
    }

    .mobile-nav-buttons {
        display: flex !important;
        min-height: 48px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 8px 15px;
        overflow: hidden;
        gap: 10px;
        flex-wrap: nowrap;
        justify-content: center; /* Center buttons if only one, or for overall alignment */
    }

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

    .main-nav {
        min-height: 48px !important;
        height: 100vh; /* Full viewport height */
        width: 280px; /* Fixed width for slide-out menu */
        position: fixed;
        top: 0;
        left: 0;
        transform: translateX(-100%); /* Hidden by default */
        transition: transform 0.3s ease-out;
        background-color: var(--deep-red); /* Darker background for mobile menu */
        z-index: 1001;
        display: none; /* Hide by default, JS toggles 'block' */
        flex-direction: column;
        align-items: flex-start;
        padding-top: 60px; /* Space for fixed header content */
    }

    .main-nav.active {
        transform: translateX(0); /* Slide in */
        display: flex; /* Make it visible */
    }

    .main-nav .nav-container {
        width: 100%;
        max-width: none;
        padding: 20px 15px;
        height: auto;
    }

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

    .main-nav a {
        font-size: 16px;
        padding: 10px 0;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

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

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

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

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

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

    .footer-col ul {
        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;
  }
}
/* 内容保护（系统追加，请勿删除） */
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;
}
