:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --background-color: #FFFFFF;
  --black-color: #000000;

  /* Neon glow colors - vibrant and dynamic */
  --neon-glow-cyan: #00FFFF;
  --neon-glow-magenta: #FF00FF;
  --neon-glow-yellow: #FFFF00;
  --neon-glow-green: #00FF00;
  --neon-glow-red: #FF4444;

  /* Using primary color as base for theme flow, but glow will be vibrant */
  --neon-primary: var(--neon-glow-cyan);
  --neon-secondary: var(--neon-glow-magenta);
  --neon-accent: var(--neon-glow-yellow);

  /* Header offset based on marquee + header-top + main-nav heights */
  /* Desktop: Marquee(44) + HeaderTop(68) + MainNav(52) = 164px. Add 2px buffer. */
  --header-offset: 166px;
}

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

body.no-scroll {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Keyframe animations for neon effects */
@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%); }
}

@keyframes theme-colors {
  0%, 100% {
    border-color: var(--neon-glow-cyan);
    box-shadow: 0 0 10px var(--neon-glow-cyan), 0 0 20px var(--neon-glow-cyan), inset 0 0 10px rgba(0, 255, 255, 0.3);
  }
  33% {
    border-color: var(--neon-glow-magenta);
    box-shadow: 0 0 10px var(--neon-glow-magenta), 0 0 20px var(--neon-glow-magenta), inset 0 0 10px rgba(255, 0, 255, 0.3);
  }
  66% {
    border-color: var(--neon-glow-yellow);
    box-shadow: 0 0 10px var(--neon-glow-yellow), 0 0 20px var(--neon-glow-yellow), inset 0 0 10px rgba(255, 255, 0, 0.3);
  }
}

@keyframes text-glow-flow {
  0% { text-shadow: 0 0 5px var(--neon-glow-cyan), 0 0 10px var(--neon-glow-cyan), 0 0 15px var(--neon-glow-cyan); color: #ffffff; }
  33% { text-shadow: 0 0 5px var(--neon-glow-magenta), 0 0 10px var(--neon-glow-magenta), 0 0 15px var(--neon-glow-magenta); color: #ffffff; }
  66% { text-shadow: 0 0 5px var(--neon-glow-yellow), 0 0 10px var(--neon-glow-yellow), 0 0 15px var(--neon-glow-yellow); color: #ffffff; }
  100% { text-shadow: 0 0 5px var(--neon-glow-cyan), 0 0 10px var(--neon-glow-cyan), 0 0 15px var(--neon-glow-cyan); color: #ffffff; }
}

/* Marquee Section */
.marquee-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  color: #ffffff;
  overflow: hidden;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow:
    0 0 10px var(--neon-glow-cyan),
    0 0 20px var(--neon-glow-cyan),
    0 0 30px var(--neon-glow-cyan),
    inset 0 0 20px rgba(0, 255, 255, 0.1);
  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-glow-cyan),
    0 0 10px var(--neon-glow-cyan),
    0 0 15px var(--neon-glow-cyan);
  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;
  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-glow-cyan),
    0 0 20px var(--neon-glow-cyan),
    0 0 30px var(--neon-glow-cyan),
    0 0 40px var(--neon-glow-cyan);
  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-glow-cyan),
    0 0 6px var(--neon-glow-cyan);
}

/* Site Header */
.site-header {
  position: fixed;
  top: 44px;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  box-sizing: border-box;
}

.header-top {
  box-sizing: border-box;
  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-glow-magenta),
    0 0 20px var(--neon-glow-magenta),
    0 0 30px var(--neon-glow-magenta),
    inset 0 0 20px rgba(255, 0, 255, 0.1);
}

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

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  text-decoration: none;
  display: block;
  flex-shrink: 0;
  padding: 5px 0;
}

.desktop-nav-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* Main Navigation */
.main-nav {
  box-sizing: border-box;
  height: 52px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite reverse;
  box-shadow:
    0 0 10px var(--neon-glow-yellow),
    0 0 20px var(--neon-glow-yellow),
    0 0 30px var(--neon-glow-yellow),
    inset 0 0 20px rgba(255, 255, 0, 0.1);
}

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

.nav-link {
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  padding: 0 15px;
  line-height: 52px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
  text-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color);
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px;
  box-sizing: content-box;
  flex-shrink: 0;
  margin-right: 15px;
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow:
    0 0 5px var(--neon-glow-cyan),
    0 0 10px var(--neon-glow-cyan),
    inset 0 0 5px rgba(0, 255, 255, 0.2);
  border-radius: 4px;
}

