:root { --header-offset: 122px; --primary: #FF8C1A; --secondary: #FFA53A; --bg: #0D0E12; --card-bg: #17191F; --text-main: #FFF3E6; --border-color: #A84F0C; --glow: #FFB04D; --deep-orange: #D96800; --btn-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); --header-top-bg: #0D0E12; --main-nav-bg: #17191F; }
* { 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 Neue', Arial, sans-serif; overflow-x: hidden; }
a { text-decoration: none; }
.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.6); background-color: var(--header-top-bg); }
.header-top { box-sizing: border-box; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; width: 100%; background-color: var(--header-top-bg); border-bottom: 1px solid var(--border-color); }
.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: 28px; font-weight: 800; letter-spacing: 0.5px; color: var(--text-main); text-shadow: 0 0 12px rgba(255, 176, 77, 0.6); line-height: 1; 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-block; text-decoration: none; text-align: center; cursor: pointer; border: none; border-radius: 8px; font-weight: 700; letter-spacing: 0.3px; transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease; box-sizing: border-box; }
.btn-login { background: transparent; color: var(--secondary); border: 2px solid var(--secondary); padding: 9px 20px; font-size: 14px; }
.btn-login:hover { background: rgba(255, 165, 58, 0.12); transform: translateY(-2px); }
.btn-register { background: var(--btn-gradient); color: #FFFFFF; padding: 11px 22px; font-size: 14px; box-shadow: 0 4px 14px rgba(217, 104, 0, 0.45); }
.btn-register:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 176, 77, 0.55); }
.mobile-nav-buttons { box-sizing: border-box; display: none; min-height: 48px; }
.main-nav { box-sizing: border-box; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; width: 100%; background-color: var(--main-nav-bg); }
.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 24px; }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: row; align-items: center; gap: 4px; }
.nav-link { display: block; padding: 8px 12px; font-size: 14px; font-weight: 600; color: var(--text-main); border-radius: 6px; white-space: nowrap; transition: color 0.2s ease, background-color 0.2s ease; }
.nav-link:hover, .nav-link.active { color: var(--glow); background-color: rgba(255, 140, 26, 0.14); }
.hamburger-menu { display: none; }
.mobile-overlay { display: none; }
.site-footer { background-color: var(--card-bg); color: var(--text-main); border-top: 2px solid var(--border-color); padding: 40px 20px 0; }
.footer-top-row { max-width: 1200px; margin: 0 auto; }
.footer-top-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-bottom: 32px; }
.footer-col { min-width: 0; }
.footer-about .footer-logo { display: inline-block; font-size: 26px; font-weight: 800; color: var(--glow); margin-bottom: 12px; text-shadow: 0 0 10px rgba(255, 176, 77, 0.5); }
.footer-description { font-size: 14px; line-height: 1.7; color: #C9BDB0; margin: 0 0 12px; word-wrap: break-word; overflow-wrap: break-word; }
.footer-heading { font-size: 16px; font-weight: 700; color: var(--secondary); margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border-color); }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { color: #D8CCBF; font-size: 14px; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--glow); }
.footer-slot-anchor-inner { min-height: 1px; }
.footer-mid-area { max-width: 1200px; margin: 0 auto; padding: 24px 0; border-top: 1px solid var(--border-color); }
.footer-mid-item { margin-bottom: 16px; }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.footer-mid-grid-item { min-width: 0; }
.footer-bottom-slot { max-width: 1200px; margin: 0 auto; }
.footer-bottom { max-width: 1200px; margin: 0 auto; border-top: 1px solid var(--border-color); padding: 18px 0; text-align: center; }
.footer-copyright { margin: 0; font-size: 13px; color: #A89B8E; }
@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: 60px; padding-right: 15px; position: relative; }
  .logo { position: absolute !important; left: 50% !important; top: 50% !important; transform: translate(-50%, -50%) !important; display: flex !important; justify-content: center !important; align-items: center !important; max-width: calc(100% - 140px); font-size: 22px; }
  .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; width: 100%; max-width: 100%; box-sizing: border-box; padding-left: 15px; padding-right: 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; background-color: var(--header-top-bg); border-bottom: 1px solid var(--border-color); }
  .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; margin: 6px 0; }
  .main-nav { height: 48px !important; min-height: 48px !important; display: none; position: fixed; top: 0; left: 0; width: 100%; flex-direction: column; transform: translateX(-100%); transition: transform 0.3s ease; background-color: var(--main-nav-bg); z-index: 1001; height: auto !important; min-height: 100vh !important; padding-top: 20px; overflow-y: auto; }
  .main-nav.active { display: block; transform: translateX(0); }
  .nav-container { width: 100%; max-width: none; padding: 60px 15px 40px; height: auto; flex-direction: column; justify-content: flex-start; align-items: stretch; }
  .nav-menu { flex-direction: column; align-items: stretch; width: 100%; gap: 0; }
  .nav-menu li { width: 100%; border-bottom: 1px solid rgba(168, 79, 12, 0.4); }
  .nav-link { padding: 16px 12px; font-size: 16px; width: 100%; border-radius: 0; }
  .hamburger-menu { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; background: transparent; border: 2px solid var(--secondary); border-radius: 8px; cursor: pointer; z-index: 1002; padding: 0; }
  .hamburger-menu span { display: block; width: 22px; height: 2px; background-color: var(--secondary); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
  .hamburger-menu.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger-menu.active span:nth-child(2) { opacity: 0; }
  .hamburger-menu.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mobile-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.65); z-index: 1000; }
  .mobile-overlay.active { display: block; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 24px; padding-bottom: 24px; }
  .footer-mid-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-heading { text-align: left; }
  .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;
}
