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

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

/* 全局样式 */
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0F52BA, #6A0DAD);
  color: #ffffff;
  line-height: 1.6;
  min-height: 100vh;
}

/* 头部样式 */
header {
  text-align: center;
  padding: 3em 1em;
  background: rgba(0, 0, 0, 0.5);
}

header h1 {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 0.5em;
}

header p {
  font-size: 1.2em;
  color: #32CD32;
}

/* 导航栏样式 */
nav {
  display: flex;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
}

nav a {
  color: #ffffff;
  padding: 1em 2em;
  text-decoration: none;
  transition: color 0.3s;
}

nav a:hover {
  color: #32CD32;
}

/* 主内容样式 */
main {
  padding: 2em 1em;
  max-width: 1200px;
  margin: auto;
}

.section-title {
  font-size: 2em;
  margin-bottom: 0.5em;
  color: #ffffff;
}

p {
  margin-bottom: 1em;
}

ul {
  list-style: none;
  padding-left: 0;
}

ul li {
  background: rgba(255, 255, 255, 0.1);
  padding: 1em;
  margin-bottom: 0.5em;
  border-radius: 8px;
}

pre {
  background: rgba(0, 0, 0, 0.7);
  padding: 1em;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1em;
}

code {
  font-family: 'Poppins', sans-serif;
  color: #32CD32;
}

/* 表格样式 */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2em;
}

table, th, td {
  border: 1px solid #ffffff;
}

th, td {
  padding: 1em;
  text-align: left;
}

th {
  background: rgba(50, 205, 50, 0.3);
}

/* 按钮样式 */
button {
  background-color: #32CD32;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

button:active {
  transform: translateY(4px);
}

/* 特效样式 */
@keyframes particle {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

.particle {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #ffffff;
  border-radius: 50%;
  animation: particle 1s ease-in-out infinite;
}

/* 特征卡片样式 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5em;
}

.feature-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 1em;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease-in-out, background 0.3s;
}

.feature-card:hover {
  transform: scale(1.05);
  background: rgba(50, 205, 50, 0.3);
}

.feature-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.5em;
}

.feature-card h4 {
  margin-bottom: 0.5em;
}

/* 响应式设计 */
@media (max-width: 1440px) {
  header h1 {
    font-size: 2.2em;
  }
}

@media (max-width: 1200px) {
  header h1 {
    font-size: 2em;
  }

  nav a {
    padding: 0.8em 1.5em;
  }

  .section-title {
    font-size: 1.8em;
  }
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  header h1 {
    font-size: 1.8em;
  }

  nav a {
    padding: 0.6em 1em;
    font-size: 0.9em;
  }

  .section-title {
    font-size: 1.5em;
  }
}

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

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card img {
    height: 200px;
    object-fit: cover;
  }
}

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

  nav a {
    padding: 0.5em;
    font-size: 0.8em;
  }

  .section-title {
    font-size: 1.2em;
  }

  .feature-card img {
    height: 150px;
  }
}

