
/* 全局样式与页面背景 */
body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  background: linear-gradient(135deg, #00008B, #4B0082, #EE82EE);
  background-size: 300% 300%;
  animation: gradientShift 15s ease infinite;
  color: #fff;
  line-height: 1.6;
  padding: 20px;
}

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

/* 标题样式 */
h1, h2, h3, h4 {
  font-family: 'Roboto Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

h1 {
  font-size: 2.5em;
  color: #1E90FF;
  animation: quantumText 3s infinite alternate;
}

@keyframes quantumText {
  0% { transform: rotate(0deg); letter-spacing: 0px; }
  100% { transform: rotate(-5deg); letter-spacing: 8px; }
}

/* 模块化布局 */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.module {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.module:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.module img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* 文字内容样式 */
p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 15px;
}

ul, ol {
  margin-left: 20px;
  margin-bottom: 15px;
}

li {
  margin-bottom: 5px;
}

code {
  display: block;
  background-color: rgba(0, 0, 0, 0.7);
  color: #00FF7F;
  padding: 15px;
  border-radius: 8px;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.9rem;
  overflow-x: auto;
}

pre {
  margin-bottom: 20px;
}

/* 表格样式 */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

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

th {
  background-color: rgba(0, 0, 0, 0.2);
}

/* 动画粒子效果 */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 5px;
  height: 5px;
  background-color: #ffffff;
  border-radius: 50%;
  animation: particleMove 5s infinite;
}

@keyframes particleMove {
  0% { transform: translateX(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

/* 响应式设计 */
@media (max-width: 768px) {
  h1 { font-size: 2em; }
  .container { grid-template-columns: 1fr; }
  code { font-size: 0.8rem; }
}

@media (max-width: 480px) {
  body { padding: 10px; }
  h1 { font-size: 1.8em; }
}

