:root {
  --bg: #f4f5f8;
  --panel: #ffffff;
  --panel-2: #fafbfd;
  --border: #e6e8ef;
  --border-strong: #d5d8e2;
  --text: #16181d;
  --text-2: #475061;
  --muted: #7d8494;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: #eef0ff;
  --green: #15803d;
  --green-soft: #e8f7ee;
  --red: #dc2626;
  --red-soft: #fdeced;
  --amber: #b45309;
  --amber-soft: #fef4e6;
  --blue: #2563eb;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow: 0 4px 16px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 18px 48px rgba(16, 24, 40, 0.14);
  --radius: 12px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: var(--primary); text-decoration: none; }

/* ============================ 登录页 ============================ */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(900px 500px at 12% -8%, #e6e9ff 0%, transparent 60%),
    radial-gradient(800px 500px at 92% 108%, #e2f2ff 0%, transparent 62%),
    var(--bg);
  padding: 24px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px 32px 30px;
  box-shadow: var(--shadow-lg);
}
.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.auth-logo .mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, #6366f1, #4f46e5 55%, #7c3aed);
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 17px;
  box-shadow: 0 6px 16px rgba(79, 70, 229, .35);
}
.auth-logo h1 { font-size: 17px; font-weight: 650; letter-spacing: -.2px; }
.auth-logo p { font-size: 12px; color: var(--muted); }
.auth-card h2 { font-size: 21px; font-weight: 650; letter-spacing: -.3px; margin-bottom: 4px; }
.auth-card .sub { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.auth-card .req { color: #e0483c; font-weight: 600; }
/* 验证码行：输入框吃剩余宽度，按钮固定宽 */
.code-row { display: flex; gap: 8px; }
.code-row .input { flex: 1; min-width: 0; }
.code-row .btn { flex: 0 0 112px; padding: 0 8px; font-size: 13px; }
.code-row .btn:disabled { opacity: .6; cursor: not-allowed; }

/* ============================ 布局 ============================ */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 232px;
  flex: 0 0 232px;
  background: var(--panel);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 18px 12px 12px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; }
.brand .mark {
  width: 32px; height: 32px; border-radius: 9px; flex: 0 0 32px;
  background: linear-gradient(135deg, #6366f1, #4f46e5 55%, #7c3aed);
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, .3);
}
.brand .name { font-size: 14px; font-weight: 650; letter-spacing: -.1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand .ver { font-size: 10.5px; color: var(--muted); }

.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav-group { font-size: 10.5px; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; padding: 14px 10px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 9px;
  color: var(--text-2); font-size: 13.5px; font-weight: 500;
  cursor: pointer; border: none; background: none; width: 100%; text-align: left;
  transition: background .12s, color .12s;
}
.nav-item:hover { background: #f4f5fa; color: var(--text); }
.nav-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.nav-item svg { width: 16px; height: 16px; flex: 0 0 16px; opacity: .85; }

.side-foot { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 8px; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 9px; }
.user-chip .avatar {
  width: 28px; height: 28px; border-radius: 8px; flex: 0 0 28px;
  background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center; font-weight: 700; font-size: 12px;
}
.user-chip .info { min-width: 0; flex: 1; }
.user-chip .u { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip .q { font-size: 11px; color: var(--muted); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 60px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 20;
}
.topbar h2 { font-size: 16px; font-weight: 650; letter-spacing: -.2px; }
.topbar .desc { font-size: 12px; color: var(--muted); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

.content { padding: 24px 28px 60px; max-width: 1360px; width: 100%; }

/* ============================ 组件 ============================ */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.card-head h3 { font-size: 14px; font-weight: 650; }
.card-body { padding: 18px; }

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

.stat {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.stat .label { font-size: 12px; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.stat .value { font-size: 26px; font-weight: 680; letter-spacing: -.8px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat .foot { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.stat .accent { position: absolute; right: -18px; top: -18px; width: 78px; height: 78px; border-radius: 50%; opacity: .1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--border-strong); background: var(--panel); color: var(--text-2);
  font-size: 13px; font-weight: 550; cursor: pointer; white-space: nowrap;
  transition: all .12s;
}
.btn:hover { background: #f7f8fb; border-color: #c3c7d4; color: var(--text); }
.btn:active { transform: translateY(.5px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(79,70,229,.24); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn-danger { color: var(--red); border-color: #f3c9cb; background: #fff; }
.btn-danger:hover { background: var(--red-soft); color: var(--red); border-color: #eab0b3; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: #f2f3f7; }
.btn svg, .x-btn svg { width: 14px; height: 14px; flex: 0 0 14px; }
.x-btn svg { width: 15px; height: 15px; }
code {
  font-family: var(--mono); font-size: 12px; padding: 1.5px 5px;
  background: #eef0f6; border-radius: 5px; color: #3b4252;
}

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.input, .select, textarea.input {
  width: 100%; height: 36px; padding: 0 11px;
  border: 1px solid var(--border-strong); border-radius: 8px; background: #fff;
  outline: none; transition: border-color .12s, box-shadow .12s;
}
textarea.input { height: auto; padding: 9px 11px; resize: vertical; min-height: 80px; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; }
.input:focus, .select:focus, textarea.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237d8494' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px; }

.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }

/* 表格 */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted);
  letter-spacing: .02em; padding: 10px 14px; background: var(--panel-2);
  border-bottom: 1px solid var(--border); white-space: nowrap; position: sticky; top: 0;
}
tbody td { padding: 11px 14px; border-bottom: 1px solid #f0f1f5; vertical-align: middle; }
tbody tr:hover { background: #fafbfe; }
tbody tr:last-child td { border-bottom: none; }
td.mono, .mono { font-family: var(--mono); font-size: 12px; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
.t-actions { display: flex; gap: 6px; justify-content: flex-end; }

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  height: 21px; padding: 0 8px; border-radius: 6px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
  background: #f1f2f6; color: var(--text-2);
}
.tag-green { background: var(--green-soft); color: var(--green); }
.tag-red { background: var(--red-soft); color: var(--red); }
.tag-amber { background: var(--amber-soft); color: var(--amber); }
.tag-blue { background: #e8f0ff; color: var(--blue); }
.tag-purple { background: var(--primary-soft); color: var(--primary); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* 空态 & 加载 */
.empty { text-align: center; padding: 46px 20px; color: var(--muted); font-size: 13px; }
.empty .ico { font-size: 26px; opacity: .35; margin-bottom: 8px; }
.skeleton { background: linear-gradient(90deg, #f2f3f7 25%, #e9ebf1 37%, #f2f3f7 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: 6px; }
@keyframes sk { 0% { background-position: 100% 50% } 100% { background-position: 0 50% } }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(16, 22, 36, .45);
  backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 100; padding: 24px;
  animation: fade .14s ease;
}
@keyframes fade { from { opacity: 0 } }
.modal {
  background: var(--panel); border-radius: 16px; width: 100%; max-width: 620px;
  max-height: 88vh; display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
  animation: pop .16s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98) } }
.modal-lg { max-width: 780px; }
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { font-size: 15px; font-weight: 650; }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; background: var(--panel-2); border-radius: 0 0 16px 16px; }
.x-btn { border: none; background: none; cursor: pointer; color: var(--muted); font-size: 18px; line-height: 1; padding: 4px; border-radius: 6px; }
.x-btn:hover { background: #f2f3f7; color: var(--text); }

/* Toast */
#toast { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  padding: 10px 16px; border-radius: 10px; font-size: 13px; font-weight: 500;
  background: #1b1e27; color: #fff; box-shadow: var(--shadow-lg);
  animation: toastIn .18s ease; display: flex; align-items: center; gap: 8px;
}
.toast.ok { background: #0f7a3d; }
.toast.err { background: #c0392b; }
.toast.warn { background: #b26a00; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px) } }

/* 图表 */
.chart-wrap { position: relative; }
.chart-legend { display: flex; gap: 16px; font-size: 11.5px; color: var(--muted); }
.chart-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 5px; }

/* 代码块 */
.code-block {
  background: #0f1420; color: #d6deeb; border-radius: 10px;
  padding: 14px 16px; font-family: var(--mono); font-size: 12.5px; line-height: 1.7;
  overflow-x: auto; white-space: pre; position: relative;
}
.code-block .k { color: #7dd3fc; }
.code-block .s { color: #a5e0a0; }

/* 分页 */
.pager { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.pager .btns { display: flex; gap: 6px; }

/* 提示条 */
.banner {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 16px; border-radius: 10px; font-size: 12.5px; line-height: 1.6;
  background: #f7f8ff; border: 1px solid #e2e4fb; color: var(--text-2);
}
.banner strong { color: var(--text); }

/* 响应式 */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .app { flex-direction: column; }
  .sidebar { position: static; width: 100%; height: auto; flex: none; flex-direction: row; align-items: center; padding: 10px 12px; gap: 8px; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--border); }
  .brand { padding: 0 8px 0 0; }
  .brand .ver, .nav-group { display: none; }
  .nav { flex-direction: row; gap: 4px; overflow-x: auto; }
  .nav-item span { display: none; }
  .nav-item { padding: 9px; }
  .side-foot { display: none; }
  .content { padding: 16px 14px 40px; }
  .topbar { padding: 0 14px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .row { flex-direction: column; }
}

/* ============================ 模型广场 ============================ */
/* 模型卡片需要更宽的横向空间，切到该页时放宽内容区 */
.content:has(.mp-groups) { max-width: 1720px; padding-top: 14px; }

.mp-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.mp-filter {
  display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px;
  border-radius: 8px; border: 1px solid var(--border); background: var(--panel);
  color: var(--text-2); font-size: 12.5px; cursor: pointer; flex: none;
}
.mp-filter svg { width: 15px; height: 15px; }
.mp-filter:hover { border-color: var(--border-strong); }
.mp-filter.on { background: var(--primary-soft); border-color: #cfd0fb; color: var(--primary); }

.mp-tabs { display: flex; align-items: center; gap: 2px; background: #eef0f5; border-radius: 9px; padding: 3px; }
.mp-tab {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 11px;
  border: none; background: transparent; border-radius: 7px; font-size: 12.5px;
  color: var(--text-2); cursor: pointer; white-space: nowrap;
}
.mp-tab:hover { color: var(--text); }
.mp-tab.on { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1); }
.mp-tabn { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mp-tab.on .mp-tabn { color: var(--primary); }

.mp-search {
  position: relative; flex: 1 1 180px; max-width: 300px; display: flex; align-items: center;
  gap: 6px; height: 32px; padding: 0 10px; background: var(--panel);
  border: 1px solid var(--border); border-radius: 8px;
}
.mp-search svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.mp-search input { border: none; outline: none; background: transparent; flex: 1; font-size: 12.5px; min-width: 0; }

.mp-barr { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.mp-seg { display: flex; background: #eef0f5; border-radius: 8px; padding: 3px; gap: 2px; }
.mp-seg button {
  width: 28px; height: 24px; display: grid; place-items: center; border: none;
  background: transparent; border-radius: 6px; cursor: pointer; color: var(--muted);
}
.mp-seg button svg { width: 14px; height: 14px; }
.mp-seg button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1); }

/* 筛选面板 */
.mp-panel {
  display: none; flex-direction: column; gap: 10px; background: var(--panel);
  border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px;
}
.mp-panel.on { display: flex; }
.mp-prow { display: flex; align-items: flex-start; gap: 10px; }
.mp-plabel { font-size: 11.5px; color: var(--muted); padding-top: 5px; flex: 0 0 34px; }
.mp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mp-chip {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px;
  border-radius: 7px; border: 1px solid var(--border); background: var(--panel-2);
  font-size: 12px; color: var(--text-2); cursor: pointer;
}
.mp-chip:hover { border-color: var(--border-strong); }
.mp-chip.on { background: var(--primary-soft); border-color: #cfd0fb; color: var(--primary); font-weight: 600; }
.mp-cn { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mp-check { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); cursor: pointer; padding-top: 3px; }

/* 厂商分组 */
.mp-groups { display: flex; flex-direction: column; gap: 22px; }
.mp-ghead { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.mp-ghead h3 { font-size: 13.5px; font-weight: 650; letter-spacing: -0.1px; }
.mp-gcount { font-size: 11.5px; color: var(--muted); }

.mp-logo {
  width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center;
  background: var(--vc, #6b7280); color: #fff; font-size: 12px; font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); letter-spacing: 0;
}
.mp-logo.lg { width: 24px; height: 24px; border-radius: 7px; font-size: 11.5px; }
.mp-logo.sm { width: 18px; height: 18px; border-radius: 5px; font-size: 9.5px; }

/* 卡片网格 */
.mp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(284px, 1fr)); gap: 14px; }

.mp-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 15px 13px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s;
}
.mp-card:hover { box-shadow: 0 8px 24px rgba(16, 24, 40, 0.09); border-color: #d9dcf5; transform: translateY(-1px); }

.mp-ch { display: flex; gap: 9px; align-items: flex-start; }
.mp-ct { min-width: 0; flex: 1; }
.mp-name { font-size: 13.5px; font-weight: 650; letter-spacing: -0.15px; display: flex; align-items: center; gap: 4px; }
.mp-ext { color: var(--muted); opacity: 0.55; display: flex; }
.mp-ext svg { width: 12px; height: 12px; }
.mp-id {
  font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.mp-badges { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 11px; min-height: 19px; }
.mp-b {
  font-size: 10.5px; line-height: 17px; padding: 0 6px; border-radius: 5px;
  border: 1px solid transparent; white-space: nowrap;
}
.mp-b-src { color: #0f7a4d; background: #eaf7f0; border-color: #cfeadd; }
.mp-b-disc { color: #0b6b45; background: #e4f6ec; border-color: #c6ebd8; font-weight: 600; }
.mp-b-teal { color: #0e7490; background: #e6f6fa; border-color: #c9e9f1; }
.mp-b-blue { color: #1d4ed8; background: #eaf0fe; border-color: #d3e0fc; }
.mp-b-purple { color: #6d28d9; background: #f1ebfe; border-color: #e0d4fb; }
.mp-b-gray { color: #475061; background: #f1f2f6; border-color: #e3e5ec; }
.mp-b-ok { color: #0f7a4d; background: #fff; border-color: #bfe6d3; }

.mp-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 10px 0 11px; border-top: 1px dashed var(--border);
}
.mp-meta .k { font-size: 10.5px; color: var(--muted); margin-bottom: 2px; white-space: nowrap; }
.mp-meta .v { font-size: 12px; color: var(--text); font-weight: 500; }

.mp-prices { border-top: 1px dashed var(--border); padding-top: 9px; display: flex; flex-direction: column; gap: 5px; }
.mp-prices .row { display: flex; align-items: baseline; gap: 6px; }
.mp-prices .k { font-size: 11.5px; color: var(--muted); flex: 1 1 auto; white-space: nowrap; }
.mp-pv { font-size: 12.5px; font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mp-po { font-size: 10.5px; color: #a5abb9; text-decoration: line-through; font-variant-numeric: tabular-nums; white-space: nowrap; margin-left: 2px; }
.mp-na { color: #b9bfcc; font-size: 12px; }

/* 批量加价：多选标签 */
.mk-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.mk-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border: 1px solid var(--border); border-radius: 7px;
  font-size: 12.5px; color: var(--text-2); cursor: pointer;
  background: var(--panel); user-select: none;
  transition: border-color .15s, background .15s, color .15s;
}
.mk-chip:hover { border-color: #c7cafe; }
.mk-chip input { margin: 0; accent-color: var(--primary); cursor: pointer; }
.mk-chip:has(input:checked) { border-color: var(--primary); background: rgba(79, 70, 229, .07); color: var(--primary); font-weight: 550; }

.mp-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
.mp-btn {
  flex: 1; height: 30px; border-radius: 7px; border: 1px solid var(--border-strong);
  background: var(--panel); font-size: 12.5px; color: var(--text-2); cursor: pointer;
}
.mp-btn:hover { background: #f7f8fb; color: var(--text); border-color: #c3c8d6; }
.mp-btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.mp-btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }

/* 列表视图 */
.mp-tablewrap { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; overflow: auto; }
.mp-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mp-table th {
  text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted);
  background: var(--panel-2); padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.mp-table td { padding: 10px 12px; border-bottom: 1px solid #f1f2f6; vertical-align: middle; }
.mp-table tr:last-child td { border-bottom: none; }
.mp-table tbody tr:hover td { background: #fafbfe; }
.mp-table .r { text-align: right; }
.mp-table .c { text-align: center; }
.mp-table .muted { color: var(--muted); }
.mp-table .btn-sm + .btn-sm { margin-left: 4px; }
.mp-tname { font-weight: 600; font-size: 12.5px; }
.mp-tid { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.mp-vcell { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

/* 接入 / 体验弹窗 */
.mp-codemeta { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.mp-codemeta > div { display: flex; gap: 8px; align-items: center; font-size: 12.5px; }
.mp-codemeta .k { color: var(--muted); flex: 0 0 58px; font-size: 11.5px; }
.mp-codemeta code { font-size: 12px; background: var(--panel-2); border: 1px solid var(--border); padding: 2px 7px; border-radius: 6px; }
.mp-codetabs { display: flex; gap: 4px; margin-bottom: 8px; }
.mp-codetabs button {
  height: 26px; padding: 0 11px; border-radius: 7px; border: 1px solid transparent;
  background: transparent; font-size: 12px; color: var(--text-2); cursor: pointer;
}
.mp-codetabs button:hover { background: #f4f5f9; }
.mp-codetabs button.on { background: var(--primary-soft); color: var(--primary); font-weight: 600; }

.mp-pre {
  font-family: var(--mono); font-size: 12px; line-height: 1.7;
  background: var(--panel-2); border: 1px solid var(--border); color: #25304a;
  padding: 14px 16px; border-radius: 10px; overflow: auto; max-height: 46vh; white-space: pre;
}
.mp-pre.out { white-space: pre-wrap; word-break: break-word; min-height: 88px; }

.mp-try { display: flex; flex-direction: column; gap: 12px; }
.mp-field { display: flex; flex-direction: column; gap: 5px; }
.mp-field > span { font-size: 11.5px; color: var(--muted); }
.mp-field select, .mp-field textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px;
  font-size: 12.5px; outline: none; background: var(--panel); resize: vertical;
}
.mp-field select:focus, .mp-field textarea:focus { border-color: #c7cafe; box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); }
.mp-trybar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mp-hint { font-size: 11.5px; color: var(--muted); }
.mp-hint code { background: var(--panel-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 5px; }
.mp-notoken { text-align: center; padding: 26px 10px; color: var(--text-2); font-size: 13px; }
.mp-notoken .ico { font-size: 26px; margin-bottom: 8px; }
.mp-notoken p { margin-bottom: 14px; color: var(--muted); }
.mp-notoken p strong { color: var(--text); display: block; margin-bottom: 6px; }
.mp-notoken .mp-hint { display: block; margin-bottom: 14px; line-height: 1.7; }
.mp-imgbox:empty { display: none; }
.mp-imgbox { margin-top: 10px; }
.mp-imgbox img {
  display: block; width: 100%; max-width: 420px; margin: 0 auto;
  border-radius: 10px; border: 1px solid var(--border); box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

@media (max-width: 1080px) {
  .mp-search { max-width: none; order: 9; flex-basis: 100%; }
  .mp-barr { margin-left: 0; }
}
@media (max-width: 860px) {
  .mp-grid { grid-template-columns: 1fr; }
  .mp-tabs { overflow-x: auto; max-width: 100%; }
  .mp-bar { gap: 8px; }
}
