<template>
  <div
    class="manager-dashboard"
    style="
      display: flex;
      flex-direction: column;
      min-height: 100vh;
      justify-content: flex-start;
      align-items: center;
      overflow-y: auto;
    "
  >
<!-- 经理团队看板 -->
 <h1>经理团队看板</h1>
    <main class="dashboard-main">
      <!-- Top Section - Team Alerts and Today's Report -->
      <div class="top-section">
        <!-- Team Alerts -->
        <TeamAlerts />
        <!-- Today's Team Report -->
        <TeamReport />
      </div>
      <!-- Sales Funnel Section -->
      <SalesFunnel />

      <!-- Bottom Section -->
      <div class="bottom-section">
        <!-- Left Section -->
        <div class="left-section">
          <PerformanceRanking
            :team-members="teamMembers"
            :selected-member="selectedMember"
            @select-member="selectMember"
          />
        </div>

        <!-- Right Section -->
        <div class="right-section">
          <!-- Member Details -->
          <MemberDetails :selected-member="selectedMember" />
        </div>
      </div>
        <SalesTimelineWithTaskList />
        <RawDataCards />
        <CustomerDetail />
    </main>
  </div>
</template>

<script setup>
import { ref } from "vue";
import TeamAlerts from "../../maneger/components/TeamAlerts.vue";
import TeamReport from "../../maneger/components/TeamReport.vue";
import SalesFunnel from "../../maneger/components/SalesFunnel.vue";
import PerformanceRanking from "../../maneger/components/PerformanceRanking.vue";
import MemberDetails from "../../maneger/components/MemberDetails.vue";
import SalesTimelineWithTaskList from "../../person/components/SalesTimelineWithTaskList.vue";
import RawDataCards from "../../person/components/RawDataCards.vue";
import CustomerDetail from "../../person/components/CustomerDetail.vue";

// 团队成员数据
const teamMembers = [
  {
    id: 1,
    name: "李娜",
    rank: 1,
    performance: 120000,
    conversion: 8.0,
    calls: 156,
    callTime: 8.5,
    newClients: 12,
    deals: 5,
    avgDealValue: 24000,
  },
  {
    id: 2,
    name: "张明",
    rank: 2,
    performance: 85000,
    conversion: 5.0,
    calls: 142,
    callTime: 6.2,
    newClients: 8,
    deals: 3,
    avgDealValue: 28333,
  },
  {
    id: 3,
    name: "王强",
    rank: 3,
    performance: 65000,
    conversion: 4.0,
    calls: 128,
    callTime: 5.8,
    newClients: 6,
    deals: 2,
    avgDealValue: 32500,
  },
  {
    id: 4,
    name: "赵静",
    rank: 4,
    performance: 0,
    conversion: 0.0,
    calls: 89,
    callTime: 3.2,
    newClients: 2,
    deals: 0,
    avgDealValue: 0,
  },
  {
    id: 5,
    name: "刘洋",
    rank: 5,
    performance: 0,
    conversion: 0.0,
    calls: 76,
    callTime: 2.8,
    newClients: 1,
    deals: 0,
    avgDealValue: 0,
  },
  {
    id: 6,
    name: "陈雨",
    rank: 6,
    performance: 45000,
    conversion: 3.2,
    calls: 98,
    callTime: 4.1,
    newClients: 4,
    deals: 1,
    avgDealValue: 45000,
  },
  {
    id: 7,
    name: "周杰",
    rank: 7,
    performance: 38000,
    conversion: 2.8,
    calls: 115,
    callTime: 5.3,
    newClients: 5,
    deals: 1,
    avgDealValue: 38000,
  },
  {
    id: 8,
    name: "吴梅",
    rank: 8,
    performance: 22000,
    conversion: 1.9,
    calls: 87,
    callTime: 3.7,
    newClients: 3,
    deals: 1,
    avgDealValue: 22000,
  },
  {
    id: 9,
    name: "孙涛",
    rank: 9,
    performance: 15000,
    conversion: 1.2,
    calls: 92,
    callTime: 4.0,
    newClients: 2,
    deals: 1,
    avgDealValue: 15000,
  },
  {
    id: 10,
    name: "马丽",
    rank: 10,
    performance: 8000,
    conversion: 0.8,
    calls: 68,
    callTime: 2.5,
    newClients: 1,
    deals: 1,
    avgDealValue: 8000,
  },
];

