html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Arial', sans-serif; background-color: #08162B; color: #F3F8FF; padding-top: var(--header-offset); }
:root { --header-offset: 122px; --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%); --deep-navy: #08162B; }

/* Header Styles */
.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.3); box-sizing: border-box; }
.header-top { box-sizing: border-box; min-height: 68px; height: 68px; display: flex; align-items: center; overflow: hidden; background-color: var(--deep-navy); width: 100%; padding: 0 20px; }
.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; }
.logo { color: var(--text-main); font-size: 28px; font-weight: bold; text-decoration: none; display: block; 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; background-color: var(--primary-color); padding: 0 20px; }

.btn { padding: 10px 20px; border-radius: 8px; text-decoration: none; font-weight: bold; text-align: center; white-space: nowrap; cursor: pointer; transition: background-color 0.3s ease, transform 0.2s ease; display: inline-block; box-sizing: border-box; border: none; }
.btn-primary { background: var(--btn-gradient); color: var(--text-main); border: 1px solid var(--border-color); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); }
.btn-secondary { background-color: var(--secondary-color); color: var(--text-main); border: 1px solid var(--border-color); }
.btn-secondary:hover { transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); }

.main-nav { box-sizing: border-box; min-height: 52px; height: 52px; display: flex; align-items: center; overflow: hidden; background-color: var(--primary-color); 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; gap: 25px; }
.nav-link { color: var(--text-main); text-decoration: none; padding: 5px 0; font-weight: 500; font-size: 15px; white-space: nowrap; transition: color 0.3s ease; }
.nav-link:hover { color: var(--secondary-color); }

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

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

/* Footer Styles */
.site-footer { background-color: var(--card-bg); padding: 40px 20px 20px; color: var(--text-secondary); font-size: 14px; box-sizing: border-box; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto 30px; }
.footer-col h3 { color: var(--text-main); font-size: 18px; margin-bottom: 15px; }
.footer-logo { color: var(--text-main); font-size: 24px; font-weight: bold; text-decoration: none; margin-bottom: 15px; display: block; }
.footer-description { line-height: 1.6; margin-bottom: 20px; overflow-wrap: break-word; }
.footer-nav, .footer-nav-legal { list-style: none; padding: 0; margin: 0; }
.footer-nav li, .footer-nav-legal li { margin-bottom: 8px; }
.footer-nav a, .footer-nav-legal a { color: var(--text-secondary); text-decoration: none; transition: color 0.3s ease; }
.footer-nav a:hover, .footer-nav-legal a:hover { color: var(--secondary-color); }
.footer-bottom-nav { max-width: 1200px; margin: 20px auto; border-top: 1px solid var(--divider); padding-top: 20px; }
.footer-nav-legal { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid var(--divider); margin-top: 30px; max-width: 1200px; margin-left: auto; margin-right: auto; }
.footer-bottom p { margin: 0; color: var(--text-secondary); }
.footer-slot-anchor-inner { min-height: 10px; }

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

  .header-top { min-height: 60px !important; height: 60px !important; padding: 0 15px; position: relative; }
  .header-container { max-width: none; justify-content: space-between; position: relative; height: 100%; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; position: absolute; left: 50%; transform: translateX(-50%); width: calc(100% - 100px); /* Adjust based on hamburger/button width */ }
  .logo img { max-height: 56px !important; max-width: 100%; height: auto; }
  .desktop-nav-buttons { display: none !important; }
  .hamburger-menu { display: block; margin-right: auto; position: relative; z-index: 1001; }

  .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;
    justify-content: center;
    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 {
    min-height: auto !important; height: auto !important;
    position: fixed; top: var(--header-offset); left: 0; width: 280px; height: calc(100% - var(--header-offset));
    background-color: var(--deep-navy); box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); transition: transform 0.3s ease;
    flex-direction: column; justify-content: flex-start; align-items: flex-start;
    padding: 20px 0;
    box-sizing: border-box;
    overflow-y: auto;
    display: none; /* Hidden by default */
  }
  .main-nav.active {
    transform: translateX(0);
    display: flex; /* Display when active */
  }
  .nav-container { flex-direction: column; align-items: flex-start; padding: 0 20px; gap: 15px; width: 100%; max-width: none; }
  .nav-link { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--border-color); }
  .nav-link:last-child { border-bottom: none; }

  .footer-top-grid { grid-template-columns: 1fr; }
  .footer-col { text-align: center; }
  .footer-col h3 { margin-top: 20px; }
  .footer-nav-legal { flex-direction: column; align-items: center; }

  /* Mobile Overflow Protection */
  .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.no-scroll { overflow: 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;
}
