@use 'sass:color';

// 导入iOS主题变量
@use '../ios-theme.scss' as *;

.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: $ios-background;
  min-height: 100vh;
}

.dashboard-header {
  margin-bottom: 30px;
  h1 {
    font-size: 32px;
    color: $ios-text-primary;
    font-weight: $ios-font-weight-semibold;
    font-family: $ios-font-family;
    margin-bottom: 20px;
  }
}

/* 顶部导航样式 - 重写为白色背景蓝色过渡效果 */
.dashboard-nav {
  display: flex;
  background-color: #ffffff; /* 设置底色为白色 */
  border-radius: 12px; /* 增大圆角 */
  padding: 4px; /* 保留内边距 */
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* 添加轻微阴影 */
  border: 1px solid #f0f0f0; /* 添加细微边框 */
  
  .nav-btn {
    flex: 1;
    padding: 14px 24px; /* 增加垂直内边距 */
    border: none;
    border-radius: 10px; /* 增大圆角 */
    background-color: transparent;
    color: #666666; /* 默认文字颜色 */
    font-size: 16px; /* 略微增大字体 */
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: $ios-font-family;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
    
    // 按钮点击效果
    &:active {
      transform: scale(0.97);
    }
    
    // 活动状态样式
    &.active {
      color: #ffffff; /* 活动状态文字为白色 */
      font-weight: 600;
      
      // 蓝色背景动画效果
      &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #007aff; /* 设置为iOS蓝色 */
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3); /* 蓝色阴影效果 */
        z-index: -1;
        animation: buttonSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
      }
    }
    
    // 悬停效果
    &:hover:not(.active) {
      background-color: rgba(0, 122, 255, 0.05); /* 轻微蓝色背景 */
      color: #007aff; /* 文字变为蓝色 */
    }
  }
}

// 按钮切换动画 - 优化效果
@keyframes buttonSlideIn {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.dashboard-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* 视图切换按钮样式 */
.view-toggle {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;

  .toggle-btn {
    background: $ios-card-background;
    color: $ios-text-primary;
    border: 1px solid $ios-border;
    border-radius: $ios-radius-md;
    padding: 8px 14px;
    cursor: pointer;
    font-family: $ios-font-family;
    transition: all .2s ease;

    &:hover {
      background-color: color-mix(in srgb, $ios-background-secondary 70%, white);
    }
  }
}

/* 列表视图样式 */
.list-section {
  background: $ios-card-background;
  border-radius: $ios-radius-lg;
  border: 1px solid $ios-border;
  box-shadow: $ios-shadow-card;
  overflow: hidden;

  .list-header {
    display: grid;
    grid-template-columns: 120px 1.2fr 1.2fr 120px 180px 120px 160px;
    padding: 12px 16px;
    background: $ios-background-secondary;
    color: $ios-text-secondary;
    font-weight: $ios-font-weight-medium;
    border-bottom: 1px solid $ios-border;
  }

  .list-body {
    .list-row {
      display: grid;
      grid-template-columns: 120px 1.2fr 1.2fr 120px 180px 120px 160px;
      padding: 12px 16px;
      align-items: center;
      border-bottom: 1px solid $ios-border;
      transition: background .2s ease;

      &:hover {
        background: rgba(0,0,0,0.02);
      }

      .col {
        font-size: 14px;
        color: $ios-text-primary;
      }

      .actions-col {
        display: flex;
        gap: 10px;
        .btn-link {
          background: transparent;
          border: none;
          color: #007aff;
          cursor: pointer;
          padding: 6px 8px;
          border-radius: $ios-radius-sm;

          &:hover {
            background: rgba(0,122,255,0.08);
          }
        }
      }

      .urgency-col {
        display: flex;
        align-items: center;
        gap: 8px;
        .urgency-dot {
          width: 10px;
          height: 10px;
          border-radius: 50%;
          display: inline-block;
        }
        .urgency-text {
          font-weight: $ios-font-weight-medium;
        }
      }

      /* 紧急度颜色 */
      .urgency-overdue { background: $ios-danger; }
      .urgency-high { background: #ff9500; }
      .urgency-medium { background: #ffcc00; }
      .urgency-low { background: #34c759; }
    }
  }
}

/* 核心卡片区域样式 */
.core-cards-section {
  margin-bottom: 30px;
  
  .cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    
    @media (max-width: 1024px) {
      grid-template-columns: repeat(2, 1fr);
    }
    
    @media (max-width: 768px) {
      grid-template-columns: 1fr;
    }
  }
}

/* 核心卡片基础样式 */
.core-card {
  background: $ios-card-background;
  border-radius: $ios-radius-lg;
  padding: 20px;
  box-shadow: $ios-shadow-card;
  transition: all 0.3s ease;
  border: 1px solid $ios-border;
  display: flex;
  flex-direction: column;
  height: 100%;
  
  &:hover {
    box-shadow: $ios-shadow-lg;
    transform: translateY(-2px);
  }
  
  .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    
    .card-badge {
      padding: 4px 12px;
      border-radius: $ios-radius-full;
      font-size: 12px;
      font-weight: $ios-font-weight-medium;
      color: $ios-text-secondary;
      background-color: $ios-background-secondary;
      
      &.urgent {
        background-color: rgba(255, 59, 48, 0.1);
        color: $ios-danger;
        border: 1px solid $ios-danger;
      }
      
      &.workload {
        background-color: rgba(52, 199, 89, 0.1);
        color: $ios-success;
        border: 1px solid $ios-success;
      }
      
      &.overdue {
        background-color: rgba(255, 149, 0, 0.1);
        color: $ios-warning;
        border: 1px solid $ios-warning;
      }
    }
    
    h3 {
      font-size: 17px;
      color: $ios-text-primary;
      margin: 0;
      font-family: $ios-font-family;
      flex: 1;
      margin-right: 10px;
    }
  }
  
  .card-content {
    flex: 1;
    margin-bottom: 16px;
    
    .project-name,
    .deadline,
    .countdown,
    .workload-status {
      font-size: 14px;
      color: $ios-text-secondary;
      margin: 6px 0;
    }
    
    .deadline.overdue {
      color: $ios-danger;
    }
    
    .countdown {
      color: $ios-warning;
      font-weight: $ios-font-weight-medium;
    }
  }
  
  .card-actions {
    display: flex;
    gap: 10px;
    
    button {
      padding: 8px 16px;
      border: none;
      border-radius: $ios-radius-md;
      font-size: 14px;
      cursor: pointer;
      transition: all 0.3s ease;
      font-weight: $ios-font-weight-medium;
      font-family: $ios-font-family;
      flex: 1;
    }
    
    .btn-primary {
      background-color: $ios-primary;
      color: white;
      
      &:hover {
        background-color: color-mix(in srgb, $ios-primary 90%, black);
        transform: translateY(-1px);
        box-shadow: $ios-shadow-md;
      }
    }
    
    .btn-secondary {
      background-color: $ios-background-secondary;
      color: $ios-text-primary;
      border: 1px solid $ios-border;
      
      &:hover {
        background-color: color-mix(in srgb, $ios-background-secondary 70%, white);
      }
    }
  }
}

/* 工作量卡片特定样式 */
.workload-card {
  .workload-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
  }
  
  .workload-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: $ios-shadow-md;
    transition: all 0.3s ease;
    
    .workload-percentage {
      font-size: 28px;
      font-weight: $ios-font-weight-bold;
      color: white;
      font-family: $ios-font-family;
    }
  }
}

