/* Apple ID 卡片：与机场推荐同一套 IDE 窗口顶栏 */
.post-content .aid-cards,
.aid-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 12px 0 20px;
    max-width: 100%;
}

.post-content p:has(> .aid-card),
.post-content p:has(> .aid-account),
.post-content p:has(> .aid-unlock) {
    margin: 0;
}

.aid-card,
.post-content .aid-account,
.aid-unlock {
    position: relative;
    padding: 38px 14px 14px;
    margin: 0;
    background: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 8px;
    overflow: hidden;
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.post-content .aid-account {
    margin: 12px 0 20px;
}

.aid-card::before,
.post-content .aid-account::before,
.aid-unlock::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 28px;
    background-color: #303133;
    background-image:
        radial-gradient(circle at 16px 14px, #ff5f57 0 5px, transparent 6px),
        radial-gradient(circle at 34px 14px, #febc2e 0 5px, transparent 6px),
        radial-gradient(circle at 52px 14px, #28c840 0 5px, transparent 6px);
}

.aid-card:hover,
.post-content .aid-account:hover {
    border-color: color-mix(in srgb, var(--Maincolor, #409EFF) 45%, #e4e7ed);
    box-shadow: 0 8px 20px rgba(64, 158, 255, 0.1);
}

.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 i,
.aid-badge .aid-icon {
    width: 12px;
    height: 12px;
    font-size: 12px;
}

.aid-badge-ok {
    color: #67c23a;
    background: rgba(103, 194, 58, 0.12);
}

.aid-badge-bad {
    color: #f56c6c;
    background: rgba(245, 108, 108, 0.12);
}

.aid-badge-region {
    color: #909399;
    background: #f4f4f5;
}

.aid-card-time {
    margin-left: auto;
    font-size: 12px;
    color: #909399;
}

.aid-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 8px 10px;
    margin-bottom: 8px;
    background: #f7f9fa;
    border: 1px dashed #dcdfe6;
    border-radius: 4px;
}

.aid-row:last-child {
    margin-bottom: 0;
}

.aid-label {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
    color: var(--Maincolor, #409EFF);
    white-space: nowrap;
}

.aid-value {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #303133;
    word-break: break-all;
    font-family: Consolas, "Courier New", monospace;
}

.aid-btn,
.aid-copy-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 7px 12px;
    border: none;
    border-radius: 4px;
    background: var(--Maincolor, #409EFF);
    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(1.06);
    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: #67c23a;
    filter: none;
}

.post-content .aid-account p {
    margin: 4px 0;
}

.post-content .aid-account p:has(code) {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 10px;
    margin: 8px 0 0;
    background: #f7f9fa;
    border: 1px dashed #dcdfe6;
    border-radius: 4px;
}

.post-content .aid-account-title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: #303133;
    line-height: 1.3;
}

.post-content .aid-account-meta {
    margin: 8px 0 0;
    font-size: 12px;
    color: #909399;
}

.post-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: #303133;
    word-break: break-all;
    font-family: Consolas, "Courier New", monospace;
}

.aid-unlock {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.aid-unlock-title {
    font-size: 15px;
    font-weight: 700;
    color: #303133;
    line-height: 1.3;
}

.aid-unlock-desc {
    font-size: 13px;
    line-height: 1.5;
    color: #909399;
}

.aid-unlock-status {
    font-size: 13px;
    color: var(--Maincolor, #409EFF);
}

.aid-unlock-status.is-error {
    color: #f56c6c;
}

@keyframes aid-reveal {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.aid-reveal {
    animation: aid-reveal 0.35s ease;
}

@media (max-width: 768px) {
    .aid-card,
    .post-content .aid-account,
    .aid-unlock {
        padding: 36px 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 {
        flex-wrap: nowrap;
        min-height: 36px;
        padding: 6px 8px;
        gap: 8px;
    }

    .aid-label {
        font-size: 12px;
    }

    .aid-value {
        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;
    }
}
