/* 认证项目卡片 — 首页与 certification-list 共用 */

.cert-grid-loading {
    opacity: 0.72;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.cert-card {
    transition: all 0.3s ease;
}

/* 网格内等高：正文区弹性撑开，底部操作区统一占位 */
.cert-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.cert-card-desc {
    flex: 1;
    margin-bottom: 0;
}

.cert-card-footer {
    flex-shrink: 0;
    min-height: 2.375rem;
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.cert-card-visual {
    overflow: hidden;
}

/* 脚本生成的 16:9 文字封面：图片区顶端对齐 */
.cert-card-visual--top {
    align-items: flex-start;
    justify-content: center;
}

.cert-card-img--top {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
    transition: transform 0.3s ease;
}

.cert-card:hover .cert-card-img--top {
    transform: scale(1.03);
}

/* 等保 CTA：居中横跨封面与正文交界处 */
.cert-card-cta-bridge {
    position: relative;
    z-index: 5;
    height: 0;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.cert-card-cta-bridge .cert-card-cta {
    transform: translateY(-50%);
    pointer-events: auto;
}

.cert-card--bridge-cta .cert-card-body {
    padding-top: 2.125rem;
}

.cert-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 51, 102, 0.15);
}

.cert-card--featured {
    border: 2px solid #0066fe;
    box-shadow: 0 8px 28px rgba(0, 102, 254, 0.18);
}

.cert-card--featured:hover {
    box-shadow: 0 14px 32px rgba(0, 102, 254, 0.28);
}

.cert-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 24px);
}

.cert-card-badge {
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    white-space: nowrap;
}

.cert-card-badge--hot {
    background: linear-gradient(135deg, #0066fe, #3b82f6);
}

.cert-card-badge--rec {
    background: linear-gradient(135deg, #ff6b35, #ff8f4a);
}

.cert-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 2.5rem);
    max-width: 18rem;
    min-height: 2.5rem;
    padding: 10px 20px;
    border-radius: 9999px;
    background: #0066fe;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    border: 2px solid #fff;
}

.cert-card--featured:hover .cert-card-cta {
    background: #0052cc;
}

.cert-card--more .cert-card-more-visual {
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 55%, #e0f2fe 100%);
}

.cert-card--more .cert-card-more-word {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #0066fe;
    line-height: 1;
    transition: transform 0.3s ease, color 0.3s ease;
}

.cert-card--more:hover .cert-card-more-word {
    transform: scale(1.04);
    color: #0052cc;
}

.cert-card-more-arrow {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #0066fe;
    font-size: 13px;
    font-weight: 600;
}
