:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --card-bg: #11271B;
    --bg: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;

    /* Neon Colors based on site scheme, using glow-color for primary neon */
    --neon-primary: var(--glow-color); /* #57E38D */
    --neon-secondary: var(--primary-color); /* #11A84E */
    --neon-accent: var(--gold-color); /* #F2C14E */

    /* Header Offset Calculation */
    --header-offset: 166px; /* Desktop: Marquee 44 + Header Top 68 + Main Nav 52 + 2px buffer */
  }

  body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    color: var(--text-main);
    background-color: var(--bg);
    padding-top: var(--header-offset); /* Apply header offset */
    overflow-x: hidden; /* Prevent horizontal scroll for desktop */
  }

  /* Animations for Neon Effects */
  @keyframes theme-colors {
    0%, 100% {
      border-color: var(--neon-primary);
      box-shadow:
        0 0 10px var(--neon-primary),
        0 0 20px var(--neon-primary);
    }
    33% {
      border-color: var(--neon-secondary);
      box-shadow:
        0 0 10px var(--neon-secondary),
        0 0 20px var(--neon-secondary);
    }
    66% {
      border-color: var(--neon-accent);
      box-shadow:
        0 0 10px var(--neon-accent),
        0 0 20px var(--neon-accent);
    }
  }

  @keyframes text-glow-flow {
    0% {
      text-shadow:
        0 0 5px var(--neon-primary),
        0 0 10px var(--neon-primary),
        0 0 15px var(--neon-primary);
      color: #ffffff;
    }
    50% {
      text-shadow:
        0 0 5px var(--neon-secondary),
        0 0 10px var(--neon-secondary),
        0 0 15px var(--neon-secondary);
      color: #ffffff;
    }
    100% {
      text-shadow:
        0 0 5px var(--neon-accent),
        0 0 10px var(--neon-accent),
        0 0 15px var(--neon-accent);
      color: #ffffff;
    }
  }

  @keyframes marquee-pulse {
    0%, 100% {
      transform: scale(1);
      opacity: 1;
    }
    50% {
      transform: scale(1.15);
      opacity: 0.9;
    }
  }

  @keyframes marquee-scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }

  /* Marquee Section (Mandatory, Topmost) */
  .marquee-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 44px; /* Desktop fixed height */
    box-sizing: border-box;
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e); /* Dark background */
    color: #ffffff;
    overflow: hidden;
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite; /* Dynamic border color */
    box-shadow:
      0 0 10px var(--neon-primary),
      0 0 20px var(--neon-primary),
      0 0 30px var(--neon-primary),
      inset 0 0 20px rgba(87, 227, 141, 0.1); /* Use glow-color for inset */
    z-index: 1001; /* Above header */
    display: flex; /* Ensure flex context for container */
  }

  .marquee-container {
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .marquee-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    z-index: 2;
    position: relative;
  }

  .marquee-icon-emoji {
    font-size: 24px;
    display: inline-block;
    animation: marquee-pulse 2s ease-in-out infinite, text-glow-flow 3s ease-in-out infinite alternate;
    text-shadow:
      0 0 5px var(--neon-primary),
      0 0 10px var(--neon-primary),
      0 0 15px var(--neon-primary);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  }

  .marquee-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
  }

  .marquee-content {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: marquee-scroll 30s linear infinite;
    gap: 30px;
  }

  .marquee-text {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    text-shadow:
      0 0 5px var(--neon-primary),
      0 0 10px var(--neon-primary),
      0 0 15px var(--neon-primary);
    line-height: 1.5;
    display: inline-block;
    vertical-align: middle;
    animation: text-glow-flow 3s ease-in-out infinite alternate;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .marquee-text:hover {
    text-shadow:
      0 0 10px var(--neon-primary),
      0 0 20px var(--neon-primary),
      0 0 30px var(--neon-primary),
      0 0 40px var(--neon-primary);
    transform: scale(1.05);
    color: #ffffff;
  }

  .marquee-separator {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 15px;
    text-shadow:
      0 0 3px var(--neon-primary),
      0 0 6px var(--neon-primary);
  }

  /* Header Section */
  .site-header {
    position: fixed;
    top: 44px; /* Below marquee */
    left: 0;
    width: 100%;
    z-index: 1000; /* Below marquee, above content */
    box-sizing: border-box;
  }

  .header-top {
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
    color: var(--text-main);
    min-height: 68px; /* Desktop fixed height */
    height: 68px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
    box-shadow:
      0 0 10px var(--neon-primary),
      0 0 20px var(--neon-primary),
      inset 0 0 10px rgba(87, 227, 141, 0.2);
  }

  .header-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    height: 100%;
  }

  .logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-main); /* Regular color, no neon for logo */
    text-decoration: none;
    display: block;
    padding: 0; /* Ensure no extra padding affecting alignment */
  }

  .logo img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 60px; /* Max height for desktop logo */
    object-fit: contain;
  }

  /* Hamburger Menu (Mobile Only) */
  .hamburger-menu {
    display: none; /* Hidden by default on desktop */
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1002; /* Above mobile menu */
  }

  .hamburger-icon {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--neon-primary); /* Neon color */
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px var(--neon-primary), 0 0 10px var(--neon-primary);
  }

  .hamburger-icon:nth-child(1) { top: 0; }
  .hamburger-icon:nth-child(2) { top: 50%; transform: translateY(-50%); }
  .hamburger-icon:nth-child(3) { bottom: 0; }

  .hamburger-menu.active .hamburger-icon:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
  }
  .hamburger-menu.active .hamburger-icon:nth-child(2) {
    opacity: 0;
  }
  .hamburger-menu.active .hamburger-icon:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
  }

  /* Desktop Nav Buttons */
  .desktop-nav-buttons {
    display: flex; /* Visible on desktop */
    gap: 12px;
    align-items: center;
  }

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

  /* Main Navigation */
  .main-nav {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); /* Darker gradient for contrast */
    min-height: 52px; /* Desktop fixed height */
    height: 52px;
    display: flex; /* Visible on desktop */
    align-items: center;
    overflow: hidden;
    border-top: 2px solid;
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite reverse;
    box-shadow:
      0 0 10px var(--neon-secondary),
      0 0 20px var(--neon-secondary),
      inset 0 0 10px rgba(17, 168, 78, 0.2); /* Use primary-color for inset */
  }

  .nav-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    height: 100%;
  }

  .nav-link {
    color: var(--text-main); /* Regular color for nav links */
    text-decoration: none;
    font-size: 16px;
    padding: 10px 15px;
    transition: color 0.3s ease, background-color 0.3s ease;
    white-space: nowrap;
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--neon-primary);
    background-color: rgba(87, 227, 141, 0.1); /* Subtle background */
    border-radius: 4px;
  }

  /* Buttons */
  .btn {
    position: relative;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Specific button gradient */
    padding: 12px 20px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    border: 2px solid;
    animation: theme-colors 4s ease-in-out infinite; /* Dynamic border color */
    font-size: 15px;
    font-weight: bold;
    text-shadow:
      0 0 5px #ffffff,
      0 0 10px var(--neon-primary);
    transition: all 0.3s ease;
    white-space: nowrap;
  }

  .btn:hover {
    animation-duration: 2s;
    transform: translateY(-2px);
    box-shadow:
      0 0 15px var(--neon-primary),
      0 0 30px var(--neon-primary),
      inset 0 0 15px rgba(87, 227, 141, 0.3);
  }

  /* Mobile Menu Overlay */
  .mobile-menu-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999; /* Below mobile menu */
    transition: opacity 0.3s ease;
    opacity: 0;
  }

  .mobile-menu-overlay.active {
    display: block;
    opacity: 1;
  }

  /* Footer Section */
  .site-footer {
    background-color: var(--bg); /* Dark background */
    color: var(--text-secondary);
    padding: 40px 20px 20px;
    font-size: 14px;
    line-height: 1.6;
    box-sizing: border-box;
  }

  .footer-top-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--divider-color);
  }

  .footer-col h3 {
    color: var(--text-main);
    font-size: 16px;
    margin-bottom: 15px;
  }

  .footer-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-main);
    text-decoration: none;
    display: block;
    margin-bottom: 15px;
  }

  .footer-description {
    color: var(--text-secondary);
  }

  .footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .footer-nav li {
    margin-bottom: 8px;
  }

  .footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .footer-nav a:hover {
    color: var(--neon-primary);
  }

  .footer-bottom {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    color: var(--text-secondary);
    border-top: 1px solid var(--divider-color);
  }

  .footer-bottom p {
    margin: 0;
  }

  /* Dynamic Slot Styling (hidden by default, content injected by system) */
  .footer-slot-anchor-inner {
    min-height: 1px;
    width: 100%;
  }

  /* Responsive Design */
  @media (max-width: 768px) {
    :root {
      --header-offset: 146px; /* Mobile: Marquee 36 + Header Top 60 + Mobile Nav Buttons 48 + 2px buffer */
    }

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

    .marquee-section {
      height: 36px !important;
      padding-top: 0 !important;
      padding-bottom: 0 !important;
    }

    .marquee-container {
      gap: 10px !important;
      padding: 0 12px !important;
      height: 100% !important;
    }

    .marquee-icon {
      width: 20px !important;
      height: 20px !important;
    }

    .marquee-icon-emoji {
      font-size: 14px !important;
    }

    .marquee-text {
      font-size: 14px !important;
    }

    .marquee-separator {
      font-size: 14px !important;
      margin: 0 10px !important;
    }

    .marquee-content {
      gap: 20px;
      animation: marquee-scroll 25s linear infinite;
    }

    .site-header {
      top: 36px; /* Below marquee */
    }

    .header-top {
      min-height: 60px !important;
      height: 60px !important;
      padding: 0 15px; /* Adjust padding for mobile */
    }

    .header-container {
      padding: 0; /* Reset padding, as header-top has it */
      width: 100%; /* Occupy full width */
      max-width: none; /* No max-width on mobile */
      position: relative;
    }

    .hamburger-menu {
      display: block;
      order: 0;
    }

    .logo {
      flex: 1 !important;
      display: flex !important;
      justify-content: center !important;
      align-items: center !important;
      font-size: 22px;
      order: 1;
      max-width: calc(100% - 60px);
    }

    .logo img {
      max-height: 56px !important;
    }

    /* Hide desktop buttons on mobile */
    .desktop-nav-buttons {
      display: none !important;
    }

    /* Show mobile buttons on mobile */
    .mobile-nav-buttons {
      display: flex !important;
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
      padding: 10px 15px;
      overflow: hidden;
      gap: 10px;
      justify-content: center;
      flex-wrap: nowrap;
      background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
      border-bottom: 1px solid var(--divider-color);
      min-height: 48px;
      align-items: center;
    }

    .mobile-nav-buttons .btn {
      flex: 1;
      min-width: 0;
      max-width: calc(50% - 5px);
      padding: 8px 12px;
      font-size: 13px;
      white-space: normal;
      word-wrap: break-word;
      overflow-wrap: break-word;
      text-align: center;
    }

    /* Main Nav (Mobile) */
    .main-nav {
      position: fixed;
      top: 144px; /* Below header-top and mobile-nav-buttons */
      left: 0;
      width: 100%;
      height: calc(100% - 144px); /* Full height below header */
      background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
      transform: translateX(-100%); /* Hidden by default */
      transition: transform 0.3s ease-in-out;
      flex-direction: column;
      justify-content: flex-start;
      align-items: flex-start;
      padding: 20px;
      box-sizing: border-box;
      overflow-y: auto;
      display: none; /* Hidden by default, JS toggles to flex */
      border: none;
      box-shadow: none;
      z-index: 1000;
    }

    .main-nav.active {
      transform: translateX(0);
      display: flex;
    }

    .nav-container {
      flex-direction: column;
      align-items: flex-start;
      padding: 0;
      width: 100%;
      max-width: none;
    }

    .nav-link {
      width: 100%;
      padding: 12px 0;
      font-size: 18px;
      border-bottom: 1px solid var(--divider-color);
    }

    .nav-link:last-child {
      border-bottom: none;
    }

    .footer-top-grid {
      grid-template-columns: 1fr;
    }

    .footer-col {
      margin-bottom: 20px;
    }

    .footer-col:last-child {
      margin-bottom: 0;
    }
  }

  /* Body no-scroll class for mobile menu */
  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;
  }
}
