
/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  background: linear-gradient(135deg, #1a237e, #6200ea);
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
  padding: 20px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  color: #f5f7fa;
  text-align: center;
  margin-bottom: 20px;
}

p {
  color: #e8eaf6;
  margin-bottom: 15px;
}

a {
  color: #ffab40;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}

a:hover {
  color: #f57c00;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.header {
  background: linear-gradient(90deg, #1a237e, #6200ea);
  color: white;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.module {
  background-color: #ffffff;
  color: #333333;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s ease-in-out;
}

.module:hover {
  transform: translateY(-5px);
}

.button {
  background-color: #ffab40;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease-in-out;
}

.button:hover {
  background-color: #f57c00;
}

.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #e8eaf6;
  color: #333333;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
}

.grid-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
  }

  .header {
    font-size: 1.2rem;
    padding: 15px;
  }

  .module {
    padding: 15px;
  }
}

@media (max-width: 400px) {
  body {
    padding: 10px;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: 1.2rem;
  }

  p {
    font-size: 0.9rem;
  }

  pre code {
    font-size: 0.8rem;
    white-space: pre-wrap;
    word-break: break-word;
  }
}

.article-container {
  background-color: #ffffff;
  color: #333333;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-top: 20px;
}

.article-container h2 {
  color: #1a237e;
}

.article-container pre {
  background-color: #f5f7fa;
  color: #333333;
  border-radius: 4px;
  padding: 10px;
  overflow-x: auto;
}

.article-container table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.article-container th, .article-container td {
  border: 1px solid #dddddd;
  padding: 8px;
  text-align: left;
}

.article-container th {
  background-color: #ffab40;
  color: white;
}

.example-data {
  background-color: #e8eaf6;
  color: #333333;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
}

.example-data ul {
  list-style: none;
}

.example-data li {
  margin-bottom: 10px;
}

.example-data strong {
  color: #1a237e;
}

