:root { --header-offset: 122px; --primary-color: #2F6BFF; --secondary-color: #6FA3FF; --card-bg: #FFFFFF; --page-bg: #F4F7FB; --text-main: #1F2D3D; --text-black: #000000; --border-color: #D6E2FF; --glow-color: #A5C4FF; }

html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, sans-serif; line-height: 1.6; color: var(--text-main); padding-top: var(--header-offset); overflow-x: hidden; }

a { text-decoration: none; color: var(--primary-color); }
a:hover { text-decoration: underline; }

.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; text-decoration: none; border: none; font-size: 15px; }
.btn-primary { background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); color: #FFFFFF; box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3); }
.btn-primary:hover { opacity: 0.9; box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4); }
.btn-secondary { background: var(--secondary-color); color: #FFFFFF; box-shadow: 0 4px 10px rgba(111, 163, 255, 0.3); }
.btn-secondary:hover { opacity: 0.9; box-shadow: 0 6px 15px rgba(111, 163, 255, 0.4); }

/* 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.1); background-color: var(--card-bg); }

.header-top { box-sizing: border-box; min-height: 68px; 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 20px; }

.logo { font-size: 28px; font-weight: bold; color: #FFFFFF; text-decoration: none; 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); border-bottom: 1px solid var(--border-color); }

.main-nav { box-sizing: border-box; min-height: 52px; height: 52px; display: flex; align-items: center; overflow: hidden; background-color: var(--secondary-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; }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 25px; }
.nav-menu li a { color: #FFFFFF; font-weight: bold; font-size: 15px; padding: 5px 0; display: block; white-space: nowrap; }
.nav-menu li a:hover { text-decoration: underline; }

.hamburger-menu { display: none; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1001; }
.hamburger-icon { display: block; width: 25px; height: 3px; background-color: #FFFFFF; position: relative; transition: background-color 0.3s ease; }
.hamburger-icon::before, .hamburger-icon::after { content: ''; display: block; width: 25px; height: 3px; background-color: #FFFFFF; position: absolute; left: 0; transition: transform 0.3s ease; }
.hamburger-icon::before { top: -8px; }
.hamburger-icon::after { bottom: -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); }

/* Footer Styles */
.site-footer { background-color: var(--page-bg); padding: 40px 20px 20px; color: var(--text-main); font-size: 14px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto 30px; }
.footer-col h3 { font-size: 18px; margin-bottom: 15px; color: var(--text-black); }
.footer-col .footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-col .footer-nav li { margin-bottom: 8px; }
.footer-col .footer-nav li a { color: var(--text-main); display: block; }
.footer-col .footer-nav li a:hover { color: var(--primary-color); text-decoration: underline; }
.footer-logo { font-size: 24px; font-weight: bold; color: var(--primary-color); text-decoration: none; margin-bottom: 15px; display: block; }
.footer-description { color: var(--text-main); line-height: 1.8; word-wrap: break-word; overflow-wrap: break-word; }
.footer-bottom { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border-color); color: var(--text-main); }
.footer-bottom p { margin: 0; }

/* Dynamic Slot Anchors - Must remain empty and visible */
.footer-slot-anchor-inner { min-height: 1px; }

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

  /* Mobile Header Top */
  .header-top { min-height: 60px !important; height: 60px !important; }
  .header-container { width: 100%; max-width: none; padding: 0 15px; position: relative; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 24px; }
  .logo img { max-height: 56px !important; max-width: 100%; height: auto; }
  .desktop-nav-buttons { display: none !important; }
  .hamburger-menu { display: block; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); }

  /* Mobile Buttons Section */
  .mobile-nav-buttons {
    display: flex !important;
    min-height: 48px;
    align-items: center;
    width: 100%; max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: center;
  }
  .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;
  }

  /* Mobile Main Nav (Hamburger Menu Content) */
  .main-nav {
    display: none; /* Hidden by default */
    position: fixed; top: var(--header-offset); left: 0; width: 70%; height: calc(100% - var(--header-offset));
    background-color: var(--secondary-color); /* Same as desktop main nav, but for mobile menu */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-sizing: border-box;
    z-index: 999;
  }
  .main-nav.active {
    display: flex; /* Show when active */
    transform: translateX(0); /* Slide into view */
  }
  .nav-container { width: 100%; max-width: none; padding: 0; height: auto; }
  .nav-menu { flex-direction: column; gap: 15px; width: 100%; }
  .nav-menu li a { font-size: 16px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
  .nav-menu li:last-child a { border-bottom: none; }

  /* Overlay for mobile menu */
  .overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 998; }
  .overlay.active { display: block; }

  /* Footer Mobile */
  .footer-top-grid { grid-template-columns: 1fr; }
  .footer-col { margin-bottom: 20px; }
  .footer-col:last-child { margin-bottom: 0; }

  /* 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;
}
