/* 财务工作台样式 - 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 {
  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 ease;
}

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

.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 {
  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 ease;
}

.view-detail-btn:hover {
  background-color: #e5e5ea;
}

/* 待办任务区域 */
.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;
}