/* ============================================================
   模型测试台 · 样式 v2
   暗色主题 / 左侧配置 + 右侧测试 / 底部输出 + 记录
   ============================================================ */

:root {
  --bg:        #0b0f14;
  --bg-2:      #121821;
  --bg-3:      #18202b;
  --bg-4:      #1f2835;
  --line:      #222b38;
  --line-2:    #2c3746;
  --fg:        #e8eef5;
  --fg-2:      #97a5b5;
  --fg-3:      #64748b;
  --blue:      #3b82f6;
  --blue-2:    #2563eb;
  --cyan:      #22d3ee;
  --green:     #34d399;
  --amber:     #fbbf24;
  --red:       #f87171;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 18px 50px rgba(0, 0, 0, .45);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

body {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(59, 130, 246, .10), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(34, 211, 238, .07), transparent 55%),
    var(--bg);
  color: var(--fg);
  font: 14px/1.6 var(--sans);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }
.muted  { color: var(--fg-2); }
.small  { font-size: 12px; }
.nowrap { white-space: nowrap; }

/* 滚动条 */
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: #3b4757; background-clip: content-box; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* ---------------- 登录 ---------------- */

.login-wrap {
  position: fixed;
  inset: 0;
  background: rgba(5, 9, 14, .9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
}

.login-card {
  width: 352px;
  padding: 34px 30px 26px;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line-2);
  border-radius: 18px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  text-align: center;
  animation: rise .35s cubic-bezier(.2, .8, .3, 1);
}

@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

.login-logo {
  font-size: 42px;
  line-height: 1;
  filter: drop-shadow(0 6px 18px rgba(59, 130, 246, .45));
}
.login-card h1 { margin: 14px 0 5px; font-size: 21px; letter-spacing: .5px; }
.login-card p { margin: 0 0 20px; font-size: 13px; }
.login-card input { margin-bottom: 12px; }
.login-card .btn { padding: 9px 14px; }

.login-err { min-height: 18px; margin-top: 10px; font-size: 12.5px; color: var(--red); }
.login-tip { margin-top: 16px; font-size: 11.5px; line-height: 1.6; }

/* ---------------- 顶栏 ---------------- */

.topbar {
  flex: 0 0 auto;
  height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(18, 24, 33, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand .logo { font-size: 20px; filter: drop-shadow(0 3px 10px rgba(34, 211, 238, .35)); }
.brand-text { display: flex; align-items: baseline; gap: 8px; }
.brand-title { font-weight: 600; font-size: 15px; letter-spacing: .3px; }
.brand-ver {
  font: 11px/1 var(--mono);
  color: var(--cyan);
  background: rgba(34, 211, 238, .10);
  border: 1px solid rgba(34, 211, 238, .26);
  border-radius: 5px;
  padding: 3px 6px;
  cursor: help;
  transition: background .15s;
}
.brand-ver:hover { background: rgba(34, 211, 238, .18); }

.top-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

/* ---------------- 布局 ---------------- */

.split {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 336px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  min-height: 0;
}

.panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .02) inset;
}
.panel.left.collapsed { display: none; }
.panel.right { min-width: 0; }

.panel-head {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent);
}
.panel-head h2 { margin: 0; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.pn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 21px; height: 21px;
  border-radius: 6px;
  background: rgba(59, 130, 246, .16);
  color: #7dabff;
  font-size: 12px;
}
.pt { font-weight: 600; }
.head-actions { display: flex; align-items: center; gap: 8px; }

.panel-body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---------------- 表单 ---------------- */

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lbl { font-size: 11.5px; color: var(--fg-2); letter-spacing: .3px; }

input[type=text], input[type=password], input[type=number], select, textarea {
  width: 100%;
  padding: 8px 11px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font: 13px/1.5 var(--sans);
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input::placeholder, textarea::placeholder { color: #4b596b; }
input:hover, select:hover, textarea:hover { border-color: #38455a; }
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .16);
  background: #0d131b;
}
input:disabled { opacity: .5; cursor: not-allowed; }
textarea { resize: vertical; min-height: 64px; }
select { cursor: pointer; }

.input-wrap { position: relative; }
.input-wrap input { padding-right: 38px; }
.eye {
  position: absolute; right: 5px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border: 0; background: transparent;
  color: var(--fg-3);
  border-radius: 6px;
  cursor: pointer; font-size: 13px;
  transition: background .15s, color .15s;
}
.eye:hover { background: var(--bg-3); color: var(--fg); }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg-2); cursor: pointer; user-select: none; }
.chk input { width: auto; margin: 0; accent-color: var(--blue); cursor: pointer; }
.chk.mini { font-size: 11px; }
.chk:hover { color: var(--fg); }

