:root { --primary-color: #113B7A; --secondary-color: #1D5FD1; --text-main: #F3F8FF; --text-secondary: #AFC4E8; --card-bg: #10233F; --border-color: #244D84; --btn-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); --glow-color: #4FA8FF; --gold-color: #F2C14E; --divider-color: #1B3357; --deep-navy: #08162B; --header-offset: 122px; }

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

a { text-decoration: none; color: var(--text-main); }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 8px; font-weight: bold; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; border: none; font-size: 15px; }
.btn-primary { background: var(--btn-gradient); color: var(--text-main); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); }
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); }
.btn-secondary { background-color: var(--secondary-color); color: var(--text-main); border: 1px solid var(--secondary-color); }
.btn-secondary:hover { background-color: #1a52b3; transform: translateY(-2px); }

/* Header Styles */
.site-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; background-color: var(--deep-navy); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); }

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

.logo { font-size: 28px; font-weight: bold; color: var(--gold-color); text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; height: 100%; }
.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: var(--card-bg); /* Distinct background for mobile buttons */ }

.main-nav { box-sizing: border-box; height: 52px; min-height: 52px; display: flex; align-items: center; overflow: hidden; background-color: var(--card-bg); width: 100%; }
.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-link { padding: 8px 15px; color: var(--text-main); font-weight: 600; font-size: 15px; transition: color 0.3s ease; }
.nav-link:hover { color: var(--gold-color); }

.hamburger-menu { display: none; width: 30px; height: 24px; position: relative; cursor: pointer; z-index: 1001; background: none; border: none; padding: 0; }
.hamburger-icon { display: block; position: absolute; width: 100%; height: 3px; background-color: var(--text-main); border-radius: 2px; transition: all 0.3s ease; }
.hamburger-icon::before, .hamburger-icon::after { content: ''; display: block; position: absolute; width: 100%; height: 3px; background-color: var(--text-main); border-radius: 2px; transition: all 0.3s ease; }
.hamburger-icon::before { top: -8px; }
.hamburger-icon::after { top: 8px; }
.hamburger-menu.active .hamburger-icon { background-color: transparent; }
.hamburger-menu.active .hamburger-icon::before { transform: translateY(8px) rotate(45deg); }
.hamburger-menu.active .hamburger-icon::after { transform: translateY(-8px) rotate(-45deg); }

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

/* Footer Styles */
.site-footer { background-color: var(--deep-navy); padding: 40px 0 20px; color: var(--text-secondary); font-size: 14px; border-top: 1px solid var(--divider-color); }
.footer-top-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 0 20px; }
.footer-col h3 { color: var(--text-main); font-size: 16px; margin-bottom: 15px; }
.footer-col .footer-logo { font-size: 24px; font-weight: bold; color: var(--gold-color); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; display: block; }
.footer-col .footer-description { line-height: 1.6; color: var(--text-secondary); overflow-wrap: break-word; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { color: var(--text-secondary); transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--gold-color); }

.footer-bottom { max-width: 1200px; margin: 30px auto 0; text-align: center; padding: 20px 20px 0; border-top: 1px solid var(--divider-color); color: var(--text-secondary); }
.footer-bottom p { margin: 0; }
.footer-slot-anchor-inner { min-height: 10px; /* Ensure anchor is visible for content injection */ }

/* Mobile Specific Styles */
@media (max-width: 768px) {
  :root { --header-offset: 110px; }

  .header-top { height: 60px !important; min-height: 60px !important; padding: 0 15px; justify-content: space-between; }
  .header-container { max-width: none; padding: 0; position: relative; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; margin-left: 0; /* Override any left margin */ max-width: calc(100% - 100px); /* Leave space for hamburger */ }
  .logo img { max-height: 56px !important; }

  .hamburger-menu { display: block; position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
  .desktop-nav-buttons { display: none !important; }
  .mobile-nav-buttons { display: flex !important; min-height: 48px; align-items: center; justify-content: center; width: 100%; max-width: 100%; box-sizing: border-box; padding: 0 15px; overflow: hidden; gap: 10px; flex-wrap: nowrap; background-color: var(--card-bg); /* Ensure consistent background for mobile buttons */ }
  .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; flex-direction: column; position: fixed; top: var(--header-offset); left: 0; width: 280px; height: calc(100% - var(--header-offset)); background-color: var(--card-bg); transform: translateX(-100%); transition: transform 0.3s ease; z-index: 999; overflow-y: auto; box-shadow: 2px 0 10px rgba(0,0,0,0.5); }
  .main-nav.active { display: flex; transform: translateX(0); }
  .nav-container { flex-direction: column; align-items: flex-start; padding: 20px 15px; height: auto; max-width: none; width: 100%; }
  .nav-link { width: 100%; padding: 12px 15px; border-bottom: 1px solid var(--divider-color); }
  .nav-link:last-child { border-bottom: none; }

  .site-footer { padding: 30px 0 15px; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 20px; padding: 0 15px; }
  .footer-bottom { margin-top: 20px; padding: 15px 15px 0; }

  .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: 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;
}
