<template>
  <div class="sampling-process">
    <div class="header-section">
      <h2>土壤渗流</h2>
      <div class="subtitle">重金属在土壤-农作物系统中的迁移与输出机制</div>
    </div>
    
    <div class="content-section">
      <div class="text-content">
            <p>
              土壤渗流是农田土壤重金属输出的重要途径，过度耕种会加剧土壤水分和营养的流失，而降水会对这一过程产生影响。通常，土壤重金属渗流通量通过质量平衡模型间接计算，该模型假设土壤中未渗流的重金属通过径流途径输出。
            </p>
             <p>
              图详细展示了土壤渗流作为重金属纵向迁移重要途径的过程。如图所示，土壤中的重金属在降水和重力作用下，通过土壤孔隙向下渗透，最终进入地下水系统。图中左侧部分清晰地描绘了农田土壤剖面，包括表层土壤、根系分布区以及下方的地下水层。土壤中的水分和溶解态重金属随着水流向下移动，形成明显的渗流路径。
            </p>
      </div>
    </div>

    <div class="image-row">
      <div class="image-container">
        <el-image :src="image3" alt="土壤渗流是重金属迁移的重要途径" class="sampling-image"></el-image>
        <p class="image-caption">
          土壤渗流是重金属迁移的重要途径
        </p>
      </div>
    </div>
     <!-- 新增视频区域 -->
      <div class="video-section">
        <h3 class="video-title">土壤渗流过程视频演示</h3>
        <div class="video-container">
          <video controls class="sampling-video">
            <source src="@/assets/videos/地下渗漏.mp4" type="video/mp4">
            您的浏览器不支持HTML5视频播放。
          </video>
          <p class="video-caption">
            视频展示了重金属在地下中的积累过程
          </p>
        </div>
      </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      image3: 'https://hunyuan-plugin-1258344706.cos.ap-nanjing.myqcloud.com/pdf_youtu/img/2412b59952255362b77987e45875b820-image.png',
    };
  }
};
</script>

<style scoped>
.sampling-process {
  padding: 30px;
  background: linear-gradient(135deg, rgba(230, 247, 255, 0.7) 0%, rgba(240, 248, 255, 0.7) 100%);
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.sampling-process::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1518834107812-67b0b7c58434?q=80&w=2070&auto=format&fit=crop') center/cover;
  opacity: 0.15;
  z-index: -1;
  filter: blur(2px);
}

/* 标题区域 */
.header-section {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-section h2 {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 10px;
  color: #1a365d;
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #4a9ef7, #3acfd5);
  border-radius: 3px;
}

.subtitle {
  font-size: 1.2rem;
  color: #2d5986;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* 内容区域 */
.content-section {
  margin-bottom: 40px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  overflow: hidden;
}

.content-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(极简版0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.92);
}

.text-content {
  margin-bottom: 30px;
}

p {
  text-indent: 2em;
  margin: 20px 0;
  line-height: 1.8;
  color: #2d3748;
  font-size: 1.1rem;
  position: relative;
  padding-left: 20px;
}

p::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #3a9fd3;
  font-size: 1.5rem;
  line-height: 1.8;
}

/* 图片区域 */
.image-row {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.image-container {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  max-width: 800px; /* 设置最大宽度 */
  width: 100%; /* 宽度100% */
  margin: 0 auto;
  transition: all 0.4s ease;
}

.image-container:hover {
  transform: scale(1.01);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.sampling-image {
  width: 100%;
  height: auto;
  min-height: 350px;
  display: block;
  background: rgba(245, 249, 255, 0.4);
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-container:hover .sampling-image {
  transform: scale(1.02);
}

.image-caption {
  text-align: center;
  font-size: 1.1rem;
  color: #1a365d;
  padding: 15px;
  font-weight: 600;
  background: linear-gradient(to right, rgba(248, 250, 252, 0.9), rgba(240, 248, 255, 0.9));
  margin: 0;
  border-top: 1px dashed #cbd5e0;
  position: relative;
}

.image-caption::before {
  content: "📌";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* 视频区域 */
.video-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.video-title {
  text-align: center;
  color: #1a365d;
  font-size: 1.5rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.video-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #4a9ef7, #3acfd5);
  border-radius: 2px;
}

.video-container {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  max-width: 800px; /* 设置与图片相同的最大宽度 */
  width: 100%; /* 宽度100% */
  margin: 0 auto;
  transition: all 0.4s ease;
}

.video-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.sampling-video {
  width: 100%;
  height: auto;
  display: block;
  background: #f8fafc;
  min-height: 350px;
}

.video-caption {
  text-align: center;
  font-size: 1.1rem;
  color: #1a365d;
  padding: 15px;
  font-weight: 600;
  background: linear-gradient(to right, rgba(248, 250, 252, 0.9), rgba(240, 248, 255, 0.9));
  margin: 0;
  border-top: 1px dashed #cbd5e0;
  position: relative;
}

.video-caption::before {
  content: "📹";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* 装饰元素 */
.decorative-element {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(74, 158, 247, 0.1), rgba(58, 207, 213, 0.1));
  z-index: -1;
}

.decorative-element:nth-child(1) {
  top: 10%;
  left: 5%;
  width: 80px;
  height: 80px;
}

.decorative-element:nth-child(2) {
  bottom: 15%;
  right: 8%;
  width: 60px;
  height: 60px;
}

/* 响应式设计 */
@media (max-width: 900px) {
  .sampling-process {
    padding: 20px;
  }
  
  .header-section h2 {
    font-size: 1.8rem;
  }
  
  .subtitle {
    font-size: 1.1rem;
  }
  
  .content-section {
    padding: 20px;
  }
  
  .sampling-image,
  .sampling-video {
    min-height: 300px;
  }
  
  .image-container,
  .video-container {
    max-width: 700px; /* 小屏幕上减小最大宽度 */
  }
}

@media (max-width: 768px) {
  .sampling-process {
    padding: 15px;
  }
  
  .header-section h2 {
    font-size: 1.6rem;
  }
  
  p {
    font-size: 1rem;
    padding-left: 15px;
  }
  
  .image-caption,
  .video-caption {
    font-size: 1rem;
    padding: 12px;
  }
  
  .sampling-image,
  .sampling-video {
    min-height: 250px;
  }
  
  .video-title {
    font-size: 1.3rem;
  }
  
  .image-container,
  .video-container {
    max-width: 600px; /* 小屏幕上减小最大宽度 */
  }
}

@media (max-width: 480px) {
  .sampling-process {
    padding: 10px;
  }
  
  .header-section h2 {
    font-size: 1.4rem;
  }
  
  .subtitle {
    font-size: 0.95rem;
  }
  
  .content-section {
    padding: 15px;
  }
  
  p {
    font-size: 0.95rem;
    padding-left: 10px;
  }
  
  .image-caption,
  .video-caption {
    font-size: 0.9rem;
    padding: 10px 15px 10px 35px;
  }
  
  .image-caption::before,
  .video-caption::before {
    left: 10px;
  }
  
  .sampling-image,
  .sampling-video {
    min-height: 200px;
  }
  
  .video-title {
    font-size: 1.1rem;
  }
  
  .image-container,
  .video-container {
    max-width: 100%; /* 小屏幕上宽度100% */
  }
}
</style>