:root { --header-offset: 122px; --color-primary: #11A84E; --color-secondary: #22C768; --color-bg: #08160F; --color-card-bg: #11271B; --color-text-main: #F2FFF6; --color-text-secondary: #A7D9B8; --color-border: #2E7A4E; --color-glow: #57E38D; --color-gold: #F2C14E; --color-divider: #1E3A2A; --color-deep-green: #0A4B2C; --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); }
* { box-sizing: border-box; }
body { padding-top: var(--header-offset); margin: 0; }
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 20px rgba(0,0,0,0.45); }
.header-top { min-height: 68px; height: 68px; display: flex; align-items: center; overflow: hidden; background-color: #0A4B2C; width: 100%; }
.header-container { width: 100%; height: 100%; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding-left: 25px; padding-right: 25px; }
.logo { display: inline-block; font-size: 28px; font-weight: 800; color: #F2C14E; text-decoration: none; letter-spacing: 1px; white-space: nowrap; }
.logo:hover { color: var(--color-glow); }
.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; background-color: #0A4B2C; }
.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border-radius: 8px; font-weight: 700; cursor: pointer; transition: all 0.25s ease; text-align: center; border: none; }
.desktop-nav-buttons .btn { padding: 10px 22px; font-size: 15px; }
.btn-login { background: transparent; color: #F2FFF6; border: 2px solid var(--color-secondary); }
.btn-login:hover { background: rgba(34,199,104,0.15); border-color: var(--color-glow); color: var(--color-glow); }
.btn-register { background: var(--btn-gradient); color: #FFFFFF; box-shadow: 0 4px 14px rgba(42,209,111,0.4); }
.btn-register:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(87,227,141,0.6); }
.main-nav { min-height: 52px; height: 52px; display: flex; align-items: center; overflow: hidden; background-color: #11271B; width: 100%; border-top: 1px solid var(--color-divider); }
.nav-container { height: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0 20px; gap: 4px; }
.nav-link { display: inline-block; padding: 8px 12px; color: #A7D9B8; text-decoration: none; font-size: 14px; font-weight: 600; border-radius: 6px; transition: all 0.2s ease; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: #F2FFF6; background-color: #0A4B2C; }
.nav-link.active { color: var(--color-gold); }
.hamburger-menu { display: none; background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001; flex-direction: column; justify-content: center; gap: 5px; }
.hamburger-line { display: block; width: 26px; height: 3px; background-color: #F2FFF6; 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); }
.nav-overlay { display: none; }

/* Footer */
.site-footer { background-color: #08160F; color: #F2FFF6; border-top: 1px solid var(--color-divider); }
.footer-top { padding: 50px 20px 30px; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.footer-col { min-width: 0; }
.footer-logo { display: inline-block; font-size: 26px; font-weight: 800; color: #F2C14E; text-decoration: none; margin-bottom: 14px; }
.footer-logo:hover { color: var(--color-glow); }
.footer-description { color: #A7D9B8; font-size: 14px; line-height: 1.7; overflow-wrap: break-word; word-wrap: break-word; margin: 0 0 14px; }
.footer-heading { color: #F2FFF6; font-size: 16px; font-weight: 700; margin: 0 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--color-primary); display: inline-block; }
.footer-nav { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { color: #A7D9B8; text-decoration: none; font-size: 14px; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--color-glow); padding-left: 3px; }
.footer-slot-anchor-inner { min-height: 1px; }
.footer-mid { padding: 10px 20px 30px; border-top: 1px solid var(--color-divider); }
.footer-mid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 16px 0; }
.footer-bottom { background-color: #0A4B2C; padding: 18px 20px; text-align: center; }
.footer-bottom p { margin: 0; color: #A7D9B8; font-size: 13px; }

@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  .header-top { min-height: 60px !important; height: 60px !important; }
  .header-container { width: 100%; max-width: none; padding-left: 12px; padding-right: 12px; position: relative; }
  .logo { position: absolute !important; left: 50% !important; transform: translateX(-50%) !important; display: flex !important; align-items: center !important; justify-content: center !important; font-size: 24px; }
  .logo img { display: block !important; max-width: 100%; height: auto; max-height: 56px; }
  .hamburger-menu { display: flex; }
  .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 { min-height: 48px !important; height: 48px !important; position: fixed; top: 108px; left: 0; width: 100%; display: none; flex-direction: column; justify-content: flex-start; align-items: stretch; transform: translateX(-100%); transition: transform 0.3s ease; overflow-y: auto; z-index: 1001; background-color: #11271B; padding: 16px; gap: 4px; }
  .main-nav.active { display: flex; transform: translateX(0); }
  .nav-container { width: 100%; max-width: none; height: auto; flex-direction: column; justify-content: flex-start; align-items: stretch; padding: 0; gap: 4px; }
  .nav-link { padding: 14px 16px; font-size: 16px; border-bottom: 1px solid var(--color-divider); border-radius: 0; }
  .nav-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 999; }
  .nav-overlay.active { display: block; }
  .footer-top-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .footer-about { grid-column: 1 / -1; }
  .footer-mid-grid { grid-template-columns: 1fr 1fr; }
  .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-about { grid-column: auto; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
