<!-- BI 数据分析 -->
<script setup lang="ts">
// Placeholder for BI analytics module
</script>

<template>
  <div class="bi-container">
    <div class="module-header">
      <h1 class="module-title">数据分析</h1>
      <p class="module-subtitle">企业经营数据可视化分析平台</p>
    </div>

    <div class="module-content">
      <div class="placeholder-card">
        <el-icon class="placeholder-icon" color="#8b5cf6" :size="64">
          <TrendCharts />
        </el-icon>
        <h2 class="placeholder-title">功能开发中，敬请期待</h2>
        <p class="placeholder-text">
          BI数据分析模块将提供销售分析、客户分析、经销商分析、
          供应链分析等可视化报表，支持自定义报表和数据钻取。
        </p>
        <div class="placeholder-stats">
          <div class="stat-item">
            <el-icon><DataAnalysis /></el-icon>
            <span>销售分析</span>
          </div>
          <div class="stat-item">
            <el-icon><PieChart /></el-icon>
            <span>客户画像</span>
          </div>
          <div class="stat-item">
            <el-icon><LineChart /></el-icon>
            <span>趋势预测</span>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<style scoped lang="scss">
.bi-container {
  min-height: 100vh;
  padding: 24px;
  background-color: var(--color-bg);

  .module-header {
    margin-bottom: 24px;

    .module-title {
      font-size: 28px;
      font-weight: 700;
      color: var(--color-text-primary);
      margin: 0 0 8px 0;
    }

    .module-subtitle {
      font-size: 14px;
      color: var(--color-text-secondary);
      margin: 0;
    }
  }

  .module-content {
    .placeholder-card {
      background-color: #ffffff;
      border-radius: var(--radius-lg);
      padding: 48px;
      border: 1px solid var(--color-border);
      text-align: center;

      .placeholder-icon {
        margin-bottom: 24px;
      }

      .placeholder-title {
        font-size: 24px;
        font-weight: 600;
        color: var(--color-text-primary);
        margin: 0 0 16px 0;
      }

      .placeholder-text {
        font-size: 14px;
        color: var(--color-text-secondary);
        line-height: 1.6;
        margin: 0 0 32px 0;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
      }

      .placeholder-stats {
        display: flex;
        gap: 24px;
        justify-content: center;
        margin-top: 32px;

        .stat-item {
          display: flex;
          flex-direction: column;
          gap: 8px;
          align-items: center;
          padding: 16px;
          border-radius: var(--radius-md);
          background-color: var(--color-bg-light);

          .el-icon {
            width: 32px;
            height: 32px;
            font-size: 32px;
            color: var(--color-accent);
          }

          span {
            font-size: 12px;
            color: var(--color-text-secondary);
          }
        }
      }
    }
  }
}
</style>