.dns-tool-wrapper { --p-bg: #ffffff; --p-border: #e2e8f0; --p-primary: #0ea5e9; --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; }
.dns-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; }
.dns-badge { background: #e0f2fe; color: #0284c7; padding: 4px 12px; border-radius: 30px; font-size: 0.85rem; font-weight: 600; border: 1px solid #bae6fd; }
.dns-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; }

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

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

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

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

/* 过滤器与记录卡片 */
.dns-filter-box { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.dns-filter-tag { padding: 6px 16px; background: #ffffff; border: 1px solid #cbd5e1; border-radius: 20px; font-size: 0.9rem; font-weight: 600; color: #475569; cursor: pointer; transition: 0.2s; }
.dns-filter-tag:hover { border-color: var(--p-primary); color: var(--p-primary); }
.dns-filter-tag.active { background: var(--p-primary); border-color: var(--p-primary); color: #ffffff; box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2); }

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

/* DNS 数据表格 */
.dns-table-wrapper { width: 100%; overflow-x: auto; margin-top: 10px; }
.dns-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.95rem; }
.dns-table th { background: #f1f5f9; color: #475569; font-weight: 700; padding: 14px 16px; border-bottom: 2px solid #e2e8f0; white-space: nowrap; }
.dns-table td { padding: 14px 16px; border-bottom: 1px solid #e2e8f0; color: var(--p-text); vertical-align: middle; }
.dns-table tr:last-child td { border-bottom: none; }
.dns-table tr:hover td { background: #ffffff; }

.dns-type-badge { background: #e0f2fe; color: #0369a1; padding: 4px 10px; border-radius: 8px; font-weight: 800; font-family: monospace; border: 1px solid #bae6fd; font-size: 0.85rem; display: inline-block; }
.dns-val-code { font-family: ui-monospace, monospace; word-break: break-all; line-height: 1.5; color: #0f172a; }
.dns-ttl-text { color: #64748b; font-family: monospace; }

/* 黑夜模式强力覆盖 */
[data-theme="dark"] .dns-tool-wrapper { background: #1e293b !important; border-color: #334155 !important; }
[data-theme="dark"] .dns-panel { background: #0f172a; border-color: #475569; }
[data-theme="dark"] .dns-panel-title { border-bottom-color: #475569; }
[data-theme="dark"] .dns-input-lg { background: #1e293b; border-color: #475569; color: #f8fafc; }
[data-theme="dark"] .dns-input-lg:focus { border-color: var(--p-primary); }
[data-theme="dark"] .dns-loading-box { background: #0f172a; border-color: #475569; }
[data-theme="dark"] .dns-count-badge { background: #1e293b; border-color: #334155; color: #cbd5e1; }
[data-theme="dark"] .dns-filter-tag { background: #0f172a; border-color: #475569; color: #cbd5e1; }
[data-theme="dark"] .dns-filter-tag:hover { border-color: var(--p-primary); color: var(--p-primary); }
[data-theme="dark"] .dns-filter-tag.active { background: var(--p-primary); border-color: var(--p-primary); color: #ffffff; }
[data-theme="dark"] .dns-table th { background: #1e293b; color: #cbd5e1; border-bottom-color: #334155; }
[data-theme="dark"] .dns-table td { border-bottom-color: #334155; color: #f8fafc; }
[data-theme="dark"] .dns-table tr:hover td { background: #1e293b; }
[data-theme="dark"] .dns-type-badge { background: rgba(14, 165, 233, 0.1); border-color: #0369a1; color: #7dd3fc; }
[data-theme="dark"] .dns-val-code { color: #f8fafc; }
[data-theme="dark"] .dns-ttl-text { color: #94a3b8; }