/* pearl 内页共用 — 与首页 uc-dash 同一套视觉 */
html,
body {
  background: #fafafa !important;
}

.el-container:nth-child(2) > .el-main.uc-inner-main {
  margin: 0 !important;
  margin-top: 50px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: #fafafa !important;
}

.uc-inner-main .uc-dash-page {
  background: #fafafa;
  margin: 0;
  padding: 24px 16px 28px;
  min-height: 50vh;
  box-sizing: border-box;
  --uc-dash-card-gap: 12px;
  --uc-inner-pad-x: 24px;
  --uc-inner-pad-y: 20px;
  --uc-dash-accent: var(--uc-nav-active-bg, #165DFF);
  --uc-dash-accent-hover: var(--uc-nav-active-hover-bg, #0e52e6);
}

@media (min-width: 992px) {
  .uc-inner-main .uc-dash-page {
    padding: 24px 24px 32px;
  }
}

.uc-inner-stack {
  display: flex;
  flex-direction: column;
  gap: var(--uc-dash-card-gap, 12px);
}

.uc-inner-card,
.uc-inner-main .uc-dash-page > .main-card,
.uc-inner-main .uc-dash-page .main-card.uc-inner-card {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 0;
  overflow: hidden;
  margin: 0;
}

/* 区块标题：蓝条 + 字 */
.uc-inner-card > .main-card-title,
.uc-inner-card > .finance-title,
.uc-inner-main .uc-dash-page .main-card > .main-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 16px 20px 12px;
  font-size: 16px;
  font-weight: 600;
  color: #262626;
  line-height: 1.35;
  border-bottom: none;
  background: #fff;
}

.uc-inner-card > .main-card-title::before,
.uc-inner-card > .finance-title::before,
.uc-inner-main .uc-dash-page .main-card > .main-card-title::before {
  content: "";
  width: 4px;
  height: 18px;
  flex-shrink: 0;
  background: var(--uc-dash-accent);
}

/* 费用概览 / 余额区（仅内页，不影响首页仪表盘） */
.uc-inner-main .uc-dash-balance {
  display: flex;
  flex-direction: column;
}

.uc-inner-main .uc-dash-balance__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 12px;
  background: #fff;
}

.uc-inner-main .uc-dash-balance__header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.uc-inner-main .uc-dash-balance__title-bar {
  width: 4px;
  height: 18px;
  flex-shrink: 0;
  background: var(--uc-dash-accent);
}

.uc-inner-main .uc-dash-balance__section-name {
  font-size: 16px;
  font-weight: 600;
  color: #262626;
  line-height: 1.35;
}

.uc-inner-main .uc-dash-balance__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 4px 20px 16px;
  background: #fff;
}

.uc-inner-main .uc-dash-balance__main-left {
  flex: 1;
  min-width: 0;
}

.uc-inner-main .uc-dash-balance__bal-label {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: #909399;
  margin-bottom: 6px;
}

.uc-dash-balance__bal-label .balance-title-num {
  font-weight: 600;
  color: #262626;
}

.uc-inner-main .uc-dash-balance__amount {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  color: #262626;
  font-variant-numeric: tabular-nums;
}

.uc-inner-main .uc-dash-balance__amount .uc-balance-prefix,
.uc-inner-main .uc-dash-balance__amount .prefix {
  font-size: 20px;
  font-weight: 600;
  margin-right: 2px;
}

.uc-inner-balance__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.uc-inner-main .uc-dash-balance__recharge,
.uc-inner-main .uc-inner-balance__actions .el-button--primary {
  flex-shrink: 0;
  padding: 10px 22px !important;
  height: auto !important;
  font-size: 14px !important;
  font-weight: 500;
  border-radius: 0 !important;
  background: var(--uc-dash-accent) !important;
  border-color: var(--uc-dash-accent) !important;
}

.uc-inner-main .uc-dash-balance__recharge {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  line-height: 1.35;
  cursor: pointer;
}

.uc-inner-main .uc-dash-balance__recharge:hover {
  background: var(--uc-dash-accent-hover) !important;
  color: #fff;
  text-decoration: none;
}

.uc-inner-balance__actions .balance-tx-btn {
  color: var(--uc-dash-accent) !important;
  border-color: var(--uc-dash-accent) !important;
  border-radius: 0 !important;
}

.uc-inner-balance__actions .tx-list {
  font-size: 13px;
  color: #8c8c8c;
  cursor: pointer;
}

.uc-inner-balance__actions .tx-list:hover {
  color: var(--uc-dash-accent);
}

