/* 财务工作台样式 - iOS风格设计 */

.finance-dashboard {
  min-height: 100vh;
  background-color: #f2f2f7;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* 顶部标题区域 */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.dashboard-title {
  font-size: 28px;
  font-weight: 600;
  color: #1c1c1e;
  margin: 0;
}

.current-date {
  font-size: 16px;
  color: #6c6c70;
}

/* 快捷操作区域 */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.action-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 16px;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;

  // 点击涟漪效果
  &::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out, opacity 0.3s ease-out;
    opacity: 0;
  }

  &:active::before {
    width: 300px;
    height: 300px;
    opacity: 1;
  }

  // 点击缩放效果
  &:active {
    transform: scale(0.96);
  }
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  
  &:active {
    transform: translateY(-1px) scale(0.96);
  }
}

.action-btn.active {
  background: linear-gradient(135deg, #007aff 0%, #0056b3 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3);
  
  &::before {
    background: rgba(255, 255, 255, 0.2);
  }
}

.action-btn.active .action-icon {
  color: white;
}

.action-btn.active .action-label {
  color: white;
}

.action-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.action-label {
  font-size: 16px;
  font-weight: 500;
  color: #1c1c1e;
}

/* 主内容区域 */
.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 数据概览卡片 */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.stat-card {
  display: flex;
  align-items: center;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.stat-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  margin-right: 16px;
  background-color: #f2f2f7;
  color: #007aff;
}

.stat-icon.orders {
  background-color: #e0f7fa;
  color: #00bcd4;
}

.stat-icon.payment {
  background-color: #e8f5e9;
  color: #4caf50;
}

.stat-icon.quotes {
  background-color: #fff3e0;
  color: #ff9800;
}

.stat-icon.savings {
  background-color: #ede7f6;
  color: #9c27b0;
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #1c1c1e;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: #6c6c70;
}

.view-detail-btn {
  position: relative;
  padding: 8px 16px;
  background-color: #f2f2f7;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #007aff;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;

  &::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 122, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease-out, height 0.5s ease-out;
  }

  &:active::before {
    width: 200px;
    height: 200px;
  }

  &:active {
    transform: scale(0.95);
  }
}

.view-detail-btn:hover {
  background-color: #e5e5ea;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.15);
}

/* 待办任务区域 */
.todo-section {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: #1c1c1e;
  margin: 0;
}

.task-count {
  font-size: 14px;
  color: #6c6c70;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-item {
  display: flex;
  align-items: center;
  padding: 16px;
  background-color: #f9f9f9;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.task-item:hover {
  background-color: #f2f2f7;
  transform: translateX(4px);
}

.task-priority-indicator {
  width: 4px;
  height: 24px;
  border-radius: 2px;
  background-color: #8e8e93;
  margin-right: 12px;
}

.task-item.high-priority .task-priority-indicator {
  background-color: #ff3b30;
}

.task-item.medium-priority .task-priority-indicator {
  background-color: #ff9500;
}

.task-content {
  flex: 1;
}

.task-title {
  font-size: 16px;
  font-weight: 500;
  color: #1c1c1e;
  margin-bottom: 4px;
}

.task-meta {
  display: flex;
  gap: 16px;
}

.due-time {
  font-size: 14px;
  color: #6c6c70;
}

.task-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #6c6c70;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .finance-dashboard {
    padding: 16px;
  }
  
  .dashboard-title {
    font-size: 24px;
  }
  
  .quick-actions {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
  }
  
  .stats-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .stat-card {
    padding: 16px;
  }
  
  .todo-section {
    padding: 16px;
  }
}

/* iOS风格动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-card,
.action-btn,
.task-item {
  animation: fadeIn 0.5s ease-out;
}

.stat-card:nth-child(2) {
  animation-delay: 0.1s;
}

.stat-card:nth-child(3) {
  animation-delay: 0.2s;
}

.stat-card:nth-child(4) {
  animation-delay: 0.3s;
}

.action-btn:nth-child(2) {
  animation-delay: 0.1s;
}

.action-btn:nth-child(3) {
  animation-delay: 0.2s;
}

.action-btn:nth-child(4) {
  animation-delay: 0.3s;
}

/* 工时统计模块样式 */
.work-hour-module {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  animation: slideInUp 0.5s ease-out;
}

