<template>
  <div class="team-report">
    <h2>今日团队实时战报</h2>
    <div class="report-grid">
      <div class="report-card">
        <div class="card-header">
          <span class="card-title">团队总通话</span>
          <span class="card-trend positive">+10% vs 昨日</span>
        </div>
        <div class="card-value">873 次</div>
      </div>
      <div class="report-card">
        <div class="card-header">
          <span class="card-title">有效通话时长</span>
          <span class="card-trend negative">-5% vs 昨日</span>
        </div>
        <div class="card-value">25.4 小时</div>
      </div>
      <div class="report-card">
        <div class="card-header">
          <span class="card-title">新增意向客户</span>
          <span class="card-trend positive">+15% vs 昨日</span>
        </div>
        <div class="card-value">43 人</div>
      </div>
      <div class="report-card">
        <div class="card-header">
          <span class="card-title">新增成交</span>
          <span class="card-trend positive">+20% vs 昨日</span>
        </div>
        <div class="card-value">12 单</div>
      </div>
      <div class="report-card">
        <div class="card-header">
          <span class="card-title">总业绩</span>
          <span class="card-trend positive">+8% vs 昨日</span>
        </div>
        <div class="card-value">65,000 元</div>
      </div>
      <div class="report-card">
        <div class="card-header">
          <span class="card-title">团队人均产出</span>
          <span class="card-trend positive">+9% vs 昨日</span>
        </div>
        <div class="card-value">13,000 元</div>
      </div>
    </div>
  </div>
</template>

<script setup>
// 今日团队实时战报组件
</script>

<style lang="scss" scoped>
// Team Report
.team-report {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  
  h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 1.5rem 0;
  }
  
  .report-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .report-card {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    
    .card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 0.5rem;
    }
    
    .card-title {
      color: #64748b;
      font-size: 0.85rem;
    }
    
    .card-trend {
      font-size: 0.75rem;
      font-weight: 500;
      
      &.positive {
        color: #059669;
      }
      
      &.negative {
        color: #dc2626;
      }
    }
    
    .card-value {
      font-size: 1.5rem;
      font-weight: bold;
      color: #1e293b;
    }
  }
}

// 移动端适配
@media (max-width: 768px) {
  .team-report {
    padding: 1rem;
    
    h2 {
      font-size: 1.1rem;
      margin-bottom: 1rem;
    }
    
    .report-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 0.75rem;
    }
    
    .report-card {
      padding: 0.75rem;
      
      .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
      }
      
      .card-title {
        font-size: 0.8rem;
      }
      
      .card-trend {
        font-size: 0.7rem;
      }
      
      .card-value {
        font-size: 1.25rem;
      }
    }
  }
}

@media (max-width: 480px) {
  .team-report {
    padding: 0.75rem;
    border-radius: 8px;
  }
}
</style>