/* pages/statistics/statistics.wxss */
.container {
  min-height: 100vh;
  background-color: #f5f5f5;
  padding-bottom: 20rpx;
}

/* 状态栏样式 */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20rpx 30rpx;
  background-color: #4CAF50;
  color: white;
  font-size: 28rpx;
  font-weight: bold;
}

.status-right {
  display: flex;
  align-items: center;
  gap: 10rpx;
}

.battery-icon {
  width: 40rpx;
  height: 20rpx;
  border: 2rpx solid white;
  border-radius: 4rpx;
  position: relative;
}

.battery-icon::after {
  content: '';
  position: absolute;
  right: -6rpx;
  top: 6rpx;
  width: 4rpx;
  height: 8rpx;
  background-color: white;
  border-radius: 0 2rpx 2rpx 0;
}

/* 顶部导航栏 */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15rpx 30rpx;
  background-color: #4CAF50;
  color: white;
  height: 80rpx;
}

.header-title {
  font-size: 36rpx;
  font-weight: bold;
}

.header-actions {
  display: flex;
  gap: 20rpx;
}

.action-btn {
  width: 60rpx;
  height: 60rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  font-size: 28rpx;
}

/* 统计卡片 */
.stats-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20rpx;
  padding: 20rpx;
}

.stat-card {
  background-color: white;
  border-radius: 12rpx;
  padding: 30rpx;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 20rpx;
}

.card-icon {
  width: 80rpx;
  height: 80rpx;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36rpx;
}

.card-content {
  flex: 1;
}

.card-title {
  font-size: 24rpx;
  color: #666;
  margin-bottom: 8rpx;
}

.card-value {
  font-size: 36rpx;
  font-weight: bold;
  color: #333;
  margin-bottom: 8rpx;
}

.card-trend {
  display: flex;
  align-items: center;
  gap: 4rpx;
  font-size: 22rpx;
}

.card-trend.up {
  color: #4CAF50;
}

.card-trend.down {
  color: #f44336;
}

.card-trend.stable {
  color: #666;
}

/* 图表区域 */
.chart-section {
  margin: 20rpx;
  background-color: white;
  border-radius: 12rpx;
  padding: 30rpx;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
}

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

.section-title {
  font-size: 32rpx;
  font-weight: bold;
  color: #333;
}

.time-filter {
  display: flex;
  gap: 10rpx;
}

.filter-item {
  padding: 8rpx 16rpx;
  border-radius: 20rpx;
  font-size: 24rpx;
  color: #666;
  background-color: #f5f5f5;
  transition: all 0.3s ease;
}

.filter-item.active {
  background-color: #4CAF50;
  color: white;
}

.chart-container {
  height: 400rpx;
  background-color: #f8f9fa;
  border-radius: 8rpx;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2rpx dashed #ddd;
}

.chart-text {
  font-size: 32rpx;
  color: #666;
  margin-bottom: 10rpx;
}

.chart-desc {
  font-size: 24rpx;
  color: #999;
}

/* 详细列表 */
.detail-section {
  margin: 20rpx;
  background-color: white;
  border-radius: 12rpx;
  padding: 30rpx;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
}

.more-btn {
  font-size: 28rpx;
  color: #4CAF50;
}

.record-list {
  margin-top: 20rpx;
}

.record-item {
  display: flex;
  align-items: center;
  padding: 20rpx 0;
  border-bottom: 1rpx solid #f0f0f0;
}

.record-item:last-child {
  border-bottom: none;
}

.record-icon {
  margin-right: 20rpx;
}

.status-dot {
  width: 16rpx;
  height: 16rpx;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.success {
  background-color: #4CAF50;
}

.status-dot.warning {
  background-color: #ff9800;
}

.status-dot.error {
  background-color: #f44336;
}

.record-content {
  flex: 1;
}

.record-title {
  font-size: 28rpx;
  color: #333;
  margin-bottom: 8rpx;
}

.record-desc {
  font-size: 24rpx;
  color: #666;
  margin-bottom: 8rpx;
}

.record-time {
  font-size: 22rpx;
  color: #999;
}

.record-arrow {
  color: #ccc;
  font-size: 24rpx;
}

/* 快捷操作 */
.quick-actions {
  display: flex;
  justify-content: space-around;
  padding: 30rpx 20rpx;
  background-color: white;
  margin: 20rpx;
  border-radius: 12rpx;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
}

.action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10rpx;
}

.action-icon {
  width: 80rpx;
  height: 80rpx;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36rpx;
}

.action-name {
  font-size: 24rpx;
  color: #666;
}