html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, sans-serif; line-height: 1.6; color: #FFF5E1; background-color: #B71C1C; }

:root { --header-offset: 122px; }
body { padding-top: var(--header-offset); overflow-x: hidden; }

.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; height: 68px; background-color: #C91F17; display: flex; align-items: center; overflow: hidden; width: 100%; padding: 0 20px; }
.header-container { box-sizing: border-box; width: 100%; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; height: 100%; }

.logo { font-size: 24px; font-weight: bold; color: #FFF5E1; text-decoration: none; display: block; }

.desktop-nav-buttons { display: flex; gap: 12px; align-items: center; }
.desktop-nav-buttons .btn, .mobile-nav-buttons .btn {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    color: #7A0E0E;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    white-space: nowrap;
    cursor: pointer;
    border: none;
}
.desktop-nav-buttons .btn:hover, .mobile-nav-buttons .btn:hover { opacity: 0.9; }

.mobile-nav-buttons { box-sizing: border-box; display: none; background-color: #B71C1C; min-height: 48px; align-items: center; justify-content: center; padding: 0 15px; width: 100%; overflow: hidden; }

.main-nav { box-sizing: border-box; height: 52px; background-color: #E53935; display: flex; align-items: center; overflow: hidden; width: 100%; }
.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: #FFF5E1; text-decoration: none; font-weight: 500; transition: color 0.3s ease; display: block; padding: 5px 0; }
.nav-list a:hover { color: #FFCC66; }

.hamburger-menu { display: none; width: 30px; height: 24px; position: relative; cursor: pointer; background: none; border: none; padding: 0; z-index: 1002; margin-right: 15px; }
.hamburger-menu span { display: block; height: 3px; width: 100%; background-color: #FFF5E1; border-radius: 2px; position: absolute; left: 0; transition: all 0.3s ease; }
.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 10px; }
.hamburger-menu span:nth-child(3) { top: 20px; }

.hamburger-menu.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

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

/* Footer Styles */
.site-footer { background-color: #7A0E0E; color: #FFF5E1; padding-top: 40px; font-size: 14px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; padding: 0 20px 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-col h3 { color: #F4D34D; font-size: 16px; margin-top: 0; margin-bottom: 15px; }
.footer-col p { line-height: 1.6; margin-bottom: 15px; }
.footer-logo { font-size: 20px; font-weight: bold; color: #F4D34D; text-decoration: none; display: block; margin-bottom: 15px; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li a { color: #FFF5E1; text-decoration: none; display: block; padding: 5px 0; transition: color 0.3s ease; }
.footer-nav li a:hover { color: #FFCC66; }
.footer-description { word-wrap: break-word; overflow-wrap: break-word; }

.footer-mid-grid { max-width: 1200px; margin: 0 auto; padding: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 20px; }
.footer-slot-anchor-inner { min-height: 1px; }

.footer-bottom { background-color: #C91F17; text-align: center; padding: 15px 20px; font-size: 13px; margin-top: 20px; }
.footer-bottom p { margin: 0; }

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

    .header-top { height: 60px; padding: 0 15px; }
    .header-container { max-width: none; padding: 0; justify-content: flex-start; position: relative; }

    .hamburger-menu { display: block; }

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

    .desktop-nav-buttons { display: none !important; }
    .mobile-nav-buttons {
        display: flex !important;
        min-height: 48px;
        align-items: 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;
    }

    .main-nav {
        display: none; /* Hidden by default */
        height: 100vh; /* Full viewport height */
        width: 250px; /* Fixed width for the sidebar menu */
        position: fixed; /* Fixed position for sidebar */
        top: 0; left: 0;
        background-color: #7A0E0E; /* Deep Red for menu background */
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 60px; /* Offset for header-top */
        transform: translateX(-100%); /* Slide out to the left */
        transition: transform 0.3s ease; /* Smooth transition */
        z-index: 1001; /* Above overlay */
    }
    .main-nav.active {
        display: flex; /* Show the menu when active */
        transform: translateX(0); /* Slide into view */
    }
    .nav-container { max-width: none; padding: 0; width: 100%; height: auto; }
    .nav-list { flex-direction: column; gap: 15px; width: 100%; text-align: left; padding: 20px; }
    .nav-list a { color: #FFF5E1; padding: 10px 0; font-size: 16px; }

    .footer-top-grid { grid-template-columns: 1fr; padding: 0 15px 30px; }
    .footer-col { margin-bottom: 20px; }
    .footer-col:last-child { margin-bottom: 0; }

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