
/* 全局样式 */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #000033, #000066, #000033);
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: 'Orbitron', sans-serif;
  font-weight: bold;
  text-transform: uppercase;
}
p {
  font-size: 16px;
  margin-bottom: 1.2em;
}
a {
  color: #39FF14;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #FFD700;
}
pre {
  background: rgba(0, 0, 0, 0.7);
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.4;
  margin: 15px 0;
}
code {
  color: #39FF14;
  font-family: 'Courier New', monospace;
}

/* 布局与模块化设计 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.module {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  padding: 20px;
  margin: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}
.module:hover {
  transform: translateY(-5px);
}

/* 导航栏设计 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  z-index: 1000;
  transition: background 0.3s ease;
}
.navbar.scrolled {
  background: rgba(0, 0, 0, 0.5);
}
.navbar a {
  color: #ffffff;
  margin: 0 15px;
  font-size: 18px;
}
.navbar .logo {
  font-size: 24px;
  font-weight: bold;
}

/* 图片与装饰性元素 */
.img-deco {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 15px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
.icon {
  width: 50px;
  height: 50px;
  background-color: #39FF14;
  border-radius: 50%;
  box-shadow: 0 0 10px #39FF14, 0 0 20px #39FF14;
  transition: transform 0.3s ease;
}
.icon:hover {
  transform: scale(1.2);
}

/* 动画效果 */
.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #39FF14;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
  margin: 20px auto;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.neon-text {
  color: #39FF14;
  text-shadow: 0 0 5px #39FF14, 0 0 10px #39FF14, 0 0 20px #39FF14;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  .module {
    width: 100%;
  }
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  pre {
    font-size: 12px;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 24px;
  }
  h2 {
    font-size: 20px;
  }
  p {
    font-size: 14px;
  }
}

/* 额外样式优化 */
.content-block {
  padding: 30px 0;
}
.tip {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-left: 4px solid #39FF14;
  margin: 15px 0;
}