// 当前选中的成员，默认为第一名
const selectedMember = ref(teamMembers[0]);

// 选择成员函数
const selectMember = (member) => {
  selectedMember.value = member;
};
</script>

<style lang="scss" scoped>
@import "@/assets/styles/main.scss";

.manager-dashboard {
  background-color: #f8fafc;
  min-height: 100vh;
  
  // PC端保持一致布局
  @media (min-width: 1024px) {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  }
  
  // 平板端适配
  @media (max-width: 1023px) and (min-width: 769px) {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  }
  
  // 移动端适配
  @media (max-width: 768px) {
    background: #f8fafc;
    padding: 0;
  }
  
  // 小屏移动端适配
  @media (max-width: 480px) {
    background: #f8fafc;
    padding: 0;
  }
}

.dashboard-header {
  background: white;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e2e8f0;
  width: 100%;
  
  // PC端保持一致布局
  @media (min-width: 1024px) {
    padding: 1.75rem 2rem;
    width: 100%;
  }
  
  // 平板端适配
  @media (max-width: 1023px) and (min-width: 769px) {
    padding: 1.5rem 1.5rem;
    width: 100%;
  }
  
  // 移动端适配
  @media (max-width: 768px) {
    padding: 1.25rem 1rem;
    width: 100%;
  }
  
  // 小屏移动端适配
  @media (max-width: 480px) {
    padding: 1rem 0.75rem;
    width: 100%;
  }
  
  .header-content {
    max-width: 1200px;
    margin: 0 auto;
    
    // PC端保持一致布局
    @media (min-width: 1024px) {
      max-width: 1400px;
    }
    
    // 平板端适配
    @media (max-width: 1023px) and (min-width: 769px) {
      max-width: 100%;
    }
    
    // 移动端适配
    @media (max-width: 768px) {
      max-width: 100%;
    }
    
    // 小屏移动端适配
    @media (max-width: 480px) {
      max-width: 100%;
    }
  }

  .logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    
    // PC端保持一致布局
    @media (min-width: 1024px) {
      gap: 1.25rem;
    }
    
    // 平板端适配
    @media (max-width: 1023px) and (min-width: 769px) {
      gap: 1rem;
    }
    
    // 移动端适配
    @media (max-width: 768px) {
      gap: 0.75rem;
    }
    
    // 小屏移动端适配
    @media (max-width: 480px) {
      gap: 0.5rem;
    }
  }

  .logo-icon {
    width: 48px;
    height: 48px;
    background: #3b82f6;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    
    // PC端保持一致布局
    @media (min-width: 1024px) {
      width: 52px;
      height: 52px;
      font-size: 1.3rem;
    }
    
    // 平板端适配
    @media (max-width: 1023px) and (min-width: 769px) {
      width: 48px;
      height: 48px;
      font-size: 1.2rem;
    }
    
    // 移动端适配
    @media (max-width: 768px) {
      width: 40px;
      height: 40px;
      font-size: 1rem;
    }
    
    // 小屏移动端适配
    @media (max-width: 480px) {
      width: 36px;
      height: 36px;
      font-size: 0.9rem;
    }
  }

  .header-text {
    h1 {
      font-size: 1.5rem;
      font-weight: bold;
      color: #1e293b;
      margin: 0 0 0.25rem 0;
      
      // PC端保持一致布局
      @media (min-width: 1024px) {
        font-size: 1.75rem;
      }
      
      // 平板端适配
      @media (max-width: 1023px) and (min-width: 769px) {
        font-size: 1.5rem;
      }
      
      // 移动端适配
      @media (max-width: 768px) {
        font-size: 1.25rem;
      }
      
      // 小屏移动端适配
      @media (max-width: 480px) {
        font-size: 1.125rem;
      }
    }

    p {
      color: #64748b;
      margin: 0;
      font-size: 0.9rem;
      
      // PC端保持一致布局
      @media (min-width: 1024px) {
        font-size: 1rem;
      }
      
      // 平板端适配
      @media (max-width: 1023px) and (min-width: 769px) {
        font-size: 0.9rem;
      }
      
      // 移动端适配
      @media (max-width: 768px) {
        font-size: 0.8rem;
      }
      
      // 小屏移动端适配
      @media (max-width: 480px) {
        font-size: 0.75rem;
      }
    }
  }
}

