:root { --primary: #FF8C1A; --secondary: #FFA53A; --bg-dark: #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-offset: 122px; }
* { box-sizing: border-box; }
body { margin: 0; padding-top: var(--header-offset); font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background-color: var(--bg-dark); color: var(--text-main); }
.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); }
.header-top { background-color: var(--card-bg); box-sizing: border-box; height: 68px; display: flex; align-items: center; overflow: hidden; width: 100%; 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 { color: var(--primary); font-size: 28px; font-weight: 900; text-decoration: none; letter-spacing: 1px; text-transform: lowercase; text-shadow: 0 0 12px rgba(255, 140, 26, 0.4); display: inline-block; }
.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; box-sizing: border-box; min-height: 48px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 6px; font-size: 14px; font-weight: 700; text-decoration: none; text-align: center; cursor: pointer; transition: all 0.25s ease; border: none; line-height: 1.2; white-space: nowrap; }
.btn-login { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-login:hover { background: rgba(255, 140, 26, 0.12); box-shadow: 0 0 12px rgba(255, 140, 26, 0.3); }
.btn-register { background: var(--btn-gradient); color: #1a0e00; border: 1px solid var(--secondary); box-shadow: 0 2px 10px rgba(217, 104, 0, 0.4); }
.btn-register:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(255, 165, 58, 0.5); }
.main-nav { box-sizing: border-box; background-color: #1f1410; height: 52px; display: flex; align-items: center; overflow: hidden; width: 100%; border-bottom: 2px solid var(--primary); }
.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; gap: 4px; }
.nav-link { color: var(--text-main); text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 4px; transition: all 0.2s ease; white-space: nowrap; }
.nav-link:hover { color: var(--primary); background: rgba(255, 140, 26, 0.1); }
.nav-link.active { color: var(--primary); background: rgba(255, 140, 26, 0.15); box-shadow: inset 0 -2px 0 var(--primary); }
.hamburger-menu { display: none; background: transparent; border: none; cursor: pointer; padding: 8px; z-index: 1001; position: relative; }
.hamburger-menu span { display: block; width: 26px; height: 3px; background-color: var(--primary); margin: 5px 0; transition: all 0.3s ease; border-radius: 2px; }
.hamburger-menu.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
.menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.75); z-index: 999; }
.menu-overlay.active { display: block; }
.site-footer { background-color: #0a0b0e; color: var(--text-main); border-top: 3px solid var(--primary); margin-top: 40px; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-top { padding: 40px 0 24px; }
.footer-top-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer-col { min-width: 0; }
.footer-logo { color: var(--primary); font-size: 26px; font-weight: 900; text-decoration: none; display: inline-block; margin-bottom: 14px; text-shadow: 0 0 10px rgba(255, 140, 26, 0.3); }
.footer-description { font-size: 14px; line-height: 1.7; color: #b8a99a; margin: 0 0 12px; word-wrap: break-word; overflow-wrap: break-word; }
.footer-heading { color: var(--primary); font-size: 16px; font-weight: 700; margin: 0 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border-color); }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { color: #cbb9a6; text-decoration: none; font-size: 14px; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--primary); text-decoration: underline; }
.footer-dynamic-col { min-width: 0; }
.footer-slot-anchor-inner { width: 100%; }
.footer-mid { padding: 20px 0; border-top: 1px solid #262626; }
.footer-mid-anchors { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.footer-bottom-anchor { padding: 0 20px; max-width: 1200px; margin: 0 auto; }
.footer-bottom { padding: 20px 0; border-top: 1px solid #262626; text-align: center; }
.footer-copyright { margin: 0; font-size: 13px; color: #8f8274; }
.no-scroll { overflow: hidden; }
@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; text-align: center; }
  .logo img { max-height: 56px !important; display: block !important; max-width: 100%; height: auto; }
  .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(--card-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; }
  .hamburger-menu { display: block; position: absolute; left: 10px; top: 6px; }
  .main-nav { display: none; position: fixed; top: 0; left: 0; width: 80%; max-width: 300px; height: 100vh; min-height: 100vh !important; background-color: #1f1410; flex-direction: column; justify-content: flex-start; align-items: stretch; padding: 80px 20px 20px; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1001; overflow-y: auto; border-bottom: none; border-right: 2px solid var(--primary); }
  .main-nav.active { display: flex; transform: translateX(0); }
  .nav-container { flex-direction: column; justify-content: flex-start; align-items: stretch; width: 100%; max-width: none; padding: 0; height: auto; gap: 4px; }
  .nav-link { display: block; width: 100%; text-align: left; padding: 12px 16px; font-size: 15px; border-radius: 6px; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-mid-grid { grid-template-columns: 1fr; }
  .footer-top { padding: 30px 0 20px; }
  .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;
}
