
/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto Mono', sans-serif;
  background: linear-gradient(135deg, #002f6c, #1e90ff);
  color: #ffffff;
  line-height: 1.6;
  padding: 20px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Futura', sans-serif;
  color: #d4af37;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

a {
  color: #87cefa;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

a:hover {
  color: #ffdead;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

.glass-card:hover {
  transform: scale(1.05);
}

img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

code {
  background: rgba(0, 0, 0, 0.5);
  color: #00ff00;
  padding: 5px;
  border-radius: 5px;
  font-size: 14px;
}

pre {
  background: rgba(0, 0, 0, 0.7);
  padding: 15px;
  border-radius: 10px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

th, td {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px;
  text-align: left;
}

th {
  background: rgba(255, 255, 255, 0.1);
}

.scroll-animation {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.scroll-animation.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
  }

  pre {
    font-size: 12px;
  }
}

/* 动态粒子背景 */
.particle-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 47, 108, 0.8), rgba(0, 0, 0, 1));
  z-index: -1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #87cefa;
  border-radius: 50%;
  animation: float 10s infinite ease-in-out;
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-20px) translateX(20px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}

.notice {
  text-align: center;
  font-size: 14px;
  color: #ffdead;
  margin-bottom: 20px;
}

