#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;
  --ok-bg: #ecfdf5;
  --warn: #d97706;
  --err: #dc2626;
  --info: #2563eb;
  --code-bg: #0f172a;
  --code-text: #e2e8f0;
  --tip-bg: #f8fafc;
  --tip-border: #e5e7eb;
  --table-head: #f1f5f9;
  --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;
  --ok-bg: #14261e;
  --code-bg: #111827;
  --code-text: #e5e7eb;
  --tip-bg: #1f1f22;
  --tip-border: #3a3a3e;
  --table-head: #2a2a2e;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
#tool-body .uhd-card {
  margin-bottom: 30px;
}
#tool-body .uhd-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
#tool-body .uhd-label-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
#tool-body .uhd-label-row .uhd-label {
  display: inline;
  margin-bottom: 0;
}
#tool-body .uhd-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 .uhd-info-btn:hover {
  color: var(--primary);
}
#tool-body .uhd-url-field {
  margin-bottom: 10px !important;
}
#tool-body .uhd-check-row {
  margin-top: 4px;
  margin-bottom: 20px !important;
}
#tool-body .uhd-check-row .layui-form-checkbox {
  margin-top: 0 !important;
  margin-right: 16px;
}
#tool-body .uhd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
}
#tool-body .layui-input,
#tool-body .layui-textarea {
  background: var(--input-bg);
  color: var(--text);
}
#tool-body .uhd-btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}
#tool-body .uhd-btn-primary:hover {
  background: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
}
#tool-body .uhd-result {
  display: none;
  margin-top: 16px;
}
#tool-body .uhd-result.is-show {
  display: block;
}
#tool-body .uhd-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
@media (max-width: 768px) {
  #tool-body .uhd-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  #tool-body .uhd-check-row {
    margin-bottom: 16px !important;
  }
}
#tool-body .uhd-stat {
  background: var(--hop-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}
