/* ==========================================================================
   账户概览
   深色高对比余额卡 + 24px 圆角信息卡 + 胶囊状态标签。
   ========================================================================== */

.ov-pane {
  --ov-muted: #7c8aa0;
  --ov-line: rgba(15, 23, 42, 0.07);
  max-width: 100%;
  color: #0b1220;
  padding: 2px 0 6px;
  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 18px;
}

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

.ov-title {
  margin: 0;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #0b1220;
}

.ov-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 7px 0 0;
  font-size: 12.5px;
  color: var(--ov-muted);
}

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

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

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

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

.ov-status.is-ok {
  color: #067a55;
  background: #e6f8f0;
}

.ov-status.is-off {
  color: #5b6878;
  background: #f1f4f8;
}

.ov-status.is-warn {
  color: #a5620a;
  background: #fff4df;
}

.ov-refresh {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ov-line);
  border-radius: 13px;
  background: #ffffff;
  color: #4338ca;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  transition: background 0.18s ease, transform 0.18s ease;
}

.ov-refresh:hover:not(:disabled) {
  background: #f5f6ff;
  transform: translateY(-1px);
}

.ov-refresh:disabled {
  cursor: progress;
}

.ov-refresh.is-loading .v-icon {
  animation: ovSpin 0.9s linear infinite;
}

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

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

.ov-error-retry {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  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 {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 20px 22px 22px;
  border: 1px solid var(--ov-line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ov-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.1);
}

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

.ov-card-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #5a6780;
}

.ov-card-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.ov-percent {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #4338ca;
  background: #eef1ff;
  font-variant-numeric: tabular-nums;
}

/* 余额卡：深色高对比 */
.ov-balance-card {
  border-color: rgba(49, 46, 129, 0.4);
  background: linear-gradient(140deg, #312e81 0%, #4338ca 46%, #6d28d9 100%);
  box-shadow: 0 26px 58px rgba(49, 46, 129, 0.28);
}

.ov-balance-card::after {
  content: '';
  position: absolute;
  top: -110px;
  right: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.ov-balance-card:hover {
  box-shadow: 0 30px 66px rgba(49, 46, 129, 0.34);
}

.ov-balance-card .ov-card-title {
  color: rgba(255, 255, 255, 0.78);
}

.ov-balance {
  font-size: 40px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1.4px;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

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

.ov-balance-card .ov-caption {
  color: rgba(255, 255, 255, 0.66);
}

/* 今日用量 */
.ov-progress {
  margin: 2px 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: 26px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #0b1220;
  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;
}

.ov-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

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

.ov-row:first-child {
  padding-top: 2px;
}

.ov-row-label {
  font-size: 12.5px;
  color: var(--ov-muted);
}

.ov-row-value {
  font-size: 16px;
  font-weight: 700;
  color: #131c30;
  font-variant-numeric: tabular-nums;
  text-align: right;
  word-break: break-all;
}

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

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

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 960px) {
  .ov-card {
    padding: 18px 18px 20px;
    border-radius: 22px;
  }

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

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

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

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

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

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

@media (prefers-reduced-motion: reduce) {
  .ov-refresh.is-loading .v-icon {
    animation: none;
  }

  .ov-card {
    transition: none;
  }
}