.uc-inner-main .uc-dash-balance__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  padding: 0 20px 16px;
  background: #fff;
}

.uc-inner-main .uc-dash-balance__stat {
  background: #f5f7fa;
  padding: 14px;
  box-sizing: border-box;
  min-width: 0;
}

.uc-inner-main .uc-dash-balance__stat-lab {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #909399;
  margin-bottom: 8px;
}

.uc-inner-main .uc-dash-balance__stat-val {
  font-size: 16px;
  font-weight: 600;
  color: #303133;
  font-variant-numeric: tabular-nums;
}

.uc-inner-main .uc-dash-balance__stat-val .prefix {
  font-size: 13px;
  font-weight: 500;
}

.uc-inner-main .uc-dash-balance__stat-extra {
  margin-top: 6px;
  font-size: 12px;
  color: var(--uc-dash-accent);
  cursor: pointer;
}

.uc-inner-main .uc-dash-balance__stat-extra:hover {
  color: var(--uc-dash-accent-hover);
}

/* 内容区 / Tab */
.uc-inner-main .uc-dash-page .content_box,
.uc-inner-card .content-box,
.uc-inner-main .uc-dash-page .main-card-table {
  padding: 0 20px 20px;
}

.uc-inner-card > .main-card-title:has(.back)::before,
.uc-inner-card > .main-card-title:has(.back-icon)::before {
  display: none;
}

/* Tab 导航与内容区统一左右留白，避免贴边 */
.uc-inner-main .uc-dash-page .el-tabs__header {
  margin: 0 0 0;
  padding: 8px var(--uc-inner-pad-x, 24px) 0;
}

.uc-inner-main .uc-dash-page .el-tabs__content {
  padding: 16px var(--uc-inner-pad-x, 24px) var(--uc-inner-pad-y, 20px);
}

.uc-inner-main .uc-dash-page .content_tab .el-tabs__header {
  margin: 0 0 16px;
}

.uc-inner-main .uc-dash-page .el-tabs__nav-wrap::after {
  height: 1px;
  background: #eef0f4;
}

/* 表格单元格留白 */
.uc-inner-main .uc-dash-page .el-table th.el-table__cell > .cell,
.uc-inner-main .uc-dash-page .el-table td.el-table__cell > .cell {
  padding-left: 16px;
  padding-right: 16px;
}

.uc-inner-main .uc-dash-page .el-table th.el-table__cell:first-child > .cell,
.uc-inner-main .uc-dash-page .el-table td.el-table__cell:first-child > .cell {
  padding-left: 20px;
}

.uc-inner-main .uc-dash-page .el-table th.el-table__cell:last-child > .cell,
.uc-inner-main .uc-dash-page .el-table td.el-table__cell:last-child > .cell {
  padding-right: 20px;
}

.uc-inner-main .uc-dash-page .el-tabs__item {
  font-size: 14px;
  color: #606266;
  height: 44px;
  line-height: 44px;
}

.uc-inner-main .uc-dash-page .el-tabs__item.is-active {
  color: var(--uc-dash-accent);
  font-weight: 600;
}

.uc-inner-main .uc-dash-page .el-tabs__active-bar {
  background-color: var(--uc-dash-accent);
  height: 2px;
}

.uc-inner-main .uc-dash-page .content_searchbar,
.uc-inner-main .uc-dash-page .main-card-search {
  margin-bottom: 12px;
}

.uc-inner-main .uc-dash-page .el-button--primary {
  background: var(--uc-dash-accent);
  border-color: var(--uc-dash-accent);
  border-radius: 0;
}

.uc-inner-main .uc-dash-page .el-button--primary:hover,
.uc-inner-main .uc-dash-page .el-button--primary:focus {
  background: var(--uc-dash-accent-hover);
  border-color: var(--uc-dash-accent-hover);
}

/* 订单详情 */
.uc-inner-main .uc-dash-page .order-detail {
  background: #fff;
  border: 1px solid #eef0f4;
  padding: 0 20px 20px;
}

.uc-inner-main .uc-dash-page .order-detail .page-top {
  padding: 16px 0 12px;
  border-bottom: 1px solid #eef0f4;
}

.uc-inner-main .uc-dash-page .order-detail .top-title {
  font-size: 16px;
  font-weight: 600;
  color: #262626;
}

.uc-inner-main .uc-dash-page .order-detail .back-btn .icon path {
  fill: var(--uc-dash-accent);
}

