
/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Roboto', sans-serif;
  color: #fff;
  background: linear-gradient(135deg, #1e3c72, #2a5298, #43cea2);
  animation: gradient-flow 10s infinite;
  overflow-x: hidden;
}
@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 标题与提示 */
.title {
  font-size: 36px;
  text-align: center;
  padding: 20px;
  background: linear-gradient(90deg, #ff7ea7, #73c8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.reference-note {
  font-size: 14px;
  text-align: center;
  margin-bottom: 20px;
}

/* 容器与布局 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
}
.card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.card:hover {
  transform: scale(1.05);
}
.card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  alt: "";
}

/* 按钮样式 */
.button {
  position: relative;
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.3s ease;
  margin-top: 10px;
}
.button::after {
  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%);
  opacity: 0;
  transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
}
.button:hover {
  transform: scale(1.05);
}
.button:hover::after {
  width: 200px;
  height: 200px;
  opacity: 1;
}

/* 文章内容样式 */
.article {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
}
.article h2, .article h3 {
  margin-bottom: 10px;
}
.article pre {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px;
  border-radius: 5px;
  overflow-x: auto;
  word-wrap: break-word;
}
.article code {
  color: #ff7ea7;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 10px;
  }
  .title {
    font-size: 24px;
  }
  .article pre {
    font-size: 12px;
  }
}

