@import '../../styles/shangjia-xym-common.wxss';

page {
  background: #fff8e1;
}

.user-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.sj-nav-bar {
  justify-content: center;
}

.nav-refresh-ico {
  position: absolute;
  right: 24rpx;
  width: 44rpx;
  height: 44rpx;
}

.content {
  flex: 1;
  height: 0;
}

.refresh-float {
  position: fixed;
  right: 24rpx;
  top: calc(env(safe-area-inset-top) + 100rpx);
  z-index: 10;
  width: 56rpx;
  height: 56rpx;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.08);
}

.refresh-float-ico {
  width: 32rpx;
  height: 32rpx;
}

.user-header-actions {
  display: flex;
  align-items: center;
  gap: 16rpx;
  flex-shrink: 0;
}

.header-action-ico {
  width: 48rpx;
  height: 48rpx;
  padding: 6rpx;
  flex-shrink: 0;
}

.user-info {
  padding: 10rpx 30rpx;
}

.avatar {
  width: 110rpx;
  height: 110rpx;
  border-radius: 50%;
  border: 4rpx solid #f1f7ff;
  margin-right: 20rpx;
  background: #eee;
}

.nickname {
  font-size: 38rpx;
  font-weight: 700;
  color: #222;
}

.nickname-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 8rpx;
}

.nickname-edit-btn {
  display: inline-flex;
  margin-top: 10rpx;
  padding: 8rpx 22rpx;
  font-size: 24rpx;
  font-weight: 600;
  color: #7a5a12;
  background: linear-gradient(180deg, #fff8e1, #ffe9b8);
  border: 1rpx solid #e8c547;
  border-radius: 28rpx;
  box-shadow: 0 2rpx 8rpx rgba(200, 160, 40, 0.15);
}

.sn-row {
  margin-top: 8rpx;
  align-items: center;
}

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

.copy-ico {
  width: 24rpx;
  height: 24rpx;
  margin-left: 8rpx;
  opacity: 0.6;
}

.badge-zone {
  padding: 0 24rpx 8rpx;
}

.badge-scroll {
  white-space: nowrap;
  width: 100%;
}

.badge-tag-wrap {
  display: inline-block;
  transform: scale(0.72);
  transform-origin: left center;
  margin-right: -8rpx;
}

.identity-tags-row {
  flex-wrap: wrap;
  gap: 4rpx;
  margin-top: 8rpx;
}

.identity-tags-row .badge-tag-wrap {
  transform: scale(0.68);
}

.wallet-btns .sj-btn-outline {
  margin-left: 12rpx;
}

.freeze-row {
  margin: 16rpx 30rpx 0;
  padding: 20rpx 10rpx;
  border-radius: 15rpx;
  background: #fef6d4;
}

.freeze-col {
  flex: 1;
}

.freeze-num {
  font-size: 32rpx;
  font-weight: 700;
  color: #7e893c;
}

.freeze-lbl {
  font-size: 24rpx;
  color: #7e893c;
  font-weight: 700;
  margin-top: 4rpx;
}

.order-nav-box {
  margin-top: 16rpx;
}

.data-board { margin-top: 16rpx; padding-bottom: 8rpx; }
.data-highlight {
  display: flex;
  padding: 8rpx 0 16rpx;
  border-bottom: 1rpx solid #f0f0f0;
  margin-bottom: 12rpx;
}
.data-hl-item { flex: 1; text-align: center; }
.data-hl-num { font-size: 40rpx; font-weight: 700; color: #333; display: block; }
.data-hl-num.accent { color: #E65100; }
.data-hl-lbl { font-size: 24rpx; color: #888; display: block; margin-top: 4rpx; }
.data-hl-sub { font-size: 22rpx; color: #1565C0; display: block; margin-top: 4rpx; }
.data-grid {
  display: flex;
  flex-wrap: wrap;
}
.data-cell {
  width: 50%;
  box-sizing: border-box;
  padding: 12rpx 8rpx;
  text-align: center;
}
.data-cell-num { font-size: 30rpx; font-weight: 600; color: #333; display: block; }
.data-cell-lbl { font-size: 22rpx; color: #999; display: block; margin-top: 4rpx; }
.data-cell-sub { font-size: 20rpx; color: #1565C0; display: block; }
.penalty-mini {
  margin-top: 8rpx;
  padding-top: 12rpx;
  border-top: 1rpx solid #f0f0f0;
  font-size: 22rpx;
  color: #888;
  text-align: center;
}

.unreg-area {
  flex: 1;
  padding: 40rpx 0 16rpx;
}

.unreg-card {
  padding: 40rpx 30rpx;
}

.unreg-title {
  display: block;
  font-size: 32rpx;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24rpx;
}

.unreg-desc {
  display: block;
  font-size: 24rpx;
  color: #888;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 24rpx;
}

.unreg-link.staff-link {
  color: #1976d2;
  font-weight: 600;
}

.unreg-input {
  height: 80rpx;
  border-radius: 12rpx;
  margin-bottom: 20rpx;
  background: #f7f7f7;
  padding: 0 24rpx;
  font-size: 28rpx;
  border: 1rpx solid #eee;
}

.unreg-btn {
  height: 80rpx;
  font-size: 28rpx;
  margin-bottom: 16rpx;
}

.unreg-link {
  text-align: center;
  padding: 16rpx;
  font-size: 24rpx;
  color: #999;
}

.sys-panel {
  margin-top: 16rpx;
  margin-bottom: 16rpx;
  padding: 0 8rpx;
}

.sys-item {
  padding: 24rpx 20rpx;
  border-bottom: 1rpx solid rgba(0, 0, 0, 0.04);
}

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

.sys-text {
  font-size: 28rpx;
  color: #333;
}

.sys-sub {
  font-size: 22rpx;
  color: #999;
}

.sys-arrow {
  color: #ccc;
  font-size: 32rpx;
}

.loading-mask {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.loading-spinner {
  width: 60rpx;
  height: 60rpx;
  border: 4rpx solid rgba(0, 0, 0, 0.08);
  border-top-color: #ffd061;
  border-radius: 50%;
  animation: sjSpin 0.8s linear infinite;
}

@keyframes sjSpin {
  to { transform: rotate(360deg); }
}
