:root {
  --primary: #FF8C1A;
  --secondary: #FFA53A;
  --bg-dark: #0D0E12;
  --bg-card: #17191F;
  --text-main: #FFF3E6;
  --border-color: #A84F0C;
  --glow: #FFB04D;
  --deep-orange: #D96800;
  --header-offset: 122px;
}
* { box-sizing: border-box; }
body { margin: 0; padding-top: var(--header-offset); background-color: var(--bg-dark); color: var(--text-main); font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
a { text-decoration: none; color: inherit; }

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

/* Top bar */
.header-top { box-sizing: border-box; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background-color: #050608; border-bottom: 1px solid var(--border-color); width: 100%; }
.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: 1.25rem; font-weight: 800; color: var(--primary); letter-spacing: 0.5px; text-transform: uppercase; text-shadow: 0 0 10px rgba(255,140,26,0.4); 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; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 22px; border-radius: 6px; font-weight: 700; font-size: 14px; text-decoration: none; transition: all 0.25s ease; cursor: pointer; border: 1px solid transparent; }
.btn-login { background: transparent; color: var(--secondary); border: 1px solid var(--secondary); }
.btn-login:hover { background: rgba(255,165,58,0.1); color: #fff; }
.btn-register { background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); color: #fff; box-shadow: 0 2px 10px rgba(255,140,26,0.4); border: 1px solid var(--glow); }
.btn-register:hover { filter: brightness(1.1); box-shadow: 0 4px 15px rgba(255,140,26,0.6); }

/* Main nav (desktop default) */
.main-nav { box-sizing: border-box; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background-color: #14161b; width: 100%; }
.nav-container { box-sizing: border-box; height: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0 20px; }
.nav-list { display: flex; flex-direction: row; align-items: center; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav-list li { display: inline-block; }
.nav-link { display: block; padding: 8px 12px; color: var(--text-main); font-size: 14px; font-weight: 600; border-radius: 4px; transition: all 0.2s ease; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--primary); background-color: rgba(255,140,26,0.1); }

/* Hamburger - hidden on desktop */
.hamburger-menu { display: none; }

/* Mobile buttons container - hidden on desktop */
.mobile-nav-buttons { box-sizing: border-box; display: none; min-height: 48px; width: 100%; }
.menu-overlay { display: none; }

/* ===== FOOTER ===== */
.site-footer { background-color: #050608; color: var(--text-main); border-top: 1px solid var(--border-color); padding-top: 50px; margin-top: 40px; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 30px 0; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-bottom: 40px; border-bottom: 1px solid rgba(168,79,12,0.4); }
.footer-col { min-width: 0; }
.footer-logo { display: inline-block; font-size: 1.2rem; font-weight: 800; color: var(--primary); margin-bottom: 15px; text-transform: uppercase; text-shadow: 0 0 8px rgba(255,140,26,0.3); }
.footer-description { font-size: 14px; line-height: 1.7; color: #b0b3b8; margin: 0 0 15px 0; word-wrap: break-word; overflow-wrap: break-word; }
.footer-heading { font-size: 15px; font-weight: 700; color: var(--secondary); margin: 0 0 16px 0; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { color: #b0b3b8; font-size: 14px; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--primary); }
.footer-dynamic-col { min-width: 0; }

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

.footer-bottom { text-align: center; padding: 22px 0; border-top: 1px solid rgba(168,79,12,0.4); font-size: 13px; color: #8a8d93; }
.footer-bottom p { margin: 0; }

/* Slot anchors must remain visible */
.footer-slot-anchor-inner { display: block; }

/* ===== 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; position: relative; }

  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 1rem; text-align: center; white-space: normal; }
  .logo img { display: block !important; max-width: 100%; height: auto; max-height: 56px; }

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

  .mobile-nav-buttons { display: flex !important; align-items: center; justify-content: center; width: 100%; max-width: 100%; box-sizing: border-box; padding: 6px 15px 8px; overflow: hidden; gap: 10px; flex-wrap: nowrap; min-height: 48px; }
  .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 { height: 48px !important; min-height: 48px !important; display: none; position: fixed; top: var(--header-offset); left: 0; right: 0; width: 100%; background-color: #14161b; transform: translateX(-100%); transition: transform 0.3s ease; overflow-y: auto; overflow-x: hidden; z-index: 999; box-shadow: 0 10px 30px rgba(0,0,0,0.9); }
  .main-nav.active { display: block; transform: translateX(0); height: auto !important; min-height: auto !important; max-height: calc(100vh - var(--header-offset)); }

  .nav-container { width: 100%; max-width: none; padding: 10px 15px; flex-direction: column; align-items: stretch; justify-content: flex-start; height: auto; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-list li { display: block; width: 100%; border-bottom: 1px solid rgba(168,79,12,0.2); }
  .nav-list li:last-child { border-bottom: none; }
  .nav-link { padding: 14px 12px; font-size: 15px; border-radius: 0; }

  .hamburger-menu { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 40px; height: 40px; background: transparent; border: none; cursor: pointer; padding: 0; gap: 5px; position: relative; z-index: 1001; }
  .hamburger-menu span { display: block; width: 24px; height: 3px; background-color: var(--text-main); border-radius: 2px; transition: all 0.3s ease; }
  .hamburger-menu.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); background-color: var(--primary); }
  .hamburger-menu.active span:nth-child(2) { opacity: 0; }
  .hamburger-menu.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background-color: var(--primary); }

  .menu-overlay { display: block; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); z-index: 998; 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 1fr; gap: 25px; }
  .footer-about { grid-column: 1 / -1; }
  .footer-dynamic-col { grid-column: 1 / -1; }
  .footer-mid-grid { grid-template-columns: 1fr 1fr; }
  .footer-container { padding: 0 18px; }
  .site-footer { padding-top: 35px; }

  .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-top-grid { grid-template-columns: 1fr; }
  .footer-mid-grid { grid-template-columns: 1fr; }
  .logo { font-size: 0.95rem; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
