/* pages/customer-service-records/customer-service-records.wxss */

page {
  background-color: #f3f3f3;
}

/* ========== 页面状态 ========== */
.page-loading,
.page-empty,
.page-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 24rpx;
}
.error-text {
  font-size: 26rpx;
  color: var(--color-error, #e34d59);
}
.retry-btn {
  margin-top: 8rpx;
  padding: 16rpx 48rpx;
  background: var(--color-primary, #0052d9);
  color: #ffffff;
  font-size: 28rpx;
  border-radius: 22rpx;
}
.retry-btn--hover {
  opacity: 0.8;
}

/* ========== Banner（与 task-detail 一致）========== */
.banner-area {
  position: relative;
  height: 202rpx;
  overflow: hidden;
  background: linear-gradient(135deg, #ff6b4a, #ff8a65);
}

.banner-bg-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 270%;
  z-index: 0;
}

.banner-content {
  position: relative;
  z-index: 2;
  padding: 44rpx 0 36rpx 44rpx;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.customer-info {
  display: flex;
  align-items: center;
  gap: 28rpx;
  padding-top: 8rpx;
}

.avatar-box {
  width: 116rpx;
  height: 116rpx;
  border-radius: 30rpx;
  background: rgba(255, 255, 255, 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.15);
}

.avatar-text {
  font-size: 44rpx;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.info-right {
  flex: 1;
  min-width: 0;
}

.name-row {
  display: flex;
  align-items: center;
  gap: 30rpx;
  margin-bottom: 14rpx;
  flex-wrap: nowrap;
}

.name-badges {
  display: flex;
  align-items: center;
  gap: 20rpx;
  flex-shrink: 0;
  font-weight: 500;
}

.name-badge {
  font-size: 24rpx;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.18);
  padding: 4rpx 20rpx;
  border-radius: 20rpx;
  line-height: 1.4;
}

.badge-highlight {
  color: #ffffff;
  font-weight: 700;
  font-size: 20rpx;
}

.customer-name {
  font-size: 36rpx;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
}

.customer-phone {
  font-size: 22rpx;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

.sub-stats {
  display: flex;
  align-items: center;
  gap: 32rpx;
}

.sub-stat {
  font-size: 26rpx;
  color: rgba(255, 255, 255, 0.70);
}

.stat-highlight {
  color: #ffffff;
  font-weight: 700;
  font-size: 26rpx;
}

.sub-info {
  display: flex;
  align-items: center;
  gap: 22rpx;
  margin-bottom: 10rpx;
}

.phone {
  font-size: 26rpx;
  line-height: 36rpx;
  color: rgba(255, 255, 255, 0.70);
}

.phone-toggle-btn {
  padding: 4rpx 14rpx;
  background: rgba(255, 255, 255, 0.20);
  border-radius: 8rpx;
  display: flex;
  align-items: center;
}

.phone-toggle-text {
  font-size: 22rpx;
  line-height: 32rpx;
  color: rgba(255, 255, 255, 0.90);
}

.phone-toggle-btn--hover {
  opacity: 0.7;
}

/* ========== 月份切换 ========== */
.month-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48rpx;
  background: #ffffff;
  padding: 24rpx 32rpx;
  border-bottom: 2rpx solid #eeeeee;
}
.month-btn {
  padding: 12rpx;
  border-radius: 50%;
}
.month-btn.disabled {
  opacity: 0.3;
}
.month-label {
  font-size: 26rpx;
  font-weight: 600;
  color: #242424;
}

/* ========== 月度统计 ========== */
.month-summary {
  display: flex;
  align-items: flex-start;
  background: #ffffff;
  padding: 24rpx 0;
  border-bottom: 2rpx solid #eeeeee;
}
.summary-item {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rpx;
}
.summary-label {
  font-size: 20rpx;
  color: #a6a6a6;
  line-height: 29rpx;
}
.summary-value {
  font-size: 34rpx;
  font-weight: 700;
  color: #242424;
  font-variant-numeric: tabular-nums;
  line-height: 44rpx;
}
.value-primary { color: #0052d9; }
.value-green { color: #2ba471; }
.value-warning { color: #ed7b2f; }
.summary-divider {
  width: 2rpx;
  height: 64rpx;
  background: #eeeeee;
  margin-top: 4rpx;
}

/* ========== 记录列表 ========== */
.records-container {
  padding: 24rpx 30rpx;
  padding-bottom: 100rpx;
  display: flex;
  flex-direction: column;
  gap: 20rpx;
}

/* 月份数据加载中 */
.month-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80rpx 0;
  gap: 16rpx;
}
.month-loading-text {
  font-size: 26rpx;
  color: #a6a6a6;
}

/* 无当月数据 */
.no-month-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80rpx 0;
  gap: 20rpx;
}
.no-month-text {
  font-size: 26rpx;
  color: #a6a6a6;
}

/* 底部提示 */
.list-footer {
  text-align: center;
  padding: 20rpx 0 8rpx;
}
.footer-text {
  font-size: 20rpx;
  color: #c5c5c5;
}

/* 加载更多 */
.loading-more {
  display: flex;
  justify-content: center;
  padding: 24rpx 0;
}
