:root {
  --header-offset: 122px;
  --primary: #C61F1F;
  --primary-dark: #7E0D0D;
  --secondary: #E53030;
  --accent-gold: #F3C54D;
  --bg-dark: #140C0C;
  --bg-card: #2A1212;
  --text-main: #FFF1E8;
  --border-color: #6A1E1E;
  --header-bg: #140C0C;
  --nav-bg: #7E0D0D;
  --yellow-btn: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  padding-top: var(--header-offset);
  margin: 0;
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.header-top {
  background-color: #1a0a0a;
  border-bottom: 2px solid var(--border-color);
  width: 100%;
  min-height: 68px;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 30px;
  padding-right: 30px;
  min-height: 68px;
}
.logo {
  display: inline-block;
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 1px;
  line-height: 1.2;
  text-transform: uppercase;
}
.logo:hover {
  color: var(--accent-gold);
}
.desktop-nav-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}
.btn-register {
  background: var(--yellow-btn);
  color: #4a2a00;
  border: 1px solid #ffd70080;
}
.btn-register:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(200, 90, 0, 0.3);
}
.btn-login {
  background: linear-gradient(180deg, #e04a4a, #a91f1f);
  color: #ffffff;
  border: 1px solid #ff7a7a;
}
.btn-login:hover {
  filter: brightness(1.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(150, 30, 30, 0.3);
}
.main-nav {
  background-color: #6d0b0b;
  width: 100%;
  display: flex;
  flex-direction: row;
  position: static;
  border-bottom: 2px solid var(--border-color);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 8px 30px;
  gap: 4px;
  flex-wrap: wrap;
}
.nav-link {
  color: #fff1e8;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 4px;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
}
.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.14);
  color: var(--accent-gold);
}
.nav-link.active {
  color: var(--accent-gold);
  background-color: rgba(255, 255, 255, 0.1);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background-color: var(--accent-gold);
  border-radius: 2px;
}
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  gap: 5px;
  z-index: 1001;
}
.hamburger-menu .bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.4s ease;
}
.hamburger-menu.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-menu.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-menu-overlay {
  display: none;
}
.mobile-nav-buttons {
  display: none;
}
.marquee-section {
  display: none;
}
.site-footer {
  background-color: #170c0c;
  color: var(--text-main);
  border-top: 4px solid var(--primary);
  width: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 50px 30px 30px;
}
.footer-column {
  display: flex;
  flex-direction: column;
}
.footer-logo {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 16px;
}
.footer-logo:hover {
  color: var(--accent-gold);
}
.footer-description {
  font-size: 13px;
  line-height: 1.7;
  color: #bfc6cc;
  margin-bottom: 12px;
}
.footer-contact {
  font-size: 14px;
  color: #ffffff;
  font-weight: 600;
}
.footer-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 18px;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 8px;
  display: inline-block;
}
.footer-nav {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #c0b8b0;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  line-height: 1.5;
}
.footer-nav a:hover {
  color: var(--accent-gold);
  padding-left: 4px;
}
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 18px 30px;
  text-align: center;
  background-color: #0e0808;
}
.copyright-text {
  font-size: 13px;
  color: #a8a0a0;
}
.copyright-text span {
  color: #e63946;
  font-weight: 600;
}
@media (max-width: 768px) {
  :root {
    --header-offset: 110px;
  }
  .header-container {
    width: 100%;
    max-width: none;
    padding-left: 15px;
    padding-right: 15px;
    min-height: 60px;
  }
  .header-top {
    min-height: 60px;
  }
  .logo {
    font-size: 20px;
    margin: 0 auto;
  }
  .desktop-nav-buttons {
    display: none;
  }
  .hamburger-menu {
    display: flex;
    order: -1;
    width: 40px;
    height: 44px;
    flex-shrink: 0;
  }
  .header-top .header-container {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
  }
  .header-top .header-container .logo {
    grid-column: 2;
    text-align: center;
    justify-self: center;
    max-width: 180px;
    line-height: 1.3;
    font-size: 18px;
  }
  .mobile-nav-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: #140c0c;
    padding: 8px 15px;
    gap: 10px;
    border-bottom: 2px solid var(--border-color);
    min-height: 48px;
    width: 100%;
    z-index: 999;
  }
  .mobile-nav-buttons .btn {
    flex: 1;
    max-width: 180px;
    padding: 8px 12px;
    font-size: 13px;
  }
  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    overflow-y: auto;
    background-color: #1c1010;
    flex-direction: column;
    padding: 80px 0 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
    transition: transform 0.35s ease-in-out;
    z-index: 1001;
    border-right: 2px solid var(--border-color);
  }
  .main-nav.active {
    display: flex;
    transform: translateX(0);
  }
  .nav-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    gap: 2px;
    align-items: stretch;
  }
  .nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(200, 200, 200, 0.15);
    border-radius: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: block;
  }
  .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-gold);
  }
  .nav-link.active {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--accent-gold);
  }
  .nav-link.active::after {
    left: 20px;
    right: auto;
    width: 30px;
  }
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
  }
  .mobile-menu-overlay.active {
    display: block;
  }
  body.no-scroll {
    overflow: hidden;
  }
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    padding: 30px 20px 20px;
    gap: 24px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    margin-bottom: 10px;
  }
  .footer-bottom {
    padding: 16px 20px;
  }
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }
  .nav-container {
    overflow-y: auto;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
