/* 网络体检：沿用后台管理页的玻璃风格，结果区偏数据展示 */

.topbar__nav {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nd-shell {
    max-width: 1180px;
    margin: 18px auto 60px;
    padding: 0 24px;
}

.nd-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.nd-tab {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    color: var(--ink-dim);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nd-tab:hover,
.nd-tab.is-active {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.94);
    color: var(--accent-deep);
}

.nd-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.nd-section-gap {
    margin-bottom: 18px;
}

.nd-check-field {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.nd-check-field input[type="checkbox"] {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--accent-deep);
    cursor: pointer;
}

.nd-speed-picker {
    min-width: min(100%, 320px);
}

.nd-action-end {
    align-self: end;
}

.nd-card--wide {
    grid-column: 1 / -1;
}

.nd-card__body {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 14px 20px 20px;
}

.nd-desc,
.nd-note {
    color: var(--ink-faint);
    font-size: 0.8125rem;
    line-height: 1.65;
}

.nd-note {
    font-size: 0.75rem;
}

.nd-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.nd-actions .btn {
    height: 34px;
    padding: 0 14px;
    font-size: 0.75rem;
}

.nd-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 8px;
}

.nd-metric {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-height: 62px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.55);
}

.nd-metric__label {
    color: var(--ink-faint);
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
}

.nd-metric__value {
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    font-weight: 700;
}

.nd-metric__value.is-muted {
    color: var(--ink-faint);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
}

.nd-results {
    display: grid;
    gap: 9px;
}

.nd-result {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.58);
}

.nd-result__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
}

.nd-result__title {
    font-size: 0.8125rem;
    font-weight: 700;
}

.nd-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    white-space: nowrap;
}

.nd-badge--ok {
    background: var(--ok-soft);
    color: var(--ok);
}

.nd-badge--bad {
    background: var(--danger-soft);
    color: var(--danger);
}

.nd-badge--muted {
    background: var(--muted-soft);
    color: var(--muted);
}

.nd-kv {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 7px 12px;
}

.nd-kv__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.nd-kv__label {
    color: var(--ink-faint);
    font-size: 0.6875rem;
}

.nd-kv__value {
    overflow-wrap: anywhere;
    color: var(--ink-dim);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.nd-error {
    margin-top: 8px;
    color: var(--danger);
    font-size: 0.75rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.nd-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: stretch;
    gap: 6px;
}

.nd-node {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.58);
}

.nd-node__name {
    color: var(--ink);
    font-size: 0.8125rem;
    font-weight: 700;
}

.nd-node__meta {
    color: var(--ink-faint);
    font-size: 0.6875rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.nd-arrow {
    align-self: center;
    color: var(--ink-faint);
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.nd-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.nd-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
}

.nd-column__title {
    color: var(--ink);
    font-size: 0.8125rem;
    font-weight: 700;
}

.nd-column__hint {
    color: var(--ink-faint);
    font-size: 0.6875rem;
    line-height: 1.5;
}

.nd-status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.nd-status-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 1px 0 #fff;
}

.nd-status-card__label {
    color: var(--ink-faint);
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
}

.nd-status-card__value {
    overflow-wrap: anywhere;
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    font-weight: 700;
}

.nd-status-card__value.is-muted {
    color: var(--ink-faint);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
}

.nd-chart-wrap {
    padding: 10px 20px 20px;
}

.nd-chart {
    display: block;
    width: 100%;
    height: 230px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.45);
}

.nd-legend {
    display: flex;
    gap: 14px;
    padding: 8px 2px 0;
    color: var(--ink-faint);
    font-size: 0.6875rem;
}

.nd-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nd-legend__dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: var(--accent);
}

.nd-legend__dot--proxy {
    background: #8b5cf6;
}

.nd-pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 0 20px 18px;
    color: var(--ink-faint);
    font-size: 0.75rem;
}

.nd-pager .btn {
    height: 30px;
    padding: 0 12px;
    font-size: 0.6875rem;
}

.nd-setting-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

.nd-cell-time {
    color: var(--ink-faint);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    white-space: nowrap;
}

.nd-resource-cell {
    max-width: 300px;
}

.nd-resource-cell .cell-name__title,
.nd-resource-cell .cell-name__desc {
    overflow: hidden;
    max-width: 300px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nd-cell-error-inline {
    max-width: 300px;
    overflow: hidden;
    color: var(--danger);
    font-size: 0.6875rem;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nd-cell-mono {
    color: var(--ink-dim);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .nd-grid {
        grid-template-columns: 1fr;
    }

    .nd-card--wide {
        grid-column: auto;
    }

    .nd-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nd-flow {
        grid-template-columns: 1fr;
    }

    .nd-arrow {
        transform: rotate(90deg);
        justify-self: center;
    }

    .nd-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .nd-shell {
        margin-top: 14px;
        padding: 0 16px;
    }

    .nd-card__body,
    .nd-chart-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .nd-setting-grid,
    .nd-status-grid {
        grid-template-columns: 1fr;
    }

    .topbar__nav .back:first-child {
        display: none;
    }
}
