:root { --header-offset: 122px; --primary: #11A84E; --secondary: #22C768; --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); --card-bg: #11271B; --bg: #08160F; --text-main: #F2FFF6; --text-secondary: #A7D9B8; --border-color: #2E7A4E; --glow: #57E38D; --gold: #F2C14E; --divider: #1E3A2A; --deep-green: #0A4B2C; }
*, *::before, *::after { 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); color: var(--text-main); -webkit-font-smoothing: antialiased; }
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; background-color: var(--card-bg); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.55); border-bottom: 1px solid var(--border-color); }
.header-top { box-sizing: border-box; width: 100%; height: 68px; min-height: 68px; display: flex; align-items: center; overflow: hidden; background-color: var(--deep-green); border-bottom: 1px solid var(--divider); }
.header-container { box-sizing: border-box; width: 100%; height: 100%; max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding-left: 24px; padding-right: 24px; }
.logo { display: inline-block; font-size: 26px; font-weight: 800; letter-spacing: 0.5px; text-decoration: none; color: var(--gold); text-shadow: 0 0 10px rgba(87, 227, 141, 0.35); line-height: 1; 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; align-items: center; gap: 12px; }
.mobile-nav-buttons { display: none; box-sizing: border-box; min-height: 48px; width: 100%; max-width: 100%; }
.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; font-size: 14px; line-height: 1.2; padding: 10px 22px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease; white-space: nowrap; }
.btn-login { background-color: transparent; color: var(--secondary); border: 1px solid var(--secondary); }
.btn-login:hover { background-color: rgba(34, 199, 104, 0.12); color: var(--text-main); }
.btn-register { background: var(--btn-gradient); color: #FFFFFF; border: 1px solid #57E38D; box-shadow: 0 4px 14px rgba(17, 168, 78, 0.45); }
.btn-register:hover { filter: brightness(1.08); transform: translateY(-1px); }
.hamburger-menu { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 1002; }
.hamburger-line { display: block; width: 24px; height: 2px; background-color: var(--text-main); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.hamburger-menu.active .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-menu.active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger-menu.active .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.main-nav { box-sizing: border-box; width: 100%; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background-color: var(--card-bg); }
.nav-container { box-sizing: border-box; width: 100%; height: 100%; max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: center; padding: 0 16px; }
.nav-menu { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 4px; list-style: none; margin: 0; padding: 0; height: 100%; flex-wrap: nowrap; }
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.nav-link { display: flex; align-items: center; height: 100%; padding: 0 11px; font-size: 14px; font-weight: 600; color: var(--text-secondary); text-decoration: none; border-radius: 6px; transition: color 0.2s ease, background-color 0.2s ease; white-space: nowrap; }
.nav-link:hover { color: var(--glow); background-color: rgba(34, 199, 104, 0.1); }
.nav-link.active { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); }
.mobile-menu-extra { display: none; }
.menu-overlay { display: none; }
.site-footer { background-color: var(--bg); color: var(--text-main); border-top: 2px solid var(--border-color); margin-top: 20px; }
.footer-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.footer-slot-anchor-inner { min-height: 1px; }
.footer-top { padding: 48px 0 24px; background-color: var(--card-bg); }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; align-items: start; }
.footer-col { min-width: 0; }
.footer-about { max-width: none; }
.footer-logo { display: inline-block; font-size: 24px; font-weight: 800; color: var(--gold); text-decoration: none; margin-bottom: 14px; letter-spacing: 0.5px; }
.footer-description { font-size: 14px; line-height: 1.7; color: var(--text-secondary); margin: 0 0 12px; word-wrap: break-word; overflow-wrap: break-word; }
.footer-heading { font-size: 16px; font-weight: 700; color: var(--text-main); margin: 0 0 16px; text-transform: uppercase; letter-spacing: 0.6px; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-nav li { margin: 0; padding: 0; }
.footer-nav a { display: inline-block; color: var(--text-secondary); text-decoration: none; font-size: 14px; line-height: 1.5; transition: color 0.2s ease, padding-left 0.2s ease; word-wrap: break-word; }
.footer-nav a:hover { color: var(--glow); padding-left: 4px; }
.footer-dynamic-col { min-height: 1px; }
.footer-mid { padding: 24px 0; background-color: var(--bg); }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 12px 0; }
.footer-bottom { padding: 18px 0; background-color: var(--deep-green); border-top: 1px solid var(--divider); }
.footer-copyright { margin: 0; font-size: 13px; color: var(--text-secondary); text-align: center; line-height: 1.5; }
@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; justify-content: space-between; position: relative; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 22px; }
  .logo img { display: block !important; max-width: 100%; height: auto; max-height: 56px !important; }
  .hamburger-menu { display: flex; order: -1; flex: 0 0 auto; }
  .desktop-nav-buttons { display: none !important; }
  .mobile-nav-buttons { display: flex !important; align-items: center; justify-content: center; gap: 10px; flex-wrap: nowrap; width: 100%; max-width: 100%; box-sizing: border-box; padding: 8px 15px; overflow: hidden; background-color: var(--card-bg); border-bottom: 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; }
  .main-nav { height: 48px !important; min-height: 48px !important; display: none; position: fixed; top: 0; left: 0; width: 82%; max-width: 320px; height: 100vh !important; max-height: 100vh; background-color: var(--card-bg); z-index: 1001; transform: translateX(-100%); transition: transform 0.3s ease; overflow-y: auto; padding-top: 60px; border-right: 1px solid var(--border-color); box-shadow: 4px 0 24px rgba(0, 0, 0, 0.6); }
  .main-nav.active { display: block; transform: translateX(0); }
  .nav-container { width: 100%; max-width: none; height: auto; flex-direction: column; justify-content: flex-start; align-items: stretch; padding: 12px 0 24px; }
  .nav-menu { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 2px; height: auto; width: 100%; }
  .nav-item { height: auto; width: 100%; }
  .nav-link { height: auto; padding: 14px 20px; font-size: 15px; border-radius: 0; justify-content: flex-start; width: 100%; }
  .nav-link.active { box-shadow: inset 3px 0 0 var(--gold); background-color: rgba(242, 193, 78, 0.08); }
  .mobile-menu-extra { display: flex; flex-direction: column; gap: 10px; padding: 20px; margin-top: 12px; border-top: 1px solid var(--divider); }
  .mobile-extra-link { display: block; text-align: center; padding: 12px 14px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 14px; color: var(--text-main); background: var(--btn-gradient); box-shadow: 0 3px 10px rgba(17, 168, 78, 0.35); }
  .menu-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.65); z-index: 1000; opacity: 0; transition: opacity 0.3s ease; }
  .menu-overlay.active { display: block; opacity: 1; }
  body.no-scroll { overflow: hidden; }
  .footer-top { padding: 32px 0 16px; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-mid-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-container { padding: 0 15px; }
  .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 (min-width: 769px) and (max-width: 1024px) {
  .nav-link { padding: 0 7px; font-size: 13px; }
  .footer-top-grid { gap: 20px; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
