@charset "UTF-8";
/*
* 设计系统色板 —— Industry
* 方形、细边框、蓝图角标。
*/
/* 暖色点缀：付费标记、热点等 */
/* 中国传统色点缀：分类序号、类型标签等小面积使用 */
/* 靛蓝 */
/* 竹青 */
/* 绛紫 */
/* 琥珀 */
/* 胭脂 */
/* 松花绿 */
/* 警示色：表单报错、点数不足等 */
/* 旧变量别名，保证未改版页面继续编译并同步换色 */
/*
* 字体
* 不引入外部资源：默认使用系统字体栈。
* 若日后自托管 Barlow，把 woff2 放到 /static/www/font/ 下并打开下面的 @font-face 即可，
* 其余样式无需改动。
*/
/*
@font-face{
    font-family:'Barlow';
    src:url('/static/www/font/barlow-400.woff2') format('woff2');
    font-weight:400;
    font-display:swap;
}
@font-face{
    font-family:'Barlow';
    src:url('/static/www/font/barlow-600.woff2') format('woff2');
    font-weight:600;
    font-display:swap;
}
@font-face{
    font-family:'Barlow Condensed';
    src:url('/static/www/font/barlow-condensed-600.woff2') format('woff2');
    font-weight:600;
    font-display:swap;
}
*/
/* 内容区最大宽度 */
/*
* 清除浮动
* 调用方法：@extend %clearfix;
*/
/*
* 小标题（栏目眉题）
* 调用方法：@include kicker; 或 @include kicker(12px);
* 例：01 · 快速查询 · LOOKUP
*/
/*
* 等宽数字，用于 IP、延迟、点数等数值
* 调用方法：@include tnum;
*/
/*
* 大号压缩字，用于 IP / 评分 / 点数
* 调用方法：@include display(48px);
*/
/*
* 单行省略
* 调用方法：@extend %ellipsis;
*/
/*
* 响应式宏
* 调用方法：@include respond-to(small) { ... }
*/
/*
* 通用工具页骨架：表单 + 结果区 + 状态条 + 子功能切换。
* 给 jsonpath / jsonschema / jsontool / bincalc / mathcalc / properties / txtline
* 这一批纯前端工具共用，配合 tool/page.css。
* 和 tool/ssl.scss 结构相同但类名不同，两边互不影响。
*/
.kit-lead {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(29, 31, 32, 0.7);
  margin: 0 0 16px;
}

/* — 子功能切换 — */
.kit-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
}
.kit-tabs a {
  font-size: 13px;
  padding: 5px 13px;
  border: 1px solid rgba(29, 31, 32, 0.16);
  color: #22509a;
  background: #fff;
  cursor: pointer;
}
.kit-tabs a:hover {
  border-color: #3576d2;
  text-decoration: none;
}
.kit-tabs a.on {
  background: #3576d2;
  border-color: #3576d2;
  color: #fff;
}

/* — 表单 — */
.kit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin-bottom: 16px;
}
.kit-form.one {
  grid-template-columns: minmax(0, 1fr);
}
.kit-form.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kit-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.kit-field.full {
  grid-column: 1/-1;
}
.kit-field > label {
  font-family: "Barlow", ui-sans-serif, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft Yahei", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(29, 31, 32, 0.55);
}
.kit-field .tip {
  font-size: 12px;
  color: rgba(29, 31, 32, 0.45);
  line-height: 1.6;
}

.kit-in,
.kit-sel,
.kit-ta {
  width: 100%;
  font-size: 14px;
  padding: 7px 9px;
  border: 1px solid rgba(29, 31, 32, 0.16);
  background: #fff;
  color: #1d1f20;
}
.kit-in:focus,
.kit-sel:focus,
.kit-ta:focus {
  outline: none;
  border-color: #3576d2;
}

.kit-ta {
  font-family: ui-monospace, Menlo, Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.6;
  min-height: 140px;
  resize: vertical;
  white-space: pre;
  overflow-wrap: normal;
  overflow-x: auto;
}

.kit-sel {
  height: 34px;
}

/* — 按钮 — */
.kit-acts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 4px 0 14px;
}

