
/* 全局样式定义 */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #000f4c, #2b2d42);
  color: #eaeaea;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  color: #8a2be2;
}

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

/* 背景与粒子效果 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 10%, transparent 10.01%);
  background-size: 20px 20px;
  transform: scale(1);
  animation: moveParticles 10s linear infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes moveParticles {
  from { transform: translate(-10%, -10%); }
  to { transform: translate(10%, 10%); }
}

/* 按钮与交互 */
.button {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(90deg, #4a90e2, #8a2be2);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.button:hover {
  box-shadow: 0 0 10px #8a2be2, 0 0 20px #4a90e2;
}

.button:hover::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ripple 0.5s ease-out;
}

@keyframes ripple {
  to {
    width: 100px;
    height: 100px;
    opacity: 0;
  }
}

/* 响应式布局 */
@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
  }
}

/* 图片样式 */
.image-box {
  width: 100%;
  height: auto;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-box:hover img {
  transform: scale(1.1);
}

/* 文章排版 */
.article {
  background: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.article pre {
  background: #1a1a1a;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
  font-size: 14px;
}

/* 高亮文字 */
.highlight {
  color: #4a90e2;
}

/* 提示信息 */
.info {
  text-align: center;
  font-size: 14px;
  color: #ccc;
  margin-top: 20px;
}

