
/* 全局样式 */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #4c6ef5, #8e44ad);
  color: #f9f9f9;
  overflow-x: hidden;
}

h1, h2, h3 {
  text-align: center;
  color: #ff9800;
}

p {
  line-height: 1.8;
  padding: 10px 20px;
}

a {
  color: #03a9f4;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

article {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

pre {
  background: #1e1e1e;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
  white-space: pre-wrap;
}

code {
  background: #1e1e1e;
  padding: 2px 5px;
  border-radius: 3px;
}

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

th, td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

th {
  background-color: #4c6ef5;
  color: #fff;
}

/* 首页背景效果 */
.header-section {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.background-aurora {
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(45deg, #4c6ef5, #8e44ad);
  animation: aurora 10s infinite linear;
}

@keyframes aurora {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.logo-title {
  z-index: 2;
  font-size: 48px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.sub-title {
  font-size: 24px;
  color: #ff9800;
  margin-top: 10px;
}

/* 卡片模块 */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}

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

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  alt="";
}

/* 按钮样式 */
.button {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, #4c6ef5, #8e44ad);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.button:hover {
  box-shadow: 0 0 10px rgba(76, 110, 245, 0.5);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .card-container {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 10px;
  }

  .header-section {
    height: auto;
    padding: 20px;
  }
}