.kit-btn {
  font-size: 14px;
  padding: 7px 18px;
  border: 1px solid #3576d2;
  background: #3576d2;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}
.kit-btn:hover {
  background: #1c3f77;
  border-color: #1c3f77;
}
.kit-btn[disabled] {
  opacity: 0.5;
  cursor: default;
}
.kit-btn.ghost {
  background: #fff;
  color: #22509a;
  border-color: rgba(29, 31, 32, 0.16);
}
.kit-btn.ghost:hover {
  border-color: #3576d2;
  background: #fff;
}
.kit-btn.sm {
  font-size: 12px;
  padding: 4px 11px;
}

/* — 结果 — */
.kit-out {
  position: relative;
  margin: 0 0 14px;
}
.kit-out > .hd {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.kit-out > .hd .t {
  font-family: "Barlow", ui-sans-serif, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft Yahei", Arial, sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #22509a;
}
.kit-out > .hd .a {
  display: flex;
  gap: 6px;
}

.kit-pre {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(29, 31, 32, 0.16);
  background: #fafbfc;
  font-family: ui-monospace, Menlo, Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre;
  overflow-x: auto;
  word-break: normal;
  max-height: 360px;
  overflow-y: auto;
}

/* — 键值表 — */
.kit-kv {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
}
.kit-kv th, .kit-kv td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(29, 31, 32, 0.08);
  text-align: left;
  vertical-align: top;
}
.kit-kv th {
  width: 150px;
  font-size: 12px;
  font-weight: normal;
  color: rgba(29, 31, 32, 0.55);
}
.kit-kv td {
  word-break: break-all;
}
.kit-kv td.mono {
  font-family: ui-monospace, Menlo, Consolas, "Courier New", monospace;
  font-size: 12px;
}
.kit-kv td.num {
  font-feature-settings: "tnum" 1;
  text-align: right;
}
.kit-kv tr:last-child th,
.kit-kv tr:last-child td {
  border-bottom: 0;
}

/* — 状态条 — */
.kit-msg {
  font-size: 13px;
  line-height: 1.7;
  padding: 9px 12px;
  border-left: 3px solid rgba(29, 31, 32, 0.16);
  background: rgba(29, 31, 32, 0.03);
  margin: 0 0 14px;
  word-break: break-all;
}
.kit-msg.ok {
  border-left-color: #2f7a4d;
  color: #205c39;
  background: rgba(47, 122, 77, 0.06);
}
.kit-msg.bad {
  border-left-color: #b4472f;
  color: #b4472f;
  background: rgba(180, 71, 47, 0.06);
}
.kit-msg.warn {
  border-left-color: #b8860b;
  color: #7a5a07;
  background: rgba(184, 134, 11, 0.07);
}
.kit-msg.hide {
  display: none;
}

/* — 说明条目 — */
.kit-defs {
  margin: 0;
}
.kit-defs dt {
  font-size: 14px;
  font-weight: 600;
  margin-top: 14px;
}
.kit-defs dt:first-child {
  margin-top: 0;
}
.kit-defs dd {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.85;
  color: rgba(29, 31, 32, 0.7);
}

/* — 示例/快捷按钮的小行 — */
.kit-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}
.kit-chips a {
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid rgba(29, 31, 32, 0.08);
  color: rgba(29, 31, 32, 0.65);
  background: #fff;
  cursor: pointer;
  font-family: ui-monospace, Menlo, Consolas, "Courier New", monospace;
}
.kit-chips a:hover {
  border-color: #3576d2;
  color: #22509a;
  text-decoration: none;
}

.kit-toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  background: rgba(29, 31, 32, 0.88);
  color: #fff;
  font-size: 13px;
  padding: 8px 18px;
  z-index: 99;
  display: none;
}

@media screen and (max-width: 799px) {
  .kit-form,
  .kit-form.three {
    grid-template-columns: minmax(0, 1fr);
  }
  .kit-acts .kit-btn {
    flex: 1 1 auto;
  }
  .kit-kv th {
    width: 96px;
    white-space: normal;
  }
  .kit-pre {
    font-size: 11px;
  }
}