/* 工具箱页面（开发工具 / 编码转换 / DNS 安全检测）样式 */
.tb-card { padding: 22px; background: #fff; border: 1px solid var(--line, #ebedf0); border-radius: 8px; box-shadow: var(--shadow-soft, 0 6px 20px rgba(15,23,42,.05)); }
.tb-head h1 { margin: 0 0 6px; font-size: 20px; font-weight: 650; color: #1f2329; }
.tb-head h1 span { color: inherit; }
.tb-head p { margin: 0 0 16px; color: var(--muted, #8a919f); font-size: 13px; }
.tb-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft, #f2f3f5); }
.tb-tab { display: inline-flex; align-items: center; gap: 5px; padding: 7px 14px; color: #4e5969; background: #f7f8fa; border: 1px solid #eef0f3; border-radius: 8px; font-size: 13px; cursor: pointer; }
.tb-tab:hover { color: #0958d9; border-color: #c9defc; }
.tb-tab.is-active { color: #fff; background: #1677ff; border-color: #1677ff; }
.tb-tab .tb-hot { padding: 0 5px; color: #f53f3f; background: #fff; border-radius: 4px; font-size: 10px; line-height: 15px; }
.tb-panel { padding-top: 18px; }
.tb-hint { margin: 0 0 12px; color: #8a919f; font-size: 12px; }
.tb-field { margin-bottom: 12px; }
.tb-field > label { display: block; margin-bottom: 6px; color: #4e5969; font-size: 12px; }
.tb-input, .tb-textarea, .tb-select { width: 100%; padding: 9px 11px; color: #1f2329; background: #fff; border: 1px solid #e5e6eb; border-radius: 8px; font-size: 13px; font-family: inherit; }
.tb-textarea { min-height: 150px; resize: vertical; line-height: 1.6; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.tb-input:focus, .tb-textarea:focus, .tb-select:focus { outline: none; border-color: #94bfff; box-shadow: 0 0 0 3px rgba(22,119,255,.08); }
.tb-inline { display: flex; flex-wrap: wrap; gap: 10px; }
.tb-inline > * { flex: 1 1 160px; min-width: 0; }
.tb-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.tb-btn { padding: 8px 16px; color: #1f2329; background: #fff; border: 1px solid #e5e6eb; border-radius: 8px; font-size: 13px; cursor: pointer; }
.tb-btn:hover { color: #0958d9; border-color: #94bfff; }
.tb-btn.is-primary { color: #fff; background: #1677ff; border-color: #1677ff; }
.tb-btn.is-primary:hover { background: #0958d9; border-color: #0958d9; }
.tb-out-wrap { position: relative; }
.tb-out { min-height: 84px; max-height: 420px; margin: 0; padding: 12px 14px; overflow: auto; color: #1f2329; background: #fafbfc; border: 1px solid #eef0f3; border-radius: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.7; white-space: pre-wrap; word-break: break-all; }
.tb-copy { position: absolute; top: 8px; right: 8px; padding: 3px 8px; color: #4e5969; background: rgba(255,255,255,.9); border: 1px solid #e5e6eb; border-radius: 6px; font-size: 11px; cursor: pointer; }
.tb-copy:hover { color: #1677ff; border-color: #94bfff; }
.tb-msg { margin: 10px 0 0; font-size: 12.5px; }
.tb-msg.is-bad { color: #f53f3f; }
.tb-msg.is-ok { color: #23ab5e; }
.tb-msg.is-warn { color: #fa8c16; }
.tb-flash { animation: tb-flash .9s ease; }
@keyframes tb-flash { 0% { background: #fff7e6; } 100% { background: #fafbfc; } }
.tb-kv { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tb-kv th, .tb-kv td { padding: 8px 10px; border-bottom: 1px solid #f2f3f5; text-align: left; vertical-align: top; }
.tb-kv th { width: 160px; color: #86909c; font-weight: 500; background: #fafbfc; }
.tb-kv td { color: #1f2329; word-break: break-all; }
.tb-preview { padding: 14px; border: 1px solid #eef0f3; border-radius: 8px; background: #fff; font-size: 13.5px; line-height: 1.75; color: #1f2329; }
.tb-preview h1, .tb-preview h2, .tb-preview h3 { margin: 12px 0 8px; }
.tb-preview pre { padding: 10px; overflow: auto; background: #f7f8fa; border-radius: 8px; }
.tb-preview code { padding: 1px 4px; background: #f2f3f5; border-radius: 4px; }
.tb-mark { padding: 1px 2px; background: #fff1b8; border-radius: 3px; }
.tb-chip { display: inline-block; margin: 0 6px 6px 0; padding: 2px 8px; color: #4e5969; background: #f2f3f5; border-radius: 5px; font-size: 12px; }
@media (max-width: 720px) {
  .tb-card { padding: 16px; border-radius: 8px; }
  .tb-textarea { min-height: 120px; }
}

/* ===== 等宽字体统一 Geist Mono ===== */
body .mono,
body .ck-table td.mono,
body .ck-table .mono,
body .ck-ip-value,
body .ck-ip-list,
body .ck-dns-meta,
body .eyebrow,
body .tb-textarea,
body .tb-out {
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Consolas, Monaco, monospace !important;
}

/* ===== 主题：黑色 + 绿色（替换蓝色系） ===== */
.tb-tab.is-active { color: #fff; background: #111315; border-color: #111315; }
.tb-tab:hover { color: #0f7a2b; border-color: #bfe4cf; }
.tb-btn.is-primary { color: #fff; background: #111315; border-color: #111315; }
.tb-btn.is-primary:hover { background: #000; border-color: #000; }
.tb-btn:hover { color: #0f7a2b; border-color: #bfe4cf; }
.tb-copy:hover { color: #0f7a2b; border-color: #bfe4cf; }

/* ===== 激活态 hover 保持黑底白字 ===== */
.tb-tab:not(.is-active):hover { color: #0f7a2b; border-color: #bfe4cf; }
.tb-tab.is-active:hover,
.tb-btn.is-primary:hover {
  color: #fff !important;
  background: #111315 !important;
  border-color: #111315 !important;
}

/* ===== 导航白色激活态 / hover 不改色 / 字体对齐 chahu ===== */
/* hover 不改色 */
.tb-tab:hover { color: #4e5969; border-color: #eef0f3; }
.tb-btn:hover { color: #1f2329; border-color: #e5e6eb; }
.tb-copy:hover { color: #4e5969; border-color: #e5e6eb; }
/* ===== 残留蓝色清理 ===== */
.tb-input:focus, .tb-textarea:focus, .tb-select:focus { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .1); }
