/* 客户管理页面样式 */
page {
  background: #f5f2fd;
}

.page-container {
  min-height: 100vh;
  background: #f5f2fd;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* 隐藏滚动条 */
.content-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.content-scroll {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 顶部导航 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.nav-bar {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 16px;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 8px;
  border-radius: 50px;
}

.back-icon {
  width: 28px;
  height: 28px;
}

.back-text {
  font-size: 18px;
  font-weight: 700;
  color: #101828;
}

/* 内容区域 */
.content-scroll {
  min-height: 100vh;
  padding: 0 16px;
  box-sizing: border-box;
  width: 100%;
}

/* 账户卡片 */
.account-card {
  position: relative;
  background: linear-gradient(180deg, #b06ab3 0%, #d489be 100%);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(176, 106, 179, 0.3);
  box-sizing: border-box;
  width: 100%;
}

.account-bg {
  position: absolute;
  top: -48px;
  right: -48px;
  width: 192px;
  height: 192px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  filter: blur(40px);
}

.account-content {
  position: relative;
  z-index: 1;
}

.account-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.account-icon-wrap {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-icon {
  width: 18px;
  height: 18px;
}

.account-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  opacity: 0.95;
}

.balance-section {
  margin-bottom: 24px;
}

.balance-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 6px;
  display: block;
}

.balance-value {
  display: flex;
  align-items: baseline;
}

.balance-int {
  font-size: 48px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.balance-dec {
  font-size: 30px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.stats-box {
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.stat-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-icon {
  width: 16px;
  height: 16px;
  opacity: 0.9;
}

.stat-label {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.stat-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 16px;
}

/* 快捷查询 */
.search-card {
  background: #fff;
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  width: 100%;
}

.search-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.search-icon-wrap {
  width: 34px;
  height: 34px;
  background: #fdf4f9;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-icon {
  width: 18px;
  height: 18px;
}

.search-title {
  font-size: 16px;
  font-weight: 700;
  color: #101828;
}

.search-input-wrap {
  width: 100%;
  box-sizing: border-box;
}

.search-input {
  width: 100%;
  height: 48px;
  background: #f9fafb;
  border-radius: 16px;
  padding: 0 16px;
  font-size: 14px;
  box-sizing: border-box;
}

.search-input::placeholder {
  color: #99a1af;
}

.search-btn {
  width: 100%;
  margin-top: 12px;
  background: #b06ab3;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 0;
  border-radius: 14px;
  border: none;
  box-shadow: 0 4px 8px rgba(176, 106, 179, 0.2);
}

.search-btn::after {
  border: none;
}

/* 统计卡片 */
.stats-cards {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
}

.stat-card {
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.stat-card.active {
  border: 1.1px solid #b06ab3;
  box-shadow: 0 0 0 1px rgba(176, 106, 179, 0.2), 0 4px 6px -1px rgba(176, 106, 179, 0.1);
}

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stat-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #6a7282;
}

.stat-card.active .stat-card-title {
  color: #b06ab3;
}

.stat-card-icon-wrap {
  width: 30px;
  height: 30px;
  background: #fdf4f9;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-card-icon-wrap.inactive {
  background: #f3f4f6;
}

.stat-card-icon {
  width: 18px;
  height: 18px;
}

.stat-card-body {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.stat-card-value {
  font-size: 30px;
  font-weight: 900;
  color: #101828;
  line-height: 1;
}

.stat-card-value.inactive {
  color: #99a1af;
}

.stat-badge {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-badge.success {
  background: #f0fdf4;
  color: #00a63e;
}

.stat-badge.neutral {
  background: #f3f4f6;
  color: #99a1af;
}

.badge-icon {
  width: 10px;
  height: 10px;
}

.stat-card-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #b06ab3;
}

/* 今日列表 */
.list-card {
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  width: 100%;
}

.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 4px;
}

.list-title {
  font-size: 18px;
  font-weight: 700;
  color: #101828;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0fdf4;
  padding: 4px 10px;
  border-radius: 10px;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: #00c950;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.live-text {
  font-size: 12px;
  font-weight: 700;
  color: #101828;
}

.customer-list {
  border-top: 1px solid #f9fafb;
  padding-top: 8px;
}

.customer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 57px;
  padding: 0 8px;
  border-bottom: 1px solid #f9fafb;
}

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

.customer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.customer-id {
  font-size: 16px;
  font-weight: 700;
  color: #101828;
}

.customer-time {
  font-size: 14px;
  color: #99a1af;
}

.customer-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.status-badge.success {
  background: #f0fdf4;
  color: #00a63e;
}

.status-badge.pending {
  background: #fef3c7;
  color: #d97706;
}

.chevron-icon {
  width: 16px;
  height: 16px;
  opacity: 0.5;
}

.bottom-space {
  height: 60px;
}
