:root {
  --header-offset: 166px;
  --primary: #E53935;
  --primary-light: #FF5A4F;
  --bg-light: #F5F7FA;
  --text-main: #333333;
  --border-color: #E0E0E0;
  --card-bg: #FFFFFF;
}
body {
  margin: 0;
  padding-top: var(--header-offset);
  background-color: var(--bg-light);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  overflow-x: hidden;
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}
.header-top {
  background-color: #2a0a0e;
  background-image: linear-gradient(180deg, var(--primary) 0%, #b71c1c 100%);
  width: 100%;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 30px;
  min-height: 52px;
}
.logo {
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  text-decoration: none;
  display: block;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}
.logo:hover {
  text-decoration: none;
  opacity: 0.9;
  color: #ffd54f;
}
.hamburger-menu {
  display: none;
}
.mobile-menu-overlay {
  display: none;
}
.desktop-nav-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.btn-register {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
}
.btn-login {
  background: linear-gradient(180deg, #ffd54f 0%, #f9a825 100%);
  color: #2a0a0e;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  color: #ffffff;
}
.btn-login:hover {
  color: #2a0a0e;
}
.main-nav {
  background-color: #ffffff;
  border-bottom: 3px solid var(--primary);
  display: flex;
  flex-direction: row;
  position: static;
  transition: transform 0.3s ease;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 6px 20px;
  gap: 2px;
  flex-wrap: wrap;
  width: 100%;
}
.nav-link {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
  text-align: center;
  transition: color 0.2s, background-color 0.2s;
  border-radius: 6px;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--primary);
  text-decoration: none;
  background-color: rgba(229, 57, 53, 0.08);
}
.mobile-nav-buttons {
  display: none;
  background-color: #2a0a0e;
  border-bottom: 3px solid var(--primary);
}
.site-footer {
  background-color: #1a1a2e;
  color: #cccccc;
  margin-top: 40px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 30px 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 30px;
}
.footer-logo {
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 15px;
  letter-spacing: 1px;
}
.footer-logo:hover {
  color: #ffd54f;
  text-decoration: none;
}
.footer-column p {
  line-height: 1.6;
  font-size: 14px;
}
.footer-column h4 {
  color: #ffffff;
  font-size: 16px;
  margin: 10px 0 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: #cccccc;
  text-decoration: none;
  font-size: 14px;
  padding: 3px 0;
}
.footer-nav a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}
.footer-contact p {
  font-size: 14px;
}
.footer-contact a {
  color: #cccccc;
  text-decoration: none;
  font-size: 14px;
  display: inline-block;
  margin-bottom: 12px;
}
.footer-contact a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}
.footer-bottom {
  border-top: 1px solid #333344;
  text-align: center;
  padding: 18px 10px;
  font-size: 14px;
  color: #999;
}
@media (max-width: 768px) {
  :root {
    --header-offset: 146px;
  }
  .header-container {
    width: 100%;
    max-width: none;
    padding-left: 15px;
    padding-right: 15px;
    min-height: 60px;
  }
  .nav-container {
    width: 100%;
    max-width: none;
    padding-left: 10px;
    padding-right: 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 5px 10px;
  }
  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 5px;
    z-index: 1002;
    position: absolute;
    top: 14px;
    right: 15px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.2);
  }
  .hamburger-menu span {
    display: block;
    width: 22px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    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);
  }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 340px;
    height: 100%;
    background-color: #ffffff;
    display: none;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease, display 0s 0.3s;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    font-size: 15px;
    overflow-y: auto;
    border-radius: 0 0 0 12px;
    border: none;
  }
  .main-nav.active {
    display: flex;
  }
  .main-nav {
    transform: translateX(100%);
  }
  .main-nav.active {
    transform: translateX(0);
  }
  .nav-link {
    font-size: 15px;
    padding: 12px 20px;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
  }
  .nav-link:hover {
    background-color: rgba(229, 57, 53, 0.1);
    padding-left: 24px;
  }
  .desktop-nav-buttons {
    display: none;
  }
  .mobile-nav-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    min-height: 48px;
  }
  .mobile-nav-buttons .btn {
    flex: 1;
    max-width: 200px;
    text-align: center;
    font-size: 13px;
    padding: 10px 16px;
  }
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    display: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
  }
  .mobile-menu-overlay.active {
    opacity: 1;
    display: block;
  }
  body.menu-open {
    overflow: hidden;
  }
  .footer-container {
    grid-template-columns: 1fr;
    padding: 30px 20px 15px;
    gap: 15px;
    width: 100%;
  }
  .footer-column h4 {
    margin: 10px 0 10px;
  }
  .footer-bottom {
    padding: 14px 10px;
  }
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }
  .header-container {
    justify-content: flex-start;
  }
  .logo {
    margin: 0 auto;
  }
  .desktop-nav-buttons {
    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;
}
