/* ============================================================
   Cosmos AI 控制台原型 · 设计系统
   亮色简约风 · 单一青蓝强调色
   ============================================================ */

:root {
  /* 色板 */
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #fafbfd;
  --border: #e4e8f0;
  --border-strong: #d3dae6;
  --text-1: #0f1c33;
  --text-2: #47536b;
  --text-3: #8a94a8;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: #eff4ff;
  --accent-border: #bfd3ff;
  --cyan: #06b6d4;
  --green: #16a34a;
  --green-soft: #e9f7ee;
  --amber: #d97706;
  --amber-soft: #fdf3e3;
  --red: #dc2626;
  --red-soft: #fdecec;
  --violet: #7c3aed;

  /* 圆角 */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;

  /* 阴影 */
  --shadow-card: 0 1px 2px rgba(15, 28, 51, .04), 0 1px 3px rgba(15, 28, 51, .06);
  --shadow-pop: 0 4px 16px rgba(15, 28, 51, .10);

  /* 字体 */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Menlo", Consolas, monospace;

  /* 尺寸 */
  --sidebar-w: 224px;
  --topbar-h: 60px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
img { max-width: 100%; display: inline-block; }
img.logo { display: block; object-fit: contain; background: none; border-radius: 8px; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

::placeholder { color: #b3bccb; }

/* ---------------- 布局骨架 ---------------- */
.layout { display: flex; min-height: 100vh; }

/* 侧边栏 */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
}
.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--topbar-h);
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
}
.brand .logo {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 15px;
}
.brand .name { font-weight: 650; font-size: 15px; letter-spacing: .2px; }
.brand .sub { font-size: 11px; color: var(--text-3); }

.side-nav { flex: 1; overflow-y: auto; padding: 12px 10px; }
.side-nav .group { margin-bottom: 18px; }
.side-nav .g-label {
  font-size: 11px; font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 0 10px; margin-bottom: 6px;
}
.side-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  margin-bottom: 2px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.side-nav a svg { flex: none; opacity: .85; }
.side-nav a:hover { background: var(--surface-2); color: var(--text-1); }
.side-nav a.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
}
.side-nav a .badge-ct {
  margin-left: auto; font-size: 11px; font-weight: 600;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 20px; padding: 0 8px;
}
.sidebar .side-foot {
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
}
.side-foot .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #64748b, #334155);
  color: #fff; font-size: 12px; font-weight: 600;
  display: grid; place-items: center; flex: none;
}
.side-foot .who { line-height: 1.25; min-width: 0; }
.side-foot .who b { font-size: 13px; display: block; }
.side-foot .who span { font-size: 11px; color: var(--text-3); }

/* 主区域 */
.main { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-width: 0; }

/* 顶栏 */
.topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky; top: 0; z-index: 20;
}
.topbar .crumb { font-size: 13px; color: var(--text-3); }
.topbar .crumb b { color: var(--text-1); font-weight: 600; }
.topbar .spacer { flex: 1; }
.topbar .search {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 6px 12px; width: 240px;
  background: var(--surface-2);
  color: var(--text-3); font-size: 13px;
}
.topbar .search input { border: none; outline: none; background: none; flex: 1; font-size: 13px; color: var(--text-1); }
.topbar .icon-btn {
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  display: grid; place-items: center;
  color: var(--text-2);
}
.topbar .icon-btn:hover { background: var(--surface-2); color: var(--text-1); }

.content { padding: 24px; max-width: 1280px; width: 100%; margin: 0 auto; }

