:root { --header-offset: 166px; --primary-color: #F2C14E; --secondary-color: #FFD36B; --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); --card-bg: #111111; --bg-color: #0A0A0A; --text-main: #FFF6D6; --border-color: #3A2A12; --glow-color: #FFD36B; }
body { margin: 0; padding: 0; padding-top: var(--header-offset); background-color: var(--bg-color); color: var(--text-main); font-family: 'Segoe UI', Arial, sans-serif; }
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.3); min-height: auto; background-color: var(--bg-color); border-bottom: 1px solid var(--border-color); }
.header-top { width: 100%; background: var(--bg-color); border-bottom: none; }
.header-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; gap: 16px; }
.header-actions-left { display: flex; align-items: center; gap: 12px; }
.logo { font-size: 1.65rem; font-weight: 800; color: var(--text-main); text-decoration: none; letter-spacing: -0.5px; background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 60%, #B8860B 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; white-space: nowrap; text-shadow: 0 0 20px rgba(255, 211, 107, 0.12); }
.hamburger-menu { display: none; background: none; border: none; cursor: pointer; padding: 8px; z-index: 1002; flex-direction: column; gap: 5px; }
.hamburger-line { display: block; width: 26px; height: 3px; background: var(--text-main); border-radius: 2px; transition: all 0.3s ease; }
.hamburger-menu.active .hamburger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-menu.active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger-menu.active .hamburger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.main-nav { width: 100%; display: flex; background-color: #1a1a1a; border-top: 1px solid var(--border-color); min-height: 52px; }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0 20px; gap: 0; }
.nav-link { display: block; padding: 16px 22px; color: #e8e8e8; text-decoration: none; font-size: 0.98rem; font-weight: 550; transition: color 0.3s, background-color 0.3s; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav-link:hover { color: var(--secondary-color); background-color: #0F0F0F; border-bottom-color: var(--primary-color); text-decoration: none; }
.nav-link.active { color: var(--secondary-color); border-bottom-color: var(--primary-color); }
.desktop-nav-buttons, .mobile-nav-buttons { display: flex; gap: 10px; align-items: center; }
.btn { display: inline-block; padding: 12px 30px; border-radius: 50px; font-weight: 700; text-decoration: none; transition: all 0.3s ease; border: none; letter-spacing: 0.3px; font-size: 0.95rem; box-shadow: 0 4px 12px rgba(221, 161, 29, 0.35); text-align: center; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(255, 211, 107, 0.4); text-decoration: none; }
.btn-register { background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); color: #0A0A0A; }
.btn-login { background: #2A2A2A; color: var(--text-main); border: 1px solid #3A3A3A; }
.btn-login:hover { border-color: var(--primary-color); }
.mobile-nav-buttons { display: none; }
.mobile-menu-overlay { display: none; }
.site-footer { background-color: #111111; border-top: 2px solid var(--border-color); padding: 50px 20px 20px 20px; margin-top: 60px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 0.8fr 1.2fr; gap: 40px; padding-bottom: 30px; }
.footer-logo { font-size: 1.6rem; font-weight: 800; color: var(--text-main); text-decoration: none; display: block; margin-bottom: 15px; background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 60%, #B8860B 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-description { font-size: 0.88rem; color: #a89f8a; line-height: 1.5; margin: 0; }
.footer-title { font-size: 1.1rem; font-weight: 700; color: var(--primary-color); margin-bottom: 20px; margin-top: 0; text-transform: uppercase; text-decoration: none; background: none; -webkit-text-fill-color: var(--primary-color); }
.site-footer .footer-title, .site-footer .footer-title a, .site-footer .footer-title a:hover { background: none; }
.footer-title a { background: none; color: var(--primary-color); -webkit-text-fill-color: var(--primary-color); text-decoration: none; }
.footer-title a:hover { color: var(--secondary-color); background: none; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-link { color: #b8b4a8; text-decoration: none; font-size: 0.9rem; transition: color 0.3s, transform 0.3s; }
.footer-link:hover { color: var(--secondary-color); text-decoration: none; transform: translateX(4px); }
.footer-bottom { max-width: 1200px; margin: 0 auto; border-top: 1px solid #2E2E2E; padding-top: 20px; text-align: center; }
.copyright-text { font-size: 0.85rem; color: #888888; margin: 0; }
@media (max-width: 768px) {
  :root { --header-offset: 146px; }
  body { padding-top: var(--header-offset); overflow-x: hidden; }
  .header-container { width: 100%; max-width: 100%; padding: 10px 15px; }
  .nav-container { width: 100%; max-width: 100%; padding: 0; }
  .header-top { position: relative; }
  .header-actions-left { display: flex; align-items: center; justify-content: space-between; width: 100%; }
  .logo { order: 2; margin: 0 auto 0 0; font-size: 1.3rem; white-space: normal; line-height: 1.1; text-align: center; width: calc(100% - 80px); text-overflow: ellipsis; overflow: hidden; padding: 0 5px; }
  .hamburger-menu { order: 1; padding-right: 15px; margin-left: 0; }
  .desktop-nav-buttons { display: none; }
  .mobile-nav-buttons { display: flex; justify-content: flex-start; padding: 10px 20px; gap: 10px; width: 100%; box-sizing: border-box; margin: 0 auto; position: relative; top: auto; border-bottom: 1px solid var(--border-color); background-color: var(--bg-color); }
  .main-nav { position: fixed; top: 0; left: 0; width: 280px; height: 100vh; height: 100dvh; background: #141414; flex-direction: column; transform: translateX(-100%); transition: transform 0.3s ease; display: none; z-index: 1001; border-right: 1px solid var(--border-color); overflow-y: auto; }
  .main-nav.active { display: flex; transform: translateX(0); }
  .nav-container { flex-direction: column; justify-content: flex-start; align-items: stretch; width: 100%; padding: 0; gap: 0; }
  .nav-link { padding: 14px 30px; color: #ddd; text-decoration: none; border-bottom: 1px solid #2a2a2a; border-radius: 0; background: transparent; }
  .nav-link:hover, .nav-link.active { color: var(--primary-color); background-color: rgba(242, 193, 78, 0.06); border-bottom-color: var(--border-color); text-decoration: none; }
  .mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 999; }
  .mobile-menu-overlay.active { display: block; }
  .btn { padding: 10px 18px; font-size: 0.85rem; }
  .page-content img { max-width: 100% !important; height: auto !important; display: block; }
  .page-content { overflow-x: hidden; max-width: 100%; }
  body { overflow-x: hidden; }
  .site-footer { padding: 40px 15px 15px 15px; }
  .footer-container { grid-template-columns: 1fr; gap: 30px; padding-bottom: 20px; }
  .footer-bottom { padding-top: 15px; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
