/* 用户控制台 · 企业云控制台（likeadmin 密度） */

.user-main { background: #f0f2f5; }

/* ========== 概览 wb-* ========== */
.wb-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* 顶栏 */
.wb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
}

.wb-bar-left {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 16px;
  min-width: 0;
}

.wb-crumb {
  font-size: 12px;
  color: #86909c;
  width: 100%;
  margin-bottom: 2px;
}

.wb-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1d2129;
  white-space: nowrap;
}

.wb-desc {
  font-size: 13px;
  color: #86909c;
  white-space: nowrap;
}

.wb-bar-right {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* 统计 · 四卡横排 */
.wb-stats {
  display: flex;
  flex-direction: row;
  gap: 12px;
  width: 100%;
}

.wb-stat {
  flex: 1 1 0;
  min-width: 0;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
}

.wb-stat-label {
  font-size: 12px;
  color: #86909c;
  line-height: 1.4;
  margin-bottom: 8px;
}

.wb-stat-value {
  font-size: 26px;
  font-weight: 600;
  color: #1d2129;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.wb-stat-accent .wb-stat-value {
  color: #e60012;
  font-size: 22px;
}

.wb-stat-sub {
  margin-top: 6px;
  font-size: 12px;
  color: #86909c;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .wb-stats { flex-wrap: wrap; }
  .wb-stat { flex: 1 1 calc(50% - 6px); min-width: calc(50% - 6px); }
}

@media (max-width: 520px) {
  .wb-stat { flex: 1 1 100%; min-width: 100%; }
}

/* 快捷入口 · 横条四等分 */
.wb-quick {
  display: flex;
  flex-direction: row;
  width: 100%;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
}

.wb-quick-btn {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 12px;
  border: none;
  border-right: 1px solid #f0f0f0;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  color: #1d2129;
  cursor: pointer;
  transition: background 0.15s;
}

.wb-quick-btn:last-child { border-right: none; }
.wb-quick-btn:hover { background: #f7faff; color: #1677ff; }
.wb-quick-btn .el-icon { font-size: 16px; color: #1677ff; }

@media (max-width: 640px) {
  .wb-quick { flex-wrap: wrap; }
  .wb-quick-btn {
    flex: 1 1 50%;
    border-bottom: 1px solid #f0f0f0;
  }
  .wb-quick-btn:nth-child(2) { border-right: none; }
}

/* 图表区 · 左右双栏 */
.wb-charts {
  display: flex;
  flex-direction: row;
  gap: 12px;
  width: 100%;
}

.wb-chart-panel {
  flex: 1 1 0;
  min-width: 0;
}

.wb-chart-meta {
  font-size: 12px;
  color: #86909c;
  font-weight: normal;
}

.wb-chart {
  width: 100%;
  height: 240px;
  padding: 4px 8px 12px;
  box-sizing: border-box;
}

@media (max-width: 960px) {
  .wb-charts { flex-direction: column; }
  .wb-chart { height: 220px; }
}

/* 主区 · 左右双栏 */
.wb-grid {
  display: flex;
  flex-direction: row;
  gap: 12px;
  width: 100%;
  align-items: flex-start;
}

.wb-grid .wb-panel {
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 960px) {
  .wb-grid { flex-direction: column; }
}

.wb-panel { margin: 0; }

.wb-panel-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wb-panel-meta {
  font-size: 12px;
  color: #86909c;
}

/* 表格 */
.wb-table { width: 100%; }

.wb-table .el-table__header th {
  background: #fafafa !important;
  font-weight: 500;
  color: #4e5969;
  font-size: 13px;
}

.wb-table .el-table__body td {
  font-size: 13px;
}

.wb-table .el-table__row:hover > td {
  background: #f7faff !important;
}

/* 状态点 */
.wb-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #4e5969;
}

.wb-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #bfbfbf;
  flex-shrink: 0;
}

.wb-status-running { color: #389e0d; }
.wb-status-running::before { background: #52c41a; }
.wb-status-stopped { color: #86909c; }
.wb-status-creating { color: #d48806; }
.wb-status-creating::before { background: #faad14; }
.wb-status-locked { color: #cf1322; }
.wb-status-locked::before { background: #ff4d4f; }
.wb-status-order-paid { color: #389e0d; }
.wb-status-order-paid::before { background: #52c41a; }
.wb-status-order-pending { color: #d48806; }
.wb-status-order-pending::before { background: #faad14; }

.wb-money { color: #e60012; font-weight: 600; }
.wb-expired { color: #cf1322; }

.wb-empty {
  text-align: center;
  padding: 40px 16px;
  color: #86909c;
  font-size: 13px;
}

.wb-empty .el-icon { font-size: 32px; color: #c9cdd4; margin-bottom: 10px; }
.wb-empty p { margin: 0 0 12px; }
.wb-empty-sm { padding: 28px 16px; }

/* ========== 通用 ========== */
.user-panel {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
}

.user-panel-head {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-panel-head .title {
  font-weight: 600;
  font-size: 14px;
  color: #1d2129;
}

.user-panel-body { padding: 16px; }
.user-nav-item { display: inline-flex; align-items: center; gap: 6px; }
.user-nav-item .el-icon { font-size: 16px; }

.desktop-card-v2 {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.desktop-card-v2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #d9d9d9;
}

.desktop-card-v2.status-running::before { background: #52c41a; }
.desktop-card-v2.status-creating::before { background: #faad14; }
.desktop-card-v2.status-stopped::before { background: #bfbfbf; }
.desktop-card-v2.status-locked::before { background: #ff4d4f; }
.desktop-card-v2:hover { border-color: #c9cdd4; }
.desktop-card-v2 .desktop-card-head { padding-left: 16px; }

.desktop-filter-bar { margin-bottom: 12px; }

.desktop-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr));
  gap: 12px;
}

.desktop-meta-detail .meta-block .sub-label { margin-top: 10px; color: #86909c; font-size: 13px; }
.desktop-meta-detail .assign-account { color: #1677ff; font-weight: 500; word-break: break-all; }
.desktop-card-foot { flex-wrap: wrap; }

.product-card-v2 {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card-v2:hover { border-color: #c9cdd4; }
.product-card-v2.featured { border-color: #1677ff; }

.product-card-v2 .product-head {
  padding: 18px 20px 14px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.product-card-v2.featured .product-head::after {
  content: "推荐";
  position: absolute;
  top: 14px;
  right: 14px;
  background: #e60012;
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
}

.product-card-v2 .product-body { padding: 14px 20px; flex: 1; }
.product-card-v2 .product-foot { padding: 14px 20px 20px; background: #fafafa; }

.balance-banner {
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: #ad6800;
}

.empty-state-v2 {
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  border: 1px dashed #e8e8e8;
  border-radius: 4px;
}

.empty-state-v2 .empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #f2f3f5;
  display: grid;
  place-items: center;
  color: #86909c;
  font-size: 28px;
}

.empty-state-v2 h3 { margin: 0 0 8px; font-size: 15px; }
.empty-state-v2 p { color: #86909c; font-size: 13px; margin: 0 0 16px; }

.user-mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #fff;
  border-top: 1px solid #e8e8e8;
  z-index: 100;
  grid-template-columns: repeat(5, 1fr);
}

.user-mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  color: #86909c;
  cursor: pointer;
  border: none;
  background: none;
}

.user-mobile-nav-item .el-icon { font-size: 20px; }
.user-mobile-nav-item.active { color: #1677ff; }

@media (max-width: 768px) {
  .user-mobile-nav { display: grid; }
  .user-main { padding-bottom: 72px; }
  .wb-bar-left { flex-direction: column; align-items: flex-start; gap: 4px; }
  .wb-desc { white-space: normal; }
}
