:root { --header-offset: 122px; --color-primary: #F2C14E; --color-secondary: #FFD36B; --color-bg: #0A0A0A; --color-card-bg: #111111; --color-text-main: #FFF6D6; --color-border: #3A2A12; --color-glow: #FFD36B; --color-btn-grad: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { padding-top: var(--header-offset); font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background-color: var(--color-bg); color: var(--color-text-main); }

/* ===== HEADER ===== */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 20px rgba(0,0,0,0.7); border-bottom: 1px solid var(--color-border); }

/* Top bar */
.header-top { box-sizing: border-box; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background-color: var(--color-card-bg); width: 100%; border-bottom: 1px solid var(--color-border); }
.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: 900; letter-spacing: 1px; text-decoration: none; background: var(--color-btn-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-transform: uppercase; }
.logo img { display: block; max-height: 60px; height: auto; width: auto; max-width: 280px; object-fit: contain; }

/* Desktop Buttons */
.desktop-nav-buttons { display: flex; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 22px; font-size: 14px; font-weight: 700; border-radius: 8px; text-decoration: none; text-align: center; cursor: pointer; transition: all 0.25s ease; border: 1px solid rgba(255,255,255,0.15); white-space: nowrap; }
.btn-login { background: transparent; color: var(--color-secondary); border: 1px solid var(--color-secondary); }
.btn-login:hover { background: rgba(255,211,107,0.12); color: #fff; box-shadow: 0 0 12px rgba(255,211,107,0.4); }
.btn-register { background: var(--color-btn-grad); color: #1a1a1a; border-color: #b8860b; box-shadow: 0 2px 10px rgba(221,161,29,0.4); }
.btn-register:hover { filter: brightness(1.1); box-shadow: 0 4px 16px rgba(255,211,107,0.7); transform: translateY(-1px); }

/* Mobile Buttons: hidden on desktop */
.mobile-nav-buttons { display: none; min-height: 48px; box-sizing: border-box; }

/* Main Nav */
.main-nav { box-sizing: border-box; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background-color: #1a1405; width: 100%; border-top: 1px solid var(--color-border); }
.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; }
.nav-menu { list-style: none; display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 2px; margin: 0; padding: 0; height: 100%; }
.nav-menu li { height: 100%; display: flex; align-items: center; }
.nav-menu a { display: flex; align-items: center; height: 100%; padding: 0 14px; color: var(--color-text-main); text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: 0.3px; transition: color 0.2s ease, background 0.2s ease; border-radius: 4px; }
.nav-menu a:hover, .nav-menu a.active { color: var(--color-secondary); background: rgba(242,193,78,0.1); }

/* Hamburger - hidden on desktop */
.hamburger-menu { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; justify-content: space-between; width: 44px; height: 44px; z-index: 1001; }
.hamburger-menu span { display: block; height: 3px; width: 100%; background: var(--color-secondary); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.hamburger-menu.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Overlay */
.nav-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.75); z-index: 999; opacity: 0; transition: opacity 0.3s ease; }
.nav-overlay.active { display: block; opacity: 1; }

/* ===== FOOTER ===== */
.site-footer { background-color: var(--color-card-bg); border-top: 1px solid var(--color-border); padding: 50px 20px 0; color: var(--color-text-main); }
.footer-top-row { max-width: 1200px; margin: 0 auto 30px; }
.footer-top-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-bottom: 40px; }
.footer-col { min-width: 0; }
.footer-about { display: flex; flex-direction: column; gap: 14px; }
.footer-logo { display: inline-block; font-size: 26px; font-weight: 900; letter-spacing: 1px; text-decoration: none; background: var(--color-btn-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-transform: uppercase; }
.footer-description { font-size: 13px; line-height: 1.7; color: #b0a890; word-wrap: break-word; overflow-wrap: break-word; }
.footer-title { font-size: 15px; font-weight: 700; color: var(--color-secondary); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-nav { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: #cfc6b0; text-decoration: none; font-size: 13px; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--color-secondary); }
.footer-slot-anchor-inner { width: 100%; }
.footer-dynamic-col { min-height: 10px; }
.footer-mid-section { max-width: 1200px; margin: 0 auto; padding-bottom: 30px; }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 10px; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 20px 0; border-top: 1px solid var(--color-border); text-align: center; font-size: 13px; color: #8f8670; }
.footer-bottom p { margin: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  body { overflow-x: hidden; }

  /* Mobile header */
  .header-top { min-height: 60px !important; height: 60px !important; }
  .header-container { width: 100%; max-width: none; padding-left: 15px; padding-right: 15px; position: relative; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; text-align: center; font-size: 24px; }
  .logo img { display: block !important; max-width: 100%; height: auto; max-height: 56px; }

  /* Toggle buttons */
  .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; }
  .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 becomes drawer */
  .main-nav { min-height: 48px !important; height: 48px !important; background-color: #1a1405; }
  .nav-container { width: 100%; max-width: none; padding-left: 0; padding-right: 0; justify-content: flex-start; }
  .hamburger-menu { display: flex; }
  .nav-menu { position: fixed; top: 0; left: 0; width: 280px; max-width: 80%; height: 100vh; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 0; background-color: #1a1405; padding: 80px 0 20px; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1000; overflow-y: auto; border-right: 1px solid var(--color-border); }
  .nav-menu.active { display: flex; transform: translateX(0); }
  .nav-menu li { height: auto; display: block; border-bottom: 1px solid rgba(58,42,18,0.6); }
  .nav-menu a { display: block; padding: 14px 24px; font-size: 15px; height: auto; border-radius: 0; }

  /* Footer mobile */
  .site-footer { padding: 40px 15px 0; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-mid-grid { grid-template-columns: 1fr; }

  /* Content protection */
  .page-content img { max-width: 100% !important; height: auto !important; display: block; }
  .page-content { overflow-x: hidden; max-width: 100%; }
}

@media (max-width: 480px) {
  .footer-top-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;
}