/* ---------------- 页头 ---------------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.page-head h1 { font-size: 20px; font-weight: 700; letter-spacing: -.2px; }
.page-head .desc { color: var(--text-3); font-size: 13px; margin-top: 4px; }
.page-head .actions { display: flex; gap: 8px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px; font-weight: 500;
  transition: all .15s;
}
.btn:hover { border-color: var(--accent-border); color: var(--accent-strong); background: var(--accent-soft); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.btn-danger { color: var(--red); border-color: #f3c6c6; }
.btn-danger:hover { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.btn-sm { padding: 4px 10px; font-size: 12.5px; }
.btn .dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }

/* ---------------- 卡片 / 指标 ---------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-card);
}
.card-pad { padding: 20px; }
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.card-head h3 { font-size: 14.5px; font-weight: 650; }
.card-head .more { font-size: 12.5px; color: var(--accent); cursor: pointer; }
.card-body { padding: 20px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.metric-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
@media (max-width: 900px) { .metric-grid-3 { grid-template-columns: 1fr; } }
.metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}
.metric .m-label { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.metric .m-label svg { opacity: .7; }
.metric .m-value { font-size: 26px; font-weight: 750; letter-spacing: -.4px; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.metric .m-value small { font-size: 14px; font-weight: 600; color: var(--text-2); }
.metric .m-delta { font-size: 12px; }
.delta-up { color: var(--green); }
.delta-down { color: var(--red); }
.delta-flat { color: var(--text-3); }

/* ---------------- 图表占位 ---------------- */
.chart-box { position: relative; }
.chart-box svg { width: 100%; height: auto; display: block; }
.chart-lg { height: 280px; }
.chart-title { font-size: 14.5px; font-weight: 650; margin-bottom: 4px; }
.chart-sub { font-size: 12px; color: var(--text-3); margin-bottom: 16px; }

/* ---------------- 表格 ---------------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th {
  text-align: left;
  padding: 10px 16px;
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.tbl td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: middle;
}
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl .mono { font-family: var(--mono); font-size: 12.5px; color: var(--text-1); }
.tbl .strong { color: var(--text-1); font-weight: 600; }
.tbl .num { font-variant-numeric: tabular-nums; text-align: right; }
.tbl .op { white-space: nowrap; }
.tbl .op a { margin-right: 12px; font-size: 13px; }
.tbl .op a:last-child { margin-right: 0; }
.tbl .op .link-danger { color: var(--red); }

/* 表格底部工具条 */
.tbl-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  color: var(--text-3); font-size: 12.5px;
}
.pager { display: flex; gap: 6px; align-items: center; }
.pager .pg {
  min-width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text-2); font-size: 12.5px;
}
.pager .pg.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.pager .pg.dim { color: var(--text-3); }

/* ---------------- 徽标 / 标签 ---------------- */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600;
  padding: 2px 9px;
  border-radius: 20px;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-blue { color: var(--accent-strong); background: var(--accent-soft); }
.tag-green { color: var(--green); background: var(--green-soft); }
.tag-amber { color: var(--amber); background: var(--amber-soft); }
.tag-red { color: var(--red); background: var(--red-soft); }
.tag-gray { color: var(--text-3); background: var(--surface-2); }
.tag-violet { color: var(--violet); background: #f3eefe; }
.tag-static::before { display: none; }

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600;
  padding: 2px 10px; border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
}
.pill.active { border-color: var(--accent-border); background: var(--accent-soft); color: var(--accent-strong); }

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.field .help { font-size: 12px; color: var(--text-3); margin-top: 5px; }
.inp, .sel, textarea.inp {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font-size: 13.5px;
  color: var(--text-1);
  background: var(--surface);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.inp:focus, .sel:focus, textarea.inp:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.sel { 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='%238a94a8' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }

/* ---------------- 开关 ---------------- */
.switch { position: relative; display: inline-block; width: 36px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .sl {
  position: absolute; inset: 0;
  background: #cbd3e0;
  border-radius: 20px;
  transition: background .2s;
}
.switch .sl::before {
  content: ""; position: absolute;
  width: 16px; height: 16px;
  left: 2px; top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.switch input:checked + .sl { background: var(--accent); }
.switch input:checked + .sl::before { transform: translateX(16px); }

/* ---------------- 网格 ---------------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* ---------------- 空态 / 提示 ---------------- */
.empty {
  text-align: center; padding: 48px 20px; color: var(--text-3);
}
.empty .ic {
  width: 52px; height: 52px; margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  display: grid; place-items: center;
}
.empty p { font-size: 13px; }
.empty .btn { margin-top: 14px; }

.note {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  font-size: 13px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--text-2);
}
.note.ok { background: var(--green-soft); border-color: #b6e2c4; }
.note.warn { background: var(--amber-soft); border-color: #f0d3a4; }

/* ---------------- 弹窗 ---------------- */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(15, 28, 51, .45);
  display: none; align-items: center; justify-content: center;
  z-index: 100;
}
.modal-mask.open { display: flex; }
.modal {
  width: 480px; max-width: calc(100vw - 40px);
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.modal-head h3 { font-size: 16px; font-weight: 650; }
.modal-head .x { background: none; border: none; color: var(--text-3); font-size: 20px; line-height: 1; }
.modal-body { padding: 22px; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; background: var(--surface-2); }

/* ---------------- Key 展示 ---------------- */
.key-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-1);
  word-break: break-all;
}
.key-box .copy {
  flex: none; margin-left: auto;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: var(--r-sm);
  padding: 5px 10px;
  font-size: 12px;
  color: var(--text-2);
  display: inline-flex; align-items: center; gap: 5px;
}
.key-box .copy:hover { color: var(--accent-strong); border-color: var(--accent-border); }

/* ---------------- 标签页 ---------------- */
.tabs { display: flex; gap: 20px; }
.tab {
  position: relative;
  padding: 12px 2px;
  font-size: 13.5px; font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .15s;
  white-space: nowrap;
}
.tab:hover { color: var(--text-1); }
.tab.on { color: var(--accent-strong); border-bottom-color: var(--accent); }
.tab i {
  font-style: normal;
  font-size: 11px; font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-3);
  border-radius: 20px;
  padding: 1px 7px;
  margin-left: 4px;
}
.tab.on i { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent-strong); }