.work-hour-module .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.work-hour-module h2 {
  font-size: 20px;
  font-weight: 600;
  color: #1c1c1e;
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #8e8e93;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.close-btn:hover {
  background-color: #f2f2f7;
}

/* 工时概览卡片 */
.work-hour-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.overview-card {
  display: flex;
  align-items: center;
  padding: 16px;
  background-color: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.card-icon {
  font-size: 24px;
  margin-right: 12px;
}

.card-content {
  flex: 1;
}

.card-value {
  font-size: 18px;
  font-weight: 600;
  color: #1c1c1e;
  margin-bottom: 4px;
}

.card-label {
  font-size: 12px;
  color: #6c6c70;
}

/* 绩效等级分布 */
.performance-distribution {
  margin-bottom: 24px;
}

.performance-distribution h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1c1c1e;
  margin-bottom: 16px;
}

.performance-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.performance-item {
  display: flex;
  align-items: center;
  padding: 12px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.level-indicator {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  margin-right: 12px;
}

.level-info {
  flex: 1;
}

.level-count {
  font-size: 14px;
  font-weight: 600;
  color: #1c1c1e;
  margin-bottom: 2px;
}

.level-desc {
  font-size: 12px;
  color: #6c6c70;
}

/* 月度统计表格 */
.monthly-stats h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1c1c1e;
  margin-bottom: 16px;
}

.stats-table {
  background-color: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
}

.table-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  background-color: #e9ecef;
  padding: 12px 0;
}

.header-cell {
  padding: 0 16px;
  font-size: 12px;
  font-weight: 600;
  color: #495057;
  text-align: center;
}

.table-body {
  max-height: 300px;
  overflow-y: auto;
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  padding: 12px 0;
  border-bottom: 1px solid #dee2e6;
}

.table-row:last-child {
  border-bottom: none;
}

.table-cell {
  padding: 0 16px;
  font-size: 14px;
  color: #495057;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.performance-badge {
  padding: 4px 8px;
  border-radius: 12px;
  color: white;
  font-size: 12px;
  font-weight: 600;
}

/* 工时按钮特殊样式 */
.work-hour-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.work-hour-btn .action-icon {
  color: white;
}

.work-hour-btn .action-label {
  color: white;
}

.work-hour-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

/* 动画效果 */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 时间维度筛选器 */
.time-dimension-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding: 4px;
  background-color: #f2f2f7;
  border-radius: 10px;
  width: fit-content;
}

.dimension-btn {
  position: relative;
  padding: 8px 20px;
  background-color: transparent;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #8e8e93;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;

  &::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 122, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease-out, height 0.4s ease-out;
  }

  &:active::before {
    width: 150px;
    height: 150px;
  }

  &:active {
    transform: scale(0.93);
  }
}

.dimension-btn.active {
  background-color: #ffffff;
  color: #007aff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  
  &::before {
    background: rgba(0, 122, 255, 0.08);
  }
}

.dimension-btn:hover:not(.active) {
  color: #1c1c1e;
  background-color: rgba(0, 0, 0, 0.03);
}

/* 标准工时预设 */
.standard-hours-section {
  margin-bottom: 32px;
}

.standard-hours-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1c1c1e;
  margin-bottom: 16px;
}

.complexity-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.complexity-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 20px;
  color: white;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.complexity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(102, 126, 234, 0.3);
}

.complexity-header {
  margin-bottom: 16px;
}

.complexity-type {
  font-size: 16px;
  font-weight: 600;
  display: block;
}

.complexity-stages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.stage-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.stage-name {
  font-size: 13px;
  font-weight: 500;
}

.stage-hours {
  font-size: 14px;
  font-weight: 600;
}

.complexity-total {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 8px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

/* 逾期项目监控 */
.overdue-section {
  margin-bottom: 32px;
}

.overdue-section .section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.overdue-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1c1c1e;
  margin: 0;
}

.export-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: #007aff;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;

  &::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease-out, height 0.5s ease-out;
  }

  &:active::before {
    width: 200px;
    height: 200px;
  }

  &:active {
    transform: scale(0.95);
    background-color: #0056b3;
  }
}

.export-btn:hover {
  background-color: #0056b3;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
  transform: translateY(-1px);
}

.overdue-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.overdue-item {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 20px;
  border-left: 4px solid #ff9500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.overdue-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.overdue-item.mild {
  border-left-color: #ff9500;
}

.overdue-item.warning {
  border-left-color: #ff6b00;
}

