:root {
  --bg: #f4f6fa;
  --card: #ffffff;
  --border: #e4e8f0;
  --border-strong: #d0d7e4;
  --text: #16202e;
  --text-2: #55617a;
  --text-3: #8b95a8;
  --brand: #1d6fe8;
  --brand-dark: #14539f;
  --brand-soft: #eaf2fe;
  --ok: #0f9b6c;
  --ok-soft: #e6f7f0;
  --warn: #c2760a;
  --warn-soft: #fdf3e2;
  --danger: #d64545;
  --danger-soft: #fdecec;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(22,32,46,.04), 0 8px 24px rgba(22,32,46,.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.hidden { display: none !important; }

/* ---------------- 品牌 ---------------- */
.brand-mark { display: flex; align-items: center; gap: 9px; margin-bottom: 28px; }
.brand-dot {
  width: 22px; height: 22px; border-radius: 7px;
  background: var(--brand);
  position: relative;
  flex: 0 0 auto;
}
.brand-dot::after {
  content: ""; position: absolute; inset: 6px;
  border: 2px solid #fff; border-radius: 50%;
  border-top-color: transparent;
  transform: rotate(35deg);
}
.brand-name { font-weight: 500; letter-spacing: .2px; font-size: 15px; }
.brand-mark.small { margin-bottom: 24px; padding: 0 4px; }
.brand-mark.small .brand-dot { width: 18px; height: 18px; border-radius: 6px; }
.brand-mark.small .brand-dot::after { inset: 5px; }

/* ---------------- 登录页 ---------------- */
body.on-auth { background: #0d1b34; }
.auth-wrap {
  position: relative;
  display: flex;
  min-height: 100vh;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(1200px 820px at 16% 10%, #1c3b6e 0%, transparent 56%),
    radial-gradient(980px 720px at 88% 92%, #152d56 0%, transparent 55%),
    linear-gradient(135deg, #0d1b34 0%, #13264a 50%, #0b182f 100%);
}

.auth-bg { position: absolute; inset: 0; pointer-events: none; }
.auth-orb { position: absolute; border-radius: 50%; filter: blur(96px); }
.auth-orb-1 { width: 480px; height: 480px; left: -130px; top: -150px; background: #2f83ff; opacity: .32; }
.auth-orb-2 { width: 400px; height: 400px; right: -110px; bottom: -130px; background: #1d6fe8; opacity: .26; }
.auth-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse at 28% 38%, #000 0%, transparent 74%);
  mask-image: radial-gradient(ellipse at 28% 38%, #000 0%, transparent 74%);
}

.auth-side {
  position: relative;
  flex: 1 1 52%;
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  z-index: 1;
}
.auth-brand { display: flex; align-items: center; gap: 14px; }
.auth-brand .brand-dot {
  width: 28px; height: 28px; border-radius: 9px;
  background: linear-gradient(135deg, #3d8bff, #1d6fe8);
  box-shadow: 0 6px 20px rgba(47,131,255,.42);
}
.auth-brand .brand-dot::after { inset: 7px; }
.auth-date { display: flex; flex-direction: column; line-height: 1.3; }
.auth-date-main { font-size: 16px; font-weight: 600; letter-spacing: .4px; color: #fff; }
.auth-date-sub { font-size: 12px; color: #9fb0cc; letter-spacing: .5px; }

.auth-side h1 {
  font-size: 34px;
  line-height: 1.4;
  font-weight: 600;
  margin: 58px 0 16px;
  letter-spacing: .5px;
}
.auth-lead {
  margin: 0 0 42px;
  font-size: 15px;
  color: #b7c2d8;
  max-width: 430px;
  line-height: 1.7;
}

.auth-points { list-style: none; padding: 0; margin: 0; }
.auth-points li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 16px;
  color: #b9c3d6;
  font-size: 14px;
}
.auth-points li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 8px; height: 8px; border-radius: 3px;
  background: linear-gradient(135deg, #3d8bff, #6ea8ff);
  box-shadow: 0 0 0 4px rgba(61,139,255,.16);
}
.auth-points b { color: #fff; font-weight: 600; margin-right: 10px; }

.auth-foot {
  margin-top: auto;
  padding-top: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: #8b9ab5;
}
.auth-foot-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #3ad29b;
  animation: auth-pulse 2.4s ease-out infinite;
}
@keyframes auth-pulse {
  0% { box-shadow: 0 0 0 0 rgba(58,210,155,.45); }
  70% { box-shadow: 0 0 0 9px rgba(58,210,155,0); }
  100% { box-shadow: 0 0 0 0 rgba(58,210,155,0); }
}

.auth-main {
  position: relative;
  flex: 1 1 48%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  z-index: 1;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px;
  box-shadow: 0 26px 64px rgba(4,10,24,.5), 0 2px 8px rgba(4,10,24,.28);
  padding: 34px 32px;
  animation: auth-rise .5s ease both;
}
.auth-card-head { margin-bottom: 26px; }
.auth-card-head h2 { margin: 0 0 8px; font-size: 22px; font-weight: 600; color: var(--text); letter-spacing: .3px; }
.auth-card-head p { margin: 0; font-size: 13px; color: var(--text-3); }

.auth-side h1, .auth-lead, .auth-points { animation: auth-rise .55s ease both; }
.auth-lead { animation-delay: .06s; }
.auth-points { animation-delay: .12s; }
.auth-foot { animation: auth-rise .6s ease both; animation-delay: .18s; }
@keyframes auth-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .auth-card, .auth-side h1, .auth-lead, .auth-points, .auth-foot { animation: none; }
  .auth-foot-dot { animation: none; }
}

/* 登录表单专属输入框（带图标） */
.form .field-label { display: block; margin-bottom: 16px; font-size: 13px; color: var(--text-2); }
.form .input-wrap { position: relative; display: block; margin-top: 8px; }
.form .input-ico {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); pointer-events: none;
}
.form .input-wrap input {
  padding: 12px 14px 12px 42px;
  border-radius: 11px;
}
.form .input-wrap input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(29,111,232,.14);
}
.auth-card .btn-block {
  margin-top: 8px;
  padding: 12px;
  font-size: 15px;
  border-radius: 11px;
  background: linear-gradient(135deg, #2f83ff, #1d6fe8);
  box-shadow: 0 8px 20px rgba(29,111,232,.35);
}
.auth-card .btn-block:hover:not(:disabled) {
  background: linear-gradient(135deg, #1d6fe8, #14539f);
}

/* ---------------- 表单 ---------------- */
.form label {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-2);
}
.form input, .form select, .form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29,111,232,.12);
}
.form-hint {
  font-size: 12.5px;
  color: var(--text-3);
  text-align: center;
  margin: 14px 0 0;
}
.form-hint .link { color: var(--brand); cursor: pointer; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, opacity .15s;
  white-space: nowrap;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--text-2); border-color: var(--border-strong); }
.btn-ghost:hover:not(:disabled) { border-color: var(--text-3); color: var(--text); }
.btn-danger-ghost { background: #fff; color: var(--danger); border-color: #f0c9c9; }
.btn-danger-ghost:hover:not(:disabled) { background: var(--danger-soft); }
.btn-block { width: 100%; margin-top: 6px; padding: 11px; font-size: 14.5px; }
.btn-sm { padding: 5px 11px; font-size: 12.5px; border-radius: 7px; }

.icon-btn {
  border: 0; background: transparent; font-size: 22px; line-height: 1;
  color: var(--text-3); cursor: pointer; padding: 0 4px;
}
.icon-btn:hover { color: var(--text); }

/* ---------------- 主框架 ---------------- */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 220px;
  flex: 0 0 220px;
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--text-2);
  font-size: 13.5px;
  cursor: pointer;
  user-select: none;
}
.nav-item:hover { background: #f5f7fb; color: var(--text); text-decoration: none; }
.nav-item.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 500; }
.ni {
  width: 20px; height: 20px; border-radius: 6px;
  background: #eef1f6; color: var(--text-3);
  font-size: 11px; display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.nav-item.active .ni { background: var(--brand); color: #fff; }

.sidebar-foot { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border); }
.who { font-size: 12.5px; color: var(--text-2); margin-bottom: 10px; word-break: break-all; }
.who b { display: block; color: var(--text); font-weight: 500; }

.content { flex: 1 1 auto; padding: 28px 34px 60px; max-width: 1180px; }

/* ---------------- 通用元素 ---------------- */
.page-head { margin-bottom: 22px; }
.page-head h2 { font-size: 20px; font-weight: 500; margin: 0 0 6px; }
.page-head p { margin: 0; color: var(--text-2); font-size: 13.5px; }
.page-head .row-between { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 20px 22px; }
.card + .card { margin-top: 18px; }
.card-title {
  font-size: 14px; font-weight: 500; margin: 0 0 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.card-title .sub { font-weight: 400; font-size: 12.5px; color: var(--text-3); }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.stat { padding: 18px 20px; }
.stat .k { font-size: 12.5px; color: var(--text-2); margin-bottom: 8px; }
.stat .v { font-size: 26px; font-weight: 500; letter-spacing: -.3px; line-height: 1.2; }
.stat .s { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.stat .v small { font-size: 13px; color: var(--text-3); font-weight: 400; margin-left: 4px; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--text-3); font-weight: 400; font-size: 12.5px; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbfd; }
td.mono, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }

.tag {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  font-size: 11.5px; line-height: 18px;
}
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.tag-off { background: #f0f2f6; color: var(--text-3); }
.tag-warn { background: var(--warn-soft); color: var(--warn); }

.key-cell { display: flex; align-items: center; gap: 8px; }
.key-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; color: var(--text);
  background: #f6f8fc; border: 1px solid var(--border);
  padding: 3px 8px; border-radius: 6px;
  max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.actions { display: flex; gap: 6px; flex-wrap: wrap; }

.empty {
  text-align: center; padding: 44px 20px; color: var(--text-3); font-size: 13px;
}
.empty b { display: block; color: var(--text-2); font-weight: 500; margin-bottom: 4px; font-size: 14px; }

.bar-wrap { display: flex; align-items: flex-end; gap: 4px; height: 120px; margin-top: 8px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar {
  width: 100%; max-width: 26px; background: var(--brand);
  border-radius: 3px 3px 0 0; min-height: 2px;
  transition: opacity .15s;
}
.bar.err { background: var(--danger); }
.bar:hover { opacity: .8; }
.bar-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); margin-top: 6px; }

.progress { height: 6px; background: #eef1f6; border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.progress.warn > i { background: var(--warn); }
.progress.danger > i { background: var(--danger); }

.doc { font-size: 13.5px; line-height: 1.85; color: var(--text-2); }
.doc h3 { font-size: 15px; color: var(--text); font-weight: 500; margin: 26px 0 10px; }
.doc h3:first-child { margin-top: 0; }
.doc p { margin: 0 0 12px; }
.doc ol, .doc ul { padding-left: 20px; margin: 0 0 14px; }
.doc li { margin-bottom: 6px; }
.doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; background: #f4f6fb; border: 1px solid var(--border);
  padding: 1px 5px; border-radius: 5px; color: #b03a5b;
}
pre {
  background: #12192a; color: #d8e0f0;
  padding: 16px 18px; border-radius: 10px;
  overflow-x: auto; font-size: 12.5px; line-height: 1.75;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  margin: 0 0 16px;
}
pre .cm { color: #6b7a95; }
pre .hl { color: #7fd1a8; }

.notice {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--warn-soft); border: 1px solid #f2ddb6;
  color: #7d4f08; border-radius: 10px; padding: 12px 14px; font-size: 13px; margin-bottom: 16px;
}
.notice.blue { background: var(--brand-soft); border-color: #cfe0fb; color: #144a92; }

/* ---------------- 弹窗 / Toast ---------------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(18,25,42,.42);
  display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50;
}
.modal {
  width: 100%; max-width: 460px; background: #fff; border-radius: 14px;
  box-shadow: 0 20px 60px rgba(18,25,42,.24); overflow: hidden;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.modal-head h3 { margin: 0; font-size: 15px; font-weight: 500; }
.modal-body { padding: 20px; }
.modal-foot {
  padding: 14px 20px; border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 10px; background: #fbfcfe;
}

.toast {
  position: fixed; top: 24px; left: 50%; transform: translate(-50%, -16px);
  background: #16202e; color: #fff; padding: 10px 18px; border-radius: 9px;
  font-size: 13.5px; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 60; max-width: 80vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #a83232; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .auth-side { display: none; }
  .auth-main { flex: 1 1 100%; padding: 32px 20px; }
  .layout { flex-direction: column; }
  .sidebar {
    width: 100%; flex: none; height: auto; position: static;
    border-right: 0; border-bottom: 1px solid var(--border); padding: 14px;
  }
  .nav { flex-direction: row; overflow-x: auto; gap: 6px; }
  .nav-item { white-space: nowrap; }
  .sidebar-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; }
  .who { margin-bottom: 0; }
  .content { padding: 18px 16px 50px; }
  .grid-4 { grid-template-columns: 1fr; }
  th:nth-child(4), td:nth-child(4) { display: none; }
}

/* ---------------- 分功能额度弹窗 ---------------- */
.modal.wide { max-width: 980px; }
.modal.wide .modal-body { max-height: 66vh; overflow: auto; padding: 16px 20px; }

.q-table { width: 100%; border-collapse: collapse; }
.q-table th { font-size: 12px; color: var(--text-3); font-weight: 500; text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.q-table td { padding: 7px 8px; border-bottom: 1px solid #f1f3f6; font-size: 13px; vertical-align: middle; }
.q-cell { display: flex; align-items: center; gap: 6px; }
.q-fields { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.q-field { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-3); white-space: nowrap; }
.q-in { width: 74px; padding: 4px 6px; border: 1px solid var(--border); border-radius: 7px; font-size: 12.5px; font-family: inherit; color: var(--text); background: #fff; }
.q-in:focus { outline: none; border-color: #4c7cf3; box-shadow: 0 0 0 3px rgba(76,124,243,.12); }
.q-in-qps { width: 56px; }
.q-used { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.q-sw input { width: 14px; height: 14px; cursor: pointer; }
.q-na { color: var(--text-3); font-size: 12.5px; }
.quota-legend { font-size: 12.5px; color: var(--text-3); line-height: 1.85; margin: 0 0 12px; }

.q-days { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.q-days .q-in { width: 56px; }
.q-dates { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.q-date {
  border: 1px solid var(--border); border-radius: 7px; padding: 3px 5px;
  font-size: 12px; font-family: inherit; color: var(--text-2); background: #fff;
}
.q-date:focus { outline: none; border-color: #4c7cf3; box-shadow: 0 0 0 3px rgba(76,124,243,.12); }
.q-dash { color: var(--text-3); font-size: 12px; }
.q-tools { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.q-tools-tip { font-size: 12px; color: var(--text-3); }

/* ---------------- 密钥卡片（一 KEY 一卡，一接口一行） ---------------- */
.keycard { margin-bottom: 16px; overflow: hidden; }
.keycard + .keycard { margin-top: 0; }

.kc-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 18px 12px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fbfcfe, #fff);
}
.kc-id { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kc-name { font-size: 15px; font-weight: 500; color: var(--text); }
.kc-owner { font-size: 12px; color: var(--text-3); }
.kc-meta { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kc-meta b { color: var(--text-2); font-weight: 500; }
.kc-dot { color: var(--border-strong); }
.kc-head .actions { margin-left: auto; }
.kc-progress { padding: 0 18px; }
.kc-progress .progress { height: 3px; border-radius: 999px; background: #eef1f6; }

.kc-table-wrap { overflow-x: auto; padding: 4px 10px 12px; }
.kc-table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 900px; }
.kc-table th {
  font-size: 11.5px; color: var(--text-3); font-weight: 400;
  padding: 8px 8px 6px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.kc-table td { padding: 9px 8px; border-bottom: 1px solid #f4f6f9; vertical-align: middle; }
.kc-table tbody tr:last-child td { border-bottom: 0; }
.kc-table tbody tr:hover { background: #fafbfd; }
.kc-table .kc-time { color: var(--text-3); font-size: 11.5px; white-space: nowrap; }
.kc-table .progress { height: 5px; }
.kc-used { font-size: 11px; color: var(--text-3); margin-top: 3px; white-space: nowrap; }
.kc-other td { background: #fbfcfe; color: var(--text-3); }
.kc-tip { text-align: center; color: var(--text-3); font-size: 12.5px; padding: 10px 0; }

.ak-link {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px; color: var(--brand); cursor: pointer;
  border-bottom: 1px dashed currentColor; padding-bottom: 1px;
  text-decoration: none !important;
}
.ak-link:hover { color: var(--brand-dark); }

.tag-js { background: #f3edfd; color: #7a4ddb; }
.tag-srv { background: #eef3fb; color: #4a6fa5; }

@media (max-width: 1080px) {
  .kc-head .actions { margin-left: 0; }
}

@media (max-width: 820px) {
  .kc-head { gap: 8px; }
  .kc-meta { font-size: 12px; }
  .kc-table { min-width: 780px; }
}

/* ---------------- 分接口用量趋势图表 ---------------- */
.uc-filters {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px; margin: 12px 0 6px;
}
.uc-sel {
  height: 34px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 8px;
  background: #fff; color: var(--text-1); font-size: 13px;
  max-width: 280px;
}
.uc-tabs {
  display: inline-flex; border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
}
.uc-tabs button {
  border: none; background: #fff; padding: 7px 16px;
  font-size: 13px; color: var(--text-2); cursor: pointer;
}
.uc-tabs button + button { border-left: 1px solid var(--border); }
.uc-tabs button.on { background: var(--primary, #2f6bff); color: #fff; font-weight: 600; }
.uc-chart { margin-top: 6px; }
