/* ==========================================================================
   账户概览（个人中心 · 账户条）
   与钱包 / 收支帐单同一视觉语言：浅渐变底、大圆角、柔和光晕、胶囊标签。
   ========================================================================== */

.ov-pane {
  --ov-ink: #0f172a;
  --ov-muted: #64748b;
  --ov-line: rgba(15, 23, 42, 0.07);
  max-width: 100%;
  color: var(--ov-ink);
  padding: 2px 0 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ov-pane * {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ov-pane::-webkit-scrollbar,
.ov-pane *::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

.ov-anchor {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------------------------------------------------------------- 头部 */
.ov-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 2px 2px 16px;
}

.ov-head-main {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.ov-head-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(140deg, #6366f1, #8b5cf6);
  box-shadow: 0 12px 26px rgba(99, 102, 241, 0.28);
}

.ov-head-icon .v-icon {
  color: #fff;
  font-size: 22px;
}

.ov-head-text {
  min-width: 0;
}

.ov-title {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #131c38;
}

.ov-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 5px;
  font-size: 12.5px;
  color: #7c8aa5;
}

.ov-sub-item {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.ov-sub-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c7d2e3;
  flex: 0 0 auto;
}

.ov-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.ov-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.ov-status.is-ok {
  color: #0f9d6e;
  background: #e9f9f1;
  border: 1px solid rgba(16, 185, 129, 0.16);
}

.ov-status.is-off {
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid rgba(100, 116, 139, 0.14);
}

.ov-status.is-warn {
  color: #b45309;
  background: #fff7e6;
  border: 1px solid rgba(245, 158, 11, 0.18);
}

.ov-refresh {
  width: 36px !important;
  height: 36px !important;
  border-radius: 12px !important;
  background: #fff !important;
  border: 1px solid var(--ov-line);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07) !important;
}

.ov-refresh .v-icon {
  color: #4338ca;
  font-size: 19px;
}

/* ---------------------------------------------------------------- 错误条 */
.ov-error {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 12.5px;
  color: #b42318;
  background: #fef2f2;
  border: 1px solid rgba(239, 68, 68, 0.16);
}

.ov-error-retry {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  font-size: 12.5px;
  font-weight: 600;
  color: #dc2626;
  cursor: pointer;
}

.ov-error-retry:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------- 卡片网格 */
.ov-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ov-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 20px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--ov-line);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ov-card:hover {
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09);
}

.ov-balance-card {
  background: linear-gradient(140deg, #f7f8ff 0%, #ffffff 58%);
  border-color: rgba(99, 102, 241, 0.16);
}

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

.ov-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.2px;
}

.ov-card-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #4338ca;
  background: #eef2ff;
}

.ov-percent {
  font-size: 12px;
  font-weight: 700;
  color: #6366f1;
  font-variant-numeric: tabular-nums;
}

/* 余额 */
.ov-balance {
  font-size: 34px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

.ov-caption {
  margin: 8px 0 0;
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.5;
}

/* 今日使用 */
.ov-progress {
  margin: 4px 0 0;
  border-radius: 999px;
  overflow: hidden;
}

.ov-usage {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.ov-usage-used {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.ov-usage-total {
  font-size: 12.5px;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

/* 明细行 */
.ov-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 2px;
}

.ov-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
}

.ov-row + .ov-row {
  border-top: 1px dashed rgba(15, 23, 42, 0.06);
}

.ov-row-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
}

.ov-row-icon .v-icon {
  font-size: 18px;
}

.ov-row-icon.tone-indigo {
  color: #4f46e5;
  background: linear-gradient(140deg, #eef2ff, #e6e9ff);
}

.ov-row-icon.tone-violet {
  color: #7c3aed;
  background: linear-gradient(140deg, #f5f3ff, #ede9fe);
}

.ov-row-icon.tone-sky {
  color: #0284c7;
  background: linear-gradient(140deg, #eff6ff, #e0f2fe);
}

.ov-row-icon.tone-teal {
  color: #0f9d6e;
  background: linear-gradient(140deg, #ecfdf5, #d8f7ea);
}

.ov-row-body {
  min-width: 0;
  flex: 1 1 auto;
}

.ov-row-label {
  font-size: 12px;
  color: #8493ab;
}

.ov-row-value {
  margin-top: 2px;
  font-size: 14.5px;
  font-weight: 700;
  color: #1e293b;
  font-variant-numeric: tabular-nums;
}

.ov-skeleton {
  border-radius: 14px !important;
  padding: 0 !important;
  background: transparent !important;
}

.ov-skeleton .v-skeleton-loader__bone {
  border-radius: 10px;
}

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 960px) {
  .ov-grid {
    gap: 12px;
  }

  .ov-card {
    padding: 16px 16px 18px;
    border-radius: 18px;
  }

  .ov-balance {
    font-size: 28px;
  }

  .ov-title {
    font-size: 19px;
  }
}

@media (max-width: 760px) {
  .ov-grid {
    grid-template-columns: 1fr;
  }

  .ov-head {
    padding-bottom: 12px;
  }

  .ov-head-icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .ov-sub {
    font-size: 12px;
  }

  .ov-balance {
    font-size: 26px;
  }

  .ov-card:hover {
    transform: none;
  }
}
