:root {
  --primary: #C61F1F;
  --secondary: #E53030;
  --btn-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  --card-bg: #2A1212;
  --bg-dark: #140C0C;
  --text-main: #FFF1E8;
  --border-color: #6A1E1E;
  --gold: #F3C54D;
  --deep-red: #7E0D0D;
  --header-offset: 122px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  padding-top: var(--header-offset);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
  border-bottom: 2px solid var(--gold);
}

.header-top {
  background-color: #1a0a0a;
  width: 100%;
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 30px;
  min-height: 68px;
}

.logo {
  font-size: 30px;
  font-weight: 900;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(243, 197, 77, 0.3);
  display: inline-block;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #FFD700;
}

.desktop-nav-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn {
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  min-height: 42px;
}

.btn-download {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #1a0a0a;
  box-shadow: 0 4px 15px rgba(255, 176, 74, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-download:hover {
  background: linear-gradient(180deg, #FFC46B 0%, #E07B20 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 176, 74, 0.4);
}

.btn-register {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #1a0a0a;
  box-shadow: 0 4px 15px rgba(255, 176, 74, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-register:hover {
  background: linear-gradient(180deg, #FFC46B 0%, #E07B20 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 176, 74, 0.4);
}

.main-nav {
  background-color: #1f0d0d;
  width: 100%;
  display: flex;
  position: static;
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 6px 20px;
  width: 100%;
  gap: 2px;
  min-height: 52px;
}

.nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-block;
}

.nav-link:hover {
  color: var(--gold);
  background: rgba(243, 197, 77, 0.1);
}

.nav-link.active {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
}

.mobile-nav-buttons {
  display: none;
}

.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.hamburger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-main);
  margin: 5px auto;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.site-footer {
  background-color: #1a0a0a;
  border-top: 3px solid var(--gold);
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 30px 30px;
  display: grid;
  grid-template-columns: 2.5fr 1.5fr 1.5fr 1.5fr;
  gap: 40px;
}

.footer-brand .footer-logo {
  font-size: 32px;
  font-weight: 900;
  color: var(--gold);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.footer-desc {
  margin-top: 15px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.footer-age {
  margin-top: 20px;
  display: inline-block;
  background: var(--deep-red);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 16px;
  border: 1px solid var(--gold);
}

.footer-heading {
  color: var(--gold);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-nav {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 12px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 25px 30px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-disclaimer {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

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

  body {
    padding-top: var(--header-offset);
  }

  .header-container {
    width: 100%;
    max-width: none;
    padding: 10px 15px;
    min-height: 60px;
    position: relative;
  }

  .logo {
    font-size: 24px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: block;
  }

  .desktop-nav-buttons {
    display: none;
  }

  .hamburger-menu {
    display: block;
    margin-left: auto;
  }

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

  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    max-width: 85%;
    background: #1f0d0d;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.7);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 1000;
  }

  .nav-container {
    width: 100%;
    max-width: none;
    flex-direction: column;
    padding: 70px 15px 30px;
    align-items: stretch;
    justify-content: flex-start;
  }

  .main-nav.active {
    display: block;
    transform: translateX(0);
  }

  .nav-link {
    display: block;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 16px;
  }

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    background: #1a0a0a;
    padding: 8px 15px;
    border-top: 1px solid var(--border-color);
    min-height: 48px;
    z-index: 999;
  }

  .mobile-nav-buttons .btn {
    flex: 1;
    max-width: 200px;
    padding: 8px 16px;
    font-size: 14px;
    min-height: 36px;
  }

  .mobile-menu-overlay {
    display: block;
    pointer-events: none;
  }

  .mobile-menu-overlay.active {
    pointer-events: auto;
    opacity: 1;
  }

  .site-footer {
    margin-top: 40px;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px 20px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    padding: 20px;
  }

  body.no-scroll {
    overflow: hidden;
  }

  .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: 480px) {
  .header-container {
    padding: 8px 12px;
    min-height: 56px;
  }

  .logo {
    font-size: 20px;
  }

  .nav-container {
    padding-top: 60px;
  }

  .mobile-nav-buttons .btn {
    font-size: 13px;
    padding: 7px 12px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 30px 15px 15px;
  }

  .footer-brand {
    grid-column: 1;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
