body {
  margin: 0;
  font-family: 'Maple Mono NF', 'JetBrains Mono NF', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background-color: #121212;
  color: #ffffff;
}

.container {
  margin-top: 100px !important;
}

/* 加载器容器样式 */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-in-out;
}

/* 加载动画样式 */
.loader {
  width: 60px;
  height: 60px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #002FA7;
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
}

/* 加载文字样式 */
.loading-text {
  margin-top: 20px;
  font-size: 18px;
  color: #333;
}

/* 页面淡入效果 */
#root {
  opacity: 0;
  transition: opacity 1s ease-in;
}

#root.visible {
  opacity: 1;
}

/* 动画关键帧 */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes colorChange {
  0% {
    border-top-color: #002FA7;
    box-shadow: 0 0 20px rgba(0, 47, 167, 0.6);
  }
  33% {
    border-top-color: #f09;
    box-shadow: 0 0 20px rgba(255, 0, 153, 0.6);
  }
  66% {
    border-top-color: #0f9;
    box-shadow: 0 0 20px rgba(0, 255, 153, 0.6);
  }
  100% {
    border-top-color: #90f;
    box-shadow: 0 0 20px rgba(153, 0, 255, 0.6);
  }
}

/* 页面加载完成后隐藏加载器 */
.loader-hidden {
  opacity: 0;
  pointer-events: none;
}

/* 鼠标悬停效果 */
.hover-glow {
  transition: all 0.3s ease;
}

.hover-glow:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 47, 167, 0.4);
}

/* 文字渐变效果 */
.gradient-text {
  background: linear-gradient(90deg, #002FA7, #f09, #0f9, #90f);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient 8s ease infinite;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 确保内容不被固定导航栏遮挡 - 由于导航栏现在有两层，增加顶部内边距 */
main, .container, #content {
  padding-top: 100px; /* 为双层导航栏留出足够空间 */
}

/* 移动端导航栏响应式样式 */
@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }
  
  .navbar-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(18, 18, 18, 0.95);
    padding: 20px;
  }
  
  .navbar-toggle {
    display: flex !important;
  }
  
  .navbar-toggle-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    position: relative;
  }
  
  .navbar-toggle-icon:before,
  .navbar-toggle-icon:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: white;
    left: 0;
  }
  
  .navbar-toggle-icon:before {
    top: -8px;
  }
  
  .navbar-toggle-icon:after {
    top: 8px;
  }
}
