:root {
  --primary: #FF8C1A;
  --secondary: #FFA53A;
  --bg: #0D0E12;
  --card-bg: #17191F;
  --text-main: #FFF3E6;
  --border: #A84F0C;
  --glow: #FFB04D;
  --deep-orange: #D96800;
  --btn-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  --header-offset: 122px;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  padding-top: var(--header-offset);
  background-color: var(--bg);
  color: var(--text-main);
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}
/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background-color: #0D0E12;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.75), 0 1px 0 var(--border);
  overflow-x: hidden;
}
.header-top {
  box-sizing: border-box;
  height: 68px;
  min-height: 68px;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(90deg, #0D0E12 0%, #17191F 100%);
  border-bottom: 1px solid var(--border);
}
.header-container {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 24px;
  padding-right: 24px;
}
.logo {
  display: inline-block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: none;
  text-decoration: none;
  color: var(--text-main);
  background: var(--btn-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
.logo img {
  display: block;
  max-height: 60px;
  height: auto;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}
.desktop-nav-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}
.mobile-nav-buttons {
  box-sizing: border-box;
  display: none;
  min-height: 48px;
  width: 100%;
  max-width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  overflow: hidden;
}
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
  text-align: center;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--btn-gradient);
  color: #1A0A00;
  border-color: var(--border);
  box-shadow: 0 0 12px rgba(255, 176, 77, 0.45);
}
.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 18px rgba(255, 176, 77, 0.75);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--secondary);
  border: 1px solid var(--secondary);
}
.btn-outline:hover {
  background: rgba(255, 165, 58, 0.15);
  color: #FFFFFF;
  transform: translateY(-1px);
}
.header-nav-bar {
  box-sizing: border-box;
  width: 100%;
  background: #17191F;
  border-bottom: 2px solid var(--primary);
  height: 52px;
  min-height: 52px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.nav-container {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  position: relative;
}
.main-nav {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 4px;
  height: 100%;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 11px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--glow);
  background: rgba(255, 140, 26, 0.08);
}
.nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #17191F;
  cursor: pointer;
  z-index: 1002;
}
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}
body.no-scroll {
  overflow: hidden;
}
/* ===== Footer ===== */
.site-footer {
  background: #0D0E12;
  color: var(--text-main);
  border-top: 2px solid var(--primary);
  margin-top: 40px;
  width: 100%;
  overflow-x: hidden;
}
.footer-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.footer-top {
  padding: 40px 0 24px;
  background: linear-gradient(180deg, #17191F 0%, #0D0E12 100%);
}
.footer-top-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}
.footer-col {
  min-width: 0;
}
.footer-logo {
  display: inline-block;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-main);
  background: var(--btn-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}
.footer-description {
  font-size: 14px;
  line-height: 1.7;
  color: #C9BEB2;
  margin: 0 0 12px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.footer-col-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--secondary);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav li {
  margin-bottom: 10px;
}
.footer-nav a {
  color: #C9BEB2;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-nav a:hover {
  color: var(--glow);
  padding-left: 3px;
}
.footer-mid {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.footer-mid-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.footer-slot-anchor-outer,
.footer-slot-anchor-inner {
  display: block;
}
.footer-slot-anchor-bottom {
  padding: 8px 0;
}
.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid var(--border);
  background: #0A0B0E;
  text-align: center;
}
.footer-copyright {
  margin: 0;
  font-size: 13px;
  color: #8E857B;
  word-wrap: break-word;
}
/* ===== Responsive ===== */
@media (max-width: 768px) {
  :root {
    --header-offset: 110px;
  }
  .header-top {
    height: 60px !important;
    min-height: 60px !important;
  }
  .header-container {
    width: 100%;
    max-width: none;
    padding-left: 15px;
    padding-right: 15px;
  }
  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 18px;
  }
  .logo img {
    display: block !important;
    max-width: 100%;
    height: auto;
    max-height: 56px !important;
  }
  .desktop-nav-buttons {
    display: none !important;
  }
  .mobile-nav-buttons {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    background: #0D0E12;
  }
  .mobile-nav-buttons .btn {
    flex: 1;
    min-width: 0;
    max-width: calc(50% - 5px);
    box-sizing: border-box;
    padding: 8px 12px;
    font-size: 13px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .header-nav-bar {
    height: 48px !important;
    min-height: 48px !important;
  }
  .nav-container {
    width: 100%;
    max-width: none;
    padding-left: 15px;
    padding-right: 15px;
    justify-content: flex-start;
  }
  .hamburger-menu {
    display: flex;
  }
  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    background: #17191F;
    padding: 80px 16px 24px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.6);
  }
  .main-nav.active {
    display: flex;
    transform: translateX(0);
  }
  .nav-link {
    height: auto;
    padding: 14px 12px;
    font-size: 15px;
    border-bottom: 1px solid rgba(168, 79, 12, 0.35);
    border-left: 3px solid transparent;
  }
  .nav-link.active {
    border-left-color: var(--primary);
    border-bottom-color: rgba(168, 79, 12, 0.35);
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-mid-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .footer-container {
    padding: 0 16px;
  }
  .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: 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;
}
