.tool-section {
    padding: 2rem 0 5rem;
    background: #fff;
}

/* ========== 查询卡片 ========== */
.whois-search-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem;
}
.whois-search-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.75rem;
}

.whois-tag {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: 'SF Mono','Fira Code','Consolas',monospace;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s;
}
.whois-tag:hover {
    background: #e0e7ff;
    border-color: #818cf8;
    color: #4f46e5;
}

/* ========== 结果卡片 ========== */
.whois-result-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem;
}

/* 概览区 */
.whois-overview {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
}
.whois-domain-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    font-family: 'SF Mono','Fira Code','Consolas',monospace;
}
.whois-status-badge {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}
.whois-status-badge.active   { background: #d1fae5; color: #065f46; }
.whois-status-badge.expired  { background: #fee2e2; color: #991b1b; }
.whois-status-badge.inactive { background: #fef3c7; color: #92400e; }
.whois-meta { font-size: 0.82rem; color: #64748b; }
.whois-meta strong { color: #1e293b; font-weight: 600; }
.whois-meta-sep { color: #e2e8f0; font-size: 0.8rem; }

/* 信息网格 */
.whois-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}
.whois-info-item {
    background: #fff;
    padding: 0.9rem 1.1rem;
}
.whois-info-item:nth-child(odd) { background: #fafbfc; }
.whois-info-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}
.whois-info-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
}
.whois-info-value.mono {
    font-family: 'SF Mono','Fira Code','Consolas',monospace;
}

/* ========== 区块标题 ========== */
.whois-section-title {
    display: flex;
    align-items: center;
    font-size: 0.92rem;
    font-weight: 700;
    color: #334155;
    margin: 0 0 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
}
.ns-count {
    font-size: 0.78rem;
    font-weight: 400;
    color: #94a3b8;
    margin-left: 0.5rem;
}

/* DNS 服务器网格 */
.whois-ns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.5rem;
}
.whois-ns-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'SF Mono','Fira Code','Consolas',monospace;
    font-size: 0.82rem;
    color: #334155;
    transition: all 0.15s;
}
.whois-ns-item:hover { border-color: #818cf8; background: #eef2ff; }
.whois-ns-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px; height: 20px;
    border-radius: 4px;
    background: #e0e7ff;
    color: #4f46e5;
    font-size: 0.68rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* 原始数据 */
.whois-raw {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    font-size: 0.78rem;
    font-family: 'SF Mono','Fira Code','Consolas',monospace;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 400px;
    overflow-y: auto;
    margin: 0;
}
.whois-raw .raw-key { color: #7dd3fc; }
.whois-raw .raw-val { color: #a5f3fc; }

@media (max-width: 767px) {
    .tool-section { padding: 1.5rem 0 3rem; }
    .whois-info-grid { grid-template-columns: 1fr; }
    .whois-overview { padding: 1rem; }
    .whois-domain-name { font-size: 1.1rem; }
    .whois-ns-grid { grid-template-columns: 1fr; }
}
