
/* 设置全局字体和背景渐变 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #0D0D2B, #5E17EB, #B4F9F8);
  background-size: 400% 400%;
  animation: gradient-animation 15s ease infinite;
  color: #FFFFFF;
}

/* 标题样式 */
h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
  color: #FFFFFF;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

h1 {
  font-size: 48px;
  font-weight: bold;
  line-height: 1.2;
}

h2 {
  font-size: 36px;
  font-weight: bold;
  margin-top: 40px;
}

h3 {
  font-size: 28px;
  font-weight: bold;
  margin-top: 30px;
}

/* 段落样式 */
p {
  font-size: 16px;
  line-height: 1.6;
  margin: 10px 0;
}

/* 代码块样式 */
pre {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 20px 0;
}

code {
  font-family: 'Courier New', monospace;
  color: #B4F9F8;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2px 4px;
  border-radius: 4px;
}

/* 容器和网格系统 */
.container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  padding: 40px;
}

.item {
  grid-column: span 12;
}

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

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

/* 按钮样式 */
button {
  background-color: #5E17EB;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 5px;
  font-size: 16px;
}

button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(94, 23, 235, 0.5);
}

/* 星点动画 */
.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background-color: white;
  border-radius: 50%;
  animation: twinkle 3s infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* 渐变动画 */
@keyframes gradient-animation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 响应式设计 */

/* 小尺寸手机 */
@media (max-width: 320px) {
  .container {
    padding: 20px;
    grid-template-columns: repeat(4, 1fr);
  }
  
  h1 {
    font-size: 32px;
  }
  
  h2 {
    font-size: 24px;
  }
  
  h3 {
    font-size: 20px;
  }
}

/* 大尺寸手机 */
@media (min-width: 321px) and (max-width: 480px) {
  .container {
    padding: 30px;
    grid-template-columns: repeat(6, 1fr);
  }
  
  h1 {
    font-size: 36px;
  }
  
  h2 {
    font-size: 28px;
  }
  
  h3 {
    font-size: 22px;
  }
}

/* 竖屏平板 */
@media (min-width: 481px) and (max-width: 768px) {
  .container {
    padding: 40px;
    grid-template-columns: repeat(8, 1fr);
  }
  
  h1 {
    font-size: 40px;
  }
  
  h2 {
    font-size: 32px;
  }
  
  h3 {
    font-size: 24px;
  }
}

/* 中等屏幕 */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding: 50px;
    grid-template-columns: repeat(12, 1fr);
  }
  
  h1 {
    font-size: 44px;
  }
  
  h2 {
    font-size: 34px;
  }
  
  h3 {
    font-size: 26px;
  }
}

/* 桌面显示器 */
@media (min-width: 1025px) and (max-width: 1200px) {
  .container {
    padding: 60px;
  }
  
  h1 {
    font-size: 48px;
  }
  
  h2 {
    font-size: 36px;
  }
  
  h3 {
    font-size: 28px;
  }
}

/* 大尺寸桌面显示器 */
@media (min-width: 1201px) {
  .container {
    padding: 80px;
  }
  
  h1 {
    font-size: 52px;
  }
  
  h2 {
    font-size: 40px;
  }
  
  h3 {
    font-size: 30px;
  }
}

/* 图像样式 */
img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* 提示样式 */
.reference {
  text-align: center;
  font-size: 18px;
  margin: 30px 0;
  color: #FFD700;
}

/* 文章示例展示样式 */
.example-article {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin-top: 40px;
}

/* 链接样式 */
a {
  color: #B4F9F8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}


