:root {
  --primary-color: #26A9E0; /* Light blue */
  --secondary-color: #FFFFFF; /* White */
  --login-color: #EA7C07; /* Orange */
  --background-color: #FFFFFF; /* White */
  --black-color: #000000; /* Black */

  /* Neon dynamic colors - based on primary/secondary/accent */
  --neon-primary: var(--primary-color); /* #26A9E0 */
  --neon-secondary: #00ffff; /* Cyan for contrast */
  --neon-accent: #ff00ff; /* Magenta for contrast */
  --neon-dark-bg-1: #0a0a0a;
  --neon-dark-bg-2: #1a1a2e;
  --neon-dark-bg-3: #16213e;

  /* Header offset for fixed elements */
  --header-offset: 166px; /* Desktop: Marquee(44) + HeaderTop(68) + MainNav(52) = 164 + 2px buffer */
}

body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  color: #ffffff;
  background-color: var(--background-color);
  padding-top: var(--header-offset); /* Only one padding-top for body */
  overflow-x: hidden; /* Prevent horizontal scroll on desktop */
}

/* Base Neon Animations */
@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;
  }
}

/* Marquee Section */
.marquee-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 44px; /* Desktop fixed height */
  box-sizing: border-box;
  background: linear-gradient(135deg, var(--neon-dark-bg-1), var(--neon-dark-bg-2), var(--neon-dark-bg-3));
  color: #ffffff;
  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),
    0 0 30px var(--neon-primary),
    inset 0 0 20px rgba(38, 169, 224, 0.1); /* Using primary color for rgba */
  z-index: 1001;
}

.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));
}

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

.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);
}

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

/* Site Header */
.site-header {
  position: fixed;
  top: 44px; /* Located below marquee */
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(135deg, var(--neon-dark-bg-1), var(--neon-dark-bg-2), var(--neon-dark-bg-3));
  color: var(--secondary-color);
}

.header-top {
  box-sizing: border-box;
  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),
    0 0 30px var(--neon-primary),
    inset 0 0 20px rgba(38, 169, 224, 0.1); /* Using primary color for rgba */
}

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

/* LOGO - NO NEON EFFECT */
.logo {
  color: var(--secondary-color); /* White for clear contrast */
  font-weight: bold;
  font-size: 28px;
  text-decoration: none;
  display: block;
  /* Ensure no neon effects are applied */
  text-shadow: none;
  box-shadow: none;
  filter: none;
  transition: none;
  animation: none;
  order: 2; /* For mobile centering */
}
.logo img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 60px; /* Desktop max height */
  object-fit: contain;
}

/* Hamburger Menu (Desktop Hidden) */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  z-index: 1002; /* Above mobile menu overlay */
  order: 1; /* For mobile positioning */
  position: relative;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--neon-primary);
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
  box-shadow: 
    0 0 5px var(--neon-primary),
    0 0 10px var(--neon-primary);
}

/* Main Navigation (Desktop) */
.main-nav {
  box-sizing: border-box;
  min-height: 52px; /* Desktop fixed height */
  height: 52px;
  display: flex; /* Desktop default: flex */
  flex-direction: row; /* Desktop default: row */
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); /* Different dark background for contrast */
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite reverse; /* Different animation for contrast */
  box-shadow: 
    0 0 10px var(--neon-secondary),
    0 0 20px var(--neon-secondary),
    0 0 30px var(--neon-secondary),
    inset 0 0 20px rgba(0, 255, 255, 0.1); /* Using secondary neon color for rgba */
  position: static; /* Desktop default: static */
  width: 100%;
}

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

.nav-link {
  color: var(--secondary-color);
  text-decoration: none;
  padding: 10px 15px;
  font-weight: 500;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--neon-primary); /* Use a neon color on hover */
  text-shadow: 
    0 0 5px var(--neon-primary),
    0 0 10px var(--neon-primary);
}

/* Desktop Buttons */
.desktop-nav-buttons {
  display: flex; /* Desktop default: flex */
  gap: 10px;
  order: 3; /* For mobile positioning balance */
}

/* Mobile Buttons (Desktop Hidden) */
.mobile-nav-buttons {
  display: none; /* Hidden on desktop */
  width: 100%;
  box-sizing: border-box;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--neon-dark-bg-1), var(--neon-dark-bg-2), var(--neon-dark-bg-3));
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow: 
    0 0 5px var(--neon-primary),
    0 0 10px var(--neon-primary);
  z-index: 999; /* Below header-top and main-nav */
  min-height: 48px; /* Mobile fixed height */
  height: auto;
  align-items: center;
  justify-content: center;
}

/* Buttons */
.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-primary), var(--login-color)); /* Mix primary and login color */
  padding: 12px 30px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  text-shadow: 
    0 0 5px #ffffff,
    0 0 10px var(--neon-primary);
  transition: all 0.3s ease;
  font-weight: 600;
  white-space: nowrap; /* Prevent button text from wrapping on desktop */
}