/* ---------------- 模型卡片 ---------------- */
.model-card {
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  background: var(--surface);
  display: flex; flex-direction: column; gap: 14px;
  transition: box-shadow .15s, border-color .15s;
}
.model-card:hover { border-color: var(--accent-border); box-shadow: var(--shadow-card); }
.model-card .m-ico {
  width: 34px; height: 34px; flex: none;
  border-radius: 9px;
  color: #fff;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
}
.m-logo {
  width: 100%; height: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: 7px;
}
.pv-logo {
  width: 42px; height: 42px; flex: none;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  display: grid; place-items: center;
}
.pv-img { width: 68%; height: 68%; object-fit: contain; }
.model-card .price-row {
  display: flex; align-items: baseline; gap: 18px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-radius: var(--r-sm);
}
.model-card .price b { font-size: 14px; font-weight: 700; color: var(--text-1); font-variant-numeric: tabular-nums; }
.model-card .price b.green { color: var(--green); }
.model-card .price span { font-size: 11.5px; color: var(--text-3); }
.model-card .price + .price { padding-left: 16px; border-left: 1px dashed var(--border-strong); }
.model-card .caps-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }

/* ---------------- Key 分组（OpenRouter 口径） ---------------- */
.key-chip { display: flex; flex-wrap: wrap; gap: 6px; }
.key-chip .key-g {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600;
  padding: 2px 9px;
  border-radius: 20px;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.key-chip .key-g::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
}
.key-chip .key-g.off { color: var(--text-3); }
.key-chip .key-g.off::before { background: var(--border-strong); }

/* ---------------- 详情键值对 ---------------- */
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 24px; }
.kv {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}
.kv span { color: var(--text-3); flex: none; }
.kv b { color: var(--text-1); font-weight: 600; text-align: right; word-break: break-all; }

/* ---------------- 代码块 ---------------- */
.code-block {
  background: #0f1c33;
  color: #dbe7ff;
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre-wrap;
}

/* ---------------- 表格内掩码 Key ---------------- */
.tbl .mono.key {
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer;
  color: var(--text-2);
}
.tbl .mono.key i {
  width: 14px; height: 14px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: .6;
}

/* ---------------- Playground ---------------- */
.pg { display: grid; grid-template-columns: 260px 1fr 240px; gap: 16px; height: calc(100vh - var(--topbar-h) - 96px); min-height: 480px; }
.pg .card { display: flex; flex-direction: column; overflow: hidden; }
.pg .card-body { flex: 1; overflow-y: auto; }
.pg .model-pick { display: flex; flex-direction: column; gap: 6px; }
.pg .model-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 13px;
}
.pg .model-item.on { border-color: var(--accent-border); background: var(--accent-soft); }
.pg .model-item .f { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; flex: none; }

