
/* CSS 样式代码 */
body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #121212, #1e1e3f);
  color: #f5deb3;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}
header {
  background: linear-gradient(to right, #8b4513, #2e8b57);
  padding: 20px;
  text-align: center;
  position: relative;
}
header h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  margin: 0;
  color: #fff;
}
nav {
  background: #333;
  padding: 10px;
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
nav a {
  color: #f5deb3;
  text-decoration: none;
  margin: 10px 0;
  font-size: 1.2rem;
  transition: color 0.3s ease-in-out;
}
nav a:hover {
  color: #ff69b4;
}
main {
  margin-left: 220px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
h2, h3 {
  font-family: 'Orbitron', sans-serif;
  color: #ff69b4;
}
p {
  font-size: 1rem;
  color: #f5deb3;
}
ul, ol {
  padding-left: 20px;
}
li {
  margin-bottom: 10px;
}
pre {
  background: #1e1e3f;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
}
code {
  color: #ff69b4;
  font-family: 'Courier New', monospace;
}
img {
  max-width: 100%;
  height: auto;
  border: 2px solid #8b4513;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  background: #2e8b57;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease-in-out;
}
.card:hover {
  transform: scale(1.05);
}
.highlight {
  color: #ff69b4;
  font-weight: bold;
}
@media (max-width: 768px) {
  nav {
    position: static;
    height: auto;
    width: 100%;
    flex-direction: row;
  }
  main {
    margin-left: 0;
  }
  h1 {
    font-size: 2rem;
  }
}

