// ===== AppCard 应用卡片样式 =====

.app-card {
    background: #FFFFFF;
    border: 1px solid #F3F4F6;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;

    &:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
        border-color: rgba(59, 130, 246, 0.2);
    }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.card-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    flex-shrink: 0;

    &.bg-blue { background: #EFF6FF; }
    &.bg-indigo { background: #EEF2FF; }
    &.bg-teal { background: #F0FDFA; }
    &.bg-purple { background: #FAF5FF; }
    &.bg-rose { background: #FFF1F2; }
    &.bg-cyan { background: #ECFEFF; }
    &.bg-amber { background: #FFFBEB; }

    .card-icon {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .iconify {
        font-size: 32px;
    }
}

.card-actions {
    display: flex;
    gap: 6px;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.2s ease;

    .card-action-btn {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #F3F4F6;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #6B7280;
        cursor: pointer;
        transition: all 0.2s ease;

        &:hover {
            background: #E5E7EB;
            color: #1D4ED8;
        }

        .iconify {
            font-size: 18px;
        }
    }
}

.app-card:hover .card-actions {
    opacity: 1;
    transform: translateY(0);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 4px;
    transition: color 0.2s ease;

    .app-card:hover & {
        color: #1D4ED8;
    }
}

.card-description {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.5;
    margin-bottom: 16px;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.card-tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;

    &.tag-slate { background: #F1F5F9; color: #64748B; }
    &.tag-blue { background: #DBEAFE; color: #1D4ED8; }
    &.tag-indigo { background: #E0E7FF; color: #4338CA; }
    &.tag-teal { background: #CCFBF1; color: #0D9488; }
    &.tag-purple { background: #F3E8FF; color: #7E22CE; }
    &.tag-rose { background: #FFE4E6; color: #E11D48; }
    &.tag-cyan { background: #CFFAFE; color: #0891B2; }
    &.tag-amber { background: #FEF3C7; color: #B45309; }
}

.card-hot-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 2px 8px;
    background: #FFEDD5;
    color: #EA580C;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #F9FAFB;
}

.card-certification {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #9CA3AF;

    .iconify {
        font-size: 16px;
        color: #10B981;
    }
}

.card-play-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #1D4ED8;
    border: none;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(29, 78, 216, 0.2);

    &:hover {
        background: #1E40AF;
        box-shadow: 0 10px 15px -3px rgba(29, 78, 216, 0.3);
        transform: scale(1.05);
    }

    .iconify {
        font-size: 18px;
    }
}

.app-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;

    @media (max-width: 1536px) {
        grid-template-columns: repeat(3, 1fr);
    }

    @media (max-width: 1280px) {
        grid-template-columns: repeat(2, 1fr);
    }

    @media (max-width: 768px) {
        grid-template-columns: repeat(1, 1fr);
    }
}