/* 附加信息区域样式 */
.additional-info-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

.info-column {
  background: $ios-card-background;
  border-radius: $ios-radius-lg;
  padding: 20px;
  box-shadow: $ios-shadow-card;
  border: 1px solid $ios-border;
}

/* 底部信息分层展示 */
.bottom-sections {
  margin-top: 30px;
  
  .bottom-section {
    margin-bottom: 30px;
  }
}

/* 特定页面视图样式 */
.skills-view,
.personal-view {
  background: $ios-card-background;
  border-radius: $ios-radius-lg;
  padding: 24px;
  box-shadow: $ios-shadow-card;
  border: 1px solid $ios-border;
}

/* 紧急任务区域样式 */
.urgent-section {
  grid-column: 1 / -1;
}

.urgent-list {
  display: grid;
  gap: 16px;
}

.urgent-item {
  background: color-mix(in srgb, $ios-danger 10%, transparent);
  border: 1px solid $ios-danger;
  border-radius: $ios-radius-lg;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  
  .urgent-content {
    .urgent-title {
      font-size: 17px;
      color: $ios-danger;
      font-weight: $ios-font-weight-medium;
      margin: 0 0 6px 0;
      font-family: $ios-font-family;
    }
    
    .urgent-detail {
      font-size: 15px;
      color: $ios-text-secondary;
      margin: 0;
    }
  }
  
  .urgent-actions {
    .btn-urgent-detail {
      padding: 10px 18px;
      border: none;
      border-radius: $ios-radius-md;
      background-color: $ios-danger;
      color: white;
      font-size: 15px;
      cursor: pointer;
      transition: all 0.3s ease;
      font-weight: $ios-font-weight-medium;
      font-family: $ios-font-family;
      
      &:hover {
        background-color: color-mix(in srgb, $ios-danger 90%, black);
        transform: translateY(-1px);
        box-shadow: $ios-shadow-md;
      }
      
      &:active {
        transform: translateY(0);
      }
    }
  }
}

/* 待办任务区域样式 */
.task-section {
  grid-column: 1 / -1;
}

.task-list {
  display: grid;
  gap: 16px;
}

.task-item {
  background: $ios-card-background;
  border-radius: $ios-radius-lg;
  padding: 20px;
  box-shadow: $ios-shadow-card;
  transition: all 0.3s ease;
  border: 1px solid $ios-border;
  
  &:hover {
    box-shadow: $ios-shadow-lg;
    transform: translateY(-2px);
  }
  
  .task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    
    h3 {
      font-size: 17px;
      color: $ios-text-primary;
      margin: 0;
      font-family: $ios-font-family;
    }
    
    .task-stage {
      font-size: 13px;
      padding: 6px 14px;
      border-radius: $ios-radius-full;
      background-color: $ios-primary-light;
      color: $ios-primary;
      border: 1px solid $ios-primary;
    }
  }
  
  .task-info {
    margin-bottom: 16px;
    
    .project-name {
      font-size: 15px;
      color: $ios-text-secondary;
      margin: 6px 0;
    }
    
    .deadline {
      font-size: 15px;
      color: $ios-text-secondary;
      margin: 6px 0;
      
      &.overdue {
        color: $ios-danger;
      }
      
      .overdue-badge {
        background-color: rgba(255, 59, 48, 0.1);
        color: $ios-danger;
        padding: 4px 10px;
        border-radius: $ios-radius-full;
        font-size: 12px;
        margin-left: 8px;
        border: 1px solid $ios-danger;
      }
      
      .countdown-badge {
        background-color: color-mix(in srgb, $ios-warning 15%, transparent);
        color: $ios-warning;
        padding: 4px 10px;
        border-radius: $ios-radius-full;
        font-size: 12px;
        margin-left: 8px;
        border: 1px solid $ios-warning;
      }
    }
    
    .task-progress {
      margin-top: 12px;
      
      .progress-bar {
        height: 8px;
        background-color: $ios-background-secondary;
        border-radius: $ios-radius-full;
        overflow: hidden;
        border: 1px solid $ios-border;
        
        .progress-fill {
          height: 100%;
          background-color: $ios-primary;
          transition: width 0.3s ease;
          border-radius: $ios-radius-full;
        }
      }
      
      .progress-text {
        font-size: 13px;
        color: $ios-text-secondary;
        margin: 6px 0 0 0;
        text-align: right;
      }
    }
  }
  
  .task-actions {
    display: flex;
    gap: 12px;
    
    button {
      padding: 10px 18px;
      border: none;
      border-radius: $ios-radius-md;
      font-size: 15px;
      cursor: pointer;
      transition: $ios-animation-normal $ios-animation-easing;
      font-weight: $ios-font-weight-medium;
      font-family: $ios-font-family;
    }
    
    .btn-complete {
      background-color: $ios-success;
      color: white;
      
      &:hover {
        background-color: color.adjust($ios-success, $lightness: -5%);
        transform: translateY(-1px);
        box-shadow: $ios-shadow-md;
      }
      
      &:active {
        transform: translateY(0);
      }
    }
    
    .btn-detail {
      background-color: $ios-primary;
      color: white;
      
      &:hover {
        background-color: #003A8C;
        transform: translateY(-1px);
        box-shadow: $ios-shadow-md;
      }
      
      &:active {
        transform: translateY(0);
      }
    }
  }
}