.btn:hover {
  animation-duration: 2s;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 0 15px var(--neon-primary),
    0 0 30px var(--neon-primary),
    inset 0 0 15px rgba(38, 169, 224, 0.5); /* Using primary color for rgba */
}

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

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Footer */
.site-footer {
  background: #1a1a2e; /* Dark background for footer, no neon */
  color: #cccccc;
  padding: 40px 20px 20px;
  font-size: 14px;
  line-height: 1.6;
}

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

.footer-col h3 {
  color: var(--secondary-color);
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 600;
}

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

.footer-col .footer-description {
  color: #aaaaaa;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

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

.footer-nav a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-dynamic-col .footer-slot-anchor-inner,
.footer-dynamic-row .footer-slot-anchor-inner {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px; /* For mid rows */
  width: 100%;
}
.footer-dynamic-col .footer-slot-anchor-inner {
    gap: 5px; /* For column slot */
}

.footer-dynamic-row {
  max-width: 1200px;
  margin: 20px auto;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-dynamic-row:last-of-type {
  border-bottom: none; /* No border for the last dynamic row before copyright */
  margin-bottom: 0;
  padding-bottom: 0;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: #888888;
  padding-top: 20px;
}
.footer-bottom p {
  margin: 0;
}
.footer-bottom a { /* IMPORTANT: NO LINKS IN FOOTER BOTTOM */
  display: none; /* Ensure no links are visible if accidentally placed */
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --header-offset: 146px; /* Mobile: Marquee(36) + HeaderTop(60) + MobileNavButtons(48) = 144 + 2px buffer */
  }

  /* Marquee Mobile */
  .marquee-section {
    height: 36px !important;
  }
  .marquee-container {
    gap: 10px !important;
    padding: 0 12px !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 Mobile */
  .site-header {
    top: 36px; /* Below mobile marquee */
  }

  .header-top {
    min-height: 60px !important;
    height: 60px !important;
    border-bottom: none; /* Remove border for mobile */
    box-shadow: none; /* Remove shadow for mobile */
  }

  .header-container {
    width: 100%;
    max-width: none; /* Mobile: Occupy full width */
    padding: 0 15px;
    justify-content: space-between; /* Hamburger left, Logo center, space right */
  }

  .hamburger-menu {
    display: flex; /* Visible on mobile */
    order: 1; /* Position left */
    width: 25px;
    height: 20px;
  }
  .hamburger-menu.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .hamburger-menu.active span:nth-child(2) { opacity: 0; }
  .hamburger-menu.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  /* LOGO Centering on Mobile */
  .logo {
    flex: 1 !important; /* Allow logo to take available space */
    display: flex !important; /* Use flex to center its content */
    justify-content: center !important; /* Center horizontally */
    align-items: center !important; /* Center vertically */
    order: 2; /* Position in middle */
    font-size: 22px;
    max-width: calc(100% - 80px); /* Adjust max-width to not overlap with hamburger */
  }
  .logo img {
    max-height: 56px !important; /* Mobile max height */
  }

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

  /* Mobile Nav Buttons - ALWAYS VISIBLE */
  .mobile-nav-buttons {
    display: flex !important; /* Force display on mobile */
    flex-wrap: nowrap; /* Prevent buttons from wrapping */
    gap: 10px;
    justify-content: center;
    padding: 8px 15px; /* Adjust padding */
    min-height: 48px;
    height: auto; /* Allow height to adjust if text wraps */
    border-top: 2px solid;
    animation: theme-colors 4s ease-in-out infinite reverse;
    box-shadow: 
      0 0 5px var(--neon-secondary),
      0 0 10px var(--neon-secondary);
  }

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

  .main-nav {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: 144px; /* Below marquee(36) + header-top(60) + mobile-nav-buttons(48) = 144px */
    left: 0;
    width: 100%;
    height: calc(100vh - 144px); /* Full height below header */
    background: linear-gradient(180deg, var(--neon-dark-bg-2), var(--neon-dark-bg-1)); /* Darker background for menu */
    flex-direction: column; /* Vertical menu */
    justify-content: flex-start;
    align-items: center;
    padding-top: 20px;
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;
    transform: translateX(-100%); /* Hidden off-screen */
    z-index: 1000; /* Above overlay, below hamburger */
    border: none; /* Remove desktop borders */
    box-shadow: none; /* Remove desktop shadows */
  }

  .main-nav.active {
    display: flex; /* Show menu when active */
    transform: translateX(0); /* Slide in */
  }

  .nav-container {
    flex-direction: column;
    padding: 0 15px;
    max-width: none; /* Mobile: Occupy full width */
    height: auto;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-link:last-child {
    border-bottom: none;
  }

  .mobile-menu-overlay {
    top: 0; /* Cover entire screen */
    height: 100vh;
  }

  /* Footer Mobile */
  .site-footer {
    padding: 30px 15px;
  }
  .footer-top-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
    margin-bottom: 20px;
  }
  .footer-col {
    text-align: center;
  }
  .footer-col h3 {
    text-align: center;
  }
  .footer-nav {
    text-align: center;
  }
  .footer-dynamic-col .footer-slot-anchor-inner,
  .footer-dynamic-row .footer-slot-anchor-inner {
    justify-content: center;
  }
  .footer-dynamic-row {
    margin: 15px auto;
  }
}

/* Mobile overflow prevention */
@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;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
