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

body {
  font-family: 'Poppins', sans-serif;
  color: #F8F8F8;
  background: linear-gradient(135deg, #0A192F, #1E2F4D);
  line-height: 1.6;
  padding: 20px;
  overflow-x: hidden;
}

/* 全局标题与提示 */
h1 {
  text-align: center;
  font-size: 48px;
  font-weight: bold;
  color: #64FFDA;
  margin-bottom: 20px;
}

p.info {
  text-align: center;
  color: #C778DD;
  font-size: 14px;
  margin-bottom: 30px;
}

/* 模块化布局 */
.container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.module {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 图片样式 */
.module img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.module img:hover {
  opacity: 1;
}

/* 文章内容样式 */
.article-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 20px;
  margin-top: 30px;
}

.article-container h2 {
  font-size: 36px;
  color: #64FFDA;
  margin-bottom: 15px;
}

.article-container p {
  font-size: 16px;
  margin-bottom: 15px;
}

.article-container pre {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 15px;
  overflow-x: auto;
}

.article-container code {
  color: #C778DD;
  font-size: 14px;
}

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

.article-container th,
.article-container td {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px;
  text-align: left;
}

.article-container th {
  background: rgba(255, 255, 255, 0.1);
}

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

  h1 {
    font-size: 36px;
  }

  .article-container pre {
    font-size: 12px;
  }
}

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

  .module {
    padding: 15px;
  }

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