#tool-body .uhd-stat-val {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  word-break: break-all;
}
#tool-body .uhd-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
#tool-body .uhd-final {
  background: var(--hop-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
#tool-body .uhd-final-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
#tool-body .uhd-url-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}
#tool-body .uhd-url-link {
  color: var(--primary);
  word-break: break-all;
  flex: 1;
  min-width: 0;
  line-height: 1.5;
  text-decoration: none;
}
#tool-body .uhd-url-link:hover {
  text-decoration: underline;
}
#tool-body .uhd-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 .uhd-icon-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}
#tool-body .uhd-icon-btn.is-sm {
  width: 28px;
  height: 28px;
  line-height: 28px;
  font-size: 12px;
}
#tool-body .uhd-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  color: #fff;
  background: var(--info);
}
#tool-body .uhd-badge.is-3xx { background: var(--warn); }
#tool-body .uhd-badge.is-2xx { background: var(--ok); }
#tool-body .uhd-badge.is-4xx,
#tool-body .uhd-badge.is-5xx { background: var(--err); }
#tool-body .uhd-badge.is-muted { background: #6b7280; }
#tool-body .uhd-badge.is-flag {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--card-border);
  font-weight: 600;
}
#tool-body .uhd-badge.is-flag.is-on {
  color: var(--ok);
  border-color: var(--ok);
  background: var(--ok-bg);
}
#tool-body .uhd-muted {
  color: var(--text-muted);
  font-size: 12px;
}
#tool-body .uhd-section-title {
  font-size: 14px;
  font-weight: 700;
  margin: 4px 0 12px;
}
#tool-body .uhd-sec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
@media (max-width: 768px) {
  #tool-body .uhd-sec-grid {
    grid-template-columns: 1fr;
  }
}
#tool-body .uhd-sec {
  background: var(--hop-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 12px 14px;
}
#tool-body .uhd-sec.is-on {
  border-color: rgba(5, 150, 105, 0.35);
}
#tool-body .uhd-sec-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
#tool-body .uhd-sec-name {
  font-size: 13px;
  font-weight: 700;
}
#tool-body .uhd-sec-state {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
#tool-body .uhd-sec.is-on .uhd-sec-state {
  color: var(--ok);
}
#tool-body .uhd-sec-header {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
  word-break: break-all;
}
#tool-body .uhd-sec-val {
  font-size: 12px;
  line-height: 1.5;
  word-break: break-all;
  margin-bottom: 6px;
  font-family: Consolas, "Courier New", monospace;
}
#tool-body .uhd-cookie-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
#tool-body .uhd-cookie {
  background: var(--hop-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 12px 14px;
}
#tool-body .uhd-cookie-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
#tool-body .uhd-cookie-name {
  font-weight: 700;
  font-size: 13px;
  word-break: break-all;
}
#tool-body .uhd-cookie-val {
  font-size: 12px;
  line-height: 1.5;
  word-break: break-all;
  color: var(--text-muted);
  font-family: Consolas, "Courier New", monospace;
  margin-bottom: 8px;
}
#tool-body .uhd-cookie-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
#tool-body .uhd-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  margin-bottom: 18px;
}
#tool-body .uhd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
#tool-body .uhd-table th,
#tool-body .uhd-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--card-border);
  vertical-align: top;
  text-align: left;
}
#tool-body .uhd-table tr:last-child th,
#tool-body .uhd-table tr:last-child td {
  border-bottom: 0;
}
#tool-body .uhd-table th {
  background: var(--table-head);
  font-weight: 700;
  white-space: nowrap;
}
#tool-body .uhd-hname {
  font-weight: 600;
  white-space: nowrap;
  width: 1%;
}
#tool-body .uhd-hval {
  word-break: break-all;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.5;
}
#tool-body .uhd-hact {
  width: 40px;
  text-align: right !important;
}
#tool-body .uhd-table-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
}
#tool-body .uhd-timeline {
  position: relative;
  padding-left: 8px;
}
#tool-body .uhd-hop {
  position: relative;
  padding: 0 0 16px 28px;
}
#tool-body .uhd-hop:last-child {
  padding-bottom: 0;
}
#tool-body .uhd-hop::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 28px;
  bottom: 0;
  width: 2px;
  background: var(--timeline-line);
}
#tool-body .uhd-hop:last-child::before {
  display: none;
}
#tool-body .uhd-dot {
  position: absolute;
  left: -3px;
  top: 14px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--card-bg);
  box-shadow: 0 0 0 1px var(--primary);
  color: #eee;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
#tool-body .uhd-hop-card {
  background: var(--hop-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 12px 14px;
}
#tool-body .uhd-hop-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
}
#tool-body .uhd-hop-headers {
  display: none;
  margin-top: 10px;
}
#tool-body .uhd-hop-headers.is-open {
  display: block;
}
#tool-body .uhd-toggle {
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  padding: 0;
  font-size: 12px;
}
#tool-body .uhd-toggle:hover {
  text-decoration: underline;
}
#tool-body .uhd-chain {
  display: none;
}
#tool-body .uhd-chain.is-show {
  display: block;
}
#tool-body .uhd-cookies {
  display: none;
}
#tool-body .uhd-cookies.is-show {
  display: block;
}
#tool-body .uhd-curl-box {
  display: none;
  margin-top: 16px;
}
#tool-body .uhd-curl-box.is-show {
  display: block;
}
#tool-body .uhd-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 .uhd-curl-item {
  margin-bottom: 12px;
}
#tool-body .uhd-curl-item.is-prefer .uhd-curl-head strong {
  color: var(--primary);
}
#tool-body .uhd-curl-head {
  margin-bottom: 6px;
  font-size: 13px;
}
#tool-body .uhd-curl-cmd-wrap {
  position: relative;
}
#tool-body .uhd-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 .uhd-curl-cmd-wrap .uhd-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 .uhd-curl-cmd-wrap .uhd-copy-curl:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
}