/* 免费节点订阅 / 节点详情卡片 - DUX */
.article-content .node-sub-cards,
.entry .node-sub-cards,
.node-sub-cards,
.article-content .node-info-cards,
.entry .node-info-cards,
.node-info-cards {
    margin: 14px 0 18px;
}

.node-sub-card,
.node-info-card {
    background: #fff;
    border: 1px solid #edf1fc;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.node-sub-card {
    padding: 14px 16px;
    margin-bottom: 10px;
}

.node-sub-card:last-child,
.node-info-card:last-child {
    margin-bottom: 0;
}

.node-sub-card:hover,
.node-info-card:hover {
    border-color: color-mix(in srgb, var(--tb--main, #007BFF) 35%, transparent);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.node-sub-name {
    font-size: 15px;
    font-weight: 700;
    color: #202935;
    line-height: 1.3;
    margin-bottom: 10px;
}

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

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

.node-copy-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background: var(--tb--main, #007BFF);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--tb--main, #007BFF) 25%, transparent);
    transition: filter 0.2s, transform 0.15s, background 0.2s;
}

.node-copy-btn:hover {
    filter: brightness(0.92);
}

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

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

.node-copy-btn.is-copied {
    background: #0bb27a;
    box-shadow: 0 4px 12px rgba(11, 178, 122, 0.25);
    filter: none;
}

.node-info-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 8px;
}

.node-info-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: #202935;
    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: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}

.node-tag-ping {
    color: #0bb27a;
    background: rgba(11, 178, 122, 0.1);
}

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

.node-tag-ping.is-high {
    color: #ff5e52;
    background: rgba(255, 94, 82, 0.1);
}

.node-tag-proto {
    color: #6b6970;
    background: #f3f5f7;
}

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

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

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

    .node-sub-name {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .node-sub-row {
        flex-wrap: nowrap;
        min-height: 40px;
        padding: 6px 10px;
        gap: 8px;
    }

    .node-sub-url {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        word-break: normal;
        font-size: 12px;
    }

    .node-copy-btn {
        width: auto;
        margin-left: auto;
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 8px;
        box-shadow: none;
    }

    .node-copy-btn svg {
        width: 14px;
        height: 14px;
    }

    .node-info-card {
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .node-info-name {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 13px;
    }

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