/* Apple ID 账号卡片：左侧色条 + 虚线账号行，和测速主题节点卡同一套语言 */
.article-content .aid-cards,
.article .aid-cards,
.aid-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 8px 0 20px;
}

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

.aid-card {
    position: relative;
    padding: 14px 14px 14px 18px;
    margin: 0;
    background: linear-gradient(90deg, rgba(11, 178, 122, 0.08) 0%, #f8fbf9 42%, #fff 100%);
    background: linear-gradient(90deg, color-mix(in srgb, var(--primary-color, #0bb27a) 8%, #fff) 0%, #f8fbf9 42%, #fff 100%);
    border: 1px solid rgba(11, 178, 122, 0.16);
    border-color: color-mix(in srgb, var(--primary-color, #0bb27a) 16%, #fff);
    border-radius: 8px;
}

.aid-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--primary-color, #0bb27a);
}

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

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

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

.aid-badge-ok {
    color: #0bb27a;
    color: var(--primary-color, #0bb27a);
    background: rgba(11, 178, 122, 0.1);
    background: color-mix(in srgb, var(--primary-color, #0bb27a) 10%, transparent);
}

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

.aid-badge-region {
    color: #8d8f96;
    background: #f3f5f7;
}

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

.aid-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 8px 10px 8px 12px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px dashed rgba(11, 178, 122, 0.28);
    border-color: color-mix(in srgb, var(--primary-color, #0bb27a) 28%, #fff);
    border-radius: 6px;
}

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

.aid-label {
    flex: 0 0 auto;
    width: 2em;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color, #0bb27a);
    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-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 14px;
    border: 1px solid var(--primary-color, #0bb27a);
    border-radius: 999px;
    background: #fff;
    color: var(--primary-color, #0bb27a);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}

.aid-btn:hover {
    background: var(--primary-color, #0bb27a);
    color: #fff;
}

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

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

.aid-copy-btn.is-copied {
    background: var(--primary-color, #0bb27a);
    color: #fff;
}

@media (max-width: 640px) {
    .aid-card {
        padding: 12px 12px 12px 16px;
    }

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

    .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: 36px;
        padding: 6px 8px;
        gap: 8px;
    }

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

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

    .aid-btn {
        padding: 7px 10px;
        font-size: 12px;
    }
}
