
/* 基础样式与全局设置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  letter-spacing: 0.5px;
  color: #ffffff;
  background: linear-gradient(135deg, #2c3e50, #4ca1af);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  color: #f1c40f;
}
p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #ecf0f1;
}
a {
  color: #3498db;
  text-decoration: none;
}
a:hover {
  color: #f39c12;
  transition: all 0.3s ease;
}
.container {
  width: 90%;
  max-width: 1400px;
  margin: auto;
  padding: 20px 0;
}
header {
  background: linear-gradient(135deg, #1abc9c, #2ecc71);
  width: 100%;
  padding: 20px 0;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
header h1 {
  font-size: 2rem;
  color: #ffffff;
}
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  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);
}
img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}
pre {
  background: rgba(0, 0, 0, 0.5);
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
}
code {
  color: #e74c3c;
  font-family: 'Courier New', monospace;
}
@media (max-width: 768px) {
  header h1 {
    font-size: 1.5rem;
  }
  .grid-container {
    grid-template-columns: 1fr;
  }
}