/* 待处理反馈区域样式 */
.feedback-section {
  grid-column: 1 / -1;
}

.feedback-list {
  display: grid;
  gap: 16px;
}

.feedback-item {
  background: color-mix(in srgb, $ios-warning 10%, transparent);
  border: 1px solid $ios-warning;
  border-radius: $ios-radius-lg;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  
  .feedback-content {
    .feedback-title {
      font-size: 17px;
      color: $ios-warning;
      font-weight: $ios-font-weight-medium;
      margin: 0 0 6px 0;
      font-family: $ios-font-family;
    }
    
    .feedback-project,
    .feedback-summary,
    .feedback-time {
      font-size: 14px;
      color: $ios-text-secondary;
      margin: 4px 0;
    }
  }
  
  .feedback-actions {
    .btn-handle-feedback {
      padding: 10px 18px;
      border: 1px solid $ios-warning;
      border-radius: $ios-radius-md;
      background-color: $ios-card-background;
      color: $ios-warning;
      font-size: 15px;
      cursor: pointer;
      transition: all 0.3s ease;
      font-weight: $ios-font-weight-medium;
      font-family: $ios-font-family;
      
      &:hover {
        background-color: $ios-warning;
        color: white;
        transform: translateY(-1px);
        box-shadow: $ios-shadow-md;
      }
      
      &:active {
        transform: translateY(0);
      }
    }
  }
}

/* 时间预警区域样式 */
.warning-section {
  grid-column: 1 / -1;
}

.warning-list {
  display: grid;
  gap: 16px;
}

.warning-item {
  background: rgba(255, 149, 0, 0.1);
  border: 1px solid $ios-warning;
  border-radius: $ios-radius-lg;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  
  .warning-content {
    
    .warning-title {
      font-size: 17px;
      color: $ios-warning;
      font-weight: $ios-font-weight-medium;
      margin: 0 0 6px 0;
      font-family: $ios-font-family;
    }
    
    .warning-detail {
      font-size: 15px;
      color: $ios-warning;
      margin: 0;
    }
  }
  
  .warning-actions {
    
    .btn-generate-reminder {
      padding: 10px 18px;
      border: 1px solid $ios-warning;
      border-radius: $ios-radius-md;
      background-color: $ios-card-background;
      color: $ios-warning;
      font-size: 15px;
      cursor: pointer;
      transition: all 0.3s ease;
      font-weight: 500;
      font-family: $ios-font-family;
      
      &:hover {
        background-color: $ios-warning;
        color: white;
        transform: translateY(-1px);
        box-shadow: $ios-shadow-md;
      }
      
      &:active {
        transform: translateY(0);
      }
    }
  }
}

/* 代班信息样式 */
.shift-info {
  background: $ios-card-background;
  border-radius: $ios-radius-lg;
  padding: $ios-spacing-xl;
  box-shadow: $ios-shadow-card;
  border: 1px solid $ios-border;
  height: fit-content;
}

.shift-info .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: $ios-spacing-xl;
}

.shift-info .section-header h2 {
  font-size: $ios-font-size-lg;
  color: $ios-text-primary;
  font-weight: $ios-font-weight-medium;
  display: flex;
  align-items: center;
  margin: 0;
  font-family: $ios-font-family;
}

.add-shift-btn {
  padding: $ios-spacing-sm $ios-spacing-lg;
  border: 1px solid $ios-primary;
  border-radius: $ios-radius-md;
  background-color: $ios-card-background;
  color: $ios-primary;
  font-size: $ios-font-size-sm;
  cursor: pointer;
  transition: $ios-feedback-tap;
  font-weight: $ios-font-weight-medium;
  font-family: $ios-font-family;
}

.add-shift-btn:hover {
  background-color: $ios-primary;
  color: white;
  transform: translateY(-1px);
  box-shadow: $ios-shadow-sm;
}

.add-shift-btn:active {
  transform: translateY(0);
}

.shift-list {
  display: flex;
  flex-direction: column;
  gap: $ios-spacing-lg;
}

.shift-item {
  background-color: $ios-background-secondary;
  border-radius: $ios-radius-md;
  padding: $ios-spacing-lg;
  border: 1px solid $ios-border;
  transition: $ios-feedback-hover;
}

.shift-item:hover {
  background-color: color-mix(in srgb, $ios-background-secondary 70%, white);
  box-shadow: $ios-shadow-sm;
}

.shift-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: $ios-spacing-md;
}

