:root { --primary: #11A84E; --secondary: #22C768; --bg: #08160F; --card-bg: #11271B; --text-main: #F2FFF6; --text-secondary: #A7D9B8; --border: #2E7A4E; --glow: #57E38D; --gold: #F2C14E; --divider: #1E3A2A; --deep-green: #0A4B2C; --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', Roboto, Arial, sans-serif; }
a { text-decoration: none; }
/* ===== HEADER ===== */
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 18px rgba(0,0,0,0.55); border-bottom: 1px solid var(--border); }
.header-top { height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background: #0A4B2C; width: 100%; }
.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: 28px; padding-right: 28px; }
.logo { display: inline-block; font-size: 24px; font-weight: 800; letter-spacing: 0.5px; color: var(--gold); text-shadow: 0 0 10px rgba(242,193,78,0.45); white-space: nowrap; }
.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 { box-sizing: border-box; display: none; min-height: 48px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 8px; font-weight: 700; font-size: 14px; line-height: 1.2; text-decoration: none; color: #FFFFFF; border: 1px solid var(--border); cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease; white-space: nowrap; }
.btn-login { background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); box-shadow: 0 4px 14px rgba(21,153,74,0.45); }
.btn-register { background: linear-gradient(180deg, #F2C14E 0%, #C99A2E 100%); color: #14210F; box-shadow: 0 4px 14px rgba(242,193,78,0.45); }
.btn:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 8px 20px rgba(87,227,141,0.45); }
.main-nav { height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background: #11271B; width: 100%; border-top: 1px solid var(--divider); }
.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 { display: flex; flex-direction: row; justify-content: center; align-items: center; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav-menu li { display: inline-block; }
.nav-menu a { display: inline-block; padding: 8px 12px; color: var(--text-main); font-size: 14px; font-weight: 600; border-radius: 6px; transition: color 0.18s ease, background 0.18s ease; white-space: nowrap; }
.nav-menu a:hover, .nav-menu a.active { color: var(--glow); background: rgba(87,227,141,0.12); }
.hamburger-menu { display: none; position: absolute; top: 10px; left: 12px; width: 48px; height: 48px; background: transparent; border: none; z-index: 1002; cursor: pointer; padding: 0; }
.hamburger-menu span { display: block; width: 26px; height: 3px; margin: 5px auto; background: var(--text-main); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.hamburger-menu.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.menu-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 999; opacity: 0; transition: opacity 0.3s ease; }
.menu-overlay.active { display: block; opacity: 1; }
body.no-scroll { overflow: hidden; }
/* ===== FOOTER ===== */
.site-footer { background: #0A4B2C; color: var(--text-main); border-top: 1px solid var(--border); }
.footer-top { padding: 44px 0 24px; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; align-items: start; }
.footer-col { min-width: 0; }
.footer-logo { display: inline-block; font-size: 22px; font-weight: 800; color: var(--gold); text-shadow: 0 0 10px rgba(242,193,78,0.4); margin-bottom: 12px; }
.footer-description { font-size: 14px; line-height: 1.7; color: var(--text-secondary); margin: 0; word-wrap: break-word; overflow-wrap: break-word; }
.footer-col-title { font-size: 15px; font-weight: 700; color: var(--glow); margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-nav a { color: var(--text-secondary); font-size: 14px; transition: color 0.18s ease; }
.footer-nav a:hover { color: var(--glow); }
.footer-mid { padding: 16px 0 24px; border-top: 1px solid var(--divider); }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.footer-bottom-wrap { padding: 10px 0; }
.footer-bottom { background: #08160F; border-top: 1px solid var(--divider); padding: 16px 0; }
.footer-bottom p { margin: 0; text-align: center; font-size: 13px; color: var(--text-secondary); }
.footer-slot-anchor, .footer-slot-anchor-inner { min-height: 1px; }
@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 { 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: 19px; }
  .logo img { max-height: 56px !important; }
  .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: 6px 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; background: #0A4B2C; border-top: 1px solid var(--divider); }
  .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; }
  .header-top { position: relative; }
  .hamburger-menu { display: block; }
  .main-nav { height: 48px !important; min-height: 48px !important; position: fixed; top: 0; left: 0; width: 260px; max-width: 82%; height: 100vh !important; min-height: 100vh !important; flex-direction: column; align-items: stretch; justify-content: flex-start; background: #11271B; transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1001; display: none; padding-top: 18px; box-shadow: 8px 0 24px rgba(0,0,0,0.6); border-top: none; }
  .main-nav.active { display: block; transform: translateX(0); }
  .nav-container { width: 100%; max-width: none; padding: 0; height: auto; }
  .nav-menu { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-menu li { display: block; width: 100%; border-bottom: 1px solid var(--divider); }
  .nav-menu a { display: block; width: 100%; padding: 14px 18px; font-size: 15px; border-radius: 0; }
  .footer-top-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-mid-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { padding: 32px 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: 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;
}
