:root {
  --header-offset: 122px;
  --color-primary: #C91F17;
  --color-secondary: #E53935;
  --color-bg: #B71C1C;
  --color-card-bg: #D32F2F;
  --color-text-main: #FFF5E1;
  --color-border: #F2B544;
  --color-glow: #FFCC66;
  --color-gold: #F4D34D;
  --color-deep-red: #7A0E0E;
  --btn-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
}
body {
  padding-top: var(--header-offset);
  margin: 0;
  overflow-x: hidden;
}
*, *::before, *::after {
  box-sizing: border-box;
}

/* ===== SITE HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
  border-bottom: 2px solid var(--color-border);
}
.header-top {
  height: 68px;
  min-height: 68px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-deep-red);
  width: 100%;
}
.header-container {
  width: 100%;
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: inline-block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--color-gold);
  text-shadow: 0 0 12px rgba(255, 204, 102, 0.55), 0 2px 4px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}
.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 {
  display: none;
  min-height: 48px;
  box-sizing: border-box;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  line-height: 1.2;
}
.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}
.btn-primary {
  background: var(--btn-gradient);
  color: #4A0B0B;
  border: 1px solid #FFE9A8;
  box-shadow: 0 0 14px rgba(255, 204, 102, 0.6), 0 3px 8px rgba(0, 0, 0, 0.4);
}
.btn-outline {
  background: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-border);
  box-shadow: 0 0 10px rgba(242, 181, 68, 0.25);
}
.btn-outline:hover {
  background: rgba(242, 181, 68, 0.12);
  color: #FFFFFF;
}

/* Main nav */
.main-nav {
  height: 52px;
  min-height: 52px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-card-bg);
  width: 100%;
}
.nav-container {
  width: 100%;
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.nav-link {
  display: inline-block;
  color: var(--color-text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  background-color: rgba(244, 211, 77, 0.18);
  color: var(--color-gold);
}
.hamburger-menu {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
}
.hamburger-line {
  display: block;
  width: 24px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--color-gold);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
}
.nav-overlay.active {
  display: block;
}

/* ===== SITE FOOTER ===== */
.site-footer {
  background-color: var(--color-bg);
  color: var(--color-text-main);
  border-top: 3px solid var(--color-border);
  padding-top: 10px;
}
.footer-slot-anchor {
  width: 100%;
}
.footer-slot-anchor-inner {
  width: 100%;
}
.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 24px 24px;
}
.footer-top-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.footer-col {
  min-width: 0;
}
.footer-about .footer-logo {
  display: inline-block;
  font-size: 24px;
  font-weight: 800;
  color: var(--color-gold);
  text-decoration: none;
  margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(255, 204, 102, 0.5);
}
.footer-description {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-main);
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin: 0;
}
.footer-mid {
  border-top: 1px solid rgba(242, 181, 68, 0.3);
  border-bottom: 1px solid rgba(242, 181, 68, 0.3);
  padding: 20px 0;
}
.footer-mid-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-mid-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer-nav li {
  margin: 0;
}
.footer-nav a {
  color: var(--color-text-main);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}
.footer-nav a:hover {
  color: var(--color-gold);
  text-decoration: underline;
}
.footer-nav-support {
  margin-top: 10px;
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px 22px;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-main);
}
.footer-bottom p {
  margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  :root {
    --header-offset: 110px;
  }
  .header-top {
    height: 60px !important;
    min-height: 60px !important;
  }
  .header-container {
    width: 100%;
    max-width: none;
    padding-left: 15px;
    padding-right: 15px;
    position: relative;
  }
  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 22px;
  }
  .logo img {
    display: block !important;
    max-width: 100%;
    height: auto;
    max-height: 56px !important;
  }
  .desktop-nav-buttons {
    display: none !important;
  }
  .mobile-nav-buttons {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    padding: 6px 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    background-color: var(--color-deep-red);
    border-bottom: 8px solid var(--color-card-bg);
  }
  .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;
    position: fixed;
    top: 0;
    left: 0;
    width: 82%;
    max-width: 320px;
    height: 100vh;
    min-height: 100vh;
    background-color: var(--color-deep-red);
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    border-right: 2px solid var(--color-border);
    box-shadow: 6px 0 24px rgba(0, 0, 0, 0.5);
  }
  .main-nav.active {
    display: block;
    transform: translateX(0);
  }
  .nav-container {
    width: 100%;
    max-width: none;
    height: auto;
    padding: 70px 20px 30px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .hamburger-menu {
    display: block;
    position: fixed;
    top: 10px;
    left: 12px;
    z-index: 1002;
  }
  .nav-link {
    font-size: 16px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(242, 181, 68, 0.18);
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-mid-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-nav {
    flex-direction: column;
    gap: 9px;
  }
  .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 (min-width: 769px) {
  .hamburger-menu {
    display: none;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
