
/* 全局样式定义 */
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  color: #333333;
  background: linear-gradient(135deg, #0A2463, #7C3E66);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Fira Sans', sans-serif;
  font-weight: bold;
  color: #FFFFFF;
}

p, li {
  line-height: 1.6;
  color: #F5F5F5;
}

a {
  text-decoration: none;
  color: #4FC3A1;
  transition: color 0.3s ease;
}

a:hover {
  color: #7C3E66;
}

/* 首屏动态粒子效果 */
.header-section {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.header-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 10%, transparent 10.01%);
  animation: particle-animation 15s linear infinite;
}

@keyframes particle-animation {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 内容区样式 */
.content-section {
  padding: 40px 20px;
  background: #FFFFFF;
  color: #333333;
}

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

.grid-item {
  background-color: #F5F5F5;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.grid-item:hover {
  transform: translateY(-5px);
}

/* 文章展示区域 */
.article-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: linear-gradient(to bottom, #FFFFFF, #F5F5F5);
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

article pre {
  background: #0A2463;
  color: #FFFFFF;
  padding: 15px;
  border-radius: 6px;
  overflow-x: auto;
}

article code {
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

/* 表格样式 */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #DDDDDD;
}

th {
  background-color: #4FC3A1;
  color: #FFFFFF;
}

tr:nth-child(even) {
  background-color: #F9F9F9;
}

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

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

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

  p {
    font-size: 14px;
  }
}

/* 提示信息 */
.info-box {
  text-align: center;
  padding: 10px;
  background: #4FC3A1;
  color: #FFFFFF;
  font-size: 14px;
  margin-bottom: 20px;
}

