#tool-body {
  --primary: #0d9488;
  --primary-hover: #0f766e;
  --card-bg: #fff;
  --card-border: #e5e7eb;
  --text: #1f2937;
  --text-muted: #6b7280;
  --input-bg: #fff;
  --timeline-line: #e5e7eb;
  --hop-bg: #f8fafc;
  --ok: #059669;
  --warn: #d97706;
  --err: #dc2626;
  --info: #2563eb;
  --code-bg: #0f172a;
  --code-text: #e2e8f0;
  --tip-bg: #f8fafc;
  --tip-border: #e5e7eb;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  max-width: 920px;
  margin: 0 auto;
}
.theme-dark-mode #tool-body {
  --card-bg: #252528;
  --card-border: #3a3a3e;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --input-bg: #1b1b1d;
  --timeline-line: #3a3a3e;
  --hop-bg: #1f1f22;
  --code-bg: #111827;
  --code-text: #e5e7eb;
  --tip-bg: #1f1f22;
  --tip-border: #3a3a3e;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
#tool-body .ura-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 18px 18px 8px;
  box-shadow: var(--shadow);
}
#tool-body .ura-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
#tool-body .ura-label-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
#tool-body .ura-label-row .ura-label {
  display: inline;
  margin-bottom: 0;
}
#tool-body .ura-info-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 0;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
  border-radius: 50%;
}
#tool-body .ura-info-btn:hover {
  color: var(--primary);
}
#tool-body .ura-top-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 4px;
}
#tool-body .ura-url-field {
  flex: 1;
  min-width: 0;
  margin-bottom: 10px !important;
}
#tool-body .ura-max-field {
  width: 148px;
  flex-shrink: 0;
  margin-bottom: 10px !important;
}
#tool-body .ura-check-row {
  margin-top: 4px;
  margin-bottom: 20px !important;
}
#tool-body .ura-check-row .layui-form-checkbox {
  margin-top: 0 !important;
}
#tool-body .ura-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
}
@media (max-width: 768px) {
  #tool-body .ura-top-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  #tool-body .ura-check-row {
    margin-bottom: 16px !important;
  }
  #tool-body .ura-url-field,
  #tool-body .ura-max-field {
    width: 100%;
    margin-bottom: 12px !important;
  }
}
#tool-body .layui-input,
#tool-body .layui-textarea {
  background: var(--input-bg);
  color: var(--text);
}
#tool-body .ura-btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}
#tool-body .ura-btn-primary:hover {
  background: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
}
#tool-body .ura-summary {
  display: none;
  margin-top: 16px;
}
#tool-body .ura-summary.is-show {
  display: block;
}
#tool-body .ura-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
@media (max-width: 768px) {
  #tool-body .ura-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
#tool-body .ura-stat {
  background: var(--hop-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}
#tool-body .ura-stat-val {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  word-break: break-all;
}
#tool-body .ura-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
#tool-body .ura-final {
  background: var(--hop-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
#tool-body .ura-final-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
#tool-body .ura-url-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}
#tool-body .ura-url-link {
  color: var(--primary);
  word-break: break-all;
  flex: 1;
  min-width: 0;
  line-height: 1.5;
  text-decoration: none;
}
#tool-body .ura-url-link:hover {
  text-decoration: underline;
}
#tool-body .ura-icon-btn {
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-muted);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 32px;
  text-align: center;
}
#tool-body .ura-icon-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}
#tool-body .ura-timeline {
  position: relative;
  padding-left: 8px;
}
#tool-body .ura-hop {
  position: relative;
  padding: 0 0 16px 28px;
}
#tool-body .ura-hop:last-child {
  padding-bottom: 0;
}
#tool-body .ura-hop::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 28px;
  bottom: 0;
  width: 2px;
  background: var(--timeline-line);
}
#tool-body .ura-hop:last-child::before {
  display: none;
}
#tool-body .ura-dot {
  position: absolute;
  left: 0;
  top: 14px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--card-bg);
  box-shadow: 0 0 0 1px var(--primary);
}
#tool-body .ura-hop-card {
  background: var(--hop-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 12px 14px;
}
#tool-body .ura-hop-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
}
#tool-body .ura-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  color: #fff;
  background: var(--info);
}
#tool-body .ura-badge.is-3xx { background: var(--warn); }
#tool-body .ura-badge.is-2xx { background: var(--ok); }
#tool-body .ura-badge.is-4xx,
#tool-body .ura-badge.is-5xx,
#tool-body .ura-badge.is-err { background: var(--err); }
#tool-body .ura-badge.is-muted { background: #6b7280; }
#tool-body .ura-muted {
  color: var(--text-muted);
  font-size: 12px;
}
#tool-body .ura-curl-box {
  display: none;
  margin-top: 16px;
}
#tool-body .ura-curl-box.is-show {
  display: block;
}
#tool-body .ura-tip {
  background: var(--tip-bg);
  border: 1px solid var(--tip-border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 12px;
}
#tool-body .ura-curl-item {
  margin-bottom: 12px;
}
#tool-body .ura-curl-item.is-prefer .ura-curl-head strong {
  color: var(--primary);
}
#tool-body .ura-curl-head {
  margin-bottom: 6px;
  font-size: 13px;
}
#tool-body .ura-curl-cmd-wrap {
  position: relative;
}
#tool-body .ura-curl-cmd {
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: 8px;
  padding: 12px 38px 12px 14px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.5;
  word-break: break-all;
  white-space: pre-wrap;
}
#tool-body .ura-curl-cmd-wrap .ura-copy-curl {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  line-height: 26px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--code-text);
}
#tool-body .ura-curl-cmd-wrap .ura-copy-curl:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
}
#tool-body .ura-section-title {
  font-size: 14px;
  font-weight: 700;
  margin: 4px 0 12px;
}
#tool-body .ura-chain-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}