.dh-tool-wrapper { --p-bg: #ffffff; --p-border: #e2e8f0; --p-primary: #f97316; --p-text: #0f172a; width: 100%; max-width: 1000px; margin: 0 auto; background: var(--p-bg); border-radius: 24px; padding: 32px; border: 1px solid var(--p-border); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05); transition: 0.3s; }
.dh-header-main { font-size: 1.6rem; font-weight: 700; color: var(--p-text); margin-bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.dh-badge { background: #ffedd5; color: #c2410c; padding: 4px 12px; border-radius: 30px; font-size: 0.85rem; font-weight: 600; border: 1px solid #fed7aa; }
.dh-subtitle { color: #64748b; font-size: 1rem; padding-bottom: 20px; border-bottom: 1px solid var(--p-border); margin-bottom: 24px; text-align: center; max-width: 800px; margin-left: auto; margin-right: auto; line-height: 1.6; }

.dh-panel { background: #f8fafc; border: 1px solid var(--p-border); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; }
.dh-panel-title { font-weight: 700; color: var(--p-text); font-size: 1.1rem; display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--p-border); }

.dh-api-row { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.dh-input-sm { padding: 10px 14px; font-size: 0.9rem; border-radius: 10px; min-width: 350px; background: #f1f5f9; border: 1px solid #cbd5e1; outline: none; transition: 0.2s; }
.dh-input-sm:focus { border-color: var(--p-primary); background: #ffffff; }
.dh-api-link { font-size: 0.9rem; color: var(--p-primary); text-decoration: none; font-weight: 600; }
.dh-api-link:hover { text-decoration: underline; }

.dh-search-row { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.dh-input-lg { flex: 1; min-width: 280px; padding: 14px 16px; background: #ffffff; border: 2px solid #cbd5e1; color: var(--p-text); border-radius: 12px; outline: none; font-size: 1.05rem; font-family: monospace; transition: 0.2s; }
.dh-input-lg:focus { border-color: var(--p-primary); box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1); }

.dh-btn-primary { background: var(--p-primary); color: white; border: none; padding: 14px 32px; border-radius: 12px; font-weight: bold; font-size: 1.05rem; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3); white-space: nowrap; }
.dh-btn-primary:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-2px); }
.dh-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.dh-loading-box { text-align: center; padding: 40px 0; background: #ffffff; border-radius: 12px; border: 1px dashed #cbd5e1; margin-top: 20px; }
.dh-spinner { width: 40px; height: 40px; border: 4px solid rgba(249, 115, 22, 0.2); border-left-color: var(--p-primary); border-radius: 50%; animation: dhSpin 1s linear infinite; margin: 0 auto; }
@keyframes dhSpin { to { transform: rotate(360deg); } }
.dh-error-box { margin-top: 20px; padding: 16px; background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; border-radius: 12px; font-size: 0.95rem; line-height: 1.6; }

.dh-count-badge { background: #f1f5f9; color: #475569; padding: 4px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; border: 1px solid #e2e8f0; }

/* 垂直时间轴设计 */
.dh-timeline-container { position: relative; padding-left: 30px; margin-top: 20px; }
.dh-timeline-container::before { content: ''; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: #e2e8f0; }

.dh-tl-item { position: relative; margin-bottom: 24px; }
.dh-tl-item:last-child { margin-bottom: 0; }
.dh-tl-dot { position: absolute; left: -30px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #ffffff; border: 3px solid var(--p-primary); box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2); }

.dh-tl-content { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; transition: 0.2s; position: relative; }
.dh-tl-content:hover { border-color: #cbd5e1; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }

.dh-tl-date-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.85rem; color: #64748b; font-weight: 600; }
.dh-tl-date { background: #f1f5f9; padding: 2px 8px; border-radius: 6px; }

.dh-tl-ips { display: flex; flex-direction: column; gap: 8px; }
.dh-tl-ip-row { display: flex; align-items: center; gap: 10px; }
.dh-ip-badge { font-family: monospace; font-size: 1.05rem; font-weight: 700; color: #0f172a; }
.dh-org-badge { font-size: 0.8rem; background: #e0f2fe; color: #0369a1; padding: 2px 8px; border-radius: 12px; border: 1px solid #bae6fd; }

/* 黑夜模式强力覆盖 */
[data-theme="dark"] .dh-tool-wrapper { background: #1e293b !important; border-color: #334155 !important; }
[data-theme="dark"] .dh-panel { background: #0f172a; border-color: #475569; }
[data-theme="dark"] .dh-panel-title { border-bottom-color: #475569; }
[data-theme="dark"] .dh-input-sm, [data-theme="dark"] .dh-input-lg { background: #1e293b; border-color: #475569; color: #f8fafc; }
[data-theme="dark"] .dh-input-sm:focus, [data-theme="dark"] .dh-input-lg:focus { border-color: var(--p-primary); }
[data-theme="dark"] .dh-loading-box { background: #0f172a; border-color: #475569; }
[data-theme="dark"] .dh-count-badge { background: #1e293b; border-color: #334155; color: #cbd5e1; }
[data-theme="dark"] .dh-timeline-container::before { background: #334155; }
[data-theme="dark"] .dh-tl-dot { background: #0f172a; }
[data-theme="dark"] .dh-tl-content { background: #1e293b; border-color: #475569; }
[data-theme="dark"] .dh-tl-content:hover { border-color: #64748b; }
[data-theme="dark"] .dh-tl-date { background: #334155; color: #cbd5e1; }
[data-theme="dark"] .dh-ip-badge { color: #f8fafc; }
[data-theme="dark"] .dh-org-badge { background: rgba(3, 105, 161, 0.2); border-color: #0c4a6e; color: #7dd3fc; }