:root { --header-offset: 122px; --primary-color: #2F6BFF; --secondary-color: #6FA3FF; --btn-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); --card-bg: #FFFFFF; --bg-color: #F4F7FB; --text-main: #1F2D3D; --text-black: #000000; --border-color: #D6E2FF; --glow-color: #A5C4FF; }

body { font-family: 'Arial', sans-serif; margin: 0; padding-top: var(--header-offset); background-color: var(--bg-color); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }
body.no-scroll { overflow: hidden; }

/* Site Header */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 5px rgba(0,0,0,0.1); background-color: var(--primary-color); }

.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%; color: #fff; 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 { font-size: 28px; font-weight: bold; color: #fff; text-decoration: none; display: flex; align-items: center; height: 100%; white-space: nowrap; }
.logo img { display: block; max-height: 60px; height: auto; width: auto; max-width: 280px; object-fit: contain; }

.hamburger-menu { display: none; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1001; position: relative; width: 30px; height: 24px; margin-right: 15px; }
.hamburger-menu span { display: block; width: 100%; height: 3px; background-color: #fff; margin-bottom: 5px; transition: transform 0.3s ease, opacity 0.3s ease; }
.hamburger-menu span:last-child { margin-bottom: 0; }
.hamburger-menu.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.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(--secondary-color); width: 100%; padding: 0 20px; }

.btn { text-decoration: none; padding: 10px 20px; border-radius: 25px; font-weight: bold; transition: all 0.3s ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.btn-register { background: var(--btn-gradient); border: none; }
.btn-register:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); }
.btn-login { background: #fff; color: var(--primary-color); border: 1px solid #fff; }
.btn-login:hover { background: rgba(255,255,255,0.9); 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(--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-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.nav-list a { text-decoration: none; color: #fff; font-weight: bold; padding: 5px 0; transition: color 0.3s ease; white-space: nowrap; font-size: 15px; }
.nav-list a:hover, .nav-list a.active { color: var(--glow-color); }

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

/* Site Footer */
.site-footer { background-color: var(--bg-color); padding: 40px 20px 20px; color: var(--text-main); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto 40px; }
.footer-col { display: flex; flex-direction: column; }
.footer-logo { font-size: 24px; font-weight: bold; color: var(--primary-color); text-decoration: none; margin-bottom: 15px; display: block; }
.footer-description { margin-bottom: 15px; line-height: 1.8; word-wrap: break-word; overflow-wrap: break-word; color: var(--text-main); }
.footer-title { font-size: 18px; margin-bottom: 20px; color: var(--text-black); 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-main); transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--primary-color); }

.footer-bottom { text-align: center; border-top: 1px solid var(--border-color); padding-top: 20px; margin-top: 20px; color: var(--text-main); }
.footer-bottom a { display: none; } /* 禁止 footer-bottom 内出现任何链接 */

/* Dynamic Slot Anchors */
.footer-slot-anchor-inner { min-height: 1px; }

/* Mobile Styles */
@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 { min-height: 60px !important; height: 60px !important; padding: 0 15px; }
  .header-container { width: 100%; max-width: none; justify-content: space-between; position: relative; }
  
  .hamburger-menu { display: block; order: -1; margin-left: 0; }
  .logo { flex: 1 !important; display: flex !important; justify-content: center !important; align-items: center !important; font-size: 24px; position: absolute; left: 50%; transform: translateX(-50%); max-width: calc(100% - 100px); }
  .logo img { max-height: 56px !important; max-width: 100%; height: auto; }
  
  .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-left: 15px; padding-right: 15px;
    overflow: hidden;
    gap: 10px;
    flex-wrap: nowrap;
    background-color: var(--secondary-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;
    text-align: center;
  }

  .main-nav {
    min-height: auto !important; height: auto !important; max-height: 100vh; /* Ensure menu can grow */
    display: none; /* Hidden by default */
    flex-direction: column;
    position: fixed; top: var(--header-offset); left: 0; width: 80%; max-width: 300px; height: calc(100vh - var(--header-offset));
    background-color: var(--primary-color); /* Darker background for menu */
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease, display 0.3s ease;
    padding-bottom: 20px; /* Add padding for scrollable content */
    overflow-y: auto; /* Enable scrolling for long menus */
  }
  .main-nav.active {
    display: flex; /* Show when active */
    transform: translateX(0); /* Slide into view */
  }
  .nav-container { width: 100%; max-width: none; padding: 0 15px; }
  .nav-list { flex-direction: column; gap: 0; width: 100%; }
  .nav-list li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-list li:last-child { border-bottom: none; }
  .nav-list a { padding: 15px 0; display: block; text-align: left; color: #fff; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-col:first-child { order: -1; }
  .footer-logo { text-align: center; }
  .footer-description { text-align: center; }
  .footer-title { text-align: center; }
  .footer-nav { text-align: center; }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
}
