/* Lumivra 节点订阅 / 节点详情 */

.entry-content .node-sub-cards,
.node-sub-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 1.75rem;
    text-align: left;
    background: none;
    border: none;
    border-radius: 0;
    overflow: visible;
    max-width: 100%;
    min-width: 0;
}

.node-sub-card {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    margin: 0;
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}

.node-sub-card:last-child {
    border-bottom: 1px solid var(--border-color);
}

.node-sub-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.node-sub-name {
    flex: 0 1 auto;
    max-width: 40%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 650;
    color: var(--text-color);
    line-height: 1.35;
    margin-bottom: 0;
    white-space: nowrap;
}

.node-sub-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    flex: 1 1 0%;
    min-width: 0;
    min-height: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.node-sub-url {
    flex: 1 1 0%;
    min-width: 0;
    font-size: 13px;
    line-height: 1.35;
    color: var(--text-light);
    font-family: ui-monospace, Consolas, "Courier New", monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.entry-content .node-copy-btn,
.node-copy-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 7px 14px;
    border: none;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.node-copy-btn:hover {
    background: var(--secondary-color);
    color: #fff;
}

.node-copy-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    pointer-events: none;
}

.node-copy-btn .card-icon-check {
    display: none;
}

.node-copy-btn.is-copied .card-icon-copy {
    display: none;
}

.node-copy-btn.is-copied .card-icon-check {
    display: block;
}

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

.node-info-cards {
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    counter-reset: lumivra-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 var(--border-color);
    counter-increment: lumivra-node;
}

.node-info-card:nth-child(even) {
    background: var(--bg-color);
}

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

.node-info-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
    word-break: break-word;
}

.node-info-name::before {
    content: counter(lumivra-node, decimal-leading-zero);
    display: inline-block;
    min-width: 1.6em;
    margin-right: 8px;
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    opacity: 0.85;
}

.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 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}

.node-tag-ping {
    color: #059669;
    background: rgba(5, 150, 105, 0.12);
}

.node-tag-ping.is-mid {
    color: #d97706;
    background: rgba(217, 119, 6, 0.12);
}

.node-tag-ping.is-high {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.12);
}

.node-tag-proto {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
}

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

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

@media (max-width: 768px) {
    .node-sub-card {
        padding: 12px;
        gap: 8px;
    }
    .node-sub-name {
        font-size: 13px;
    }
    .node-sub-url {
        font-size: 12px;
    }
    .node-copy-btn {
        padding: 6px 12px;
    }
    .node-info-card {
        padding: 10px 12px;
        gap: 8px;
    }
    .node-info-name {
        font-size: 13px;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

html[data-theme="dark"] .node-tag-ping {
    color: #34d399;
    background: rgba(52, 211, 153, 0.16);
}

html[data-theme="dark"] .node-tag-ping.is-mid {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.16);
}

html[data-theme="dark"] .node-tag-ping.is-high {
    color: #f87171;
    background: rgba(248, 113, 113, 0.16);
}

html[data-theme="dark"] .node-tag-proto {
    background: rgba(37, 99, 235, 0.22);
}