.overdue-item.severe {
  border-left-color: #ff3b30;
}

.overdue-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-name {
  font-size: 16px;
  font-weight: 600;
  color: #1c1c1e;
}

.project-id {
  font-size: 12px;
  color: #8e8e93;
}

.overdue-badge {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: white;
}

.overdue-badge.mild {
  background-color: #ff9500;
}

.overdue-badge.warning {
  background-color: #ff6b00;
}

.overdue-badge.severe {
  background-color: #ff3b30;
}

.overdue-content {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}

.overdue-detail {
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-label {
  font-size: 13px;
  color: #8e8e93;
}

.detail-value {
  font-size: 13px;
  font-weight: 500;
  color: #1c1c1e;
}

.detail-value.stage-badge {
  padding: 4px 10px;
  background-color: #f2f2f7;
  border-radius: 6px;
}

.detail-value.reason {
  color: #ff3b30;
  font-weight: 600;
}

.overdue-action {
  display: flex;
  justify-content: flex-end;
}

.view-detail-text {
  font-size: 14px;
  color: #007aff;
  font-weight: 500;
}

/* 人效统计看板 */
.efficiency-dashboard {
  margin-bottom: 32px;
}

.efficiency-dashboard h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1c1c1e;
  margin-bottom: 16px;
}

.efficiency-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.efficiency-item {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: all 0.3s ease;
}

.efficiency-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.efficiency-header {
  margin-bottom: 20px;
}

.designer-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.designer-name {
  font-size: 18px;
  font-weight: 600;
  color: #1c1c1e;
}

.designer-stats-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stat-chip {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: white;
}

.stat-chip.overdue {
  background-color: #ff3b30;
}

.stat-chip.idle {
  background-color: #ff9500;
}

/* 阶段利用率 */
.stage-utilization {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.utilization-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.utilization-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stage-label {
  font-size: 13px;
  font-weight: 500;
  color: #6c6c70;
}

.utilization-value {
  font-size: 14px;
  font-weight: 600;
  color: #1c1c1e;
}

.utilization-bar {
  height: 8px;
  background-color: #f2f2f7;
  border-radius: 4px;
  overflow: hidden;
}

.utilization-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease, background-color 0.3s ease;
}

/* 决策建议 */
.efficiency-suggestion {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
  border-radius: 12px;
}

.suggestion-icon {
  font-size: 24px;
}

.suggestion-text {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #1c1c1e;
}

/* 警告卡片样式 */
.overview-card.warning-card {
  border: 2px solid #ff3b30;
  background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
}

.overview-card.warning-card .card-value {
  color: #ff3b30;
}

/* 精美悬浮按钮 */
.floating-review-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1000;
  overflow: hidden;
}

.floating-review-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 48px rgba(102, 126, 234, 0.6);
}

.floating-review-btn:active {
  transform: translateY(-2px) scale(1.02);
}

.floating-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.floating-review-btn:hover .floating-btn-icon {
  background-color: rgba(255, 255, 255, 0.3);
  transform: rotate(360deg);
}

.floating-btn-text {
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* 脉冲动画效果 */
.floating-btn-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  opacity: 0;
  z-index: -1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.15);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* 悬浮按钮响应式 */
@media (max-width: 768px) {
  .floating-review-btn {
    bottom: 20px;
    right: 20px;
    padding: 14px 20px;
    font-size: 14px;
  }

  .floating-btn-text {
    display: none;
  }

  .floating-btn-icon {
    width: 24px;
    height: 24px;
  }

  .floating-review-btn {
    border-radius: 50%;
    padding: 16px;
  }
}

// ========== 工时统计模块增强样式 ==========

// 时间维度筛选器美化
.time-dimension-filter {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  padding: 6px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  
  .dimension-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #6c757d;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    
    &::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      opacity: 0;
      transition: opacity 0.3s ease;
      z-index: -1;
    }
    
    &:hover:not(.active) {
      background: rgba(102, 126, 234, 0.08);
      transform: translateY(-1px);
    }
    
    &.active {
      color: white;
      box-shadow: 0 4px 16px rgba(102, 126, 234, 0.35);
      transform: translateY(-2px);
      
      &::before {
        opacity: 1;
      }
    }
  }
}

// 人效统计看板美化
.efficiency-dashboard {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  
  h3 {
    margin: 0 0 24px 0;
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
  }
}

