
/* 基础样式设置 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #228B22, #1E90FF);
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.row::after {
  content: "";
  display: table;
  clear: both;
}

.col-4 {
  width: 33.33%;
  float: left;
  padding: 10px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .col-4 {
    width: 100%;
  }
}

/* 导航栏设计 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(90deg, #228B22, #1E90FF);
  color: white;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.navbar:hover {
  background: linear-gradient(90deg, #C0C0C0, #A9A9A9);
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

.search-box input {
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
}

/* 动态加载动画 */
.loading-animation {
  width: 100%;
  height: 300px;
  background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center;
  background-size: cover;
  animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 卡片式设计 */
.card {
  background: #fff;
  color: #333;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  margin-bottom: 20px;
}

.card:hover {
  transform: scale(1.05);
}

.card-header {
  background: #228B22;
  color: white;
  padding: 15px;
  text-align: center;
}

.card-body {
  padding: 20px;
  text-align: center;
}

/* 按钮样式 */
.hover-button {
  background-color: #228B22;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hover-button:hover {
  background-color: #1E90FF;
}

/* 环保计数器 */
.counter {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin: 20px 0;
}

/* 响应式布局调整 */
@media (max-width: 480px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo {
    margin-bottom: 10px;
  }
}

/* 滚动视差效果 */
.parallax {
  background-image: url('https://images.gptkong.com/demo/sample2.png');
  height: 400px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* 图片展示 */
.image-gallery img {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
  border-radius: 8px;
}

/* 微交互提示 */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

