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

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

/* 快速 ASN 标签 */
.asn-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;
}
.asn-tag:hover {
    background: #e0e7ff;
    border-color: #818cf8;
    color: #4f46e5;
}

/* ========== 结果卡片 ========== */
.asn-result-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem;
}
.asn-result-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    font-family: 'SF Mono','Fira Code','Consolas',monospace;
}
.asn-org-badge {
    background: #ede9fe;
    color: #7c3aed;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
}

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

/* ========== 区块标题 ========== */
.asn-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;
}
.prefix-count {
    font-size: 0.78rem;
    font-weight: 400;
    color: #94a3b8;
    margin-left: 0.5rem;
}

/* ========== IP 前缀表格 ========== */
.asn-prefix-table-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}
.asn-prefix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.asn-prefix-table th {
    background: #f8fafc;
    padding: 0.65rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #64748b;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e8f0;
}
.asn-prefix-table td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-family: 'SF Mono','Fira Code','Consolas',monospace;
    font-size: 0.82rem;
}
.asn-prefix-table tr:last-child td { border-bottom: none; }
.asn-prefix-table tbody tr:hover { background: #f8fafc; }

.ip-ver-badge {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: 'SF Mono','Fira Code','Consolas',monospace;
}
.ip-ver-badge.v4 { background: #dbeafe; color: #2563eb; }
.ip-ver-badge.v6 { background: #fce7f3; color: #db2777; }

/* ========== 关系卡片 ========== */
.asn-relation-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    height: 100%;
}
.asn-relation-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}
.asn-relation-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    font-family: 'SF Mono','Fira Code','Consolas',monospace;
    margin-bottom: 0.15rem;
}
.asn-relation-desc {
    font-size: 0.78rem;
    color: #64748b;
}

@media (max-width: 767px) {
    .tool-section { padding: 1.5rem 0 3rem; }
    .asn-info-grid { grid-template-columns: 1fr; }
    .asn-prefix-table th:nth-child(3),
    .asn-prefix-table td:nth-child(3),
    .asn-prefix-table th:nth-child(4),
    .asn-prefix-table td:nth-child(4) { display: none; }
}