/* 提现页 header */
.uc-inner-main .uc-dash-page .main-card > header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #eef0f4;
}

.uc-inner-main .uc-dash-page .main-card > header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #262626;
}

.uc-inner-main .uc-dash-page .main-card > header .back-icon path {
  fill: var(--uc-dash-accent);
}

.uc-inner-main .uc-dash-page .withdrawal-content {
  padding: 16px 20px 20px;
}

/* 账户中心顶部 */
.uc-inner-main .uc-dash-page .account .box-top,
.uc-inner-main .uc-dash-page .content-box > .box-top {
  padding: 16px 20px 0;
}

@media (max-width: 767px) {
  .uc-inner-main .uc-dash-page {
    padding: 16px 12px 24px;
  }
  .uc-inner-main .uc-dash-balance__amount {
    font-size: 26px;
  }
}

/* 内页区块标题 */
.uc-inner-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px var(--uc-inner-pad-x, 24px) 12px;
  background: #fff;
}

.uc-inner-head__title {
  font-size: 16px;
  font-weight: 600;
  color: #262626;
  line-height: 1.35;
}

/* 账户中心资料卡（仅内页，不影响首页四宫格） */
.uc-inner-main .uc-dash-panel__top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px 16px;
  position: relative;
}

.uc-inner-main .uc-dash-avatar {
  width: 52px;
  height: 52px;
  border-radius: 0;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--uc-dash-accent), #4d7dff);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.uc-inner-main .uc-dash-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uc-inner-main .uc-dash-profile {
  flex: 1;
  min-width: 0;
}

.uc-inner-main .uc-dash-profile__row1 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.uc-inner-main .uc-dash-id {
  font-size: 18px;
  font-weight: 600;
  color: #262626;
  line-height: 1.3;
}

.uc-inner-main .uc-dash-profile__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.uc-inner-main .uc-dash-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 0;
  background: rgba(82, 196, 26, 0.12);
  color: #389e0d;
  font-weight: 500;
}

.uc-inner-main .uc-dash-chip--muted {
  background: #f5f5f5;
  color: #8c8c8c;
}

.uc-inner-main .uc-dash-meta {
  border-top: 1px solid #f4f5f8;
  padding: 12px 20px 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.uc-inner-main .uc-dash-kpi {
  background: #f5f7fa;
  padding: 14px;
  box-sizing: border-box;
  min-width: 0;
}

.uc-inner-main .uc-dash-kpi__lab {
  display: block;
  font-size: 12px;
  color: #909399;
  margin-bottom: 8px;
}

.uc-inner-main .uc-dash-kpi__val {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #303133;
}

.uc-account-hero .attestation-status {
  margin-top: 8px;
  cursor: pointer;
}

.uc-account-hero .attestation-text {
  font-size: 12px;
  color: #8c8c8c;
}

.uc-account-hero .bule-text {
  color: var(--uc-dash-accent);
}

.uc-inner-main .uc-dash-page .box-item-t {
  font-size: 13px;
  color: #909399;
  margin-bottom: 6px;
}

.uc-inner-main .uc-dash-page .box-item {
  margin-bottom: 16px;
}

.uc-inner-main .uc-dash-page .box-item .el-input__inner,
.uc-inner-main .uc-dash-page .box-item .el-select .el-input__inner {
  border-radius: 0;
  background: #f2f3f5;
  border-color: transparent;
}

.uc-inner-main .uc-dash-page .box-item .el-input__inner:focus {
  border-color: var(--uc-dash-accent);
  background: #fff;
}

.uc-security-tabs.el-tabs > .el-tabs__header {
  padding: 8px var(--uc-inner-pad-x, 24px) 0;
}

.uc-security-tabs.el-tabs > .el-tabs__content {
  padding: 16px var(--uc-inner-pad-x, 24px) var(--uc-inner-pad-y, 20px);
}

.nq-iframe-page {
  padding: 0;
  min-height: calc(100vh - 140px);
}

.nq-iframe-page iframe {
  display: block;
  border: 0;
}

/* 首页仪表盘 home-dash-main：保持 home.css 四宫格，禁止内页样式污染 */
.home-dash-main .uc-dash-meta {
  grid-template-columns: 1fr 1fr !important;
  padding: 12px 12px 14px !important;
}

.home-dash-main .uc-dash-kpi {
  padding: 14px 14px 16px !important;
}

.home-dash-main .uc-dash-kpi__val {
  font-size: 18px !important;
}

.home-dash-main .uc-dash-page {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}