.shift-project {
  font-size: $ios-font-size-base;
  color: $ios-text-primary;
  font-weight: $ios-font-weight-medium;
  font-family: $ios-font-family;
}

.shift-priority {
  padding: $ios-spacing-xs $ios-spacing-sm;
  border-radius: $ios-radius-full;
  font-size: $ios-font-size-xs;
  font-weight: $ios-font-weight-medium;
  text-transform: uppercase;
  font-family: $ios-font-family;
}

.shift-priority.priority-high {
  background-color: color-mix(in srgb, $ios-danger 15%, transparent);
  color: $ios-danger;
  border: 1px solid $ios-danger;
}

.shift-priority.priority-medium {
  background-color: color-mix(in srgb, $ios-warning 15%, transparent);
  color: $ios-warning;
  border: 1px solid $ios-warning;
}

.shift-priority.priority-low {
  background-color: color-mix(in srgb, $ios-success 15%, transparent);
  color: $ios-success;
  border: 1px solid $ios-success;
}

.shift-details {
  margin-bottom: $ios-spacing-lg;
}

.shift-task {
  font-size: $ios-font-size-sm;
  color: $ios-text-secondary;
  margin-bottom: $ios-spacing-xs;
  line-height: 1.4;
}

.shift-time {
  font-size: $ios-font-size-xs;
  color: $ios-text-tertiary;
}

/* 响应式设计补充 */
@media (max-width: 768px) {
  .dashboard-header h1 {
    font-size: 24px;
  }
  
  .dashboard-nav {
    flex-direction: column;
  }
  
  .nav-btn {
    padding: 10px 16px;
  }
  
  .core-cards-section .cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .additional-info-section {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .core-card {
    padding: 16px;
  }
  
  .core-card h3 {
    font-size: 16px;
  }
  
  .workload-circle {
    width: 100px !important;
    height: 100px !important;
  }
  
  .workload-percentage {
    font-size: 24px !important;
  }
}

/* iOS风格滚动条 */
.dashboard-container {
  &::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  
  &::-webkit-scrollbar-track {
    background: $ios-background-secondary;
    border-radius: $ios-radius-full;
  }
  
  &::-webkit-scrollbar-thumb {
    background: $ios-scrollbar-thumb;
    border: 2px solid $ios-background-secondary;
  }
  
  &::-webkit-scrollbar-thumb:hover {
    background: $ios-scrollbar-thumb-hover;
  }
}

.section-header {
  margin-bottom: 16px;
  h2 {
    font-size: 22px;
    color: $ios-text-primary;
    font-weight: $ios-font-weight-medium;
    display: flex;
    align-items: center;
    font-family: $ios-font-family;
    &::before {
      content: '';
      display: inline-block;
      width: 3px;
      height: 20px;
      background-color: $ios-primary;
      margin-right: 10px;
      border-radius: $ios-radius-full;
    }
  }
}

.task-list {
  display: grid;
  gap: 16px;
}

.task-item {
  background: $ios-card-background;
  border-radius: $ios-radius-lg;
  padding: 20px;
  box-shadow: $ios-shadow-card;
  transition: all 0.3s ease;
  border: 1px solid $ios-border;
  
  &:hover {
    box-shadow: $ios-shadow-lg;
    transform: translateY(-2px);
  }
  
  .task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    
    h3 {
      font-size: 17px;
      color: $ios-text-primary;
      margin: 0;
      font-family: $ios-font-family;
    }
    
    .task-stage {
      font-size: 13px;
      padding: 6px 14px;
      border-radius: $ios-radius-full;
      background-color: $ios-primary-light;
      color: $ios-primary;
      border: 1px solid $ios-primary;
    }
  }
  
  .task-info {
    margin-bottom: 16px;
    
    .project-name {
      font-size: 15px;
      color: $ios-text-secondary;
      margin: 6px 0;
    }
    
    .deadline {
      font-size: 15px;
      color: $ios-text-secondary;
      margin: 6px 0;
      
      &.overdue {
        color: $ios-danger;
      }
      
      .overdue-badge {
        background-color: rgba(255, 59, 48, 0.1);
        color: $ios-danger;
        padding: 4px 10px;
        border-radius: $ios-radius-full;
        font-size: 12px;
        margin-left: 8px;
        border: 1px solid $ios-danger;
      }
      
      .countdown-badge {
        background-color: color-mix(in srgb, $ios-warning 15%, transparent);
        color: $ios-warning;
        padding: 4px 10px;
        border-radius: $ios-radius-full;
        font-size: 12px;
        margin-left: 8px;
        border: 1px solid $ios-warning;
      }
    }
    
    .task-progress {
      margin-top: 12px;
      
      .progress-bar {
        height: 8px;
        background-color: $ios-background-secondary;
        border-radius: $ios-radius-full;
        overflow: hidden;
        border: 1px solid $ios-border;
        
        .progress-fill {
          height: 100%;
          background-color: $ios-primary;
          transition: width 0.3s ease;
          border-radius: $ios-radius-full;
        }
      }
      
      .progress-text {
        font-size: 13px;
        color: $ios-text-secondary;
        margin: 6px 0 0 0;
        text-align: right;
      }
    }
  }
  
  .task-actions {
    display: flex;
    gap: 12px;
    
    button {
      padding: 10px 18px;
      border: none;
      border-radius: $ios-radius-md;
      font-size: 15px;
      cursor: pointer;
      transition: $ios-animation-normal $ios-animation-easing;
      font-weight: $ios-font-weight-medium;
      font-family: $ios-font-family;
    }
    
    .btn-complete {
      background-color: $ios-success;
      color: white;
      
      &:hover {
        background-color: color.adjust($ios-success, $lightness: -5%);
        transform: translateY(-1px);
        box-shadow: $ios-shadow-md;
      }
      
      &:active {
        transform: translateY(0);
      }
    }
    
    .btn-detail {
      background-color: $ios-primary;
      color: white;
      
      &:hover {
        background-color: #003A8C;
        transform: translateY(-1px);
        box-shadow: $ios-shadow-md;
      }
      
      &:active {
        transform: translateY(0);
      }
    }
  }
}

