/* 用量页 · 白天白蓝玻璃（对齐 site-day-theme 锁定语言） */

.usage-page-body {
  min-height: 100vh;
}

.usage-page-shell {
  max-width: 56rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 4rem;
}

.usage-page-main {
  margin-top: 1rem;
}

/* 摘要卡片 */
.usage-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin: 0.5rem 0 1.25rem;
}

.usage-summary__card {
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(26, 90, 150, 0.16);
  box-shadow: 0 1px 3px rgba(15, 39, 64, 0.06);
}

.usage-summary__label {
  font-size: 0.7rem;
  color: rgba(15, 39, 64, 0.6);
  margin-bottom: 0.2rem;
}

.usage-summary__value {
  font-size: 1.15rem;
  font-weight: 600;
  color: #0f2740;
  line-height: 1.2;
}

/* 工具栏 */
.usage-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
  flex-wrap: wrap;
}

.usage-month-pick {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(15, 39, 64, 0.7);
}

.usage-month-pick input {
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(26, 90, 150, 0.22);
  background: #fff;
  color: #0f2740;
  font-size: 0.8rem;
}

/* 表格 */
.usage-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(26, 90, 150, 0.14);
  background: rgba(255, 255, 255, 0.96);
}

.usage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  min-width: 40rem;
}

.usage-table th,
.usage-table td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid rgba(26, 90, 150, 0.08);
  text-align: left;
  vertical-align: top;
}

.usage-table th {
  font-size: 0.7rem;
  color: rgba(15, 39, 64, 0.6);
  background: rgba(214, 236, 247, 0.4);
  white-space: nowrap;
  font-weight: 600;
}

.usage-table tbody tr:hover {
  background: rgba(214, 236, 247, 0.22);
}

.usage-cell--time {
  white-space: nowrap;
  color: rgba(15, 39, 64, 0.82);
  font-variant-numeric: tabular-nums;
}

.usage-cell--tokens {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #15324f;
}

.usage-cell--tokens small {
  display: block;
  font-weight: 400;
  font-size: 0.68rem;
  color: rgba(15, 39, 64, 0.5);
}

.usage-cell--model {
  white-space: nowrap;
  color: #1f4a6e;
  font-family: 'SF Mono', 'Menlo', monospace;
  font-size: 0.74rem;
}

.usage-cell--channel {
  white-space: nowrap;
  color: rgba(15, 39, 64, 0.6);
  font-size: 0.72rem;
}

.usage-cell--req {
  max-width: 16rem;
  color: rgba(15, 39, 64, 0.78);
  line-height: 1.45;
  word-break: break-word;
}

.usage-tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 600;
}

.usage-tag--cached {
  background: rgba(110, 231, 183, 0.18);
  color: #0a6b4e;
  border: 1px solid rgba(110, 231, 183, 0.3);
}

.usage-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: rgba(15, 39, 64, 0.5);
}

.usage-loading,
.usage-error {
  padding: 2rem 1rem;
  text-align: center;
  color: rgba(15, 39, 64, 0.6);
  font-size: 0.85rem;
}

.usage-error {
  color: #c0392b;
}

/* 手机窄屏 */
@media (max-width: 640px) {
  .usage-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .usage-cell--req {
    max-width: 10rem;
  }
}
