/* CorePress 卡片：IDE 窗口顶栏，区别于 DUX 圆角蓝、YIA 绿条、mkBlog 票根 */
.post-content .airport-cards,
.airport-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 12px 0 20px;
    max-width: 100%;
}

.post-content p:has(> .airport-card),
.post-content p:has(> .aid-ad) {
    margin: 0;
}

.airport-card,
.post-content .aid-ad {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    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-ad {
    margin: 12px 0 20px;
    flex-wrap: nowrap;
}

.airport-card::before,
.post-content .aid-ad::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);
}

.airport-card:hover,
.post-content .aid-ad:hover {
    border-color: color-mix(in srgb, var(--Maincolor, #409EFF) 45%, #e4e7ed);
    box-shadow: 0 8px 20px rgba(64, 158, 255, 0.1);
}

.airport-card-body,
.post-content .aid-ad-body {
    flex: 1 1 auto;
    min-width: 0;
}

.airport-card-name,
.post-content .aid-ad-title {
    font-size: 15px;
    font-weight: 700;
    color: #303133;
    line-height: 1.3;
    margin: 0 0 4px;
}

.airport-card-desc,
.post-content .aid-ad-desc {
    font-size: 13px;
    line-height: 1.5;
    color: #909399;
    margin: 0;
}

.airport-jump-btn,
.post-content .aid-ad-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 4px;
    background: var(--Maincolor, #409EFF);
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    transition: filter 0.2s, transform 0.15s;
}

.airport-jump-btn:hover,
.airport-jump-btn:visited,
.post-content .aid-ad-btn:hover,
.post-content .aid-ad-btn:visited {
    color: #fff !important;
    filter: brightness(1.06);
}

.airport-jump-btn:active,
.post-content .aid-ad-btn:active {
    transform: scale(0.97);
}

.airport-jump-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .airport-card,
    .post-content .aid-ad {
        flex-wrap: nowrap;
        align-items: center;
        padding: 36px 12px 12px;
        gap: 8px;
    }

    .airport-card-name,
    .post-content .aid-ad-title {
        font-size: 14px;
    }

    .airport-card-desc,
    .post-content .aid-ad-desc {
        font-size: 12px;
    }

    .airport-jump-btn,
    .post-content .aid-ad-btn {
        width: auto;
        margin-left: auto;
        padding: 7px 10px;
    }
}
