/* Apple ID 账号卡片 - DUX */
.article-content .aid-cards,
.entry .aid-cards,
.aid-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 14px 0 18px;
}

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

.aid-card:last-child {
    margin-bottom: 0;
}

.article-content p:has(> .aid-card),
.entry p:has(> .aid-card) {
    margin: 0;
}

.aid-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);
}

.aid-card-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.aid-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}

.aid-badge .aid-icon {
    width: 14px;
    height: 14px;
}

.aid-badge-ok {
    color: #0bb27a;
    background: rgba(11, 178, 122, 0.1);
}

.aid-badge-bad {
    color: #ff5e52;
    background: rgba(255, 94, 82, 0.1);
}

.aid-badge-region {
    color: #6b6970;
    background: #f3f5f7;
}

.aid-card-time {
    margin-left: auto;
    font-size: 12px;
    color: #989ead;
}

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

.aid-row:last-child {
    margin-bottom: 0;
}

.aid-label {
    flex: 0 0 auto;
    width: 2em;
    font-size: 14px;
    color: #202935;
    font-weight: 600;
    white-space: nowrap;
}

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

.aid-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: #eef0f3;
    color: #5f6368;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: none;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}

.aid-copy-btn:hover {
    background: #e4e6ea;
    color: #3c4043;
}

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

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

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

.dux-aid-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-aid-tip.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

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

    .aid-card-head {
        gap: 6px;
        flex-wrap: nowrap;
        margin-bottom: 8px;
    }

    .aid-card-time {
        margin-left: auto;
        flex: 0 0 auto;
        font-size: 11px;
        line-height: 1.3;
        white-space: nowrap;
        text-align: right;
    }

    .aid-row {
        flex-wrap: nowrap;
        min-height: 40px;
        padding: 6px 10px;
        gap: 8px;
        margin-bottom: 8px;
    }

    .aid-label {
        width: auto;
        font-size: 13px;
    }

    .aid-value {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        word-break: normal;
        font-size: 12px;
    }

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

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