
/* 引入字体 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&family=Inter&display=swap');

/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top left, #0A1F44, #00FFA3);
  color: #ffffff;
  line-height: 1.6;
  animation: aurora-move 15s linear infinite;
}

/* 动画效果 */
@keyframes aurora-move {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 容器设置 */
.container {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

/* 顶部导航栏 */
.header {
  background-color: rgba(10, 31, 68, 0.8);
  padding: 20px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  color: #00FFA3;
}

.header nav {
  margin-top: 10px;
}

.header nav a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 15px;
  font-size: 1rem;
  transition: color 0.3s;
}

.header nav a:hover {
  color: #00FFA3;
}

/* 主要内容区域 */
.main {
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.article-section {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
}

.article-section h2,
.article-section h3,
.article-section h4 {
  font-family: 'Poppins', sans-serif;
  color: #00FFA3;
  margin-bottom: 15px;
}

.article-section p {
  margin-bottom: 15px;
  color: #ffffff;
}

.article-section ul {
  list-style: disc inside;
  margin-bottom: 15px;
}

.article-section li {
  margin-bottom: 10px;
}

.article-section pre {
  background: rgba(0, 0, 0, 0.6);
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
}

.article-section code {
  font-family: 'Inter', monospace;
  color: #00FFA3;
}

/* 示例展示样式 */
.example-display {
  background: rgba(0, 255, 163, 0.2);
  padding: 20px;
  border-left: 5px solid #00FFA3;
  border-radius: 5px;
}

.example-display h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.example-display p {
  margin-bottom: 10px;
}

/* 图片样式 */
.image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.image-gallery img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 5px;
}

/* 代码预览样式 */
.code-preview {
  background: rgba(0, 0, 0, 0.8);
  padding: 20px;
  border-radius: 10px;
  overflow-x: auto;
}

.code-preview pre {
  margin: 0;
}

/* 按钮样式 */
.button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #00FFA3;
  color: #0A1F44;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s;
}

.button:hover {
  background-color: #00e0a0;
}

.button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, opacity 0.3s;
}

.button:hover::after {
  width: 200%;
  height: 200%;
  opacity: 0;
}

/* CTA区域 */
.cta {
  text-align: center;
  padding: 20px;
  background-color: rgba(10, 31, 68, 0.8);
}

.cta p {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.cta .button {
  font-size: 1rem;
}

/* 底部样式 */
.footer {
  background-color: rgba(10, 31, 68, 0.8);
  color: #ffffff;
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 1440px) {
  .main {
    padding: 30px 15px;
  }
}

@media (max-width: 1200px) {
  .main {
    padding: 25px 10px;
  }
}

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

@media (max-width: 768px) {
  .main {
    padding: 20px 5px;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 1.5rem;
  }

  .header nav a {
    margin: 0 10px;
    font-size: 0.9rem;
  }

  .article-section {
    padding: 15px;
  }

  .button {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 320px) {
  .header h1 {
    font-size: 1.2rem;
  }

  .header nav a {
    margin: 0 5px;
    font-size: 0.8rem;
  }

  .article-section {
    padding: 10px;
  }

  .button {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