.urgent-section {
  grid-column: 1 / -1;
}

.urgent-list {
  display: grid;
  gap: 16px;
}

.urgent-item {
  background: color-mix(in srgb, $ios-danger 10%, transparent);
  border: 1px solid $ios-danger;
  border-radius: $ios-radius-lg;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  
  .urgent-content {
    .urgent-title {
      font-size: 17px;
      color: $ios-danger;
      font-weight: $ios-font-weight-medium;
      margin: 0 0 6px 0;
      font-family: $ios-font-family;
    }
    
    .urgent-detail {
      font-size: 15px;
      color: $ios-text-secondary;
      margin: 0;
    }
  }
  
  .urgent-actions {
    .btn-urgent-detail {
      padding: 10px 18px;
      border: none;
      border-radius: $ios-radius-md;
      background-color: $ios-danger;
      color: white;
      font-size: 15px;
      cursor: pointer;
      transition: all 0.3s ease;
      font-weight: $ios-font-weight-medium;
      font-family: $ios-font-family;
      
      &:hover {
        background-color: color-mix(in srgb, $ios-danger 90%, black);
        transform: translateY(-1px);
        box-shadow: $ios-shadow-md;
      }
      
      &:active {
        transform: translateY(0);
      }
    }
  }
}

.feedback-section {
  grid-column: 1 / -1;
}

.feedback-list {
  display: grid;
  gap: 16px;
}

.feedback-item {
  background: color-mix(in srgb, $ios-warning 10%, transparent);
  border: 1px solid $ios-warning;
  border-radius: $ios-radius-lg;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  
  .feedback-content {
    .feedback-title {
      font-size: 17px;
      color: $ios-warning;
      font-weight: $ios-font-weight-medium;
      margin: 0 0 6px 0;
      font-family: $ios-font-family;
    }
    
    .feedback-project,
    .feedback-summary,
    .feedback-time {
      font-size: 14px;
      color: $ios-text-secondary;
      margin: 4px 0;
    }
  }
  
  .feedback-actions {
    .btn-handle-feedback {
      padding: 10px 18px;
      border: 1px solid $ios-warning;
      border-radius: $ios-radius-md;
      background-color: $ios-card-background;
      color: $ios-warning;
      font-size: 15px;
      cursor: pointer;
      transition: all 0.3s ease;
      font-weight: $ios-font-weight-medium;
      font-family: $ios-font-family;
      
      &:hover {
        background-color: $ios-warning;
        color: white;
        transform: translateY(-1px);
        box-shadow: $ios-shadow-md;
      }
      
      &:active {
        transform: translateY(0);
      }
    }
  }
}

.warning-section {
  grid-column: 1 / -1;
}

.warning-list {
  display: grid;
  gap: 16px;
}

.warning-item {
  background: rgba(255, 149, 0, 0.1);
  border: 1px solid $ios-warning;
  border-radius: $ios-radius-lg;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  
  .warning-content {
    
    .warning-title {
      font-size: 17px;
      color: $ios-warning;
      font-weight: $ios-font-weight-medium;
      margin: 0 0 6px 0;
      font-family: $ios-font-family;
    }
    
    .warning-detail {
      font-size: 15px;
      color: $ios-warning;
      margin: 0;
    }
  }
  
  .warning-actions {
    
    .btn-generate-reminder {
      padding: 10px 18px;
      border: 1px solid $ios-warning;
      border-radius: $ios-radius-md;
      background-color: $ios-card-background;
      color: $ios-warning;
      font-size: 15px;
      cursor: pointer;
      transition: all 0.3s ease;
      font-weight: 500;
      font-family: $ios-font-family;
      
      &:hover {
        background-color: $ios-warning;
        color: white;
        transform: translateY(-1px);
        box-shadow: $ios-shadow-md;
      }
      
      &:active {
        transform: translateY(0);
      }
    }
  }
}

.quick-access-section {
  grid-column: 1 / -1;
}

.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.quick-access-item {
  background: $ios-card-background;
  border-radius: $ios-radius-lg;
  padding: 20px 24px;
  box-shadow: $ios-shadow-card;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid $ios-border;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  
  &:hover {
    box-shadow: $ios-shadow-md;
    transform: translateY(-2px);
  }
  
  &.has-items {
    border-left: 4px solid $ios-primary;
  }
  
  h3 {
    font-size: 20px;
    color: $ios-text-primary;
    margin: 0 0 12px 0;
    font-family: $ios-font-family;
  }
  
  p {
    font-size: 15px;
    color: $ios-text-secondary;
    margin: 0;
  }
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: $ios-text-tertiary;
  background-color: $ios-card-background;
  border-radius: $ios-radius-lg;
  border: 1px dashed $ios-border;
}

/* 代班信息样式 */
.shift-info {
  background: $ios-card-background;
  border-radius: $ios-radius-lg;
  padding: $ios-spacing-xl;
  box-shadow: $ios-shadow-card;
  border: 1px solid $ios-border;
  height: fit-content;
}

.shift-info .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: $ios-spacing-xl;
}

.shift-info .section-header h2 {
  font-size: $ios-font-size-lg;
  color: $ios-text-primary;
  font-weight: $ios-font-weight-medium;
  display: flex;
  align-items: center;
  margin: 0;
  font-family: $ios-font-family;
}