/* ---------------- 按钮 ---------------- */

.btn {
  position: relative;
  padding: 7px 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  color: var(--fg);
  font: 13px/1.4 var(--sans);
  cursor: pointer;
  white-space: nowrap;
  transition: filter .15s, border-color .15s, background .15s, transform .06s;
}
.btn:hover:not(:disabled) { filter: brightness(1.22); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-primary { background: linear-gradient(135deg, var(--blue), var(--blue-2)); border-color: transparent; color: #fff; font-weight: 500; }
.btn-accent  { background: linear-gradient(135deg, #0ea5e9, var(--cyan)); border-color: transparent; color: #03212b; font-weight: 600; }
.btn-ghost   { background: transparent; color: var(--fg-2); }
.btn-ghost:hover:not(:disabled) { color: var(--fg); border-color: #3a4759; background: rgba(255, 255, 255, .03); }
.btn-danger  { background: rgba(248, 113, 113, .14); border-color: rgba(248, 113, 113, .42); color: #fca5a5; }

.btn-sm { padding: 4px 9px; font-size: 11.5px; }
.block { width: 100%; }
.push-right { margin-left: auto; }

.btn.loading { color: transparent !important; pointer-events: none; }
.btn.loading::after {
  content: "";
  position: absolute; inset: 0; margin: auto;
  width: 13px; height: 13px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------------- 状态 ---------------- */

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge.idle { background: var(--bg-3); color: var(--fg-3); border-color: var(--line-2); }
.badge.busy { background: rgba(59, 130, 246, .15); color: #8bb6ff; border-color: rgba(59, 130, 246, .32); }
.badge.ok   { background: rgba(52, 211, 153, .13); color: var(--green); border-color: rgba(52, 211, 153, .32); }
.badge.err  { background: rgba(248, 113, 113, .13); color: #fca5a5; border-color: rgba(248, 113, 113, .32); }

.status-line {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--fg-2);
  padding: 9px 11px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  word-break: break-all;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fg-3); flex: 0 0 auto; }
.status-line.busy .dot { background: var(--blue); animation: pulse 1s infinite; }
.status-line.ok   .dot { background: var(--green); box-shadow: 0 0 0 3px rgba(52, 211, 153, .14); }
.status-line.err  .dot { background: var(--red); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.tips {
  font-size: 11.5px; color: var(--fg-2); line-height: 1.95;
  padding: 10px 12px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .012);
}
.tips b { color: var(--fg); font-weight: 600; }
kbd {
  font: 11px var(--mono);
  background: var(--bg-3); border: 1px solid var(--line-2); border-bottom-width: 2px;
  border-radius: 4px; padding: 1px 5px; color: var(--fg);
}

/* ---------------- Hermes ---------------- */

.hermes { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 10px; background: var(--bg); }
.hermes-head { display: flex; flex-direction: column; gap: 1px; margin-bottom: 7px; }
.hermes-row { display: flex; gap: 6px; }
.hermes-row input { flex: 1 1 auto; min-width: 0; }
.hermes-list { margin-top: 8px; display: flex; flex-direction: column; gap: 5px; max-height: 150px; overflow: auto; }

/* 整张卡片即可点击导入（本身是 <button>） */
.h-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1px 8px;
  width: 100%;
  text-align: left;
  padding: 5px 9px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--fg);
  font: 12px/1.45 var(--sans);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.h-item:hover { border-color: rgba(59, 130, 246, .55); background: var(--bg-3); }
.h-item:hover .h-go { color: #7dabff; }
.h-item:active { transform: translateY(1px); }
.h-item .h-name { font-weight: 600; white-space: nowrap; }
.h-item .h-url {
  font: 10.5px var(--mono);
  color: var(--fg-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  min-width: 0;
}
.h-item .h-meta { grid-column: 1 / 3; font-size: 10.5px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-item .h-go { grid-row: 1 / 3; grid-column: 3; font-size: 11px; color: var(--fg-3); white-space: nowrap; transition: color .15s; }
.h-item .h-warn { grid-column: 1 / -1; color: var(--amber); font-size: 10.5px; }
.h-tag {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .3px;
  line-height: 1.5;
  border: 1px solid transparent;
  vertical-align: 1px;
}
.tag-hermes   { background: rgba(59, 130, 246, .15);  color: #7dabff; border-color: rgba(59, 130, 246, .3); }
.tag-openclaw { background: rgba(34, 211, 238, .13);  color: var(--cyan);  border-color: rgba(34, 211, 238, .3); }
.tag-claude   { background: rgba(251, 146, 60, .15);  color: #fb923c;      border-color: rgba(251, 146, 60, .32); }
.tag-env      { background: rgba(148, 163, 184, .14); color: #9aa7b4;      border-color: rgba(148, 163, 184, .3); }

/* ---------------- 模型区 ---------------- */

.models-section { display: flex; flex-direction: column; gap: 10px; }
.models-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.models-head h3 { margin: 0; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.m-src {
  font-size: 10.5px; font-weight: 400;
  color: var(--cyan);
  background: rgba(34, 211, 238, .10);
  border: 1px solid rgba(34, 211, 238, .25);
  border-radius: 4px;
  padding: 1px 6px;
  white-space: nowrap;
}
.count {
  display: inline-block; min-width: 19px; padding: 1px 6px;
  border-radius: 999px; background: var(--bg-3); color: var(--fg-2);
  font-size: 11px; text-align: center;
}

.model-search { position: relative; }
.model-search input { padding-left: 30px; }
.model-search::before {
  content: "⌕";
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--fg-3); font-size: 15px; pointer-events: none;
}

.w-90 { width: 92px; }

/* 批量测试操作条 */
.test-bar { align-items: flex-end; }
.test-hint { margin-left: auto; align-self: flex-end; padding-bottom: 8px; }
.models-head-right { display: flex; align-items: center; gap: 10px; }
.models-head-right .model-search { width: 250px; }

.models-list {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  max-height: 210px; overflow: auto;
}
.models-list .empty { padding: 22px; text-align: center; color: var(--fg-3); font-size: 12px; }

.m-item {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 11px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  cursor: pointer;
  transition: background .12s;
}
.m-item:last-child { border-bottom: 0; }
.m-item:hover { background: var(--bg-3); }
.m-item.active { background: rgba(59, 130, 246, .13); box-shadow: inset 2px 0 0 var(--blue); }
.m-item input { width: auto; margin: 0; accent-color: var(--blue); cursor: pointer; flex: 0 0 auto; }
.m-item.checked { background: rgba(59, 130, 246, .10); box-shadow: inset 2px 0 0 rgba(59, 130, 246, .55); }
.m-item.checked .m-id { color: #9cc3ff; }
#selAllWrap { flex: 0 0 auto; white-space: nowrap; }
.m-item .m-id { flex: 1 1 auto; font-family: var(--mono); font-size: 11.5px; word-break: break-all; }
.m-item .m-owner { color: var(--fg-3); font-size: 11px; flex: 0 0 auto; }

.progress { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--fg-2); }
.progress .bar {
  flex: 1 1 auto; height: 5px;
  border-radius: 999px; background: var(--bg-3); overflow: hidden; position: relative;
}
.progress .bar::after {
  content: ""; position: absolute; inset: 0 auto 0 0;
  width: var(--p, 0%);
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transition: width .2s ease;
}

/* ---------------- 输出 / 记录 ---------------- */

.meta-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 12px; color: var(--fg-2);
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.meta-item b { color: var(--fg); font-weight: 600; font-family: var(--mono); }
.meta-item.url { flex: 1 1 100%; color: var(--fg-3); font-family: var(--mono); font-size: 11px; word-break: break-all; }

.bottom-split {
  flex: 1 1 auto; min-height: 210px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}

.log-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  display: flex; flex-direction: column;
  min-height: 0; overflow: hidden;
}

/* 成功 / 失败 分栏 */
.ok-sec { border-color: rgba(52, 211, 153, .24); }
.fail-sec { border-color: rgba(248, 113, 113, .24); }
.ok-sec .log-head { background: rgba(52, 211, 153, .07); border-bottom-color: rgba(52, 211, 153, .22); }
.fail-sec .log-head { background: rgba(248, 113, 113, .07); border-bottom-color: rgba(248, 113, 113, .22); }
.ok-sec .count { background: rgba(52, 211, 153, .14); color: var(--green); }
.fail-sec .count { background: rgba(248, 113, 113, .14); color: #fca5a5; }
.dot-ok, .dot-err { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.dot-ok  { background: var(--green); box-shadow: 0 0 0 3px rgba(52, 211, 153, .13); }
.dot-err { background: var(--red);   box-shadow: 0 0 0 3px rgba(248, 113, 113, .13); }

.log-head {
  flex: 0 0 auto; height: 36px; padding: 0 10px 0 12px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.sec-title { margin: 0; font-size: 12px; font-weight: 600; flex: 1 1 auto; display: flex; align-items: center; gap: 7px; }

.log-wrap { flex: 1 1 auto; overflow: auto; }
table.log { width: 100%; border-collapse: collapse; font-size: 11.5px; }
table.log th {
  position: sticky; top: 0; z-index: 1;
  background: var(--bg-3);
  text-align: left; font-weight: 500; color: var(--fg-2);
  padding: 7px 9px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.log td { padding: 6px 9px; border-bottom: 1px solid rgba(34, 43, 56, .6); vertical-align: top; word-break: break-word; }
table.log tbody tr:hover td { background: rgba(255, 255, 255, .018); }
table.log tr.empty-row td { text-align: center; color: var(--fg-3); padding: 20px; }
.lg-ok  { color: var(--green); }
.lg-err { color: #fca5a5; }
.lg-mut { color: var(--fg-3); }

/* 耗时快慢：绿(快) → 黄(中) → 橙(慢)
   红色专留给「失败」状态 —— 慢 ≠ 错，避免正常模型看着像报错 */
.spd-fast { color: var(--green); }
.spd-mid  { color: var(--amber); }
.spd-slow { color: #fb923c; }
.spd-none { color: var(--fg-3); }

/* ---------------- 弹窗 ---------------- */

.modal-mask {
  position: fixed; inset: 0;
  background: rgba(5, 9, 14, .78);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 80; padding: 24px;
  animation: fade .18s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal {
  width: min(1000px, 100%); max-height: 86vh;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: rise .25s cubic-bezier(.2, .8, .3, 1);
}

.modal-head {
  flex: 0 0 auto; padding: 14px 18px;
  display: flex; align-items: center; gap: 14px;
  border-bottom: 1px solid var(--line);
}
.modal-head h3 { margin: 0; font-size: 14px; }
.modal-actions { margin-left: auto; display: flex; gap: 8px; }

.oc-tabs { display: flex; gap: 3px; background: var(--bg); padding: 3px; border-radius: 9px; border: 1px solid var(--line); }
.oc-tab {
  padding: 5px 13px; border: 0; border-radius: 6px;
  background: transparent; color: var(--fg-2);
  font: 12px var(--sans); cursor: pointer;
  transition: background .15s, color .15s;
}
.oc-tab:hover { color: var(--fg); }
.oc-tab.active { background: var(--bg-4); color: var(--fg); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }

.modal-sub {
  flex: 0 0 auto; padding: 9px 18px;
  font-size: 11.5px; color: var(--fg-3);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  word-break: break-all;
}
.modal-body { flex: 1 1 auto; overflow: auto; padding: 14px 18px 18px; }
.oc-table td { font-family: var(--mono); font-size: 11px; }
.oc-list .oc-key { color: var(--fg-3); }
.oc-empty { padding: 24px; text-align: center; color: var(--fg-3); font-size: 12px; }

/* ---------------- Toast ---------------- */

.toast-wrap {
  position: fixed; top: 66px; right: 16px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 100; pointer-events: none;
}
.toast {
  min-width: 210px; max-width: 380px;
  padding: 10px 13px;
  border-radius: 10px;
  background: var(--bg-4);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--blue);
  box-shadow: var(--shadow);
  font-size: 12.5px; color: var(--fg);
  animation: toastIn .22s cubic-bezier(.2, .8, .3, 1);
  word-break: break-word;
}
.toast.ok  { border-left-color: var(--green); }
.toast.err { border-left-color: var(--red); }
.toast.warn{ border-left-color: var(--amber); }
.toast.out { animation: toastOut .22s ease forwards; }
@keyframes toastIn  { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(18px); } }

/* ---------------- 页脚 ---------------- */

.foot {
  flex: 0 0 auto;
  padding: 7px 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;   /* 左版本 / 中版权 / 右留白 */
  align-items: center;
  gap: 10px;
  font-size: 11px; color: var(--fg-3);
  border-top: 1px solid var(--line);
  background: rgba(18, 24, 33, .6);
}
.foot .foot-copy {
  justify-self: center;
  color: var(--fg-2);
  letter-spacing: .3px;
  white-space: nowrap;
}
.foot .foot-right { justify-self: end; }
#footVer { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------- 响应式 ---------------- */

@media (max-width: 1180px) {
  .models-head-right .model-search { width: 180px; }
  .test-hint { display: none; }
}

@media (max-width: 960px) {
  body { overflow: auto; }
  .split { grid-template-columns: 1fr; }
  .bottom-split { grid-template-columns: 1fr; min-height: 420px; }
  .panel { max-height: none; }
  .topbar { flex-wrap: wrap; height: auto; padding: 8px 12px; }
  .brand .muted { display: none; }
  .toast-wrap { top: auto; bottom: 16px; right: 12px; left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