.efficiency-list {
  display: grid;
  gap: 20px;
}

.efficiency-item {
  background: white;
  border-radius: 12px;
  padding: 24px;
  border: 2px solid #e9ecef;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
  }
  
  &:hover {
    border-color: #667eea;
    box-shadow: 0 8px 28px rgba(102, 126, 234, 0.15);
    transform: translateY(-3px);
    
    &::before {
      transform: scaleY(1);
    }
  }
}

.efficiency-header {
  margin-bottom: 20px;
  
  .designer-info {
    .designer-name {
      font-size: 18px;
      font-weight: 700;
      color: #2c3e50;
      margin-bottom: 12px;
    }
    
    .designer-stats-summary {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      
      .stat-chip {
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 600;
        background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
        color: #1976d2;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        
        &.overdue {
          background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
          color: #c62828;
        }
        
        &.idle {
          background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
          color: #7b1fa2;
        }
      }
    }
  }
}

// 阶段工时利用率条
.stage-utilization {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.utilization-item {
  .utilization-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    
    .stage-label {
      font-size: 14px;
      font-weight: 600;
      color: #495057;
    }
    
    .utilization-value {
      font-size: 14px;
      font-weight: 700;
      color: #667eea;
    }
  }
  
  .utilization-bar {
    height: 10px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    
    .utilization-fill {
      height: 100%;
      border-radius: 10px;
      transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
      position: relative;
      
      &::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        animation: shimmer 2s infinite;
      }
    }
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

// 效率建议
.efficiency-suggestion {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
  border-radius: 10px;
  border-left: 4px solid #ffc107;
  
  .suggestion-icon {
    font-size: 22px;
    flex-shrink: 0;
  }
  
  .suggestion-text {
    font-size: 14px;
    line-height: 1.6;
    color: #856404;
    font-weight: 500;
  }
}

// 工时概览卡片增强
.work-hour-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
  
  .overview-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    
    &::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
      transform: scaleX(0);
      transition: transform 0.3s ease;
    }
    
    &:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
      
      &::before {
        transform: scaleX(1);
      }
    }
    
    &.warning-card {
      border: 2px solid #ffebee;
      
      .card-icon {
        background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
        color: #c62828;
      }
      
      .card-value {
        color: #c62828;
      }
    }
    
    .card-icon {
      width: 56px;
      height: 56px;
      border-radius: 12px;
      background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      flex-shrink: 0;
    }
    
    .card-content {
      flex: 1;
      
      .card-value {
        font-size: 28px;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 4px;
      }
      
      .card-label {
        font-size: 13px;
        color: #6c757d;
        font-weight: 500;
      }
    }
  }
}

// 标准工时预设美化
.standard-hours-section {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  
  h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
  }
}

.complexity-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.complexity-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  
  &:hover {
    border-color: #667eea;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
  }
  
  .complexity-header {
    margin-bottom: 16px;
    
    .complexity-type {
      font-size: 16px;
      font-weight: 700;
      color: #667eea;
      display: inline-block;
      padding: 6px 14px;
      background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
      border-radius: 20px;
    }
  }
  
  .complexity-stages {
    margin-bottom: 12px;
    
    .stage-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px 0;
      border-bottom: 1px solid #f1f3f5;
      
      &:last-child {
        border-bottom: none;
      }
      
      .stage-name {
        font-size: 14px;
        color: #495057;
        font-weight: 500;
      }
      
      .stage-hours {
        font-size: 14px;
        font-weight: 700;
        color: #667eea;
      }
    }
  }
  
  .complexity-total {
    padding-top: 12px;
    border-top: 2px solid #dee2e6;
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
    text-align: right;
  }
}

/* 渐入动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.complexity-card,
.overdue-item,
.efficiency-item {
  animation: fadeInUp 0.6s ease-out;
}

.complexity-card:nth-child(2) {
  animation-delay: 0.1s;
}

.complexity-card:nth-child(3) {
  animation-delay: 0.2s;
}

.complexity-card:nth-child(4) {
  animation-delay: 0.3s;
}

/* 响应式调整 */
@media (max-width: 1024px) {
  .stage-utilization {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .complexity-cards {
    grid-template-columns: 1fr;
  }

  .stage-utilization {
    grid-template-columns: 1fr;
  }

  .time-dimension-filter {
    width: 100%;
  }

  .dimension-btn {
    flex: 1;
  }
}