.dashboard-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  
  // PC端保持一致布局
  @media (min-width: 1024px) {
    max-width: 1400px;
    padding: 1.5rem;
    gap: 1.5rem;
  }
  
  // 平板端适配
  @media (max-width: 1023px) and (min-width: 769px) {
    max-width: 100%;
    padding: 1rem;
    gap: 1rem;
  }
  
  // 移动端适配
  @media (max-width: 768px) {
    max-width: 100%;
    padding: 0.75rem;
    gap: 0.75rem;
  }
  
  // 小屏移动端适配
  @media (max-width: 480px) {
    max-width: 100%;
    padding: 0.5rem;
    gap: 0.5rem;
  }
}

.top-section {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 1rem;
  
  // PC端保持一致布局
  @media (min-width: 1024px) {
    grid-template-columns: 1fr 3fr;
    gap: 1.5rem;
  }
  
  // 平板端适配
  @media (max-width: 1023px) and (min-width: 769px) {
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
  }
  
  // 移动端适配
  @media (max-width: 768px) {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  // 小屏移动端适配
  @media (max-width: 480px) {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

.analytics-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
  
  // PC端保持一致布局
  @media (min-width: 1024px) {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  // 平板端适配
  @media (max-width: 1023px) and (min-width: 769px) {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  // 移动端适配
  @media (max-width: 768px) {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  // 小屏移动端适配
  @media (max-width: 480px) {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }
}

.bottom-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  
  // PC端保持一致布局
  @media (min-width: 1024px) {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  
  // 平板端适配
  @media (max-width: 1023px) and (min-width: 769px) {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  // 移动端适配
  @media (max-width: 768px) {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  // 小屏移动端适配
  @media (max-width: 480px) {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

.customer-detail-section {
  width: 100%;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  
  // PC端保持一致布局
  @media (min-width: 1024px) {
    margin-bottom: 2.5rem;
  }
  
  // 平板端适配
  @media (max-width: 1023px) and (min-width: 769px) {
    margin-bottom: 2rem;
  }
  
  // 移动端适配
  @media (max-width: 768px) {
    margin-bottom: 1.5rem;
  }
  
  // 小屏移动端适配
  @media (max-width: 480px) {
    margin-bottom: 1rem;
  }
}

.left-section,
.right-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
  min-height: 600px;
  
  // PC端保持一致布局
  @media (min-width: 1024px) {
    gap: 2rem;
    min-height: 650px;
  }
  
  // 平板端适配
  @media (max-width: 1023px) and (min-width: 769px) {
    gap: 1.5rem;
    min-height: 600px;
  }
  
  // 移动端适配
  @media (max-width: 768px) {
    gap: 1rem;
    min-height: auto;
  }
  
  // 小屏移动端适配
  @media (max-width: 480px) {
    gap: 0.75rem;
    min-height: auto;
  }
}

// 通用组件样式适配
:deep(.team-alerts),
:deep(.team-report),
:deep(.sales-funnel),
:deep(.performance-ranking),
:deep(.member-details) {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  
  // PC端保持一致布局
  @media (min-width: 1024px) {
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 1.75rem;
  }
  
  // 平板端适配
  @media (max-width: 1023px) and (min-width: 769px) {
    border-radius: 0.875rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
  }
  
  // 移动端适配
  @media (max-width: 768px) {
    border-radius: 0.75rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    padding: 1.25rem;
  }
  
  // 小屏移动端适配
  @media (max-width: 480px) {
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    padding: 1rem;
  }
  
  h2, h3 {
    margin: 0 0 1rem 0;
    font-weight: 600;
    color: #1e293b;
    
    // PC端保持一致布局
    @media (min-width: 1024px) {
      font-size: 1.25rem;
      margin-bottom: 1.25rem;
    }
    
    // 平板端适配
    @media (max-width: 1023px) and (min-width: 769px) {
      font-size: 1.125rem;
      margin-bottom: 1rem;
    }
    
    // 移动端适配
    @media (max-width: 768px) {
      font-size: 1rem;
      margin-bottom: 0.875rem;
    }
    
    // 小屏移动端适配
    @media (max-width: 480px) {
      font-size: 0.9375rem;
      margin-bottom: 0.75rem;
    }
  }
}

// 团队预警组件适配
:deep(.team-alerts) {
  .alert-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    
    // PC端保持一致布局
    @media (min-width: 1024px) {
      padding: 1rem;
      gap: 1rem;
      font-size: 0.875rem;
    }
    
    // 平板端适配
    @media (max-width: 1023px) and (min-width: 769px) {
      padding: 0.75rem;
      gap: 0.75rem;
      font-size: 0.875rem;
    }
    
    // 移动端适配
    @media (max-width: 768px) {
      padding: 0.625rem;
      gap: 0.5rem;
      font-size: 0.8125rem;
      flex-direction: row;
    }
    
    // 小屏移动端适配
    @media (max-width: 480px) {
      padding: 0.5rem;
      gap: 0.375rem;
      font-size: 0.75rem;
      flex-direction: row;
    }
    
    .alert-icon {
      flex-shrink: 0;
      
      // PC端保持一致布局
      @media (min-width: 1024px) {
        font-size: 1.5rem;
      }
      
      // 平板端适配
      @media (max-width: 1023px) and (min-width: 769px) {
        font-size: 1.375rem;
      }
      
      // 移动端适配
      @media (max-width: 768px) {
        font-size: 1.25rem;
      }
      
      // 小屏移动端适配
      @media (max-width: 480px) {
        font-size: 1.125rem;
      }
    }
  }
}

// 团队报告组件适配
:deep(.team-report) {
  .report-grid {
    display: grid;
    gap: 1rem;
    
    // PC端保持一致布局
    @media (min-width: 1024px) {
      grid-template-columns: repeat(4, 1fr);
      gap: 1.25rem;
    }
    
    // 平板端适配
    @media (max-width: 1023px) and (min-width: 769px) {
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
    }
    
    // 移动端适配
    @media (max-width: 768px) {
      grid-template-columns: repeat(2, 1fr);
      gap: 0.75rem;
    }
    
    // 小屏移动端适配
    @media (max-width: 480px) {
      grid-template-columns: 1fr;
      gap: 0.5rem;
    }
  }
  
  .report-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    
    // PC端保持一致布局
    @media (min-width: 1024px) {
      padding: 1.25rem;
    }
    
    // 平板端适配
    @media (max-width: 1023px) and (min-width: 769px) {
      padding: 1rem;
    }
    
    // 移动端适配
    @media (max-width: 768px) {
      padding: 0.875rem;
    }
    
    // 小屏移动端适配
    @media (max-width: 480px) {
      padding: 0.75rem;
    }
    
    .card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 0.5rem;
      
      // 移动端适配
      @media (max-width: 768px) {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
      }
    }
    
    .card-title {
      color: #64748b;
      
      // PC端保持一致布局
      @media (min-width: 1024px) {
        font-size: 0.875rem;
      }
      
      // 平板端适配
      @media (max-width: 1023px) and (min-width: 769px) {
        font-size: 0.8125rem;
      }
      
      // 移动端适配
      @media (max-width: 768px) {
        font-size: 0.75rem;
      }
      
      // 小屏移动端适配
      @media (max-width: 480px) {
        font-size: 0.7rem;
      }
    }
    
    .card-trend {
      // PC端保持一致布局
      @media (min-width: 1024px) {
        font-size: 0.75rem;
      }
      
      // 平板端适配
      @media (max-width: 1023px) and (min-width: 769px) {
        font-size: 0.7rem;
      }
      
      // 移动端适配
      @media (max-width: 768px) {
        font-size: 0.65rem;
      }
      
      // 小屏移动端适配
      @media (max-width: 480px) {
        font-size: 0.6rem;
      }
    }
    
    .card-value {
      font-weight: 700;
      color: #1e293b;
      
      // PC端保持一致布局
      @media (min-width: 1024px) {
        font-size: 1.5rem;
      }
      
      // 平板端适配
      @media (max-width: 1023px) and (min-width: 769px) {
        font-size: 1.375rem;
      }
      
      // 移动端适配
      @media (max-width: 768px) {
        font-size: 1.25rem;
      }
      
      // 小屏移动端适配
      @media (max-width: 480px) {
        font-size: 1.125rem;
      }
    }
  }
}

// 销售漏斗组件适配
:deep(.sales-funnel) {
  .funnel-description {
    color: #64748b;
    margin-bottom: 1.5rem;
    
    // PC端保持一致布局
    @media (min-width: 1024px) {
      font-size: 0.875rem;
      margin-bottom: 1.75rem;
    }
    
    // 平板端适配
    @media (max-width: 1023px) and (min-width: 769px) {
      font-size: 0.8125rem;
      margin-bottom: 1.5rem;
    }
    
    // 移动端适配
    @media (max-width: 768px) {
      font-size: 0.75rem;
      margin-bottom: 1.25rem;
    }
    
    // 小屏移动端适配
    @media (max-width: 480px) {
      font-size: 0.7rem;
      margin-bottom: 1rem;
    }
  }
  
  .funnel-chart {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    // PC端保持一致布局
    @media (min-width: 1024px) {
      height: 120px;
      flex-direction: row;
    }
    
    // 平板端适配
    @media (max-width: 1023px) and (min-width: 769px) {
      height: 100px;
      flex-direction: row;
    }
    
    // 移动端适配
    @media (max-width: 768px) {
      height: auto;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      grid-template-rows: repeat(2, 1fr);
      gap: 0.5rem;
    }
    
    // 小屏移动端适配
    @media (max-width: 480px) {
      grid-template-columns: repeat(2, 1fr);
      grid-template-rows: repeat(3, 1fr);
      gap: 0.375rem;
    }
  }
  
  .funnel-stage {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    // PC端保持一致布局
    @media (min-width: 1024px) {
      height: 120px;
      clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%, 20px 50%);
    }
    
    // 平板端适配
    @media (max-width: 1023px) and (min-width: 769px) {
      height: 100px;
      clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%, 15px 50%);
    }
    
    // 移动端适配
    @media (max-width: 768px) {
      height: 60px;
      clip-path: none;
      border-radius: 8px;
      
      &:nth-child(4) {
        grid-column: 1;
        grid-row: 2;
      }
      
      &:nth-child(5) {
        grid-column: 2;
        grid-row: 2;
      }
    }
    
    // 小屏移动端适配
    @media (max-width: 480px) {
      height: 50px;
      border-radius: 6px;
    }
    
    .stage-label {
      font-weight: 500;
      
      // PC端保持一致布局
      @media (min-width: 1024px) {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
      }
      
      // 平板端适配
      @media (max-width: 1023px) and (min-width: 769px) {
        font-size: 0.8125rem;
        margin-bottom: 0.25rem;
      }
      
      // 移动端适配
      @media (max-width: 768px) {
        font-size: 0.75rem;
        margin-bottom: 0.125rem;
      }
      
      // 小屏移动端适配
      @media (max-width: 480px) {
        font-size: 0.7rem;
        margin-bottom: 0.125rem;
      }
    }
    
    .stage-value {
      font-weight: 700;
      
      // PC端保持一致布局
      @media (min-width: 1024px) {
        font-size: 1.25rem;
      }
      
      // 平板端适配
      @media (max-width: 1023px) and (min-width: 769px) {
        font-size: 1.125rem;
      }
      
      // 移动端适配
      @media (max-width: 768px) {
        font-size: 1rem;
      }
      
      // 小屏移动端适配
      @media (max-width: 480px) {
        font-size: 0.9rem;
      }
    }
  }
}

// 业绩排名组件适配
:deep(.performance-ranking) {
  max-height: 600px;
  overflow-y: auto;
  
  // PC端保持一致布局
  @media (min-width: 1024px) {
    max-height: 650px;
  }
  
  // 平板端适配
  @media (max-width: 1023px) and (min-width: 769px) {
    max-height: 600px;
  }
  
  // 移动端适配
  @media (max-width: 768px) {
    max-height: 450px;
  }
  
  // 小屏移动端适配
  @media (max-width: 480px) {
    max-height: 400px;
  }
  
  .ranking-table {
    .table-header {
      display: grid;
      padding: 0.75rem 0;
      border-bottom: 1px solid rgba(0, 0, 0, 0.1);
      font-weight: 600;
      color: #64748b;
      
      // PC端保持一致布局
      @media (min-width: 1024px) {
        grid-template-columns: 50px 1fr 100px 80px;
        gap: 1rem;
        font-size: 0.875rem;
        padding: 1rem 0;
      }
      
      // 平板端适配
      @media (max-width: 1023px) and (min-width: 769px) {
        grid-template-columns: 45px 1fr 90px 70px;
        gap: 0.75rem;
        font-size: 0.8125rem;
        padding: 0.875rem 0;
      }
      
      // 移动端适配
      @media (max-width: 768px) {
        grid-template-columns: 40px 1fr 80px 60px;
        gap: 0.5rem;
        font-size: 0.75rem;
        padding: 0.75rem 0;
      }
      
      // 小屏移动端适配
      @media (max-width: 480px) {
        grid-template-columns: 30px 1fr 60px;
        gap: 0.375rem;
        font-size: 0.7rem;
        padding: 0.625rem 0;
        
        .conversion {
          display: none;
        }
      }
    }
    
    .table-row {
      display: grid;
      padding: 0.75rem 0;
      border-bottom: 1px solid rgba(0, 0, 0, 0.05);
      cursor: pointer;
      transition: background-color 0.2s;
      
      &:hover {
        background-color: rgba(102, 126, 234, 0.05);
      }
      
      &.selected {
        background-color: rgba(102, 126, 234, 0.1);
      }
      
      // PC端保持一致布局
      @media (min-width: 1024px) {
        grid-template-columns: 50px 1fr 80px 90px 90px;

        gap: 1rem;
        font-size: 0.875rem;
        padding: 1rem 0;
      }
      
      // 平板端适配
      @media (max-width: 1023px) and (min-width: 769px) {
        grid-template-columns: 45px 1fr 70px 90px 90px;

        gap: 0.75rem;
        font-size: 0.8125rem;
        padding: 0.875rem 0;
      }
      
      // 移动端适配
      @media (max-width: 768px) {
        grid-template-columns: 40px 1fr 60px 90px 90px;

        gap: 0.5rem;
        font-size: 0.8rem;
        padding: 0.75rem 0;
      }
      
      // 小屏移动端适配
      @media (max-width: 480px) {
        grid-template-columns: 30px 1fr 60px;
        gap: 0.375rem;
        font-size: 0.75rem;
        padding: 0.625rem 0;
        
        .conversion {
          display: none;
        }
      }
      
      .rank {
        font-weight: 700;
        color: #667eea;
        
        // PC端保持一致布局
        @media (min-width: 1024px) {
          font-size: 1rem;
        }
        
        // 平板端适配
        @media (max-width: 1023px) and (min-width: 769px) {
          font-size: 0.9375rem;
        }
        
        // 移动端适配
        @media (max-width: 768px) {
          font-size: 0.875rem;
        }
        
        // 小屏移动端适配
        @media (max-width: 480px) {
          font-size: 0.8125rem;
        }
      }
      
      .name {
        font-weight: 500;
        color: #1e293b;
        
        // PC端保持一致布局
        @media (min-width: 1024px) {
          font-size: 0.875rem;
        }
        
        // 平板端适配
        @media (max-width: 1023px) and (min-width: 769px) {
          font-size: 0.8125rem;
        }
        
        // 移动端适配
        @media (max-width: 768px) {
          font-size: 0.8rem;
        }
        
        // 小屏移动端适配
        @media (max-width: 480px) {
          font-size: 0.75rem;
        }
      }
      
      .performance {
        font-weight: 600;
        color: #059669;
        
        // PC端保持一致布局
        @media (min-width: 1024px) {
          font-size: 0.875rem;
        }
        
        // 平板端适配
        @media (max-width: 1023px) and (min-width: 769px) {
          font-size: 0.8125rem;
        }
        
        // 移动端适配
        @media (max-width: 768px) {
          font-size: 0.75rem;
        }
        
        // 小屏移动端适配
        @media (max-width: 480px) {
          font-size: 0.7rem;
        }
      }
      
      .conversion {
        color: #64748b;
        
        // PC端保持一致布局
        @media (min-width: 1024px) {
          font-size: 0.875rem;
        }
        
        // 平板端适配
        @media (max-width: 1023px) and (min-width: 769px) {
          font-size: 0.8125rem;
        }
        
        // 移动端适配
        @media (max-width: 768px) {
          font-size: 0.75rem;
        }
      }
    }
  }
}

// 成员详情组件适配
:deep(.member-details) {
  max-height: 600px;
  overflow-y: auto;
  
  // PC端保持一致布局
  @media (min-width: 1024px) {
    max-height: 650px;
  }
  
  // 平板端适配
  @media (max-width: 1023px) and (min-width: 769px) {
    max-height: 600px;
  }
  
  // 移动端适配
  @media (max-width: 768px) {
    max-height: 500px;
  }
  
  // 小屏移动端适配
  @media (max-width: 480px) {
    max-height: 450px;
  }
  
  .details-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
    
    // PC端保持一致布局
    @media (min-width: 1024px) {
      grid-template-columns: repeat(3, 1fr);
      gap: 1.25rem;
      margin-bottom: 2rem;
    }
    
    // 平板端适配
    @media (max-width: 1023px) and (min-width: 769px) {
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
      margin-bottom: 1.5rem;
    }
    
    // 移动端适配
    @media (max-width: 768px) {
      grid-template-columns: repeat(2, 1fr);
      gap: 0.75rem;
      margin-bottom: 1.25rem;
    }
    
    // 小屏移动端适配
    @media (max-width: 480px) {
      grid-template-columns: 1fr;
      gap: 0.5rem;
      margin-bottom: 1rem;
    }
  }
  
  .detail-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    
    // PC端保持一致布局
    @media (min-width: 1024px) {
      padding: 1.25rem;
    }
    
    // 平板端适配
    @media (max-width: 1023px) and (min-width: 769px) {
      padding: 1rem;
    }
    
    // 移动端适配
    @media (max-width: 768px) {
      padding: 0.875rem;
    }
    
    // 小屏移动端适配
    @media (max-width: 480px) {
      padding: 0.75rem;
    }
    
    .detail-label {
      color: #64748b;
      margin-bottom: 0.5rem;
      
      // PC端保持一致布局
      @media (min-width: 1024px) {
        font-size: 0.875rem;
        margin-bottom: 0.625rem;
      }
      
      // 平板端适配
      @media (max-width: 1023px) and (min-width: 769px) {
        font-size: 0.8125rem;
        margin-bottom: 0.5rem;
      }
      
      // 移动端适配
      @media (max-width: 768px) {
        font-size: 0.75rem;
        margin-bottom: 0.375rem;
      }
      
      // 小屏移动端适配
      @media (max-width: 480px) {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
      }
    }
    
    .detail-value {
      font-weight: 700;
      color: #1e293b;
      
      // PC端保持一致布局
      @media (min-width: 1024px) {
        font-size: 1.25rem;
      }
      
      // 平板端适配
      @media (max-width: 1023px) and (min-width: 769px) {
        font-size: 1.125rem;
      }
      
      // 移动端适配
      @media (max-width: 768px) {
        font-size: 1rem;
      }
      
      // 小屏移动端适配
      @media (max-width: 480px) {
        font-size: 0.9375rem;
      }
    }
  }
  
  // 指导建议适配
  .guidance-section {
    margin-top: 1.5rem;
    
    // PC端保持一致布局
    @media (min-width: 1024px) {
      margin-top: 2rem;
    }
    
    // 平板端适配
    @media (max-width: 1023px) and (min-width: 769px) {
      margin-top: 1.5rem;
    }
    
    // 移动端适配
    @media (max-width: 768px) {
      margin-top: 1.25rem;
    }
    
    // 小屏移动端适配
    @media (max-width: 480px) {
      margin-top: 1rem;
    }
    
    .guidance-header {
      margin-bottom: 1rem;
      
      h3 {
        // PC端保持一致布局
        @media (min-width: 1024px) {
          font-size: 1.125rem;
        }
        
        // 平板端适配
        @media (max-width: 1023px) and (min-width: 769px) {
          font-size: 1rem;
        }
        
        // 移动端适配
        @media (max-width: 768px) {
          font-size: 0.9375rem;
        }
        
        // 小屏移动端适配
        @media (max-width: 480px) {
          font-size: 0.875rem;
        }
      }
    }
    
    .guidance-item {
      display: flex;
      align-items: flex-start;
      gap: 1rem;
      padding: 1rem 0;
      border-bottom: 1px solid rgba(0, 0, 0, 0.05);
      
      // PC端保持一致布局
      @media (min-width: 1024px) {
        gap: 1.25rem;
        padding: 1.25rem 0;
        flex-direction: row;
      }
      
      // 平板端适配
      @media (max-width: 1023px) and (min-width: 769px) {
        gap: 1rem;
        padding: 1rem 0;
        flex-direction: row;
      }
      
      // 移动端适配
      @media (max-width: 768px) {
        gap: 0.75rem;
        padding: 0.875rem 0;
        flex-direction: column;
        align-items: flex-start;
      }
      
      // 小屏移动端适配
      @media (max-width: 480px) {
        gap: 0.5rem;
        padding: 0.75rem 0;
        flex-direction: column;
      }
      
      .guidance-icon {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        
        // PC端保持一致布局
        @media (min-width: 1024px) {
          width: 36px;
          height: 36px;
          font-size: 1rem;
        }
        
        // 平板端适配
        @media (max-width: 1023px) and (min-width: 769px) {
          width: 32px;
          height: 32px;
          font-size: 0.9375rem;
        }
        
        // 移动端适配
        @media (max-width: 768px) {
          width: 28px;
          height: 28px;
          font-size: 0.875rem;
        }
        
        // 小屏移动端适配
        @media (max-width: 480px) {
          width: 24px;
          height: 24px;
          font-size: 0.8125rem;
        }
      }
      
      .guidance-content {
        flex: 1;
        
        .guidance-title {
          font-weight: 600;
          color: #1e293b;
          margin-bottom: 0.25rem;
          
          // PC端保持一致布局
          @media (min-width: 1024px) {
            font-size: 0.9375rem;
          }
          
          // 平板端适配
          @media (max-width: 1023px) and (min-width: 769px) {
            font-size: 0.875rem;
          }
          
          // 移动端适配
          @media (max-width: 768px) {
            font-size: 0.8125rem;
          }
          
          // 小屏移动端适配
          @media (max-width: 480px) {
            font-size: 0.75rem;
          }
        }
        
        .guidance-description {
          color: #64748b;
          margin-bottom: 0.75rem;
          
          // PC端保持一致布局
          @media (min-width: 1024px) {
            font-size: 0.8125rem;
            margin-bottom: 1rem;
          }
          
          // 平板端适配
          @media (max-width: 1023px) and (min-width: 769px) {
            font-size: 0.75rem;
            margin-bottom: 0.875rem;
          }
          
          // 移动端适配
          @media (max-width: 768px) {
            font-size: 0.7rem;
            margin-bottom: 0.75rem;
          }
          
          // 小屏移动端适配
          @media (max-width: 480px) {
            font-size: 0.65rem;
            margin-bottom: 0.625rem;
          }
        }
        
        .guidance-action {
          .action-label {
            color: #64748b;
            margin-bottom: 0.25rem;
            
            // PC端保持一致布局
            @media (min-width: 1024px) {
              font-size: 0.75rem;
            }
            
            // 平板端适配
            @media (max-width: 1023px) and (min-width: 769px) {
              font-size: 0.7rem;
            }
            
            // 移动端适配
            @media (max-width: 768px) {
              font-size: 0.65rem;
            }
            
            // 小屏移动端适配
            @media (max-width: 480px) {
              font-size: 0.6rem;
            }
          }
          
          .action-text {
            background: rgba(102, 126, 234, 0.1);
            color: #667eea;
            border-radius: 0.375rem;
            font-weight: 500;
            
            // PC端保持一致布局
            @media (min-width: 1024px) {
              padding: 0.5rem;
              font-size: 0.8125rem;
            }
            
            // 平板端适配
            @media (max-width: 1023px) and (min-width: 769px) {
              padding: 0.4375rem;
              font-size: 0.75rem;
            }
            
            // 移动端适配
            @media (max-width: 768px) {
              padding: 0.375rem;
              font-size: 0.7rem;
            }
            
            // 小屏移动端适配
            @media (max-width: 480px) {
              padding: 0.3125rem;
              font-size: 0.65rem;
            }
          }
        }
      }
    }
  }
}
</style>
