<template>
  <div class="total-flux-intro">
    <!-- 第一部分：总通量概念介绍 -->
    <div class="content-section">
      <div class="section-header">
        <div class="section-number">1</div>
        <h2>重金属输入总通量概念</h2>
      </div>
      
      <div class="concept-card">
        <div class="concept-icon">📊</div>
        <div class="concept-content">
          <p>
            <span class="highlight">重金属输入总通量</span>是指通过灌溉水、农业投入品和大气沉降三种主要途径进入农田生态系统的重金属总量，通常以克/公顷/年(g/ha/a)为单位表示。该指标综合反映了农田系统从外部环境输入的重金属污染负荷，是评估农田重金属污染风险的重要依据。
          </p>
        </div>
      </div>
      
      <div class="formula-container">
        <div class="formula-card">
          <h3>输入总通量计算公式</h3>
          <div class="formula-content">
            <p class="formula">F<sub>总</sub> = F<sub>灌溉水</sub> + F<sub>农业投入品</sub> + F<sub>大气沉降</sub></p>
            <div class="formula-explain">
              <p>式中：</p>
              <p>F<sub>总</sub> —— 重金属输入总通量 (g/ha/a)</p>
              <p>F<sub>灌溉水</sub> —— 灌溉水途径输入通量 (g/ha/a)</p>
              <p>F<sub>农业投入品</sub> —— 肥料农药等输入通量 (g/ha/a)</p>
              <p>F<sub>大气沉降</sub> —— 干湿沉降输入通量 (g/ha/a)</p>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div class="content-section">
      <div class="section-header">
        <div class="section-number">2</div>
        <h2>总通量输入过程视频演示</h2>
      </div>
      
      <div class="video-section">
        <div class="video-container">
          <video controls class="sampling-video">
            <source src='@/assets/videos/输入总通量.mp4' type="video/mp4">
            您的浏览器不支持HTML5视频播放。
          </video>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
  }
};
</script>

<style scoped>
.total-flux-intro {
  padding: 30px;
  background: linear-gradient(135deg, rgba(250, 255, 245, 0.9) 0%, rgba(240, 248, 255, 0.9) 100%);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.content-section {
  margin-bottom: 50px;
  padding: 30px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 25px rgba(0, 60, 120, 0.08);
  transition: all 0.4s ease;
}

.content-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 60, 120, 0.15);
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(58, 160, 207, 0.25);
}

.section-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #4a9ef7, #3a9fd3);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin-right: 20px;
  box-shadow: 0 5px 12px rgba(74, 158, 247, 0.25);
}

h2 {
  color: #1a365d;
  font-size: 1.9rem;
  margin: 0;
  font-weight: 650;
}

.concept-card {
  display: flex;
  align-items: center;
  padding: 25px;
  background: rgba(235, 245, 255, 0.6);
  border-radius: 15px;
  margin-bottom: 30px;
  border-left: 4px solid #3a9fd3;
}

.concept-icon {
  font-size: 2.5rem;
  margin-right: 25px;
  color: #3a9fd3;
}

.concept-content p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #2d3748;
  margin: 0 0 15px 0;
}

.highlight {
  font-weight: 600;
  color: #1a6fb3;
}

.formula-container {
  display: flex;
  justify-content: center;
}

.formula-card {
  width: 100%;
  max-width: 700px;
  padding: 25px;
  background: rgba(245, 252, 255, 0.8);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-top: 3px solid #3a9fd3;
}

.formula-card h3 {
  color: #1a365d;
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
}

.formula-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.formula {
  font-size: 1.8rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 20px;
  text-align: center;
  padding: 15px;
  background: white;
  border-radius: 10px;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.formula-explain {
  width: 100%;
}

.formula-explain p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #2d3748;
  margin: 5px 0;
}

.formula-explain p:first-child {
  font-weight: 600;
  margin-bottom: 10px;
}

.contribution-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 30px;
}

.contribution-card {
  display: flex;
  padding: 20px;
  background: rgba(245, 252, 255, 0.7);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.contribution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.contribution-icon {
  font-size: 2rem;
  margin-right: 20px;
  color: #3a9fd3;
}

.contribution-content h3 {
  color: #1a365d;
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 12px;
}

.contribution-content p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #2d3748;
  margin: 0 0 10px 0;
}

.image-container {
  max-width: 700px;
  margin: 0 auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.flux-image {
  width: 100%;
  display: block;
}

.image-caption {
  text-align: center;
  font-size: 16px;
  color: #2d3748;
  padding: 15px;
  background: rgba(248, 250, 252, 0.8);
  margin: 0;
  border-top: 1px dashed #cbd5e0;
}

.application-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.application-card {
  display: flex;
  padding: 20px;
  background: rgba(245, 252, 255, 0.7);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-left: 4px solid #5cb85c;
}

.application-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.application-icon {
  font-size: 2rem;
  margin-right: 20px;
  color: #5cb85c;
}

.application-content h3 {
  color: #1a365d;
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 12px;
}

.application-content p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #2d3748;
  margin: 0;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .contribution-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .content-section {
    padding: 25px;
  }
  
  .section-number {
    width: 45px;
    height: 45px;
    font-size: 1.6rem;
  }
  
  h2 {
    font-size: 1.7rem;
  }
  
  .application-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .total-flux-intro {
    padding: 20px;
  }
  
  .concept-card {
    flex-direction: column;
    text-align: center;
  }
  
  .concept-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .contribution-card {
    flex-direction: column;
    text-align: center;
  }
  
  .contribution-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .total-flux-intro {
    padding: 15px;
  }
  
  .content-section {
    padding: 20px;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .section-number {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .formula {
    font-size: 1.5rem;
  }
}
/* 新增视频模块样式 */
.video-section {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 20px;
}

.video-container {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  max-width: 800px;
  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: 400px;
}

.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%);
}

.video-description {
  background: rgba(245, 249, 255, 0.6);
  border-radius: 12px;
  padding: 20px;
  border-left: 4px solid #3acfd5;
}

.video-description h3 {
  color: #1a365d;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.video-description ul {
  padding-left: 25px;
  margin: 15px 0;
}

.video-description li {
  margin-bottom: 10px;
  line-height: 1.7;
  position: relative;
}

.video-description li::before {
  content: "•";
  color: #3acfd5;
  font-size: 1.2rem;
  position: absolute;
  left: -20px;
  top: 0;
}
</style>