:root { --primary-color: #113B7A; --secondary-color: #1D5FD1; --card-bg: #10233F; --text-main: #F3F8FF; --text-secondary: #AFC4E8; --border-color: #244D84; --glow-color: #4FA8FF; --gold-color: #F2C14E; --divider-color: #1B3357; --deep-navy: #08162B; --header-offset: 122px; }

html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Arial', sans-serif; color: var(--text-main); background-color: var(--deep-navy); padding-top: var(--header-offset); }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); background-color: transparent; /* Handled by child elements */ }

.header-top { box-sizing: border-box; height: 68px; display: flex; align-items: center; background-color: var(--deep-navy); color: var(--text-main); overflow: hidden; }
.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: 0 20px; }

.logo { font-size: 28px; font-weight: bold; text-decoration: none; color: var(--gold-color); display: block; white-space: nowrap; }
.logo:hover { color: var(--gold-color); opacity: 0.9; }

.desktop-nav-buttons { display: flex; gap: 12px; align-items: center; }
.btn { display: inline-block; padding: 10px 20px; border-radius: 8px; font-size: 15px; font-weight: bold; text-decoration: none; color: var(--text-main); text-align: center; white-space: nowrap; cursor: pointer; transition: all 0.3s ease; border: none; }
.btn-register { background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); box-shadow: 0 4px 15px rgba(43, 115, 246, 0.4); }
.btn-register:hover { background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%); box-shadow: 0 6px 20px rgba(43, 115, 246, 0.6); }
.btn-login { background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); box-shadow: 0 4px 15px rgba(43, 115, 246, 0.4); }
.btn-login:hover { background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%); box-shadow: 0 6px 20px rgba(43, 115, 246, 0.6); }

.mobile-nav-buttons { box-sizing: border-box; display: none; min-height: 48px; background-color: var(--primary-color); padding: 8px 20px; justify-content: center; }

.main-nav { box-sizing: border-box; height: 52px; display: flex; align-items: center; background-color: var(--primary-color); overflow: hidden; }
.nav-container { box-sizing: border-box; width: 100%; height: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 0 20px; }
.nav-link { display: block; padding: 8px 15px; text-decoration: none; color: var(--text-main); font-weight: bold; transition: color 0.3s ease, background-color 0.3s ease; white-space: nowrap; font-size: 15px; }
.nav-link:hover, .nav-link.active { color: var(--gold-color); background-color: rgba(255, 255, 255, 0.1); border-radius: 4px; }

.hamburger-menu { display: none; background: none; border: none; cursor: pointer; padding: 10px; position: relative; z-index: 1001; }
.hamburger-menu span { display: block; width: 25px; height: 3px; background-color: var(--text-main); margin-bottom: 5px; transition: all 0.3s ease; }
.hamburger-menu span:last-child { margin-bottom: 0; }
.hamburger-menu.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); z-index: 999; }
.overlay.active { display: block; }

/* Footer */
.site-footer { background-color: var(--card-bg); color: var(--text-secondary); padding: 40px 20px 20px; font-size: 14px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto 40px; }
.footer-col { display: flex; flex-direction: column; }

.footer-logo { font-size: 24px; font-weight: bold; text-decoration: none; color: var(--gold-color); margin-bottom: 15px; display: block; }
.footer-logo:hover { color: var(--gold-color); opacity: 0.9; }
.footer-description { line-height: 1.6; margin-bottom: 15px; overflow-wrap: break-word; }

.footer-heading { font-size: 18px; color: var(--text-main); margin-bottom: 20px; font-weight: bold; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { text-decoration: none; color: var(--text-secondary); transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--gold-color); }

.footer-slot-anchor-inner { min-height: 1px; }
.footer-slot-anchor-outer { min-height: 1px; }

.footer-bottom { border-top: 1px solid var(--divider-color); padding-top: 20px; text-align: center; font-size: 13px; color: var(--text-secondary); max-width: 1200px; margin: 0 auto; }
.footer-bottom p { margin: 0; }

/* Responsive */
@media (max-width: 768px) {
  :root { --header-offset: 110px; }
  body { padding-top: var(--header-offset); overflow-x: hidden; }
  .page-content img { max-width: 100% !important; height: auto !important; display: block; }
  .page-content { overflow-x: hidden; max-width: 100%; }

  .header-top { height: 60px; padding: 0 15px; background-color: var(--deep-navy); }
  .header-container { padding: 0; justify-content: flex-start; }

  .hamburger-menu { display: block; margin-right: 15px; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 24px; color: var(--gold-color); }
  .logo img { display: block !important; max-width: 100%; height: auto; max-height: 56px; }

  .desktop-nav-buttons { display: none !important; }
  .mobile-nav-buttons {
    display: flex !important;
    min-height: 48px;
    align-items: center;
    width: 100%; max-width: 100%;
    box-sizing: border-box;
    padding-left: 15px; padding-right: 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    background-color: var(--primary-color);
  }
  .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 {
    display: none; /* Hidden by default for mobile */
    position: fixed; top: 0; left: 0; width: 80%; height: 100vh; overflow-y: auto;
    background-color: var(--deep-navy);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    transform: translateX(-100%); transition: transform 0.3s ease;
    z-index: 1000;
    padding-top: 60px; /* Space for fixed header-top */
  }
  .main-nav.active { display: flex; transform: translateX(0); }
  .nav-container { flex-direction: column; padding: 20px 15px; width: 100%; max-width: none; align-items: flex-start; }
  .nav-link { width: 100%; padding: 12px 15px; font-size: 16px; border-bottom: 1px solid var(--divider-color); }
  .nav-link:last-child { border-bottom: none; }

  .footer-top-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-col { text-align: center; }
  .footer-logo { margin: 0 auto 15px; }
  .footer-nav { text-align: center; }
  .footer-nav li { display: inline-block; margin: 0 8px 10px; }
  .footer-nav a { font-size: 13px; }
  .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;
  }
}
