:root { --primary: #FF8C1A; --accent: #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-top: var(--header-offset); background: var(--bg); color: var(--text-main); font-family: 'Segoe UI', Arial, sans-serif; }
a { text-decoration: none; }

/* ================= HEADER ================= */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 20px rgba(0,0,0,0.6); background: var(--bg); }
.header-top { position: relative; width: 100%; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background: var(--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: 900; letter-spacing: 1px; background: linear-gradient(180deg, var(--accent) 0%, var(--deep-orange) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--primary); line-height: 1; }
.logo img { display: block; max-height: 60px; height: auto; width: auto; max-width: 280px; object-fit: contain; }
.desktop-nav-buttons { display: flex; align-items: center; gap: 12px; }
.mobile-nav-buttons { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: none; cursor: pointer; font-weight: 700; text-decoration: none; border-radius: 6px; transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease; text-align: center; line-height: 1.2; }
.btn-login { background: transparent; color: var(--accent); border: 1px solid var(--border); padding: 9px 18px; font-size: 14px; }
.btn-login:hover { background: rgba(255,140,26,0.12); border-color: var(--primary); }
.btn-register { background: linear-gradient(180deg, var(--accent) 0%, var(--deep-orange) 100%); color: #1a1206; padding: 10px 22px; font-size: 14px; box-shadow: 0 3px 12px rgba(255,140,26,0.4); }
.btn-register:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255,140,26,0.55); }
.hamburger-menu { display: none; flex-direction: column; justify-content: space-between; width: 28px; height: 22px; padding: 0; background: transparent; border: none; cursor: pointer; z-index: 1001; }
.hamburger-menu span { display: block; width: 100%; height: 3px; background: var(--accent); border-radius: 2px; transition: transform 0.3s ease, opacity 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); }

/* Main nav (desktop) */
.main-nav { width: 100%; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background: var(--card-bg); 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; align-items: center; justify-content: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu li a { display: inline-block; padding: 6px 11px; color: var(--text-main); font-size: 14px; font-weight: 600; border-radius: 4px; transition: color 0.2s ease, background 0.2s ease; white-space: nowrap; }
.nav-menu li a:hover { color: var(--accent); background: rgba(255,140,26,0.12); }
.nav-menu li a.active { color: var(--accent); background: rgba(255,140,26,0.16); }

/* Overlay */
.menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.65); opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; z-index: 999; }
.menu-overlay.active { opacity: 1; visibility: visible; }

/* ================= FOOTER ================= */
.site-footer { background: var(--card-bg); border-top: 1px solid var(--border); color: var(--text-main); }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-top { padding: 48px 0 28px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; align-items: start; }
.footer-col { min-width: 0; }
.footer-logo { display: inline-block; font-size: 28px; font-weight: 900; letter-spacing: 1px; background: linear-gradient(180deg, var(--accent) 0%, var(--deep-orange) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--primary); margin-bottom: 14px; }
.footer-description { font-size: 14px; line-height: 1.7; color: rgba(255,243,230,0.78); word-wrap: break-word; overflow-wrap: break-word; margin: 0 0 14px; }
.footer-title { font-size: 16px; font-weight: 700; color: var(--accent); margin: 0 0 14px; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav li a { color: rgba(255,243,230,0.8); font-size: 14px; transition: color 0.2s ease; word-wrap: break-word; }
.footer-nav li a:hover { color: var(--accent); }
.footer-middle { padding: 24px 0; border-top: 1px solid rgba(168,79,12,0.35); }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.footer-slot-bottom { padding: 12px 0; }
.footer-bottom { background: var(--bg); border-top: 1px solid var(--border); padding: 18px 0; text-align: center; }
.footer-bottom p { margin: 0; font-size: 13px; color: rgba(255,243,230,0.65); }
.footer-slot-anchor-inner { min-height: 0; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .nav-menu li a { padding: 6px 8px; font-size: 13px; }
}

@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  body { padding-top: var(--header-offset); overflow-x: hidden; }
  .page-content img { max-width: 100% !important; height: auto !important; display: block; }
  .page-content { overflow-x: hidden; max-width: 100%; }

  .header-top { height: 60px !important; min-height: 60px !important; }
  .header-container { width: 100%; max-width: none; padding-left: 15px; padding-right: 15px; }
  .header-container { 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% - 120px); font-size: 26px; }
  .logo img { display: block !important; max-width: 100%; height: auto; max-height: 56px !important; }
  .hamburger-menu { display: flex; position: relative; z-index: 1001; }
  .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; min-height: 48px; padding: 6px 15px; gap: 10px; flex-wrap: nowrap; overflow: hidden; background: var(--card-bg); border-bottom: 1px solid rgba(168,79,12,0.35); }
  .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 { display: none; position: fixed; top: 0; left: 0; width: 82%; max-width: 320px; height: 100vh; min-height: 100vh; flex-direction: column; align-items: stretch; justify-content: flex-start; background: var(--card-bg); border-right: 1px solid var(--border); border-bottom: none; overflow-y: auto; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1000; padding-top: 20px; }
  .main-nav.active { display: block; transform: translateX(0); }
  .nav-container { flex-direction: column; align-items: stretch; justify-content: flex-start; height: auto; max-width: none; width: 100%; padding: 10px 0; }
  .nav-menu { flex-direction: column; align-items: stretch; width: 100%; gap: 0; padding: 0; }
  .nav-menu li { width: 100%; }
  .nav-menu li a { display: block; width: 100%; padding: 13px 24px; font-size: 15px; border-radius: 0; border-bottom: 1px solid rgba(168,79,12,0.25); }
  .nav-menu li a:hover, .nav-menu li a.active { background: rgba(255,140,26,0.12); }

  .footer-top { padding: 34px 0 20px; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-mid-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-bottom p { font-size: 12px; }
}

@media (max-width: 420px) {
  .mobile-nav-buttons .btn { font-size: 12px; padding: 8px 8px; }
  .logo { font-size: 22px; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
