:root {
  --header-offset: 122px;
  --color-primary: #F2C14E;
  --color-secondary: #FFD36B;
  --color-background: #0A0A0A;
  --color-card-bg: #111111;
  --color-text-main: #FFF6D6;
  --color-border: #3A2A12;
  --color-glow: #FFD36B;
  --btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

body {
  padding-top: var(--header-offset);
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--color-background);
  color: var(--color-text-main);
}

/* ===== Header Styles ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(242, 193, 78, 0.15);
  border-bottom: 2px solid var(--color-border);
}

/* Header Top Bar */
.header-top {
  background-color: #1a1a1a;
  width: 100%;
  border-bottom: 1px solid var(--color-border);
}

.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;
  box-sizing: border-box;
}

.logo {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: 1px;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.4);
  display: inline-block;
  line-height: 1.2;
}

.logo:hover {
  color: var(--color-secondary);
  text-shadow: 0 0 20px rgba(255, 211, 107, 0.7);
}

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

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

.btn-register {
  background: var(--btn-gradient);
  color: #000000;
  box-shadow: 0 2px 10px rgba(255, 211, 107, 0.3);
}

.btn-register:hover {
  box-shadow: 0 4px 20px rgba(255, 211, 107, 0.6);
  transform: translateY(-2px);
}

.btn-login {
  background: var(--btn-gradient);
  color: #000000;
  box-shadow: 0 2px 10px rgba(255, 211, 107, 0.3);
}

.btn-login:hover {
  box-shadow: 0 4px 20px rgba(255, 211, 107, 0.6);
  transform: translateY(-2px);
}

/* Main Navigation */
.main-nav {
  background-color: #0f0f0f;
  width: 100%;
  display: flex;
  flex-direction: row;
  position: static;
  border-bottom: 1px solid var(--color-border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--color-text-main);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 4px;
  transition: color 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-primary);
  background-color: rgba(242, 193, 78, 0.1);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
}

/* Mobile Navigation Buttons */
.mobile-nav-buttons {
  display: none;
}

/* ===== Footer Styles ===== */
.site-footer {
  background-color: #111111;
  border-top: 3px solid var(--color-primary);
  margin-top: 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 50px 30px 30px;
}

.footer-column {
  flex: 1;
}

.footer-brand {
  flex: 1.4;
}

.footer-logo {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-primary);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 15px;
}

.footer-description {
  color: #aaaaaa;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 20px 0;
}

.footer-heading {
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

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

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

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 20px 0;
  text-align: center;
}

.footer-copyright {
  color: #aaaaaa;
  font-size: 14px;
  margin: 0;
}

/* ===== Responsive Styles ===== */
@media (max-width: 768px) {
  :root {
    --header-offset: 110px;
  }

  .site-header {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  }

  .header-container {
    width: 100%;
    max-width: none;
    padding-left: 15px;
    padding-right: 15px;
    min-height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  .logo {
    font-size: 26px;
    flex: 1;
    text-align: center;
  }

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

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background-color: #1a1a1a;
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
  }

  .mobile-nav-buttons .btn {
    flex: 1;
    max-width: 150px;
    padding: 8px 12px;
    font-size: 13px;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background-color: #111111;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    padding-top: 70px;
    border-right: 2px solid var(--color-border);
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.6);
  }

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

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

  .nav-link {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    color: var(--color-text-main);
    border-bottom: 1px solid var(--color-border);
  }

  .nav-link:hover {
    background-color: rgba(242, 193, 78, 0.2);
    color: var(--color-primary);
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1001;
    position: fixed;
    top: 10px;
    left: 15px;
    background-color: transparent;
    border: none;
    padding: 0;
  }

  .hamburger-menu .bar {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--color-text-main);
  }

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

  .hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--color-text-main);
  }

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    cursor: pointer;
  }

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

  .footer-container {
    flex-direction: column;
    gap: 25px;
    padding: 30px 20px 20px;
  }

  .footer-column {
    flex: 1;
  }

  .footer-logo {
    font-size: 24px;
  }

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

  .mobile-menu-overlay {
    display: none !important;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
