/* Simple Theme ID 账号卡：同一套 iOS 分组列表 */
.prose-content .aid-cards,
.aid-cards {
    display: flex;
    flex-direction: column;
    margin: 1.25em 0 1.6em;
    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);
}

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

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

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

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

.aid-card-name {
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--foreground, #333);
    line-height: 1.35;
    margin-right: 4px;
}

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

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

.aid-badge-ok {
    color: var(--success, #67c23a);
    background: color-mix(in srgb, var(--success, #67c23a) 12%, transparent);
}

.aid-badge-bad {
    color: var(--danger, #dd2424);
    background: color-mix(in srgb, var(--danger, #dd2424) 12%, transparent);
}

.aid-badge-region {
    color: var(--secondary, #999);
    background: var(--muted, #f5f5f5);
}

.aid-card-time {
    margin-left: auto;
    font-size: 12px;
    color: var(--secondary, #999);
}

.aid-field + .aid-field {
    margin-top: 10px;
}

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

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

.aid-value {
    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);
    letter-spacing: 0.02em;
}

.prose-content .aid-copy-btn,
.aid-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;
}

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

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

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

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

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

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

    .aid-card-name {
        font-size: 14px;
        width: 100%;
        margin-bottom: 2px;
    }

    .aid-row {
        flex-wrap: nowrap;
        min-height: 36px;
        padding: 5px 5px 5px 10px;
        gap: 6px;
    }

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

    .aid-copy-btn {
        padding: 6px 10px;
    }
}
