/* Apple ID 卡片：与机场推荐同一套顶栏票根风 */
.single-content .aid-cards,
.aid-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0 18px;
    max-width: 100%;
}

.single-content p:has(> .aid-card),
.single-content p:has(> .aid-account) {
    margin: 0;
}

.aid-card,
.single-content .aid-account {
    position: relative;
    padding: 16px 14px 14px;
    margin: 0;
    background: #fffaf9;
    border: 1px solid #f3d0d2;
    border-top: 3px solid var(--theme-color, #eb5055);
    border-radius: 0 0 6px 6px;
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}

.single-content .aid-account {
    margin: 10px 0 18px;
}

.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: 2px 7px;
    border-radius: 2px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}

.aid-badge .aid-icon {
    width: 12px;
    height: 12px;
}

.aid-badge-ok {
    color: #2f9e44;
    background: rgba(47, 158, 68, 0.1);
}

.aid-badge-bad {
    color: var(--theme-color, #eb5055);
    background: color-mix(in srgb, var(--theme-color, #eb5055) 12%, transparent);
}

.aid-badge-region {
    color: #888;
    background: #fff;
    border: 1px solid #f0e4e5;
}

.aid-card-time {
    margin-left: auto;
    font-size: 12px;
    color: #888;
}

.aid-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 8px 10px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #f0e4e5;
    border-radius: 4px;
}

.aid-row:last-child {
    margin-bottom: 0;
}

.aid-label {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
    color: var(--theme-color, #eb5055);
    white-space: nowrap;
}

.aid-value {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    word-break: break-all;
    font-family: Consolas, "Courier New", monospace;
}

.aid-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    margin-left: auto;
}

.aid-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(--theme-color, #eb5055);
    border-radius: 3px;
    background: var(--theme-color, #eb5055);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: filter 0.2s, transform 0.15s, background 0.2s;
}

.aid-btn:hover,
.aid-copy-btn:hover {
    filter: brightness(0.92);
    color: #fff;
}

.aid-btn:active,
.aid-copy-btn:active {
    transform: scale(0.97);
}

.aid-btn svg,
.aid-copy-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    pointer-events: none;
}

.aid-copy-btn.is-copied {
    background: #2f9e44;
    border-color: #2f9e44;
    filter: none;
}

.single-content .aid-account-title {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--theme-color, #eb5055);
    line-height: 1.3;
}

.single-content .aid-account-meta {
    margin: 8px 0 0;
    font-size: 12px;
    color: #888;
}

.single-content .aid-account p {
    margin: 4px 0;
}

.single-content .aid-account p:has(code) {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 10px;
    margin: 8px 0 0;
    background: #fff;
    border: 1px solid #f0e4e5;
    border-radius: 4px;
}

.single-content .aid-account code {
    flex: 1 1 auto;
    min-width: 0;
    background: transparent;
    border: none;
    padding: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    word-break: break-all;
    font-family: Consolas, "Courier New", monospace;
    cursor: pointer;
}

.mk-dark .aid-card,
.mk-dark .single-content .aid-account {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(235, 80, 85, 0.35);
}

.mk-dark .aid-badge-region {
    color: #bbb;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.mk-dark .aid-card-time,
.mk-dark .single-content .aid-account-meta {
    color: #aaa;
}

.mk-dark .aid-row,
.mk-dark .single-content .aid-account p:has(code) {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.mk-dark .aid-value,
.mk-dark .single-content .aid-account code {
    color: #f0f0f0;
}

@media (max-width: 640px) {
    .aid-card,
    .single-content .aid-account {
        padding: 14px 12px 12px;
    }

    .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,
    .single-content .aid-account p:has(code) {
        flex-wrap: nowrap;
        min-height: 36px;
        padding: 6px 8px;
        gap: 8px;
    }

    .aid-label {
        font-size: 12px;
    }

    .aid-value,
    .single-content .aid-account code {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        word-break: normal;
        font-size: 12px;
    }

    .aid-btn,
    .aid-copy-btn {
        margin-left: auto;
        padding: 6px 10px;
        font-size: 12px;
    }
}
