:root {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --deep-orange: #D96800;
  --card-bg: #17191F;
  --bg-color: #0D0E12;
  --text-main: #FFF3E6;
  --border-color: #A84F0C;
  --glow: #FFB04D;
  --header-offset: 164px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  padding-top: var(--header-offset);
  background: var(--bg-color);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  background: linear-gradient(90deg, #0D0E12 0%, #17191F 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 140, 26, 0.15);
  border-bottom: 2px solid var(--border-color);
  transition: box-shadow 0.3s ease;
}
.site-header:hover {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 140, 26, 0.25);
}
.header-top {
  background: linear-gradient(90deg, #17191F 0%, #0D0E12 100%);
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 30px;
  gap: 20px;
}
.logo {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-main);
  text-decoration: none;
  display: inline-block;
  padding: 6px 0;
  text-shadow: 0 0 12px rgba(255, 176, 77, 0.4), 0 0 30px rgba(255, 140, 26, 0.2);
  background: linear-gradient(135deg, var(--glow), var(--secondary-color), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  transition: text-shadow 0.3s ease, transform 0.3s ease;
}
.logo:hover {
  text-shadow: 0 0 20px rgba(255, 176, 77, 0.8), 0 0 50px rgba(255, 140, 26, 0.4);
  transform: scale(1.03);
}
.desktop-nav-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  text-align: center;
  color: #fff;
  border: 1px solid rgba(255, 200, 130, 0.5);
  transition: all 0.3s ease;
  box-shadow: 0 4px 18px rgba(217, 104, 0, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.btn-register {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
}
.btn-register:hover {
  background: linear-gradient(180deg, #FFB54A 0%, #E97800 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(217, 104, 0, 0.6);
}
.btn-login {
  background: linear-gradient(180deg, #FF8C1A 0%, #D96800 100%);
}
.btn-login:hover {
  background: linear-gradient(180deg, #FFB54A 0%, #E97800 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(217, 104, 0, 0.6);
}
.main-nav {
  background: linear-gradient(90deg, #0D0E12 0%, #17191F 100%);
  width: 100%;
  min-height: 52px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  position: static;
  border-bottom: 1px solid var(--border-color);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 4px 20px;
  gap: 2px;
}
.nav-link {
  display: inline-block;
  padding: 10px 14px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  position: relative;
  white-space: nowrap;
  transition: color 0.3s ease, background 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--glow));
  transform: translateX(-50%);
  transition: width 0.4s ease;
  border-radius: 2px;
}
.nav-link:hover {
  color: var(--glow);
  background: rgba(255, 140, 26, 0.12);
  border-radius: 8px;
}
.nav-link:hover::after {
  width: 80%;
}

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

.hamburger-menu {
  display: none;
}

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

footer {
  background: linear-gradient(180deg, #101116 0%, #050507 100%);
  border-top: 2px solid var(--border-color);
  padding: 20px;
  text-align: center;
  color: var(--text-main);
}
.footer-logo-text {
  display: inline-block;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-main);
  text-decoration: none;
  margin-bottom: 10px;
  padding: 0;
  background: linear-gradient(135deg, var(--glow), var(--secondary-color), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-nav {
  margin-bottom: 15px;
}
.footer-nav h4 {
  color: var(--secondary-color);
  margin-bottom: 8px;
}
.footer-nav a {
  display: inline-block;
  margin-right: 12px;
  color: var(--text-main);
  text-decoration: none;
}
.footer-nav a:hover {
  text-decoration: underline;
}
.site-footer {
  background: linear-gradient(180deg, #101116 0%, #0D0E12 100%);
  border-top: 2px solid var(--border-color);
  padding: 20px;
  text-align: center;
  color: var(--text-main);
  padding-top: 30px;
}
.site-footer h4 {
  color: var(--secondary-color);
  margin-top: 16px;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}
.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-logo p {
  color: #aaa;
  font-size: 14px;
  max-width: 600px;
  margin: 12px auto;
  line-height: 1.5;
}
.footer-links, .footer-legal, .footer-support {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 10px 0;
  margin-bottom: 10px;
}
.footer-links a, .footer-legal a, .footer-support a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  margin-right: 10px;
}
.footer-links a:hover, .footer-legal a:hover, .footer-support a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}
.footer-license {
  padding-top: 20px;
  border-top: 1px solid grey;
  margin-top: 20px;
}
.footer-license p {
  margin-bottom: 5px;
  font-size: 12px;
  color: #999;
}
.footer-copyright {
  font-size: 12px;
  color: #666;
}
@media (max-width: 768px) {
  :root {
    --header-offset: 148px;
  }
  .site-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
  }
  .header-top {
    min-height: 60px;
    width: 100%;
    border-bottom: none;
  }
  .header-container {
    width: 100%;
    max-width: none;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    order: 1;
    min-height: 60px;
  }
  .logo {
    font-size: 22px;
    flex: 1;
    text-align: center;
    order: 2;
    padding: 0 5px;
  }
  .desktop-nav-buttons {
    display: none;
  }
  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 1002;
    order: 1;
    transition: all 0.4s ease;
  }
  .hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-main);
    border-radius: 3px;
    transition: all 0.4s ease;
  }
  .hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  .mobile-menu-overlay.active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
  }
  .mobile-nav-buttons {
    display: flex;
    width: 100%;
    background: rgba(13, 14, 18, 0.95);
    padding: 6px 15px;
    border-top: 1px solid var(--border-color);
    z-index: 999;
    order: 2;
    gap: 2%;
  }
  .mobile-nav-buttons .btn {
    flex: 1;
    padding: 8px 10px;
    font-size: 13px;
  }
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    max-width: 82vw;
    background: #111217;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 60px;
    padding-left: 10px;
    display: none;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
  }
  .main-nav.active {
    display: flex;
    transform: translateX(0);
  }
  .nav-container {
    width: 100%;
    max-width: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 10px;
  }
  .nav-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 10px;
    font-size: 15px;
  }
  .nav-link::after {
    left: 10px;
    bottom: 4px;
    transform: none;
  }
  .nav-link:hover {
    background: rgba(255, 140, 26, 0.15);
    border-radius: 6px;
  }
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }
  .footer-links a, .footer-legal a, .footer-support a {
    font-size: 13px;
    margin: 4px;
  }
}
@media (min-width: 769px) {
  .desktop-nav-buttons {
    display: flex;
  }
  .mobile-nav-buttons {
    display: none;
  }
  .main-nav {
    display: flex;
    transform: none;
  }
  .logo {
    flex: none;
    text-align: left;
    order: 0;
  }
  .header-container {
    display: flex;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
