.whois-tool-wrapper { --p-bg: #ffffff; --p-border: #e2e8f0; --p-primary: #8b5cf6; --p-text: #0f172a; width: 100%; max-width: 1100px; 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; }
.whois-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; }
.whois-badge { background: #ede9fe; color: #6d28d9; padding: 4px 12px; border-radius: 30px; font-size: 0.85rem; font-weight: 600; border: 1px solid #ddd6fe; }
.whois-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; }

.whois-panel { background: #f8fafc; border: 1px solid var(--p-border); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; }
.whois-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); }

.whois-search-row { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.whois-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; }
.whois-input-lg:focus { border-color: var(--p-primary); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1); }

.whois-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(139, 92, 246, 0.3); white-space: nowrap; }
.whois-btn-primary:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-2px); }
.whois-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.whois-loading-box { text-align: center; padding: 40px 0; background: #ffffff; border-radius: 12px; border: 1px dashed #cbd5e1; margin-top: 20px; }
.whois-spinner { width: 40px; height: 40px; border: 4px solid rgba(139, 92, 246, 0.2); border-left-color: var(--p-primary); border-radius: 50%; animation: whoisSpin 1s linear infinite; margin: 0 auto; }
@keyframes whoisSpin { to { transform: rotate(360deg); } }
.whois-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; }

/* 注册局提示 */
.whois-server-info { background: #f1f5f9; border-left: 4px solid var(--p-primary); padding: 12px 16px; font-size: 0.95rem; color: #475569; margin-bottom: 20px; border-radius: 0 8px 8px 0; }

/* 摘要卡片网格 */
.whois-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.whois-summary-card { background: #ffffff; border: 1px solid #e2e8f0; padding: 18px; border-radius: 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.whois-card-label { font-size: 0.85rem; font-weight: 700; color: #64748b; text-transform: uppercase; }
.whois-card-value { font-size: 1rem; font-weight: 700; color: var(--p-text); line-height: 1.4; word-break: break-word; }

/* 原始代码框 (极客终端风) */
.whois-raw-container { margin-top: 10px; background: #0f172a; border-radius: 12px; padding: 20px; overflow-x: auto; box-shadow: inset 0 2px 10px rgba(0,0,0,0.5); }
.whois-raw-container pre { margin: 0; }
.whois-raw-container code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 0.9rem; color: #e2e8f0; line-height: 1.6; white-space: pre-wrap; word-break: break-all; }

/* 黑夜模式强力覆盖 */
[data-theme="dark"] .whois-tool-wrapper { background: #1e293b !important; border-color: #334155 !important; }
[data-theme="dark"] .whois-panel { background: #0f172a; border-color: #475569; }
[data-theme="dark"] .whois-panel-title { border-bottom-color: #475569; }
[data-theme="dark"] .whois-input-lg { background: #1e293b; border-color: #475569; color: #f8fafc; }
[data-theme="dark"] .whois-input-lg:focus { border-color: var(--p-primary); }
[data-theme="dark"] .whois-loading-box { background: #0f172a; border-color: #475569; }
[data-theme="dark"] .whois-server-info { background: #1e293b; border-color: #334155; color: #cbd5e1; }
[data-theme="dark"] .whois-summary-card { background: #1e293b; border-color: #475569; }
[data-theme="dark"] .whois-card-label { color: #94a3b8; }
[data-theme="dark"] .whois-card-value { color: #f8fafc; }
[data-theme="dark"] .whois-raw-container { background: #020617; border: 1px solid #000; }
[data-theme="dark"] .whois-raw-container code { color: #cbd5e1; }