:root { --primary: #FF8C1A; --secondary: #FFA53A; --bg: #0D0E12; --card-bg: #17191F; --text-main: #FFF3E6; --border: #A84F0C; --glow: #FFB04D; --deep-orange: #D96800; --header-offset: 122px; }
* { box-sizing: border-box; }
body { margin: 0; padding: 0; padding-top: var(--header-offset); font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background-color: var(--bg); color: var(--text-main); }
a { text-decoration: none; }
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; background-color: var(--card-bg); box-shadow: 0 4px 20px rgba(0,0,0,0.6); }
.header-top { width: 100%; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background-color: var(--card-bg); border-bottom: 1px solid var(--border); }
.header-container { 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: 30px; font-weight: 800; color: var(--primary); letter-spacing: 1px; text-transform: uppercase; line-height: 1; text-shadow: 0 0 10px rgba(255,140,26,0.4); }
.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 { display: none; min-height: 48px; box-sizing: border-box; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 22px; border-radius: 6px; font-size: 15px; font-weight: 700; text-decoration: none; border: none; cursor: pointer; transition: all 0.25s ease; line-height: 1.2; }
.btn-login { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-login:hover { background: var(--primary); color: #0D0E12; }
.btn-register { background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); color: #fff; box-shadow: 0 2px 10px rgba(255,140,26,0.35); }
.btn-register:hover { filter: brightness(1.1); box-shadow: 0 4px 18px rgba(255,140,26,0.6); }
.main-nav { width: 100%; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background-color: #0D0E12; border-bottom: 1px solid var(--border); }
.nav-container { width: 100%; height: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0 20px; }
.nav-menu { display: flex; flex-direction: row; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav-menu li { margin: 0; }
.nav-link { display: block; padding: 8px 12px; font-size: 14px; font-weight: 600; color: var(--text-main); 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.12); }
.hamburger-menu { display: none; flex-direction: column; justify-content: space-between; width: 30px; height: 22px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 1001; }
.hamburger-menu span { display: block; width: 100%; height: 3px; background-color: var(--text-main); border-radius: 2px; transition: all 0.3s ease; }
.hamburger-menu.active span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }
.menu-overlay { display: none; }
.site-footer { background-color: var(--card-bg); color: var(--text-main); padding: 50px 0 0; border-top: 2px solid var(--border); }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-bottom: 30px; border-bottom: 1px solid rgba(168,79,12,0.3); }
.footer-col { min-width: 0; }
.footer-about .footer-logo { display: inline-block; font-size: 28px; font-weight: 800; color: var(--primary); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px; }
.footer-description { font-size: 14px; line-height: 1.7; color: rgba(255,243,230,0.75); margin: 0 0 12px; word-wrap: break-word; overflow-wrap: break-word; }
.footer-heading { font-size: 16px; font-weight: 700; color: var(--primary); margin: 0 0 16px; 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: rgba(255,243,230,0.8); font-size: 14px; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--primary); }
.footer-slot-anchor-inner { min-height: 1px; }
.footer-mid-area { padding: 24px 0; border-bottom: 1px solid rgba(168,79,12,0.3); }
.footer-slot-mid { min-height: 1px; }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 16px; }
.footer-slot-bottom { min-height: 1px; }
.footer-bottom { padding: 20px 0; text-align: center; border-top: 1px solid rgba(168,79,12,0.2); }
.footer-bottom p { margin: 0; font-size: 13px; color: rgba(255,243,230,0.6); }
@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; height: 100%; }
  .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% - 100px); font-size: 24px; }
  .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-left: 15px; padding-right: 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; min-height: 48px; background-color: var(--card-bg); 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 { height: 48px !important; min-height: 48px !important; position: fixed; top: 0; left: 0; display: none; width: 100%; max-width: 320px; height: 100vh !important; background-color: var(--card-bg); z-index: 1001; transform: translateX(-100%); transition: transform 0.3s ease; overflow-y: auto; padding-top: 80px; }
  .main-nav.active { display: block !important; transform: translateX(0) !important; }
  .nav-container { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; width: 100%; max-width: none; padding: 0 20px; height: auto; }
  .hamburger-menu { display: flex; position: relative; z-index: 1002; }
  .nav-menu { display: flex; flex-direction: column; width: 100%; gap: 0; margin-top: 10px; }
  .nav-menu li { border-bottom: 1px solid rgba(168,79,12,0.25); }
  .nav-link { display: block; padding: 14px 10px; font-size: 15px; color: var(--text-main); border-radius: 0; }
  .nav-link:hover, .nav-link.active { background-color: rgba(255,140,26,0.12); color: var(--primary); }
  .menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.7); z-index: 1000; opacity: 0; transition: opacity 0.3s ease; }
  .menu-overlay.active { display: block !important; opacity: 1; }
  body.no-scroll { overflow: hidden; }
  .footer-top-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-mid-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-container { padding: 0 16px; }
  .footer-about { grid-column: 1 / -1; }
  .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; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
