
/* 基础样式设置 */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #ffffff;
  background: linear-gradient(to right, #1e3c72, #2a5298);
  min-height: 100vh;
  overflow-x: hidden;
}
h1, h2, h3, p, pre {
  margin: 0;
  padding: 0;
}
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.header {
  background: linear-gradient(to bottom, #2a5298, #1e3c72);
  text-align: center;
  padding: 40px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.header h1 {
  font-size: 36px;
  margin-bottom: 10px;
}
.header p {
  font-size: 18px;
  opacity: 0.8;
}
.content-section {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.content-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 10px;
}
.grid-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
}
.grid-item:hover {
  background: rgba(255, 255, 255, 0.2);
}
@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
  }
  .header h1 {
    font-size: 28px;
  }
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.pulse-element {
  animation: pulse 3s infinite;
}
.footer {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  opacity: 0.8;
}
pre {
  background: rgba(255, 255, 255, 0.2);
  padding: 10px;
  border-radius: 5px;
  overflow-x: auto;
}
.article-container {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}
.article-container h2 {
  font-size: 24px;
  margin-bottom: 15px;
}
.article-container h3 {
  font-size: 20px;
  margin-top: 20px;
  margin-bottom: 10px;
}
.article-container p {
  margin-bottom: 15px;
}
.article-container pre {
  margin: 15px 0;
}

