.container4 {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #f6f7f9;
  position: relative;
}
.custom-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 88rpx; 
  background-color: rgba(46, 130, 255, 1);
  display: flex;
  align-items: center;
  padding-top: 110rpx; 
  z-index: 1000;
}

/* 固定返回按钮样式 */
.back-icon {
  position: fixed;
  top: 120rpx;
  left: 25rpx;
  z-index: 999;
  width: 40rpx;
  height: 40rpx;
}
.nav-title {
  flex: 1;
  text-align: center;
  font-size: 34rpx;
  color: #fff;
}

/* 创建一个固定的顶部区域容器 */
.fixed-top-section {
  position: fixed;
  top: 198rpx;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 24rpx 24rpx 0rpx 24rpx;
  background-color: #f6f7f9;
}

/* 缴费总览卡片美化 */
.overview-card {
  background-color: #fff;
  border-radius: 16rpx;
  padding: 24rpx 28rpx;
  box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.06);
  margin-bottom: 20rpx;
}

/* 行样式 */
.bill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12rpx 0;
  position: relative;
}

/* 添加分隔线 */
.bill-row:not(:last-child) {
  border-bottom: 1rpx solid #f0f0f0;
}

/* 金额强调项样式 */
.bill-row.highlight-row {
  padding: 10rpx 0;
  background-color: #fffdfd;
}

/* 标签文字样式 */
.label {
  font-size: 26rpx;
  color: #666;
  font-weight: 400;
}

/* 数值文字样式 */
.value {
  font-size: 28rpx;
  color: #333;
  font-weight: 500;
}

/* 高亮值样式 */
.value.highlight {
  color: #ff4d4f;
  font-weight: 600;
  font-size: 34rpx;
}

/* 账单明细标题栏优化 */
.bill-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0rpx 24rpx 0rpx 24rpx;
  margin: 10rpx 0;
}

.bill-list-title {
  font-size: 32rpx;
  font-weight: 500;
  color: #333;
}

.bill-count {
  font-size: 24rpx;
  color: #666;
  background-color: #eef2f7;
  padding: 6rpx 16rpx;
  border-radius: 20rpx;
}

/* 创建一个滚动内容区域，但考虑顶部固定区域的高度 */
.scrollable-content {
  margin-top: 380rpx;
  padding: 0 24rpx;
}

/* 账单列表容器 */
.bill-list-container {
  height: calc(100vh - 800rpx);
  padding-bottom: 60rpx;
  padding: 350rpx 0rpx 0rpx 0rpx;
  z-index: 999;
}

/* 底部空间 */
.bottom-space {
  height: 120rpx;
}

/* 账单卡片样式改进 */
.bill-card {
  background-color: #fff;
  border-radius: 16rpx;
  padding: 24rpx;
  margin-bottom: 20rpx;
  box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
}

/* 账单卡片头部改进 */
.bill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16rpx;
}

.meter-reading {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
}

.water-icon {
  margin-right: 10rpx;
  color: #1890ff;
  font-size: 30rpx;
  margin-top: 4rpx;
}

.bill-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bill-number {
  font-weight: 500;
  color: #333;
  font-size: 28rpx;
  margin-bottom: 4rpx;
}

.due-date {
  font-size: 24rpx;
  color: #999;
}

/* 支付状态标签 */
.payment-status-tag {
  font-size: 22rpx;
  min-width: 70rpx; /* 使s用min-width而不是width */
  padding: 4rpx 24rpx;
  border-radius: 20rpx;
  display: inline-flex; /* 使用flex布局确保居中 */
  justify-content: center; /* 水平居中 */
  align-items: center; /* 垂直居中 */
  white-space: nowrap; /* 禁止文字换行 */
  box-sizing: border-box; /* 确保padding不影响总宽度 */
  line-height: 1.5; /* 设置行高 */
}

.unpaid-tag {
  color: #ff4d4f;
  background-color: #fff1f0;
  border: 1rpx solid #ffccc7;
}

.paid-tag {
  color: #52c41a;
  background-color: #f6ffed;
  border: 1rpx solid #b7eb8f;
}

/* 用水信息区域 */
.usage-section {
  display: flex;
  justify-content: space-between;
  background-color: #f9f9f9;
  border-radius: 12rpx;
  padding: 16rpx;
  margin: 16rpx 0;
}

.usage-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.usage-label {
  font-size: 24rpx;
  color: #999;
  margin-bottom: 8rpx;
}

.usage-value {
  font-size: 28rpx;
  color: #333;
  font-weight: 500;
}

.usage-divider {
  width: 1rpx;
  background-color: #e8e8e8;
  margin: 0 20rpx;
}

/* 费用信息区域 */
.fee-section {
  padding: 8rpx 0;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  padding: 8rpx 0;
}

.fee-label {
  font-size: 26rpx;
  color: #666;
}

.fee-value {
  font-size: 26rpx;
  color: #333;
}

/* 底部金额区域 */
.bill-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16rpx;
  padding-top: 16rpx;
  border-top: 1rpx solid #f0f0f0;
}

.due-label {
  font-size: 28rpx;
  color: #666;
}

.total-amount {
  font-size: 36rpx;
  font-weight: 600;
  color: #ff4d4f;
}

