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

body {
  font-family: 'Inter', sans-serif;
  background: #121212;
  color: #C4C4C4;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Bebas Neue', sans-serif;
  color: #FFFFFF;
  margin-bottom: 20px;
}

h1 {
  font-size: 48px;
  text-align: center;
  margin-top: 40px;
}

h2 {
  font-size: 36px;
  margin-top: 30px;
}

h3 {
  font-size: 24px;
  margin-top: 20px;
}

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

ul, ol {
  margin-left: 20px;
  margin-bottom: 15px;
}

li {
  margin-bottom: 5px;
}

a {
  color: #7F58FF;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-family: 'Courier New', Courier, monospace;
  background-color: rgba(74, 144, 226, 0.2);
  padding: 5px;
  border-radius: 5px;
  color: #FFFFFF;
}

pre {
  background-color: rgba(74, 144, 226, 0.1);
  padding: 15px;
  border-radius: 10px;
  overflow-x: auto;
  margin-bottom: 20px;
}

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

th, td {
  border: 1px solid #4A90E2;
  padding: 10px;
  text-align: left;
}

th {
  background-color: #4A90E2;
  color: #121212;
}

td {
  background-color: rgba(74, 144, 226, 0.1);
}

/* 网格布局 */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
}

.grid-item {
  background: linear-gradient(135deg, #4A90E2, #7F58FF);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.grid-item:hover {
  transform: scale(1.05);
}

/* 背景渐变与装饰 */
.background-section {
  background: linear-gradient(135deg, #4A90E2, #7F58FF);
  padding: 40px 20px;
  margin: 40px 0;
  border-radius: 20px;
  position: relative;
}

.background-section::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
  z-index: -1;
  border-radius: 20px;
}

/* 图片样式 */
.image-decor {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 15px;
  margin: 20px auto;
  display: block;
}

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

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

.parallax {
  animation: parallax 5s infinite alternate;
}

@keyframes parallax {
  from { transform: translateY(0); }
  to { transform: translateY(-20px); }
}

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

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 30px;
  }

  h3 {
    font-size: 20px;
  }

  p {
    font-size: 14px;
  }
}

@media (min-width: 1200px) {
  .grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

