/* 动态渐变色背景 */
.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  z-index: -1;
}

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

/* 卡片式布局 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  padding: 2rem;
  max-width: 800px;
  width: 90%;
  margin: 2rem auto;
}

/* Markdown 内容美化 */
#content {
  line-height: 1.8;
  color: #333;
}

#content h1, #content h2, #content h3 {
  color: #2c3e50;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.3em;
}

#content a {
  color: #0366d6;
  text-decoration: none;
}

#content a:hover {
  text-decoration: underline;
}

#content code {
  background: #f6f8fa;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: monospace;
}

#content pre {
  background: #282c34;
  color: #abb2bf;
  padding: 1em;
  border-radius: 5px;
  overflow-x: auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .card {
    padding: 1rem;
    width: 95%;
  }
}