#tool-body {
  --primary: #16baaa;
  --primary-soft: rgba(22, 186, 170, 0.12);
  --card-bg: #fff;
  --panel-bg: #f7faf9;
  --text: #2a2a2a;
  --muted: #8a8a8a;
  --border: #e5ecea;
  --input-bg: #fff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  --radius: 10px;
}
.theme-dark-mode #tool-body {
  --card-bg: #2a2a2a;
  --panel-bg: #222;
  --text: #eee;
  --muted: #9a9a9a;
  --border: #3a3a3a;
  --input-bg: #1c1c1c;
  --primary-soft: rgba(22, 186, 170, 0.18);
  --shadow: none;
}

#tool-body .bt-wrap {
  background: var(--card-bg);
  color: var(--text);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

#tool-body .bt-section-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

#tool-body .bt-templates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

#tool-body .bt-tpl {
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  border-radius: 999px;
  height: 34px;
  line-height: 32px;
  padding: 0 12px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s ease;
}

#tool-body .bt-tpl:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

#tool-body .bt-tpl.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

#tool-body .bt-dict-bar {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -6px 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

#tool-body .bt-dict-bar.is-show {
  display: flex;
}

#tool-body .bt-dict-box {
  width: 44px;
  height: 36px;
  text-align: center;
  padding: 0;
  font-size: 16px;
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text);
}

#tool-body .bt-modes {
  display: inline-flex;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 16px;
}

#tool-body .bt-mode {
  border: 0;
  background: transparent;
  color: var(--muted);
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
}

#tool-body .bt-mode.active {
  background: var(--primary);
  color: #fff;
}

#tool-body .bt-panel {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 12px;
}

#tool-body .bt-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

#tool-body .bt-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
}

#tool-body .bt-badge-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary-soft);
  font-size: 16px;
  line-height: 1;
}

#tool-body .bt-badge-ico.fa {
  font-size: 14px;
  color: var(--primary);
}

#tool-body .bt-panel-meta {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

#tool-body .bt-textarea {
  min-height: 150px;
  resize: vertical;
  background: var(--input-bg);
  color: var(--text);
  border-radius: 8px;
  line-height: 1.7;
}

#tool-body .bt-mid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 4px 0 14px;
}

#tool-body .bt-mid .layui-btn {
  min-width: 110px;
  height: 40px;
  line-height: 40px;
  border-radius: 8px;
}

#tool-body .bt-convert {
  background: var(--primary) !important;
  font-weight: 600;
}

#tool-body .bt-out-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

#tool-body .bt-status {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
}

#tool-body .bt-status.is-show {
  display: block;
}

#tool-body .bt-status.is-error {
  background: rgba(255, 87, 34, 0.1);
  color: #d84315;
  border: 1px solid rgba(255, 87, 34, 0.25);
}

#tool-body .bt-status.is-warn {
  background: rgba(255, 152, 0, 0.12);
  color: #ef6c00;
  border: 1px solid rgba(255, 152, 0, 0.28);
}

.theme-dark-mode #tool-body .bt-status.is-error {
  background: rgba(255, 87, 34, 0.18);
  color: #ffab91;
  border-color: rgba(255, 87, 34, 0.35);
}

.theme-dark-mode #tool-body .bt-status.is-warn {
  background: rgba(255, 152, 0, 0.16);
  color: #ffcc80;
  border-color: rgba(255, 152, 0, 0.35);
}

#tool-body .bt-tips {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

#tool-body .bt-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

#tool-body .bt-chip {
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  border-radius: 999px;
  height: 30px;
  line-height: 28px;
  padding: 0 12px;
  cursor: pointer;
  font-size: 12px;
}

#tool-body .bt-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

@media (max-width: 768px) {
  #tool-body .bt-wrap { padding: 14px; }
  #tool-body .bt-modes { width: 100%; }
  #tool-body .bt-mode { flex: 1; padding: 0 8px; }
  #tool-body .bt-mid .layui-btn { flex: 1; min-width: 0; }
  #tool-body .bt-textarea { min-height: 120px; }
  #tool-body .bt-out-actions .layui-btn { flex: 1; }
}