.add-shift-btn {
  padding: $ios-spacing-sm $ios-spacing-lg;
  border: 1px solid $ios-primary;
  border-radius: $ios-radius-md;
  background-color: $ios-card-background;
  color: $ios-primary;
  font-size: $ios-font-size-sm;
  cursor: pointer;
  transition: $ios-feedback-tap;
  font-weight: $ios-font-weight-medium;
  font-family: $ios-font-family;
}

.add-shift-btn:hover {
  background-color: $ios-primary;
  color: white;
  transform: translateY(-1px);
  box-shadow: $ios-shadow-sm;
}

.add-shift-btn:active {
  transform: translateY(0);
}

.shift-list {
  display: flex;
  flex-direction: column;
  gap: $ios-spacing-lg;
}

.shift-item {
  background-color: $ios-background-secondary;
  border-radius: $ios-radius-md;
  padding: $ios-spacing-lg;
  border: 1px solid $ios-border;
  transition: $ios-feedback-hover;
}

.shift-item:hover {
  background-color: color-mix(in srgb, $ios-background-secondary 70%, white);
  box-shadow: $ios-shadow-sm;
}

.shift-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: $ios-spacing-md;
}

.shift-project {
  font-size: $ios-font-size-base;
  color: $ios-text-primary;
  font-weight: $ios-font-weight-medium;
  font-family: $ios-font-family;
}

.shift-priority {
  padding: $ios-spacing-xs $ios-spacing-sm;
  border-radius: $ios-radius-full;
  font-size: $ios-font-size-xs;
  font-weight: $ios-font-weight-medium;
  text-transform: uppercase;
  font-family: $ios-font-family;
}

.shift-priority.priority-high {
  background-color: color-mix(in srgb, $ios-danger 15%, transparent);
  color: $ios-danger;
  border: 1px solid $ios-danger;
}

.shift-priority.priority-medium {
  background-color: color-mix(in srgb, $ios-warning 15%, transparent);
  color: $ios-warning;
  border: 1px solid $ios-warning;
}

.shift-priority.priority-low {
  background-color: color-mix(in srgb, $ios-success 15%, transparent);
  color: $ios-success;
  border: 1px solid $ios-success;
}

.shift-details {
  margin-bottom: $ios-spacing-lg;
}

.shift-task {
  font-size: $ios-font-size-sm;
  color: $ios-text-secondary;
  margin-bottom: $ios-spacing-xs;
  line-height: 1.4;
}

.shift-time {
  font-size: $ios-font-size-xs;
  color: $ios-text-tertiary;
}

/* 响应式设计补充 */
@media (max-width: 768px) {
  .dashboard-header h1 {
    font-size: 24px;
  }
  
  .dashboard-nav {
    flex-direction: column;
  }
  
  .nav-btn {
    padding: 10px 16px;
  }
  
  .core-cards-section .cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .additional-info-section {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .core-card {
    padding: 16px;
  }
  
  .core-card h3 {
    font-size: 16px;
  }
  
  .workload-circle {
    width: 100px !important;
    height: 100px !important;
  }
  
  .workload-percentage {
    font-size: 24px !important;
  }
}

/* iOS风格滚动条 */
.dashboard-container {
  &::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  
  &::-webkit-scrollbar-track {
    background: $ios-background-secondary;
    border-radius: $ios-radius-full;
  }
  
  &::-webkit-scrollbar-thumb {
    background: $ios-scrollbar-thumb;
    border: 2px solid $ios-background-secondary;
  }
  
  &::-webkit-scrollbar-thumb:hover {
    background: $ios-scrollbar-thumb-hover;
  }
}

.section-header {
  margin-bottom: 16px;
  h2 {
    font-size: 22px;
    color: $ios-text-primary;
    font-weight: $ios-font-weight-medium;
    display: flex;
    align-items: center;
    font-family: $ios-font-family;
    &::before {
      content: '';
      display: inline-block;
      width: 3px;
      height: 20px;
      background-color: $ios-primary;
      margin-right: 10px;
      border-radius: $ios-radius-full;
    }
  }
}

.task-list {
  display: grid;
  gap: 16px;
}

.task-item {
  background: $ios-card-background;
  border-radius: $ios-radius-lg;
  padding: 20px;
  box-shadow: $ios-shadow-card;
  transition: all 0.3s ease;
  border: 1px solid $ios-border;
  
  &:hover {
    box-shadow: $ios-shadow-lg;
    transform: translateY(-2px);
  }
  
  .task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    
    h3 {
      font-size: 17px;
      color: $ios-text-primary;
      margin: 0;
      font-family: $ios-font-family;
    }
    
    .task-stage {
      font-size: 13px;
      padding: 6px 14px;
      border-radius: $ios-radius-full;
      background-color: $ios-primary-light;
      color: $ios-primary;
      border: 1px solid $ios-primary;
    }
  }
  
  .task-info {
    margin-bottom: 16px;
    
    .project-name {
      font-size: 15px;
      color: $ios-text-secondary;
      margin: 6px 0;
    }
    
    .deadline {
      font-size: 15px;
      color: $ios-text-secondary;
      margin: 6px 0;
      
      &.overdue {
        color: $ios-danger;
      }
      
      .overdue-badge {
        background-color: rgba(255, 59, 48, 0.1);
        color: $ios-danger;
        padding: 4px 10px;
        border-radius: $ios-radius-full;
        font-size: 12px;
        margin-left: 8px;
        border: 1px solid $ios-danger;
      }
      
      .countdown-badge {
        background-color: color-mix(in srgb, $ios-warning 15%, transparent);
        color: $ios-warning;
        padding: 4px 10px;
        border-radius: $ios-radius-full;
        font-size: 12px;
        margin-left: 8px;
        border: 1px solid $ios-warning;
      }
    }
    
    .task-progress {
      margin-top: 12px;
      
      .progress-bar {
        height: 8px;
        background-color: $ios-background-secondary;
        border-radius: $ios-radius-full;
        overflow: hidden;
        border: 1px solid $ios-border;
        
        .progress-fill {
          height: 100%;
          background-color: $ios-primary;
          transition: width 0.3s ease;
          border-radius: $ios-radius-full;
        }
      }
      
      .progress-text {
        font-size: 13px;
        color: $ios-text-secondary;
        margin: 6px 0 0 0;
        text-align: right;
      }
    }
  }
  
  .task-actions {
    display: flex;
    gap: 12px;
    
    button {
      padding: 10px 18px;
      border: none;
      border-radius: $ios-radius-md;
      font-size: 15px;
      cursor: pointer;
      transition: $ios-animation-normal $ios-animation-easing;
      font-weight: $ios-font-weight-medium;
      font-family: $ios-font-family;
    }
    
    .btn-complete {
      background-color: $ios-success;
      color: white;
      
      &:hover {
        background-color: color.adjust($ios-success, $lightness: -5%);
        transform: translateY(-1px);
        box-shadow: $ios-shadow-md;
      }
      
      &:active {
        transform: translateY(0);
      }
    }
    
    .btn-detail {
      background-color: $ios-primary;
      color: white;
      
      &:hover {
        background-color: #003A8C;
        transform: translateY(-1px);
        box-shadow: $ios-shadow-md;
      }
      
      &:active {
        transform: translateY(0);
      }
    }
  }
}

