<template>
  <div class="study-effect">
    <div class="m-card">
      <div class="m-card-hd">
        <div class="title">研学成效数据</div>
      </div>
      <div class="m-card-bd">
        <div class="effect-content">
          <div class="effect-item">
            <div class="item-value">1200+</div>
            <div class="item-label">参与学生</div>
          </div>
          <div class="effect-item">
            <div class="item-value">50+</div>
            <div class="item-label">研学课程</div>
          </div>
          <div class="effect-item">
            <div class="item-value">20+</div>
            <div class="item-label">合作学校</div>
          </div>
          <div class="effect-item">
            <div class="item-value">98%</div>
            <div class="item-label">满意度</div>
          </div>
        </div>
        <div class="effect-chart">
          <div class="chart-title">近一年研学活动趋势</div>
          <div class="chart-content">
            <div class="chart-bar">
              <div class="bar" style="height: 30%"></div>
              <div class="bar-label">1月</div>
            </div>
            <div class="chart-bar">
              <div class="bar" style="height: 45%"></div>
              <div class="bar-label">3月</div>
            </div>
            <div class="chart-bar">
              <div class="bar" style="height: 80%"></div>
              <div class="bar-label">6月</div>
            </div>
            <div class="chart-bar">
              <div class="bar" style="height: 60%"></div>
              <div class="bar-label">9月</div>
            </div>
            <div class="chart-bar">
              <div class="bar" style="height: 95%"></div>
              <div class="bar-label">12月</div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>

</script>

<style lang="scss">
.study-effect {
  height: 100%;
  .m-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    .m-card-hd {
      padding: 15px 20px;
      border-bottom: 1px solid rgba(48, 220, 255, 0.3);
      .title {
        font-size: 18px;
        font-weight: bold;
        color: #30dcfd;
      }
    }
    .m-card-bd {
      flex: 1;
      padding: 20px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      .effect-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        margin-bottom: 20px;
        .effect-item {
          background: rgba(0, 20, 40, 0.5);
          border: 1px solid rgba(48, 220, 255, 0.2);
          border-radius: 8px;
          padding: 15px;
          text-align: center;
          .item-value {
            font-size: 24px;
            font-weight: bold;
            color: #30dcfd;
            margin-bottom: 5px;
          }
          .item-label {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.8);
          }
        }
      }
      .effect-chart {
        flex: 1;
        .chart-title {
          font-size: 14px;
          font-weight: bold;
          color: white;
          margin-bottom: 15px;
        }
        .chart-content {
          display: flex;
          align-items: flex-end;
          justify-content: space-around;
          height: 120px;
          .chart-bar {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 5px;
            .bar {
              width: 20px;
              background: linear-gradient(to top, #30dcfd, rgba(48, 220, 255, 0.3));
              border-radius: 4px 4px 0 0;
              transition: height 1s ease;
            }
            .bar-label {
              font-size: 10px;
              color: rgba(255, 255, 255, 0.6);
            }
          }
        }
      }
    }
  }
}
</style>