html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

section {
  overflow: visible; /* 确保不裁剪 */
}


.hero-image {
  position: relative;
  width: 100%;
  height: auto;              /* ✅ 修正 */
  overflow: visible;
}

.main-image {
  width: 100%;
  height: auto;              /* ✅ 修正 */
  display: block;
}

.bg-wrapper {
  position: absolute;
  margin-top: -30px;
  left: 40px;
  width: 600px;
  z-index: 2; 
  transform: scale(1.7)
}

.bg-image {
  width: 100%;
  height: auto;
  display: block;
}

.bg-text {
  position: absolute;
  bottom: 200px; /* 你可以调这个位置 */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  color: white;
  font-weight: bold;
  font-family: "微软雅黑", Arial, sans-serif;
  text-shadow: 0 0 6px rgba(0,0,0,0.7);
  pointer-events: none;
  user-select: none;
}

.bg-text .line1 {
  font-size: 55px;
  display: block;
  margin-bottom: 4px;
}

.bg-text .line2 {
  font-size: 55px;
  display: block;
}

.hero-image, 
.hero-image * {
  overflow: visible !important;
  position: relative !important;
}

.bg-wrapper {
  bottom: auto !important;
  top: calc(100% - 50px) !important;
} 

.project-intro {
  width: 80%;
  margin: 20px auto;
  padding: 20px;
  font-family: "微软雅黑", Arial, sans-serif;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.project-intro .title {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  margin-bottom: 16px;
  border-left: 5px solid #ff6600;
  padding-left: 10px;
}

.project-intro p {
  font-size: 18px;
  margin: 8px 0;
}

.project-intro .label {
  display: inline-block;
  width: 100px;
  font-weight: bold;
  color: #555;
}

.project-intro .value {
  color: #333;
}

/* 案例描述 */
.project-description {
  width: 80%;
  margin: 20px auto;
  font-size: 18px;
  line-height: 1.8;
  color: #555;
  text-align: justify;
}

/* 瀑布流图片 */
.gallery {
  max-width: 1400px;   /* 最大宽度，根据你需求调整 */
  column-count: 2;    /* 两列瀑布流 */
  column-gap: 16px;   /* 列间距 */
  padding: 0 16px;    /* 左右内边距，增加留白 */
  margin: 0 auto 40px;  
}

.gallery .image-item {
  break-inside: avoid;
  margin-bottom: 15px;
}

.gallery img {
  width: 100%;
  border-radius: 8px;
  display: block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (max-width: 992px) {
  .gallery {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .gallery {
    column-count: 1;
  }
}

.image-item img {
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.image-item img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  filter: brightness(1.1);
}

/* 弹窗背景遮罩 */
.modal {
  display: none; /* 默认隐藏 */
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

/* 弹窗图片 */
.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255,255,255,0.4);
  animation: zoomIn 0.3s;
}

/* 关闭按钮 */
.modal-close {
  position: fixed;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #ff6600;
}

@keyframes zoomIn {
  from {transform: scale(0.7);}
  to {transform: scale(1);}
}



