
/* 基础样式设置 */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #000000, #1A1A40);
  color: #FFFFFF;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 {
  font-family: 'Inter', sans-serif;
  text-shadow: 0px 0px 10px rgba(111, 0, 255, 0.8);
}

h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

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

/* 卡片式设计 */
.card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease-in-out;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.7);
}

/* 渐变按钮样式 */
.button {
  background: linear-gradient(90deg, #6F00FF, #00FFFF);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.button:hover {
  opacity: 0.8;
}

/* 高亮文本 */
.highlight {
  color: #6F00FF;
  font-weight: bold;
}

/* 图片样式 */
.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.image-container img {
  width: 100%;
  max-width: 320px;
  border-radius: 10px;
  transition: transform 0.3s ease-in-out;
}

.image-container img:hover {
  transform: scale(1.1);
}

/* 文章样式 */
.article-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  overflow-wrap: break-word;
}

.article-container pre {
  background: rgba(0, 0, 0, 0.8);
  padding: 10px;
  border-radius: 5px;
  overflow-x: auto;
}

.article-container code {
  color: #6F00FF;
  font-family: 'Courier New', monospace;
}

/* 表格样式 */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
}

th, td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
  background: rgba(255, 255, 255, 0.1);
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 1s ease-in-out;
}

/* 响应式布局 */
@media (max-width: 768px) {
  h1 {
    font-size: 36px;
  }

  .container {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .card {
    padding: 15px;
  }

  .article-container {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 28px;
  }

  .card {
    padding: 10px;
  }

  .article-container {
    padding: 10px;
  }
}

