/* Simple Theme 节点卡：同一套 iOS 分组列表 */
.prose-content .node-sub-cards,
.prose-content .node-info-cards,
.node-sub-cards,
.node-info-cards {
    margin: 1.25em 0 1.6em;
}

.prose-content p:has(> .node-sub-card),
.prose-content p:has(> .node-info-card),
.prose-content p:has(> .node-sub-cards),
.prose-content p:has(> .node-info-cards) {
    margin: 0;
}

.node-sub-cards {
    display: flex;
    flex-direction: column;
    background: var(--card, #fff);
    border: 1px solid var(--border, #e2e2e2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-small, 0 1px 2px rgb(0 0 0 / 0.06)), var(--card-highlight, 0 0 0 0 transparent);
}

.node-sub-card {
    padding: 14px 16px;
    margin: 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border, #e2e2e2);
}

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

.node-sub-name {
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.02em;
    color: var(--secondary, #999);
    line-height: 1.3;
    margin-bottom: 8px;
}

.node-sub-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 6px 6px 6px 12px;
    background: var(--faint, #fafafa);
    border: 1px solid var(--border, #e2e2e2);
    border-radius: 10px;
}

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

.prose-content .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: 1px solid var(--border, #e2e2e2);
    border-radius: 999px;
    background: var(--card, #fff);
    color: var(--foreground, #333);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

.node-copy-btn:hover {
    background: var(--muted, #f5f5f5);
}

.node-copy-btn:active {
    transform: scale(0.97);
}

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

.node-copy-btn.is-copied {
    background: var(--success, #67c23a);
    border-color: var(--success, #67c23a);
    color: #fff;
}

.node-info-cards {
    overflow: hidden;
    background: var(--card, #fff);
    border: 1px solid var(--border, #e2e2e2);
    border-radius: 12px;
    box-shadow: var(--shadow-small, 0 1px 2px rgb(0 0 0 / 0.06)), var(--card-highlight, 0 0 0 0 transparent);
}

.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, #e2e2e2);
}

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

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

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

.node-tag-ping {
    color: var(--success, #67c23a);
    background: color-mix(in srgb, var(--success, #67c23a) 12%, transparent);
}

.node-tag-ping.is-mid {
    color: var(--warning, #e6a23c);
    background: color-mix(in srgb, var(--warning, #e6a23c) 12%, transparent);
}

.node-tag-ping.is-high {
    color: var(--danger, #dd2424);
    background: color-mix(in srgb, var(--danger, #dd2424) 12%, transparent);
}

.node-tag-proto {
    color: var(--secondary, #999);
    background: var(--muted, #f5f5f5);
}

.st-node-tip {
    position: fixed;
    left: 50%;
    bottom: 80px;
    z-index: 99999;
    transform: translateX(-50%) translateY(10px);
    padding: 10px 18px;
    border-radius: 10px;
    background: rgba(29, 29, 31, 0.88);
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
    pointer-events: none;
}

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

@media (max-width: 640px) {
    .node-sub-card {
        padding: 12px 14px;
    }

    .node-sub-row {
        flex-wrap: nowrap;
        min-height: 36px;
        padding: 5px 5px 5px 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 14px;
    }

    .node-info-name {
        font-size: 13px;
    }

    .node-info-tags {
        margin-left: auto;
        justify-content: flex-end;
    }
}