/* 对话气泡 */
.chat { display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 10px; }
.msg .bub {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: var(--r);
  font-size: 13.5px;
  line-height: 1.6;
}
.msg.user { flex-direction: row-reverse; }
.msg.user .bub { background: var(--accent); color: #fff; border-top-right-radius: 4px; }
.msg.bot .bub { background: var(--surface-2); border: 1px solid var(--border); border-top-left-radius: 4px; color: var(--text-1); }
.msg .meta { font-size: 11px; color: var(--text-3); align-self: flex-end; }

/* 打字指示器 */
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.pg .composer {
  border-top: 1px solid var(--border);
  padding: 12px;
  display: flex; gap: 8px;
}
.pg .composer textarea {
  flex: 1; resize: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-size: 13.5px;
  outline: none;
  font-family: inherit;
  min-height: 56px;
}
.pg .composer textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }

/* 进度条 */
.bar {
  height: 6px;
  border-radius: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 6px;
}
.bar::before {
  content: "";
  display: block;
  height: 100%;
  width: var(--w, 50%);
  border-radius: 20px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
}

/* 用量明细条 */
.usage-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}
.usage-row:last-child { border-bottom: none; }
.usage-row b { font-family: var(--mono); font-weight: 600; }

/* ---------------- 登录页 ---------------- */
.login {
  display: grid; grid-template-columns: 1.1fr 1fr;
  min-height: 100vh;
}
.login .left {
  background: linear-gradient(150deg, #0b1c34 0%, #123052 55%, #0e2a4a 100%);
  color: #fff;
  padding: 56px 64px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.login .left::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, .22), transparent 40%),
    radial-gradient(circle at 20% 90%, rgba(37, 99, 235, .25), transparent 45%);
}
.login .left > * { position: relative; z-index: 1; }
.login .left .brand-row { display: flex; align-items: center; gap: 12px; }
.login .left .logo {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  display: grid; place-items: center;
  font-weight: 700; font-size: 19px;
}
.login .left .brand-row .nm { font-size: 18px; font-weight: 700; letter-spacing: .3px; }
.login .left .brand-row .sb { font-size: 12px; color: rgba(255,255,255,.55); }
.login .left h1 { font-size: 30px; font-weight: 750; line-height: 1.25; letter-spacing: -.5px; margin-top: 72px; max-width: 14ch; }
.login .left h1 em { font-style: normal; color: #7dd3fc; }
.login .left .pitch { margin-top: 14px; color: rgba(255,255,255,.72); font-size: 15px; max-width: 42ch; line-height: 1.7; }
.login .feats { margin-top: 48px; display: flex; flex-direction: column; gap: 14px; }
.login .feat { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: rgba(255,255,255,.85); }
.login .feat .ic {
  width: 32px; height: 32px; flex: none;
  border-radius: 8px;
  background: rgba(125, 211, 252, .14);
  border: 1px solid rgba(125, 211, 252, .3);
  display: grid; place-items: center;
  color: #7dd3fc;
}
.login .left .foot { margin-top: auto; font-size: 12px; color: rgba(255,255,255,.4); }

.login .right {
  display: grid; place-items: center;
  padding: 40px;
  background: var(--surface);
}
.login .panel { width: 380px; max-width: 100%; }
.login .panel h2 { font-size: 22px; font-weight: 750; letter-spacing: -.3px; }
.login .panel .sub { color: var(--text-3); font-size: 13.5px; margin: 6px 0 28px; }
.login .row2 { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; font-size: 13px; }
.login .row2 .ck { display: flex; align-items: center; gap: 6px; color: var(--text-2); }
.login .row2 a { font-size: 13px; }
.login .btn-login { width: 100%; padding: 10px; font-size: 14.5px; justify-content: center; border-radius: var(--r-sm); }

/* 角色切换条 */
.role-switch {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 4px;
  margin-bottom: 24px;
  background: var(--surface-2);
}
.role-switch .opt {
  text-align: center; padding: 9px 0;
  border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
}
.role-switch .opt.on { background: var(--surface); box-shadow: var(--shadow-card); color: var(--text-1); }

/* 注册 / 登录 Tab */
.auth-tabs {
  display: flex; gap: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.auth-tabs span {
  padding: 0 2px 12px;
  font-size: 15px; font-weight: 650;
  color: var(--text-3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.auth-tabs span.on { color: var(--accent-strong); border-bottom-color: var(--accent); }
.phone-row, .code-row { display: flex; gap: 8px; }
.code-row { margin-top: 12px; }
.code-row .btn { white-space: nowrap; }
.divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-3); font-size: 12px;
  margin: 22px 0 14px;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.oauth { justify-content: center; padding: 9px 0; }
.oauth:hover { border-color: var(--border-strong); background: var(--surface-2); color: var(--text-1); }

/* ---------------- 公开主页 ---------------- */
.site-body { background: var(--bg); }
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-nav-inner {
  max-width: 1160px; margin: 0 auto;
  height: 60px;
  display: flex; align-items: center; gap: 28px;
  padding: 0 24px;
}
.site-brand { display: flex; align-items: center; gap: 10px; }
.site-brand .logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: #fff; font-weight: 700; font-size: 14px;
  display: grid; place-items: center;
}
.site-brand .nm { font-weight: 700; font-size: 15px; line-height: 1.2; }
.site-brand .sb { font-size: 11px; color: var(--text-3); line-height: 1.2; }
.site-links { display: flex; gap: 22px; margin-left: 8px; }
.site-links a { color: var(--text-2); font-size: 14px; font-weight: 500; }
.site-links a:hover { color: var(--accent-strong); }
.site-links a.active { color: var(--accent-strong); font-weight: 600; }
.site-cta { margin-left: auto; display: flex; gap: 14px; padding-right: 16px; }
.site-cta .cta-console {
  display: inline-flex;
  align-items: center;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}
.site-cta .cta-console:hover { color: var(--accent-strong); }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 78% 18%, rgba(37,99,235,.16), transparent 42%),
    radial-gradient(circle at 18% 88%, rgba(6,182,212,.14), transparent 45%),
    linear-gradient(180deg, #fbfcff 0%, #f5f7fa 100%);
  border-bottom: 1px solid var(--border);
  padding: 88px 24px 72px;
}
.hero-inner { max-width: 1160px; margin: 0 auto; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 20px;
  box-shadow: var(--shadow-card);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.hero h1 {
  font-size: 46px; font-weight: 780;
  letter-spacing: -1px;
  line-height: 1.15;
  margin: 26px auto 18px;
}
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub {
  color: var(--text-2); font-size: 17px; line-height: 1.7;
  max-width: 52ch; margin: 0 auto;
}
.hero-cta { margin-top: 32px; display: flex; gap: 12px; justify-content: center; }
.btn-lg { padding: 11px 22px; font-size: 15px; border-radius: var(--r); }
.hero-trust {
  margin-top: 40px; display: flex; gap: 40px; justify-content: center;
  color: var(--text-3); font-size: 13px;
}
.hero-trust b { color: var(--text-1); font-size: 17px; margin-right: 5px; font-variant-numeric: tabular-nums; }

/* 区块 */
.site-section { padding: 72px 24px; }
.site-section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-label {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 4px 12px; border-radius: 20px;
  text-transform: uppercase;
}
.sec-head h2 { font-size: 30px; font-weight: 750; letter-spacing: -.6px; margin-top: 16px; }
.sec-head p { color: var(--text-3); margin-top: 10px; font-size: 15px; }
.sec-foot-link { text-align: center; margin-top: 32px; }

/* 模型广场 */
.model-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1160px; margin: 0 auto; }
.model-grid .model-card .card-foot {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--text-3);
}
.model-grid .model-card .card-foot a { font-size: 12.5px; }

