.jk-user-center-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2147483646;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.jk-user-center-overlay.open {
  display: flex;
}

.jk-user-center-modal {
  background: #f0f1f7;
  border-radius: 12px;
  width: 100%;
  max-width: 800px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.jk-user-center-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #eee;
  background: #f0f1f7;
  flex-shrink: 0;
}

.jk-user-center-logo {
  height: 32px;
  width: 32px;
  object-fit: contain;
}

.jk-user-center-close {
  border: none;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  width: 34px;
  height: 34px;
  color: #717171;
  border-radius: 50%;
  padding: 0;
  line-height: 1;
}

.jk-user-center-close:hover {
  background: rgba(0, 0, 0, 0.06);
}

.jk-user-center-body {
  padding: 12px;
  display: flex;
  gap: 12px;
  height: 532px;
  max-height: calc(80vh - 70px);
  box-sizing: border-box;
  overflow: auto;
}

/* 左侧用户信息 */
.jk-user-center-sidebar {
  width: 250px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.jk-user-center-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 12px;
}

.jk-user-center-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
}

.jk-user-center-welcome {
  font-size: 14px;
  color: #909399;
  margin-top: 4px;
}

.jk-user-center-phone {
  font-size: 16px;
  color: #303133;
  font-weight: 600;
  margin-bottom: 16px;
  min-height: 24px;
}

.jk-user-center-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  color: #303133;
  margin-top: 12px;
}

.jk-user-center-vip-badge {
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #ebeef5;
  padding: 4px 12px;
  font-size: 14px;
}

.jk-user-center-expire {
  font-size: 14px;
}

.jk-user-center-recharge {
  width: 100%;
  margin-top: 12px;
  background: #3491fa;
  border: none;
  border-radius: 8px;
  padding: 8px 0;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.jk-user-center-sidebar-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.jk-user-center-logout {
  width: 100%;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #dcdfe6;
  margin-top: 12px;
  padding: 8px 0;
  color: #303133;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 12px;
}

.jk-user-center-agree-hint {
  font-size: 14px;
  color: #ccc;
}

.jk-user-center-agree-links {
  font-size: 14px;
}

.jk-user-center-agree-links a {
  color: #409eff;
  text-decoration: none;
  margin: 0 4px;
}

/* 右侧主区域 */
.jk-user-center-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.jk-user-center-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.jk-shop-card {
  height: 260px;
  flex-shrink: 0;
}

.jk-purchase-card {
  height: 260px;
  margin-top: 12px;
  flex-shrink: 0;
}

.jk-user-center-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 8px;
}

.jk-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.jk-card-icon {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #3491fa;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.jk-user-center-card-title {
  font-size: 16px;
  font-weight: 500;
  color: #303133;
}

.jk-user-center-card-actions {
  font-size: 14px;
  color: #303133;
  white-space: nowrap;
}

.jk-shop-count,
.jk-purchase-count {
  color: #3491fa;
}

.jk-shop-bind-btn,
.jk-purchase-btn {
  margin-left: 10px;
  background: #fff;
  color: #3491fa;
  padding: 5px 15px;
  border-radius: 8px;
  border: 1px solid #3491fa;
  font-size: 12px;
  cursor: pointer;
  width: 56px;
  height: 28px;
  line-height: 1;
}

.jk-shop-bind-btn:hover,
.jk-purchase-btn:hover {
  background: #f0f7ff;
}

/* 平台分类 Tab */
.jk-platform-tabs {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
}

.jk-platform-tab {
  position: relative;
  height: 28px;
  padding: 0 12px;
  font-size: 14px;
  border: 1px solid #3491fa;
  background: #fff;
  color: #3491fa;
  cursor: pointer;
  margin: 0;
  line-height: 26px;
  white-space: nowrap;
}

.jk-platform-tab:first-child {
  border-radius: 6px 0 0 6px;
}

.jk-platform-tab:last-child {
  border-radius: 0 6px 6px 0;
}

.jk-platform-tab:not(:first-child) {
  border-left: none;
}

.jk-platform-tab-active {
  background: #3491fa;
  color: #fff;
}

.jk-platform-badge {
  position: absolute;
  top: -8px;
  right: 0;
  background: #f4ea2a;
  color: #333;
  font-size: 10px;
  padding: 0 4px;
  line-height: 14px;
  border-radius: 2px;
  z-index: 1;
}

/* 刷新按钮 */
.jk-purchase-refresh {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  border: none;
  background: none;
  color: #3491fa;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}

.jk-purchase-refresh:hover {
  opacity: 0.8;
}

.jk-purchase-refresh svg {
  flex-shrink: 0;
}

/* 表格 */
.jk-user-center-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  border: 1px solid #ebeef5;
  border-radius: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.jk-user-center-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.jk-user-center-table thead {
  background: #f5f7fa;
  position: sticky;
  top: 0;
  z-index: 1;
}

.jk-user-center-table th {
  padding: 12px 10px;
  font-weight: 600;
  color: #606266;
  text-align: center;
  border-bottom: 1px solid #ebeef5;
}

.jk-user-center-table td {
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid #ebeef5;
  color: #606266;
}

.jk-shop-unbind-btn {
  border: none;
  background: none;
  color: #3491fa;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
}

.jk-shop-unbind-btn:hover {
  opacity: 0.8;
}

.jk-shop-empty,
.jk-purchase-empty {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #606266;
  background: #fff;
  font-size: 14px;
}

.jk-empty-icon {
  width: 60px;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' fill='%23f0f2f5'/%3E%3C/svg%3E") center/contain no-repeat;
  margin-bottom: 8px;
}

.jk-table-footer {
  display: none;
  align-items: center;
  justify-content: center;
  height: 40px;
  font-size: 12px;
  color: #a8abb2;
  border-top: 1px solid #ebeef5;
}

.jk-shop-tip {
  margin-top: 8px;
  font-size: 12px;
  color: #f53f3f;
  flex-shrink: 0;
}

.jk-purchase-table-wrap {
  height: 200px;
}
