/* pages/dashboard/dashboard.wxss */
.card {
  background-color: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

.card-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  border-left: 4px solid #673ab7;
  padding-left: 10px;
}

/* 进度条样式 */
.progress-bg {
  width: 100%;
  height: 10px;
  background-color: #f0f0f0;
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: #673ab7;
  border-radius: 5px;
  transition: width 1s ease-in-out;
}

/* 原生柱状图样式 */
.chart-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end; /* 让柱子底部对齐 */
  height: 200px;
  padding-bottom: 30px;
  position: relative;
  border-bottom: 1px solid #eee;
}

.bar-group {
  width: 12%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}

.bar {
  width: 20px;
  background: linear-gradient(to top, #9c27b0, #d05ce3);
  border-radius: 4px 4px 0 0;
  transition: height 1s ease-in-out;
  position: relative;
  min-height: 2px; /* 保证数据为0时有一条线 */
}

.bar-value {
  position: absolute;
  top: -20px;
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: #673ab7;
  font-weight: bold;
}

.bar-label {
  position: absolute;
  bottom: -25px;
  font-size: 11px;
  color: #999;
  text-align: center;
}

.empty-tip {
  text-align: center;
  color: #999;
  font-size: 14px;
  padding: 20px 0;
}