/* Once 节点订阅 / 节点详情 */
.wznrys .node-sub-cards,
.wznrys .node-info-cards,
.node-sub-cards,
.node-info-cards {
    margin: 0 0 20px;
    text-align: left;
}

.wznrys p:has(> .node-sub-card),
.wznrys p:has(> .node-info-card),
.wznrys p:has(> .node-sub-cards),
.wznrys p:has(> .node-info-cards) {
    padding-bottom: 0;
    line-height: inherit;
}

.node-sub-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.node-sub-card {
    padding: 14px 16px;
    margin: 0;
    background: #f7f7f7;
    border: none;
    border-radius: 4px;
}

.node-sub-name {
    font-size: 12px;
    color: #8c8989;
    line-height: 1.3;
    margin-bottom: 8px;
    font-weight: 300;
}

.node-sub-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 4px 4px 4px 12px;
    background: #fff;
    border-radius: 4px;
}

.node-sub-url {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    word-break: break-all;
    font-family: Consolas, Monaco, "Courier New", monospace;
}

.wznrys .node-copy-btn,
.node-copy-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 7px 12px;
    border: none;
    border-radius: 4px;
    background: #4270f5;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
}

.node-copy-btn:hover {
    background: #0a59f8;
}

.node-copy-btn i,
.node-copy-btn svg {
    width: 13px;
    height: 13px;
    font-size: 12px;
    flex-shrink: 0;
    pointer-events: none;
}

.node-copy-btn.is-copied {
    background: #24b581;
}

.node-info-cards {
    overflow: hidden;
    background: #f7f7f7;
    border: none;
    border-radius: 4px;
    counter-reset: once-node;
}

.node-info-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    margin: 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #eee;
}

.node-info-card:last-child {
    border-bottom: none;
}

.node-info-name {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 18px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    word-break: break-word;
    counter-increment: once-node;
}

.node-info-name:before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 5px;
    background: #0a59f8;
    background: linear-gradient(to top, #6598ff, #0a59f8);
}

.node-info-tags {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.node-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}

.node-tag-ping {
    color: #24b581;
    background: rgba(36, 181, 129, .12);
}

.node-tag-ping.is-mid {
    color: #e6a23c;
    background: rgba(230, 162, 60, .12);
}

.node-tag-ping.is-high {
    color: #dc3544;
    background: rgba(220, 53, 68, .12);
}

.node-tag-proto {
    color: #8c8989;
    background: #fff;
}

.once-card-tip {
    position: fixed;
    left: 50%;
    bottom: 90px;
    z-index: 99999;
    transform: translateX(-50%) translateY(10px);
    padding: 10px 18px;
    border-radius: 4px;
    background: rgba(31, 35, 39, .92);
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0;
    transition: opacity .25s, transform .25s;
    pointer-events: none;
}

.once-card-tip.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px) {
    .node-sub-card {
        padding: 12px;
    }
    .node-sub-row {
        flex-wrap: nowrap;
        min-height: 34px;
        padding: 3px 3px 3px 10px;
        gap: 6px;
    }
    .node-sub-url {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        word-break: normal;
        font-size: 12px;
    }
    .node-copy-btn {
        padding: 6px 10px;
    }
    .node-info-card {
        flex-wrap: nowrap;
        gap: 8px;
        padding: 10px 12px;
    }
    .node-info-name {
        font-size: 13px;
    }
    .node-info-tags {
        margin-left: auto;
        justify-content: flex-end;
    }
}

html.dark .node-sub-card,
html.dark .node-info-cards {
    background: #343435;
}
html.dark .node-sub-name {
    color: #999;
}
html.dark .node-sub-row {
    background: #2a2a2b;
}
html.dark .node-sub-url,
html.dark .node-info-name {
    color: #c9c9c9;
}
html.dark .node-info-card {
    border-bottom-color: #303030;
}
html.dark .node-tag-proto {
    background: #2a2a2b;
    color: #999;
}
