/* 核心实现代码 */
html,
body {
  scroll-behavior: smooth;
  /* 全局启用平滑滚动 */
}

/* 扩展控制 (可选) */
.scroll-container {
  scroll-behavior: smooth;
  /* 局部容器启用 */
  overflow-y: scroll;
  /* 确保容器可滚动 */
}

< !-- 自定义动画 -->

/* 合并重复动画效果 */
@keyframes floatY {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-1rem)
  }
}

.service-float {
  animation: floatY 6s ease-in-out infinite;
  will-change: transform;
  /* 提升动画性能 */
}

/* 提取公共样式 */
.btn-primary {
  @apply bg-blue-600 hover:bg-blue-700 text-white px-8 py-3 rounded-lg transition-all;
}

/* 弹出层样式 [1]()[2]() */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
}

/* 图片容器样式 [5]() */
.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  /* 固定宽度 */
  height: 400px;
  /* 固定高度 */
  border-radius: 25px;
  /* 圆角修饰 [1]() */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  /* 添加阴影效果 */
  object-fit: cover;
  /* 保持图片比例 */
  overflow: hidden;
  /* 圆角溢出处理 */
}

/* 新增响应式适配 */
@media (max-width: 768px) {
  .modal-content {
    width: 90%;
    height: auto;
    max-height: 70vh;
  }
}

/* 关闭按钮样式 [3]() */
.close {
  position: absolute;
  right: 20px;
  top: 20px;
  color: white;
  font-size: 30px;
  cursor: pointer;
}
#logopng{
  width: 25%;
  height: 25%;
}