.urgent-section {
  grid-column: 1 / -1;
}

.urgent-list {
  display: grid;
  gap: 16px;
}

.urgent-item {
  background: color-mix(in srgb, $ios-danger 10%, transparent);
  border: 1px solid $ios-danger;
  border-radius: $ios-radius-lg;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  
  .urgent-content {
    .urgent-title {
      font-size: 17px;
      color: $ios-danger;
      font-weight: $ios-font-weight-medium;
      margin: 0 0 6px 0;
      font-family: $ios-font-family;
    }
    
    .urgent-detail {
      font-size: 15px;
      color: $ios-text-secondary;
      margin: 0;
    }
  }
  
  .urgent-actions {
    .btn-urgent-detail {
      padding: 10px 18px;
      border: none;
      border-radius: $ios-radius-md;
      background-color: $ios-danger;
      color: white;
      font-size: 15px;
      cursor: pointer;
      transition: all 0.3s ease;
      font-weight: $ios-font-weight-medium;
      font-family: $ios-font-family;
      
      &:hover {
        background-color: color-mix(in srgb, $ios-danger 90%, black);
        transform: translateY(-1px);
        box-shadow: $ios-shadow-md;
      }
      
      &:active {
        transform: translateY(0);
      }
    }
  }
}

.feedback-section {
  grid-column: 1 / -1;
}

.feedback-list {
  display: grid;
  gap: 16px;
}

.feedback-item {
  background: color-mix(in srgb, $ios-warning 10%, transparent);
  border: 1px solid $ios-warning;
  border-radius: $ios-radius-lg;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  
  .feedback-content {
    .feedback-title {
      font-size: 17px;
      color: $ios-warning;
      font-weight: $ios-font-weight-medium;
      margin: 0 0 6px 0;
      font-family: $ios-font-family;
    }
    
    .feedback-project,
    .feedback-summary,
    .feedback-time {
      font-size: 14px;
      color: $ios-text-secondary;
      margin: 4px 0;
    }
  }
  
  .feedback-actions {
    .btn-handle-feedback {
      padding: 10px 18px;
      border: 1px solid $ios-warning;
      border-radius: $ios-radius-md;
      background-color: $ios-card-background;
      color: $ios-warning;
      font-size: 15px;
      cursor: pointer;
      transition: all 0.3s ease;
      font-weight: $ios-font-weight-medium;
      font-family: $ios-font-family;
      
      &:hover {
        background-color: $ios-warning;
        color: white;
        transform: translateY(-1px);
        box-shadow: $ios-shadow-md;
      }
      
      &:active {
        transform: translateY(0);
      }
    }
  }
}

.warning-section {
  grid-column: 1 / -1;
}

.warning-list {
  display: grid;
  gap: 16px;
}

.warning-item {
  background: rgba(255, 149, 0, 0.1);
  border: 1px solid $ios-warning;
  border-radius: $ios-radius-lg;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  
  .warning-content {
    
    .warning-title {
      font-size: 17px;
      color: $ios-warning;
      font-weight: $ios-font-weight-medium;
      margin: 0 0 6px 0;
      font-family: $ios-font-family;
    }
    
    .warning-detail {
      font-size: 15px;
      color: $ios-warning;
      margin: 0;
    }
  }
  
  .warning-actions {
    
    .btn-generate-reminder {
      padding: 10px 18px;
      border: 1px solid $ios-warning;
      border-radius: $ios-radius-md;
      background-color: $ios-card-background;
      color: $ios-warning;
      font-size: 15px;
      cursor: pointer;
      transition: all 0.3s ease;
      font-weight: 500;
      font-family: $ios-font-family;
      
      &:hover {
        background-color: $ios-warning;
        color: white;
        transform: translateY(-1px);
        box-shadow: $ios-shadow-md;
      }
      
      &:active {
        transform: translateY(0);
      }
    }
  }
}

.quick-access-section {
  grid-column: 1 / -1;
}

.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.quick-access-item {
  background: $ios-card-background;
  border-radius: $ios-radius-lg;
  padding: 20px 24px;
  box-shadow: $ios-shadow-card;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid $ios-border;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  
  &:hover {
    box-shadow: $ios-shadow-md;
    transform: translateY(-2px);
  }
  
  &.has-items {
    border-left: 4px solid $ios-primary;
  }
  
  h3 {
    font-size: 20px;
    color: $ios-text-primary;
    margin: 0 0 12px 0;
    font-family: $ios-font-family;
  }
  
  p {
    font-size: 15px;
    color: $ios-text-secondary;
    margin: 0;
  }
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: $ios-text-tertiary;
  background-color: $ios-card-background;
  border-radius: $ios-radius-lg;
  border: 1px dashed $ios-border;
}

