:root { --header-offset: 122px; }
body { font-family: 'Arial', sans-serif; margin: 0; padding-top: var(--header-offset); color: #FFF5E1; background-color: #B71C1C; 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); background-color: transparent; }

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

.logo { color: #FFF5E1; text-decoration: none; font-size: 28px; font-weight: bold; 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; }
.mobile-nav-buttons { box-sizing: border-box; display: none; min-height: 48px; background-color: #C91F17; }

.main-nav { background-color: #C91F17; height: 52px; display: flex; align-items: center; overflow: hidden; box-sizing: border-box; }
.nav-container { max-width: 1200px; width: 100%; margin: 0 auto; display: flex; justify-content: center; align-items: center; height: 100%; padding: 0 20px; }

.nav-link { color: #FFF5E1; text-decoration: none; padding: 10px 15px; font-size: 16px; transition: background-color 0.3s ease; white-space: nowrap; }
.nav-link:hover { background-color: rgba(255,255,255,0.1); border-radius: 4px; }

.btn { background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); color: #7A0E0E; padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: bold; transition: opacity 0.3s ease; white-space: nowrap; text-align: center; }
.btn:hover { opacity: 0.9; }

.hamburger-menu { display: none; }
.overlay { display: none; }

/* Footer Styles */
.site-footer { background-color: #B71C1C; color: #FFF5E1; padding: 40px 20px 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto 30px; }
.footer-col h3 { color: #F4D34D; font-size: 18px; margin-bottom: 15px; }
.footer-col p { font-size: 14px; line-height: 1.6; word-wrap: break-word; overflow-wrap: break-word; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li a { color: #FFF5E1; text-decoration: none; font-size: 14px; line-height: 2.2; display: block; }
.footer-nav li a:hover { text-decoration: underline; }
.footer-logo { color: #FFF5E1; text-decoration: none; font-size: 24px; font-weight: bold; margin-bottom: 15px; display: block; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 13px; color: rgba(255,255,255,0.7); max-width: 1200px; margin: 0 auto; }
.footer-slot-anchor-inner { min-height: 1px; }

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

  .header-top { height: 60px !important; padding: 0 15px; }
  .header-container { width: 100%; max-width: none; padding: 0; position: relative; }

  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 100%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 100px);
  }
  .logo img {
    max-height: 56px !important;
    max-width: 100%;
    height: auto;
    display: block !important;
  }

  .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: 0 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    background-color: #C91F17;
  }
  .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 {
    height: 48px !important;
    display: none; /* Hidden by default for mobile */
    flex-direction: column;
    position: fixed;
    top: var(--header-offset);
    left: 0;
    width: 70%;
    max-width: 300px;
    height: calc(100vh - var(--header-offset));
    background-color: #7A0E0E;
    transform: translateX(-100%); /* Off-screen */
    transition: transform 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
  }
  .main-nav.active {
    display: flex; /* Show when active */
    transform: translateX(0); /* Slide in */
  }

  .nav-container { flex-direction: column; padding: 20px 15px; align-items: flex-start; width: 100%; max-width: none; }
  .nav-link { width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-link:last-child { border-bottom: none; }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    position: absolute;
    left: 15px;
    z-index: 1002;
  }
  .hamburger-menu span { display: block; height: 3px; background-color: #FFF5E1; 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); }

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

  .footer-grid { grid-template-columns: 1fr; }
  .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;
  }
}
