
/* 基础样式与背景渐变 */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(to bottom, #001f3f, #4dc3ff);
  color: white;
  line-height: 1.6;
  padding: 20px;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-weight: bold;
  text-align: center;
  margin-top: 40px;
}

p {
  font-size: 16px;
  text-align: justify;
}

/* 模块化布局与间距 */
section {
  padding: 50px 20px;
  margin: 20px auto;
  max-width: 1200px;
  position: relative;
}

.home-section {
  background: rgba(0, 31, 63, 0.8);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.feature-section {
  background: rgba(77, 195, 255, 0.8);
  color: black;
}

/* 图片与装饰性元素 */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 10px;
}

.background-shape {
  position: absolute;
  width: 100px;
  height: 100px;
  background-color: rgba(255, 140, 0, 0.5);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  top: 10%;
  left: 10%;
  transform: translate(-50%, -50%);
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

button {
  background-color: #ff8c00;
  border: none;
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

button:hover {
  transform: scale(1.1);
  background-color: #e67e22;
}

/* 响应式设计 */
@media (max-width: 768px) {
  h1, h2, h3 {
    font-size: 24px;
  }

  p {
    font-size: 14px;
  }

  section {
    padding: 30px 10px;
  }

  img {
    width: 100%;
  }
}

@media (max-width: 480px) {
  h1, h2, h3 {
    font-size: 20px;
  }

  p {
    font-size: 12px;
  }

  button {
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* 代码块样式 */
pre {
  background: rgba(0, 0, 0, 0.7);
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
}

code {
  color: #ff8c00;
  font-size: 14px;
}

/* 提示文字样式 */
.note {
  text-align: center;
  font-size: 12px;
  color: #ccc;
  margin-top: 20px;
}

