:root {
  --header-offset: 122px;
  --primary: #C91F17;
  --secondary: #E53935;
  --btn-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  --card-bg: #D32F2F;
  --bg-main: #B71C1C;
  --text-main: #FFF5E1;
  --border-color: #F2B544;
  --glow: #FFCC66;
  --gold: #F4D34D;
  --deep-red: #7A0E0E;
}
body {
  padding-top: var(--header-offset);
  margin: 0;
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  background-color: var(--deep-red);
  box-sizing: border-box;
  overflow-x: hidden;
}
.header-top {
  box-sizing: border-box;
  height: 68px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--deep-red);
  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-left: 24px;
  padding-right: 24px;
  position: relative;
}
.logo {
  display: inline-block;
  font-size: 26px;
  font-weight: 800;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 1px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  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;
}
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.25s ease;
  text-align: center;
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
}
.btn-login {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-login:hover {
  background: rgba(244, 211, 77, 0.15);
}
.btn-register {
  background: var(--btn-gradient);
  color: var(--deep-red);
  border-color: var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.btn-register:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  box-sizing: border-box;
}
.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--gold);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger-menu.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
.mobile-nav-buttons {
  box-sizing: border-box;
  display: none;
  min-height: 48px;
}
.main-nav {
  box-sizing: border-box;
  height: 52px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--bg-main);
  width: 100%;
  border-top: 1px solid rgba(242, 181, 68, 0.4);
}
.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;
  width: 100%;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}
.nav-link {
  display: block;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--gold);
  background: rgba(244, 211, 77, 0.12);
}
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.menu-overlay.active {
  display: block;
  opacity: 1;
}
/* ==== Footer ==== */
.site-footer {
  background-color: var(--bg-main);
  color: var(--text-main);
  box-sizing: border-box;
  border-top: 3px solid var(--border-color);
  padding-top: 40px;
}
.footer-top-row {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.footer-top-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 30px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.footer-col {
  min-width: 0;
  box-sizing: border-box;
}
.footer-about {
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.footer-logo {
  display: inline-block;
  font-size: 24px;
  font-weight: 800;
  color: var(--gold);
  text-decoration: none;
  margin-bottom: 12px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.footer-description {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-main);
  margin: 0 0 12px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.footer-col-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
  display: inline-block;
}
.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav li {
  margin-bottom: 8px;
}
.footer-nav a {
  display: inline-block;
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  transition: color 0.2s ease, padding-left 0.2s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.footer-nav a:hover {
  color: var(--gold);
  padding-left: 4px;
}
.footer-slot-anchor-inner {
  display: block;
  min-height: 1px;
}
.footer-mid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 20px;
  box-sizing: border-box;
}
.footer-mid-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.footer-bottom-slot {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.footer-bottom {
  background-color: var(--deep-red);
  text-align: center;
  padding: 18px 20px;
  border-top: 1px solid var(--border-color);
  margin-top: 10px;
}
.footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.5;
}
@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 {
    height: 60px;
    min-height: 60px;
  }
  .header-container {
    width: 100%;
    max-width: none;
    padding-left: 12px;
    padding-right: 12px;
  }
  .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;
  }
  .hamburger-menu {
    display: flex;
    order: -1;
  }
  .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: 6px 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    background-color: var(--deep-red);
  }
  .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: 108px;
    left: 0;
    width: 80%;
    max-width: 320px;
    height: auto;
    max-height: calc(100vh - 108px);
    overflow-y: auto;
    background-color: var(--bg-main);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    border-top: none;
    border-right: 2px solid var(--border-color);
  }
  .main-nav.active {
    display: block;
    transform: translateX(0);
  }
  .nav-container {
    width: 100%;
    max-width: none;
    padding: 16px;
    height: auto;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }
  .nav-link {
    font-size: 15px;
    padding: 12px 16px;
    border-radius: 8px;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px 16px 24px;
  }
  .footer-mid-row {
    grid-template-columns: 1fr 1fr;
  }
  .footer-top-row,
  .footer-mid,
  .footer-bottom-slot {
    padding-left: 16px;
    padding-right: 16px;
  }
  .footer-bottom {
    padding: 16px 12px;
  }
}
.no-scroll {
  overflow: 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;
}
