:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --card-bg: #111111;
  --bg-dark: #0A0A0A;
  --text-main: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
  --header-offset: 120px;
  --header-top-bg: #0D0D0D;
  --main-nav-bg: #1A1A1A;
  --text-color: #FFF6D6;
  --footer-bg: #0A0A0A;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding-top: var(--header-offset);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 20px rgba(242, 193, 78, 0.15);
  background-color: var(--header-top-bg);
}

.header-top {
  background-color: #0D0D0D;
  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: 0 24px;
  min-height: 68px;
}

.logo {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.5), 0 0 30px rgba(242, 193, 78, 0.2);
  font-style: italic;
}

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

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

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
  text-align: center;
  border: none;
  cursor: pointer;
  margin: 0;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.btn-register {
  background: var(--btn-gradient);
  color: #000;
  border: 1px solid rgba(255, 216, 106, 0.5);
}

.btn-register:hover {
  box-shadow: 0 0 20px rgba(255, 216, 106, 0.6);
}

.btn-login {
  background: var(--btn-gradient);
  color: #000;
  border: 1px solid rgba(255, 216, 106, 0.5);
}

.btn-login:hover {
  box-shadow: 0 0 20px rgba(255, 216, 106, 0.6);
}

.btn-download {
  background: var(--btn-gradient);
  color: #000;
  border: 1px solid rgba(255, 216, 106, 0.5);
}

.btn-download:hover {
  box-shadow: 0 0 20px rgba(255, 216, 106, 0.6);
}

.main-nav {
  background-color: #1A1A1A;
  width: 100%;
  display: flex;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  min-height: 52px;
}

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

.nav-link {
  color: #C4B998;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 16px 14px;
  white-space: nowrap;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  display: inline-block;
}

.nav-link:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.3);
}

.nav-link.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

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

/* 汉堡按钮（桌面端不显示） */
.hamburger-menu {
  display: none;
}

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

/* ===== FOOTER ===== */
.site-footer {
  background-color: var(--footer-bg);
  border-top: 2px solid var(--primary-color);
  padding: 0;
  margin-top: 60px;
}

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

.footer-brand {
  padding-right: 20px;
}

.footer-logo {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary-color);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 15px;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.4);
}

.footer-description {
  color: #A89E8A;
  font-size: 14px;
  line-height: 1.6;
}

.footer-heading {
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), transparent);
}

.footer-links {
  list-style: none;
  padding: 0;
}

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

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

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-bottom {
  background-color: #080808;
  border-top: 1px solid var(--border-color);
}

.footer-bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.copyright {
  color: #777;
  font-size: 13px;
}

.footer-address {
  color: #555;
  font-size: 12px;
}

/* ===== 移动端 ===== */
@media (max-width: 768px) {
  :root {
    --header-offset: 110px;
  }
  
  .header-container {
    width: 100%;
    max-width: none;
    padding: 0 15px;
    min-height: 60px;
    position: relative;
    justify-content: center;
  }

  .logo {
    font-size: 24px;
    flex: 1;
    text-align: center;
    z-index: 1002;
  }

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

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 1001;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0;
  }

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

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

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

  .hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    background-color: #0D0D0D;
    padding: 8px 10px;
    z-index: 1000;
    margin-top: 0;
  }

  .mobile-nav-buttons .btn {
    flex: 1;
    padding: 8px 10px;
    font-size: 13px;
    border-radius: 6px;
    max-width: 130px;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 78%;
    max-width: 300px;
    height: 100vh;
    background-color: #1A1A1A;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 70px;
    padding-left: 20px;
    padding-right: 20px;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.3);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    border-right: 2px solid var(--border-color);
    padding-bottom: 30px;
    overflow-y: auto;
  }

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

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

  .nav-link {
    color: #C4B998;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: block;
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid transparent;
  }

  .nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(242, 193, 78, 0.05);
    border-left-color: var(--primary-color);
    padding-left: 10px;
  }

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

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

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

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

  .footer-bottom-container {
    justify-content: center;
    text-align: center;
  }
  
  .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) {
  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .mobile-nav-buttons .btn {
    font-size: 12px;
    padding: 8px 6px;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