/* 代班信息样式 */
.shift-info {
  background: $ios-card-background;
  border-radius: $ios-radius-lg;
  padding: $ios-spacing-xl;
  box-shadow: $ios-shadow-card;
  border: 1px solid $ios-border;
  height: fit-content;
}

.shift-info .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: $ios-spacing-xl;
}

.shift-info .section-header h2 {
  font-size: $ios-font-size-lg;
  color: $ios-text-primary;
  font-weight: $ios-font-weight-medium;
  display: flex;
  align-items: center;
  margin: 0;
  font-family: $ios-font-family;
}

.add-shift-btn {
  padding: $ios-spacing-sm $ios-spacing-lg;
  border: 1px solid $ios-primary;
  border-radius: $ios-radius-md;
  background-color: $ios-card-background;
  color: $ios-primary;
  font-size: $ios-font-size-sm;
  cursor: pointer;
  transition: $ios-feedback-tap;
  font-weight: $ios-font-weight-medium;
  font-family: $ios-font-family;
}

.add-shift-btn:hover {
  background-color: $ios-primary;
  color: white;
  transform: translateY(-1px);
  box-shadow: $ios-shadow-sm;
}

.add-shift-btn:active {
  transform: translateY(0);
}

.shift-list {
  display: flex;
  flex-direction: column;
  gap: $ios-spacing-lg;
}

.shift-item {
  background-color: $ios-background-secondary;
  border-radius: $ios-radius-md;
  padding: $ios-spacing-lg;
  border: 1px solid $ios-border;
  transition: $ios-feedback-hover;
}

.shift-item:hover {
  background-color: color-mix(in srgb, $ios-background-secondary 70%, white);
  box-shadow: $ios-shadow-sm;
}

.shift-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: $ios-spacing-md;
}

.shift-project {
  font-size: $ios-font-size-base;
  color: $ios-text-primary;
  font-weight: $ios-font-weight-medium;
  font-family: $ios-font-family;
}

.shift-priority {
  padding: $ios-spacing-xs $ios-spacing-sm;
  border-radius: $ios-radius-full;
  font-size: $ios-font-size-xs;
  font-weight: $ios-font-weight-medium;
  text-transform: uppercase;
  font-family: $ios-font-family;
}

.shift-priority.priority-high {
  background-color: color-mix(in srgb, $ios-danger 15%, transparent);
  color: $ios-danger;
  border: 1px solid $ios-danger;
}

.shift-priority.priority-medium {
  background-color: color-mix(in srgb, $ios-warning 15%, transparent);
  color: $ios-warning;
  border: 1px solid $ios-warning;
}

.shift-priority.priority-low {
  background-color: color-mix(in srgb, $ios-success 15%, transparent);
  color: $ios-success;
  border: 1px solid $ios-success;
}

.shift-details {
  margin-bottom: $ios-spacing-lg;
}

.shift-task {
  font-size: $ios-font-size-sm;
  color: $ios-text-secondary;
  margin-bottom: $ios-spacing-xs;
  line-height: 1.4;
}

.shift-time {
  font-size: $ios-font-size-xs;
  color: $ios-text-tertiary;
}

/* 响应式设计补充 */
@media (max-width: 768px) {
  .dashboard-header h1 {
    font-size: 24px;
  }
  
  .dashboard-nav {
    flex-direction: column;
  }
  
  .nav-btn {
    padding: 10px 16px;
  }
  
  .core-cards-section .cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .additional-info-section {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .core-card {
    padding: 16px;
  }
  
  .core-card h3 {
    font-size: 16px;
  }
  
  .workload-circle {
    width: 100px !important;
    height: 100px !important;
  }
  
  .workload-percentage {
    font-size: 24px !important;
  }
}

/* iOS风格滚动条 */
.dashboard-container {
  &::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  
  &::-webkit-scrollbar-track {
    background: $ios-background-secondary;
    border-radius: $ios-radius-full;
  }
  
  &::-webkit-scrollbar-thumb {
    background: $ios-scrollbar-thumb;
    border: 2px solid $ios-background-secondary;
  }
  
  &::-webkit-scrollbar-thumb:hover {
    background: $ios-scrollbar-thumb-hover;
  }
}

.section-header {
  margin-bottom: 16px;
  h2 {
    font-size: 22px;
    color: $ios-text-primary;
    font-weight: $ios-font-weight-medium;
    display: flex;
    align-items: center;
    font-family: $ios-font-family;
    &::before {
      content: '';
      display: inline-block;
      width: 3px;
      height: 20px;
      background-color: $ios-primary;
      margin-right: 10px;
      border-radius: $ios-radius-full;
    }
  }
}

.task-list {
  display: grid;
  gap: 16px;
}

.task-item {
  background: $ios-card-background;
  border-radius: $ios-radius-lg;
  padding: 20px;
  box-shadow: $ios-shadow-card;
  transition: all 0.3s ease;
  border: 1px solid $ios-border;
  
  &:hover {
    box-shadow: $ios-shadow-lg;
    transform: translateY(-2px);
  }
  
  .task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    
    h3 {
      font-size: 17px;
      color: $ios-text-primary;
      margin: 0;
      font-family: $ios-font-family;
    }
    
    .task-stage {
      padding: 4px 12px;
      border-radius: $ios-radius-full;
      font-size: 12px;
      font-weight: $ios-font-weight-medium;
      font-family: $ios-font-family;
    }
  }
}