.hamburger-menu.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.hamburger-menu span {
  display: block;
  height: 3px;
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
  text-shadow: 0 0 3px #ffffff, 0 0 6px #ffffff;
}

/* Mobile Nav Buttons (Desktop hidden) */
.mobile-nav-buttons {
  display: none;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  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.visible {
  opacity: 1;
  visibility: visible;
}

/* Buttons */
.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-glow-cyan), var(--neon-glow-magenta));
  padding: 12px 25px;
  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-glow-cyan);
  transition: all 0.3s ease;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  cursor: pointer;
}

.btn:hover {
  animation-duration: 2s;
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 15px var(--neon-glow-cyan),
    0 0 30px var(--neon-glow-cyan),
    inset 0 0 15px rgba(0, 255, 255, 0.5);
}

/* Footer */
.site-footer {
  background: #1a1a2e;
  color: #ffffff;
  padding: 40px 20px 20px;
  font-size: 14px;
  box-sizing: border-box;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 30px;
}

.footer-col {
  padding: 10px 0;
}

.footer-logo {
  font-size: 22px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 15px;
  display: block;
}

.footer-description {
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

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

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

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

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

.footer-dynamic-col .footer-slot-anchor-inner {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 5px;
}
.footer-dynamic-col .footer-slot-anchor-inner img {
  max-height: 50px;
  height: auto;
  width: auto;
  object-fit: contain;
}

.footer-mid-slots {
  max-width: 1200px;
  margin: 0 auto 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-dynamic-row {
  margin-bottom: 20px;
}

.footer-dynamic-row .footer-slot-anchor-inner {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}
.footer-dynamic-row .footer-slot-anchor-inner img {
  max-height: 50px;
  height: auto;
  width: auto;
  object-fit: contain;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

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

  .marquee-section { height: 36px; }
  .marquee-container { gap: 10px; padding: 0 12px; }
  .marquee-icon { width: 20px; height: 20px; }
  .marquee-icon-emoji { font-size: 14px; }
  .marquee-text { font-size: 14px; }
  .marquee-separator { font-size: 14px; margin: 0 10px; }
  .marquee-content { animation-duration: 25s; }

  .site-header { top: 36px; }

  .header-top { height: 60px; padding: 0 15px; }
  .header-container {
    padding: 0 15px;
    width: 100%;
    max-width: none;
    position: relative;
    justify-content: flex-start;
  }

  .hamburger-menu {
    display: flex;
    margin-right: 0;
    order: 1;
    width: 24px;
    height: 20px;
    padding: 8px;
  }

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

  .desktop-nav-buttons {
    display: none;
  }

  .mobile-nav-buttons {
    display: flex !important;
    justify-content: center;
    gap: 10px;
    padding: 8px 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    flex-wrap: nowrap;
    background: linear-gradient(135deg, #16213e, #0f3460);
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite reverse;
    box-shadow:
      0 0 8px var(--neon-glow-red),
      0 0 16px var(--neon-glow-red),
      inset 0 0 10px rgba(255, 68, 68, 0.1);
  }

  .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 {
    display: none;
    position: fixed;
    top: var(--header-offset);
    left: 0;
    width: 250px;
    height: calc(100% - var(--header-offset));
    flex-direction: column;
    background: linear-gradient(180deg, #0a0a0a, #1a1a2e);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    padding-top: 20px;
    border-right: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
    box-shadow:
      5px 0 15px rgba(0, 0, 0, 0.5),
      0 0 10px var(--neon-glow-cyan),
      0 0 20px var(--neon-glow-cyan);
  }

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

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

  .nav-link {
    width: 100%;
    padding: 12px 0;
    text-align: left;
    line-height: normal;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-link:last-child { border-bottom: none; }

  .mobile-menu-overlay.visible {
    top: 0;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-col { padding: 0; text-align: center; }
  .footer-logo { text-align: center; margin-bottom: 10px; }
  .footer-description { text-align: center; }
  .footer-heading { text-align: center; }
  .footer-nav { text-align: center; }
  .footer-nav li { display: inline-block; margin: 0 5px 5px; }
  .footer-nav a { font-size: 13px; }

  .footer-dynamic-col .footer-slot-anchor-inner,
  .footer-dynamic-row .footer-slot-anchor-inner {
    justify-content: center;
  }
  .footer-bottom {
    padding-left: 15px;
    padding-right: 15px;
  }

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