:root {
  --header-offset: 122px;
  --color-primary: #E53935;
  --color-secondary: #FF5A4F;
  --color-bg: #F5F7FA;
  --color-card: #FFFFFF;
  --color-text: #333333;
  --color-border: #E0E0E0;
  --btn-gradient: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
}

body {
  margin: 0;
  padding-top: var(--header-offset);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
}

/* ====== SITE HEADER ====== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  background-color: #ffffff;
}

.header-top {
  background-color: #C62828;
  width: 100%;
}

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

.logo {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
  padding: 8px 0;
  display: inline-block;
}

.logo:hover {
  color: #ffdada;
}

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

.btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  line-height: 1.5;
}

.btn-register {
  background: var(--btn-gradient);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.35);
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(229, 57, 53, 0.45);
  color: #ffffff;
}

.btn-login {
  background: #ffffff;
  color: #C62828;
  border: 2px solid #ffffff;
}

.btn-login:hover {
  background: #ffebeb;
  color: #C62828;
  transform: translateY(-2px);
  border-color: #ffebeb;
}

/* ====== MAIN NAV ====== */
.main-nav {
  background-color: #E53935;
  width: 100%;
  display: flex;
  flex-direction: row;
  position: static;
  z-index: 1000;
}

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

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  background-color: rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

/* ====== MOBILE NAV BUTTONS ====== */
.mobile-nav-buttons {
  display: none;
}

/* ====== HAMBURGER MENU (mobile only) ====== */
.hamburger-menu {
  display: none;
}

.mobile-menu-overlay {
  display: none;
}

/* ====== FOOTER ====== */
.site-footer {
  background-color: #212121;
  color: #BDBDBD;
  padding: 50px 0 0;
  width: 100%;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 0 20px 40px;
}

.footer-logo {
  font-size: 26px;
  font-weight: 800;
  color: #E53935;
  text-decoration: none;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 12px;
}

.footer-description {
  font-size: 14px;
  line-height: 1.6;
  color: #9E9E9E;
  margin: 0;
  max-width: 280px;
}

.footer-heading {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-nav a {
  color: #BDBDBD;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #E53935;
}

.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  font-size: 14px;
  color: #BDBDBD;
  margin-bottom: 10px;
}

.footer-bottom {
  background-color: #1A1A1A;
  padding: 20px 0;
  border-top: 1px solid #333333;
}

.footer-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 14px;
  color: #9E9E9E;
}

/* ====== MOBILE RESPONSIVE ====== */
@media (max-width: 768px) {
  :root {
    --header-offset: 110px;
  }
  
  .header-container {
    width: 100%;
    max-width: none;
    padding: 0 15px;
    min-height: 60px;
  }

  .logo {
    font-size: 22px;
    padding: 6px 0;
  }

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

  /* Mobile nav buttons - always visible below logo */
  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: #C62828;
    width: 100%;
    z-index: 1000;
  }

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

  /* Main nav - hidden by default on mobile */
  .main-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    overflow-y: auto;
    background-color: #212121;
    z-index: 1002;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding-top: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  }

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

  .nav-container {
    width: 100%;
    max-width: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    min-height: auto;
    gap: 0;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    color: #BDBDBD;
    border-bottom: 1px solid #333333;
    white-space: normal;
  }

  .nav-link:hover,
  .nav-link.active {
    background-color: #E53935;
    color: #ffffff;
  }

  /* Hamburger menu – mobile only */
  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1003;
    position: fixed;
    top: 10px;
    left: 10px;
    padding: 8px;
    background-color: transparent;
    border: none;
  }

  .hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  .hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: #ffffff;
  }

  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background-color: #ffffff;
  }

  /* Overlay */
  .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: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .mobile-menu-overlay.active {
    display: block;
    opacity: 1;
  }

  /* Header top alignment for mobile */
  .header-top {
    position: relative;
  }

  .header-container {
    justify-content: center;
    padding-left: 50px;
    padding-right: 50px;
  }

  .logo {
    font-size: 24px;
    text-align: center;
  }

  /* Footer mobile */
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 0 15px 30px;
  }

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

  .footer-description {
    margin: 0 auto;
  }

  /* Prevent horizontal scroll */
  .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;
  }
}

/* ====== PAGE CONTENT SPACING ====== */
.page-content {
  padding: 10px 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-content img {
  max-width: 100%;
  height: 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;
}
