/* 决策支持卡片样式 */
.decision-cards {
  margin-bottom: 30px;
}

.decision-card {
  position: relative;
  height: 160px;
  border-radius: 16px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  width: 100%;
  border: 2px solid transparent;
}

.decision-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.analysis-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.forecast-card {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.decision-card-item {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
}

.report-card {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  color: white;
}

.card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.card-left {
  display: flex;
  align-items: flex-start;
  flex: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.card-icon i {
  font-size: 24px;
  color: white;
}

.card-info h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 700;
  color: white;
  line-height: 1.3;
}

.card-info p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  font-weight: 400;
}

.card-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}

.decision-card:hover .card-arrow {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(4px);
}

.card-arrow i {
  font-size: 16px;
  color: white;
}

/* 表格操作列样式优化 */
.el-table .el-table__body-wrapper .el-table__row .el-table__cell:last-child .cell {
  white-space: nowrap !important;
  overflow: visible !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 4px !important;
}

.el-table .el-table__body-wrapper .el-table__row .el-table__cell .cell .el-button {
  margin: 0 !important;
  padding: 6px 12px !important;
  font-size: 12px !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
}

.el-table .el-table__header-wrapper .el-table__header .el-table__cell:last-child,
.el-table .el-table__body-wrapper .el-table__row .el-table__cell:last-child {
  text-align: center !important;
  min-width: 200px !important;
  width: 200px !important;
}

.el-table .el-button--mini {
  padding: 4px 8px !important;
  font-size: 11px !important;
  border-radius: 4px !important;
}

.el-table th:last-child,
.el-table td:last-child {
  width: 200px !important;
  min-width: 200px !important;
  max-width: 200px !important;
}

/* 加载动画 */
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 空状态样式 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
}

.empty-state i {
  font-size: 64px;
  color: #dee2e6;
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 18px;
  color: #495057;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  color: #6c757d;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .main-content {
    padding: 20px;
  }
  
  .decision-card {
    height: 140px;
  }
  
  .card-content {
    padding: 20px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
  }
  
  .stat-item {
    padding: 24px 16px;
  }
  
  .stat-number {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 80px;
  }
  
  .main-content {
    padding: 16px;
  }
  
  .decision-cards .el-col {
    margin-bottom: 16px;
  }
  
  .decision-card {
    height: 120px;
  }
  
  .card-content {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .card-left {
    margin-bottom: 12px;
  }
  
  .card-icon {
    width: 40px;
    height: 40px;
    margin-right: 12px;
  }
  
  .card-icon i {
    font-size: 20px;
  }
  
  .card-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
  }
  
  .card-info p {
    font-size: 13px;
  }
  
  .card-arrow {
    width: 32px;
    height: 32px;
    position: absolute;
    top: 16px;
    right: 16px;
  }
  
  .card-arrow i {
    font-size: 14px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  
  .stat-item {
    padding: 20px 12px;
  }
  
  .stat-number {
    font-size: 28px;
  }
  
  .stat-label {
    font-size: 13px;
  }
  
  .feature-card {
    height: 180px;
  }
  
  .feature-card-header {
    padding: 20px 20px 12px;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
  }
  
  .feature-card-body {
    padding: 0 20px;
  }
  
  .feature-card-body h3 {
    font-size: 18px;
  }
  
  .feature-card-footer {
    padding: 16px 20px;
  }
  
  .page-title {
    font-size: 24px;
  }
  
  .page-subtitle {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 0 16px;
    height: 60px;
  }
  
  .logo h2 {
    font-size: 20px;
  }
  
  .main-content {
    padding: 12px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .decision-card {
    height: 100px;
  }
  
  .card-content {
    padding: 12px;
  }
  
  .feature-card {
    height: 160px;
  }
  
  .el-card__body {
    padding: 16px;
  }
  
  .operation-bar {
    padding: 16px;
  }
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* 过渡动画 */
.fade-enter-active, .fade-leave-active {
  transition: opacity 0.3s ease;
}

.fade-enter, .fade-leave-to {
  opacity: 0;
}

.slide-enter-active, .slide-leave-active {
  transition: transform 0.3s ease;
}

.slide-enter, .slide-leave-to {
  transform: translateX(-100%);
}