:root { --header-offset: 122px; --primary-color: #26A9E0; --secondary-color: #FFFFFF; --login-color: #EA7C07; --dark-text: #000000; --light-text: #FFFFFF; }

/* Global Reset & Body Padding */
body { margin: 0; font-family: 'Arial', sans-serif; line-height: 1.6; color: #333; padding-top: var(--header-offset); background-color: var(--secondary-color); overflow-x: hidden; }

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

/* Header Top Bar */
.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 25px; }

/* Logo */
.logo { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; font-size: 28px; font-weight: bold; color: var(--light-text); 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 */
.desktop-nav-buttons { display: flex; gap: 12px; align-items: center; }

/* Mobile Nav Buttons (Default Hidden on Desktop) */
.mobile-nav-buttons { box-sizing: border-box; display: none; min-height: 48px; background-color: #F8F8F8; width: 100%; padding: 0 15px; }

/* Main Navigation */
.main-nav { box-sizing: border-box; min-height: 52px; height: 52px; display: flex; align-items: center; overflow: hidden; background-color: var(--dark-text); 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; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 25px; }
.main-nav ul li a { color: var(--light-text); text-decoration: none; font-size: 16px; font-weight: 500; padding: 10px 0; transition: color 0.3s ease; white-space: nowrap; }
.main-nav ul li a:hover { color: var(--primary-color); }

/* Hamburger Menu */
.hamburger-menu { display: none; width: 30px; height: 20px; position: relative; cursor: pointer; flex-direction: column; justify-content: space-between; border: none; background: transparent; padding: 0; z-index: 1002; margin-right: 15px; /* Space between hamburger and logo */ }
.hamburger-menu .bar { display: block; width: 100%; height: 3px; background-color: var(--light-text); border-radius: 3px; transition: all 0.3s ease; }
.hamburger-menu.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
.hamburger-menu.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Overlay */
.overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.5); z-index: 999; }
.overlay.active { display: block; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 25px; font-size: 15px; font-weight: bold; text-decoration: none; transition: all 0.3s ease; cursor: pointer; white-space: nowrap; }
.btn-login { background-color: var(--login-color); color: var(--light-text); box-shadow: 0 4px 8px rgba(234,124,7,0.3); border: none; }
.btn-login:hover { background-color: #D46C00; box-shadow: 0 6px 12px rgba(234,124,7,0.4); }
.btn-register { background-color: var(--primary-color); color: var(--light-text); box-shadow: 0 4px 8px rgba(38,169,224,0.3); border: none; }
.btn-register:hover { background-color: #1F8FCB; box-shadow: 0 6px 12px rgba(38,169,224,0.4); }

/* Footer */
.site-footer { background-color: var(--dark-text); color: #B0B0B0; padding: 50px 0 20px; font-size: 14px; }
.footer-top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto; padding: 0 25px; }
.footer-col h3 { color: var(--light-text); font-size: 18px; margin-bottom: 20px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #B0B0B0; text-decoration: none; transition: color 0.3s ease; }
.footer-col ul li a:hover { color: var(--primary-color); }
.footer-logo { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; font-size: 28px; font-weight: bold; color: var(--light-text); text-decoration: none; display: block; margin-bottom: 15px; }
.footer-description { 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 #333; color: #888; }
.footer-bottom p { margin: 0; }

/* Dynamic Slot Anchors (ensure visibility) */
.footer-slot-anchor, .footer-slot-anchor-inner { min-height: 1px; width: 100%; display: block; }

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

  /* Header Top Bar */
  .header-top { min-height: 60px !important; height: 60px !important; background-color: var(--primary-color); }
  .header-container { width: 100%; max-width: none; padding-left: 15px; padding-right: 15px; justify-content: space-between; position: relative; /* For absolute logo */ }

  /* Logo Centering (Mobile) */
  .logo {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 100px); /* Account for hamburger */
  }
  .logo img { max-height: 56px !important; }

  /* Hamburger Menu (Mobile) */
  .hamburger-menu { display: flex; margin-right: 0; }

  /* Desktop Nav Buttons (Hidden on Mobile) */
  .desktop-nav-buttons { display: none !important; }

  /* Mobile Nav Buttons (Visible on Mobile) */
  .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: #F8F8F8;
  }
  .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 Navigation (Mobile - Off-canvas) */
  .main-nav {
    min-height: 48px !important; height: 48px !important; /* This height is for the nav bar itself, not the full menu */
    display: none; /* Default hidden */
    position: fixed; top: 0; left: 0; width: 80%; max-width: 300px; height: 100vh; overflow-y: auto; background-color: var(--dark-text); transform: translateX(-100%); transition: transform 0.3s ease; z-index: 1001; flex-direction: column; align-items: flex-start; padding-top: var(--header-offset); /* Push content below fixed header */
  }
  .main-nav.active { display: flex; transform: translateX(0); }
  .main-nav .nav-container { width: 100%; max-width: none; padding: 0 15px; height: auto; }
  .main-nav ul { flex-direction: column; width: 100%; gap: 0; }
  .main-nav ul li { border-bottom: 1px solid #333; width: 100%; }
  .main-nav ul li:last-child { border-bottom: none; }
  .main-nav ul li a { padding: 15px 0; display: block; width: 100%; font-size: 16px; }

  /* Overlay for Mobile Menu */
  .overlay { top: 0; left: 0; right: 0; bottom: 0; z-index: 999; }

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

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