:root { --header-offset: 122px; --primary-color: #2F6BFF; --accent-color: #6FA3FF; --text-main-color: #1F2D3D; --bg-color: #F4F7FB; --card-bg-color: #FFFFFF; --border-color: #D6E2FF; --glow-color: #A5C4FF; }
body { margin: 0; font-family: 'Arial', sans-serif; line-height: 1.6; color: var(--text-main-color); background-color: var(--bg-color); padding-top: var(--header-offset); overflow-x: hidden; }

/* --- General Styles --- */
a { text-decoration: none; color: var(--primary-color); }
a:hover { text-decoration: underline; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 25px; font-weight: bold; color: #FFFFFF; background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); border: none; cursor: pointer; transition: all 0.3s ease; text-decoration: none; white-space: nowrap; box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3); }
.btn:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4); }

/* --- Header Styles --- */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); background-color: var(--card-bg-color); /* Fallback, actual colors defined below */ }

.header-top { box-sizing: border-box; min-height: 68px; height: 68px; display: flex; align-items: center; overflow: hidden; background-color: var(--primary-color); color: #FFFFFF; width: 100%; padding: 0 20px; /* Add padding to header-top itself */ }
.header-top .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 { font-size: 28px; font-weight: bold; color: #FFFFFF; text-decoration: none; display: flex; align-items: center; 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(--accent-color); /* Different color for mobile buttons */ width: 100%; padding: 0 15px; }

.main-nav { box-sizing: border-box; min-height: 52px; height: 52px; display: flex; align-items: center; overflow: hidden; background-color: var(--bg-color); /* Lighter color for main nav */ width: 100%; color: var(--text-main-color); }
.main-nav .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; }
.main-nav .nav-link { display: flex; align-items: center; padding: 0 15px; height: 100%; color: var(--text-main-color); font-weight: bold; transition: background-color 0.3s ease; white-space: nowrap; }
.main-nav .nav-link:hover { background-color: rgba(47, 107, 255, 0.1); text-decoration: none; }

.hamburger-menu { display: none; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; cursor: pointer; padding: 5px; z-index: 1001; }
.hamburger-menu .bar { width: 100%; height: 3px; background-color: #FFFFFF; transition: all 0.3s ease; }
.hamburger-menu.active .bar:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
.hamburger-menu.active .bar:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

.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 Styles --- */
.site-footer { background-color: var(--text-main-color); color: #FFFFFF; padding: 40px 0 20px; font-size: 14px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-col h3 { font-size: 18px; margin-bottom: 15px; color: var(--accent-color); }
.footer-col .footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-col .footer-nav li { margin-bottom: 8px; }
.footer-col .footer-nav a { color: #FFFFFF; transition: color 0.3s ease; }
.footer-col .footer-nav a:hover { color: var(--accent-color); text-decoration: none; }
.footer-logo { font-size: 24px; font-weight: bold; color: #FFFFFF; text-decoration: none; display: block; margin-bottom: 15px; }
.footer-description { color: #CCCCCC; line-height: 1.8; word-wrap: break-word; overflow-wrap: break-word; }

.footer-bottom { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #CCCCCC; }
.footer-bottom p { margin: 0; }

/* Anchor slots */
.footer-slot-anchor-inner { min-height: 1px; }

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

  /* Mobile Header Top */
  .header-top { min-height: 60px !important; height: 60px !important; padding: 0 15px; }
  .header-top .header-container { width: 100%; max-width: none; padding: 0; position: relative; justify-content: center; /* Center logo */ }
  .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: flex; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); }

  /* Mobile Buttons */
  .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(--accent-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; }

  /* Mobile Main Nav (Hamburger Menu Content) */
  .main-nav { display: none; position: fixed; top: var(--header-offset); left: 0; width: 280px; height: calc(100vh - var(--header-offset)); background-color: var(--card-bg-color); /* Use card background for menu */ flex-direction: column; justify-content: flex-start; align-items: flex-start; padding: 20px 0; box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1); transform: translateX(-100%); transition: transform 0.3s ease; z-index: 999; overflow-y: auto; }
  .main-nav.active { display: flex; transform: translateX(0); }
  .main-nav .nav-container { flex-direction: column; width: 100%; max-width: none; padding: 0; align-items: flex-start; }
  .main-nav .nav-link { width: 100%; padding: 12px 20px; border-bottom: 1px solid var(--border-color); color: var(--text-main-color); }
  .main-nav .nav-link:last-child { border-bottom: none; }

  /* Footer Mobile */
  .footer-top-grid { grid-template-columns: 1fr; padding: 0 15px; }

  /* Mobile content overflow fix */
  .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;
  }
}