/* 核心能力 */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1160px; margin: 0 auto; }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.feature .feat-ic {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
}
.feature .feat-ic svg { width: 16px; height: 16px; }
.feature h3 { font-size: 15.5px; font-weight: 650; margin: 14px 0 8px; }
.feature p { font-size: 13px; color: var(--text-2); line-height: 1.65; }

/* 计费 */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 960px; margin: 0 auto; }
.price-tile {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.price-tile-hot { border-color: var(--accent-border); }
.price-tile .hot-tag {
  position: absolute; top: -11px; right: 20px;
  background: var(--accent); color: #fff;
  font-size: 11.5px; font-weight: 700;
  padding: 3px 12px; border-radius: 20px;
}
.price-tile h3 { font-size: 15px; font-weight: 650; color: var(--text-3); }
.price-tile .p-amount { font-size: 28px; font-weight: 780; margin: 14px 0 18px; letter-spacing: -.5px; }
.price-tile .p-amount span { font-size: 13px; color: var(--text-3); font-weight: 500; }
.price-tile ul { list-style: none; }
.price-tile li { position: relative; padding-left: 18px; font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.price-tile li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* 接入步骤 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 900px; margin: 0 auto 40px; text-align: center; }
.step .step-num {
  width: 40px; height: 40px; margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: #fff; font-weight: 700; font-size: 16px;
  display: grid; place-items: center;
}
.step h3 { font-size: 15px; font-weight: 650; }
.step p { font-size: 13px; color: var(--text-2); margin-top: 6px; line-height: 1.6; }
.step code.mono { background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; font-size: 12px; }

/* 页脚 */
.site-footer { background: #0f1c33; color: rgba(255,255,255,.7); padding: 48px 24px 40px; }
.site-footer-inner { max-width: 1160px; margin: 0 auto; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.site-footer .site-brand .nm { color: #fff; }
.site-footer .site-brand .sb { color: rgba(255,255,255,.45); }
.footer-cols { display: flex; gap: 60px; }
.footer-cols .fc { display: flex; flex-direction: column; gap: 10px; }
.footer-cols h4 { color: #fff; font-size: 13.5px; font-weight: 650; margin-bottom: 4px; }
.footer-cols a { color: rgba(255,255,255,.65); font-size: 13px; }
.footer-cols a:hover { color: #fff; }

/* ---------------- 文档中心 ---------------- */
.docs-nav { background: rgba(255,255,255,.96); }
.docs-layout { display: flex; max-width: 1200px; margin: 0 auto; min-height: calc(100vh - 60px); }
.docs-side {
  width: 240px; flex: none;
  border-right: 1px solid var(--border);
  padding: 28px 16px;
}
.docs-side-inner { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 2px; }
.docs-cat {
  font-size: 11.5px; font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase; letter-spacing: .06em;
  margin: 18px 8px 8px;
}
.docs-cat:first-child { margin-top: 0; }
.docs-side a {
  padding: 7px 10px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.4;
}
.docs-side a:hover { background: var(--surface-2); color: var(--text-1); }
.docs-side a.on { background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }

.docs-main { flex: 1; min-width: 0; padding: 40px 24px 60px; }
.docs-content { max-width: 760px; }
.docs-breadcrumb { font-size: 12.5px; color: var(--text-3); margin-bottom: 18px; }
.docs-content h1 { font-size: 30px; font-weight: 750; letter-spacing: -.5px; }
.docs-lead { color: var(--text-2); font-size: 15px; margin: 10px 0 26px; line-height: 1.7; }
.docs-content h2 { font-size: 20px; font-weight: 700; margin: 40px 0 14px; letter-spacing: -.3px; padding-top: 8px; }
.docs-content h2:first-of-type { margin-top: 28px; }
.docs-content p { color: var(--text-2); font-size: 14px; line-height: 1.75; margin-bottom: 14px; }
.docs-content code.mono {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 12.5px;
  font-family: var(--mono);
}
.docs-content .code-block { margin: 14px 0; }
.docs-steps { padding-left: 20px; color: var(--text-2); font-size: 14px; line-height: 2; }

/* 接口端点 */
.endpoint {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  margin: 22px 0;
}
.endpoint .method {
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 4px;
}
.endpoint code { font-size: 14px; }

/* FAQ */
.faq {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  margin-bottom: 10px;
  background: var(--surface);
}
.faq summary {
  cursor: pointer;
  padding: 14px 18px;
  font-size: 14px; font-weight: 600;
  color: var(--text-1);
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 16px;
  color: var(--text-3); font-weight: 500;
}
.faq[open] summary::after { content: "−"; }
.faq p { padding: 0 18px 14px; margin: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.7; }

/* 示例语言切换 */
.lang-tabs { display: inline-flex; gap: 4px; border: 1px solid var(--border); border-radius: var(--r-sm); padding: 4px; background: var(--surface-2); margin: 10px 0 6px; }
.lang-tab {
  padding: 5px 16px;
  border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
}
.lang-tab.on { background: var(--surface); color: var(--accent-strong); box-shadow: var(--shadow-card); }
.lang-pane h2 { margin-top: 24px; }

/* 文档页尾 */
.docs-footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-3); }

/* 下一步卡片 */
.next-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.next-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.next-card:hover { border-color: var(--accent-border); box-shadow: var(--shadow-card); }
.next-card b { font-size: 14px; color: var(--text-1); }
.next-card span { font-size: 12.5px; color: var(--text-3); }

/* ---------------- 登录卡片（MiniMax 式） ---------------- */
.auth {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 32px 20px;
  background:
    radial-gradient(circle at 82% 12%, rgba(37,99,235,.10), transparent 40%),
    radial-gradient(circle at 12% 88%, rgba(6,182,212,.10), transparent 40%),
    var(--bg);
}
.auth-card {
  width: 420px; max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop);
  padding: 40px 40px 28px;
}
.auth-brand {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-bottom: 22px; position: relative;
}
.auth-brand .logo { width: 38px; height: 38px; }
.auth-brand .brand-txt { text-align: left; }
.auth-brand .nm { font-size: 19px; font-weight: 750; letter-spacing: .3px; line-height: 1.2; }
.auth-brand .sb { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.login-tabs {
  display: flex; gap: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}
.login-tabs span {
  padding: 0 2px 11px;
  font-size: 15px; font-weight: 650;
  color: var(--text-3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.login-tabs span.on { color: var(--accent-strong); border-bottom-color: var(--accent); }
.auth-hint {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  margin-top: 14px;
  font-size: 12px; color: var(--text-3);
}
.auth-back { position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 12.5px; color: var(--accent-strong); }

/* 左右分栏：微信登录 + 表单 */
.auth-wide { width: 840px; padding: 32px 36px 22px; }
.auth-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.wx-pane {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;
}
.wx-title { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 650; color: var(--text-1); }
.wx-qr-box {
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px;
  width: 100%;
  display: flex; flex-direction: column; align-items: center;
}
.wx-qr { width: 132px; height: 132px; display: block; }
.wx-qr-tip { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 8px; }
.wx-view { width: 100%; display: flex; flex-direction: column; align-items: center; }
.wx-quick-box { padding: 26px 20px; gap: 0; align-items: center; }
.wx-qr-mini { width: 52px; height: 52px; }
.wx-quick-name { font-size: 14px; font-weight: 600; color: var(--text-1); margin: 12px 0 18px; }
.wx-state {
  margin-top: 16px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-3);
}
.s-label { margin-right: 2px; }
.s-btn {
  padding: 3px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-3);
  font-size: 12px; cursor: pointer;
}
.s-btn.on { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); }
.wx-quick { width: 100%; margin-top: 12px; }
.wx-divider { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 12px; margin-bottom: 10px; }
.wx-divider::before, .wx-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.btn-wx {
  width: 100%; justify-content: center;
  background: #07c160;
  border-color: #07c160;
  color: #fff;
  padding: 9px 0;
  font-size: 14px; font-weight: 600;
}
.btn-wx:hover { background: #06ad56; border-color: #06ad56; color: #fff; }
.wx-quick-tip { text-align: center; font-size: 11.5px; color: var(--text-3); margin-top: 8px; }
.form-pane { padding-top: 4px; display: flex; flex-direction: column; justify-content: center; }
.auth-card .btn-login {
  width: 100%;
  padding: 11px 0;
  font-size: 15px; font-weight: 600;
  justify-content: center;
  border-radius: var(--r-sm);
}
.auth-pane { padding-top: 6px; }
.auth-pane .field { margin-bottom: 18px; }
.auth-pane .btn-login { margin-top: 6px; }
.form-pane .auth-hint { margin-top: 16px; }

/* ---- 登录页美化（MiniMax 高级感） ---- */
.auth { position: relative; overflow: hidden; }
.auth::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(37,99,235,.16), transparent 48%),
    radial-gradient(circle at 12% 22%, rgba(103,232,249,.14), transparent 36%),
    radial-gradient(circle at 88% 28%, rgba(37,99,235,.12), transparent 40%),
    radial-gradient(circle at 25% 92%, rgba(6,182,212,.12), transparent 42%),
    radial-gradient(circle at 78% 88%, rgba(124,58,237,.10), transparent 38%),
    radial-gradient(1.5px 1.5px at 10% 18%, rgba(37,99,235,.30), transparent 100%),
    radial-gradient(1.5px 1.5px at 24% 44%, rgba(6,182,212,.28), transparent 100%),
    radial-gradient(1.5px 1.5px at 40% 14%, rgba(37,99,235,.26), transparent 100%),
    radial-gradient(1px 1px at 55% 34%, rgba(124,58,237,.24), transparent 100%),
    radial-gradient(1.5px 1.5px at 67% 18%, rgba(37,99,235,.28), transparent 100%),
    radial-gradient(1px 1px at 82% 40%, rgba(6,182,212,.24), transparent 100%),
    radial-gradient(1.5px 1.5px at 90% 16%, rgba(124,58,237,.26), transparent 100%),
    radial-gradient(1px 1px at 14% 72%, rgba(6,182,212,.22), transparent 100%),
    radial-gradient(1.5px 1.5px at 86% 72%, rgba(37,99,235,.24), transparent 100%),
    radial-gradient(1px 1px at 47% 82%, rgba(124,58,237,.20), transparent 100%);
}
.auth-card { position: relative; border-radius: 22px; box-shadow: 0 24px 60px -18px rgba(15,28,51,.22), 0 6px 20px -8px rgba(15,28,51,.10); }
.auth-card::before {
  content: ""; position: absolute; top: 0; left: 26px; right: 26px; height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(37,99,235,.55), rgba(6,182,212,.6), transparent);
}
.auth-brand .logo { filter: drop-shadow(0 3px 8px rgba(37,99,235,.4)); }
.auth-card .inp, .auth-card .sel {
  background-color: var(--surface-2);
  padding: 11px 14px;
  border-radius: 11px;
  font-size: 14px;
}
.auth-card .inp:focus, .auth-card .sel:focus {
  background-color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.14);
}
.login-tabs span { transition: color .15s; }
.auth-card .btn-login {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  border: none;
  border-radius: 11px;
  padding: 12px 0;
  letter-spacing: 3px;
  font-weight: 650;
  box-shadow: 0 8px 18px -8px rgba(37,99,235,.55);
}
.auth-card .btn-login:hover {
  background: linear-gradient(135deg, #1d4ed8, #0891b2);
  box-shadow: 0 10px 22px -8px rgba(37,99,235,.65);
  transform: translateY(-1px);
}
.wx-pane { background: linear-gradient(180deg, #f2fbf6 0%, #ffffff 100%); border-color: #d6efe3; }
.wx-title { color: #0a7a43; }
.wx-qr-box { border-radius: 16px; border-color: #eef2f7; box-shadow: 0 10px 24px -14px rgba(15,28,51,.16); }
.btn-wx {
  background: linear-gradient(135deg, #07c160, #06ad56);
  border: none;
  border-radius: 11px;
  padding: 11px 0;
  box-shadow: 0 8px 18px -8px rgba(7,193,96,.55);
}
.btn-wx:hover { background: linear-gradient(135deg, #06ad56, #059a4b); transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(7,193,96,.65); }
.wx-quick-tip { color: var(--text-3); }
.auth-back { opacity: .85; }
.auth-back:hover { opacity: 1; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2-1 { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; }
  .login .left { display: none; }
  .pg { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; height: auto; }
  .pg .card { min-height: 300px; }
  .model-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
}
@media (max-width: 760px) {
  .sidebar { width: 60px; }
  .sidebar .brand .name, .sidebar .brand .sub, .side-nav .g-label, .side-nav a span:not(.badge-ct), .side-foot .who { display: none; }
  .main { margin-left: 60px; }
  .content { padding: 16px; }
  .metric-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .site-links { display: none; }
  .model-grid, .feature-grid, .steps { grid-template-columns: 1fr; }
  .hero-trust { flex-wrap: wrap; gap: 16px; }
  .docs-side { display: none; }
  .next-grid { grid-template-columns: 1fr; }
  .auth-wide { width: 100%; padding: 28px 20px; }
  .auth-split { grid-template-columns: 1fr; gap: 18px; }
}
