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

* { 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; }
a { text-decoration: none; }

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
  overflow-x: hidden;
}

.header-top {
  box-sizing: border-box;
  width: 100%;
  height: 68px;
  min-height: 68px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #0D0E12;
  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: 30px;
  padding-right: 30px;
}

.logo {
  display: inline-block;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary);
  text-shadow: 0 0 12px rgba(255, 176, 77, 0.5);
  line-height: 1;
}
.logo:hover { color: var(--glow); }
.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;
}

.btn {
  display: inline-block;
  text-decoration: none !important;
  border-radius: 8px;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-primary {
  background: var(--btn-gradient);
  color: #1A0E00;
  border-color: var(--deep-orange);
  box-shadow: 0 3px 12px rgba(255, 140, 26, 0.45);
}
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(255, 140, 26, 0.25);
}
.btn-secondary:hover { background: rgba(255, 140, 26, 0.12); color: var(--glow); }

.main-nav {
  box-sizing: border-box;
  width: 100%;
  height: 52px;
  min-height: 52px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border);
}

.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;
  gap: 4px;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.nav-link {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  border-radius: 6px;
  transition: color 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.nav-link:hover { color: var(--primary); background: rgba(255, 140, 26, 0.1); }
.nav-link.active { color: #1A0E00; background: var(--btn-gradient); }

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

/* ===== FOOTER ===== */
.site-footer {
  background-color: #0A0B0E;
  color: var(--text-main);
  border-top: 2px solid var(--border);
  margin-top: 40px;
}

.footer-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  box-sizing: border-box;
}

.footer-top { padding: 48px 0 24px; }
.footer-mid { padding: 8px 0 24px; }

.footer-top-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: start;
}

.footer-col { min-width: 0; }
.footer-dynamic-col { min-width: 0; }

.footer-logo {
  display: inline-block;
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  text-shadow: 0 0 10px rgba(255, 176, 77, 0.45);
  margin-bottom: 14px;
}
.footer-logo:hover { color: var(--glow); }

.footer-description {
  font-size: 14px;
  line-height: 1.7;
  color: #C9BEB3;
  margin: 0 0 12px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-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: 9px; }
.footer-nav a {
  font-size: 14px;
  color: #C9BEB3;
  transition: color 0.18s ease, padding-left 0.18s ease;
  display: inline-block;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.footer-nav a:hover { color: var(--primary); padding-left: 4px; }

.footer-mid-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.footer-slot-anchor-inner { width: 100%; }

.footer-bottom {
  background-color: #050608;
  border-top: 1px solid var(--border);
  padding: 18px 0;
  text-align: center;
}
.footer-copyright {
  margin: 0;
  font-size: 13px;
  color: #A99C90;
}

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

  .header-top {
    min-height: 60px !important;
    height: 60px !important;
  }
  .header-container {
    width: 100%;
    max-width: none;
    padding-left: 15px;
    padding-right: 15px;
    position: relative;
  }
  .logo {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: calc(100% - 110px);
    font-size: 24px;
  }
  .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;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    background-color: #0D0E12;
    border-bottom: 1px solid var(--border);
  }
  .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;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    max-width: 320px;
    min-height: 0;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    background-color: var(--card-bg);
    border-right: 1px solid var(--border);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1002;
    overflow-y: auto;
    padding-top: 8px;
  }
  .main-nav.active {
    display: flex;
    transform: translateX(0);
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
  }
  .nav-list li { width: 100%; }
  .nav-link {
    width: 100%;
    padding: 14px 20px;
    border-radius: 0;
    font-size: 15px;
    border-bottom: 1px solid rgba(168, 79, 12, 0.3);
  }

  .hamburger-menu {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1003;
  }
  .hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .hamburger-menu.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger-menu.active span:nth-child(2) { opacity: 0; }
  .hamburger-menu.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .menu-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .menu-overlay.active { opacity: 1; visibility: visible; }

  body.no-scroll { overflow: hidden; }

  .footer-top-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-mid-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .footer-container { padding: 0 16px; }
  .footer-top { padding: 32px 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;
}
