
/* 全局样式 */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(to bottom, #6c5ce7, #4834d4);
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
h1, h2, h3 {
  font-weight: bold;
  text-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}
h1 {
  background: -webkit-linear-gradient(#e9defa, #fbfcff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 3rem;
  text-align: center;
  margin-top: 20px;
}
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}
.card {
  background: 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: translateY(-10px);
}
.button {
  background: linear-gradient(to right, #8e44ad, #3498db);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px #3498db;
}
pre {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
th, td {
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px;
  text-align: left;
}
th {
  background: rgba(255, 255, 255, 0.1);
}
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  animation: float 5s infinite;
}
@keyframes float {
  0% { transform: translateY(-10px); }
  50% { transform: translateY(10px); }
  100% { transform: translateY(-10px); }
}
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  .grid-container { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  pre { font-size: 12px; }
  th, td { font-size: 14px; }
}

